[03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:21]accept exits with 9 [03:17:21]New connection [03:17:21]New thread 3067170148 created [03:17:21]Thread 3067026788 joined [03:17:21]Waiting for new connection... [03:17:21] Sock 9.Parse request [03:17:21]Sock 9.Check first char [03:17:21]Sock 9.First char is OK [03:17:21]request: POST /json_proto HTTP/1.0 [03:17:21]Method: POST [03:17:21]URL: /json_proto [03:17:21]Method is POST - this is cgi request [03:17:21]url: /json_proto [03:17:21]query_string will be loaded in cgi processing [03:17:21]execute_cgi json_proto POST (null) [03:17:21]execute_cgi path=json_proto method=POST [03:17:21]POST find Content-Length [03:17:21]Host: 172.17.50.3:8080 [03:17:21]Content-Length: 675 [03:17:21]Content-Type: application/json [03:17:21] [03:17:21]POST finish read [03:17:21]Found Content-Length = 675 [03:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885839", "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" : 9.190, "sum" : 700.28, "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" ] } } [03:17:21]execute_script... [03:17: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)2885839", "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" : 9.190, "sum" : 700.28, "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" ] } } [03:17:21]POST & json_proto [03:17:21]process_json_proto [03:17:21]json parsed OK: [03:17:21]protocol is kg_v1.0 [03:17:21]action value=close_receipt [03:17:21]process_action close_receipt [03:17:21]cmd_close_receipt [03:17:21]MH_GetDate [03:17:21]Write to MH i2c: F0 00 00 A3 37 C9 [03:17:21]Write i2c OK [03:17:21]MH_I2C_Read... [03:17:21]Read from MH i2c: F0 [03:17:21]MH_I2C_Read... [03:17:21]Read from MH i2c: F0 09 00 [03:17:21]MH_I2C_Read... [03:17:21]Read from MH i2c: F0 09 00 A3 37 00 44 19 17 67 6B 98 1E 66 34 [03:17:21]GetLastDocTimeStamp 1729566283 [03:17:21]current date 1729567044 [03:17:21]FM_GetShiftState [03:17:21]SAM_PROTO_GetShiftState [03:17:21]wFMCommunicate request_size=4 [03:17:21]MH_SAM_APDU [03:17:21]CAPDU: 80 13 01 00 [03:17:21]Write to MH i2c: E2 08 00 A4 37 80 13 01 00 00 00 00 00 58 [03:17:21]Write i2c OK [03:17:21]MH_I2C_Read... [03:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:21]Read from MH i2c: E2 [03:17:21]MH_I2C_Read... [03:17:21]Read from MH i2c: E2 0E 00 [03:17:21]MH_I2C_Read... [03:17:21]Read from MH i2c: E2 0E 00 A4 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [03:17:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [03:17:21]wFMCommunicate OK [03:17:21]SAM_PROTO_GetShiftState done [03:17:21]FM_GetShiftState done [03:17:21]opened in 1729555832 [03:17:21]opened+sec_in_day 1729642232 [03:17:21]quantity*price = 70027 [03:17:21]sum+1 = 70029 [03:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 21 22.10.2024 03:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70073 ФПД: 234829376428474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70073&fm=234829376428474&tin=02508201610067®Number=0000000000156251&sum=70000 [03:17:22]StoreToDocumentArchive [03:17:22]shift 195 fd 70073 [03:17:22]save to /storage/0195/doc_00070073 [03:17:22]save last doc name /storage/0195/doc_00070073 to /storage/kkm_last_doc_name [03:17:22]save OK [03:17:22]Clear old archive folders... [03:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:17:22]tlvbuf is 0117C160 [03:17:22]SAM_PROTO_ClearQueue [03:17:22]wFMCommunicate request_size=4 [03:17:22]MH_SAM_APDU [03:17:22]CAPDU: 80 09 00 00 [03:17:22]Write to MH i2c: E2 08 00 B1 37 80 09 00 00 00 00 00 00 5A [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 B1 37 00 90 00 5C [03:17:22]RAPDU: 90 00 [03:17:22]wFMCommunicate OK [03:17:22]SAM_PROTO_ClearQueue done [03:17:22]KKMCreateOFDPacket [03:17:22]OFDProtocolAddRootSTLVToBuf [03:17:22]FM_MakeSignedData [03:17:22]FM_MakeSignedData [03:17:22]SAM_PROTO_SignData [03:17:22]wFMCommunicate request_size=4 [03:17:22]MH_SAM_APDU [03:17:22]CAPDU: 80 0D 01 02 [03:17:22]Write to MH i2c: E2 08 00 B2 37 80 0D 01 02 00 00 00 00 62 [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:17:22]Read from MH i2c: E2 03 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 B2 37 00 90 00 5D [03:17:22]RAPDU: 90 00 [03:17:22]wFMCommunicate OK [03:17:22]wFMCommunicate request_size=255 [03:17:22]MH_SAM_APDU [03:17: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 15 00 00 00 F4 03 04 00 44 19 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 11 01 00 35 04 06 00 D5 93 79 90 [03:17:22]Write to MH i2c: E2 02 01 B3 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 15 00 00 00 F4 03 04 00 44 19 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 11 01 00 35 04 06 00 D5 93 79 90 00 00 CC [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 B3 37 00 90 00 5E [03:17:22]RAPDU: 90 00 [03:17:22]wFMCommunicate OK [03:17:22]wFMCommunicate request_size=7 [03:17:22]MH_SAM_APDU [03:17:22]CAPDU: 80 0D 02 02 02 99 BA [03:17:22]Write to MH i2c: E2 0A 00 B4 37 80 0D 02 02 02 00 99 BA 00 00 BC [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 03 00 B4 37 00 90 00 5F [03:17:22]RAPDU: 90 00 [03:17:22]wFMCommunicate OK [03:17:22]wFMCommunicate request_size=4 [03:17:22]MH_SAM_APDU [03:17:22]CAPDU: 80 0D 03 02 [03:17:22]Write to MH i2c: E2 08 00 B5 37 80 0D 03 02 00 00 00 00 67 [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 0B 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 0B 00 B5 37 00 E7 26 1A B8 F4 09 70 A0 90 00 54 [03:17:22]RAPDU: E7 26 1A B8 F4 09 70 A0 90 00 [03:17:22]wFMCommunicate OK [03:17:22]SAM_PROTO_SignData done [03:17:22]FM_MakeSignedData done [03:17:22]CreateOFDProtocolMessage [03:17:22]wFMCommunicate request_size=4 [03:17:22]MH_SAM_APDU [03:17:22]CAPDU: 80 11 00 00 [03:17:22]Write to MH i2c: E2 08 00 B6 37 80 11 00 00 00 00 00 00 67 [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:22]Read from MH i2c: E2 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 17 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: E2 17 00 B6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [03:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:17:22]wFMCommunicate OK [03:17:22]CreateOFDProtocolMessage done [03:17:22]OFDSenderStorePacket 70073 [03:17:22]StoreOFDPacket docnum=70073 [03:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 06 5D 04 01 45 A0 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 15 00 00 00 F4 03 04 00 44 19 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 11 01 00 35 04 06 00 D5 93 79 90 99 BA E7 26 1A B8 F4 09 70 A0 [03:17:22]CheckFolder [03:17:22]dirname=/storage/ofd_packets [03:17:22]CheckFolder done [03:17:22]ProducePacketName [03:17:22]name=ofd_packets/00070073 [03:17:22]NVStorageSaveData ofd_packets/00070073 [03:17:22]File name is /storage/ofd_packets/00070073 [03:17:22]Write 298 bytes [03:17:22]NVStorageSaveData done [03:17:22]OFDSenderStorePacket done [03:17:22]KKMCreateOFDPacket done [03:17:22]NVStorageSaveData kkm_last_timestamp [03:17:22]File name is /storage/kkm_last_timestamp [03:17:22]Write 4 bytes [03:17:22]NVStorageSaveData done [03:17:22]ExternCall_PrintAddStr [03:17:22]wPrintStart [03:17:22]Write to MH i2c: 01 00 00 B7 37 EE [03:17:22]Write i2c OK [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: 01 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: 01 07 00 [03:17:22]MH_I2C_Read... [03:17:22]Read from MH i2c: 01 07 00 B7 37 00 00 00 00 00 FF 0F 03 [03:17:22]RasterBufferAndPrint [03:17:22]line Счет N : (1)2885839 [03:17:22]line ИНН: 02508201610067 [03:17:22]line Контрольно-Кассовый Чек [03:17:22]line ПРОДАЖА [03:17:22]line ТРК (МРК, ГНК) : 51 [03:17:22]line Товар: 2710194210 [03:17:22]line ДТ-К-5 [03:17:22]line 9.190 * 76.20 [03:17:22]line = 700.28 [03:17:22]line НДС 12% НСП 1% [03:17:22]line > о реализуемом товаре [03:17:22]line ОКРУГЛЕНИЕ: -0.28 [03:17:22]line ИТОГО: 700.00 [03:17:22]line Внесено: 700.00 [03:17:22]line СДАЧА: 0.00 [03:17:22]line НСП 1% : 6.20 [03:17:22]line НДС 12% : 74.37 [03:17:22]line Наличными: 700.00 [03:17:22]line Безнал.: 0.00 [03:17:22]line Место: АЗС № 85 "Партнер Нефть" [03:17:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:17:22]line СНО: Общий режим [03:17:22]line Чек 21 22.10.2024 03:17 [03:17:22]line Смена: 195 ФФД: 1.0 [03:17:22]line ЗНМ: 0300000167 [03:17:23]line РНМ: 0000000000156251 [03:17:23]line Версия ККМ: v1.0 [03:17:23]line ФМ: 0000000000963346 [03:17:23]line ФД: 70073 [03:17:23]line ФПД: 234829376428474 [03:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70073&fm=234829376428474&tin=02508201610067®Number=0000000000156251&sum=70000 [03:17:23]OFD Sender: Processing packet 70073 [packets to send 18, broken 17] [03:17:23]ProducePacketName [03:17:23]name=ofd_packets/00070073 [03:17:23]OFD Sender: To server: pG, [03:17:23]CommunicateWithHost lk.salyk.kg:30040 [03:17:23]ConnectInit lk.salyk.kg [03:17:23]written 0, free lines is 4095 [03:17:23]Connected sock=10 [03:17: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 34 36 0C 01 00 00 06 5D 04 01 45 A0 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 15 00 00 00 F4 03 04 00 44 19 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 11 01 00 35 04 06 00 D5 93 79 90 99 BA E7 26 1A B8 F4 09 70 A0 [03:17: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 34 36 4F 00 00 00 8E 9D 47 00 53 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 34 36 10 04 04 00 B9 11 01 00 F4 03 04 00 E6 C2 16 67 B6 04 01 00 00 AF 25 57 84 52 B4 5A 48 [03:17:23]CommunicateWithHost err = 0 [03:17:23]CheckOFDResponse [03:17:23]1017 (14) - 77093643461234 [03:17:23]1041 (16) - 0000000000963346 [03:17:23]1040 (4) - 70073 [03:17:23]1012 (4) - 21.10.2024 21:08 [03:17:23]1206 (1) - 0 [03:17:23]OFD Sender: Remove packet 70073 [03:17:23]ProducePacketName [03:17:23]name=ofd_packets/00070073 [03:17:23]NVStorageDeleteData [03:17:23]Write to MH i2c: 01 00 00 E2 37 19 [03:17:23]Write i2c OK [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: 01 [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: 01 07 00 [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: 01 07 00 E2 37 00 00 00 00 00 ED 0C 19 [03:17:23]RasterBufferAndPrint [03:17:23]line [03:17:23]line [03:17:23]line [03:17:23]line [03:17:23]line [03:17:23]written 0, free lines is 3315 [03:17:23]MH_Cut [03:17:23]Write to MH i2c: D1 01 00 E9 37 01 F2 [03:17:23]Write i2c OK [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: D1 [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: D1 01 00 [03:17:23]MH_I2C_Read... [03:17:23]Read from MH i2c: D1 01 00 E9 37 00 F1 [03:17:23]Write to MH i2c: 01 00 00 EA 37 21 [03:17:23]Write i2c OK [03:17:23]MH_I2C_Read... [03:17:23]OFD Sender: No OFD packet to send [03:17:24]*** Cut start [03:17:24]*** Partial cut [03:17:24]*** CUTSNS_PIN = 1 [03:17:24]*** CUTSNS_PIN = 0 [03:17:24]*** Brake cut motor [03:17:24]Read from MH i2c: 01 [03:17:24]MH_I2C_Read... [03:17:24]*** Stop cut motor [03:17:24]*** Cut end [03:17:24]Read from MH i2c: 01 07 00 [03:17:24]MH_I2C_Read... [03:17:24]Read from MH i2c: 01 07 00 EA 37 00 00 00 00 00 FF 0F 36 [03:17:24]process_action close_receipt done [03:17:24]requested_data is exist [03:17:24]produce_requested_data [03:17:24]requested_item fm.sn is exist - process it [03:17:24]wFMCommunicate request_size=4 [03:17:24]MH_SAM_APDU [03:17:24]CAPDU: 80 11 00 00 [03:17:24]Write to MH i2c: E2 08 00 EB 37 80 11 00 00 00 00 00 00 9C [03:17:24]Write i2c OK [03:17:24]MH_I2C_Read... [03:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:24]Read from MH i2c: E2 [03:17:24]MH_I2C_Read... [03:17:24]Read from MH i2c: E2 17 00 [03:17:24]MH_I2C_Read... [03:17:24]Read from MH i2c: E2 17 00 EB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [03:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:17:24]wFMCommunicate OK [03:17:24]requested_item fd.num is exist - process it [03:17:24]SAM_PROTO_GetFieldsCounters [03:17:24]wFMCommunicate request_size=4 [03:17:24]MH_SAM_APDU [03:17:24]CAPDU: 80 13 00 00 [03:17:24]Write to MH i2c: E2 08 00 EC 37 80 13 00 00 00 00 00 00 9F [03:17:24]Write i2c OK [03:17:24]MH_I2C_Read... [03:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:17:25]Read from MH i2c: E2 [03:17:25]MH_I2C_Read... [03:17:25]Read from MH i2c: E2 62 00 [03:17:25]MH_I2C_Read... [03:17:25]Read from MH i2c: E2 62 00 EC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 11 01 00 0E 04 04 00 C3 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 87 [03:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 11 01 00 0E 04 04 00 C3 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 [03:17:25]wFMCommunicate OK [03:17:25]SAM_PROTO_GetFieldsCounters done [03:17:25]requested_item shift.num is exist - process it [03:17:25]requested_item shift.opened is exist - process it [03:17:25]req_shift_opened [03:17:25]FM_GetShiftState [03:17:25]SAM_PROTO_GetShiftState [03:17:25]wFMCommunicate request_size=4 [03:17:25]MH_SAM_APDU [03:17:25]CAPDU: 80 13 01 00 [03:17:25]Write to MH i2c: E2 08 00 ED 37 80 13 01 00 00 00 00 00 A1 [03:17:25]Write i2c OK [03:17:25]MH_I2C_Read... [03:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:25]Read from MH i2c: E2 [03:17:25]MH_I2C_Read... [03:17:25]Read from MH i2c: E2 0E 00 [03:17:25]MH_I2C_Read... [03:17:25]Read from MH i2c: E2 0E 00 ED 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8F [03:17:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [03:17:25]wFMCommunicate OK [03:17:25]SAM_PROTO_GetShiftState done [03:17:25]FM_GetShiftState done [03:17:25]req_shift_opened done [03:17:25]requested_item shift.open_date is exist - process it [03:17:25]req_shift_open_date [03:17:25]req_shift_open_date done [03:17:25]produce_requested_data done [03:17:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70073,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [03:17:25]process_action_free close_receipt [03:17:25]json_value_free [03:17:25]json_value_free done [03:17:25]process_json_proto returns [03:17:25]Send response to host [03:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70073,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [03:17:25]free response buf [03:17:25]execute_script done [03:17:25]execute_script returns [03:17:25]free content buf [03:17:25]Sock 9.Close socket [03:17:25]Sock 9.Thread stoped [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19: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:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:17]recv_with_timeout no data received [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:38]recv_with_timeout no data received [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]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:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]recv_with_timeout no data received [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:02]accept exits with 7 [04:10:02]New connection [04:10:02]New thread 3067026788 created [04:10:02]Thread 3067170148 joined [04:10:02]Waiting for new connection... [04:10:02] Sock 7.Parse request [04:10:02]Sock 7.Check first char [04:10:02]Sock 7.First char is OK [04:10:02]request: POST /json_proto HTTP/1.0 [04:10:02]Method: POST [04:10:02]URL: /json_proto [04:10:02]Method is POST - this is cgi request [04:10:02]url: /json_proto [04:10:02]query_string will be loaded in cgi processing [04:10:02]execute_cgi json_proto POST (null) [04:10:02]execute_cgi path=json_proto method=POST [04:10:02]POST find Content-Length [04:10:02]Host: 172.17.50.3:8080 [04:10:02]Content-Length: 686 [04:10:02]Content-Type: application/json [04:10:02] [04:10:02]POST finish read [04:10:02]Found Content-Length = 686 [04:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [04:10:02]execute_script... [04:10: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)2885840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [04:10:02]POST & json_proto [04:10:02]process_json_proto [04:10:02]json parsed OK: [04:10:02]protocol is kg_v1.0 [04:10:02]action value=close_receipt [04:10:02]process_action close_receipt [04:10:02]cmd_close_receipt [04:10:02]MH_GetDate [04:10:02]Write to MH i2c: F0 00 00 EE 37 14 [04:10:02]Write i2c OK [04:10:02]MH_I2C_Read... [04:10:02]Read from MH i2c: F0 [04:10:02]MH_I2C_Read... [04:10:02]Read from MH i2c: F0 09 00 [04:10:02]MH_I2C_Read... [04:10:02]Read from MH i2c: F0 09 00 EE 37 00 9D 25 17 67 6B 98 1E 66 E4 [04:10:02]GetLastDocTimeStamp 1729567044 [04:10:02]current date 1729570205 [04:10:02]FM_GetShiftState [04:10:02]SAM_PROTO_GetShiftState [04:10:02]wFMCommunicate request_size=4 [04:10:02]MH_SAM_APDU [04:10:02]CAPDU: 80 13 01 00 [04:10:02]Write to MH i2c: E2 08 00 EF 37 80 13 01 00 00 00 00 00 A3 [04:10:02]Write i2c OK [04:10:02]MH_I2C_Read... [04:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:02]Read from MH i2c: E2 [04:10:02]MH_I2C_Read... [04:10:02]Read from MH i2c: E2 0E 00 [04:10:02]MH_I2C_Read... [04:10:02]Read from MH i2c: E2 0E 00 EF 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 91 [04:10:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:10:02]wFMCommunicate OK [04:10:02]SAM_PROTO_GetShiftState done [04:10:02]FM_GetShiftState done [04:10:02]opened in 1729555832 [04:10:02]opened+sec_in_day 1729642232 [04:10:02]quantity*price = 100011 [04:10:02]sum+1 = 100013 [04:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 22 22.10.2024 04:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70074 ФПД: 47068339298625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70074&fm=47068339298625&tin=02508201610067®Number=0000000000156251&sum=100000 [04:10:03]StoreToDocumentArchive [04:10:03]shift 195 fd 70074 [04:10:03]save to /storage/0195/doc_00070074 [04:10:03]save last doc name /storage/0195/doc_00070074 to /storage/kkm_last_doc_name [04:10:03]save OK [04:10:03]Clear old archive folders... [04:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:10:03]tlvbuf is 011275F0 [04:10:03]SAM_PROTO_ClearQueue [04:10:03]wFMCommunicate request_size=4 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 09 00 00 [04:10:03]Write to MH i2c: E2 08 00 FC 37 80 09 00 00 00 00 00 00 A5 [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 FC 37 00 90 00 A7 [04:10:03]RAPDU: 90 00 [04:10:03]wFMCommunicate OK [04:10:03]SAM_PROTO_ClearQueue done [04:10:03]KKMCreateOFDPacket [04:10:03]OFDProtocolAddRootSTLVToBuf [04:10:03]FM_MakeSignedData [04:10:03]FM_MakeSignedData [04:10:03]SAM_PROTO_SignData [04:10:03]wFMCommunicate request_size=4 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 0D 01 02 [04:10:03]Write to MH i2c: E2 08 00 FD 37 80 0D 01 02 00 00 00 00 AD [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 FD 37 00 90 00 A8 [04:10:03]RAPDU: 90 00 [04:10:03]wFMCommunicate OK [04:10:03]wFMCommunicate request_size=255 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 16 00 00 00 F4 03 04 00 9D 25 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 11 01 00 35 04 06 00 2A CE [04:10:03]Write to MH i2c: E2 02 01 FE 37 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 16 00 00 00 F4 03 04 00 9D 25 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 11 01 00 35 04 06 00 2A CE 00 00 EE [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 FE 37 00 90 00 A9 [04:10:03]RAPDU: 90 00 [04:10:03]wFMCommunicate OK [04:10:03]wFMCommunicate request_size=9 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 0D 02 02 04 F3 A4 E1 41 [04:10:03]Write to MH i2c: E2 0C 00 FF 37 80 0D 02 02 04 00 F3 A4 E1 41 00 00 71 [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 03 00 FF 37 00 90 00 AA [04:10:03]RAPDU: 90 00 [04:10:03]wFMCommunicate OK [04:10:03]wFMCommunicate request_size=4 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 0D 03 02 [04:10:03]Write to MH i2c: E2 08 00 00 38 80 0D 03 02 00 00 00 00 B3 [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 0B 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 0B 00 00 38 00 D4 AF 83 D0 54 BD 33 43 90 00 11 [04:10:03]RAPDU: D4 AF 83 D0 54 BD 33 43 90 00 [04:10:03]wFMCommunicate OK [04:10:03]SAM_PROTO_SignData done [04:10:03]FM_MakeSignedData done [04:10:03]CreateOFDProtocolMessage [04:10:03]wFMCommunicate request_size=4 [04:10:03]MH_SAM_APDU [04:10:03]CAPDU: 80 11 00 00 [04:10:03]Write to MH i2c: E2 08 00 01 38 80 11 00 00 00 00 00 00 B3 [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:03]Read from MH i2c: E2 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 17 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: E2 17 00 01 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [04:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:10:03]wFMCommunicate OK [04:10:03]CreateOFDProtocolMessage done [04:10:03]OFDSenderStorePacket 70074 [04:10:03]StoreOFDPacket docnum=70074 [04:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 3C E2 06 01 CB 1E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 16 00 00 00 F4 03 04 00 9D 25 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 11 01 00 35 04 06 00 2A CE F3 A4 E1 41 D4 AF 83 D0 54 BD 33 43 [04:10:03]CheckFolder [04:10:03]dirname=/storage/ofd_packets [04:10:03]CheckFolder done [04:10:03]ProducePacketName [04:10:03]name=ofd_packets/00070074 [04:10:03]NVStorageSaveData ofd_packets/00070074 [04:10:03]File name is /storage/ofd_packets/00070074 [04:10:03]Write 300 bytes [04:10:03]NVStorageSaveData done [04:10:03]OFDSenderStorePacket done [04:10:03]KKMCreateOFDPacket done [04:10:03]NVStorageSaveData kkm_last_timestamp [04:10:03]File name is /storage/kkm_last_timestamp [04:10:03]Write 4 bytes [04:10:03]NVStorageSaveData done [04:10:03]ExternCall_PrintAddStr [04:10:03]wPrintStart [04:10:03]Write to MH i2c: 01 00 00 02 38 3A [04:10:03]Write i2c OK [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: 01 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: 01 07 00 [04:10:03]MH_I2C_Read... [04:10:03]Read from MH i2c: 01 07 00 02 38 00 00 00 00 00 FF 0F 4F [04:10:03]RasterBufferAndPrint [04:10:03]line Счет N : (1)2885840 [04:10:03]line ИНН: 02508201610067 [04:10:03]line Контрольно-Кассовый Чек [04:10:03]line ПРОДАЖА [04:10:03]line ТРК (МРК, ГНК) : 71 [04:10:03]line Товар: 2711129700 [04:10:03]line ГАЗ-К-3 [04:10:03]line 25.710 * 38.90 [04:10:03]line = 1000.12 [04:10:03]line НДС 12% НСП 1% [04:10:03]line > о реализуемом товаре [04:10:03]line ОКРУГЛЕНИЕ: -0.12 [04:10:03]line ИТОГО: 1000.00 [04:10:03]line Внесено: 1000.00 [04:10:03]line СДАЧА: 0.00 [04:10:03]line НСП 1% : 8.85 [04:10:03]line НДС 12% : 106.21 [04:10:03]line Наличными: 1000.00 [04:10:03]line Безнал.: 0.00 [04:10:03]line Место: АЗС № 85 "Партнер Нефть" [04:10:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:10:03]line СНО: Общий режим [04:10:03]line Чек 22 22.10.2024 04:10 [04:10:03]line Смена: 195 ФФД: 1.0 [04:10:03]line ЗНМ: 0300000167 [04:10:03]line РНМ: 0000000000156251 [04:10:03]line Версия ККМ: v1.0 [04:10:03]line ФМ: 0000000000963346 [04:10:03]line ФД: 70074 [04:10:03]line ФПД: 47068339298625 [04:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70074&fm=47068339298625&tin=02508201610067®Number=0000000000156251&sum=100000 [04:10:04]OFD Sender: Processing packet 70074 [packets to send 18, broken 17] [04:10:04]ProducePacketName [04:10:04]name=ofd_packets/00070074 [04:10:04]OFD Sender: To server: pG, [04:10:04]CommunicateWithHost lk.salyk.kg:30040 [04:10:04]ConnectInit lk.salyk.kg [04:10:04]written 0, free lines is 4095 [04:10:04]Connected sock=11 [04:10: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 34 36 0E 01 00 00 3C E2 06 01 CB 1E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 16 00 00 00 F4 03 04 00 9D 25 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 11 01 00 35 04 06 00 2A CE F3 A4 E1 41 D4 AF 83 D0 54 BD 33 43 [04:10: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 34 36 4F 00 00 00 69 D9 47 00 10 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 11 01 00 F4 03 04 00 3F CF 16 67 B6 04 01 00 00 5F AE D0 BE 87 D2 94 12 [04:10:04]CommunicateWithHost err = 0 [04:10:04]CheckOFDResponse [04:10:04]1017 (14) - 77093643461234 [04:10:04]1041 (16) - 0000000000963346 [04:10:04]1040 (4) - 70074 [04:10:04]1012 (4) - 21.10.2024 22:01 [04:10:04]1206 (1) - 0 [04:10:04]OFD Sender: Remove packet 70074 [04:10:04]ProducePacketName [04:10:04]name=ofd_packets/00070074 [04:10:04]NVStorageDeleteData [04:10:04]Write to MH i2c: 01 00 00 2D 38 65 [04:10:04]Write i2c OK [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: 01 [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: 01 07 00 [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: 01 07 00 2D 38 00 00 00 00 00 E6 0C 5E [04:10:04]RasterBufferAndPrint [04:10:04]line [04:10:04]line [04:10:04]line [04:10:04]line [04:10:04]line [04:10:04]written 0, free lines is 3309 [04:10:04]MH_Cut [04:10:04]Write to MH i2c: D1 01 00 34 38 01 3E [04:10:04]Write i2c OK [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: D1 [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: D1 01 00 [04:10:04]MH_I2C_Read... [04:10:04]Read from MH i2c: D1 01 00 34 38 00 3D [04:10:04]Write to MH i2c: 01 00 00 35 38 6D [04:10:04]Write i2c OK [04:10:04]MH_I2C_Read... [04:10:05]OFD Sender: No OFD packet to send [04:10:05]*** Cut start [04:10:05]*** Partial cut [04:10:05]*** CUTSNS_PIN = 1 [04:10:05]*** CUTSNS_PIN = 0 [04:10:05]*** Brake cut motor [04:10:06]Read from MH i2c: 01 [04:10:06]MH_I2C_Read... [04:10:06]*** Stop cut motor [04:10:06]*** Cut end [04:10:06]Read from MH i2c: 01 07 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: 01 07 00 35 38 00 00 00 00 00 FF 0F 82 [04:10:06]process_action close_receipt done [04:10:06]requested_data is exist [04:10:06]produce_requested_data [04:10:06]requested_item fm.sn is exist - process it [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 11 00 00 [04:10:06]Write to MH i2c: E2 08 00 36 38 80 11 00 00 00 00 00 00 E8 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 17 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 17 00 36 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [04:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:10:06]wFMCommunicate OK [04:10:06]requested_item fd.num is exist - process it [04:10:06]SAM_PROTO_GetFieldsCounters [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 13 00 00 [04:10:06]Write to MH i2c: E2 08 00 37 38 80 13 00 00 00 00 00 00 EB [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 62 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 62 00 37 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 11 01 00 0E 04 04 00 C3 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 D7 [04:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 11 01 00 0E 04 04 00 C3 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 [04:10:06]wFMCommunicate OK [04:10:06]SAM_PROTO_GetFieldsCounters done [04:10:06]requested_item shift.num is exist - process it [04:10:06]requested_item shift.opened is exist - process it [04:10:06]req_shift_opened [04:10:06]FM_GetShiftState [04:10:06]SAM_PROTO_GetShiftState [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 13 01 00 [04:10:06]Write to MH i2c: E2 08 00 38 38 80 13 01 00 00 00 00 00 ED [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 0E 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 0E 00 38 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DB [04:10:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:10:06]wFMCommunicate OK [04:10:06]SAM_PROTO_GetShiftState done [04:10:06]FM_GetShiftState done [04:10:06]req_shift_opened done [04:10:06]requested_item shift.open_date is exist - process it [04:10:06]req_shift_open_date [04:10:06]req_shift_open_date done [04:10:06]produce_requested_data done [04:10:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70074,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:10:06]process_action_free close_receipt [04:10:06]json_value_free [04:10:06]json_value_free done [04:10:06]process_json_proto returns [04:10:06]Send response to host [04:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70074,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:10:06]free response buf [04:10:06]execute_script done [04:10:06]execute_script returns [04:10:06]free content buf [04:10:06]Sock 7.Close socket [04:10:06]Sock 7.Thread stoped [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:12:57]accept exits with 9 [04:12:57]New connection [04:12:57]New thread 3067170148 created [04:12:57]Thread 3067026788 joined [04:12:57]Waiting for new connection... [04:12:57] Sock 9.Parse request [04:12:57]Sock 9.Check first char [04:12:57]Sock 9.First char is OK [04:12:57]request: POST /json_proto HTTP/1.0 [04:12:57]Method: POST [04:12:57]URL: /json_proto [04:12:57]Method is POST - this is cgi request [04:12:57]url: /json_proto [04:12:57]query_string will be loaded in cgi processing [04:12:57]execute_cgi json_proto POST (null) [04:12:57]execute_cgi path=json_proto method=POST [04:12:57]POST find Content-Length [04:12:57]Host: 172.17.50.3:8080 [04:12:57]Content-Length: 689 [04:12:57]Content-Type: application/json [04:12:57] [04:12:57]POST finish read [04:12:57]Found Content-Length = 689 [04:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [04:12:57]execute_script... [04:12: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)2885841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [04:12:57]POST & json_proto [04:12:57]process_json_proto [04:12:57]json parsed OK: [04:12:57]protocol is kg_v1.0 [04:12:57]action value=close_receipt [04:12:57]process_action close_receipt [04:12:57]cmd_close_receipt [04:12:57]MH_GetDate [04:12:57]Write to MH i2c: F0 00 00 39 38 60 [04:12:57]Write i2c OK [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: F0 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: F0 09 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: F0 09 00 39 38 00 4D 26 17 67 6B 98 1E 66 E1 [04:12:57]GetLastDocTimeStamp 1729570205 [04:12:57]current date 1729570381 [04:12:57]FM_GetShiftState [04:12:57]SAM_PROTO_GetShiftState [04:12:57]wFMCommunicate request_size=4 [04:12:57]MH_SAM_APDU [04:12:57]CAPDU: 80 13 01 00 [04:12:57]Write to MH i2c: E2 08 00 3A 38 80 13 01 00 00 00 00 00 EF [04:12:57]Write i2c OK [04:12:57]MH_I2C_Read... [04:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:57]Read from MH i2c: E2 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 0E 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 0E 00 3A 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DD [04:12:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:12:57]wFMCommunicate OK [04:12:57]SAM_PROTO_GetShiftState done [04:12:57]FM_GetShiftState done [04:12:57]opened in 1729555832 [04:12:57]opened+sec_in_day 1729642232 [04:12:57]quantity*price = 100051 [04:12:57]sum+1 = 100052 [04:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 23 22.10.2024 04:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70075 ФПД: 246894463052917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70075&fm=246894463052917&tin=02508201610067®Number=0000000000156251&sum=100000 [04:12:58]StoreToDocumentArchive [04:12:58]shift 195 fd 70075 [04:12:58]save to /storage/0195/doc_00070075 [04:12:58]save last doc name /storage/0195/doc_00070075 to /storage/kkm_last_doc_name [04:12:58]save OK [04:12:58]Clear old archive folders... [04:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:12:58]tlvbuf is 01101750 [04:12:58]SAM_PROTO_ClearQueue [04:12:58]wFMCommunicate request_size=4 [04:12:58]MH_SAM_APDU [04:12:58]CAPDU: 80 09 00 00 [04:12:58]Write to MH i2c: E2 08 00 47 38 80 09 00 00 00 00 00 00 F1 [04:12:58]Write i2c OK [04:12:58]MH_I2C_Read... [04:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:58]Read from MH i2c: E2 [04:12:58]MH_I2C_Read... [04:12:58]Read from MH i2c: E2 03 00 [04:12:58]MH_I2C_Read... [04:12:58]Read from MH i2c: E2 03 00 47 38 00 90 00 F3 [04:12:58]RAPDU: 90 00 [04:12:58]wFMCommunicate OK [04:12:58]SAM_PROTO_ClearQueue done [04:12:58]KKMCreateOFDPacket [04:12:58]OFDProtocolAddRootSTLVToBuf [04:12:58]FM_MakeSignedData [04:12:58]FM_MakeSignedData [04:12:58]SAM_PROTO_SignData [04:12:58]wFMCommunicate request_size=4 [04:12:58]MH_SAM_APDU [04:12:58]CAPDU: 80 0D 01 02 [04:12:58]Write to MH i2c: E2 08 00 48 38 80 0D 01 02 00 00 00 00 F9 [04:12:58]Write i2c OK [04:12:58]MH_I2C_Read... [04:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:59]Read from MH i2c: E2 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 48 38 00 90 00 F4 [04:12:59]RAPDU: 90 00 [04:12:59]wFMCommunicate OK [04:12:59]wFMCommunicate request_size=255 [04:12:59]MH_SAM_APDU [04:12:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 00 00 00 F4 03 04 00 4D 26 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 11 01 [04:12:59]Write to MH i2c: E2 02 01 49 38 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 00 00 00 F4 03 04 00 4D 26 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 11 01 00 00 E3 [04:12:59]Write i2c OK [04:12:59]MH_I2C_Read... [04:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:59]Read from MH i2c: E2 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 49 38 00 90 00 F5 [04:12:59]RAPDU: 90 00 [04:12:59]wFMCommunicate OK [04:12:59]wFMCommunicate request_size=16 [04:12:59]MH_SAM_APDU [04:12:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E0 8C 98 C4 6C 75 [04:12:59]Write to MH i2c: E2 13 00 4A 38 80 0D 02 02 0B 00 00 35 04 06 00 E0 8C 98 C4 6C 75 00 00 FA [04:12:59]Write i2c OK [04:12:59]MH_I2C_Read... [04:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:59]Read from MH i2c: E2 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 03 00 4A 38 00 90 00 F6 [04:12:59]RAPDU: 90 00 [04:12:59]wFMCommunicate OK [04:12:59]wFMCommunicate request_size=4 [04:12:59]MH_SAM_APDU [04:12:59]CAPDU: 80 0D 03 02 [04:12:59]Write to MH i2c: E2 08 00 4B 38 80 0D 03 02 00 00 00 00 FE [04:12:59]Write i2c OK [04:12:59]MH_I2C_Read... [04:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:59]Read from MH i2c: E2 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 0B 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 0B 00 4B 38 00 89 13 08 1F E4 FF 7B 2A 90 00 4A [04:12:59]RAPDU: 89 13 08 1F E4 FF 7B 2A 90 00 [04:12:59]wFMCommunicate OK [04:12:59]SAM_PROTO_SignData done [04:12:59]FM_MakeSignedData done [04:12:59]CreateOFDProtocolMessage [04:12:59]wFMCommunicate request_size=4 [04:12:59]MH_SAM_APDU [04:12:59]CAPDU: 80 11 00 00 [04:12:59]Write to MH i2c: E2 08 00 4C 38 80 11 00 00 00 00 00 00 FE [04:12:59]Write i2c OK [04:12:59]MH_I2C_Read... [04:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:59]Read from MH i2c: E2 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 17 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: E2 17 00 4C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [04:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:12:59]wFMCommunicate OK [04:12:59]CreateOFDProtocolMessage done [04:12:59]OFDSenderStorePacket 70075 [04:12:59]StoreOFDPacket docnum=70075 [04:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 61 19 0D 01 F0 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 00 00 00 F4 03 04 00 4D 26 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 11 01 00 35 04 06 00 E0 8C 98 C4 6C 75 89 13 08 1F E4 FF 7B 2A [04:12:59]CheckFolder [04:12:59]dirname=/storage/ofd_packets [04:12:59]CheckFolder done [04:12:59]ProducePacketName [04:12:59]name=ofd_packets/00070075 [04:12:59]NVStorageSaveData ofd_packets/00070075 [04:12:59]File name is /storage/ofd_packets/00070075 [04:12:59]Write 307 bytes [04:12:59]NVStorageSaveData done [04:12:59]OFDSenderStorePacket done [04:12:59]KKMCreateOFDPacket done [04:12:59]NVStorageSaveData kkm_last_timestamp [04:12:59]File name is /storage/kkm_last_timestamp [04:12:59]Write 4 bytes [04:12:59]NVStorageSaveData done [04:12:59]ExternCall_PrintAddStr [04:12:59]wPrintStart [04:12:59]Write to MH i2c: 01 00 00 4D 38 85 [04:12:59]Write i2c OK [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: 01 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: 01 07 00 [04:12:59]MH_I2C_Read... [04:12:59]Read from MH i2c: 01 07 00 4D 38 00 00 00 00 00 FF 0F 9A [04:12:59]RasterBufferAndPrint [04:12:59]line Счет N : (1)2885841 [04:12:59]line ИНН: 02508201610067 [04:12:59]line Контрольно-Кассовый Чек [04:12:59]line ПРОДАЖА [04:12:59]line ТРК (МРК, ГНК) : 31 [04:12:59]line Товар: 2710194240 [04:12:59]line D-ENERGY Дт-К-2 [04:12:59]line 12.960 * 77.20 [04:12:59]line = 1000.51 [04:12:59]line НДС 12% НСП 1% [04:12:59]line > о реализуемом товаре [04:12:59]line ОКРУГЛЕНИЕ: -0.51 [04:12:59]line ИТОГО: 1000.00 [04:12:59]line Внесено: 1000.00 [04:12:59]line СДАЧА: 0.00 [04:12:59]line НСП 1% : 8.85 [04:12:59]line НДС 12% : 106.25 [04:12:59]line Наличными: 1000.00 [04:12:59]line Безнал.: 0.00 [04:12:59]line Место: АЗС № 85 "Партнер Нефть" [04:12:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:12:59]line СНО: Общий режим [04:12:59]line Чек 23 22.10.2024 04:13 [04:12:59]line Смена: 195 ФФД: 1.0 [04:12:59]line ЗНМ: 0300000167 [04:12:59]line РНМ: 0000000000156251 [04:12:59]line Версия ККМ: v1.0 [04:12:59]line ФМ: 0000000000963346 [04:12:59]line ФД: 70075 [04:12:59]line ФПД: 246894463052917 [04:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70075&fm=246894463052917&tin=02508201610067®Number=0000000000156251&sum=100000 [04:12:59]OFD Sender: Processing packet 70075 [packets to send 18, broken 17] [04:12:59]ProducePacketName [04:12:59]name=ofd_packets/00070075 [04:12:59]OFD Sender: To server: pG, [04:12:59]CommunicateWithHost lk.salyk.kg:30040 [04:12:59]ConnectInit lk.salyk.kg [04:12:59]written 0, free lines is 4095 [04:12:59]Connected sock=10 [04:12: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 34 36 15 01 00 00 61 19 0D 01 F0 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 00 00 00 F4 03 04 00 4D 26 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 11 01 00 35 04 06 00 E0 8C 98 C4 6C 75 89 13 08 1F E4 FF 7B 2A [04:13: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 34 36 4F 00 00 00 74 1A 47 00 34 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 34 36 10 04 04 00 BB 11 01 00 F4 03 04 00 EF CF 16 67 B6 04 01 00 00 BD CA 49 34 82 46 26 8E [04:13:00]CommunicateWithHost err = 0 [04:13:00]CheckOFDResponse [04:13:00]1017 (14) - 77093643461234 [04:13:00]1041 (16) - 0000000000963346 [04:13:00]1040 (4) - 70075 [04:13:00]1012 (4) - 21.10.2024 22:04 [04:13:00]1206 (1) - 0 [04:13:00]OFD Sender: Remove packet 70075 [04:13:00]ProducePacketName [04:13:00]name=ofd_packets/00070075 [04:13:00]NVStorageDeleteData [04:13:00]Write to MH i2c: 01 00 00 78 38 B0 [04:13:00]Write i2c OK [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: 01 [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: 01 07 00 [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: 01 07 00 78 38 00 00 00 00 00 FB 0C BE [04:13:00]RasterBufferAndPrint [04:13:00]line [04:13:00]line [04:13:00]line [04:13:00]line [04:13:00]line [04:13:00]written 0, free lines is 3330 [04:13:00]MH_Cut [04:13:00]Write to MH i2c: D1 01 00 7F 38 01 89 [04:13:00]Write i2c OK [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: D1 [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: D1 01 00 [04:13:00]MH_I2C_Read... [04:13:00]Read from MH i2c: D1 01 00 7F 38 00 88 [04:13:00]Write to MH i2c: 01 00 00 80 38 B8 [04:13:00]Write i2c OK [04:13:00]MH_I2C_Read... [04:13:00]OFD Sender: No OFD packet to send [04:13:00]*** Cut start [04:13:00]*** Partial cut [04:13:00]*** CUTSNS_PIN = 1 [04:13:00]*** CUTSNS_PIN = 0 [04:13:01]*** Brake cut motor [04:13:01]Read from MH i2c: 01 [04:13:01]MH_I2C_Read... [04:13:01]*** Stop cut motor [04:13:01]*** Cut end [04:13:01]Read from MH i2c: 01 07 00 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: 01 07 00 80 38 00 00 00 00 00 FF 0F CD [04:13:01]process_action close_receipt done [04:13:01]requested_data is exist [04:13:01]produce_requested_data [04:13:01]requested_item fm.sn is exist - process it [04:13:01]wFMCommunicate request_size=4 [04:13:01]MH_SAM_APDU [04:13:01]CAPDU: 80 11 00 00 [04:13:01]Write to MH i2c: E2 08 00 81 38 80 11 00 00 00 00 00 00 33 [04:13:01]Write i2c OK [04:13:01]MH_I2C_Read... [04:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:01]Read from MH i2c: E2 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 17 00 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 17 00 81 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [04:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:13:01]wFMCommunicate OK [04:13:01]requested_item fd.num is exist - process it [04:13:01]SAM_PROTO_GetFieldsCounters [04:13:01]wFMCommunicate request_size=4 [04:13:01]MH_SAM_APDU [04:13:01]CAPDU: 80 13 00 00 [04:13:01]Write to MH i2c: E2 08 00 82 38 80 13 00 00 00 00 00 00 36 [04:13:01]Write i2c OK [04:13:01]MH_I2C_Read... [04:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:13:01]Read from MH i2c: E2 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 62 00 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 62 00 82 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 11 01 00 0E 04 04 00 C3 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 26 [04:13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 11 01 00 0E 04 04 00 C3 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 [04:13:01]wFMCommunicate OK [04:13:01]SAM_PROTO_GetFieldsCounters done [04:13:01]requested_item shift.num is exist - process it [04:13:01]requested_item shift.opened is exist - process it [04:13:01]req_shift_opened [04:13:01]FM_GetShiftState [04:13:01]SAM_PROTO_GetShiftState [04:13:01]wFMCommunicate request_size=4 [04:13:01]MH_SAM_APDU [04:13:01]CAPDU: 80 13 01 00 [04:13:01]Write to MH i2c: E2 08 00 83 38 80 13 01 00 00 00 00 00 38 [04:13:01]Write i2c OK [04:13:01]MH_I2C_Read... [04:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:01]Read from MH i2c: E2 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 0E 00 [04:13:01]MH_I2C_Read... [04:13:01]Read from MH i2c: E2 0E 00 83 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 26 [04:13:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:13:01]wFMCommunicate OK [04:13:01]SAM_PROTO_GetShiftState done [04:13:01]FM_GetShiftState done [04:13:01]req_shift_opened done [04:13:01]requested_item shift.open_date is exist - process it [04:13:01]req_shift_open_date [04:13:01]req_shift_open_date done [04:13:01]produce_requested_data done [04:13:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70075,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:13:01]process_action_free close_receipt [04:13:01]json_value_free [04:13:01]json_value_free done [04:13:01]process_json_proto returns [04:13:01]Send response to host [04:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70075,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:13:01]free response buf [04:13:01]execute_script done [04:13:01]execute_script returns [04:13:01]free content buf [04:13:01]Sock 9.Close socket [04:13:01]Sock 9.Thread stoped [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:22]recv_with_timeout no data received [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:19]recv_with_timeout no data received [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:10]accept exits with 7 [04:40:10]New connection [04:40:10]New thread 3067026788 created [04:40:10]Thread 3067170148 joined [04:40:10]Waiting for new connection... [04:40:10] Sock 7.Parse request [04:40:10]Sock 7.Check first char [04:40:10]Sock 7.First char is OK [04:40:10]request: POST /json_proto HTTP/1.0 [04:40:10]Method: POST [04:40:10]URL: /json_proto [04:40:10]Method is POST - this is cgi request [04:40:10]url: /json_proto [04:40:10]query_string will be loaded in cgi processing [04:40:10]execute_cgi json_proto POST (null) [04:40:10]execute_cgi path=json_proto method=POST [04:40:10]POST find Content-Length [04:40:10]Host: 172.17.50.3:8080 [04:40:10]Content-Length: 770 [04:40:10]Content-Type: application/json [04:40:10] [04:40:10]POST finish read [04:40:10]Found Content-Length = 770 [04:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [04:40:10]execute_script... [04:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [04:40:10]POST & json_proto [04:40:10]process_json_proto [04:40:10]json parsed OK: [04:40:10]protocol is kg_v1.0 [04:40:10]action value=close_receipt [04:40:10]process_action close_receipt [04:40:10]cmd_close_receipt [04:40:10]MH_GetDate [04:40:10]Write to MH i2c: F0 00 00 84 38 AB [04:40:10]Write i2c OK [04:40:10]MH_I2C_Read... [04:40:10]Read from MH i2c: F0 [04:40:10]MH_I2C_Read... [04:40:10]Read from MH i2c: F0 09 00 [04:40:10]MH_I2C_Read... [04:40:10]Read from MH i2c: F0 09 00 84 38 00 AE 2C 17 67 6B 98 1E 66 93 [04:40:10]GetLastDocTimeStamp 1729570381 [04:40:10]current date 1729572014 [04:40:10]FM_GetShiftState [04:40:10]SAM_PROTO_GetShiftState [04:40:10]wFMCommunicate request_size=4 [04:40:10]MH_SAM_APDU [04:40:10]CAPDU: 80 13 01 00 [04:40:10]Write to MH i2c: E2 08 00 85 38 80 13 01 00 00 00 00 00 3A [04:40:10]Write i2c OK [04:40:10]MH_I2C_Read... [04:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:10]Read from MH i2c: E2 [04:40:10]MH_I2C_Read... [04:40:10]Read from MH i2c: E2 0E 00 [04:40:10]MH_I2C_Read... [04:40:10]Read from MH i2c: E2 0E 00 85 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 28 [04:40:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:40:10]wFMCommunicate OK [04:40:10]SAM_PROTO_GetShiftState done [04:40:10]FM_GetShiftState done [04:40:10]opened in 1729555832 [04:40:10]opened+sec_in_day 1729642232 [04:40:10]quantity*price = 100015 [04:40:10]sum+1 = 100017 [04:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 24 22.10.2024 04:40 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70076 ФПД: 263134706390907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044014&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70076&fm=263134706390907&tin=02508201610067®Number=0000000000156251&sum=100016 [04:40:11]StoreToDocumentArchive [04:40:11]shift 195 fd 70076 [04:40:11]save to /storage/0195/doc_00070076 [04:40:11]save last doc name /storage/0195/doc_00070076 to /storage/kkm_last_doc_name [04:40:11]save OK [04:40:11]Clear old archive folders... [04:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:40:11]tlvbuf is 0111F460 [04:40:11]SAM_PROTO_ClearQueue [04:40:11]wFMCommunicate request_size=4 [04:40:11]MH_SAM_APDU [04:40:11]CAPDU: 80 09 00 00 [04:40:11]Write to MH i2c: E2 08 00 92 38 80 09 00 00 00 00 00 00 3C [04:40:11]Write i2c OK [04:40:11]MH_I2C_Read... [04:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:11]Read from MH i2c: E2 [04:40:11]MH_I2C_Read... [04:40:11]Read from MH i2c: E2 03 00 [04:40:11]MH_I2C_Read... [04:40:11]Read from MH i2c: E2 03 00 92 38 00 90 00 3E [04:40:11]RAPDU: 90 00 [04:40:11]wFMCommunicate OK [04:40:11]SAM_PROTO_ClearQueue done [04:40:11]KKMCreateOFDPacket [04:40:11]OFDProtocolAddRootSTLVToBuf [04:40:11]FM_MakeSignedData [04:40:11]FM_MakeSignedData [04:40:11]SAM_PROTO_SignData [04:40:11]wFMCommunicate request_size=4 [04:40:11]MH_SAM_APDU [04:40:11]CAPDU: 80 0D 01 02 [04:40:11]Write to MH i2c: E2 08 00 93 38 80 0D 01 02 00 00 00 00 44 [04:40:11]Write i2c OK [04:40:11]MH_I2C_Read... [04:40:11]OFD Sender: No OFD packet to send [04:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:12]Read from MH i2c: E2 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 93 38 00 90 00 3F [04:40:12]RAPDU: 90 00 [04:40:12]wFMCommunicate OK [04:40:12]wFMCommunicate request_size=255 [04:40:12]MH_SAM_APDU [04:40: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 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 18 00 00 00 F4 03 04 00 AE 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 11 01 00 35 04 06 00 EF [04:40:12]Write to MH i2c: E2 02 01 94 38 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 18 00 00 00 F4 03 04 00 AE 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 11 01 00 35 04 06 00 EF 00 00 D7 [04:40:12]Write i2c OK [04:40:12]MH_I2C_Read... [04:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:12]Read from MH i2c: E2 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 94 38 00 90 00 40 [04:40:12]RAPDU: 90 00 [04:40:12]wFMCommunicate OK [04:40:12]wFMCommunicate request_size=10 [04:40:12]MH_SAM_APDU [04:40:12]CAPDU: 80 0D 02 02 05 51 D2 B3 D7 7B [04:40:12]Write to MH i2c: E2 0D 00 95 38 80 0D 02 02 05 00 51 D2 B3 D7 7B 00 00 79 [04:40:12]Write i2c OK [04:40:12]MH_I2C_Read... [04:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:12]Read from MH i2c: E2 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 03 00 95 38 00 90 00 41 [04:40:12]RAPDU: 90 00 [04:40:12]wFMCommunicate OK [04:40:12]wFMCommunicate request_size=4 [04:40:12]MH_SAM_APDU [04:40:12]CAPDU: 80 0D 03 02 [04:40:12]Write to MH i2c: E2 08 00 96 38 80 0D 03 02 00 00 00 00 49 [04:40:12]Write i2c OK [04:40:12]MH_I2C_Read... [04:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:12]Read from MH i2c: E2 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 0B 00 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 0B 00 96 38 00 8D D7 6F B4 F7 F5 53 69 90 00 79 [04:40:12]RAPDU: 8D D7 6F B4 F7 F5 53 69 90 00 [04:40:12]wFMCommunicate OK [04:40:12]SAM_PROTO_SignData done [04:40:12]FM_MakeSignedData done [04:40:12]CreateOFDProtocolMessage [04:40:12]wFMCommunicate request_size=4 [04:40:12]MH_SAM_APDU [04:40:12]CAPDU: 80 11 00 00 [04:40:12]Write to MH i2c: E2 08 00 97 38 80 11 00 00 00 00 00 00 49 [04:40:12]Write i2c OK [04:40:12]MH_I2C_Read... [04:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:12]Read from MH i2c: E2 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: E2 17 00 [04:40:12]MH_I2C_Read... [04:40:12]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 34 36 90 00 9B [04:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:12]wFMCommunicate OK [04:40:12]CreateOFDProtocolMessage done [04:40:12]OFDSenderStorePacket 70076 [04:40:12]StoreOFDPacket docnum=70076 [04:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0D 47 07 01 D7 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 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 18 00 00 00 F4 03 04 00 AE 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 11 01 00 35 04 06 00 EF 51 D2 B3 D7 7B 8D D7 6F B4 F7 F5 53 69 [04:40:12]CheckFolder [04:40:12]dirname=/storage/ofd_packets [04:40:12]CheckFolder done [04:40:12]ProducePacketName [04:40:12]name=ofd_packets/00070076 [04:40:12]NVStorageSaveData ofd_packets/00070076 [04:40:12]File name is /storage/ofd_packets/00070076 [04:40:12]Write 301 bytes [04:40:12]NVStorageSaveData done [04:40:12]OFDSenderStorePacket done [04:40:12]KKMCreateOFDPacket done [04:40:12]NVStorageSaveData kkm_last_timestamp [04:40:12]File name is /storage/kkm_last_timestamp [04:40:12]Write 4 bytes [04:40:12]NVStorageSaveData done [04:40:12]ExternCall_PrintAddStr [04:40:12]wPrintStart [04:40:12]Write to MH i2c: 01 00 00 98 38 D0 [04:40:12]Write i2c OK [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: 01 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: 01 07 00 [04:40:12]MH_I2C_Read... [04:40:12]Read from MH i2c: 01 07 00 98 38 00 00 00 00 00 FF 0F E5 [04:40:12]RasterBufferAndPrint [04:40:12]line Счет N : (1)2885843 [04:40:12]line ИНН: 02508201610067 [04:40:12]line Контрольно-Кассовый Чек [04:40:12]line ПРОДАЖА [04:40:12]line ТРК (МРК, ГНК) : 12 [04:40:12]line Товар: 2710124130 [04:40:12]line Аи-92-К-5 [04:40:12]line 14.950 * 66.90 [04:40:12]line = 1000.16 [04:40:12]line НДС 12% НСП 1% [04:40:12]line > о реализуемом товаре [04:40:12]line ИТОГО: 1000.16 [04:40:12]line НСП 1% : 8.85 [04:40:12]line НДС 12% : 106.21 [04:40:12]line Наличными: 0.00 [04:40:12]line Безнал.: 1000.16 [04:40:12]line Место: АЗС № 85 "Партнер Нефть" [04:40:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:40:12]line СНО: Общий режим [04:40:12]line Чек 24 22.10.2024 04:40 [04:40:12]line Смена: 195 ФФД: 1.0 [04:40:12]line ЗНМ: 0300000167 [04:40:12]line РНМ: 0000000000156251 [04:40:12]line Версия ККМ: v1.0 [04:40:12]line Платежная система: Mbank [04:40:12]line ФМ: 0000000000963346 [04:40:12]line ФД: 70076 [04:40:12]line ФПД: 263134706390907 [04:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044014&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70076&fm=263134706390907&tin=02508201610067®Number=0000000000156251&sum=100016 [04:40:12]OFD Sender: Processing packet 70076 [packets to send 18, broken 17] [04:40:12]ProducePacketName [04:40:12]name=ofd_packets/00070076 [04:40:12]OFD Sender: To server: pG, [04:40:12]CommunicateWithHost lk.salyk.kg:30040 [04:40:12]ConnectInit lk.salyk.kg [04:40:12]written 0, free lines is 4095 [04:40:12]Connected sock=10 [04:40: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 34 36 0F 01 00 00 0D 47 07 01 D7 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 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 18 00 00 00 F4 03 04 00 AE 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 11 01 00 35 04 06 00 EF 51 D2 B3 D7 7B 8D D7 6F B4 F7 F5 53 69 [04:40: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 34 36 4F 00 00 00 22 D9 47 00 9D 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 34 36 10 04 04 00 BC 11 01 00 F4 03 04 00 50 D6 16 67 B6 04 01 00 00 37 4F 1C 31 18 B1 62 21 [04:40:13]CommunicateWithHost err = 0 [04:40:13]CheckOFDResponse [04:40:13]1017 (14) - 77093643461234 [04:40:13]1041 (16) - 0000000000963346 [04:40:13]1040 (4) - 70076 [04:40:13]1012 (4) - 21.10.2024 22:31 [04:40:13]1206 (1) - 0 [04:40:13]OFD Sender: Remove packet 70076 [04:40:13]ProducePacketName [04:40:13]name=ofd_packets/00070076 [04:40:13]NVStorageDeleteData [04:40:13]Write to MH i2c: 01 00 00 C1 38 F9 [04:40:13]Write i2c OK [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: 01 [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: 01 07 00 [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: 01 07 00 C1 38 00 00 00 00 00 07 0D 14 [04:40:13]RasterBufferAndPrint [04:40:13]line [04:40:13]line [04:40:13]line [04:40:13]line [04:40:13]line [04:40:13]written 0, free lines is 3341 [04:40:13]MH_Cut [04:40:13]Write to MH i2c: D1 01 00 C8 38 01 D2 [04:40:13]Write i2c OK [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: D1 [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: D1 01 00 [04:40:13]MH_I2C_Read... [04:40:13]Read from MH i2c: D1 01 00 C8 38 00 D1 [04:40:13]Write to MH i2c: 01 00 00 C9 38 01 [04:40:13]Write i2c OK [04:40:13]MH_I2C_Read... [04:40:13]OFD Sender: No OFD packet to send [04:40:13]*** Cut start [04:40:13]*** Partial cut [04:40:13]*** CUTSNS_PIN = 1 [04:40:13]*** CUTSNS_PIN = 0 [04:40:14]*** Brake cut motor [04:40:14]Read from MH i2c: 01 [04:40:14]MH_I2C_Read... [04:40:14]*** Stop cut motor [04:40:14]*** Cut end [04:40:14]Read from MH i2c: 01 07 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: 01 07 00 C9 38 00 00 00 00 00 FF 0F 16 [04:40:14]process_action close_receipt done [04:40:14]requested_data is exist [04:40:14]produce_requested_data [04:40:14]requested_item fm.sn is exist - process it [04:40:14]wFMCommunicate request_size=4 [04:40:14]MH_SAM_APDU [04:40:14]CAPDU: 80 11 00 00 [04:40:14]Write to MH i2c: E2 08 00 CA 38 80 11 00 00 00 00 00 00 7C [04:40:14]Write i2c OK [04:40:14]MH_I2C_Read... [04:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:14]Read from MH i2c: E2 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 17 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 17 00 CA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [04:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:14]wFMCommunicate OK [04:40:14]requested_item fd.num is exist - process it [04:40:14]SAM_PROTO_GetFieldsCounters [04:40:14]wFMCommunicate request_size=4 [04:40:14]MH_SAM_APDU [04:40:14]CAPDU: 80 13 00 00 [04:40:14]Write to MH i2c: E2 08 00 CB 38 80 13 00 00 00 00 00 00 7F [04:40:14]Write i2c OK [04:40:14]MH_I2C_Read... [04:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:14]Read from MH i2c: E2 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 62 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 62 00 CB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 11 01 00 0E 04 04 00 C3 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 73 [04:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 11 01 00 0E 04 04 00 C3 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 [04:40:14]wFMCommunicate OK [04:40:14]SAM_PROTO_GetFieldsCounters done [04:40:14]requested_item shift.num is exist - process it [04:40:14]requested_item shift.opened is exist - process it [04:40:14]req_shift_opened [04:40:14]FM_GetShiftState [04:40:14]SAM_PROTO_GetShiftState [04:40:14]wFMCommunicate request_size=4 [04:40:14]MH_SAM_APDU [04:40:14]CAPDU: 80 13 01 00 [04:40:14]Write to MH i2c: E2 08 00 CC 38 80 13 01 00 00 00 00 00 81 [04:40:14]Write i2c OK [04:40:14]MH_I2C_Read... [04:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:14]Read from MH i2c: E2 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 0E 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 0E 00 CC 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6F [04:40:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:40:14]wFMCommunicate OK [04:40:14]SAM_PROTO_GetShiftState done [04:40:14]FM_GetShiftState done [04:40:14]req_shift_opened done [04:40:14]requested_item shift.open_date is exist - process it [04:40:14]req_shift_open_date [04:40:14]req_shift_open_date done [04:40:14]produce_requested_data done [04:40:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70076,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:40:14]process_action_free close_receipt [04:40:14]json_value_free [04:40:14]json_value_free done [04:40:14]process_json_proto returns [04:40:14]Send response to host [04:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70076,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:40:14]free response buf [04:40:14]execute_script done [04:40:14]execute_script returns [04:40:14]free content buf [04:40:14]Sock 7.Close socket [04:40:14]Sock 7.Thread stoped [04:40:17]accept exits with 9 [04:40:17]New connection [04:40:17]New thread 3067170148 created [04:40:17]Thread 3067026788 joined [04:40:17]Waiting for new connection... [04:40:17] Sock 9.Parse request [04:40:17]Sock 9.Check first char [04:40:17]Sock 9.First char is OK [04:40:17]request: POST /json_proto HTTP/1.0 [04:40:17]Method: POST [04:40:17]URL: /json_proto [04:40:17]Method is POST - this is cgi request [04:40:17]url: /json_proto [04:40:17]query_string will be loaded in cgi processing [04:40:17]execute_cgi json_proto POST (null) [04:40:17]execute_cgi path=json_proto method=POST [04:40:17]POST find Content-Length [04:40:17]Host: 172.17.50.3:8080 [04:40:17]Content-Length: 682 [04:40:17]Content-Type: application/json [04:40:17] [04:40:17]POST finish read [04:40:17]Found Content-Length = 682 [04:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.710, "sum" : 650.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:17]execute_script... [04:40: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)2885842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.710, "sum" : 650.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:17]POST & json_proto [04:40:17]process_json_proto [04:40:17]json parsed OK: [04:40:17]protocol is kg_v1.0 [04:40:17]action value=close_receipt [04:40:17]process_action close_receipt [04:40:17]cmd_close_receipt [04:40:17]MH_GetDate [04:40:17]Write to MH i2c: F0 00 00 CD 38 F4 [04:40:17]Write i2c OK [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: F0 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: F0 09 00 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: F0 09 00 CD 38 00 B5 2C 17 67 6B 98 1E 66 E3 [04:40:17]GetLastDocTimeStamp 1729572014 [04:40:17]current date 1729572021 [04:40:17]FM_GetShiftState [04:40:17]SAM_PROTO_GetShiftState [04:40:17]wFMCommunicate request_size=4 [04:40:17]MH_SAM_APDU [04:40:17]CAPDU: 80 13 01 00 [04:40:17]Write to MH i2c: E2 08 00 CE 38 80 13 01 00 00 00 00 00 83 [04:40:17]Write i2c OK [04:40:17]MH_I2C_Read... [04:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:17]Read from MH i2c: E2 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: E2 0E 00 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: E2 0E 00 CE 38 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 71 [04:40:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:40:17]wFMCommunicate OK [04:40:17]SAM_PROTO_GetShiftState done [04:40:17]FM_GetShiftState done [04:40:17]opened in 1729555832 [04:40:17]opened+sec_in_day 1729642232 [04:40:17]quantity*price = 65001 [04:40:17]sum+1 = 65003 [04:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 25 22.10.2024 04:40 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70077 ФПД: 44637463398032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044021&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70077&fm=44637463398032&tin=02508201610067®Number=0000000000156251&sum=65000 [04:40:19]StoreToDocumentArchive [04:40:19]shift 195 fd 70077 [04:40:19]save to /storage/0195/doc_00070077 [04:40:19]save last doc name /storage/0195/doc_00070077 to /storage/kkm_last_doc_name [04:40:19]save OK [04:40:19]Clear old archive folders... [04:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:40:19]tlvbuf is 01144F70 [04:40:19]SAM_PROTO_ClearQueue [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 09 00 00 [04:40:19]Write to MH i2c: E2 08 00 DB 38 80 09 00 00 00 00 00 00 85 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 DB 38 00 90 00 87 [04:40:19]RAPDU: 90 00 [04:40:19]wFMCommunicate OK [04:40:19]SAM_PROTO_ClearQueue done [04:40:19]KKMCreateOFDPacket [04:40:19]OFDProtocolAddRootSTLVToBuf [04:40:19]FM_MakeSignedData [04:40:19]FM_MakeSignedData [04:40:19]SAM_PROTO_SignData [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 0D 01 02 [04:40:19]Write to MH i2c: E2 08 00 DC 38 80 0D 01 02 00 00 00 00 8D [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 DC 38 00 90 00 88 [04:40:19]RAPDU: 90 00 [04:40:19]wFMCommunicate OK [04:40:19]wFMCommunicate request_size=255 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 B5 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 11 01 00 35 04 06 00 28 98 [04:40:19]Write to MH i2c: E2 02 01 DD 38 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 B5 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 11 01 00 35 04 06 00 28 98 00 00 D4 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 DD 38 00 90 00 89 [04:40:19]RAPDU: 90 00 [04:40:19]wFMCommunicate OK [04:40:19]wFMCommunicate request_size=9 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 0D 02 02 04 F8 26 46 90 [04:40:19]Write to MH i2c: E2 0C 00 DE 38 80 0D 02 02 04 00 F8 26 46 90 00 00 8C [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 03 00 DE 38 00 90 00 8A [04:40:19]RAPDU: 90 00 [04:40:19]wFMCommunicate OK [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 0D 03 02 [04:40:19]Write to MH i2c: E2 08 00 DF 38 80 0D 03 02 00 00 00 00 92 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 0B 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 0B 00 DF 38 00 48 CC 0D 75 28 F3 4B 8A 90 00 19 [04:40:19]RAPDU: 48 CC 0D 75 28 F3 4B 8A 90 00 [04:40:19]wFMCommunicate OK [04:40:19]SAM_PROTO_SignData done [04:40:19]FM_MakeSignedData done [04:40:19]CreateOFDProtocolMessage [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 11 00 00 [04:40:19]Write to MH i2c: E2 08 00 E0 38 80 11 00 00 00 00 00 00 92 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 17 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 17 00 E0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [04:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:19]wFMCommunicate OK [04:40:19]CreateOFDProtocolMessage done [04:40:19]OFDSenderStorePacket 70077 [04:40:19]StoreOFDPacket docnum=70077 [04:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CE 98 06 01 2F 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 B5 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 11 01 00 35 04 06 00 28 98 F8 26 46 90 48 CC 0D 75 28 F3 4B 8A [04:40:19]CheckFolder [04:40:19]dirname=/storage/ofd_packets [04:40:19]CheckFolder done [04:40:19]ProducePacketName [04:40:19]name=ofd_packets/00070077 [04:40:19]NVStorageSaveData ofd_packets/00070077 [04:40:19]File name is /storage/ofd_packets/00070077 [04:40:19]Write 300 bytes [04:40:19]NVStorageSaveData done [04:40:19]OFDSenderStorePacket done [04:40:19]KKMCreateOFDPacket done [04:40:19]NVStorageSaveData kkm_last_timestamp [04:40:19]File name is /storage/kkm_last_timestamp [04:40:19]Write 4 bytes [04:40:19]NVStorageSaveData done [04:40:19]ExternCall_PrintAddStr [04:40:19]wPrintStart [04:40:19]Write to MH i2c: 01 00 00 E1 38 19 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: 01 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: 01 07 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: 01 07 00 E1 38 00 00 00 00 00 FF 0F 2E [04:40:19]RasterBufferAndPrint [04:40:19]line Счет N : (1)2885842 [04:40:19]line ИНН: 02508201610067 [04:40:19]line Контрольно-Кассовый Чек [04:40:19]line ПРОДАЖА [04:40:19]line ТРК (МРК, ГНК) : 71 [04:40:19]line Товар: 2711129700 [04:40:19]line ГАЗ-К-3 [04:40:19]line 16.710 * 38.90 [04:40:19]line = 650.02 [04:40:19]line НДС 12% НСП 1% [04:40:19]line > о реализуемом товаре [04:40:19]line ОКРУГЛЕНИЕ: -0.02 [04:40:19]line ИТОГО: 650.00 [04:40:19]line Внесено: 650.00 [04:40:19]line СДАЧА: 0.00 [04:40:19]line НСП 1% : 5.75 [04:40:19]line НДС 12% : 69.03 [04:40:19]line Наличными: 650.00 [04:40:19]line Безнал.: 0.00 [04:40:19]line Место: АЗС № 85 "Партнер Нефть" [04:40:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:40:19]line СНО: Общий режим [04:40:19]line Чек 25 22.10.2024 04:40 [04:40:19]line Смена: 195 ФФД: 1.0 [04:40:19]line ЗНМ: 0300000167 [04:40:19]line РНМ: 0000000000156251 [04:40:19]line Версия ККМ: v1.0 [04:40:19]line ФМ: 0000000000963346 [04:40:19]line ФД: 70077 [04:40:19]line ФПД: 44637463398032 [04:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044021&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70077&fm=44637463398032&tin=02508201610067®Number=0000000000156251&sum=65000 [04:40:19]written 0, free lines is 4095 [04:40:19]OFD Sender: Processing packet 70077 [packets to send 18, broken 17] [04:40:19]ProducePacketName [04:40:19]name=ofd_packets/00070077 [04:40:19]OFD Sender: To server: pG, [04:40:19]CommunicateWithHost lk.salyk.kg:30040 [04:40:19]ConnectInit lk.salyk.kg [04:40:19]Connected sock=10 [04:40: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 34 36 0E 01 00 00 CE 98 06 01 2F 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 B5 2C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 11 01 00 35 04 06 00 28 98 F8 26 46 90 48 CC 0D 75 28 F3 4B 8A [04:40: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 34 36 4F 00 00 00 D9 7B 47 00 8B 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 34 36 10 04 04 00 BD 11 01 00 F4 03 04 00 57 D6 16 67 B6 04 01 00 00 DA 08 16 1C 73 28 A6 ED [04:40:20]CommunicateWithHost err = 0 [04:40:20]CheckOFDResponse [04:40:20]1017 (14) - 77093643461234 [04:40:20]1041 (16) - 0000000000963346 [04:40:20]1040 (4) - 70077 [04:40:20]1012 (4) - 21.10.2024 22:31 [04:40:20]1206 (1) - 0 [04:40:20]OFD Sender: Remove packet 70077 [04:40:20]ProducePacketName [04:40:20]name=ofd_packets/00070077 [04:40:20]NVStorageDeleteData [04:40:20]Write to MH i2c: 01 00 00 0C 39 45 [04:40:20]Write i2c OK [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: 01 [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: 01 07 00 [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: 01 07 00 0C 39 00 00 00 00 00 F9 0C 51 [04:40:20]RasterBufferAndPrint [04:40:20]line [04:40:20]line [04:40:20]line [04:40:20]line [04:40:20]line [04:40:20]written 0, free lines is 3333 [04:40:20]MH_Cut [04:40:20]Write to MH i2c: D1 01 00 13 39 01 1E [04:40:20]Write i2c OK [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: D1 [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: D1 01 00 [04:40:20]MH_I2C_Read... [04:40:20]Read from MH i2c: D1 01 00 13 39 00 1D [04:40:20]Write to MH i2c: 01 00 00 14 39 4D [04:40:20]Write i2c OK [04:40:20]MH_I2C_Read... [04:40:20]OFD Sender: No OFD packet to send [04:40:20]*** Cut start [04:40:20]*** Partial cut [04:40:20]*** CUTSNS_PIN = 1 [04:40:20]*** CUTSNS_PIN = 0 [04:40:21]*** Brake cut motor [04:40:21]Read from MH i2c: 01 [04:40:21]MH_I2C_Read... [04:40:21]*** Stop cut motor [04:40:21]*** Cut end [04:40:21]Read from MH i2c: 01 07 00 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: 01 07 00 14 39 00 00 00 00 00 FF 0F 62 [04:40:21]process_action close_receipt done [04:40:21]requested_data is exist [04:40:21]produce_requested_data [04:40:21]requested_item fm.sn is exist - process it [04:40:21]wFMCommunicate request_size=4 [04:40:21]MH_SAM_APDU [04:40:21]CAPDU: 80 11 00 00 [04:40:21]Write to MH i2c: E2 08 00 15 39 80 11 00 00 00 00 00 00 C8 [04:40:21]Write i2c OK [04:40:21]MH_I2C_Read... [04:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:21]Read from MH i2c: E2 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 17 00 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 17 00 15 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [04:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:21]wFMCommunicate OK [04:40:21]requested_item fd.num is exist - process it [04:40:21]SAM_PROTO_GetFieldsCounters [04:40:21]wFMCommunicate request_size=4 [04:40:21]MH_SAM_APDU [04:40:21]CAPDU: 80 13 00 00 [04:40:21]Write to MH i2c: E2 08 00 16 39 80 13 00 00 00 00 00 00 CB [04:40:21]Write i2c OK [04:40:21]MH_I2C_Read... [04:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:21]Read from MH i2c: E2 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 62 00 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 62 00 16 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 11 01 00 0E 04 04 00 C3 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 C3 [04:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 11 01 00 0E 04 04 00 C3 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 [04:40:21]wFMCommunicate OK [04:40:21]SAM_PROTO_GetFieldsCounters done [04:40:21]requested_item shift.num is exist - process it [04:40:21]requested_item shift.opened is exist - process it [04:40:21]req_shift_opened [04:40:21]FM_GetShiftState [04:40:21]SAM_PROTO_GetShiftState [04:40:21]wFMCommunicate request_size=4 [04:40:21]MH_SAM_APDU [04:40:21]CAPDU: 80 13 01 00 [04:40:21]Write to MH i2c: E2 08 00 17 39 80 13 01 00 00 00 00 00 CD [04:40:21]Write i2c OK [04:40:21]MH_I2C_Read... [04:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:21]Read from MH i2c: E2 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 0E 00 [04:40:21]MH_I2C_Read... [04:40:21]Read from MH i2c: E2 0E 00 17 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BB [04:40:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:40:21]wFMCommunicate OK [04:40:21]SAM_PROTO_GetShiftState done [04:40:21]FM_GetShiftState done [04:40:21]req_shift_opened done [04:40:21]requested_item shift.open_date is exist - process it [04:40:21]req_shift_open_date [04:40:21]req_shift_open_date done [04:40:21]produce_requested_data done [04:40:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70077,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:40:21]process_action_free close_receipt [04:40:21]json_value_free [04:40:21]json_value_free done [04:40:21]process_json_proto returns [04:40:21]Send response to host [04:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70077,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:40:21]free response buf [04:40:21]execute_script done [04:40:21]execute_script returns [04:40:21]free content buf [04:40:21]Sock 9.Close socket [04:40:21]Sock 9.Thread stoped [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:35]recv_with_timeout no data received [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:02]recv_with_timeout no data received [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:51]accept exits with 7 [04:41:51]New connection [04:41:51]New thread 3067026788 created [04:41:51]Thread 3067170148 joined [04:41:51]Waiting for new connection... [04:41:51] Sock 7.Parse request [04:41:51]Sock 7.Check first char [04:41:51]Sock 7.First char is OK [04:41:51]request: POST /json_proto HTTP/1.0 [04:41:51]Method: POST [04:41:51]URL: /json_proto [04:41:51]Method is POST - this is cgi request [04:41:51]url: /json_proto [04:41:51]query_string will be loaded in cgi processing [04:41:51]execute_cgi json_proto POST (null) [04:41:51]execute_cgi path=json_proto method=POST [04:41:51]POST find Content-Length [04:41:51]Host: 172.17.50.3:8080 [04:41:51]Content-Length: 681 [04:41:51]Content-Type: application/json [04:41:51] [04:41:51]POST finish read [04:41:51]Found Content-Length = 681 [04:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "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" ] } } [04:41:51]execute_script... [04: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 : (1)2885844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "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" ] } } [04:41:51]POST & json_proto [04:41:51]process_json_proto [04:41:51]json parsed OK: [04:41:51]protocol is kg_v1.0 [04:41:51]action value=close_receipt [04:41:51]process_action close_receipt [04:41:51]cmd_close_receipt [04:41:51]MH_GetDate [04:41:51]Write to MH i2c: F0 00 00 18 39 40 [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: F0 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: F0 09 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: F0 09 00 18 39 00 13 2D 17 67 6B 98 1E 66 8E [04:41:51]GetLastDocTimeStamp 1729572021 [04:41:51]current date 1729572115 [04:41:51]FM_GetShiftState [04:41:51]SAM_PROTO_GetShiftState [04:41:51]wFMCommunicate request_size=4 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 13 01 00 [04:41:51]Write to MH i2c: E2 08 00 19 39 80 13 01 00 00 00 00 00 CF [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:52]Read from MH i2c: E2 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: E2 0E 00 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: E2 0E 00 19 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [04:41:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:41:52]wFMCommunicate OK [04:41:52]SAM_PROTO_GetShiftState done [04:41:52]FM_GetShiftState done [04:41:52]opened in 1729555832 [04:41:52]opened+sec_in_day 1729642232 [04:41:52]quantity*price = 20033 [04:41:52]sum+1 = 20035 [04:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 26 22.10.2024 04:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70078 ФПД: 151753702712503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70078&fm=151753702712503&tin=02508201610067®Number=0000000000156251&sum=20000 [04:41:53]StoreToDocumentArchive [04:41:53]shift 195 fd 70078 [04:41:53]save to /storage/0195/doc_00070078 [04:41:53]save last doc name /storage/0195/doc_00070078 to /storage/kkm_last_doc_name [04:41:53]save OK [04:41:53]Clear old archive folders... [04:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:41:53]tlvbuf is 0114EAF0 [04:41:53]SAM_PROTO_ClearQueue [04:41:53]wFMCommunicate request_size=4 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 09 00 00 [04:41:53]Write to MH i2c: E2 08 00 26 39 80 09 00 00 00 00 00 00 D1 [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 26 39 00 90 00 D3 [04:41:53]RAPDU: 90 00 [04:41:53]wFMCommunicate OK [04:41:53]SAM_PROTO_ClearQueue done [04:41:53]KKMCreateOFDPacket [04:41:53]OFDProtocolAddRootSTLVToBuf [04:41:53]FM_MakeSignedData [04:41:53]FM_MakeSignedData [04:41:53]SAM_PROTO_SignData [04:41:53]wFMCommunicate request_size=4 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 0D 01 02 [04:41:53]Write to MH i2c: E2 08 00 27 39 80 0D 01 02 00 00 00 00 D9 [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 27 39 00 90 00 D4 [04:41:53]RAPDU: 90 00 [04:41:53]wFMCommunicate OK [04:41:53]wFMCommunicate request_size=255 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 1A 00 00 00 F4 03 04 00 13 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 11 01 00 35 04 06 00 8A 04 [04:41:53]Write to MH i2c: E2 02 01 28 39 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 1A 00 00 00 F4 03 04 00 13 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 11 01 00 35 04 06 00 8A 04 00 00 6B [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 28 39 00 90 00 D5 [04:41:53]RAPDU: 90 00 [04:41:53]wFMCommunicate OK [04:41:53]wFMCommunicate request_size=9 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 0D 02 02 04 E9 8B 24 B7 [04:41:53]Write to MH i2c: E2 0C 00 29 39 80 0D 02 02 04 00 E9 8B 24 B7 00 00 33 [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 03 00 29 39 00 90 00 D6 [04:41:53]RAPDU: 90 00 [04:41:53]wFMCommunicate OK [04:41:53]wFMCommunicate request_size=4 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 0D 03 02 [04:41:53]Write to MH i2c: E2 08 00 2A 39 80 0D 03 02 00 00 00 00 DE [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 0B 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 0B 00 2A 39 00 E7 F5 F4 66 71 CA EB B2 90 00 ED [04:41:53]RAPDU: E7 F5 F4 66 71 CA EB B2 90 00 [04:41:53]wFMCommunicate OK [04:41:53]SAM_PROTO_SignData done [04:41:53]FM_MakeSignedData done [04:41:53]CreateOFDProtocolMessage [04:41:53]wFMCommunicate request_size=4 [04:41:53]MH_SAM_APDU [04:41:53]CAPDU: 80 11 00 00 [04:41:53]Write to MH i2c: E2 08 00 2B 39 80 11 00 00 00 00 00 00 DE [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:53]Read from MH i2c: E2 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 17 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: E2 17 00 2B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [04:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:41:53]wFMCommunicate OK [04:41:53]CreateOFDProtocolMessage done [04:41:53]OFDSenderStorePacket 70078 [04:41:53]StoreOFDPacket docnum=70078 [04:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 77 9C 06 01 78 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 1A 00 00 00 F4 03 04 00 13 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 11 01 00 35 04 06 00 8A 04 E9 8B 24 B7 E7 F5 F4 66 71 CA EB B2 [04:41:53]CheckFolder [04:41:53]dirname=/storage/ofd_packets [04:41:53]CheckFolder done [04:41:53]ProducePacketName [04:41:53]name=ofd_packets/00070078 [04:41:53]NVStorageSaveData ofd_packets/00070078 [04:41:53]File name is /storage/ofd_packets/00070078 [04:41:53]Write 300 bytes [04:41:53]NVStorageSaveData done [04:41:53]OFDSenderStorePacket done [04:41:53]KKMCreateOFDPacket done [04:41:53]NVStorageSaveData kkm_last_timestamp [04:41:53]File name is /storage/kkm_last_timestamp [04:41:53]Write 4 bytes [04:41:53]NVStorageSaveData done [04:41:53]OFD Sender: Processing packet 70078 [packets to send 18, broken 17] [04:41:53]ProducePacketName [04:41:53]name=ofd_packets/00070078 [04:41:53]OFD Sender: To server: pG, [04:41:53]CommunicateWithHost lk.salyk.kg:30040 [04:41:53]ConnectInit lk.salyk.kg [04:41:53]ExternCall_PrintAddStr [04:41:53]wPrintStart [04:41:53]Write to MH i2c: 01 00 00 2C 39 65 [04:41:53]Write i2c OK [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: 01 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: 01 07 00 [04:41:53]MH_I2C_Read... [04:41:53]Read from MH i2c: 01 07 00 2C 39 00 00 00 00 00 FF 0F 7A [04:41:53]RasterBufferAndPrint [04:41:53]line Счет N : (1)2885844 [04:41:53]line ИНН: 02508201610067 [04:41:53]line Контрольно-Кассовый Чек [04:41:53]line ПРОДАЖА [04:41:53]line ТРК (МРК, ГНК) : 71 [04:41:53]line Товар: 2711129700 [04:41:53]line ГАЗ-К-3 [04:41:53]line 5.150 * 38.90 [04:41:53]line = 200.34 [04:41:53]line НДС 12% НСП 1% [04:41:53]line > о реализуемом товаре [04:41:53]line ОКРУГЛЕНИЕ: -0.34 [04:41:53]line ИТОГО: 200.00 [04:41:53]line Внесено: 200.00 [04:41:53]line СДАЧА: 0.00 [04:41:53]line НСП 1% : 1.77 [04:41:53]line НДС 12% : 21.27 [04:41:53]line Наличными: 200.00 [04:41:53]line Безнал.: 0.00 [04:41:53]line Место: АЗС № 85 "Партнер Нефть" [04:41:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:41:53]line СНО: Общий режим [04:41:53]line Чек 26 22.10.2024 04:41 [04:41:53]line Смена: 195 ФФД: 1.0 [04:41:53]line ЗНМ: 0300000167 [04:41:53]line РНМ: 0000000000156251 [04:41:53]line Версия ККМ: v1.0 [04:41:54]line ФМ: 0000000000963346 [04:41:54]line ФД: 70078 [04:41:54]line ФПД: 151753702712503 [04:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70078&fm=151753702712503&tin=02508201610067®Number=0000000000156251&sum=20000 [04:41:54]written 0, free lines is 4095 [04:41:54]Write to MH i2c: 01 00 00 57 39 90 [04:41:54]Write i2c OK [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: 01 [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: 01 07 00 [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: 01 07 00 57 39 00 00 00 00 00 D5 0C 78 [04:41:54]RasterBufferAndPrint [04:41:54]line [04:41:54]line [04:41:54]line [04:41:54]line [04:41:54]line [04:41:54]written 0, free lines is 3293 [04:41:54]MH_Cut [04:41:54]Write to MH i2c: D1 01 00 5E 39 01 69 [04:41:54]Write i2c OK [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: D1 [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: D1 01 00 [04:41:54]MH_I2C_Read... [04:41:54]Read from MH i2c: D1 01 00 5E 39 00 68 [04:41:54]Write to MH i2c: 01 00 00 5F 39 98 [04:41:54]Write i2c OK [04:41:54]MH_I2C_Read... [04:41:55]*** Cut start [04:41:55]*** Partial cut [04:41:55]*** CUTSNS_PIN = 1 [04:41:55]*** CUTSNS_PIN = 0 [04:41:55]*** Brake cut motor [04:41:55]Read from MH i2c: 01 [04:41:55]MH_I2C_Read... [04:41:55]*** Stop cut motor [04:41:55]*** Cut end [04:41:55]Read from MH i2c: 01 07 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: 01 07 00 5F 39 00 00 00 00 00 FF 0F AD [04:41:55]process_action close_receipt done [04:41:55]requested_data is exist [04:41:55]produce_requested_data [04:41:55]requested_item fm.sn is exist - process it [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 11 00 00 [04:41:55]Write to MH i2c: E2 08 00 60 39 80 11 00 00 00 00 00 00 13 [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:55]Read from MH i2c: E2 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 17 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 17 00 60 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [04:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:41:55]wFMCommunicate OK [04:41:55]requested_item fd.num is exist - process it [04:41:55]SAM_PROTO_GetFieldsCounters [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 13 00 00 [04:41:55]Write to MH i2c: E2 08 00 61 39 80 13 00 00 00 00 00 00 16 [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 62 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 62 00 61 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 11 01 00 0E 04 04 00 C3 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 12 [04:41: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 11 01 00 0E 04 04 00 C3 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 [04:41:56]wFMCommunicate OK [04:41:56]SAM_PROTO_GetFieldsCounters done [04:41:56]requested_item shift.num is exist - process it [04:41:56]requested_item shift.opened is exist - process it [04:41:56]req_shift_opened [04:41:56]FM_GetShiftState [04:41:56]SAM_PROTO_GetShiftState [04:41:56]wFMCommunicate request_size=4 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 13 01 00 [04:41:56]Write to MH i2c: E2 08 00 62 39 80 13 01 00 00 00 00 00 18 [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 0E 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 0E 00 62 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 06 [04:41:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:41:56]wFMCommunicate OK [04:41:56]SAM_PROTO_GetShiftState done [04:41:56]FM_GetShiftState done [04:41:56]req_shift_opened done [04:41:56]requested_item shift.open_date is exist - process it [04:41:56]req_shift_open_date [04:41:56]req_shift_open_date done [04:41:56]produce_requested_data done [04:41:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70078,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:41:56]process_action_free close_receipt [04:41:56]json_value_free [04:41:56]json_value_free done [04:41:56]process_json_proto returns [04:41:56]Send response to host [04:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70078,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:41:56]free response buf [04:41:56]execute_script done [04:41:56]execute_script returns [04:41:56]free content buf [04:41:56]Sock 7.Close socket [04:41:56]Sock 7.Thread stoped [04:41:58]ConnectInit Can't take IP for lk.salyk.kg [04:41:58]CommunicateWithHost connect error [04:41:58]CommunicateWithHost err = -1 [04:41:58]OFD Sender: Server communicate error [04:42:03]OFD Sender: Processing packet 70078 [packets to send 18, broken 17] [04:42:03]ProducePacketName [04:42:03]name=ofd_packets/00070078 [04:42:03]OFD Sender: To server: pG, [04:42:03]CommunicateWithHost lk.salyk.kg:30040 [04:42:03]ConnectInit lk.salyk.kg [04:42:03]Connected sock=7 [04:42: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 34 36 0E 01 00 00 77 9C 06 01 78 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 1A 00 00 00 F4 03 04 00 13 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 11 01 00 35 04 06 00 8A 04 E9 8B 24 B7 E7 F5 F4 66 71 CA EB B2 [04:42: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 34 36 4F 00 00 00 FA 64 47 00 4D 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 34 36 10 04 04 00 BE 11 01 00 F4 03 04 00 BF D6 16 67 B6 04 01 00 00 A9 66 15 B0 87 C5 48 EC [04:42:04]CommunicateWithHost err = 0 [04:42:04]CheckOFDResponse [04:42:04]1017 (14) - 77093643461234 [04:42:04]1041 (16) - 0000000000963346 [04:42:04]1040 (4) - 70078 [04:42:04]1012 (4) - 21.10.2024 22:33 [04:42:04]1206 (1) - 0 [04:42:04]OFD Sender: Remove packet 70078 [04:42:04]ProducePacketName [04:42:04]name=ofd_packets/00070078 [04:42:04]NVStorageDeleteData [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [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:41]accept exits with 10 [04:44:41]New connection [04:44:41]New thread 3067170148 created [04:44:41]Thread 3067026788 joined [04:44:41]Waiting for new connection... [04:44:41] Sock 10.Parse request [04:44:41]Sock 10.Check first char [04:44:41]Sock 10.First char is OK [04:44:41]request: POST /json_proto HTTP/1.0 [04:44:41]Method: POST [04:44:41]URL: /json_proto [04:44:41]Method is POST - this is cgi request [04:44:41]url: /json_proto [04:44:41]query_string will be loaded in cgi processing [04:44:41]execute_cgi json_proto POST (null) [04:44:41]execute_cgi path=json_proto method=POST [04:44:41]POST find Content-Length [04:44:41]Host: 172.17.50.3:8080 [04:44:41]Content-Length: 770 [04:44:41]Content-Type: application/json [04:44:41] [04:44:41]POST finish read [04:44:41]Found Content-Length = 770 [04:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.410, "sum" : 249.35, "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" : 249.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:41]execute_script... [04:44: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)2885845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.410, "sum" : 249.35, "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" : 249.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:41]POST & json_proto [04:44:41]process_json_proto [04:44:41]json parsed OK: [04:44:41]protocol is kg_v1.0 [04:44:41]action value=close_receipt [04:44:41]process_action close_receipt [04:44:41]cmd_close_receipt [04:44:41]MH_GetDate [04:44:41]Write to MH i2c: F0 00 00 63 39 8B [04:44:41]Write i2c OK [04:44:41]MH_I2C_Read... [04:44:41]Read from MH i2c: F0 [04:44:41]MH_I2C_Read... [04:44:41]Read from MH i2c: F0 09 00 [04:44:41]MH_I2C_Read... [04:44:41]Read from MH i2c: F0 09 00 63 39 00 BD 2D 17 67 6B 98 1E 66 83 [04:44:41]GetLastDocTimeStamp 1729572115 [04:44:41]current date 1729572285 [04:44:41]FM_GetShiftState [04:44:41]SAM_PROTO_GetShiftState [04:44:41]wFMCommunicate request_size=4 [04:44:41]MH_SAM_APDU [04:44:41]CAPDU: 80 13 01 00 [04:44:41]Write to MH i2c: E2 08 00 64 39 80 13 01 00 00 00 00 00 1A [04:44:41]Write i2c OK [04:44:41]MH_I2C_Read... [04:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:41]Read from MH i2c: E2 [04:44:41]MH_I2C_Read... [04:44:41]Read from MH i2c: E2 0E 00 [04:44:41]MH_I2C_Read... [04:44:41]Read from MH i2c: E2 0E 00 64 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 08 [04:44:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:44:41]wFMCommunicate OK [04:44:41]SAM_PROTO_GetShiftState done [04:44:41]FM_GetShiftState done [04:44:41]opened in 1729555832 [04:44:41]opened+sec_in_day 1729642232 [04:44:41]quantity*price = 24934 [04:44:41]sum+1 = 24936 [04:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 249.35 НСП 1% : 2.21 НДС 12% : 26.48 Наличными: 0.00 Безнал.: 249.35 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 27 22.10.2024 04:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70079 ФПД: 50043136877910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044445&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70079&fm=50043136877910&tin=02508201610067®Number=0000000000156251&sum=24935 [04:44:43]StoreToDocumentArchive [04:44:43]shift 195 fd 70079 [04:44:43]save to /storage/0195/doc_00070079 [04:44:43]save last doc name /storage/0195/doc_00070079 to /storage/kkm_last_doc_name [04:44:43]save OK [04:44:43]Clear old archive folders... [04:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:44:43]tlvbuf is 011279A0 [04:44:43]SAM_PROTO_ClearQueue [04:44:43]wFMCommunicate request_size=4 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 09 00 00 [04:44:43]Write to MH i2c: E2 08 00 71 39 80 09 00 00 00 00 00 00 1C [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 71 39 00 90 00 1E [04:44:43]RAPDU: 90 00 [04:44:43]wFMCommunicate OK [04:44:43]SAM_PROTO_ClearQueue done [04:44:43]KKMCreateOFDPacket [04:44:43]OFDProtocolAddRootSTLVToBuf [04:44:43]FM_MakeSignedData [04:44:43]FM_MakeSignedData [04:44:43]SAM_PROTO_SignData [04:44:43]wFMCommunicate request_size=4 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 0D 01 02 [04:44:43]Write to MH i2c: E2 08 00 72 39 80 0D 01 02 00 00 00 00 24 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 72 39 00 90 00 1F [04:44:43]RAPDU: 90 00 [04:44:43]wFMCommunicate OK [04:44:43]wFMCommunicate request_size=255 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 67 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 58 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BD 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 11 01 00 35 04 06 00 2D 83 [04:44:43]Write to MH i2c: E2 02 01 73 39 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 67 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 58 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BD 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 11 01 00 35 04 06 00 2D 83 00 00 98 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 73 39 00 90 00 20 [04:44:43]RAPDU: 90 00 [04:44:43]wFMCommunicate OK [04:44:43]wFMCommunicate request_size=9 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 0D 02 02 04 93 65 A5 56 [04:44:43]Write to MH i2c: E2 0C 00 74 39 80 0D 02 02 04 00 93 65 A5 56 00 00 22 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 03 00 74 39 00 90 00 21 [04:44:43]RAPDU: 90 00 [04:44:43]wFMCommunicate OK [04:44:43]wFMCommunicate request_size=4 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 0D 03 02 [04:44:43]Write to MH i2c: E2 08 00 75 39 80 0D 03 02 00 00 00 00 29 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 0B 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 0B 00 75 39 00 1D 4F 4C 6C 08 57 83 5E 90 00 8E [04:44:43]RAPDU: 1D 4F 4C 6C 08 57 83 5E 90 00 [04:44:43]wFMCommunicate OK [04:44:43]SAM_PROTO_SignData done [04:44:43]FM_MakeSignedData done [04:44:43]CreateOFDProtocolMessage [04:44:43]wFMCommunicate request_size=4 [04:44:43]MH_SAM_APDU [04:44:43]CAPDU: 80 11 00 00 [04:44:43]Write to MH i2c: E2 08 00 76 39 80 11 00 00 00 00 00 00 29 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:43]Read from MH i2c: E2 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 17 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: E2 17 00 76 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [04:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:44:43]wFMCommunicate OK [04:44:43]CreateOFDProtocolMessage done [04:44:43]OFDSenderStorePacket 70079 [04:44:43]StoreOFDPacket docnum=70079 [04:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C4 1C 06 01 70 E3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 67 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 58 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BD 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 11 01 00 35 04 06 00 2D 83 93 65 A5 56 1D 4F 4C 6C 08 57 83 5E [04:44:43]CheckFolder [04:44:43]dirname=/storage/ofd_packets [04:44:43]CheckFolder done [04:44:43]ProducePacketName [04:44:43]name=ofd_packets/00070079 [04:44:43]NVStorageSaveData ofd_packets/00070079 [04:44:43]File name is /storage/ofd_packets/00070079 [04:44:43]Write 300 bytes [04:44:43]NVStorageSaveData done [04:44:43]OFDSenderStorePacket done [04:44:43]KKMCreateOFDPacket done [04:44:43]NVStorageSaveData kkm_last_timestamp [04:44:43]File name is /storage/kkm_last_timestamp [04:44:43]Write 4 bytes [04:44:43]NVStorageSaveData done [04:44:43]ExternCall_PrintAddStr [04:44:43]wPrintStart [04:44:43]Write to MH i2c: 01 00 00 77 39 B0 [04:44:43]Write i2c OK [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: 01 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: 01 07 00 [04:44:43]MH_I2C_Read... [04:44:43]Read from MH i2c: 01 07 00 77 39 00 00 00 00 00 FF 0F C5 [04:44:43]RasterBufferAndPrint [04:44:43]line Счет N : (1)2885845 [04:44:43]line ИНН: 02508201610067 [04:44:43]line Контрольно-Кассовый Чек [04:44:43]line ПРОДАЖА [04:44:43]line ТРК (МРК, ГНК) : 71 [04:44:43]line Товар: 2711129700 [04:44:43]line ГАЗ-К-3 [04:44:43]line 6.410 * 38.90 [04:44:43]line = 249.35 [04:44:43]line НДС 12% НСП 1% [04:44:43]line > о реализуемом товаре [04:44:43]line ИТОГО: 249.35 [04:44:43]line НСП 1% : 2.21 [04:44:43]line НДС 12% : 26.48 [04:44:43]line Наличными: 0.00 [04:44:43]line Безнал.: 249.35 [04:44:43]line Место: АЗС № 85 "Партнер Нефть" [04:44:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:44:43]line СНО: Общий режим [04:44:43]line Чек 27 22.10.2024 04:44 [04:44:43]line Смена: 195 ФФД: 1.0 [04:44:43]line ЗНМ: 0300000167 [04:44:43]line РНМ: 0000000000156251 [04:44:43]line Версия ККМ: v1.0 [04:44:43]line Платежная система: Mbank [04:44:43]line ФМ: 0000000000963346 [04:44:43]line ФД: 70079 [04:44:43]line ФПД: 50043136877910 [04:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044445&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70079&fm=50043136877910&tin=02508201610067®Number=0000000000156251&sum=24935 [04:44:43]OFD Sender: Processing packet 70079 [packets to send 18, broken 17] [04:44:43]ProducePacketName [04:44:43]name=ofd_packets/00070079 [04:44:43]OFD Sender: To server: pG, [04:44:43]CommunicateWithHost lk.salyk.kg:30040 [04:44:43]ConnectInit lk.salyk.kg [04:44:43]written 0, free lines is 4095 [04:44:43]Connected sock=9 [04:44: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 34 36 0E 01 00 00 C4 1C 06 01 70 E3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 67 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 58 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BD 2D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 11 01 00 35 04 06 00 2D 83 93 65 A5 56 1D 4F 4C 6C 08 57 83 5E [04:44: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 34 36 4F 00 00 00 8C 05 47 00 C4 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 34 36 10 04 04 00 BF 11 01 00 F4 03 04 00 5F D7 16 67 B6 04 01 00 00 F1 65 FD 3B D0 AD 6E 44 [04:44:44]CommunicateWithHost err = 0 [04:44:44]CheckOFDResponse [04:44:44]1017 (14) - 77093643461234 [04:44:44]1041 (16) - 0000000000963346 [04:44:44]1040 (4) - 70079 [04:44:44]1012 (4) - 21.10.2024 22:36 [04:44:44]1206 (1) - 0 [04:44:44]OFD Sender: Remove packet 70079 [04:44:44]ProducePacketName [04:44:44]name=ofd_packets/00070079 [04:44:44]NVStorageDeleteData [04:44:44]Write to MH i2c: 01 00 00 A0 39 D9 [04:44:44]Write i2c OK [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: 01 [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: 01 07 00 [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: 01 07 00 A0 39 00 00 00 00 00 08 0D F5 [04:44:44]RasterBufferAndPrint [04:44:44]line [04:44:44]line [04:44:44]line [04:44:44]line [04:44:44]line [04:44:44]written 0, free lines is 3342 [04:44:44]MH_Cut [04:44:44]Write to MH i2c: D1 01 00 A7 39 01 B2 [04:44:44]Write i2c OK [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: D1 [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: D1 01 00 [04:44:44]MH_I2C_Read... [04:44:44]Read from MH i2c: D1 01 00 A7 39 00 B1 [04:44:44]Write to MH i2c: 01 00 00 A8 39 E1 [04:44:44]Write i2c OK [04:44:44]MH_I2C_Read... [04:44:44]OFD Sender: No OFD packet to send [04:44:44]*** Cut start [04:44:44]*** Partial cut [04:44:44]*** CUTSNS_PIN = 1 [04:44:45]*** CUTSNS_PIN = 0 [04:44:45]*** Brake cut motor [04:44:45]Read from MH i2c: 01 [04:44:45]MH_I2C_Read... [04:44:45]*** Stop cut motor [04:44:45]*** Cut end [04:44:45]Read from MH i2c: 01 07 00 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: 01 07 00 A8 39 00 00 00 00 00 FF 0F F6 [04:44:45]process_action close_receipt done [04:44:45]requested_data is exist [04:44:45]produce_requested_data [04:44:45]requested_item fm.sn is exist - process it [04:44:45]wFMCommunicate request_size=4 [04:44:45]MH_SAM_APDU [04:44:45]CAPDU: 80 11 00 00 [04:44:45]Write to MH i2c: E2 08 00 A9 39 80 11 00 00 00 00 00 00 5C [04:44:45]Write i2c OK [04:44:45]MH_I2C_Read... [04:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:45]Read from MH i2c: E2 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 17 00 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 17 00 A9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [04:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:44:45]wFMCommunicate OK [04:44:45]requested_item fd.num is exist - process it [04:44:45]SAM_PROTO_GetFieldsCounters [04:44:45]wFMCommunicate request_size=4 [04:44:45]MH_SAM_APDU [04:44:45]CAPDU: 80 13 00 00 [04:44:45]Write to MH i2c: E2 08 00 AA 39 80 13 00 00 00 00 00 00 5F [04:44:45]Write i2c OK [04:44:45]MH_I2C_Read... [04:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:44:45]Read from MH i2c: E2 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 62 00 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 62 00 AA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 11 01 00 0E 04 04 00 C3 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 5F [04:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 11 01 00 0E 04 04 00 C3 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 [04:44:45]wFMCommunicate OK [04:44:45]SAM_PROTO_GetFieldsCounters done [04:44:45]requested_item shift.num is exist - process it [04:44:45]requested_item shift.opened is exist - process it [04:44:45]req_shift_opened [04:44:45]FM_GetShiftState [04:44:45]SAM_PROTO_GetShiftState [04:44:45]wFMCommunicate request_size=4 [04:44:45]MH_SAM_APDU [04:44:45]CAPDU: 80 13 01 00 [04:44:45]Write to MH i2c: E2 08 00 AB 39 80 13 01 00 00 00 00 00 61 [04:44:45]Write i2c OK [04:44:45]MH_I2C_Read... [04:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:45]Read from MH i2c: E2 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 0E 00 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: E2 0E 00 AB 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4F [04:44:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:44:45]wFMCommunicate OK [04:44:45]SAM_PROTO_GetShiftState done [04:44:45]FM_GetShiftState done [04:44:45]req_shift_opened done [04:44:45]requested_item shift.open_date is exist - process it [04:44:45]req_shift_open_date [04:44:45]req_shift_open_date done [04:44:45]produce_requested_data done [04:44:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70079,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:44:45]process_action_free close_receipt [04:44:45]json_value_free [04:44:45]json_value_free done [04:44:45]process_json_proto returns [04:44:45]Send response to host [04:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70079,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:44:45]free response buf [04:44:45]execute_script done [04:44:45]execute_script returns [04:44:45]free content buf [04:44:45]Sock 10.Close socket [04:44:45]Sock 10.Thread stoped [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:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:47]accept exits with 7 [04:50:47]New connection [04:50:47]New thread 3067026788 created [04:50:47]Thread 3067170148 joined [04:50:47]Waiting for new connection... [04:50:47] Sock 7.Parse request [04:50:47]Sock 7.Check first char [04:50:47]Sock 7.First char is OK [04:50:47]request: POST /json_proto HTTP/1.0 [04:50:47]Method: POST [04:50:47]URL: /json_proto [04:50:47]Method is POST - this is cgi request [04:50:47]url: /json_proto [04:50:47]query_string will be loaded in cgi processing [04:50:47]execute_cgi json_proto POST (null) [04:50:47]execute_cgi path=json_proto method=POST [04:50:47]POST find Content-Length [04:50:47]Host: 172.17.50.3:8080 [04:50:47]Content-Length: 684 [04:50:47]Content-Type: application/json [04:50:47] [04:50:47]POST finish read [04:50:47]Found Content-Length = 684 [04:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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" ] } } [04:50:47]execute_script... [04:50: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)2885846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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" ] } } [04:50:47]POST & json_proto [04:50:47]process_json_proto [04:50:47]json parsed OK: [04:50:47]protocol is kg_v1.0 [04:50:47]action value=close_receipt [04:50:47]process_action close_receipt [04:50:47]cmd_close_receipt [04:50:47]MH_GetDate [04:50:47]Write to MH i2c: F0 00 00 AC 39 D4 [04:50:47]Write i2c OK [04:50:47]MH_I2C_Read... [04:50:47]Read from MH i2c: F0 [04:50:47]MH_I2C_Read... [04:50:47]Read from MH i2c: F0 09 00 [04:50:47]MH_I2C_Read... [04:50:47]Read from MH i2c: F0 09 00 AC 39 00 2B 2F 17 67 6B 98 1E 66 3C [04:50:47]GetLastDocTimeStamp 1729572285 [04:50:47]current date 1729572651 [04:50:47]FM_GetShiftState [04:50:47]SAM_PROTO_GetShiftState [04:50:47]wFMCommunicate request_size=4 [04:50:47]MH_SAM_APDU [04:50:47]CAPDU: 80 13 01 00 [04:50:47]Write to MH i2c: E2 08 00 AD 39 80 13 01 00 00 00 00 00 63 [04:50:47]Write i2c OK [04:50:47]MH_I2C_Read... [04:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:47]Read from MH i2c: E2 [04:50:47]MH_I2C_Read... [04:50:47]Read from MH i2c: E2 0E 00 [04:50:47]MH_I2C_Read... [04:50:47]Read from MH i2c: E2 0E 00 AD 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 51 [04:50:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:50:47]wFMCommunicate OK [04:50:47]SAM_PROTO_GetShiftState done [04:50:47]FM_GetShiftState done [04:50:47]opened in 1729555832 [04:50:47]opened+sec_in_day 1729642232 [04:50:47]quantity*price = 50025 [04:50:47]sum+1 = 50027 [04:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 28 22.10.2024 04:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70080 ФПД: 260140747875574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70080&fm=260140747875574&tin=02508201610067®Number=0000000000156251&sum=50000 [04:50:49]StoreToDocumentArchive [04:50:49]shift 195 fd 70080 [04:50:49]save to /storage/0195/doc_00070080 [04:50:49]save last doc name /storage/0195/doc_00070080 to /storage/kkm_last_doc_name [04:50:49]save OK [04:50:49]Clear old archive folders... [04:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:50:49]tlvbuf is 01163BF0 [04:50:49]SAM_PROTO_ClearQueue [04:50:49]wFMCommunicate request_size=4 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 09 00 00 [04:50:49]Write to MH i2c: E2 08 00 BA 39 80 09 00 00 00 00 00 00 65 [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 BA 39 00 90 00 67 [04:50:49]RAPDU: 90 00 [04:50:49]wFMCommunicate OK [04:50:49]SAM_PROTO_ClearQueue done [04:50:49]KKMCreateOFDPacket [04:50:49]OFDProtocolAddRootSTLVToBuf [04:50:49]FM_MakeSignedData [04:50:49]FM_MakeSignedData [04:50:49]SAM_PROTO_SignData [04:50:49]wFMCommunicate request_size=4 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 0D 01 02 [04:50:49]Write to MH i2c: E2 08 00 BB 39 80 0D 01 02 00 00 00 00 6D [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 BB 39 00 90 00 68 [04:50:49]RAPDU: 90 00 [04:50:49]wFMCommunicate OK [04:50:49]wFMCommunicate request_size=255 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 1C 00 00 00 F4 03 04 00 2B 2F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 11 01 [04:50:49]Write to MH i2c: E2 02 01 BC 39 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 1C 00 00 00 F4 03 04 00 2B 2F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 11 01 00 00 F8 [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 BC 39 00 90 00 69 [04:50:49]RAPDU: 90 00 [04:50:49]wFMCommunicate OK [04:50:49]wFMCommunicate request_size=16 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EC 98 BC DE 64 F6 [04:50:49]Write to MH i2c: E2 13 00 BD 39 80 0D 02 02 0B 00 00 35 04 06 00 EC 98 BC DE 64 F6 00 00 3D [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 03 00 BD 39 00 90 00 6A [04:50:49]RAPDU: 90 00 [04:50:49]wFMCommunicate OK [04:50:49]wFMCommunicate request_size=4 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 0D 03 02 [04:50:49]Write to MH i2c: E2 08 00 BE 39 80 0D 03 02 00 00 00 00 72 [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 0B 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 0B 00 BE 39 00 92 93 36 17 01 2A D1 AD 90 00 8E [04:50:49]RAPDU: 92 93 36 17 01 2A D1 AD 90 00 [04:50:49]wFMCommunicate OK [04:50:49]SAM_PROTO_SignData done [04:50:49]FM_MakeSignedData done [04:50:49]CreateOFDProtocolMessage [04:50:49]wFMCommunicate request_size=4 [04:50:49]MH_SAM_APDU [04:50:49]CAPDU: 80 11 00 00 [04:50:49]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:49]Read from MH i2c: E2 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 17 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [04:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:50:49]wFMCommunicate OK [04:50:49]CreateOFDProtocolMessage done [04:50:49]OFDSenderStorePacket 70080 [04:50:49]StoreOFDPacket docnum=70080 [04:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A0 33 0D 01 F5 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 1C 00 00 00 F4 03 04 00 2B 2F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 11 01 00 35 04 06 00 EC 98 BC DE 64 F6 92 93 36 17 01 2A D1 AD [04:50:49]CheckFolder [04:50:49]dirname=/storage/ofd_packets [04:50:49]CheckFolder done [04:50:49]ProducePacketName [04:50:49]name=ofd_packets/00070080 [04:50:49]NVStorageSaveData ofd_packets/00070080 [04:50:49]File name is /storage/ofd_packets/00070080 [04:50:49]Write 307 bytes [04:50:49]NVStorageSaveData done [04:50:49]OFDSenderStorePacket done [04:50:49]KKMCreateOFDPacket done [04:50:49]NVStorageSaveData kkm_last_timestamp [04:50:49]File name is /storage/kkm_last_timestamp [04:50:49]Write 4 bytes [04:50:49]NVStorageSaveData done [04:50:49]ExternCall_PrintAddStr [04:50:49]wPrintStart [04:50:49]Write to MH i2c: 01 00 00 C0 39 F9 [04:50:49]Write i2c OK [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: 01 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: 01 07 00 [04:50:49]MH_I2C_Read... [04:50:49]Read from MH i2c: 01 07 00 C0 39 00 00 00 00 00 FF 0F 0E [04:50:49]RasterBufferAndPrint [04:50:49]line Счет N : (1)2885846 [04:50:49]line ИНН: 02508201610067 [04:50:49]line Контрольно-Кассовый Чек [04:50:49]line ПРОДАЖА [04:50:49]line ТРК (МРК, ГНК) : 11 [04:50:49]line Товар: 2710194240 [04:50:49]line D-ENERGY Дт-К-2 [04:50:49]line 6.480 * 77.20 [04:50:49]line = 500.26 [04:50:49]line НДС 12% НСП 1% [04:50:49]line > о реализуемом товаре [04:50:49]line ОКРУГЛЕНИЕ: -0.26 [04:50:49]line ИТОГО: 500.00 [04:50:49]line Внесено: 500.00 [04:50:49]line СДАЧА: 0.00 [04:50:49]line НСП 1% : 4.43 [04:50:49]line НДС 12% : 53.12 [04:50:49]line Наличными: 500.00 [04:50:49]line Безнал.: 0.00 [04:50:49]line Место: АЗС № 85 "Партнер Нефть" [04:50:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:50:49]line СНО: Общий режим [04:50:49]line Чек 28 22.10.2024 04:50 [04:50:49]line Смена: 195 ФФД: 1.0 [04:50:49]line ЗНМ: 0300000167 [04:50:49]line РНМ: 0000000000156251 [04:50:49]line Версия ККМ: v1.0 [04:50:49]line ФМ: 0000000000963346 [04:50:49]line ФД: 70080 [04:50:49]line ФПД: 260140747875574 [04:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70080&fm=260140747875574&tin=02508201610067®Number=0000000000156251&sum=50000 [04:50:49]OFD Sender: Processing packet 70080 [packets to send 18, broken 17] [04:50:49]ProducePacketName [04:50:49]name=ofd_packets/00070080 [04:50:49]OFD Sender: To server: pG, [04:50:49]CommunicateWithHost lk.salyk.kg:30040 [04:50:49]ConnectInit lk.salyk.kg [04:50:49]written 0, free lines is 4095 [04:50:49]Connected sock=10 [04:50: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 34 36 15 01 00 00 A0 33 0D 01 F5 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 1C 00 00 00 F4 03 04 00 2B 2F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 11 01 00 35 04 06 00 EC 98 BC DE 64 F6 92 93 36 17 01 2A D1 AD [04:50: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 34 36 4F 00 00 00 CE 71 47 00 87 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 34 36 10 04 04 00 C0 11 01 00 F4 03 04 00 CD D8 16 67 B6 04 01 00 00 01 46 BF 61 E4 9A 05 69 [04:50:50]CommunicateWithHost err = 0 [04:50:50]CheckOFDResponse [04:50:50]1017 (14) - 77093643461234 [04:50:50]1041 (16) - 0000000000963346 [04:50:50]1040 (4) - 70080 [04:50:50]1012 (4) - 21.10.2024 22:42 [04:50:50]1206 (1) - 0 [04:50:50]OFD Sender: Remove packet 70080 [04:50:50]ProducePacketName [04:50:50]name=ofd_packets/00070080 [04:50:50]NVStorageDeleteData [04:50:50]Write to MH i2c: 01 00 00 EB 39 24 [04:50:50]Write i2c OK [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: 01 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: 01 07 00 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: 01 07 00 EB 39 00 00 00 00 00 E0 0C 17 [04:50:50]RasterBufferAndPrint [04:50:50]line [04:50:50]line [04:50:50]line [04:50:50]line [04:50:50]line [04:50:50]written 0, free lines is 3302 [04:50:50]MH_Cut [04:50:50]Write to MH i2c: D1 01 00 F2 39 01 FD [04:50:50]Write i2c OK [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: D1 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: D1 01 00 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: D1 01 00 F2 39 00 FC [04:50:50]Write to MH i2c: 01 00 00 F3 39 2C [04:50:50]Write i2c OK [04:50:50]MH_I2C_Read... [04:50:50]OFD Sender: No OFD packet to send [04:50:51]*** Cut start [04:50:51]*** Partial cut [04:50:51]*** CUTSNS_PIN = 1 [04:50:51]*** CUTSNS_PIN = 0 [04:50:51]*** Brake cut motor [04:50:51]Read from MH i2c: 01 [04:50:51]MH_I2C_Read... [04:50:51]*** Stop cut motor [04:50:51]*** Cut end [04:50:51]Read from MH i2c: 01 07 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: 01 07 00 F3 39 00 00 00 00 00 FF 0F 41 [04:50:51]process_action close_receipt done [04:50:51]requested_data is exist [04:50:51]produce_requested_data [04:50:51]requested_item fm.sn is exist - process it [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 11 00 00 [04:50:51]Write to MH i2c: E2 08 00 F4 39 80 11 00 00 00 00 00 00 A7 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 17 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 17 00 F4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [04:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:50:51]wFMCommunicate OK [04:50:51]requested_item fd.num is exist - process it [04:50:51]SAM_PROTO_GetFieldsCounters [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 13 00 00 [04:50:51]Write to MH i2c: E2 08 00 F5 39 80 13 00 00 00 00 00 00 AA [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 62 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 62 00 F5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 11 01 00 0E 04 04 00 C3 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 AE [04:50: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 11 01 00 0E 04 04 00 C3 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 [04:50:51]wFMCommunicate OK [04:50:51]SAM_PROTO_GetFieldsCounters done [04:50:51]requested_item shift.num is exist - process it [04:50:51]requested_item shift.opened is exist - process it [04:50:51]req_shift_opened [04:50:51]FM_GetShiftState [04:50:51]SAM_PROTO_GetShiftState [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 13 01 00 [04:50:51]Write to MH i2c: E2 08 00 F6 39 80 13 01 00 00 00 00 00 AC [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 0E 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 0E 00 F6 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9A [04:50:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [04:50:51]wFMCommunicate OK [04:50:51]SAM_PROTO_GetShiftState done [04:50:51]FM_GetShiftState done [04:50:51]req_shift_opened done [04:50:51]requested_item shift.open_date is exist - process it [04:50:51]req_shift_open_date [04:50:51]req_shift_open_date done [04:50:51]produce_requested_data done [04:50:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70080,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [04:50:51]process_action_free close_receipt [04:50:51]json_value_free [04:50:51]json_value_free done [04:50:51]process_json_proto returns [04:50:51]Send response to host [04:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70080,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [04:50:51]free response buf [04:50:51]execute_script done [04:50:51]execute_script returns [04:50:51]free content buf [04:50:51]Sock 7.Close socket [04:50:51]Sock 7.Thread stoped [04:50:55]OFD Sender: No OFD packet to send [04:51:00]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:19]ConnectInit Can't connect to host [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:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:52]accept exits with 9 [05:00:52]New connection [05:00:52]New thread 3067170148 created [05:00:52]Thread 3067026788 joined [05:00:52]Waiting for new connection... [05:00:52] Sock 9.Parse request [05:00:52]Sock 9.Check first char [05:00:52]Sock 9.First char is OK [05:00:52]request: POST /json_proto HTTP/1.0 [05:00:52]Method: POST [05:00:52]URL: /json_proto [05:00:52]Method is POST - this is cgi request [05:00:52]url: /json_proto [05:00:52]query_string will be loaded in cgi processing [05:00:52]execute_cgi json_proto POST (null) [05:00:52]execute_cgi path=json_proto method=POST [05:00:52]POST find Content-Length [05:00:52]Host: 172.17.50.3:8080 [05:00:52]Content-Length: 767 [05:00:52]Content-Type: application/json [05:00:52] [05:00:52]POST finish read [05:00:52]Found Content-Length = 767 [05:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:52]execute_script... [05:00: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)2885847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:52]POST & json_proto [05:00:52]process_json_proto [05:00:52]json parsed OK: [05:00:52]protocol is kg_v1.0 [05:00:52]action value=close_receipt [05:00:52]process_action close_receipt [05:00:52]cmd_close_receipt [05:00:52]MH_GetDate [05:00:52]Write to MH i2c: F0 00 00 F7 39 1F [05:00:52]Write i2c OK [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: F0 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: F0 09 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: F0 09 00 F7 39 00 88 31 17 67 6B 98 1E 66 E6 [05:00:52]GetLastDocTimeStamp 1729572651 [05:00:52]current date 1729573256 [05:00:52]FM_GetShiftState [05:00:52]SAM_PROTO_GetShiftState [05:00:52]wFMCommunicate request_size=4 [05:00:52]MH_SAM_APDU [05:00:52]CAPDU: 80 13 01 00 [05:00:52]Write to MH i2c: E2 08 00 F8 39 80 13 01 00 00 00 00 00 AE [05:00:52]Write i2c OK [05:00:52]MH_I2C_Read... [05:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:52]Read from MH i2c: E2 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 0E 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 0E 00 F8 39 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9C [05:00:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:00:52]wFMCommunicate OK [05:00:52]SAM_PROTO_GetShiftState done [05:00:52]FM_GetShiftState done [05:00:52]opened in 1729555832 [05:00:52]opened+sec_in_day 1729642232 [05:00:52]quantity*price = 300075 [05:00:52]sum+1 = 300077 [05:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 29 22.10.2024 05:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70081 ФПД: 271453145791165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70081&fm=271453145791165&tin=02508201610067®Number=0000000000156251&sum=300076 [05:00:53]StoreToDocumentArchive [05:00:53]shift 195 fd 70081 [05:00:53]save to /storage/0195/doc_00070081 [05:00:53]save last doc name /storage/0195/doc_00070081 to /storage/kkm_last_doc_name [05:00:53]save OK [05:00:53]Clear old archive folders... [05:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:00:53]tlvbuf is 0116BC00 [05:00:53]SAM_PROTO_ClearQueue [05:00:53]wFMCommunicate request_size=4 [05:00:53]MH_SAM_APDU [05:00:53]CAPDU: 80 09 00 00 [05:00:53]Write to MH i2c: E2 08 00 05 3A 80 09 00 00 00 00 00 00 B1 [05:00:53]Write i2c OK [05:00:53]MH_I2C_Read... [05:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:53]Read from MH i2c: E2 [05:00:53]MH_I2C_Read... [05:00:53]Read from MH i2c: E2 03 00 [05:00:53]MH_I2C_Read... [05:00:53]Read from MH i2c: E2 03 00 05 3A 00 90 00 B3 [05:00:53]RAPDU: 90 00 [05:00:53]wFMCommunicate OK [05:00:53]SAM_PROTO_ClearQueue done [05:00:53]KKMCreateOFDPacket [05:00:53]OFDProtocolAddRootSTLVToBuf [05:00:53]FM_MakeSignedData [05:00:53]FM_MakeSignedData [05:00:53]SAM_PROTO_SignData [05:00:53]wFMCommunicate request_size=4 [05:00:53]MH_SAM_APDU [05:00:53]CAPDU: 80 0D 01 02 [05:00:53]Write to MH i2c: E2 08 00 06 3A 80 0D 01 02 00 00 00 00 B9 [05:00:53]Write i2c OK [05:00:53]MH_I2C_Read... [05:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:54]Read from MH i2c: E2 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 06 3A 00 90 00 B4 [05:00:54]RAPDU: 90 00 [05:00:54]wFMCommunicate OK [05:00:54]wFMCommunicate request_size=255 [05:00:54]MH_SAM_APDU [05:00: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 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 88 31 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 11 01 00 35 04 06 00 F6 E2 9C 53 [05:00:54]Write to MH i2c: E2 02 01 07 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 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 88 31 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 11 01 00 35 04 06 00 F6 E2 9C 53 00 00 BA [05:00:54]Write i2c OK [05:00:54]MH_I2C_Read... [05:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:54]Read from MH i2c: E2 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 07 3A 00 90 00 B5 [05:00:54]RAPDU: 90 00 [05:00:54]wFMCommunicate OK [05:00:54]wFMCommunicate request_size=7 [05:00:54]MH_SAM_APDU [05:00:54]CAPDU: 80 0D 02 02 02 FA BD [05:00:54]Write to MH i2c: E2 0A 00 08 3A 80 0D 02 02 02 00 FA BD 00 00 77 [05:00:54]Write i2c OK [05:00:54]MH_I2C_Read... [05:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:54]Read from MH i2c: E2 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 03 00 08 3A 00 90 00 B6 [05:00:54]RAPDU: 90 00 [05:00:54]wFMCommunicate OK [05:00:54]wFMCommunicate request_size=4 [05:00:54]MH_SAM_APDU [05:00:54]CAPDU: 80 0D 03 02 [05:00:54]Write to MH i2c: E2 08 00 09 3A 80 0D 03 02 00 00 00 00 BE [05:00:54]Write i2c OK [05:00:54]MH_I2C_Read... [05:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:54]Read from MH i2c: E2 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 0B 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 0B 00 09 3A 00 36 42 AC 5B D0 FA 5E 63 90 00 C9 [05:00:54]RAPDU: 36 42 AC 5B D0 FA 5E 63 90 00 [05:00:54]wFMCommunicate OK [05:00:54]SAM_PROTO_SignData done [05:00:54]FM_MakeSignedData done [05:00:54]CreateOFDProtocolMessage [05:00:54]wFMCommunicate request_size=4 [05:00:54]MH_SAM_APDU [05:00:54]CAPDU: 80 11 00 00 [05:00:54]Write to MH i2c: E2 08 00 0A 3A 80 11 00 00 00 00 00 00 BE [05:00:54]Write i2c OK [05:00:54]MH_I2C_Read... [05:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:54]Read from MH i2c: E2 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 17 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: E2 17 00 0A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [05:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:00:54]wFMCommunicate OK [05:00:54]CreateOFDProtocolMessage done [05:00:54]OFDSenderStorePacket 70081 [05:00:54]StoreOFDPacket docnum=70081 [05:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 98 D4 04 01 AD 17 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 88 31 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 11 01 00 35 04 06 00 F6 E2 9C 53 FA BD 36 42 AC 5B D0 FA 5E 63 [05:00:54]CheckFolder [05:00:54]dirname=/storage/ofd_packets [05:00:54]CheckFolder done [05:00:54]ProducePacketName [05:00:54]name=ofd_packets/00070081 [05:00:54]NVStorageSaveData ofd_packets/00070081 [05:00:54]File name is /storage/ofd_packets/00070081 [05:00:54]Write 298 bytes [05:00:54]NVStorageSaveData done [05:00:54]OFDSenderStorePacket done [05:00:54]KKMCreateOFDPacket done [05:00:54]NVStorageSaveData kkm_last_timestamp [05:00:54]File name is /storage/kkm_last_timestamp [05:00:54]Write 4 bytes [05:00:54]NVStorageSaveData done [05:00:54]ExternCall_PrintAddStr [05:00:54]wPrintStart [05:00:54]Write to MH i2c: 01 00 00 0B 3A 45 [05:00:54]Write i2c OK [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: 01 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: 01 07 00 [05:00:54]MH_I2C_Read... [05:00:54]Read from MH i2c: 01 07 00 0B 3A 00 00 00 00 00 FF 0F 5A [05:00:54]RasterBufferAndPrint [05:00:54]line Счет N : (1)2885847 [05:00:54]line ИНН: 02508201610067 [05:00:54]line Контрольно-Кассовый Чек [05:00:54]line ПРОДАЖА [05:00:54]line ТРК (МРК, ГНК) : 61 [05:00:54]line Товар: 2710194210 [05:00:54]line ДТ-К-5 [05:00:54]line 39.380 * 76.20 [05:00:54]line = 3000.76 [05:00:54]line НДС 12% НСП 1% [05:00:54]line > о реализуемом товаре [05:00:54]line ИТОГО: 3000.76 [05:00:54]line НСП 1% : 26.55 [05:00:54]line НДС 12% : 318.66 [05:00:54]line Наличными: 0.00 [05:00:54]line Безнал.: 3000.76 [05:00:54]line Место: АЗС № 85 "Партнер Нефть" [05:00:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:00:54]line СНО: Общий режим [05:00:54]line Чек 29 22.10.2024 05:00 [05:00:54]line Смена: 195 ФФД: 1.0 [05:00:54]line ЗНМ: 0300000167 [05:00:54]line РНМ: 0000000000156251 [05:00:54]line Версия ККМ: v1.0 [05:00:54]line Платежная система: Mbank [05:00:54]line ФМ: 0000000000963346 [05:00:54]line ФД: 70081 [05:00:54]line ФПД: 271453145791165 [05:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70081&fm=271453145791165&tin=02508201610067®Number=0000000000156251&sum=300076 [05:00:54]OFD Sender: Processing packet 70081 [packets to send 18, broken 17] [05:00:54]ProducePacketName [05:00:54]name=ofd_packets/00070081 [05:00:54]OFD Sender: To server: pG, [05:00:54]CommunicateWithHost lk.salyk.kg:30040 [05:00:54]ConnectInit lk.salyk.kg [05:00:54]written 0, free lines is 4095 [05:00:54]Connected sock=10 [05:00: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 34 36 0C 01 00 00 98 D4 04 01 AD 17 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 88 31 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 11 01 00 35 04 06 00 F6 E2 9C 53 FA BD 36 42 AC 5B D0 FA 5E 63 [05:00: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 34 36 4F 00 00 00 55 43 47 00 4D 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 34 36 10 04 04 00 C1 11 01 00 F4 03 04 00 2A DB 16 67 B6 04 01 00 00 33 6E 0F E2 B2 11 A0 32 [05:00:55]CommunicateWithHost err = 0 [05:00:55]CheckOFDResponse [05:00:55]1017 (14) - 77093643461234 [05:00:55]1041 (16) - 0000000000963346 [05:00:55]1040 (4) - 70081 [05:00:55]1012 (4) - 21.10.2024 22:52 [05:00:55]1206 (1) - 0 [05:00:55]OFD Sender: Remove packet 70081 [05:00:55]ProducePacketName [05:00:55]name=ofd_packets/00070081 [05:00:55]NVStorageDeleteData [05:00:55]Write to MH i2c: 01 00 00 34 3A 6E [05:00:55]Write i2c OK [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: 01 [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: 01 07 00 [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: 01 07 00 34 3A 00 00 00 00 00 1C 0D 9E [05:00:55]RasterBufferAndPrint [05:00:55]line [05:00:55]line [05:00:55]line [05:00:55]line [05:00:55]line [05:00:55]written 0, free lines is 3362 [05:00:55]MH_Cut [05:00:55]Write to MH i2c: D1 01 00 3B 3A 01 47 [05:00:55]Write i2c OK [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: D1 [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: D1 01 00 [05:00:55]MH_I2C_Read... [05:00:55]Read from MH i2c: D1 01 00 3B 3A 00 46 [05:00:55]Write to MH i2c: 01 00 00 3C 3A 76 [05:00:55]Write i2c OK [05:00:55]MH_I2C_Read... [05:00:55]OFD Sender: No OFD packet to send [05:00:55]*** Cut start [05:00:55]*** Partial cut [05:00:55]*** CUTSNS_PIN = 1 [05:00:55]*** CUTSNS_PIN = 0 [05:00:56]*** Brake cut motor [05:00:56]Read from MH i2c: 01 [05:00:56]MH_I2C_Read... [05:00:56]*** Stop cut motor [05:00:56]*** Cut end [05:00:56]Read from MH i2c: 01 07 00 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: 01 07 00 3C 3A 00 00 00 00 00 FF 0F 8B [05:00:56]process_action close_receipt done [05:00:56]requested_data is exist [05:00:56]produce_requested_data [05:00:56]requested_item fm.sn is exist - process it [05:00:56]wFMCommunicate request_size=4 [05:00:56]MH_SAM_APDU [05:00:56]CAPDU: 80 11 00 00 [05:00:56]Write to MH i2c: E2 08 00 3D 3A 80 11 00 00 00 00 00 00 F1 [05:00:56]Write i2c OK [05:00:56]MH_I2C_Read... [05:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:56]Read from MH i2c: E2 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 17 00 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 17 00 3D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [05:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:00:56]wFMCommunicate OK [05:00:56]requested_item fd.num is exist - process it [05:00:56]SAM_PROTO_GetFieldsCounters [05:00:56]wFMCommunicate request_size=4 [05:00:56]MH_SAM_APDU [05:00:56]CAPDU: 80 13 00 00 [05:00:56]Write to MH i2c: E2 08 00 3E 3A 80 13 00 00 00 00 00 00 F4 [05:00:56]Write i2c OK [05:00:56]MH_I2C_Read... [05:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:56]Read from MH i2c: E2 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 62 00 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 62 00 3E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [05:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:00:56]wFMCommunicate OK [05:00:56]SAM_PROTO_GetFieldsCounters done [05:00:56]requested_item shift.num is exist - process it [05:00:56]requested_item shift.opened is exist - process it [05:00:56]req_shift_opened [05:00:56]FM_GetShiftState [05:00:56]SAM_PROTO_GetShiftState [05:00:56]wFMCommunicate request_size=4 [05:00:56]MH_SAM_APDU [05:00:56]CAPDU: 80 13 01 00 [05:00:56]Write to MH i2c: E2 08 00 3F 3A 80 13 01 00 00 00 00 00 F6 [05:00:56]Write i2c OK [05:00:56]MH_I2C_Read... [05:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:56]Read from MH i2c: E2 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 0E 00 [05:00:56]MH_I2C_Read... [05:00:56]Read from MH i2c: E2 0E 00 3F 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E4 [05:00:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:00:56]wFMCommunicate OK [05:00:56]SAM_PROTO_GetShiftState done [05:00:56]FM_GetShiftState done [05:00:56]req_shift_opened done [05:00:56]requested_item shift.open_date is exist - process it [05:00:56]req_shift_open_date [05:00:56]req_shift_open_date done [05:00:56]produce_requested_data done [05:00:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70081,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [05:00:56]process_action_free close_receipt [05:00:56]json_value_free [05:00:56]json_value_free done [05:00:56]process_json_proto returns [05:00:56]Send response to host [05:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70081,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [05:00:56]free response buf [05:00:56]execute_script done [05:00:56]execute_script returns [05:00:56]free content buf [05:00:56]Sock 9.Close socket [05:00:56]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]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:53]accept exits with 7 [05:24:53]New connection [05:24:53]New thread 3067026788 created [05:24:53]Thread 3067170148 joined [05:24:53]Waiting for new connection... [05:24:53] Sock 7.Parse request [05:24:53]Sock 7.Check first char [05:24:53]Sock 7.First char is OK [05:24:53]request: POST /json_proto HTTP/1.0 [05:24:53]Method: POST [05:24:53]URL: /json_proto [05:24:53]Method is POST - this is cgi request [05:24:53]url: /json_proto [05:24:53]query_string will be loaded in cgi processing [05:24:53]execute_cgi json_proto POST (null) [05:24:53]execute_cgi path=json_proto method=POST [05:24:53]POST find Content-Length [05:24:53]Host: 172.17.50.3:8080 [05:24:53]Content-Length: 978 [05:24:53]Content-Type: application/json [05:24:53] [05:24:53]POST finish read [05:24:53]Found Content-Length = 978 [05:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885848", "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" : 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 85\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" ] } } [05:24:53]execute_script... [05:24: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)2885848", "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" : 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 85\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" ] } } [05:24:53]POST & json_proto [05:24:53]process_json_proto [05:24:53]json parsed OK: [05:24:53]protocol is kg_v1.0 [05:24:53]action value=close_receipt [05:24:53]process_action close_receipt [05:24:53]cmd_close_receipt [05:24:53]MH_GetDate [05:24:53]Write to MH i2c: F0 00 00 40 3A 69 [05:24:53]Write i2c OK [05:24:53]MH_I2C_Read... [05:24:53]Read from MH i2c: F0 [05:24:53]MH_I2C_Read... [05:24:53]Read from MH i2c: F0 09 00 [05:24:53]MH_I2C_Read... [05:24:53]Read from MH i2c: F0 09 00 40 3A 00 29 37 17 67 6B 98 1E 66 D7 [05:24:53]GetLastDocTimeStamp 1729573256 [05:24:53]current date 1729574697 [05:24:53]FM_GetShiftState [05:24:53]SAM_PROTO_GetShiftState [05:24:53]wFMCommunicate request_size=4 [05:24:53]MH_SAM_APDU [05:24:53]CAPDU: 80 13 01 00 [05:24:53]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [05:24:53]Write i2c OK [05:24:53]MH_I2C_Read... [05:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:53]Read from MH i2c: E2 [05:24:53]MH_I2C_Read... [05:24:53]Read from MH i2c: E2 0E 00 [05:24:53]MH_I2C_Read... [05:24:53]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E6 [05:24:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:24:53]wFMCommunicate OK [05:24:53]SAM_PROTO_GetShiftState done [05:24:53]FM_GetShiftState done [05:24:53]opened in 1729555832 [05:24:53]opened+sec_in_day 1729642232 [05:24:53]quantity*price = 400064 [05:24:53]sum+1 = 400065 [05:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 30 22.10.2024 05:24 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 53.20 сом ФМ: 0000000000963346 ФД: 70082 ФПД: 142022251804089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70082&fm=142022251804089&tin=02508201610067®Number=0000000000156251&sum=400000 [05:24:55]StoreToDocumentArchive [05:24:55]shift 195 fd 70082 [05:24:55]save to /storage/0195/doc_00070082 [05:24:55]save last doc name /storage/0195/doc_00070082 to /storage/kkm_last_doc_name [05:24:55]save OK [05:24:55]Clear old archive folders... [05:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:24:55]tlvbuf is 0123CFE0 [05:24:55]SAM_PROTO_ClearQueue [05:24:55]wFMCommunicate request_size=4 [05:24:55]MH_SAM_APDU [05:24:55]CAPDU: 80 09 00 00 [05:24:55]Write to MH i2c: E2 08 00 4E 3A 80 09 00 00 00 00 00 00 FA [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [05:24:55]RAPDU: 90 00 [05:24:55]wFMCommunicate OK [05:24:55]SAM_PROTO_ClearQueue done [05:24:55]KKMCreateOFDPacket [05:24:55]OFDProtocolAddRootSTLVToBuf [05:24:55]FM_MakeSignedData [05:24:55]FM_MakeSignedData [05:24:55]SAM_PROTO_SignData [05:24:55]wFMCommunicate request_size=4 [05:24:55]MH_SAM_APDU [05:24:55]CAPDU: 80 0D 01 02 [05:24:55]Write to MH i2c: E2 08 00 4F 3A 80 0D 01 02 00 00 00 00 02 [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 4F 3A 00 90 00 FD [05:24:55]RAPDU: 90 00 [05:24:55]wFMCommunicate OK [05:24:55]wFMCommunicate request_size=255 [05:24:55]MH_SAM_APDU [05:24: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 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 1E 00 00 00 F4 03 04 00 29 37 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 11 01 00 35 04 06 00 81 2B 21 DE [05:24:55]Write to MH i2c: E2 02 01 50 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 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 1E 00 00 00 F4 03 04 00 29 37 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 11 01 00 35 04 06 00 81 2B 21 DE 00 00 4E [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [05:24:55]RAPDU: 90 00 [05:24:55]wFMCommunicate OK [05:24:55]wFMCommunicate request_size=7 [05:24:55]MH_SAM_APDU [05:24:55]CAPDU: 80 0D 02 02 02 75 B9 [05:24:55]Write to MH i2c: E2 0A 00 51 3A 80 0D 02 02 02 00 75 B9 00 00 37 [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [05:24:55]RAPDU: 90 00 [05:24:55]wFMCommunicate OK [05:24:55]wFMCommunicate request_size=4 [05:24:55]MH_SAM_APDU [05:24:55]CAPDU: 80 0D 03 02 [05:24:55]Write to MH i2c: E2 08 00 52 3A 80 0D 03 02 00 00 00 00 07 [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 0B 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 0B 00 52 3A 00 AC 43 86 92 41 34 1A 80 90 00 1E [05:24:55]RAPDU: AC 43 86 92 41 34 1A 80 90 00 [05:24:55]wFMCommunicate OK [05:24:55]SAM_PROTO_SignData done [05:24:55]FM_MakeSignedData done [05:24:55]CreateOFDProtocolMessage [05:24:55]wFMCommunicate request_size=4 [05:24:55]MH_SAM_APDU [05:24:55]CAPDU: 80 11 00 00 [05:24:55]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:55]Read from MH i2c: E2 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: E2 17 00 [05:24:55]MH_I2C_Read... [05:24:55]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 34 36 90 00 59 [05:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:24:55]wFMCommunicate OK [05:24:55]CreateOFDProtocolMessage done [05:24:55]OFDSenderStorePacket 70082 [05:24:55]StoreOFDPacket docnum=70082 [05:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B4 4C 04 01 47 06 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 1E 00 00 00 F4 03 04 00 29 37 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 11 01 00 35 04 06 00 81 2B 21 DE 75 B9 AC 43 86 92 41 34 1A 80 [05:24:55]CheckFolder [05:24:55]dirname=/storage/ofd_packets [05:24:55]CheckFolder done [05:24:55]ProducePacketName [05:24:55]name=ofd_packets/00070082 [05:24:55]NVStorageSaveData ofd_packets/00070082 [05:24:55]File name is /storage/ofd_packets/00070082 [05:24:55]Write 298 bytes [05:24:55]NVStorageSaveData done [05:24:55]OFDSenderStorePacket done [05:24:55]KKMCreateOFDPacket done [05:24:55]NVStorageSaveData kkm_last_timestamp [05:24:55]File name is /storage/kkm_last_timestamp [05:24:55]Write 4 bytes [05:24:55]NVStorageSaveData done [05:24:55]ExternCall_PrintAddStr [05:24:55]wPrintStart [05:24:55]Write to MH i2c: 01 00 00 54 3A 8E [05:24:55]Write i2c OK [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: 01 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: 01 07 00 [05:24:55]MH_I2C_Read... [05:24:55]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [05:24:55]RasterBufferAndPrint [05:24:55]line Счет N : (1)2885848 [05:24:55]line ИНН: 02508201610067 [05:24:55]line Контрольно-Кассовый Чек [05:24:55]line ПРОДАЖА [05:24:55]line ТРК (МРК, ГНК) : 51 [05:24:55]line Товар: 2710194210 [05:24:55]line ДТ-К-5 [05:24:55]line 53.200 * 75.20 [05:24:55]line = 4000.64 [05:24:55]line НДС 12% НСП 1% [05:24:55]line > о реализуемом товаре [05:24:55]line ОКРУГЛЕНИЕ: -0.64 [05:24:55]line ИТОГО: 4000.00 [05:24:55]line Внесено: 4000.00 [05:24:55]line СДАЧА: 0.00 [05:24:55]line НСП 1% : 35.40 [05:24:55]line НДС 12% : 424.85 [05:24:55]line Наличными: 4000.00 [05:24:55]line Безнал.: 0.00 [05:24:55]line Место: АЗС № 85 "Партнер Нефть" [05:24:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:24:55]line СНО: Общий режим [05:24:55]line Чек 30 22.10.2024 05:24 [05:24:55]line Смена: 195 ФФД: 1.0 [05:24:55]line ЗНМ: 0300000167 [05:24:55]line РНМ: 0000000000156251 [05:24:55]line Версия ККМ: v1.0 [05:24:55]line [05:24:55]line Дисконтная программа [05:24:55]line ДТ [05:24:55]line номер 85 [05:24:55]line сэкономлено 53.20 сом [05:24:55]line ФМ: 0000000000963346 [05:24:55]line ФД: 70082 [05:24:55]line ФПД: 142022251804089 [05:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70082&fm=142022251804089&tin=02508201610067®Number=0000000000156251&sum=400000 [05:24:55]OFD Sender: Processing packet 70082 [packets to send 18, broken 17] [05:24:55]ProducePacketName [05:24:55]name=ofd_packets/00070082 [05:24:55]OFD Sender: To server: pG, [05:24:55]CommunicateWithHost lk.salyk.kg:30040 [05:24:55]ConnectInit lk.salyk.kg [05:24:55]written 0, free lines is 4095 [05:24:55]Connected sock=10 [05:24: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 34 36 0C 01 00 00 B4 4C 04 01 47 06 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 1E 00 00 00 F4 03 04 00 29 37 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 11 01 00 35 04 06 00 81 2B 21 DE 75 B9 AC 43 86 92 41 34 1A 80 [05:24: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 34 36 4F 00 00 00 59 8F 47 00 31 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 11 01 00 F4 03 04 00 CB E0 16 67 B6 04 01 00 00 2E 75 6E E1 60 15 2B 2E [05:24:56]CommunicateWithHost err = 0 [05:24:56]CheckOFDResponse [05:24:56]1017 (14) - 77093643461234 [05:24:56]1041 (16) - 0000000000963346 [05:24:56]1040 (4) - 70082 [05:24:56]1012 (4) - 21.10.2024 23:16 [05:24:56]1206 (1) - 0 [05:24:56]OFD Sender: Remove packet 70082 [05:24:56]ProducePacketName [05:24:56]name=ofd_packets/00070082 [05:24:56]NVStorageDeleteData [05:24:56]Write to MH i2c: 01 00 00 84 3A BE [05:24:56]Write i2c OK [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: 01 [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: 01 07 00 [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: 01 07 00 84 3A 00 00 00 00 00 97 0C 68 [05:24:56]RasterBufferAndPrint [05:24:56]line [05:24:56]line [05:24:56]line [05:24:56]line [05:24:56]line [05:24:56]written 0, free lines is 3229 [05:24:56]MH_Cut [05:24:56]Write to MH i2c: D1 01 00 8B 3A 01 97 [05:24:56]Write i2c OK [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: D1 [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: D1 01 00 [05:24:56]MH_I2C_Read... [05:24:56]Read from MH i2c: D1 01 00 8B 3A 00 96 [05:24:56]Write to MH i2c: 01 00 00 8C 3A C6 [05:24:56]Write i2c OK [05:24:56]MH_I2C_Read... [05:24:56]OFD Sender: No OFD packet to send [05:24:57]*** Cut start [05:24:57]*** Partial cut [05:24:57]*** CUTSNS_PIN = 1 [05:24:57]*** CUTSNS_PIN = 0 [05:24:57]*** Brake cut motor [05:24:57]Read from MH i2c: 01 [05:24:57]MH_I2C_Read... [05:24:57]*** Stop cut motor [05:24:57]*** Cut end [05:24:57]Read from MH i2c: 01 07 00 [05:24:57]MH_I2C_Read... [05:24:57]Read from MH i2c: 01 07 00 8C 3A 00 00 00 00 00 FF 0F DB [05:24:57]process_action close_receipt done [05:24:57]requested_data is exist [05:24:57]produce_requested_data [05:24:57]requested_item fm.sn is exist - process it [05:24:57]wFMCommunicate request_size=4 [05:24:57]MH_SAM_APDU [05:24:57]CAPDU: 80 11 00 00 [05:24:57]Write to MH i2c: E2 08 00 8D 3A 80 11 00 00 00 00 00 00 41 [05:24:57]Write i2c OK [05:24:57]MH_I2C_Read... [05:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:57]Read from MH i2c: E2 [05:24:57]MH_I2C_Read... [05:24:57]Read from MH i2c: E2 17 00 [05:24:57]MH_I2C_Read... [05:24:57]Read from MH i2c: E2 17 00 8D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [05:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:24:57]wFMCommunicate OK [05:24:57]requested_item fd.num is exist - process it [05:24:57]SAM_PROTO_GetFieldsCounters [05:24:57]wFMCommunicate request_size=4 [05:24:57]MH_SAM_APDU [05:24:57]CAPDU: 80 13 00 00 [05:24:57]Write to MH i2c: E2 08 00 8E 3A 80 13 00 00 00 00 00 00 44 [05:24:57]Write i2c OK [05:24:57]MH_I2C_Read... [05:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:57]Read from MH i2c: E2 [05:24:57]MH_I2C_Read... [05:24:57]Read from MH i2c: E2 62 00 [05:24:57]MH_I2C_Read... [05:24:57]Read from MH i2c: E2 62 00 8E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 11 01 00 0E 04 04 00 C3 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 50 [05:24: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 11 01 00 0E 04 04 00 C3 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 [05:24:57]wFMCommunicate OK [05:24:57]SAM_PROTO_GetFieldsCounters done [05:24:57]requested_item shift.num is exist - process it [05:24:57]requested_item shift.opened is exist - process it [05:24:57]req_shift_opened [05:24:57]FM_GetShiftState [05:24:57]SAM_PROTO_GetShiftState [05:24:57]wFMCommunicate request_size=4 [05:24:57]MH_SAM_APDU [05:24:57]CAPDU: 80 13 01 00 [05:24:57]Write to MH i2c: E2 08 00 8F 3A 80 13 01 00 00 00 00 00 46 [05:24:57]Write i2c OK [05:24:57]MH_I2C_Read... [05:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:58]Read from MH i2c: E2 [05:24:58]MH_I2C_Read... [05:24:58]Read from MH i2c: E2 0E 00 [05:24:58]MH_I2C_Read... [05:24:58]Read from MH i2c: E2 0E 00 8F 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [05:24:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:24:58]wFMCommunicate OK [05:24:58]SAM_PROTO_GetShiftState done [05:24:58]FM_GetShiftState done [05:24:58]req_shift_opened done [05:24:58]requested_item shift.open_date is exist - process it [05:24:58]req_shift_open_date [05:24:58]req_shift_open_date done [05:24:58]produce_requested_data done [05:24:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70082,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [05:24:58]process_action_free close_receipt [05:24:58]json_value_free [05:24:58]json_value_free done [05:24:58]process_json_proto returns [05:24:58]Send response to host [05:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70082,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [05:24:58]free response buf [05:24:58]execute_script done [05:24:58]execute_script returns [05:24:58]free content buf [05:24:58]Sock 7.Close socket [05:24:58]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]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: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:09]recv_with_timeout no data received [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:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [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:44]ConnectInit Can't connect to host [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:44:57]accept exits with 9 [05:44:57]New connection [05:44:57]New thread 3067170148 created [05:44:57]Thread 3067026788 joined [05:44:57]Waiting for new connection... [05:44:57] Sock 9.Parse request [05:44:57]Sock 9.Check first char [05:44:57]Sock 9.First char is OK [05:44:57]request: POST /json_proto HTTP/1.0 [05:44:57]Method: POST [05:44:57]URL: /json_proto [05:44:57]Method is POST - this is cgi request [05:44:57]url: /json_proto [05:44:57]query_string will be loaded in cgi processing [05:44:57]execute_cgi json_proto POST (null) [05:44:57]execute_cgi path=json_proto method=POST [05:44:57]POST find Content-Length [05:44:57]Host: 172.17.50.3:8080 [05:44:57]Content-Length: 767 [05:44:57]Content-Type: application/json [05:44:57] [05:44:57]POST finish read [05:44:57]Found Content-Length = 767 [05:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885849", "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" : 52.500, "sum" : 4000.50, "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" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:57]execute_script... [05:44: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)2885849", "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" : 52.500, "sum" : 4000.50, "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" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:57]POST & json_proto [05:44:57]process_json_proto [05:44:57]json parsed OK: [05:44:57]protocol is kg_v1.0 [05:44:57]action value=close_receipt [05:44:57]process_action close_receipt [05:44:57]cmd_close_receipt [05:44:57]MH_GetDate [05:44:57]Write to MH i2c: F0 00 00 90 3A B9 [05:44:57]Write i2c OK [05:44:57]MH_I2C_Read... [05:44:57]Read from MH i2c: F0 [05:44:57]MH_I2C_Read... [05:44:57]Read from MH i2c: F0 09 00 [05:44:57]MH_I2C_Read... [05:44:57]Read from MH i2c: F0 09 00 90 3A 00 DD 3B 17 67 6B 98 1E 66 DF [05:44:57]GetLastDocTimeStamp 1729574697 [05:44:57]current date 1729575901 [05:44:57]FM_GetShiftState [05:44:57]SAM_PROTO_GetShiftState [05:44:57]wFMCommunicate request_size=4 [05:44:57]MH_SAM_APDU [05:44:57]CAPDU: 80 13 01 00 [05:44:57]Write to MH i2c: E2 08 00 91 3A 80 13 01 00 00 00 00 00 48 [05:44:57]Write i2c OK [05:44:57]MH_I2C_Read... [05:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:57]Read from MH i2c: E2 [05:44:57]MH_I2C_Read... [05:44:57]Read from MH i2c: E2 0E 00 [05:44:57]MH_I2C_Read... [05:44:57]Read from MH i2c: E2 0E 00 91 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [05:44:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:44:57]wFMCommunicate OK [05:44:57]SAM_PROTO_GetShiftState done [05:44:57]FM_GetShiftState done [05:44:57]opened in 1729555832 [05:44:57]opened+sec_in_day 1729642232 [05:44:57]quantity*price = 400050 [05:44:57]sum+1 = 400051 [05:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 31 22.10.2024 05:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70083 ФПД: 276031644454627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70083&fm=276031644454627&tin=02508201610067®Number=0000000000156251&sum=400050 [05:44:59]StoreToDocumentArchive [05:44:59]shift 195 fd 70083 [05:44:59]save to /storage/0195/doc_00070083 [05:44:59]save last doc name /storage/0195/doc_00070083 to /storage/kkm_last_doc_name [05:44:59]save OK [05:44:59]Clear old archive folders... [05:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:44:59]tlvbuf is 011A1E70 [05:44:59]SAM_PROTO_ClearQueue [05:44:59]wFMCommunicate request_size=4 [05:44:59]MH_SAM_APDU [05:44:59]CAPDU: 80 09 00 00 [05:44:59]Write to MH i2c: E2 08 00 9E 3A 80 09 00 00 00 00 00 00 4A [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 9E 3A 00 90 00 4C [05:44:59]RAPDU: 90 00 [05:44:59]wFMCommunicate OK [05:44:59]SAM_PROTO_ClearQueue done [05:44:59]KKMCreateOFDPacket [05:44:59]OFDProtocolAddRootSTLVToBuf [05:44:59]FM_MakeSignedData [05:44:59]FM_MakeSignedData [05:44:59]SAM_PROTO_SignData [05:44:59]wFMCommunicate request_size=4 [05:44:59]MH_SAM_APDU [05:44:59]CAPDU: 80 0D 01 02 [05:44:59]Write to MH i2c: E2 08 00 9F 3A 80 0D 01 02 00 00 00 00 52 [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 9F 3A 00 90 00 4D [05:44:59]RAPDU: 90 00 [05:44:59]wFMCommunicate OK [05:44:59]wFMCommunicate request_size=255 [05:44:59]MH_SAM_APDU [05:44:59]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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DD 3B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 11 01 00 35 04 06 00 FB 0C A0 1D [05:44:59]Write to MH i2c: E2 02 01 A0 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DD 3B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 11 01 00 35 04 06 00 FB 0C A0 1D 00 00 6B [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 A0 3A 00 90 00 4E [05:44:59]RAPDU: 90 00 [05:44:59]wFMCommunicate OK [05:44:59]wFMCommunicate request_size=7 [05:44:59]MH_SAM_APDU [05:44:59]CAPDU: 80 0D 02 02 02 4E E3 [05:44:59]Write to MH i2c: E2 0A 00 A1 3A 80 0D 02 02 02 00 4E E3 00 00 8A [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 03 00 A1 3A 00 90 00 4F [05:44:59]RAPDU: 90 00 [05:44:59]wFMCommunicate OK [05:44:59]wFMCommunicate request_size=4 [05:44:59]MH_SAM_APDU [05:44:59]CAPDU: 80 0D 03 02 [05:44:59]Write to MH i2c: E2 08 00 A2 3A 80 0D 03 02 00 00 00 00 57 [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 0B 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 0B 00 A2 3A 00 4C 1E 51 20 B4 FE 23 15 90 00 1D [05:44:59]RAPDU: 4C 1E 51 20 B4 FE 23 15 90 00 [05:44:59]wFMCommunicate OK [05:44:59]SAM_PROTO_SignData done [05:44:59]FM_MakeSignedData done [05:44:59]CreateOFDProtocolMessage [05:44:59]wFMCommunicate request_size=4 [05:44:59]MH_SAM_APDU [05:44:59]CAPDU: 80 11 00 00 [05:44:59]Write to MH i2c: E2 08 00 A3 3A 80 11 00 00 00 00 00 00 57 [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:59]Read from MH i2c: E2 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 17 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: E2 17 00 A3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [05:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:44:59]wFMCommunicate OK [05:44:59]CreateOFDProtocolMessage done [05:44:59]OFDSenderStorePacket 70083 [05:44:59]StoreOFDPacket docnum=70083 [05:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F8 5F 04 01 A6 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DD 3B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 11 01 00 35 04 06 00 FB 0C A0 1D 4E E3 4C 1E 51 20 B4 FE 23 15 [05:44:59]CheckFolder [05:44:59]dirname=/storage/ofd_packets [05:44:59]CheckFolder done [05:44:59]ProducePacketName [05:44:59]name=ofd_packets/00070083 [05:44:59]NVStorageSaveData ofd_packets/00070083 [05:44:59]File name is /storage/ofd_packets/00070083 [05:44:59]Write 298 bytes [05:44:59]NVStorageSaveData done [05:44:59]OFDSenderStorePacket done [05:44:59]KKMCreateOFDPacket done [05:44:59]NVStorageSaveData kkm_last_timestamp [05:44:59]File name is /storage/kkm_last_timestamp [05:44:59]Write 4 bytes [05:44:59]NVStorageSaveData done [05:44:59]ExternCall_PrintAddStr [05:44:59]wPrintStart [05:44:59]Write to MH i2c: 01 00 00 A4 3A DE [05:44:59]Write i2c OK [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: 01 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: 01 07 00 [05:44:59]MH_I2C_Read... [05:44:59]Read from MH i2c: 01 07 00 A4 3A 00 00 00 00 00 FF 0F F3 [05:44:59]RasterBufferAndPrint [05:44:59]line Счет N : (1)2885849 [05:44:59]line ИНН: 02508201610067 [05:44:59]line Контрольно-Кассовый Чек [05:44:59]line ПРОДАЖА [05:44:59]line ТРК (МРК, ГНК) : 51 [05:44:59]line Товар: 2710194210 [05:44:59]line ДТ-К-5 [05:44:59]line 52.500 * 76.20 [05:44:59]line = 4000.50 [05:44:59]line НДС 12% НСП 1% [05:44:59]line > о реализуемом товаре [05:44:59]line ИТОГО: 4000.50 [05:44:59]line НСП 1% : 35.40 [05:44:59]line НДС 12% : 424.83 [05:44:59]line Наличными: 0.00 [05:44:59]line Безнал.: 4000.50 [05:44:59]line Место: АЗС № 85 "Партнер Нефть" [05:44:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:44:59]line СНО: Общий режим [05:44:59]line Чек 31 22.10.2024 05:45 [05:44:59]line Смена: 195 ФФД: 1.0 [05:44:59]line ЗНМ: 0300000167 [05:44:59]line РНМ: 0000000000156251 [05:44:59]line Версия ККМ: v1.0 [05:44:59]line Платежная система: Mbank [05:44:59]line ФМ: 0000000000963346 [05:44:59]line ФД: 70083 [05:44:59]line ФПД: 276031644454627 [05:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70083&fm=276031644454627&tin=02508201610067®Number=0000000000156251&sum=400050 [05:44:59]OFD Sender: Processing packet 70083 [packets to send 18, broken 17] [05:44:59]ProducePacketName [05:44:59]name=ofd_packets/00070083 [05:44:59]OFD Sender: To server: pG, [05:44:59]CommunicateWithHost lk.salyk.kg:30040 [05:44:59]ConnectInit lk.salyk.kg [05:44:59]written 0, free lines is 4095 [05:44:59]Connected sock=10 [05:44: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 34 36 0C 01 00 00 F8 5F 04 01 A6 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DD 3B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 11 01 00 35 04 06 00 FB 0C A0 1D 4E E3 4C 1E 51 20 B4 FE 23 15 [05:45: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 34 36 4F 00 00 00 8F 0A 47 00 EA 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 34 36 10 04 04 00 C3 11 01 00 F4 03 04 00 7F E5 16 67 B6 04 01 00 00 06 90 AA A1 40 76 BB CB [05:45:00]CommunicateWithHost err = 0 [05:45:00]CheckOFDResponse [05:45:00]1017 (14) - 77093643461234 [05:45:00]1041 (16) - 0000000000963346 [05:45:00]1040 (4) - 70083 [05:45:00]1012 (4) - 21.10.2024 23:36 [05:45:00]1206 (1) - 0 [05:45:00]OFD Sender: Remove packet 70083 [05:45:00]ProducePacketName [05:45:00]name=ofd_packets/00070083 [05:45:00]NVStorageDeleteData [05:45:00]Write to MH i2c: 01 00 00 CD 3A 07 [05:45:00]Write i2c OK [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: 01 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: 01 07 00 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: 01 07 00 CD 3A 00 00 00 00 00 10 0D 2B [05:45:00]RasterBufferAndPrint [05:45:00]line [05:45:00]line [05:45:00]line [05:45:00]line [05:45:00]line [05:45:00]written 0, free lines is 3350 [05:45:00]MH_Cut [05:45:00]Write to MH i2c: D1 01 00 D4 3A 01 E0 [05:45:00]Write i2c OK [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: D1 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: D1 01 00 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: D1 01 00 D4 3A 00 DF [05:45:00]Write to MH i2c: 01 00 00 D5 3A 0F [05:45:00]Write i2c OK [05:45:00]MH_I2C_Read... [05:45:00]OFD Sender: No OFD packet to send [05:45:01]*** Cut start [05:45:01]*** Partial cut [05:45:01]*** CUTSNS_PIN = 1 [05:45:01]*** CUTSNS_PIN = 0 [05:45:01]*** Brake cut motor [05:45:01]Read from MH i2c: 01 [05:45:01]MH_I2C_Read... [05:45:01]*** Stop cut motor [05:45:01]*** Cut end [05:45:01]Read from MH i2c: 01 07 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: 01 07 00 D5 3A 00 00 00 00 00 FF 0F 24 [05:45:01]process_action close_receipt done [05:45:01]requested_data is exist [05:45:01]produce_requested_data [05:45:01]requested_item fm.sn is exist - process it [05:45:01]wFMCommunicate request_size=4 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 11 00 00 [05:45:01]Write to MH i2c: E2 08 00 D6 3A 80 11 00 00 00 00 00 00 8A [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 17 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 17 00 D6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [05:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:45:01]wFMCommunicate OK [05:45:01]requested_item fd.num is exist - process it [05:45:01]SAM_PROTO_GetFieldsCounters [05:45:01]wFMCommunicate request_size=4 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 13 00 00 [05:45:01]Write to MH i2c: E2 08 00 D7 3A 80 13 00 00 00 00 00 00 8D [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 62 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 62 00 D7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 11 01 00 0E 04 04 00 C3 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 9D [05:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 11 01 00 0E 04 04 00 C3 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 [05:45:01]wFMCommunicate OK [05:45:01]SAM_PROTO_GetFieldsCounters done [05:45:01]requested_item shift.num is exist - process it [05:45:01]requested_item shift.opened is exist - process it [05:45:01]req_shift_opened [05:45:01]FM_GetShiftState [05:45:01]SAM_PROTO_GetShiftState [05:45:01]wFMCommunicate request_size=4 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 13 01 00 [05:45:01]Write to MH i2c: E2 08 00 D8 3A 80 13 01 00 00 00 00 00 8F [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 0E 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 0E 00 D8 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [05:45:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [05:45:01]wFMCommunicate OK [05:45:01]SAM_PROTO_GetShiftState done [05:45:01]FM_GetShiftState done [05:45:01]req_shift_opened done [05:45:01]requested_item shift.open_date is exist - process it [05:45:01]req_shift_open_date [05:45:01]req_shift_open_date done [05:45:01]produce_requested_data done [05:45:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70083,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [05:45:01]process_action_free close_receipt [05:45:01]json_value_free [05:45:01]json_value_free done [05:45:01]process_json_proto returns [05:45:01]Send response to host [05:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70083,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [05:45:01]free response buf [05:45:01]execute_script done [05:45:01]execute_script returns [05:45:01]free content buf [05:45:01]Sock 9.Close socket [05:45:01]Sock 9.Thread stoped [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:00:59]recv_with_timeout no data received [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:44]recv_with_timeout no data received [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:30]ConnectInit Can't connect to host [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:30]recv_with_timeout no data received [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:44]accept exits with 7 [06:16:44]New connection [06:16:44]New thread 3067026788 created [06:16:44]Thread 3067170148 joined [06:16:44]Waiting for new connection... [06:16:44] Sock 7.Parse request [06:16:44]Sock 7.Check first char [06:16:44]Sock 7.First char is OK [06:16:44]request: POST /json_proto HTTP/1.0 [06:16:44]Method: POST [06:16:44]URL: /json_proto [06:16:44]Method is POST - this is cgi request [06:16:44]url: /json_proto [06:16:44]query_string will be loaded in cgi processing [06:16:44]execute_cgi json_proto POST (null) [06:16:44]execute_cgi path=json_proto method=POST [06:16:44]POST find Content-Length [06:16:44]Host: 172.17.50.3:8080 [06:16:44]Content-Length: 768 [06:16:44]Content-Type: application/json [06:16:44] [06:16:44]POST finish read [06:16:44]Found Content-Length = 768 [06:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:16:44]execute_script... [06:16: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)2885850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:16:44]POST & json_proto [06:16:44]process_json_proto [06:16:44]json parsed OK: [06:16:44]protocol is kg_v1.0 [06:16:44]action value=close_receipt [06:16:44]process_action close_receipt [06:16:44]cmd_close_receipt [06:16:44]MH_GetDate [06:16:44]Write to MH i2c: F0 00 00 D9 3A 02 [06:16:44]Write i2c OK [06:16:44]MH_I2C_Read... [06:16:44]Read from MH i2c: F0 [06:16:44]MH_I2C_Read... [06:16:44]Read from MH i2c: F0 09 00 [06:16:44]MH_I2C_Read... [06:16:44]Read from MH i2c: F0 09 00 D9 3A 00 50 43 17 67 6B 98 1E 66 A3 [06:16:44]GetLastDocTimeStamp 1729575901 [06:16:44]current date 1729577808 [06:16:44]FM_GetShiftState [06:16:44]SAM_PROTO_GetShiftState [06:16:44]wFMCommunicate request_size=4 [06:16:44]MH_SAM_APDU [06:16:44]CAPDU: 80 13 01 00 [06:16:44]Write to MH i2c: E2 08 00 DA 3A 80 13 01 00 00 00 00 00 91 [06:16:44]Write i2c OK [06:16:44]MH_I2C_Read... [06:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:44]Read from MH i2c: E2 [06:16:44]MH_I2C_Read... [06:16:44]Read from MH i2c: E2 0E 00 [06:16:44]MH_I2C_Read... [06:16:44]Read from MH i2c: E2 0E 00 DA 3A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7F [06:16:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:16:44]wFMCommunicate OK [06:16:44]SAM_PROTO_GetShiftState done [06:16:44]FM_GetShiftState done [06:16:44]opened in 1729555832 [06:16:44]opened+sec_in_day 1729642232 [06:16:44]quantity*price = 80012 [06:16:44]sum+1 = 80013 [06:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 32 22.10.2024 06:16 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70084 ФПД: 275754176874404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70084&fm=275754176874404&tin=02508201610067®Number=0000000000156251&sum=80012 [06:16:45]StoreToDocumentArchive [06:16:45]shift 195 fd 70084 [06:16:45]save to /storage/0195/doc_00070084 [06:16:45]save last doc name /storage/0195/doc_00070084 to /storage/kkm_last_doc_name [06:16:45]save OK [06:16:45]Clear old archive folders... [06:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:16:45]tlvbuf is 011527E0 [06:16:45]SAM_PROTO_ClearQueue [06:16:45]wFMCommunicate request_size=4 [06:16:45]MH_SAM_APDU [06:16:45]CAPDU: 80 09 00 00 [06:16:45]Write to MH i2c: E2 08 00 E7 3A 80 09 00 00 00 00 00 00 93 [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 E7 3A 00 90 00 95 [06:16:45]RAPDU: 90 00 [06:16:45]wFMCommunicate OK [06:16:45]SAM_PROTO_ClearQueue done [06:16:45]KKMCreateOFDPacket [06:16:45]OFDProtocolAddRootSTLVToBuf [06:16:45]FM_MakeSignedData [06:16:45]FM_MakeSignedData [06:16:45]SAM_PROTO_SignData [06:16:45]wFMCommunicate request_size=4 [06:16:45]MH_SAM_APDU [06:16:45]CAPDU: 80 0D 01 02 [06:16:45]Write to MH i2c: E2 08 00 E8 3A 80 0D 01 02 00 00 00 00 9B [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 E8 3A 00 90 00 96 [06:16:45]RAPDU: 90 00 [06:16:45]wFMCommunicate OK [06:16:45]wFMCommunicate request_size=255 [06:16:45]MH_SAM_APDU [06:16:45]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 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 50 43 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 11 01 00 35 04 06 00 FA [06:16:45]Write to MH i2c: E2 02 01 E9 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 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 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 50 43 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 11 01 00 35 04 06 00 FA 00 00 EC [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 E9 3A 00 90 00 97 [06:16:45]RAPDU: 90 00 [06:16:45]wFMCommunicate OK [06:16:45]wFMCommunicate request_size=10 [06:16:45]MH_SAM_APDU [06:16:45]CAPDU: 80 0D 02 02 05 CC 05 C2 07 A4 [06:16:45]Write to MH i2c: E2 0D 00 EA 3A 80 0D 02 02 05 00 CC 05 C2 07 A4 00 00 E6 [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 03 00 EA 3A 00 90 00 98 [06:16:45]RAPDU: 90 00 [06:16:45]wFMCommunicate OK [06:16:45]wFMCommunicate request_size=4 [06:16:45]MH_SAM_APDU [06:16:45]CAPDU: 80 0D 03 02 [06:16:45]Write to MH i2c: E2 08 00 EB 3A 80 0D 03 02 00 00 00 00 A0 [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 0B 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 0B 00 EB 3A 00 D6 0C CF 1E B4 22 7B 94 90 00 55 [06:16:45]RAPDU: D6 0C CF 1E B4 22 7B 94 90 00 [06:16:45]wFMCommunicate OK [06:16:45]SAM_PROTO_SignData done [06:16:45]FM_MakeSignedData done [06:16:45]CreateOFDProtocolMessage [06:16:45]wFMCommunicate request_size=4 [06:16:45]MH_SAM_APDU [06:16:45]CAPDU: 80 11 00 00 [06:16:45]Write to MH i2c: E2 08 00 EC 3A 80 11 00 00 00 00 00 00 A0 [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:45]Read from MH i2c: E2 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 17 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: E2 17 00 EC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [06:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:16:45]wFMCommunicate OK [06:16:45]CreateOFDProtocolMessage done [06:16:45]OFDSenderStorePacket 70084 [06:16:45]StoreOFDPacket docnum=70084 [06:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 BC 07 01 3C 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 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 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 50 43 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 11 01 00 35 04 06 00 FA CC 05 C2 07 A4 D6 0C CF 1E B4 22 7B 94 [06:16:45]CheckFolder [06:16:45]dirname=/storage/ofd_packets [06:16:45]CheckFolder done [06:16:45]ProducePacketName [06:16:45]name=ofd_packets/00070084 [06:16:45]NVStorageSaveData ofd_packets/00070084 [06:16:45]File name is /storage/ofd_packets/00070084 [06:16:45]Write 301 bytes [06:16:45]NVStorageSaveData done [06:16:45]OFDSenderStorePacket done [06:16:45]KKMCreateOFDPacket done [06:16:45]NVStorageSaveData kkm_last_timestamp [06:16:45]File name is /storage/kkm_last_timestamp [06:16:45]Write 4 bytes [06:16:45]NVStorageSaveData done [06:16:45]ExternCall_PrintAddStr [06:16:45]wPrintStart [06:16:45]Write to MH i2c: 01 00 00 ED 3A 27 [06:16:45]Write i2c OK [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: 01 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: 01 07 00 [06:16:45]MH_I2C_Read... [06:16:45]Read from MH i2c: 01 07 00 ED 3A 00 00 00 00 00 FF 0F 3C [06:16:45]RasterBufferAndPrint [06:16:45]line Счет N : (1)2885850 [06:16:45]line ИНН: 02508201610067 [06:16:45]line Контрольно-Кассовый Чек [06:16:45]line ПРОДАЖА [06:16:45]line ТРК (МРК, ГНК) : 12 [06:16:45]line Товар: 2710124130 [06:16:45]line Аи-92-К-5 [06:16:45]line 11.960 * 66.90 [06:16:45]line = 800.12 [06:16:45]line НДС 12% НСП 1% [06:16:45]line > о реализуемом товаре [06:16:45]line ИТОГО: 800.12 [06:16:45]line НСП 1% : 7.08 [06:16:45]line НДС 12% : 84.97 [06:16:45]line Наличными: 0.00 [06:16:45]line Безнал.: 800.12 [06:16:45]line Место: АЗС № 85 "Партнер Нефть" [06:16:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:16:45]line СНО: Общий режим [06:16:45]line Чек 32 22.10.2024 06:16 [06:16:45]line Смена: 195 ФФД: 1.0 [06:16:45]line ЗНМ: 0300000167 [06:16:45]line РНМ: 0000000000156251 [06:16:45]line Версия ККМ: v1.0 [06:16:45]line Платежная система: Mbank [06:16:45]line ФМ: 0000000000963346 [06:16:45]line ФД: 70084 [06:16:45]line ФПД: 275754176874404 [06:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70084&fm=275754176874404&tin=02508201610067®Number=0000000000156251&sum=80012 [06:16:45]written 0, free lines is 4095 [06:16:46]OFD Sender: Processing packet 70084 [packets to send 18, broken 17] [06:16:46]ProducePacketName [06:16:46]name=ofd_packets/00070084 [06:16:46]OFD Sender: To server: pG, [06:16:46]CommunicateWithHost lk.salyk.kg:30040 [06:16:46]ConnectInit lk.salyk.kg [06:16:46]Connected sock=10 [06:16: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 34 36 0F 01 00 00 00 BC 07 01 3C 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 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 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 50 43 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 11 01 00 35 04 06 00 FA CC 05 C2 07 A4 D6 0C CF 1E B4 22 7B 94 [06:16:46]Write to MH i2c: 01 00 00 16 3B 51 [06:16:46]Write i2c OK [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: 01 [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: 01 07 00 [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: 01 07 00 16 3B 00 00 00 00 00 20 0D 85 [06:16:46]RasterBufferAndPrint [06:16:46]line [06:16:46]line [06:16:46]line [06:16:46]line [06:16:46]line [06:16:46]written 0, free lines is 3369 [06:16:46]MH_Cut [06:16:46]Write to MH i2c: D1 01 00 1D 3B 01 2A [06:16:46]Write i2c OK [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: D1 [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: D1 01 00 [06:16:46]MH_I2C_Read... [06:16:46]Read from MH i2c: D1 01 00 1D 3B 00 29 [06:16:46]Write to MH i2c: 01 00 00 1E 3B 59 [06:16:46]Write i2c OK [06:16:46]MH_I2C_Read... [06:16: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 34 36 4F 00 00 00 D3 B2 47 00 E5 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 34 36 10 04 04 00 C4 11 01 00 F4 03 04 00 F1 EC 16 67 B6 04 01 00 00 FD 64 18 8A CC 02 BC B5 [06:16:46]CommunicateWithHost err = 0 [06:16:46]CheckOFDResponse [06:16:46]1017 (14) - 77093643461234 [06:16:46]1041 (16) - 0000000000963346 [06:16:46]1040 (4) - 70084 [06:16:46]1012 (4) - 22.10.2024 00:08 [06:16:46]1206 (1) - 0 [06:16:46]OFD Sender: Remove packet 70084 [06:16:46]ProducePacketName [06:16:46]name=ofd_packets/00070084 [06:16:46]NVStorageDeleteData [06:16:47]OFD Sender: No OFD packet to send [06:16:47]*** Cut start [06:16:47]*** Partial cut [06:16:47]*** CUTSNS_PIN = 1 [06:16:47]*** CUTSNS_PIN = 0 [06:16:47]*** Brake cut motor [06:16:47]Read from MH i2c: 01 [06:16:47]MH_I2C_Read... [06:16:47]*** Stop cut motor [06:16:47]*** Cut end [06:16:47]Read from MH i2c: 01 07 00 [06:16:47]MH_I2C_Read... [06:16:47]Read from MH i2c: 01 07 00 1E 3B 00 00 00 00 00 FF 0F 6E [06:16:47]process_action close_receipt done [06:16:47]requested_data is exist [06:16:47]produce_requested_data [06:16:47]requested_item fm.sn is exist - process it [06:16:47]wFMCommunicate request_size=4 [06:16:47]MH_SAM_APDU [06:16:47]CAPDU: 80 11 00 00 [06:16:47]Write to MH i2c: E2 08 00 1F 3B 80 11 00 00 00 00 00 00 D4 [06:16:47]Write i2c OK [06:16:47]MH_I2C_Read... [06:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:47]Read from MH i2c: E2 [06:16:47]MH_I2C_Read... [06:16:47]Read from MH i2c: E2 17 00 [06:16:47]MH_I2C_Read... [06:16:47]Read from MH i2c: E2 17 00 1F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [06:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:16:47]wFMCommunicate OK [06:16:47]requested_item fd.num is exist - process it [06:16:47]SAM_PROTO_GetFieldsCounters [06:16:47]wFMCommunicate request_size=4 [06:16:47]MH_SAM_APDU [06:16:47]CAPDU: 80 13 00 00 [06:16:47]Write to MH i2c: E2 08 00 20 3B 80 13 00 00 00 00 00 00 D7 [06:16:47]Write i2c OK [06:16:47]MH_I2C_Read... [06:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:16:47]Read from MH i2c: E2 [06:16:47]MH_I2C_Read... [06:16:47]Read from MH i2c: E2 62 00 [06:16:47]MH_I2C_Read... [06:16:47]Read from MH i2c: E2 62 00 20 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 11 01 00 0E 04 04 00 C3 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 EB [06:16: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 11 01 00 0E 04 04 00 C3 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 [06:16:47]wFMCommunicate OK [06:16:47]SAM_PROTO_GetFieldsCounters done [06:16:47]requested_item shift.num is exist - process it [06:16:47]requested_item shift.opened is exist - process it [06:16:47]req_shift_opened [06:16:47]FM_GetShiftState [06:16:47]SAM_PROTO_GetShiftState [06:16:47]wFMCommunicate request_size=4 [06:16:47]MH_SAM_APDU [06:16:47]CAPDU: 80 13 01 00 [06:16:47]Write to MH i2c: E2 08 00 21 3B 80 13 01 00 00 00 00 00 D9 [06:16:47]Write i2c OK [06:16:47]MH_I2C_Read... [06:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:47]Read from MH i2c: E2 [06:16:48]MH_I2C_Read... [06:16:48]Read from MH i2c: E2 0E 00 [06:16:48]MH_I2C_Read... [06:16:48]Read from MH i2c: E2 0E 00 21 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C7 [06:16:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:16:48]wFMCommunicate OK [06:16:48]SAM_PROTO_GetShiftState done [06:16:48]FM_GetShiftState done [06:16:48]req_shift_opened done [06:16:48]requested_item shift.open_date is exist - process it [06:16:48]req_shift_open_date [06:16:48]req_shift_open_date done [06:16:48]produce_requested_data done [06:16:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70084,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:16:48]process_action_free close_receipt [06:16:48]json_value_free [06:16:48]json_value_free done [06:16:48]process_json_proto returns [06:16:48]Send response to host [06:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70084,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:16:48]free response buf [06:16:48]execute_script done [06:16:48]execute_script returns [06:16:48]free content buf [06:16:48]Sock 7.Close socket [06:16:48]Sock 7.Thread stoped [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:55]recv_with_timeout no data received [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:22:57]accept exits with 9 [06:22:57]New connection [06:22:57]New thread 3067170148 created [06:22:57]Thread 3067026788 joined [06:22:57]Waiting for new connection... [06:22:57] Sock 9.Parse request [06:22:57]Sock 9.Check first char [06:22:57]Sock 9.First char is OK [06:22:57]request: POST /json_proto HTTP/1.0 [06:22:57]Method: POST [06:22:57]URL: /json_proto [06:22:57]Method is POST - this is cgi request [06:22:57]url: /json_proto [06:22:57]query_string will be loaded in cgi processing [06:22:57]execute_cgi json_proto POST (null) [06:22:57]execute_cgi path=json_proto method=POST [06:22:57]POST find Content-Length [06:22:57]Host: 172.17.50.3:8080 [06:22:57]Content-Length: 679 [06:22:57]Content-Type: application/json [06:22:57] [06:22:57]POST finish read [06:22:57]Found Content-Length = 679 [06:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [06:22:57]execute_script... [06:22: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)2885851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [06:22:57]POST & json_proto [06:22:57]process_json_proto [06:22:57]json parsed OK: [06:22:57]protocol is kg_v1.0 [06:22:57]action value=close_receipt [06:22:57]process_action close_receipt [06:22:57]cmd_close_receipt [06:22:57]MH_GetDate [06:22:57]Write to MH i2c: F0 00 00 22 3B 4C [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: F0 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: F0 09 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: F0 09 00 22 3B 00 C5 44 17 67 6B 98 1E 66 63 [06:22:57]GetLastDocTimeStamp 1729577808 [06:22:57]current date 1729578181 [06:22:57]FM_GetShiftState [06:22:57]SAM_PROTO_GetShiftState [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 13 01 00 [06:22:57]Write to MH i2c: E2 08 00 23 3B 80 13 01 00 00 00 00 00 DB [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 23 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [06:22:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:22:57]wFMCommunicate OK [06:22:57]SAM_PROTO_GetShiftState done [06:22:57]FM_GetShiftState done [06:22:57]opened in 1729555832 [06:22:57]opened+sec_in_day 1729642232 [06:22:57]quantity*price = 90047 [06:22:57]sum+1 = 90048 [06:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 33 22.10.2024 06:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70085 ФПД: 224142117509844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70085&fm=224142117509844&tin=02508201610067®Number=0000000000156251&sum=90000 [06:22:58]StoreToDocumentArchive [06:22:58]shift 195 fd 70085 [06:22:58]save to /storage/0195/doc_00070085 [06:22:58]save last doc name /storage/0195/doc_00070085 to /storage/kkm_last_doc_name [06:22:58]save OK [06:22:58]Clear old archive folders... [06:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:22:58]tlvbuf is 011AD7C0 [06:22:58]SAM_PROTO_ClearQueue [06:22:58]wFMCommunicate request_size=4 [06:22:58]MH_SAM_APDU [06:22:58]CAPDU: 80 09 00 00 [06:22:58]Write to MH i2c: E2 08 00 30 3B 80 09 00 00 00 00 00 00 DD [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:58]Read from MH i2c: E2 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 30 3B 00 90 00 DF [06:22:58]RAPDU: 90 00 [06:22:58]wFMCommunicate OK [06:22:58]SAM_PROTO_ClearQueue done [06:22:58]KKMCreateOFDPacket [06:22:58]OFDProtocolAddRootSTLVToBuf [06:22:58]FM_MakeSignedData [06:22:58]FM_MakeSignedData [06:22:58]SAM_PROTO_SignData [06:22:58]wFMCommunicate request_size=4 [06:22:58]MH_SAM_APDU [06:22:58]CAPDU: 80 0D 01 02 [06:22:58]Write to MH i2c: E2 08 00 31 3B 80 0D 01 02 00 00 00 00 E5 [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:58]Read from MH i2c: E2 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 31 3B 00 90 00 E0 [06:22:58]RAPDU: 90 00 [06:22:58]wFMCommunicate OK [06:22:58]wFMCommunicate request_size=255 [06:22:58]MH_SAM_APDU [06:22: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 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 21 00 00 00 F4 03 04 00 C5 44 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 11 01 00 35 04 06 00 CB [06:22:58]Write to MH i2c: E2 02 01 32 3B 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 21 00 00 00 F4 03 04 00 C5 44 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 11 01 00 35 04 06 00 CB 00 00 98 [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:58]Read from MH i2c: E2 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 32 3B 00 90 00 E1 [06:22:58]RAPDU: 90 00 [06:22:58]wFMCommunicate OK [06:22:58]wFMCommunicate request_size=10 [06:22:58]MH_SAM_APDU [06:22:58]CAPDU: 80 0D 02 02 05 DB 27 4B 1A D4 [06:22:58]Write to MH i2c: E2 0D 00 33 3B 80 0D 02 02 05 00 DB 27 4B 1A D4 00 00 2D [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:58]Read from MH i2c: E2 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 03 00 33 3B 00 90 00 E2 [06:22:58]RAPDU: 90 00 [06:22:58]wFMCommunicate OK [06:22:58]wFMCommunicate request_size=4 [06:22:58]MH_SAM_APDU [06:22:58]CAPDU: 80 0D 03 02 [06:22:58]Write to MH i2c: E2 08 00 34 3B 80 0D 03 02 00 00 00 00 EA [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:59]Read from MH i2c: E2 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 0B 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 0B 00 34 3B 00 92 27 C5 78 61 0F DC AF 90 00 DC [06:22:59]RAPDU: 92 27 C5 78 61 0F DC AF 90 00 [06:22:59]wFMCommunicate OK [06:22:59]SAM_PROTO_SignData done [06:22:59]FM_MakeSignedData done [06:22:59]CreateOFDProtocolMessage [06:22:59]wFMCommunicate request_size=4 [06:22:59]MH_SAM_APDU [06:22:59]CAPDU: 80 11 00 00 [06:22:59]Write to MH i2c: E2 08 00 35 3B 80 11 00 00 00 00 00 00 EA [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:59]Read from MH i2c: E2 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 17 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 17 00 35 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [06:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:22:59]wFMCommunicate OK [06:22:59]CreateOFDProtocolMessage done [06:22:59]OFDSenderStorePacket 70085 [06:22:59]StoreOFDPacket docnum=70085 [06:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA C7 07 01 B8 38 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 21 00 00 00 F4 03 04 00 C5 44 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 11 01 00 35 04 06 00 CB DB 27 4B 1A D4 92 27 C5 78 61 0F DC AF [06:22:59]CheckFolder [06:22:59]dirname=/storage/ofd_packets [06:22:59]CheckFolder done [06:22:59]ProducePacketName [06:22:59]name=ofd_packets/00070085 [06:22:59]NVStorageSaveData ofd_packets/00070085 [06:22:59]File name is /storage/ofd_packets/00070085 [06:22:59]Write 301 bytes [06:22:59]NVStorageSaveData done [06:22:59]OFDSenderStorePacket done [06:22:59]KKMCreateOFDPacket done [06:22:59]NVStorageSaveData kkm_last_timestamp [06:22:59]File name is /storage/kkm_last_timestamp [06:22:59]Write 4 bytes [06:22:59]NVStorageSaveData done [06:22:59]ExternCall_PrintAddStr [06:22:59]wPrintStart [06:22:59]Write to MH i2c: 01 00 00 36 3B 71 [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 07 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 07 00 36 3B 00 00 00 00 00 FF 0F 86 [06:22:59]RasterBufferAndPrint [06:22:59]line Счет N : (1)2885851 [06:22:59]line ИНН: 02508201610067 [06:22:59]line Контрольно-Кассовый Чек [06:22:59]line ПРОДАЖА [06:22:59]line ТРК (МРК, ГНК) : 12 [06:22:59]line Товар: 2710124130 [06:22:59]line Аи-92-К-5 [06:22:59]line 13.460 * 66.90 [06:22:59]line = 900.47 [06:22:59]line НДС 12% НСП 1% [06:22:59]line > о реализуемом товаре [06:22:59]line ОКРУГЛЕНИЕ: -0.47 [06:22:59]line ИТОГО: 900.00 [06:22:59]line Внесено: 900.00 [06:22:59]line СДАЧА: 0.00 [06:22:59]line НСП 1% : 7.97 [06:22:59]line НДС 12% : 95.62 [06:22:59]line Наличными: 900.00 [06:22:59]line Безнал.: 0.00 [06:22:59]line Место: АЗС № 85 "Партнер Нефть" [06:22:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:22:59]line СНО: Общий режим [06:22:59]line Чек 33 22.10.2024 06:23 [06:22:59]line Смена: 195 ФФД: 1.0 [06:22:59]line ЗНМ: 0300000167 [06:22:59]line РНМ: 0000000000156251 [06:22:59]line Версия ККМ: v1.0 [06:22:59]line ФМ: 0000000000963346 [06:22:59]line ФД: 70085 [06:22:59]line ФПД: 224142117509844 [06:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T062301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70085&fm=224142117509844&tin=02508201610067®Number=0000000000156251&sum=90000 [06:22:59]OFD Sender: Processing packet 70085 [packets to send 18, broken 17] [06:22:59]ProducePacketName [06:22:59]name=ofd_packets/00070085 [06:22:59]OFD Sender: To server: pG, [06:22:59]CommunicateWithHost lk.salyk.kg:30040 [06:22:59]ConnectInit lk.salyk.kg [06:22:59]written 0, free lines is 4095 [06:22:59]Connected sock=11 [06:22: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 34 36 0F 01 00 00 AA C7 07 01 B8 38 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 21 00 00 00 F4 03 04 00 C5 44 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 11 01 00 35 04 06 00 CB DB 27 4B 1A D4 92 27 C5 78 61 0F DC AF [06:22: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 34 36 4F 00 00 00 25 00 47 00 25 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 34 36 10 04 04 00 C5 11 01 00 F4 03 04 00 66 EE 16 67 B6 04 01 00 00 3F CC 77 78 20 EC 4C BD [06:22:59]CommunicateWithHost err = 0 [06:22:59]CheckOFDResponse [06:22:59]1017 (14) - 77093643461234 [06:22:59]1041 (16) - 0000000000963346 [06:22:59]1040 (4) - 70085 [06:22:59]1012 (4) - 22.10.2024 00:14 [06:22:59]1206 (1) - 0 [06:22:59]OFD Sender: Remove packet 70085 [06:22:59]ProducePacketName [06:22:59]name=ofd_packets/00070085 [06:22:59]NVStorageDeleteData [06:22:59]Write to MH i2c: 01 00 00 61 3B 9C [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 07 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: 01 07 00 61 3B 00 00 00 00 00 EE 0C 9D [06:22:59]RasterBufferAndPrint [06:22:59]line [06:22:59]line [06:22:59]line [06:22:59]line [06:22:59]line [06:22:59]written 0, free lines is 3316 [06:22:59]MH_Cut [06:22:59]Write to MH i2c: D1 01 00 68 3B 01 75 [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: D1 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: D1 01 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: D1 01 00 68 3B 00 74 [06:22:59]Write to MH i2c: 01 00 00 69 3B A4 [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:23:00]OFD Sender: No OFD packet to send [06:23:00]*** Cut start [06:23:00]*** Partial cut [06:23:00]*** CUTSNS_PIN = 1 [06:23:00]*** CUTSNS_PIN = 0 [06:23:00]*** Brake cut motor [06:23:01]Read from MH i2c: 01 [06:23:01]MH_I2C_Read... [06:23:01]*** Stop cut motor [06:23:01]*** Cut end [06:23:01]Read from MH i2c: 01 07 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: 01 07 00 69 3B 00 00 00 00 00 FF 0F B9 [06:23:01]process_action close_receipt done [06:23:01]requested_data is exist [06:23:01]produce_requested_data [06:23:01]requested_item fm.sn is exist - process it [06:23:01]wFMCommunicate request_size=4 [06:23:01]MH_SAM_APDU [06:23:01]CAPDU: 80 11 00 00 [06:23:01]Write to MH i2c: E2 08 00 6A 3B 80 11 00 00 00 00 00 00 1F [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:01]Read from MH i2c: E2 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 17 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 17 00 6A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [06:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:23:01]wFMCommunicate OK [06:23:01]requested_item fd.num is exist - process it [06:23:01]SAM_PROTO_GetFieldsCounters [06:23:01]wFMCommunicate request_size=4 [06:23:01]MH_SAM_APDU [06:23:01]CAPDU: 80 13 00 00 [06:23:01]Write to MH i2c: E2 08 00 6B 3B 80 13 00 00 00 00 00 00 22 [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:01]Read from MH i2c: E2 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 62 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 62 00 6B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 11 01 00 0E 04 04 00 C3 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 3A [06:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 11 01 00 0E 04 04 00 C3 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 [06:23:01]wFMCommunicate OK [06:23:01]SAM_PROTO_GetFieldsCounters done [06:23:01]requested_item shift.num is exist - process it [06:23:01]requested_item shift.opened is exist - process it [06:23:01]req_shift_opened [06:23:01]FM_GetShiftState [06:23:01]SAM_PROTO_GetShiftState [06:23:01]wFMCommunicate request_size=4 [06:23:01]MH_SAM_APDU [06:23:01]CAPDU: 80 13 01 00 [06:23:01]Write to MH i2c: E2 08 00 6C 3B 80 13 01 00 00 00 00 00 24 [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:01]Read from MH i2c: E2 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 0E 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: E2 0E 00 6C 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 12 [06:23:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:23:01]wFMCommunicate OK [06:23:01]SAM_PROTO_GetShiftState done [06:23:01]FM_GetShiftState done [06:23:01]req_shift_opened done [06:23:01]requested_item shift.open_date is exist - process it [06:23:01]req_shift_open_date [06:23:01]req_shift_open_date done [06:23:01]produce_requested_data done [06:23:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70085,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:23:01]process_action_free close_receipt [06:23:01]json_value_free [06:23:01]json_value_free done [06:23:01]process_json_proto returns [06:23:01]Send response to host [06:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70085,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:23:01]free response buf [06:23:01]execute_script done [06:23:01]execute_script returns [06:23:01]free content buf [06:23:01]Sock 9.Close socket [06:23:01]Sock 9.Thread stoped [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:34]accept exits with 10 [06:31:34]New connection [06:31:34]New thread 3067026788 created [06:31:34]Thread 3067170148 joined [06:31:34]Waiting for new connection... [06:31:34] Sock 10.Parse request [06:31:34]Sock 10.Check first char [06:31:34]Sock 10.First char is OK [06:31:34]request: POST /json_proto HTTP/1.0 [06:31:34]Method: POST [06:31:34]URL: /json_proto [06:31:34]Method is POST - this is cgi request [06:31:34]url: /json_proto [06:31:34]query_string will be loaded in cgi processing [06:31:34]execute_cgi json_proto POST (null) [06:31:34]execute_cgi path=json_proto method=POST [06:31:34]POST find Content-Length [06:31:34]Host: 172.17.50.3:8080 [06:31:34]Content-Length: 681 [06:31:34]Content-Type: application/json [06:31:34] [06:31:34]POST finish read [06:31:34]Found Content-Length = 681 [06:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 8.620, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:34]execute_script... [06:31: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)2885852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 8.620, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:34]POST & json_proto [06:31:34]process_json_proto [06:31:34]json parsed OK: [06:31:34]protocol is kg_v1.0 [06:31:34]action value=close_receipt [06:31:34]process_action close_receipt [06:31:34]cmd_close_receipt [06:31:34]MH_GetDate [06:31:34]Write to MH i2c: F0 00 00 6D 3B 97 [06:31:34]Write i2c OK [06:31:34]MH_I2C_Read... [06:31:34]Read from MH i2c: F0 [06:31:34]MH_I2C_Read... [06:31:34]Read from MH i2c: F0 09 00 [06:31:34]MH_I2C_Read... [06:31:34]Read from MH i2c: F0 09 00 6D 3B 00 CA 46 17 67 6B 98 1E 66 B5 [06:31:34]GetLastDocTimeStamp 1729578181 [06:31:34]current date 1729578698 [06:31:34]FM_GetShiftState [06:31:34]SAM_PROTO_GetShiftState [06:31:34]wFMCommunicate request_size=4 [06:31:34]MH_SAM_APDU [06:31:34]CAPDU: 80 13 01 00 [06:31:34]Write to MH i2c: E2 08 00 6E 3B 80 13 01 00 00 00 00 00 26 [06:31:34]Write i2c OK [06:31:34]MH_I2C_Read... [06:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:34]Read from MH i2c: E2 [06:31:34]MH_I2C_Read... [06:31:34]Read from MH i2c: E2 0E 00 [06:31:34]MH_I2C_Read... [06:31:34]Read from MH i2c: E2 0E 00 6E 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 14 [06:31:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:31:34]wFMCommunicate OK [06:31:34]SAM_PROTO_GetShiftState done [06:31:34]FM_GetShiftState done [06:31:34]opened in 1729555832 [06:31:34]opened+sec_in_day 1729642232 [06:31:34]quantity*price = 33531 [06:31:34]sum+1 = 33533 [06:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 400.00 СДАЧА: 65.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 34 22.10.2024 06:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70086 ФПД: 151220605017230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70086&fm=151220605017230&tin=02508201610067®Number=0000000000156251&sum=33500 [06:31:35]StoreToDocumentArchive [06:31:35]shift 195 fd 70086 [06:31:35]save to /storage/0195/doc_00070086 [06:31:35]save last doc name /storage/0195/doc_00070086 to /storage/kkm_last_doc_name [06:31:35]save OK [06:31:35]Clear old archive folders... [06:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:31:35]tlvbuf is B6F8D290 [06:31:35]SAM_PROTO_ClearQueue [06:31:35]wFMCommunicate request_size=4 [06:31:35]MH_SAM_APDU [06:31:35]CAPDU: 80 09 00 00 [06:31:35]Write to MH i2c: E2 08 00 7B 3B 80 09 00 00 00 00 00 00 28 [06:31:35]Write i2c OK [06:31:35]MH_I2C_Read... [06:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:35]Read from MH i2c: E2 [06:31:35]MH_I2C_Read... [06:31:35]Read from MH i2c: E2 03 00 [06:31:35]MH_I2C_Read... [06:31:35]Read from MH i2c: E2 03 00 7B 3B 00 90 00 2A [06:31:36]RAPDU: 90 00 [06:31:36]wFMCommunicate OK [06:31:36]SAM_PROTO_ClearQueue done [06:31:36]KKMCreateOFDPacket [06:31:36]OFDProtocolAddRootSTLVToBuf [06:31:36]FM_MakeSignedData [06:31:36]FM_MakeSignedData [06:31:36]SAM_PROTO_SignData [06:31:36]wFMCommunicate request_size=4 [06:31:36]MH_SAM_APDU [06:31:36]CAPDU: 80 0D 01 02 [06:31:36]Write to MH i2c: E2 08 00 7C 3B 80 0D 01 02 00 00 00 00 30 [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:36]Read from MH i2c: E2 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 7C 3B 00 90 00 2B [06:31:36]RAPDU: 90 00 [06:31:36]wFMCommunicate OK [06:31:36]wFMCommunicate request_size=255 [06:31:36]MH_SAM_APDU [06:31:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AC 21 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FC 82 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 E9 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 22 00 00 00 F4 03 04 00 CA 46 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 11 01 00 35 04 06 00 89 88 [06:31:36]Write to MH i2c: E2 02 01 7D 3B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AC 21 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FC 82 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 E9 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 22 00 00 00 F4 03 04 00 CA 46 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 11 01 00 35 04 06 00 89 88 00 00 A6 [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:36]Read from MH i2c: E2 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 7D 3B 00 90 00 2C [06:31:36]RAPDU: 90 00 [06:31:36]wFMCommunicate OK [06:31:36]wFMCommunicate request_size=9 [06:31:36]MH_SAM_APDU [06:31:36]CAPDU: 80 0D 02 02 04 CA 71 DC 8E [06:31:36]Write to MH i2c: E2 0C 00 7E 3B 80 0D 02 02 04 00 CA 71 DC 8E 00 00 E0 [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:36]Read from MH i2c: E2 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 03 00 7E 3B 00 90 00 2D [06:31:36]RAPDU: 90 00 [06:31:36]wFMCommunicate OK [06:31:36]wFMCommunicate request_size=4 [06:31:36]MH_SAM_APDU [06:31:36]CAPDU: 80 0D 03 02 [06:31:36]Write to MH i2c: E2 08 00 7F 3B 80 0D 03 02 00 00 00 00 35 [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:36]Read from MH i2c: E2 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 0B 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 0B 00 7F 3B 00 B6 E3 DD D7 5F 64 DE 94 90 00 B8 [06:31:36]RAPDU: B6 E3 DD D7 5F 64 DE 94 90 00 [06:31:36]wFMCommunicate OK [06:31:36]SAM_PROTO_SignData done [06:31:36]FM_MakeSignedData done [06:31:36]CreateOFDProtocolMessage [06:31:36]wFMCommunicate request_size=4 [06:31:36]MH_SAM_APDU [06:31:36]CAPDU: 80 11 00 00 [06:31:36]Write to MH i2c: E2 08 00 80 3B 80 11 00 00 00 00 00 00 35 [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:36]Read from MH i2c: E2 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 17 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: E2 17 00 80 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [06:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:31:36]wFMCommunicate OK [06:31:36]CreateOFDProtocolMessage done [06:31:36]OFDSenderStorePacket 70086 [06:31:36]StoreOFDPacket docnum=70086 [06:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 20 DF 06 01 8D 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AC 21 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FC 82 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 E9 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 22 00 00 00 F4 03 04 00 CA 46 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 11 01 00 35 04 06 00 89 88 CA 71 DC 8E B6 E3 DD D7 5F 64 DE 94 [06:31:36]CheckFolder [06:31:36]dirname=/storage/ofd_packets [06:31:36]CheckFolder done [06:31:36]ProducePacketName [06:31:36]name=ofd_packets/00070086 [06:31:36]NVStorageSaveData ofd_packets/00070086 [06:31:36]File name is /storage/ofd_packets/00070086 [06:31:36]Write 300 bytes [06:31:36]NVStorageSaveData done [06:31:36]OFDSenderStorePacket done [06:31:36]KKMCreateOFDPacket done [06:31:36]NVStorageSaveData kkm_last_timestamp [06:31:36]File name is /storage/kkm_last_timestamp [06:31:36]Write 4 bytes [06:31:36]NVStorageSaveData done [06:31:36]ExternCall_PrintAddStr [06:31:36]wPrintStart [06:31:36]Write to MH i2c: 01 00 00 81 3B BC [06:31:36]Write i2c OK [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: 01 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: 01 07 00 [06:31:36]MH_I2C_Read... [06:31:36]Read from MH i2c: 01 07 00 81 3B 00 00 00 00 00 FF 0F D1 [06:31:36]RasterBufferAndPrint [06:31:36]line Счет N : (1)2885852 [06:31:36]line ИНН: 02508201610067 [06:31:36]line Контрольно-Кассовый Чек [06:31:36]line ПРОДАЖА [06:31:36]line ТРК (МРК, ГНК) : 71 [06:31:36]line Товар: 2711129700 [06:31:36]line ГАЗ-К-3 [06:31:36]line 8.620 * 38.90 [06:31:36]line = 335.32 [06:31:36]line НДС 12% НСП 1% [06:31:36]line > о реализуемом товаре [06:31:36]line ОКРУГЛЕНИЕ: -0.32 [06:31:36]line ИТОГО: 335.00 [06:31:36]line Внесено: 400.00 [06:31:36]line СДАЧА: 65.00 [06:31:36]line НСП 1% : 2.97 [06:31:36]line НДС 12% : 35.61 [06:31:36]line Наличными: 335.00 [06:31:36]line Безнал.: 0.00 [06:31:36]line Место: АЗС № 85 "Партнер Нефть" [06:31:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:31:36]line СНО: Общий режим [06:31:36]line Чек 34 22.10.2024 06:31 [06:31:36]line Смена: 195 ФФД: 1.0 [06:31:36]line ЗНМ: 0300000167 [06:31:36]line РНМ: 0000000000156251 [06:31:36]line Версия ККМ: v1.0 [06:31:36]line ФМ: 0000000000963346 [06:31:36]line ФД: 70086 [06:31:36]line ФПД: 151220605017230 [06:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70086&fm=151220605017230&tin=02508201610067®Number=0000000000156251&sum=33500 [06:31:36]OFD Sender: Processing packet 70086 [packets to send 18, broken 17] [06:31:36]ProducePacketName [06:31:36]name=ofd_packets/00070086 [06:31:36]OFD Sender: To server: pG, [06:31:36]CommunicateWithHost lk.salyk.kg:30040 [06:31:36]ConnectInit lk.salyk.kg [06:31:36]written 0, free lines is 4095 [06:31:36]Connected sock=11 [06:31: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 34 36 0E 01 00 00 20 DF 06 01 8D 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AC 21 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FC 82 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 E9 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 22 00 00 00 F4 03 04 00 CA 46 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 11 01 00 35 04 06 00 89 88 CA 71 DC 8E B6 E3 DD D7 5F 64 DE 94 [06:31: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 34 36 4F 00 00 00 58 63 47 00 B1 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 34 36 10 04 04 00 C6 11 01 00 F4 03 04 00 6C F0 16 67 B6 04 01 00 00 38 01 BD 34 38 A3 25 A8 [06:31:37]CommunicateWithHost err = 0 [06:31:37]CheckOFDResponse [06:31:37]1017 (14) - 77093643461234 [06:31:37]1041 (16) - 0000000000963346 [06:31:37]1040 (4) - 70086 [06:31:37]1012 (4) - 22.10.2024 00:23 [06:31:37]1206 (1) - 0 [06:31:37]OFD Sender: Remove packet 70086 [06:31:37]ProducePacketName [06:31:37]name=ofd_packets/00070086 [06:31:37]NVStorageDeleteData [06:31:37]Write to MH i2c: 01 00 00 AC 3B E7 [06:31:37]Write i2c OK [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: 01 [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: 01 07 00 [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: 01 07 00 AC 3B 00 00 00 00 00 E6 0C E0 [06:31:37]RasterBufferAndPrint [06:31:37]line [06:31:37]line [06:31:37]line [06:31:37]line [06:31:37]line [06:31:37]written 0, free lines is 3308 [06:31:37]MH_Cut [06:31:37]Write to MH i2c: D1 01 00 B3 3B 01 C0 [06:31:37]Write i2c OK [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: D1 [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: D1 01 00 [06:31:37]MH_I2C_Read... [06:31:37]Read from MH i2c: D1 01 00 B3 3B 00 BF [06:31:37]Write to MH i2c: 01 00 00 B4 3B EF [06:31:37]Write i2c OK [06:31:37]MH_I2C_Read... [06:31:37]OFD Sender: No OFD packet to send [06:31:37]*** Cut start [06:31:37]*** Partial cut [06:31:37]*** CUTSNS_PIN = 1 [06:31:38]*** CUTSNS_PIN = 0 [06:31:38]*** Brake cut motor [06:31:38]Read from MH i2c: 01 [06:31:38]MH_I2C_Read... [06:31:38]*** Stop cut motor [06:31:38]*** Cut end [06:31:38]Read from MH i2c: 01 07 00 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: 01 07 00 B4 3B 00 00 00 00 00 FF 0F 04 [06:31:38]process_action close_receipt done [06:31:38]requested_data is exist [06:31:38]produce_requested_data [06:31:38]requested_item fm.sn is exist - process it [06:31:38]wFMCommunicate request_size=4 [06:31:38]MH_SAM_APDU [06:31:38]CAPDU: 80 11 00 00 [06:31:38]Write to MH i2c: E2 08 00 B5 3B 80 11 00 00 00 00 00 00 6A [06:31:38]Write i2c OK [06:31:38]MH_I2C_Read... [06:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:38]Read from MH i2c: E2 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 17 00 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 17 00 B5 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [06:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:31:38]wFMCommunicate OK [06:31:38]requested_item fd.num is exist - process it [06:31:38]SAM_PROTO_GetFieldsCounters [06:31:38]wFMCommunicate request_size=4 [06:31:38]MH_SAM_APDU [06:31:38]CAPDU: 80 13 00 00 [06:31:38]Write to MH i2c: E2 08 00 B6 3B 80 13 00 00 00 00 00 00 6D [06:31:38]Write i2c OK [06:31:38]MH_I2C_Read... [06:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:38]Read from MH i2c: E2 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 62 00 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 62 00 B6 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 11 01 00 0E 04 04 00 C3 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 89 [06:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 11 01 00 0E 04 04 00 C3 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 [06:31:38]wFMCommunicate OK [06:31:38]SAM_PROTO_GetFieldsCounters done [06:31:38]requested_item shift.num is exist - process it [06:31:38]requested_item shift.opened is exist - process it [06:31:38]req_shift_opened [06:31:38]FM_GetShiftState [06:31:38]SAM_PROTO_GetShiftState [06:31:38]wFMCommunicate request_size=4 [06:31:38]MH_SAM_APDU [06:31:38]CAPDU: 80 13 01 00 [06:31:38]Write to MH i2c: E2 08 00 B7 3B 80 13 01 00 00 00 00 00 6F [06:31:38]Write i2c OK [06:31:38]MH_I2C_Read... [06:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:38]Read from MH i2c: E2 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 0E 00 [06:31:38]MH_I2C_Read... [06:31:38]Read from MH i2c: E2 0E 00 B7 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [06:31:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:31:38]wFMCommunicate OK [06:31:38]SAM_PROTO_GetShiftState done [06:31:38]FM_GetShiftState done [06:31:38]req_shift_opened done [06:31:38]requested_item shift.open_date is exist - process it [06:31:38]req_shift_open_date [06:31:38]req_shift_open_date done [06:31:38]produce_requested_data done [06:31:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70086,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:31:38]process_action_free close_receipt [06:31:38]json_value_free [06:31:38]json_value_free done [06:31:38]process_json_proto returns [06:31:38]Send response to host [06:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70086,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:31:38]free response buf [06:31:38]execute_script done [06:31:38]execute_script returns [06:31:38]free content buf [06:31:38]Sock 10.Close socket [06:31:38]Sock 10.Thread stoped [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:33:58]accept exits with 7 [06:33:58]New connection [06:33:58]New thread 3067170148 created [06:33:58]Thread 3067026788 joined [06:33:58]Waiting for new connection... [06:33:58] Sock 7.Parse request [06:33:58]Sock 7.Check first char [06:33:58]Sock 7.First char is OK [06:33:58]request: POST /json_proto HTTP/1.0 [06:33:58]Method: POST [06:33:58]URL: /json_proto [06:33:58]Method is POST - this is cgi request [06:33:58]url: /json_proto [06:33:58]query_string will be loaded in cgi processing [06:33:58]execute_cgi json_proto POST (null) [06:33:58]execute_cgi path=json_proto method=POST [06:33:58]POST find Content-Length [06:33:58]Host: 172.17.50.3:8080 [06:33:58]Content-Length: 689 [06:33:58]Content-Type: application/json [06:33:58] [06:33:58]POST finish read [06:33:58]Found Content-Length = 689 [06:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [06:33:58]execute_script... [06:33: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)2885853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [06:33:58]POST & json_proto [06:33:58]process_json_proto [06:33:58]json parsed OK: [06:33:58]protocol is kg_v1.0 [06:33:58]action value=close_receipt [06:33:58]process_action close_receipt [06:33:58]cmd_close_receipt [06:33:58]MH_GetDate [06:33:58]Write to MH i2c: F0 00 00 B8 3B E2 [06:33:58]Write i2c OK [06:33:58]MH_I2C_Read... [06:33:58]Read from MH i2c: F0 [06:33:58]MH_I2C_Read... [06:33:58]Read from MH i2c: F0 09 00 [06:33:58]MH_I2C_Read... [06:33:58]Read from MH i2c: F0 09 00 B8 3B 00 59 47 17 67 6B 98 1E 66 90 [06:33:58]GetLastDocTimeStamp 1729578698 [06:33:58]current date 1729578841 [06:33:58]FM_GetShiftState [06:33:58]SAM_PROTO_GetShiftState [06:33:58]wFMCommunicate request_size=4 [06:33:58]MH_SAM_APDU [06:33:58]CAPDU: 80 13 01 00 [06:33:58]Write to MH i2c: E2 08 00 B9 3B 80 13 01 00 00 00 00 00 71 [06:33:58]Write i2c OK [06:33:58]MH_I2C_Read... [06:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:58]Read from MH i2c: E2 [06:33:58]MH_I2C_Read... [06:33:58]Read from MH i2c: E2 0E 00 [06:33:58]MH_I2C_Read... [06:33:58]Read from MH i2c: E2 0E 00 B9 3B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [06:33:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:33:58]wFMCommunicate OK [06:33:58]SAM_PROTO_GetShiftState done [06:33:58]FM_GetShiftState done [06:33:58]opened in 1729555832 [06:33:58]opened+sec_in_day 1729642232 [06:33:58]quantity*price = 150076 [06:33:58]sum+1 = 150078 [06:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 35 22.10.2024 06:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70087 ФПД: 88583037000693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063402&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70087&fm=88583037000693&tin=02508201610067®Number=0000000000156251&sum=150000 [06:33:59]StoreToDocumentArchive [06:33:59]shift 195 fd 70087 [06:33:59]save to /storage/0195/doc_00070087 [06:33:59]save last doc name /storage/0195/doc_00070087 to /storage/kkm_last_doc_name [06:33:59]save OK [06:33:59]Clear old archive folders... [06:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:33:59]tlvbuf is 011941E0 [06:33:59]SAM_PROTO_ClearQueue [06:33:59]wFMCommunicate request_size=4 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 09 00 00 [06:33:59]Write to MH i2c: E2 08 00 C6 3B 80 09 00 00 00 00 00 00 73 [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 C6 3B 00 90 00 75 [06:33:59]RAPDU: 90 00 [06:33:59]wFMCommunicate OK [06:33:59]SAM_PROTO_ClearQueue done [06:33:59]KKMCreateOFDPacket [06:33:59]OFDProtocolAddRootSTLVToBuf [06:33:59]FM_MakeSignedData [06:33:59]FM_MakeSignedData [06:33:59]SAM_PROTO_SignData [06:33:59]wFMCommunicate request_size=4 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 0D 01 02 [06:33:59]Write to MH i2c: E2 08 00 C7 3B 80 0D 01 02 00 00 00 00 7B [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [06:33:59]RAPDU: 90 00 [06:33:59]wFMCommunicate OK [06:33:59]wFMCommunicate request_size=255 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 23 00 00 00 F4 03 04 00 5A 47 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 11 01 [06:33:59]Write to MH i2c: E2 02 01 C8 3B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 23 00 00 00 F4 03 04 00 5A 47 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 11 01 00 00 FD [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 C8 3B 00 90 00 77 [06:33:59]RAPDU: 90 00 [06:33:59]wFMCommunicate OK [06:33:59]wFMCommunicate request_size=16 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 50 90 D8 74 1B F5 [06:33:59]Write to MH i2c: E2 13 00 C9 3B 80 0D 02 02 0B 00 00 35 04 06 00 50 90 D8 74 1B F5 00 00 0F [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 03 00 C9 3B 00 90 00 78 [06:33:59]RAPDU: 90 00 [06:33:59]wFMCommunicate OK [06:33:59]wFMCommunicate request_size=4 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 0D 03 02 [06:33:59]Write to MH i2c: E2 08 00 CA 3B 80 0D 03 02 00 00 00 00 80 [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 0B 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 0B 00 CA 3B 00 5C 8B AF 2F E0 7A 37 1E 90 00 F5 [06:33:59]RAPDU: 5C 8B AF 2F E0 7A 37 1E 90 00 [06:33:59]wFMCommunicate OK [06:33:59]SAM_PROTO_SignData done [06:33:59]FM_MakeSignedData done [06:33:59]CreateOFDProtocolMessage [06:33:59]wFMCommunicate request_size=4 [06:33:59]MH_SAM_APDU [06:33:59]CAPDU: 80 11 00 00 [06:33:59]Write to MH i2c: E2 08 00 CB 3B 80 11 00 00 00 00 00 00 80 [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:59]Read from MH i2c: E2 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 17 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: E2 17 00 CB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [06:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:33:59]wFMCommunicate OK [06:33:59]CreateOFDProtocolMessage done [06:33:59]OFDSenderStorePacket 70087 [06:33:59]StoreOFDPacket docnum=70087 [06:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CF B8 0D 01 5C 7C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 23 00 00 00 F4 03 04 00 5A 47 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 11 01 00 35 04 06 00 50 90 D8 74 1B F5 5C 8B AF 2F E0 7A 37 1E [06:33:59]CheckFolder [06:33:59]dirname=/storage/ofd_packets [06:33:59]CheckFolder done [06:33:59]ProducePacketName [06:33:59]name=ofd_packets/00070087 [06:33:59]NVStorageSaveData ofd_packets/00070087 [06:33:59]File name is /storage/ofd_packets/00070087 [06:33:59]Write 307 bytes [06:33:59]NVStorageSaveData done [06:33:59]OFDSenderStorePacket done [06:33:59]KKMCreateOFDPacket done [06:33:59]NVStorageSaveData kkm_last_timestamp [06:33:59]File name is /storage/kkm_last_timestamp [06:33:59]Write 4 bytes [06:33:59]NVStorageSaveData done [06:33:59]ExternCall_PrintAddStr [06:33:59]wPrintStart [06:33:59]Write to MH i2c: 01 00 00 CC 3B 07 [06:33:59]Write i2c OK [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: 01 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: 01 07 00 [06:33:59]MH_I2C_Read... [06:33:59]Read from MH i2c: 01 07 00 CC 3B 00 00 00 00 00 FF 0F 1C [06:33:59]RasterBufferAndPrint [06:33:59]line Счет N : (1)2885853 [06:33:59]line ИНН: 02508201610067 [06:33:59]line Контрольно-Кассовый Чек [06:33:59]line ПРОДАЖА [06:33:59]line ТРК (МРК, ГНК) : 31 [06:33:59]line Товар: 2710194240 [06:33:59]line D-ENERGY Дт-К-2 [06:33:59]line 19.440 * 77.20 [06:33:59]line = 1500.77 [06:33:59]line НДС 12% НСП 1% [06:33:59]line > о реализуемом товаре [06:33:59]line ОКРУГЛЕНИЕ: -0.77 [06:33:59]line ИТОГО: 1500.00 [06:33:59]line Внесено: 1500.00 [06:33:59]line СДАЧА: 0.00 [06:33:59]line НСП 1% : 13.28 [06:33:59]line НДС 12% : 159.37 [06:33:59]line Наличными: 1500.00 [06:33:59]line Безнал.: 0.00 [06:33:59]line Место: АЗС № 85 "Партнер Нефть" [06:33:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:33:59]line СНО: Общий режим [06:33:59]line Чек 35 22.10.2024 06:34 [06:33:59]line Смена: 195 ФФД: 1.0 [06:33:59]line ЗНМ: 0300000167 [06:33:59]line РНМ: 0000000000156251 [06:33:59]line Версия ККМ: v1.0 [06:33:59]line ФМ: 0000000000963346 [06:33:59]line ФД: 70087 [06:33:59]line ФПД: 88583037000693 [06:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063402&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70087&fm=88583037000693&tin=02508201610067®Number=0000000000156251&sum=150000 [06:34:00]OFD Sender: Processing packet 70087 [packets to send 18, broken 17] [06:34:00]ProducePacketName [06:34:00]name=ofd_packets/00070087 [06:34:00]OFD Sender: To server: pG, [06:34:00]CommunicateWithHost lk.salyk.kg:30040 [06:34:00]ConnectInit lk.salyk.kg [06:34:00]written 0, free lines is 4095 [06:34:00]Connected sock=11 [06:34: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 34 36 15 01 00 00 CF B8 0D 01 5C 7C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 23 00 00 00 F4 03 04 00 5A 47 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 11 01 00 35 04 06 00 50 90 D8 74 1B F5 5C 8B AF 2F E0 7A 37 1E [06:34: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 34 36 4F 00 00 00 8C C0 47 00 2E 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 11 01 00 F4 03 04 00 FB F0 16 67 B6 04 01 00 00 74 59 13 CA 03 FA 9B 49 [06:34:00]CommunicateWithHost err = 0 [06:34:00]CheckOFDResponse [06:34:00]1017 (14) - 77093643461234 [06:34:00]1041 (16) - 0000000000963346 [06:34:00]1040 (4) - 70087 [06:34:00]1012 (4) - 22.10.2024 00:25 [06:34:00]1206 (1) - 0 [06:34:00]OFD Sender: Remove packet 70087 [06:34:00]ProducePacketName [06:34:00]name=ofd_packets/00070087 [06:34:00]NVStorageDeleteData [06:34:00]Write to MH i2c: 01 00 00 F7 3B 32 [06:34:00]Write i2c OK [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: 01 [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: 01 07 00 [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: 01 07 00 F7 3B 00 00 00 00 00 F1 0C 36 [06:34:00]RasterBufferAndPrint [06:34:00]line [06:34:00]line [06:34:00]line [06:34:00]line [06:34:00]line [06:34:00]written 0, free lines is 3319 [06:34:00]MH_Cut [06:34:00]Write to MH i2c: D1 01 00 FE 3B 01 0B [06:34:00]Write i2c OK [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: D1 [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: D1 01 00 [06:34:00]MH_I2C_Read... [06:34:00]Read from MH i2c: D1 01 00 FE 3B 00 0A [06:34:00]Write to MH i2c: 01 00 00 FF 3B 3A [06:34:00]Write i2c OK [06:34:00]MH_I2C_Read... [06:34:00]OFD Sender: No OFD packet to send [06:34:01]*** Cut start [06:34:01]*** Partial cut [06:34:01]*** CUTSNS_PIN = 1 [06:34:01]*** CUTSNS_PIN = 0 [06:34:01]*** Brake cut motor [06:34:01]Read from MH i2c: 01 [06:34:01]MH_I2C_Read... [06:34:01]*** Stop cut motor [06:34:01]*** Cut end [06:34:01]Read from MH i2c: 01 07 00 [06:34:01]MH_I2C_Read... [06:34:01]Read from MH i2c: 01 07 00 FF 3B 00 00 00 00 00 FF 0F 4F [06:34:01]process_action close_receipt done [06:34:01]requested_data is exist [06:34:01]produce_requested_data [06:34:01]requested_item fm.sn is exist - process it [06:34:01]wFMCommunicate request_size=4 [06:34:01]MH_SAM_APDU [06:34:01]CAPDU: 80 11 00 00 [06:34:01]Write to MH i2c: E2 08 00 00 3C 80 11 00 00 00 00 00 00 B6 [06:34:01]Write i2c OK [06:34:01]MH_I2C_Read... [06:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:01]Read from MH i2c: E2 [06:34:01]MH_I2C_Read... [06:34:01]Read from MH i2c: E2 17 00 [06:34:01]MH_I2C_Read... [06:34:01]Read from MH i2c: E2 17 00 00 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [06:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:34:01]wFMCommunicate OK [06:34:01]requested_item fd.num is exist - process it [06:34:01]SAM_PROTO_GetFieldsCounters [06:34:01]wFMCommunicate request_size=4 [06:34:01]MH_SAM_APDU [06:34:01]CAPDU: 80 13 00 00 [06:34:01]Write to MH i2c: E2 08 00 01 3C 80 13 00 00 00 00 00 00 B9 [06:34:01]Write i2c OK [06:34:01]MH_I2C_Read... [06:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:01]Read from MH i2c: E2 [06:34:01]MH_I2C_Read... [06:34:01]Read from MH i2c: E2 62 00 [06:34:01]MH_I2C_Read... [06:34:02]Read from MH i2c: E2 62 00 01 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 11 01 00 0E 04 04 00 C3 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 D9 [06:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 11 01 00 0E 04 04 00 C3 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 [06:34:02]wFMCommunicate OK [06:34:02]SAM_PROTO_GetFieldsCounters done [06:34:02]requested_item shift.num is exist - process it [06:34:02]requested_item shift.opened is exist - process it [06:34:02]req_shift_opened [06:34:02]FM_GetShiftState [06:34:02]SAM_PROTO_GetShiftState [06:34:02]wFMCommunicate request_size=4 [06:34:02]MH_SAM_APDU [06:34:02]CAPDU: 80 13 01 00 [06:34:02]Write to MH i2c: E2 08 00 02 3C 80 13 01 00 00 00 00 00 BB [06:34:02]Write i2c OK [06:34:02]MH_I2C_Read... [06:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:02]Read from MH i2c: E2 [06:34:02]MH_I2C_Read... [06:34:02]Read from MH i2c: E2 0E 00 [06:34:02]MH_I2C_Read... [06:34:02]Read from MH i2c: E2 0E 00 02 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [06:34:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:34:02]wFMCommunicate OK [06:34:02]SAM_PROTO_GetShiftState done [06:34:02]FM_GetShiftState done [06:34:02]req_shift_opened done [06:34:02]requested_item shift.open_date is exist - process it [06:34:02]req_shift_open_date [06:34:02]req_shift_open_date done [06:34:02]produce_requested_data done [06:34:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70087,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:34:02]process_action_free close_receipt [06:34:02]json_value_free [06:34:02]json_value_free done [06:34:02]process_json_proto returns [06:34:02]Send response to host [06:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70087,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:34:02]free response buf [06:34:02]execute_script done [06:34:02]execute_script returns [06:34:02]free content buf [06:34:02]Sock 7.Close socket [06:34:02]Sock 7.Thread stoped [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:52]ConnectInit Can't connect to host [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]ConnectInit Can't connect to host [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:29]accept exits with 10 [06:45:29]New connection [06:45:29]New thread 3067026788 created [06:45:29]Thread 3067170148 joined [06:45:29]Waiting for new connection... [06:45:29] Sock 10.Parse request [06:45:29]Sock 10.Check first char [06:45:29]Sock 10.First char is OK [06:45:29]request: POST /json_proto HTTP/1.0 [06:45:29]Method: POST [06:45:29]URL: /json_proto [06:45:29]Method is POST - this is cgi request [06:45:29]url: /json_proto [06:45:29]query_string will be loaded in cgi processing [06:45:29]execute_cgi json_proto POST (null) [06:45:29]execute_cgi path=json_proto method=POST [06:45:29]POST find Content-Length [06:45:29]Host: 172.17.50.3:8080 [06:45:29]Content-Length: 776 [06:45:29]Content-Type: application/json [06:45:29] [06:45:29]POST finish read [06:45:29]Found Content-Length = 776 [06:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [06:45:29]execute_script... [06:45: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)2885854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [06:45:29]POST & json_proto [06:45:29]process_json_proto [06:45:29]json parsed OK: [06:45:29]protocol is kg_v1.0 [06:45:29]action value=close_receipt [06:45:29]process_action close_receipt [06:45:29]cmd_close_receipt [06:45:29]MH_GetDate [06:45:29]Write to MH i2c: F0 00 00 03 3C 2E [06:45:29]Write i2c OK [06:45:29]MH_I2C_Read... [06:45:29]Read from MH i2c: F0 [06:45:29]MH_I2C_Read... [06:45:29]Read from MH i2c: F0 09 00 [06:45:29]MH_I2C_Read... [06:45:29]Read from MH i2c: F0 09 00 03 3C 00 0D 4A 17 67 6B 98 1E 66 93 [06:45:29]GetLastDocTimeStamp 1729578842 [06:45:29]current date 1729579533 [06:45:29]FM_GetShiftState [06:45:29]SAM_PROTO_GetShiftState [06:45:29]wFMCommunicate request_size=4 [06:45:29]MH_SAM_APDU [06:45:29]CAPDU: 80 13 01 00 [06:45:29]Write to MH i2c: E2 08 00 04 3C 80 13 01 00 00 00 00 00 BD [06:45:29]Write i2c OK [06:45:29]MH_I2C_Read... [06:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:29]Read from MH i2c: E2 [06:45:29]MH_I2C_Read... [06:45:29]Read from MH i2c: E2 0E 00 [06:45:29]MH_I2C_Read... [06:45:29]Read from MH i2c: E2 0E 00 04 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AB [06:45:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:45:29]wFMCommunicate OK [06:45:29]SAM_PROTO_GetShiftState done [06:45:29]FM_GetShiftState done [06:45:29]opened in 1729555832 [06:45:29]opened+sec_in_day 1729642232 [06:45:29]quantity*price = 100051 [06:45:29]sum+1 = 100052 [06:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 36 22.10.2024 06:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70088 ФПД: 19826506821584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70088&fm=19826506821584&tin=02508201610067®Number=0000000000156251&sum=100051 [06:45:30]StoreToDocumentArchive [06:45:30]shift 195 fd 70088 [06:45:30]save to /storage/0195/doc_00070088 [06:45:30]save last doc name /storage/0195/doc_00070088 to /storage/kkm_last_doc_name [06:45:30]save OK [06:45:30]Clear old archive folders... [06:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:45:30]tlvbuf is 01101EE0 [06:45:30]SAM_PROTO_ClearQueue [06:45:30]wFMCommunicate request_size=4 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 09 00 00 [06:45:30]Write to MH i2c: E2 08 00 11 3C 80 09 00 00 00 00 00 00 BF [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 11 3C 00 90 00 C1 [06:45:30]RAPDU: 90 00 [06:45:30]wFMCommunicate OK [06:45:30]SAM_PROTO_ClearQueue done [06:45:30]KKMCreateOFDPacket [06:45:30]OFDProtocolAddRootSTLVToBuf [06:45:30]FM_MakeSignedData [06:45:30]FM_MakeSignedData [06:45:30]SAM_PROTO_SignData [06:45:30]wFMCommunicate request_size=4 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 0D 01 02 [06:45:30]Write to MH i2c: E2 08 00 12 3C 80 0D 01 02 00 00 00 00 C7 [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 12 3C 00 90 00 C2 [06:45:30]RAPDU: 90 00 [06:45:30]wFMCommunicate OK [06:45:30]wFMCommunicate request_size=255 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 24 00 00 00 F4 03 04 00 0D 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 11 01 [06:45:30]Write to MH i2c: E2 02 01 13 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 24 00 00 00 F4 03 04 00 0D 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 11 01 00 00 15 [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 13 3C 00 90 00 C3 [06:45:30]RAPDU: 90 00 [06:45:30]wFMCommunicate OK [06:45:30]wFMCommunicate request_size=16 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 12 08 37 E5 6F D0 [06:45:30]Write to MH i2c: E2 13 00 14 3C 80 0D 02 02 0B 00 00 35 04 06 00 12 08 37 E5 6F D0 00 00 94 [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 03 00 14 3C 00 90 00 C4 [06:45:30]RAPDU: 90 00 [06:45:30]wFMCommunicate OK [06:45:30]wFMCommunicate request_size=4 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 0D 03 02 [06:45:30]Write to MH i2c: E2 08 00 15 3C 80 0D 03 02 00 00 00 00 CC [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 0B 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 0B 00 15 3C 00 EB E7 5F E4 E9 C0 05 3F 90 00 CF [06:45:30]RAPDU: EB E7 5F E4 E9 C0 05 3F 90 00 [06:45:30]wFMCommunicate OK [06:45:30]SAM_PROTO_SignData done [06:45:30]FM_MakeSignedData done [06:45:30]CreateOFDProtocolMessage [06:45:30]wFMCommunicate request_size=4 [06:45:30]MH_SAM_APDU [06:45:30]CAPDU: 80 11 00 00 [06:45:30]Write to MH i2c: E2 08 00 16 3C 80 11 00 00 00 00 00 00 CC [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:30]Read from MH i2c: E2 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 17 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: E2 17 00 16 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [06:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:45:30]wFMCommunicate OK [06:45:30]CreateOFDProtocolMessage done [06:45:30]OFDSenderStorePacket 70088 [06:45:30]StoreOFDPacket docnum=70088 [06:45:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8B 1E 0D 01 C1 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 24 00 00 00 F4 03 04 00 0D 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 11 01 00 35 04 06 00 12 08 37 E5 6F D0 EB E7 5F E4 E9 C0 05 3F [06:45:30]CheckFolder [06:45:30]dirname=/storage/ofd_packets [06:45:30]CheckFolder done [06:45:30]ProducePacketName [06:45:30]name=ofd_packets/00070088 [06:45:30]NVStorageSaveData ofd_packets/00070088 [06:45:30]File name is /storage/ofd_packets/00070088 [06:45:30]Write 307 bytes [06:45:30]NVStorageSaveData done [06:45:30]OFDSenderStorePacket done [06:45:30]KKMCreateOFDPacket done [06:45:30]NVStorageSaveData kkm_last_timestamp [06:45:30]File name is /storage/kkm_last_timestamp [06:45:30]Write 4 bytes [06:45:30]NVStorageSaveData done [06:45:30]ExternCall_PrintAddStr [06:45:30]wPrintStart [06:45:30]Write to MH i2c: 01 00 00 17 3C 53 [06:45:30]Write i2c OK [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: 01 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: 01 07 00 [06:45:30]MH_I2C_Read... [06:45:30]Read from MH i2c: 01 07 00 17 3C 00 00 00 00 00 FF 0F 68 [06:45:30]RasterBufferAndPrint [06:45:30]line Счет N : (1)2885854 [06:45:30]line ИНН: 02508201610067 [06:45:30]line Контрольно-Кассовый Чек [06:45:30]line ПРОДАЖА [06:45:30]line ТРК (МРК, ГНК) : 41 [06:45:30]line Товар: 2710194240 [06:45:30]line D-ENERGY Дт-К-2 [06:45:30]line 12.960 * 77.20 [06:45:30]line = 1000.51 [06:45:30]line НДС 12% НСП 1% [06:45:30]line > о реализуемом товаре [06:45:30]line ИТОГО: 1000.51 [06:45:30]line НСП 1% : 8.85 [06:45:30]line НДС 12% : 106.25 [06:45:30]line Наличными: 0.00 [06:45:30]line Безнал.: 1000.51 [06:45:30]line Место: АЗС № 85 "Партнер Нефть" [06:45:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:45:30]line СНО: Общий режим [06:45:30]line Чек 36 22.10.2024 06:45 [06:45:30]line Смена: 195 ФФД: 1.0 [06:45:30]line ЗНМ: 0300000167 [06:45:30]line РНМ: 0000000000156251 [06:45:30]line Версия ККМ: v1.0 [06:45:30]line Платежная система: Mbank [06:45:30]line ФМ: 0000000000963346 [06:45:30]line ФД: 70088 [06:45:30]line ФПД: 19826506821584 [06:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70088&fm=19826506821584&tin=02508201610067®Number=0000000000156251&sum=100051 [06:45:31]OFD Sender: Processing packet 70088 [packets to send 18, broken 17] [06:45:31]ProducePacketName [06:45:31]name=ofd_packets/00070088 [06:45:31]OFD Sender: To server: pG, [06:45:31]CommunicateWithHost lk.salyk.kg:30040 [06:45:31]ConnectInit lk.salyk.kg [06:45:31]written 0, free lines is 4095 [06:45:31]Connected sock=9 [06:45: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 34 36 15 01 00 00 8B 1E 0D 01 C1 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 24 00 00 00 F4 03 04 00 0D 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 11 01 00 35 04 06 00 12 08 37 E5 6F D0 EB E7 5F E4 E9 C0 05 3F [06:45: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 34 36 4F 00 00 00 F2 39 47 00 AF 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 11 01 00 F4 03 04 00 AE F3 16 67 B6 04 01 00 00 28 7B 60 65 19 48 C0 77 [06:45:31]CommunicateWithHost err = 0 [06:45:31]CheckOFDResponse [06:45:31]1017 (14) - 77093643461234 [06:45:31]1041 (16) - 0000000000963346 [06:45:31]1040 (4) - 70088 [06:45:31]1012 (4) - 22.10.2024 00:37 [06:45:31]1206 (1) - 0 [06:45:31]OFD Sender: Remove packet 70088 [06:45:31]ProducePacketName [06:45:31]name=ofd_packets/00070088 [06:45:31]NVStorageDeleteData [06:45:31]Write to MH i2c: 01 00 00 40 3C 7C [06:45:31]Write i2c OK [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: 01 [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: 01 07 00 [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: 01 07 00 40 3C 00 00 00 00 00 0F 0D 9F [06:45:31]RasterBufferAndPrint [06:45:31]line [06:45:31]line [06:45:31]line [06:45:31]line [06:45:31]line [06:45:31]written 0, free lines is 3349 [06:45:31]MH_Cut [06:45:31]Write to MH i2c: D1 01 00 47 3C 01 55 [06:45:31]Write i2c OK [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: D1 [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: D1 01 00 [06:45:31]MH_I2C_Read... [06:45:31]Read from MH i2c: D1 01 00 47 3C 00 54 [06:45:31]Write to MH i2c: 01 00 00 48 3C 84 [06:45:31]Write i2c OK [06:45:31]MH_I2C_Read... [06:45:31]OFD Sender: No OFD packet to send [06:45:32]*** Cut start [06:45:32]*** Partial cut [06:45:32]*** CUTSNS_PIN = 1 [06:45:32]*** CUTSNS_PIN = 0 [06:45:32]*** Brake cut motor [06:45:32]Read from MH i2c: 01 [06:45:32]MH_I2C_Read... [06:45:32]*** Stop cut motor [06:45:32]*** Cut end [06:45:32]Read from MH i2c: 01 07 00 [06:45:32]MH_I2C_Read... [06:45:32]Read from MH i2c: 01 07 00 48 3C 00 00 00 00 00 FF 0F 99 [06:45:32]process_action close_receipt done [06:45:32]requested_data is exist [06:45:32]produce_requested_data [06:45:32]requested_item fm.sn is exist - process it [06:45:32]wFMCommunicate request_size=4 [06:45:32]MH_SAM_APDU [06:45:32]CAPDU: 80 11 00 00 [06:45:32]Write to MH i2c: E2 08 00 49 3C 80 11 00 00 00 00 00 00 FF [06:45:32]Write i2c OK [06:45:32]MH_I2C_Read... [06:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:32]Read from MH i2c: E2 [06:45:32]MH_I2C_Read... [06:45:32]Read from MH i2c: E2 17 00 [06:45:32]MH_I2C_Read... [06:45:32]Read from MH i2c: E2 17 00 49 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [06:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:45:32]wFMCommunicate OK [06:45:32]requested_item fd.num is exist - process it [06:45:32]SAM_PROTO_GetFieldsCounters [06:45:32]wFMCommunicate request_size=4 [06:45:32]MH_SAM_APDU [06:45:32]CAPDU: 80 13 00 00 [06:45:32]Write to MH i2c: E2 08 00 4A 3C 80 13 00 00 00 00 00 00 02 [06:45:32]Write i2c OK [06:45:32]MH_I2C_Read... [06:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:33]Read from MH i2c: E2 [06:45:33]MH_I2C_Read... [06:45:33]Read from MH i2c: E2 62 00 [06:45:33]MH_I2C_Read... [06:45:33]Read from MH i2c: E2 62 00 4A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 11 01 00 0E 04 04 00 C3 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 26 [06:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 11 01 00 0E 04 04 00 C3 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 [06:45:33]wFMCommunicate OK [06:45:33]SAM_PROTO_GetFieldsCounters done [06:45:33]requested_item shift.num is exist - process it [06:45:33]requested_item shift.opened is exist - process it [06:45:33]req_shift_opened [06:45:33]FM_GetShiftState [06:45:33]SAM_PROTO_GetShiftState [06:45:33]wFMCommunicate request_size=4 [06:45:33]MH_SAM_APDU [06:45:33]CAPDU: 80 13 01 00 [06:45:33]Write to MH i2c: E2 08 00 4B 3C 80 13 01 00 00 00 00 00 04 [06:45:33]Write i2c OK [06:45:33]MH_I2C_Read... [06:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:33]Read from MH i2c: E2 [06:45:33]MH_I2C_Read... [06:45:33]Read from MH i2c: E2 0E 00 [06:45:33]MH_I2C_Read... [06:45:33]Read from MH i2c: E2 0E 00 4B 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F2 [06:45:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:45:33]wFMCommunicate OK [06:45:33]SAM_PROTO_GetShiftState done [06:45:33]FM_GetShiftState done [06:45:33]req_shift_opened done [06:45:33]requested_item shift.open_date is exist - process it [06:45:33]req_shift_open_date [06:45:33]req_shift_open_date done [06:45:33]produce_requested_data done [06:45:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70088,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:45:33]process_action_free close_receipt [06:45:33]json_value_free [06:45:33]json_value_free done [06:45:33]process_json_proto returns [06:45:33]Send response to host [06:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70088,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:45:33]free response buf [06:45:33]execute_script done [06:45:33]execute_script returns [06:45:33]free content buf [06:45:33]Sock 10.Close socket [06:45:33]Sock 10.Thread stoped [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:43]accept exits with 7 [06:45:43]New connection [06:45:43]New thread 3067170148 created [06:45:43]Thread 3067026788 joined [06:45:43]Waiting for new connection... [06:45:43] Sock 7.Parse request [06:45:43]Sock 7.Check first char [06:45:43]Sock 7.First char is OK [06:45:43]request: POST /json_proto HTTP/1.0 [06:45:43]Method: POST [06:45:43]URL: /json_proto [06:45:43]Method is POST - this is cgi request [06:45:43]url: /json_proto [06:45:43]query_string will be loaded in cgi processing [06:45:43]execute_cgi json_proto POST (null) [06:45:43]execute_cgi path=json_proto method=POST [06:45:43]POST find Content-Length [06:45:43]Host: 172.17.50.3:8080 [06:45:43]Content-Length: 643 [06:45:43]Content-Type: application/json [06:45:43] [06:45:43]POST finish read [06:45:43]Found Content-Length = 643 [06:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.000, "sum" : 2676.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2676.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:43]execute_script... [06:45: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)2885856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.000, "sum" : 2676.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2676.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:43]POST & json_proto [06:45:43]process_json_proto [06:45:43]json parsed OK: [06:45:43]protocol is kg_v1.0 [06:45:43]action value=close_receipt [06:45:43]process_action close_receipt [06:45:43]cmd_close_receipt [06:45:43]MH_GetDate [06:45:43]Write to MH i2c: F0 00 00 4C 3C 77 [06:45:43]Write i2c OK [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: F0 [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: F0 09 00 [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: F0 09 00 4C 3C 00 1B 4A 17 67 6B 98 1E 66 EA [06:45:43]GetLastDocTimeStamp 1729579533 [06:45:43]current date 1729579547 [06:45:43]FM_GetShiftState [06:45:43]SAM_PROTO_GetShiftState [06:45:43]wFMCommunicate request_size=4 [06:45:43]MH_SAM_APDU [06:45:43]CAPDU: 80 13 01 00 [06:45:43]Write to MH i2c: E2 08 00 4D 3C 80 13 01 00 00 00 00 00 06 [06:45:43]Write i2c OK [06:45:43]MH_I2C_Read... [06:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:43]Read from MH i2c: E2 [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: E2 0E 00 [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: E2 0E 00 4D 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F4 [06:45:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:45:43]wFMCommunicate OK [06:45:43]SAM_PROTO_GetShiftState done [06:45:43]FM_GetShiftState done [06:45:43]opened in 1729555832 [06:45:43]opened+sec_in_day 1729642232 [06:45:43]quantity*price = 267600 [06:45:43]sum+1 = 267601 [06:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2676.00 НСП 1% : 23.68 НДС 12% : 284.18 Наличными: 2676.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 37 22.10.2024 06:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70089 ФПД: 54185208099685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70089&fm=54185208099685&tin=02508201610067®Number=0000000000156251&sum=267600 [06:45:44]StoreToDocumentArchive [06:45:44]shift 195 fd 70089 [06:45:44]save to /storage/0195/doc_00070089 [06:45:44]save last doc name /storage/0195/doc_00070089 to /storage/kkm_last_doc_name [06:45:44]save OK [06:45:44]Clear old archive folders... [06:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:44]tlvbuf is 01252480 [06:45:44]SAM_PROTO_ClearQueue [06:45:44]wFMCommunicate request_size=4 [06:45:44]MH_SAM_APDU [06:45:44]CAPDU: 80 09 00 00 [06:45:44]Write to MH i2c: E2 08 00 5A 3C 80 09 00 00 00 00 00 00 08 [06:45:44]Write i2c OK [06:45:44]MH_I2C_Read... [06:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:44]Read from MH i2c: E2 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 03 00 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [06:45:44]RAPDU: 90 00 [06:45:44]wFMCommunicate OK [06:45:44]SAM_PROTO_ClearQueue done [06:45:44]KKMCreateOFDPacket [06:45:44]OFDProtocolAddRootSTLVToBuf [06:45:44]FM_MakeSignedData [06:45:44]FM_MakeSignedData [06:45:44]SAM_PROTO_SignData [06:45:44]wFMCommunicate request_size=4 [06:45:44]MH_SAM_APDU [06:45:44]CAPDU: 80 0D 01 02 [06:45:44]Write to MH i2c: E2 08 00 5B 3C 80 0D 01 02 00 00 00 00 10 [06:45:44]Write i2c OK [06:45:44]MH_I2C_Read... [06:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:44]Read from MH i2c: E2 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 03 00 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [06:45:44]RAPDU: 90 00 [06:45:44]wFMCommunicate OK [06:45:44]wFMCommunicate request_size=255 [06:45:44]MH_SAM_APDU [06: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 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 1B 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 11 01 00 35 04 06 00 31 [06:45:44]Write to MH i2c: E2 02 01 5C 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 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 1B 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 11 01 00 35 04 06 00 31 00 00 F8 [06:45:44]Write i2c OK [06:45:44]MH_I2C_Read... [06:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:45]Read from MH i2c: E2 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 03 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 03 00 5C 3C 00 90 00 0C [06:45:45]RAPDU: 90 00 [06:45:45]wFMCommunicate OK [06:45:45]wFMCommunicate request_size=10 [06:45:45]MH_SAM_APDU [06:45:45]CAPDU: 80 0D 02 02 05 47 FA 14 B3 65 [06:45:45]Write to MH i2c: E2 0D 00 5D 3C 80 0D 02 02 05 00 47 FA 14 B3 65 00 00 8A [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:45]Read from MH i2c: E2 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 03 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 03 00 5D 3C 00 90 00 0D [06:45:45]RAPDU: 90 00 [06:45:45]wFMCommunicate OK [06:45:45]wFMCommunicate request_size=4 [06:45:45]MH_SAM_APDU [06:45:45]CAPDU: 80 0D 03 02 [06:45:45]Write to MH i2c: E2 08 00 5E 3C 80 0D 03 02 00 00 00 00 15 [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:45]Read from MH i2c: E2 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 0B 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 0B 00 5E 3C 00 39 B3 48 96 14 29 9A 84 90 00 3B [06:45:45]RAPDU: 39 B3 48 96 14 29 9A 84 90 00 [06:45:45]wFMCommunicate OK [06:45:45]SAM_PROTO_SignData done [06:45:45]FM_MakeSignedData done [06:45:45]CreateOFDProtocolMessage [06:45:45]wFMCommunicate request_size=4 [06:45:45]MH_SAM_APDU [06:45:45]CAPDU: 80 11 00 00 [06:45:45]Write to MH i2c: E2 08 00 5F 3C 80 11 00 00 00 00 00 00 15 [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:45]Read from MH i2c: E2 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 17 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 17 00 5F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [06:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:45:45]wFMCommunicate OK [06:45:45]CreateOFDProtocolMessage done [06:45:45]OFDSenderStorePacket 70089 [06:45:45]StoreOFDPacket docnum=70089 [06:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 72 32 07 01 7D 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 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 1B 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 11 01 00 35 04 06 00 31 47 FA 14 B3 65 39 B3 48 96 14 29 9A 84 [06:45:45]CheckFolder [06:45:45]dirname=/storage/ofd_packets [06:45:45]CheckFolder done [06:45:45]ProducePacketName [06:45:45]name=ofd_packets/00070089 [06:45:45]NVStorageSaveData ofd_packets/00070089 [06:45:45]File name is /storage/ofd_packets/00070089 [06:45:45]Write 301 bytes [06:45:45]NVStorageSaveData done [06:45:45]OFDSenderStorePacket done [06:45:45]KKMCreateOFDPacket done [06:45:45]NVStorageSaveData kkm_last_timestamp [06:45:45]File name is /storage/kkm_last_timestamp [06:45:45]Write 4 bytes [06:45:45]NVStorageSaveData done [06:45:45]ExternCall_PrintAddStr [06:45:45]wPrintStart [06:45:45]Write to MH i2c: 01 00 00 60 3C 9C [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 07 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 07 00 60 3C 00 00 00 00 00 FF 0F B1 [06:45:45]RasterBufferAndPrint [06:45:45]line Счет N : (1)2885856 [06:45:45]line ИНН: 02508201610067 [06:45:45]line Контрольно-Кассовый Чек [06:45:45]line ПРОДАЖА [06:45:45]line ТРК (МРК, ГНК) : 12 [06:45:45]line Товар: 2710124130 [06:45:45]line Аи-92-К-5 [06:45:45]line 40.000 * 66.90 [06:45:45]line = 2676.00 [06:45:45]line НДС 12% НСП 1% [06:45:45]line > о реализуемом товаре [06:45:45]line ИТОГО: 2676.00 [06:45:45]line НСП 1% : 23.68 [06:45:45]line НДС 12% : 284.18 [06:45:45]line Наличными: 2676.00 [06:45:45]line Безнал.: 0.00 [06:45:45]line Место: АЗС № 85 "Партнер Нефть" [06:45:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:45:45]line СНО: Общий режим [06:45:45]line Чек 37 22.10.2024 06:45 [06:45:45]line Смена: 195 ФФД: 1.0 [06:45:45]line ЗНМ: 0300000167 [06:45:45]line РНМ: 0000000000156251 [06:45:45]line Версия ККМ: v1.0 [06:45:45]line ФМ: 0000000000963346 [06:45:45]line ФД: 70089 [06:45:45]line ФПД: 54185208099685 [06:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70089&fm=54185208099685&tin=02508201610067®Number=0000000000156251&sum=267600 [06:45:45]OFD Sender: Processing packet 70089 [packets to send 18, broken 17] [06:45:45]ProducePacketName [06:45:45]name=ofd_packets/00070089 [06:45:45]OFD Sender: To server: pG, [06:45:45]CommunicateWithHost lk.salyk.kg:30040 [06:45:45]ConnectInit lk.salyk.kg [06:45:45]written 0, free lines is 4095 [06:45:45]Connected sock=10 [06:45: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 34 36 0F 01 00 00 72 32 07 01 7D 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 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 1B 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 11 01 00 35 04 06 00 31 47 FA 14 B3 65 39 B3 48 96 14 29 9A 84 [06: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 34 36 4F 00 00 00 2C B2 47 00 F5 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 34 36 10 04 04 00 C9 11 01 00 F4 03 04 00 BD F3 16 67 B6 04 01 00 00 4D FB B2 06 93 C6 D2 C9 [06:45:45]CommunicateWithHost err = 0 [06:45:45]CheckOFDResponse [06:45:45]1017 (14) - 77093643461234 [06:45:45]1041 (16) - 0000000000963346 [06:45:45]1040 (4) - 70089 [06:45:45]1012 (4) - 22.10.2024 00:37 [06:45:45]1206 (1) - 0 [06:45:45]OFD Sender: Remove packet 70089 [06:45:45]ProducePacketName [06:45:45]name=ofd_packets/00070089 [06:45:45]NVStorageDeleteData [06:45:45]Write to MH i2c: 01 00 00 88 3C C4 [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 07 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: 01 07 00 88 3C 00 00 00 00 00 1C 0D F4 [06:45:45]RasterBufferAndPrint [06:45:45]line [06:45:45]line [06:45:45]line [06:45:45]line [06:45:45]line [06:45:45]written 0, free lines is 3362 [06:45:46]MH_Cut [06:45:46]Write to MH i2c: D1 01 00 8F 3C 01 9D [06:45:46]Write i2c OK [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: D1 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: D1 01 00 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: D1 01 00 8F 3C 00 9C [06:45:46]Write to MH i2c: 01 00 00 90 3C CC [06:45:46]Write i2c OK [06:45:46]MH_I2C_Read... [06:45:46]OFD Sender: No OFD packet to send [06:45:46]*** Cut start [06:45:46]*** Partial cut [06:45:46]*** CUTSNS_PIN = 1 [06:45:46]*** CUTSNS_PIN = 0 [06:45:46]*** Brake cut motor [06:45:47]Read from MH i2c: 01 [06:45:47]MH_I2C_Read... [06:45:47]*** Stop cut motor [06:45:47]*** Cut end [06:45:47]Read from MH i2c: 01 07 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: 01 07 00 90 3C 00 00 00 00 00 FF 0F E1 [06:45:47]process_action close_receipt done [06:45:47]requested_data is exist [06:45:47]produce_requested_data [06:45:47]requested_item fm.sn is exist - process it [06:45:47]wFMCommunicate request_size=4 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 11 00 00 [06:45:47]Write to MH i2c: E2 08 00 91 3C 80 11 00 00 00 00 00 00 47 [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 17 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 17 00 91 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [06:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:45:47]wFMCommunicate OK [06:45:47]requested_item fd.num is exist - process it [06:45:47]SAM_PROTO_GetFieldsCounters [06:45:47]wFMCommunicate request_size=4 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 13 00 00 [06:45:47]Write to MH i2c: E2 08 00 92 3C 80 13 00 00 00 00 00 00 4A [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 62 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 62 00 92 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 11 01 00 0E 04 04 00 C3 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 72 [06:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 11 01 00 0E 04 04 00 C3 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 [06:45:47]wFMCommunicate OK [06:45:47]SAM_PROTO_GetFieldsCounters done [06:45:47]requested_item shift.num is exist - process it [06:45:47]requested_item shift.opened is exist - process it [06:45:47]req_shift_opened [06:45:47]FM_GetShiftState [06:45:47]SAM_PROTO_GetShiftState [06:45:47]wFMCommunicate request_size=4 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 13 01 00 [06:45:47]Write to MH i2c: E2 08 00 93 3C 80 13 01 00 00 00 00 00 4C [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 0E 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 0E 00 93 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3A [06:45:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:45:47]wFMCommunicate OK [06:45:47]SAM_PROTO_GetShiftState done [06:45:47]FM_GetShiftState done [06:45:47]req_shift_opened done [06:45:47]requested_item shift.open_date is exist - process it [06:45:47]req_shift_open_date [06:45:47]req_shift_open_date done [06:45:47]produce_requested_data done [06:45:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70089,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:45:47]process_action_free close_receipt [06:45:47]json_value_free [06:45:47]json_value_free done [06:45:47]process_json_proto returns [06:45:47]Send response to host [06:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70089,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:45:47]free response buf [06:45:47]execute_script done [06:45:47]execute_script returns [06:45:47]free content buf [06:45:47]Sock 7.Close socket [06:45:47]Sock 7.Thread stoped [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:37]accept exits with 9 [06:46:37]New connection [06:46:37]New thread 3067026788 created [06:46:37]Thread 3067170148 joined [06:46:37]Waiting for new connection... [06:46:37] Sock 9.Parse request [06:46:37]Sock 9.Check first char [06:46:37]Sock 9.First char is OK [06:46:37]request: POST /json_proto HTTP/1.0 [06:46:37]Method: POST [06:46:37]URL: /json_proto [06:46:37]Method is POST - this is cgi request [06:46:37]url: /json_proto [06:46:37]query_string will be loaded in cgi processing [06:46:37]execute_cgi json_proto POST (null) [06:46:37]execute_cgi path=json_proto method=POST [06:46:37]POST find Content-Length [06:46:37]Host: 172.17.50.3:8080 [06:46:37]Content-Length: 686 [06:46:37]Content-Type: application/json [06:46:37] [06:46:37]POST finish read [06:46:37]Found Content-Length = 686 [06:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:37]execute_script... [06:46: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)2885855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:37]POST & json_proto [06:46:37]process_json_proto [06:46:37]json parsed OK: [06:46:37]protocol is kg_v1.0 [06:46:37]action value=close_receipt [06:46:37]process_action close_receipt [06:46:37]cmd_close_receipt [06:46:37]MH_GetDate [06:46:37]Write to MH i2c: F0 00 00 94 3C BF [06:46:37]Write i2c OK [06:46:37]MH_I2C_Read... [06:46:37]Read from MH i2c: F0 [06:46:37]MH_I2C_Read... [06:46:37]Read from MH i2c: F0 09 00 [06:46:37]MH_I2C_Read... [06:46:37]Read from MH i2c: F0 09 00 94 3C 00 51 4A 17 67 6B 98 1E 66 68 [06:46:37]GetLastDocTimeStamp 1729579547 [06:46:37]current date 1729579601 [06:46:37]FM_GetShiftState [06:46:37]SAM_PROTO_GetShiftState [06:46:37]wFMCommunicate request_size=4 [06:46:37]MH_SAM_APDU [06:46:37]CAPDU: 80 13 01 00 [06:46:37]Write to MH i2c: E2 08 00 95 3C 80 13 01 00 00 00 00 00 4E [06:46:37]Write i2c OK [06:46:37]MH_I2C_Read... [06:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:37]Read from MH i2c: E2 [06:46:37]MH_I2C_Read... [06:46:37]Read from MH i2c: E2 0E 00 [06:46:37]MH_I2C_Read... [06:46:37]Read from MH i2c: E2 0E 00 95 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3C [06:46:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:46:37]wFMCommunicate OK [06:46:37]SAM_PROTO_GetShiftState done [06:46:37]FM_GetShiftState done [06:46:37]opened in 1729555832 [06:46:37]opened+sec_in_day 1729642232 [06:46:37]quantity*price = 120006 [06:46:37]sum+1 = 120008 [06:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 38 22.10.2024 06:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70090 ФПД: 229333799867353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70090&fm=229333799867353&tin=02508201610067®Number=0000000000156251&sum=120000 [06:46:39]StoreToDocumentArchive [06:46:39]shift 195 fd 70090 [06:46:39]save to /storage/0195/doc_00070090 [06:46:39]save last doc name /storage/0195/doc_00070090 to /storage/kkm_last_doc_name [06:46:39]save OK [06:46:39]Clear old archive folders... [06:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:46:39]tlvbuf is 0114EF20 [06:46:39]SAM_PROTO_ClearQueue [06:46:39]wFMCommunicate request_size=4 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 09 00 00 [06:46:39]Write to MH i2c: E2 08 00 A2 3C 80 09 00 00 00 00 00 00 50 [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 A2 3C 00 90 00 52 [06:46:39]RAPDU: 90 00 [06:46:39]wFMCommunicate OK [06:46:39]SAM_PROTO_ClearQueue done [06:46:39]KKMCreateOFDPacket [06:46:39]OFDProtocolAddRootSTLVToBuf [06:46:39]FM_MakeSignedData [06:46:39]FM_MakeSignedData [06:46:39]SAM_PROTO_SignData [06:46:39]wFMCommunicate request_size=4 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 0D 01 02 [06:46:39]Write to MH i2c: E2 08 00 A3 3C 80 0D 01 02 00 00 00 00 58 [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 A3 3C 00 90 00 53 [06:46:39]RAPDU: 90 00 [06:46:39]wFMCommunicate OK [06:46:39]wFMCommunicate request_size=255 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 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 51 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 11 01 00 35 04 06 00 D0 93 [06:46:39]Write to MH i2c: E2 02 01 A4 3C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 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 51 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 11 01 00 35 04 06 00 D0 93 00 00 6F [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 A4 3C 00 90 00 54 [06:46:39]RAPDU: 90 00 [06:46:39]wFMCommunicate OK [06:46:39]wFMCommunicate request_size=9 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 0D 02 02 04 EF AD 13 D9 [06:46:39]Write to MH i2c: E2 0C 00 A5 3C 80 0D 02 02 04 00 EF AD 13 D9 00 00 EB [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [06:46:39]RAPDU: 90 00 [06:46:39]wFMCommunicate OK [06:46:39]wFMCommunicate request_size=4 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 0D 03 02 [06:46:39]Write to MH i2c: E2 08 00 A6 3C 80 0D 03 02 00 00 00 00 5D [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0B 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0B 00 A6 3C 00 A8 3B 4C A0 71 44 8A 1D 90 00 89 [06:46:39]RAPDU: A8 3B 4C A0 71 44 8A 1D 90 00 [06:46:39]wFMCommunicate OK [06:46:39]SAM_PROTO_SignData done [06:46:39]FM_MakeSignedData done [06:46:39]CreateOFDProtocolMessage [06:46:39]wFMCommunicate request_size=4 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 11 00 00 [06:46:39]Write to MH i2c: E2 08 00 A7 3C 80 11 00 00 00 00 00 00 5D [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 17 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 17 00 A7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [06:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:46:39]wFMCommunicate OK [06:46:39]CreateOFDProtocolMessage done [06:46:39]OFDSenderStorePacket 70090 [06:46:39]StoreOFDPacket docnum=70090 [06:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6D 1F 06 01 84 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 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 51 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 11 01 00 35 04 06 00 D0 93 EF AD 13 D9 A8 3B 4C A0 71 44 8A 1D [06:46:39]CheckFolder [06:46:39]dirname=/storage/ofd_packets [06:46:39]CheckFolder done [06:46:39]ProducePacketName [06:46:39]name=ofd_packets/00070090 [06:46:39]NVStorageSaveData ofd_packets/00070090 [06:46:39]File name is /storage/ofd_packets/00070090 [06:46:39]Write 300 bytes [06:46:39]NVStorageSaveData done [06:46:39]OFDSenderStorePacket done [06:46:39]KKMCreateOFDPacket done [06:46:39]NVStorageSaveData kkm_last_timestamp [06:46:39]File name is /storage/kkm_last_timestamp [06:46:39]Write 4 bytes [06:46:39]NVStorageSaveData done [06:46:39]ExternCall_PrintAddStr [06:46:39]wPrintStart [06:46:39]Write to MH i2c: 01 00 00 A8 3C E4 [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: 01 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: 01 07 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: 01 07 00 A8 3C 00 00 00 00 00 FF 0F F9 [06:46:39]RasterBufferAndPrint [06:46:39]line Счет N : (1)2885855 [06:46:39]line ИНН: 02508201610067 [06:46:39]line Контрольно-Кассовый Чек [06:46:39]line ПРОДАЖА [06:46:39]line ТРК (МРК, ГНК) : 71 [06:46:39]line Товар: 2711129700 [06:46:39]line ГАЗ-К-3 [06:46:39]line 30.850 * 38.90 [06:46:39]line = 1200.07 [06:46:39]line НДС 12% НСП 1% [06:46:39]line > о реализуемом товаре [06:46:39]line ОКРУГЛЕНИЕ: -0.07 [06:46:39]line ИТОГО: 1200.00 [06:46:39]line Внесено: 1200.00 [06:46:39]line СДАЧА: 0.00 [06:46:39]line НСП 1% : 10.62 [06:46:39]line НДС 12% : 127.44 [06:46:39]line Наличными: 1200.00 [06:46:39]line Безнал.: 0.00 [06:46:39]line Место: АЗС № 85 "Партнер Нефть" [06:46:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:46:39]line СНО: Общий режим [06:46:39]line Чек 38 22.10.2024 06:46 [06:46:39]line Смена: 195 ФФД: 1.0 [06:46:39]line ЗНМ: 0300000167 [06:46:39]line РНМ: 0000000000156251 [06:46:39]line Версия ККМ: v1.0 [06:46:39]line ФМ: 0000000000963346 [06:46:39]line ФД: 70090 [06:46:39]line ФПД: 229333799867353 [06:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70090&fm=229333799867353&tin=02508201610067®Number=0000000000156251&sum=120000 [06:46:39]OFD Sender: Processing packet 70090 [packets to send 18, broken 17] [06:46:39]ProducePacketName [06:46:39]name=ofd_packets/00070090 [06:46:39]OFD Sender: To server: pG, [06:46:39]CommunicateWithHost lk.salyk.kg:30040 [06:46:39]ConnectInit lk.salyk.kg [06:46:39]written 0, free lines is 4095 [06:46:40]Connected sock=10 [06:46: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 34 36 0E 01 00 00 6D 1F 06 01 84 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 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 51 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 11 01 00 35 04 06 00 D0 93 EF AD 13 D9 A8 3B 4C A0 71 44 8A 1D [06:46: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 34 36 4F 00 00 00 7C F6 47 00 EA 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 34 36 10 04 04 00 CA 11 01 00 F4 03 04 00 F3 F3 16 67 B6 04 01 00 00 7B F0 54 6B 5F 65 20 44 [06:46:40]CommunicateWithHost err = 0 [06:46:40]CheckOFDResponse [06:46:40]1017 (14) - 77093643461234 [06:46:40]1041 (16) - 0000000000963346 [06:46:40]1040 (4) - 70090 [06:46:40]1012 (4) - 22.10.2024 00:38 [06:46:40]1206 (1) - 0 [06:46:40]OFD Sender: Remove packet 70090 [06:46:40]ProducePacketName [06:46:40]name=ofd_packets/00070090 [06:46:40]NVStorageDeleteData [06:46:40]Write to MH i2c: 01 00 00 D3 3C 0F [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 07 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 07 00 D3 3C 00 00 00 00 00 E4 0C 06 [06:46:40]RasterBufferAndPrint [06:46:40]line [06:46:40]line [06:46:40]line [06:46:40]line [06:46:40]line [06:46:40]written 0, free lines is 3306 [06:46:40]MH_Cut [06:46:40]Write to MH i2c: D1 01 00 DA 3C 01 E8 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: D1 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: D1 01 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: D1 01 00 DA 3C 00 E7 [06:46:40]Write to MH i2c: 01 00 00 DB 3C 17 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]OFD Sender: No OFD packet to send [06:46:41]*** Cut start [06:46:41]*** Partial cut [06:46:41]*** CUTSNS_PIN = 1 [06:46:41]*** CUTSNS_PIN = 0 [06:46:41]*** Brake cut motor [06:46:41]Read from MH i2c: 01 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 [06:46:41]MH_I2C_Read... [06:46:41]*** Stop cut motor [06:46:41]*** Cut end [06:46:41]Read from MH i2c: 01 07 00 DB 3C 00 00 00 00 00 FF 0F 2C [06:46:41]process_action close_receipt done [06:46:41]requested_data is exist [06:46:41]produce_requested_data [06:46:41]requested_item fm.sn is exist - process it [06:46:41]wFMCommunicate request_size=4 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 11 00 00 [06:46:41]Write to MH i2c: E2 08 00 DC 3C 80 11 00 00 00 00 00 00 92 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 17 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 17 00 DC 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [06:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:46:41]wFMCommunicate OK [06:46:41]requested_item fd.num is exist - process it [06:46:41]SAM_PROTO_GetFieldsCounters [06:46:41]wFMCommunicate request_size=4 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 13 00 00 [06:46:41]Write to MH i2c: E2 08 00 DD 3C 80 13 00 00 00 00 00 00 95 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 62 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 62 00 DD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 11 01 00 0E 04 04 00 C3 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 C1 [06:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 11 01 00 0E 04 04 00 C3 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 [06:46:41]wFMCommunicate OK [06:46:41]SAM_PROTO_GetFieldsCounters done [06:46:41]requested_item shift.num is exist - process it [06:46:41]requested_item shift.opened is exist - process it [06:46:41]req_shift_opened [06:46:41]FM_GetShiftState [06:46:41]SAM_PROTO_GetShiftState [06:46:41]wFMCommunicate request_size=4 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 13 01 00 [06:46:41]Write to MH i2c: E2 08 00 DE 3C 80 13 01 00 00 00 00 00 97 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:42]Read from MH i2c: E2 [06:46:42]MH_I2C_Read... [06:46:42]Read from MH i2c: E2 0E 00 [06:46:42]MH_I2C_Read... [06:46:42]Read from MH i2c: E2 0E 00 DE 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 85 [06:46:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:46:42]wFMCommunicate OK [06:46:42]SAM_PROTO_GetShiftState done [06:46:42]FM_GetShiftState done [06:46:42]req_shift_opened done [06:46:42]requested_item shift.open_date is exist - process it [06:46:42]req_shift_open_date [06:46:42]req_shift_open_date done [06:46:42]produce_requested_data done [06:46:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70090,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:46:42]process_action_free close_receipt [06:46:42]json_value_free [06:46:42]json_value_free done [06:46:42]process_json_proto returns [06:46:42]Send response to host [06:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70090,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:46:42]free response buf [06:46:42]execute_script done [06:46:42]execute_script returns [06:46:42]free content buf [06:46:42]Sock 9.Close socket [06:46:42]Sock 9.Thread stoped [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:17]accept exits with 7 [06:48:17]New connection [06:48:17]New thread 3067170148 created [06:48:17]Thread 3067026788 joined [06:48:17]Waiting for new connection... [06:48:17] Sock 7.Parse request [06:48:17]Sock 7.Check first char [06:48:17]Sock 7.First char is OK [06:48:17]request: POST /json_proto HTTP/1.0 [06:48:17]Method: POST [06:48:17]URL: /json_proto [06:48:17]Method is POST - this is cgi request [06:48:17]url: /json_proto [06:48:17]query_string will be loaded in cgi processing [06:48:17]execute_cgi json_proto POST (null) [06:48:17]execute_cgi path=json_proto method=POST [06:48:17]POST find Content-Length [06:48:17]Host: 172.17.50.3:8080 [06:48:17]Content-Length: 689 [06:48:17]Content-Type: application/json [06:48:17] [06:48:17]POST finish read [06:48:17]Found Content-Length = 689 [06:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:48:17]execute_script... [06:48: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)2885857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:48:17]POST & json_proto [06:48:17]process_json_proto [06:48:17]json parsed OK: [06:48:17]protocol is kg_v1.0 [06:48:17]action value=close_receipt [06:48:17]process_action close_receipt [06:48:17]cmd_close_receipt [06:48:17]MH_GetDate [06:48:17]Write to MH i2c: F0 00 00 DF 3C 0A [06:48:17]Write i2c OK [06:48:17]MH_I2C_Read... [06:48:17]Read from MH i2c: F0 [06:48:17]MH_I2C_Read... [06:48:17]Read from MH i2c: F0 09 00 [06:48:17]MH_I2C_Read... [06:48:17]Read from MH i2c: F0 09 00 DF 3C 00 B5 4A 17 67 6B 98 1E 66 17 [06:48:17]GetLastDocTimeStamp 1729579601 [06:48:17]current date 1729579701 [06:48:17]FM_GetShiftState [06:48:17]SAM_PROTO_GetShiftState [06:48:17]wFMCommunicate request_size=4 [06:48:17]MH_SAM_APDU [06:48:17]CAPDU: 80 13 01 00 [06:48:17]Write to MH i2c: E2 08 00 E0 3C 80 13 01 00 00 00 00 00 99 [06:48:17]Write i2c OK [06:48:17]MH_I2C_Read... [06:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:17]Read from MH i2c: E2 [06:48:17]MH_I2C_Read... [06:48:17]Read from MH i2c: E2 0E 00 [06:48:17]MH_I2C_Read... [06:48:17]Read from MH i2c: E2 0E 00 E0 3C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 87 [06:48:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:48:17]wFMCommunicate OK [06:48:17]SAM_PROTO_GetShiftState done [06:48:17]FM_GetShiftState done [06:48:17]opened in 1729555832 [06:48:17]opened+sec_in_day 1729642232 [06:48:17]quantity*price = 200025 [06:48:17]sum+1 = 200026 [06:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 39 22.10.2024 06:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70091 ФПД: 167893407941536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70091&fm=167893407941536&tin=02508201610067®Number=0000000000156251&sum=200000 [06:48:18]StoreToDocumentArchive [06:48:18]shift 195 fd 70091 [06:48:18]save to /storage/0195/doc_00070091 [06:48:18]save last doc name /storage/0195/doc_00070091 to /storage/kkm_last_doc_name [06:48:18]save OK [06:48:18]Clear old archive folders... [06:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:48:18]tlvbuf is 011A1710 [06:48:18]SAM_PROTO_ClearQueue [06:48:18]wFMCommunicate request_size=4 [06:48:18]MH_SAM_APDU [06:48:18]CAPDU: 80 09 00 00 [06:48:18]Write to MH i2c: E2 08 00 ED 3C 80 09 00 00 00 00 00 00 9B [06:48:18]Write i2c OK [06:48:18]MH_I2C_Read... [06:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:18]Read from MH i2c: E2 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 ED 3C 00 90 00 9D [06:48:18]RAPDU: 90 00 [06:48:18]wFMCommunicate OK [06:48:18]SAM_PROTO_ClearQueue done [06:48:18]KKMCreateOFDPacket [06:48:18]OFDProtocolAddRootSTLVToBuf [06:48:18]FM_MakeSignedData [06:48:18]FM_MakeSignedData [06:48:18]SAM_PROTO_SignData [06:48:18]wFMCommunicate request_size=4 [06:48:18]MH_SAM_APDU [06:48:18]CAPDU: 80 0D 01 02 [06:48:18]Write to MH i2c: E2 08 00 EE 3C 80 0D 01 02 00 00 00 00 A3 [06:48:18]Write i2c OK [06:48:18]MH_I2C_Read... [06:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:18]Read from MH i2c: E2 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [06:48:18]RAPDU: 90 00 [06:48:18]wFMCommunicate OK [06:48:18]wFMCommunicate request_size=255 [06:48:18]MH_SAM_APDU [06:48:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 27 00 00 00 F4 03 04 00 B5 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 11 01 [06:48:18]Write to MH i2c: E2 02 01 EF 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 27 00 00 00 F4 03 04 00 B5 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 11 01 00 00 7D [06:48:18]Write i2c OK [06:48:18]MH_I2C_Read... [06:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:18]Read from MH i2c: E2 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 [06:48:18]MH_I2C_Read... [06:48:18]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [06:48:18]RAPDU: 90 00 [06:48:18]wFMCommunicate OK [06:48:18]wFMCommunicate request_size=16 [06:48:18]MH_SAM_APDU [06:48:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 98 B2 BA F0 C3 A0 [06:48:18]Write to MH i2c: E2 13 00 F0 3C 80 0D 02 02 0B 00 00 35 04 06 00 98 B2 BA F0 C3 A0 00 00 52 [06:48:18]Write i2c OK [06:48:18]MH_I2C_Read... [06:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:19]Read from MH i2c: E2 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 03 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [06:48:19]RAPDU: 90 00 [06:48:19]wFMCommunicate OK [06:48:19]wFMCommunicate request_size=4 [06:48:19]MH_SAM_APDU [06:48:19]CAPDU: 80 0D 03 02 [06:48:19]Write to MH i2c: E2 08 00 F1 3C 80 0D 03 02 00 00 00 00 A8 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:19]Read from MH i2c: E2 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 0B 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 0B 00 F1 3C 00 E1 50 F5 F2 7D 67 65 05 90 00 0F [06:48:19]RAPDU: E1 50 F5 F2 7D 67 65 05 90 00 [06:48:19]wFMCommunicate OK [06:48:19]SAM_PROTO_SignData done [06:48:19]FM_MakeSignedData done [06:48:19]CreateOFDProtocolMessage [06:48:19]wFMCommunicate request_size=4 [06:48:19]MH_SAM_APDU [06:48:19]CAPDU: 80 11 00 00 [06:48:19]Write to MH i2c: E2 08 00 F2 3C 80 11 00 00 00 00 00 00 A8 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:19]Read from MH i2c: E2 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 17 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: E2 17 00 F2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [06:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:48:19]wFMCommunicate OK [06:48:19]CreateOFDProtocolMessage done [06:48:19]OFDSenderStorePacket 70091 [06:48:19]StoreOFDPacket docnum=70091 [06:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D8 96 0D 01 70 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 27 00 00 00 F4 03 04 00 B5 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 11 01 00 35 04 06 00 98 B2 BA F0 C3 A0 E1 50 F5 F2 7D 67 65 05 [06:48:19]CheckFolder [06:48:19]dirname=/storage/ofd_packets [06:48:19]CheckFolder done [06:48:19]ProducePacketName [06:48:19]name=ofd_packets/00070091 [06:48:19]NVStorageSaveData ofd_packets/00070091 [06:48:19]File name is /storage/ofd_packets/00070091 [06:48:19]Write 307 bytes [06:48:19]NVStorageSaveData done [06:48:19]OFDSenderStorePacket done [06:48:19]KKMCreateOFDPacket done [06:48:19]NVStorageSaveData kkm_last_timestamp [06:48:19]File name is /storage/kkm_last_timestamp [06:48:19]Write 4 bytes [06:48:19]NVStorageSaveData done [06:48:19]ExternCall_PrintAddStr [06:48:19]wPrintStart [06:48:19]Write to MH i2c: 01 00 00 F3 3C 2F [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 F3 3C 00 00 00 00 00 FF 0F 44 [06:48:19]RasterBufferAndPrint [06:48:19]line Счет N : (1)2885857 [06:48:19]line ИНН: 02508201610067 [06:48:19]line Контрольно-Кассовый Чек [06:48:19]line ПРОДАЖА [06:48:19]line ТРК (МРК, ГНК) : 41 [06:48:19]line Товар: 2710194240 [06:48:19]line D-ENERGY Дт-К-2 [06:48:19]line 25.910 * 77.20 [06:48:19]line = 2000.25 [06:48:19]line НДС 12% НСП 1% [06:48:19]line > о реализуемом товаре [06:48:19]line ОКРУГЛЕНИЕ: -0.25 [06:48:19]line ИТОГО: 2000.00 [06:48:19]line Внесено: 2000.00 [06:48:19]line СДАЧА: 0.00 [06:48:19]line НСП 1% : 17.70 [06:48:19]line НДС 12% : 212.42 [06:48:19]line Наличными: 2000.00 [06:48:19]line Безнал.: 0.00 [06:48:19]line Место: АЗС № 85 "Партнер Нефть" [06:48:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:48:19]line СНО: Общий режим [06:48:19]line Чек 39 22.10.2024 06:48 [06:48:19]line Смена: 195 ФФД: 1.0 [06:48:19]line ЗНМ: 0300000167 [06:48:19]line РНМ: 0000000000156251 [06:48:19]line Версия ККМ: v1.0 [06:48:19]line ФМ: 0000000000963346 [06:48:19]line ФД: 70091 [06:48:19]line ФПД: 167893407941536 [06:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70091&fm=167893407941536&tin=02508201610067®Number=0000000000156251&sum=200000 [06:48:19]OFD Sender: Processing packet 70091 [packets to send 18, broken 17] [06:48:19]ProducePacketName [06:48:19]name=ofd_packets/00070091 [06:48:19]OFD Sender: To server: pG, [06:48:19]CommunicateWithHost lk.salyk.kg:30040 [06:48:19]ConnectInit lk.salyk.kg [06:48:19]written 0, free lines is 4095 [06:48:19]Connected sock=10 [06:48: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 34 36 15 01 00 00 D8 96 0D 01 70 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 27 00 00 00 F4 03 04 00 B5 4A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 11 01 00 35 04 06 00 98 B2 BA F0 C3 A0 E1 50 F5 F2 7D 67 65 05 [06:48: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 34 36 4F 00 00 00 73 E7 47 00 A8 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 34 36 10 04 04 00 CB 11 01 00 F4 03 04 00 56 F4 16 67 B6 04 01 00 00 87 DF D3 15 E1 A2 4C 80 [06:48:19]CommunicateWithHost err = 0 [06:48:19]CheckOFDResponse [06:48:19]1017 (14) - 77093643461234 [06:48:19]1041 (16) - 0000000000963346 [06:48:19]1040 (4) - 70091 [06:48:19]1012 (4) - 22.10.2024 00:39 [06:48:19]1206 (1) - 0 [06:48:19]OFD Sender: Remove packet 70091 [06:48:19]ProducePacketName [06:48:19]name=ofd_packets/00070091 [06:48:19]NVStorageDeleteData [06:48:19]Write to MH i2c: 01 00 00 1E 3D 5B [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 1E 3D 00 00 00 00 00 EC 0C 5A [06:48:19]RasterBufferAndPrint [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]written 0, free lines is 3314 [06:48:19]MH_Cut [06:48:19]Write to MH i2c: D1 01 00 25 3D 01 34 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 01 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 01 00 25 3D 00 33 [06:48:19]Write to MH i2c: 01 00 00 26 3D 63 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:20]OFD Sender: No OFD packet to send [06:48:20]*** Cut start [06:48:20]*** Partial cut [06:48:20]*** CUTSNS_PIN = 1 [06:48:20]*** CUTSNS_PIN = 0 [06:48:20]*** Brake cut motor [06:48:21]Read from MH i2c: 01 [06:48:21]MH_I2C_Read... [06:48:21]*** Stop cut motor [06:48:21]*** Cut end [06:48:21]Read from MH i2c: 01 07 00 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: 01 07 00 26 3D 00 00 00 00 00 FF 0F 78 [06:48:21]process_action close_receipt done [06:48:21]requested_data is exist [06:48:21]produce_requested_data [06:48:21]requested_item fm.sn is exist - process it [06:48:21]wFMCommunicate request_size=4 [06:48:21]MH_SAM_APDU [06:48:21]CAPDU: 80 11 00 00 [06:48:21]Write to MH i2c: E2 08 00 27 3D 80 11 00 00 00 00 00 00 DE [06:48:21]Write i2c OK [06:48:21]MH_I2C_Read... [06:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:21]Read from MH i2c: E2 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 17 00 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 17 00 27 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [06:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:48:21]wFMCommunicate OK [06:48:21]requested_item fd.num is exist - process it [06:48:21]SAM_PROTO_GetFieldsCounters [06:48:21]wFMCommunicate request_size=4 [06:48:21]MH_SAM_APDU [06:48:21]CAPDU: 80 13 00 00 [06:48:21]Write to MH i2c: E2 08 00 28 3D 80 13 00 00 00 00 00 00 E1 [06:48:21]Write i2c OK [06:48:21]MH_I2C_Read... [06:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:21]Read from MH i2c: E2 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 62 00 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 62 00 28 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 11 01 00 0E 04 04 00 C3 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 11 [06:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 11 01 00 0E 04 04 00 C3 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 [06:48:21]wFMCommunicate OK [06:48:21]SAM_PROTO_GetFieldsCounters done [06:48:21]requested_item shift.num is exist - process it [06:48:21]requested_item shift.opened is exist - process it [06:48:21]req_shift_opened [06:48:21]FM_GetShiftState [06:48:21]SAM_PROTO_GetShiftState [06:48:21]wFMCommunicate request_size=4 [06:48:21]MH_SAM_APDU [06:48:21]CAPDU: 80 13 01 00 [06:48:21]Write to MH i2c: E2 08 00 29 3D 80 13 01 00 00 00 00 00 E3 [06:48:21]Write i2c OK [06:48:21]MH_I2C_Read... [06:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:21]Read from MH i2c: E2 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 0E 00 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 0E 00 29 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D1 [06:48:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:48:21]wFMCommunicate OK [06:48:21]SAM_PROTO_GetShiftState done [06:48:21]FM_GetShiftState done [06:48:21]req_shift_opened done [06:48:21]requested_item shift.open_date is exist - process it [06:48:21]req_shift_open_date [06:48:21]req_shift_open_date done [06:48:21]produce_requested_data done [06:48:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70091,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:48:21]process_action_free close_receipt [06:48:21]json_value_free [06:48:21]json_value_free done [06:48:21]process_json_proto returns [06:48:21]Send response to host [06:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70091,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:48:21]free response buf [06:48:21]execute_script done [06:48:21]execute_script returns [06:48:21]free content buf [06:48:21]Sock 7.Close socket [06:48:21]Sock 7.Thread stoped [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:51:59]recv_with_timeout no data received [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]accept exits with 9 [06:59:05]New connection [06:59:05]New thread 3067026788 created [06:59:05]Thread 3067170148 joined [06:59:05]Waiting for new connection... [06:59:05] Sock 9.Parse request [06:59:05]Sock 9.Check first char [06:59:05]Sock 9.First char is OK [06:59:05]request: POST /json_proto HTTP/1.0 [06:59:05]Method: POST [06:59:05]URL: /json_proto [06:59:05]Method is POST - this is cgi request [06:59:05]url: /json_proto [06:59:05]query_string will be loaded in cgi processing [06:59:05]execute_cgi json_proto POST (null) [06:59:05]execute_cgi path=json_proto method=POST [06:59:05]POST find Content-Length [06:59:05]Host: 172.17.50.3:8080 [06:59:05]Content-Length: 680 [06:59:05]Content-Type: application/json [06:59:05] [06:59:05]POST finish read [06:59:05]Found Content-Length = 680 [06:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [06:59:05]execute_script... [06:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [06:59:05]POST & json_proto [06:59:05]process_json_proto [06:59:05]json parsed OK: [06:59:05]protocol is kg_v1.0 [06:59:05]action value=close_receipt [06:59:05]process_action close_receipt [06:59:05]cmd_close_receipt [06:59:05]MH_GetDate [06:59:05]Write to MH i2c: F0 00 00 2A 3D 56 [06:59:05]Write i2c OK [06:59:05]MH_I2C_Read... [06:59:05]Read from MH i2c: F0 [06:59:05]MH_I2C_Read... [06:59:05]Read from MH i2c: F0 09 00 [06:59:05]MH_I2C_Read... [06:59:05]Read from MH i2c: F0 09 00 2A 3D 00 3D 4D 17 67 6B 98 1E 66 EE [06:59:05]GetLastDocTimeStamp 1729579701 [06:59:05]current date 1729580349 [06:59:05]FM_GetShiftState [06:59:05]SAM_PROTO_GetShiftState [06:59:05]wFMCommunicate request_size=4 [06:59:05]MH_SAM_APDU [06:59:05]CAPDU: 80 13 01 00 [06:59:05]Write to MH i2c: E2 08 00 2B 3D 80 13 01 00 00 00 00 00 E5 [06:59:05]Write i2c OK [06:59:05]MH_I2C_Read... [06:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:05]Read from MH i2c: E2 [06:59:05]MH_I2C_Read... [06:59:05]Read from MH i2c: E2 0E 00 [06:59:05]MH_I2C_Read... [06:59:05]Read from MH i2c: E2 0E 00 2B 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D3 [06:59:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:59:05]wFMCommunicate OK [06:59:05]SAM_PROTO_GetShiftState done [06:59:05]FM_GetShiftState done [06:59:05]opened in 1729555832 [06:59:05]opened+sec_in_day 1729642232 [06:59:05]quantity*price = 250012 [06:59:05]sum+1 = 250013 [06:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 40 22.10.2024 06:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70092 ФПД: 163936722915250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065909&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70092&fm=163936722915250&tin=02508201610067®Number=0000000000156251&sum=250000 [06:59:06]StoreToDocumentArchive [06:59:06]shift 195 fd 70092 [06:59:06]save to /storage/0195/doc_00070092 [06:59:06]save last doc name /storage/0195/doc_00070092 to /storage/kkm_last_doc_name [06:59:06]save OK [06:59:06]Clear old archive folders... [06:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:06]tlvbuf is 012526C0 [06:59:06]SAM_PROTO_ClearQueue [06:59:06]wFMCommunicate request_size=4 [06:59:06]MH_SAM_APDU [06:59:06]CAPDU: 80 09 00 00 [06:59:06]Write to MH i2c: E2 08 00 38 3D 80 09 00 00 00 00 00 00 E7 [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 38 3D 00 90 00 E9 [06:59:06]RAPDU: 90 00 [06:59:06]wFMCommunicate OK [06:59:06]SAM_PROTO_ClearQueue done [06:59:06]KKMCreateOFDPacket [06:59:06]OFDProtocolAddRootSTLVToBuf [06:59:06]FM_MakeSignedData [06:59:06]FM_MakeSignedData [06:59:06]SAM_PROTO_SignData [06:59:06]wFMCommunicate request_size=4 [06:59:06]MH_SAM_APDU [06:59:06]CAPDU: 80 0D 01 02 [06:59:06]Write to MH i2c: E2 08 00 39 3D 80 0D 01 02 00 00 00 00 EF [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [06:59:06]RAPDU: 90 00 [06:59:06]wFMCommunicate OK [06:59:06]wFMCommunicate request_size=255 [06:59:06]MH_SAM_APDU [06:59: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 28 00 00 00 F4 03 04 00 3D 4D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 11 01 00 35 04 06 00 95 19 7E 22 [06:59:06]Write to MH i2c: E2 02 01 3A 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 28 00 00 00 F4 03 04 00 3D 4D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 11 01 00 35 04 06 00 95 19 7E 22 00 00 EE [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [06:59:06]RAPDU: 90 00 [06:59:06]wFMCommunicate OK [06:59:06]wFMCommunicate request_size=7 [06:59:06]MH_SAM_APDU [06:59:06]CAPDU: 80 0D 02 02 02 8F B2 [06:59:06]Write to MH i2c: E2 0A 00 3B 3D 80 0D 02 02 02 00 8F B2 00 00 37 [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [06:59:06]RAPDU: 90 00 [06:59:06]wFMCommunicate OK [06:59:06]wFMCommunicate request_size=4 [06:59:06]MH_SAM_APDU [06:59:06]CAPDU: 80 0D 03 02 [06:59:06]Write to MH i2c: E2 08 00 3C 3D 80 0D 03 02 00 00 00 00 F4 [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 0B 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 0B 00 3C 3D 00 E6 E4 89 32 BF 90 3A 23 90 00 26 [06:59:06]RAPDU: E6 E4 89 32 BF 90 3A 23 90 00 [06:59:06]wFMCommunicate OK [06:59:06]SAM_PROTO_SignData done [06:59:06]FM_MakeSignedData done [06:59:06]CreateOFDProtocolMessage [06:59:06]wFMCommunicate request_size=4 [06:59:06]MH_SAM_APDU [06:59:06]CAPDU: 80 11 00 00 [06:59:06]Write to MH i2c: E2 08 00 3D 3D 80 11 00 00 00 00 00 00 F4 [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:06]Read from MH i2c: E2 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 17 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: E2 17 00 3D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [06:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:59:06]wFMCommunicate OK [06:59:06]CreateOFDProtocolMessage done [06:59:06]OFDSenderStorePacket 70092 [06:59:06]StoreOFDPacket docnum=70092 [06:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A2 74 04 01 B2 FA 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 28 00 00 00 F4 03 04 00 3D 4D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 11 01 00 35 04 06 00 95 19 7E 22 8F B2 E6 E4 89 32 BF 90 3A 23 [06:59:06]CheckFolder [06:59:06]dirname=/storage/ofd_packets [06:59:06]CheckFolder done [06:59:06]ProducePacketName [06:59:06]name=ofd_packets/00070092 [06:59:06]NVStorageSaveData ofd_packets/00070092 [06:59:06]File name is /storage/ofd_packets/00070092 [06:59:06]Write 298 bytes [06:59:06]NVStorageSaveData done [06:59:06]OFDSenderStorePacket done [06:59:06]KKMCreateOFDPacket done [06:59:06]NVStorageSaveData kkm_last_timestamp [06:59:06]File name is /storage/kkm_last_timestamp [06:59:06]Write 4 bytes [06:59:06]NVStorageSaveData done [06:59:06]ExternCall_PrintAddStr [06:59:06]wPrintStart [06:59:06]Write to MH i2c: 01 00 00 3E 3D 7B [06:59:06]Write i2c OK [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: 01 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: 01 07 00 [06:59:06]MH_I2C_Read... [06:59:06]Read from MH i2c: 01 07 00 3E 3D 00 00 00 00 00 FF 0F 90 [06:59:06]RasterBufferAndPrint [06:59:06]line Счет N : (1)2885858 [06:59:06]line ИНН: 02508201610067 [06:59:06]line Контрольно-Кассовый Чек [06:59:06]line ПРОДАЖА [06:59:06]line ТРК (МРК, ГНК) : 61 [06:59:06]line Товар: 2710194210 [06:59:06]line ДТ-К-5 [06:59:06]line 32.810 * 76.20 [06:59:06]line = 2500.12 [06:59:06]line НДС 12% НСП 1% [06:59:06]line > о реализуемом товаре [06:59:06]line ОКРУГЛЕНИЕ: -0.12 [06:59:06]line ИТОГО: 2500.00 [06:59:06]line Внесено: 2500.00 [06:59:06]line СДАЧА: 0.00 [06:59:06]line НСП 1% : 22.12 [06:59:06]line НДС 12% : 265.50 [06:59:06]line Наличными: 2500.00 [06:59:06]line Безнал.: 0.00 [06:59:06]line Место: АЗС № 85 "Партнер Нефть" [06:59:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:59:06]line СНО: Общий режим [06:59:06]line Чек 40 22.10.2024 06:59 [06:59:06]line Смена: 195 ФФД: 1.0 [06:59:06]line ЗНМ: 0300000167 [06:59:06]line РНМ: 0000000000156251 [06:59:06]line Версия ККМ: v1.0 [06:59:06]line ФМ: 0000000000963346 [06:59:06]line ФД: 70092 [06:59:06]line ФПД: 163936722915250 [06:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065909&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70092&fm=163936722915250&tin=02508201610067®Number=0000000000156251&sum=250000 [06:59:07]OFD Sender: Processing packet 70092 [packets to send 18, broken 17] [06:59:07]ProducePacketName [06:59:07]name=ofd_packets/00070092 [06:59:07]OFD Sender: To server: pG, [06:59:07]CommunicateWithHost lk.salyk.kg:30040 [06:59:07]ConnectInit lk.salyk.kg [06:59:07]written 0, free lines is 4095 [06:59:07]Connected sock=10 [06:59: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 34 36 0C 01 00 00 A2 74 04 01 B2 FA 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 28 00 00 00 F4 03 04 00 3D 4D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 11 01 00 35 04 06 00 95 19 7E 22 8F B2 E6 E4 89 32 BF 90 3A 23 [06:59: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 34 36 4F 00 00 00 4E 6B 47 00 1C 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 34 36 10 04 04 00 CC 11 01 00 F4 03 04 00 DE F6 16 67 B6 04 01 00 00 E5 09 BC 8A 54 DD 1B D5 [06:59:07]CommunicateWithHost err = 0 [06:59:07]CheckOFDResponse [06:59:07]1017 (14) - 77093643461234 [06:59:07]1041 (16) - 0000000000963346 [06:59:07]1040 (4) - 70092 [06:59:07]1012 (4) - 22.10.2024 00:50 [06:59:07]1206 (1) - 0 [06:59:07]OFD Sender: Remove packet 70092 [06:59:07]ProducePacketName [06:59:07]name=ofd_packets/00070092 [06:59:07]NVStorageDeleteData [06:59:07]Write to MH i2c: 01 00 00 69 3D A6 [06:59:07]Write i2c OK [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: 01 [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: 01 07 00 [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: 01 07 00 69 3D 00 00 00 00 00 FA 0C B3 [06:59:07]RasterBufferAndPrint [06:59:07]line [06:59:07]line [06:59:07]line [06:59:07]line [06:59:07]line [06:59:07]written 0, free lines is 3328 [06:59:07]MH_Cut [06:59:07]Write to MH i2c: D1 01 00 70 3D 01 7F [06:59:07]Write i2c OK [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: D1 [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: D1 01 00 [06:59:07]MH_I2C_Read... [06:59:07]Read from MH i2c: D1 01 00 70 3D 00 7E [06:59:07]Write to MH i2c: 01 00 00 71 3D AE [06:59:07]Write i2c OK [06:59:07]MH_I2C_Read... [06:59:07]OFD Sender: No OFD packet to send [06:59:08]*** Cut start [06:59:08]*** Partial cut [06:59:08]*** CUTSNS_PIN = 1 [06:59:08]*** CUTSNS_PIN = 0 [06:59:08]*** Brake cut motor [06:59:08]Read from MH i2c: 01 [06:59:08]MH_I2C_Read... [06:59:08]*** Stop cut motor [06:59:08]*** Cut end [06:59:08]Read from MH i2c: 01 07 00 [06:59:08]MH_I2C_Read... [06:59:08]Read from MH i2c: 01 07 00 71 3D 00 00 00 00 00 FF 0F C3 [06:59:08]process_action close_receipt done [06:59:08]requested_data is exist [06:59:08]produce_requested_data [06:59:08]requested_item fm.sn is exist - process it [06:59:08]wFMCommunicate request_size=4 [06:59:08]MH_SAM_APDU [06:59:08]CAPDU: 80 11 00 00 [06:59:08]Write to MH i2c: E2 08 00 72 3D 80 11 00 00 00 00 00 00 29 [06:59:08]Write i2c OK [06:59:08]MH_I2C_Read... [06:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:08]Read from MH i2c: E2 [06:59:08]MH_I2C_Read... [06:59:08]Read from MH i2c: E2 17 00 [06:59:08]MH_I2C_Read... [06:59:08]Read from MH i2c: E2 17 00 72 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [06:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:59:08]wFMCommunicate OK [06:59:08]requested_item fd.num is exist - process it [06:59:08]SAM_PROTO_GetFieldsCounters [06:59:08]wFMCommunicate request_size=4 [06:59:08]MH_SAM_APDU [06:59:08]CAPDU: 80 13 00 00 [06:59:08]Write to MH i2c: E2 08 00 73 3D 80 13 00 00 00 00 00 00 2C [06:59:08]Write i2c OK [06:59:08]MH_I2C_Read... [06:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:09]Read from MH i2c: E2 [06:59:09]MH_I2C_Read... [06:59:09]Read from MH i2c: E2 62 00 [06:59:09]MH_I2C_Read... [06:59:09]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 11 01 00 0E 04 04 00 C3 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 60 [06:59: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 11 01 00 0E 04 04 00 C3 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 [06:59:09]wFMCommunicate OK [06:59:09]SAM_PROTO_GetFieldsCounters done [06:59:09]requested_item shift.num is exist - process it [06:59:09]requested_item shift.opened is exist - process it [06:59:09]req_shift_opened [06:59:09]FM_GetShiftState [06:59:09]SAM_PROTO_GetShiftState [06:59:09]wFMCommunicate request_size=4 [06:59:09]MH_SAM_APDU [06:59:09]CAPDU: 80 13 01 00 [06:59:09]Write to MH i2c: E2 08 00 74 3D 80 13 01 00 00 00 00 00 2E [06:59:09]Write i2c OK [06:59:09]MH_I2C_Read... [06:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:09]Read from MH i2c: E2 [06:59:09]MH_I2C_Read... [06:59:09]Read from MH i2c: E2 0E 00 [06:59:09]MH_I2C_Read... [06:59:09]Read from MH i2c: E2 0E 00 74 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1C [06:59:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [06:59:09]wFMCommunicate OK [06:59:09]SAM_PROTO_GetShiftState done [06:59:09]FM_GetShiftState done [06:59:09]req_shift_opened done [06:59:09]requested_item shift.open_date is exist - process it [06:59:09]req_shift_open_date [06:59:09]req_shift_open_date done [06:59:09]produce_requested_data done [06:59:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70092,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [06:59:09]process_action_free close_receipt [06:59:09]json_value_free [06:59:09]json_value_free done [06:59:09]process_json_proto returns [06:59:09]Send response to host [06:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70092,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [06:59:09]free response buf [06:59:09]execute_script done [06:59:09]execute_script returns [06:59:09]free content buf [06:59:09]Sock 9.Close socket [06:59:09]Sock 9.Thread stoped [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]recv_with_timeout no data received [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:35]recv_with_timeout no data received [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]recv_with_timeout no data received [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:26]accept exits with 7 [07:28:26]New connection [07:28:26]New thread 3067170148 created [07:28:26]Thread 3067026788 joined [07:28:26]Waiting for new connection... [07:28:26] Sock 7.Parse request [07:28:26]Sock 7.Check first char [07:28:26]Sock 7.First char is OK [07:28:26]request: POST /json_proto HTTP/1.0 [07:28:26]Method: POST [07:28:26]URL: /json_proto [07:28:26]Method is POST - this is cgi request [07:28:26]url: /json_proto [07:28:26]query_string will be loaded in cgi processing [07:28:26]execute_cgi json_proto POST (null) [07:28:26]execute_cgi path=json_proto method=POST [07:28:26]POST find Content-Length [07:28:26]Host: 172.17.50.3:8080 [07:28:26]Content-Length: 683 [07:28:26]Content-Type: application/json [07:28:26] [07:28:26]POST finish read [07:28:26]Found Content-Length = 683 [07:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [07:28:26]execute_script... [07:28: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)2885859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [07:28:26]POST & json_proto [07:28:26]process_json_proto [07:28:26]json parsed OK: [07:28:26]protocol is kg_v1.0 [07:28:26]action value=close_receipt [07:28:26]process_action close_receipt [07:28:26]cmd_close_receipt [07:28:26]MH_GetDate [07:28:26]Write to MH i2c: F0 00 00 75 3D A1 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: F0 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: F0 09 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: F0 09 00 75 3D 00 1E 54 17 67 6B 98 1E 66 21 [07:28:26]GetLastDocTimeStamp 1729580349 [07:28:26]current date 1729582110 [07:28:26]FM_GetShiftState [07:28:26]SAM_PROTO_GetShiftState [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 13 01 00 [07:28:26]Write to MH i2c: E2 08 00 76 3D 80 13 01 00 00 00 00 00 30 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 76 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1E [07:28:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_GetShiftState done [07:28:26]FM_GetShiftState done [07:28:26]opened in 1729555832 [07:28:26]opened+sec_in_day 1729642232 [07:28:26]quantity*price = 200031 [07:28:26]sum+1 = 200032 [07:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 41 22.10.2024 07:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70093 ФПД: 187655183227575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70093&fm=187655183227575&tin=02508201610067®Number=0000000000156251&sum=200000 [07:28:27]StoreToDocumentArchive [07:28:27]shift 195 fd 70093 [07:28:27]save to /storage/0195/doc_00070093 [07:28:27]save last doc name /storage/0195/doc_00070093 to /storage/kkm_last_doc_name [07:28:27]save OK [07:28:27]Clear old archive folders... [07:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:27]tlvbuf is 011945A0 [07:28:27]SAM_PROTO_ClearQueue [07:28:27]wFMCommunicate request_size=4 [07:28:27]MH_SAM_APDU [07:28:27]CAPDU: 80 09 00 00 [07:28:27]Write to MH i2c: E2 08 00 83 3D 80 09 00 00 00 00 00 00 32 [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:27]Read from MH i2c: E2 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 03 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 03 00 83 3D 00 90 00 34 [07:28:27]RAPDU: 90 00 [07:28:27]wFMCommunicate OK [07:28:27]SAM_PROTO_ClearQueue done [07:28:27]KKMCreateOFDPacket [07:28:27]OFDProtocolAddRootSTLVToBuf [07:28:27]FM_MakeSignedData [07:28:27]FM_MakeSignedData [07:28:27]SAM_PROTO_SignData [07:28:27]wFMCommunicate request_size=4 [07:28:27]MH_SAM_APDU [07:28:27]CAPDU: 80 0D 01 02 [07:28:27]Write to MH i2c: E2 08 00 84 3D 80 0D 01 02 00 00 00 00 3A [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:27]Read from MH i2c: E2 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 03 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [07:28:27]RAPDU: 90 00 [07:28:27]wFMCommunicate OK [07:28:27]wFMCommunicate request_size=255 [07:28:27]MH_SAM_APDU [07:28: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 29 00 00 00 F4 03 04 00 1E 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 11 01 00 35 04 06 00 AA [07:28:27]Write to MH i2c: E2 02 01 85 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 29 00 00 00 F4 03 04 00 1E 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 11 01 00 35 04 06 00 AA 00 00 6A [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:28]Read from MH i2c: E2 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 03 00 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 03 00 85 3D 00 90 00 36 [07:28:28]RAPDU: 90 00 [07:28:28]wFMCommunicate OK [07:28:28]wFMCommunicate request_size=10 [07:28:28]MH_SAM_APDU [07:28:28]CAPDU: 80 0D 02 02 05 AB E0 89 5A B7 [07:28:28]Write to MH i2c: E2 0D 00 86 3D 80 0D 02 02 05 00 AB E0 89 5A B7 00 00 6C [07:28:28]Write i2c OK [07:28:28]MH_I2C_Read... [07:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:28]Read from MH i2c: E2 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 03 00 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 03 00 86 3D 00 90 00 37 [07:28:28]RAPDU: 90 00 [07:28:28]wFMCommunicate OK [07:28:28]wFMCommunicate request_size=4 [07:28:28]MH_SAM_APDU [07:28:28]CAPDU: 80 0D 03 02 [07:28:28]Write to MH i2c: E2 08 00 87 3D 80 0D 03 02 00 00 00 00 3F [07:28:28]Write i2c OK [07:28:28]MH_I2C_Read... [07:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:28]Read from MH i2c: E2 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 0B 00 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 0B 00 87 3D 00 C4 4B 15 86 3C 35 CB 5C 90 00 82 [07:28:28]RAPDU: C4 4B 15 86 3C 35 CB 5C 90 00 [07:28:28]wFMCommunicate OK [07:28:28]SAM_PROTO_SignData done [07:28:28]FM_MakeSignedData done [07:28:28]CreateOFDProtocolMessage [07:28:28]wFMCommunicate request_size=4 [07:28:28]MH_SAM_APDU [07:28:28]CAPDU: 80 11 00 00 [07:28:28]Write to MH i2c: E2 08 00 88 3D 80 11 00 00 00 00 00 00 3F [07:28:28]Write i2c OK [07:28:28]MH_I2C_Read... [07:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:28]Read from MH i2c: E2 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 17 00 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: E2 17 00 88 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [07:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:28:28]wFMCommunicate OK [07:28:28]CreateOFDProtocolMessage done [07:28:28]OFDSenderStorePacket 70093 [07:28:28]StoreOFDPacket docnum=70093 [07:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 94 07 01 93 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 29 00 00 00 F4 03 04 00 1E 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 11 01 00 35 04 06 00 AA AB E0 89 5A B7 C4 4B 15 86 3C 35 CB 5C [07:28:28]CheckFolder [07:28:28]dirname=/storage/ofd_packets [07:28:28]CheckFolder done [07:28:28]ProducePacketName [07:28:28]name=ofd_packets/00070093 [07:28:28]NVStorageSaveData ofd_packets/00070093 [07:28:28]File name is /storage/ofd_packets/00070093 [07:28:28]Write 301 bytes [07:28:28]NVStorageSaveData done [07:28:28]OFDSenderStorePacket done [07:28:28]KKMCreateOFDPacket done [07:28:28]NVStorageSaveData kkm_last_timestamp [07:28:28]File name is /storage/kkm_last_timestamp [07:28:28]Write 4 bytes [07:28:28]NVStorageSaveData done [07:28:28]ExternCall_PrintAddStr [07:28:28]wPrintStart [07:28:28]Write to MH i2c: 01 00 00 89 3D C6 [07:28:28]Write i2c OK [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: 01 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: 01 07 00 [07:28:28]MH_I2C_Read... [07:28:28]Read from MH i2c: 01 07 00 89 3D 00 00 00 00 00 FF 0F DB [07:28:28]RasterBufferAndPrint [07:28:28]line Счет N : (1)2885859 [07:28:28]line ИНН: 02508201610067 [07:28:28]line Контрольно-Кассовый Чек [07:28:28]line ПРОДАЖА [07:28:28]line ТРК (МРК, ГНК) : 12 [07:28:28]line Товар: 2710124130 [07:28:28]line Аи-92-К-5 [07:28:28]line 29.900 * 66.90 [07:28:28]line = 2000.31 [07:28:28]line НДС 12% НСП 1% [07:28:28]line > о реализуемом товаре [07:28:28]line ОКРУГЛЕНИЕ: -0.31 [07:28:28]line ИТОГО: 2000.00 [07:28:28]line Внесено: 2000.00 [07:28:28]line СДАЧА: 0.00 [07:28:28]line НСП 1% : 17.70 [07:28:28]line НДС 12% : 212.42 [07:28:28]line Наличными: 2000.00 [07:28:28]line Безнал.: 0.00 [07:28:28]line Место: АЗС № 85 "Партнер Нефть" [07:28:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:28:28]line СНО: Общий режим [07:28:28]line Чек 41 22.10.2024 07:28 [07:28:28]line Смена: 195 ФФД: 1.0 [07:28:28]line ЗНМ: 0300000167 [07:28:28]line РНМ: 0000000000156251 [07:28:28]line Версия ККМ: v1.0 [07:28:28]line ФМ: 0000000000963346 [07:28:28]line ФД: 70093 [07:28:28]line ФПД: 187655183227575 [07:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70093&fm=187655183227575&tin=02508201610067®Number=0000000000156251&sum=200000 [07:28:28]OFD Sender: Processing packet 70093 [packets to send 18, broken 17] [07:28:28]ProducePacketName [07:28:28]name=ofd_packets/00070093 [07:28:28]OFD Sender: To server: pG, [07:28:28]CommunicateWithHost lk.salyk.kg:30040 [07:28:28]ConnectInit lk.salyk.kg [07:28:28]written 0, free lines is 4095 [07:28:28]Connected sock=10 [07:28: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 34 36 0F 01 00 00 18 94 07 01 93 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 29 00 00 00 F4 03 04 00 1E 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 11 01 00 35 04 06 00 AA AB E0 89 5A B7 C4 4B 15 86 3C 35 CB 5C [07:28: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 34 36 4F 00 00 00 08 6C 47 00 D8 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 34 36 10 04 04 00 CD 11 01 00 F4 03 04 00 C0 FD 16 67 B6 04 01 00 00 0E B8 B6 29 F2 86 A1 95 [07:28:28]CommunicateWithHost err = 0 [07:28:28]CheckOFDResponse [07:28:28]1017 (14) - 77093643461234 [07:28:28]1041 (16) - 0000000000963346 [07:28:28]1040 (4) - 70093 [07:28:28]1012 (4) - 22.10.2024 01:20 [07:28:28]1206 (1) - 0 [07:28:28]OFD Sender: Remove packet 70093 [07:28:28]ProducePacketName [07:28:28]name=ofd_packets/00070093 [07:28:28]NVStorageDeleteData [07:28:29]Write to MH i2c: 01 00 00 B4 3D F1 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: 01 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: 01 07 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: 01 07 00 B4 3D 00 00 00 00 00 EF 0C F3 [07:28:29]RasterBufferAndPrint [07:28:29]line [07:28:29]line [07:28:29]line [07:28:29]line [07:28:29]line [07:28:29]written 0, free lines is 3317 [07:28:29]MH_Cut [07:28:29]Write to MH i2c: D1 01 00 BB 3D 01 CA [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: D1 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: D1 01 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: D1 01 00 BB 3D 00 C9 [07:28:29]Write to MH i2c: 01 00 00 BC 3D F9 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]OFD Sender: No OFD packet to send [07:28:29]*** Cut start [07:28:29]*** Partial cut [07:28:29]*** CUTSNS_PIN = 1 [07:28:29]*** CUTSNS_PIN = 0 [07:28:29]*** Brake cut motor [07:28:30]Read from MH i2c: 01 [07:28:30]MH_I2C_Read... [07:28:30]*** Stop cut motor [07:28:30]*** Cut end [07:28:30]Read from MH i2c: 01 07 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 07 00 BC 3D 00 00 00 00 00 FF 0F 0E [07:28:30]process_action close_receipt done [07:28:30]requested_data is exist [07:28:30]produce_requested_data [07:28:30]requested_item fm.sn is exist - process it [07:28:30]wFMCommunicate request_size=4 [07:28:30]MH_SAM_APDU [07:28:30]CAPDU: 80 11 00 00 [07:28:30]Write to MH i2c: E2 08 00 BD 3D 80 11 00 00 00 00 00 00 74 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:30]Read from MH i2c: E2 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 17 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 17 00 BD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [07:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:28:30]wFMCommunicate OK [07:28:30]requested_item fd.num is exist - process it [07:28:30]SAM_PROTO_GetFieldsCounters [07:28:30]wFMCommunicate request_size=4 [07:28:30]MH_SAM_APDU [07:28:30]CAPDU: 80 13 00 00 [07:28:30]Write to MH i2c: E2 08 00 BE 3D 80 13 00 00 00 00 00 00 77 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:30]Read from MH i2c: E2 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 62 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 62 00 BE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 11 01 00 0E 04 04 00 C3 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 AF [07:28: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 11 01 00 0E 04 04 00 C3 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 [07:28:30]wFMCommunicate OK [07:28:30]SAM_PROTO_GetFieldsCounters done [07:28:30]requested_item shift.num is exist - process it [07:28:30]requested_item shift.opened is exist - process it [07:28:30]req_shift_opened [07:28:30]FM_GetShiftState [07:28:30]SAM_PROTO_GetShiftState [07:28:30]wFMCommunicate request_size=4 [07:28:30]MH_SAM_APDU [07:28:30]CAPDU: 80 13 01 00 [07:28:30]Write to MH i2c: E2 08 00 BF 3D 80 13 01 00 00 00 00 00 79 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:30]Read from MH i2c: E2 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 0E 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: E2 0E 00 BF 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 67 [07:28:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:28:30]wFMCommunicate OK [07:28:30]SAM_PROTO_GetShiftState done [07:28:30]FM_GetShiftState done [07:28:30]req_shift_opened done [07:28:30]requested_item shift.open_date is exist - process it [07:28:30]req_shift_open_date [07:28:30]req_shift_open_date done [07:28:30]produce_requested_data done [07:28:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70093,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:28:30]process_action_free close_receipt [07:28:30]json_value_free [07:28:30]json_value_free done [07:28:30]process_json_proto returns [07:28:30]Send response to host [07:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70093,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:28:30]free response buf [07:28:30]execute_script done [07:28:30]execute_script returns [07:28:30]free content buf [07:28:30]Sock 7.Close socket [07:28:30]Sock 7.Thread stoped [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:46]accept exits with 9 [07:28:46]New connection [07:28:46]New thread 3067026788 created [07:28:46]Thread 3067170148 joined [07:28:46]Waiting for new connection... [07:28:46] Sock 9.Parse request [07:28:46]Sock 9.Check first char [07:28:46]Sock 9.First char is OK [07:28:46]request: POST /json_proto HTTP/1.0 [07:28:46]Method: POST [07:28:46]URL: /json_proto [07:28:46]Method is POST - this is cgi request [07:28:46]url: /json_proto [07:28:46]query_string will be loaded in cgi processing [07:28:46]execute_cgi json_proto POST (null) [07:28:46]execute_cgi path=json_proto method=POST [07:28:46]POST find Content-Length [07:28:46]Host: 172.17.50.3:8080 [07:28:46]Content-Length: 683 [07:28:46]Content-Type: application/json [07:28:46] [07:28:46]POST finish read [07:28:46]Found Content-Length = 683 [07:28:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [07:28:46]execute_script... [07:28: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)2885860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [07:28:46]POST & json_proto [07:28:46]process_json_proto [07:28:46]json parsed OK: [07:28:46]protocol is kg_v1.0 [07:28:46]action value=close_receipt [07:28:46]process_action close_receipt [07:28:46]cmd_close_receipt [07:28:46]MH_GetDate [07:28:46]Write to MH i2c: F0 00 00 C0 3D EC [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: F0 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: F0 09 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: F0 09 00 C0 3D 00 33 54 17 67 6B 98 1E 66 81 [07:28:46]GetLastDocTimeStamp 1729582110 [07:28:46]current date 1729582131 [07:28:46]FM_GetShiftState [07:28:46]SAM_PROTO_GetShiftState [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 13 01 00 [07:28:46]Write to MH i2c: E2 08 00 C1 3D 80 13 01 00 00 00 00 00 7B [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0E 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0E 00 C1 3D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 69 [07:28:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_GetShiftState done [07:28:46]FM_GetShiftState done [07:28:46]opened in 1729555832 [07:28:46]opened+sec_in_day 1729642232 [07:28:46]quantity*price = 200043 [07:28:46]sum+1 = 200044 [07:28:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 42 22.10.2024 07:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70094 ФПД: 198851471782862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70094&fm=198851471782862&tin=02508201610067®Number=0000000000156251&sum=200000 [07:28:48]StoreToDocumentArchive [07:28:48]shift 195 fd 70094 [07:28:48]save to /storage/0195/doc_00070094 [07:28:48]save last doc name /storage/0195/doc_00070094 to /storage/kkm_last_doc_name [07:28:48]save OK [07:28:48]Clear old archive folders... [07:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:48]tlvbuf is 0120DDC0 [07:28:48]SAM_PROTO_ClearQueue [07:28:48]wFMCommunicate request_size=4 [07:28:48]MH_SAM_APDU [07:28:48]CAPDU: 80 09 00 00 [07:28:48]Write to MH i2c: E2 08 00 CE 3D 80 09 00 00 00 00 00 00 7D [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 CE 3D 00 90 00 7F [07:28:48]RAPDU: 90 00 [07:28:48]wFMCommunicate OK [07:28:48]SAM_PROTO_ClearQueue done [07:28:48]KKMCreateOFDPacket [07:28:48]OFDProtocolAddRootSTLVToBuf [07:28:48]FM_MakeSignedData [07:28:48]FM_MakeSignedData [07:28:48]SAM_PROTO_SignData [07:28:48]wFMCommunicate request_size=4 [07:28:48]MH_SAM_APDU [07:28:48]CAPDU: 80 0D 01 02 [07:28:48]Write to MH i2c: E2 08 00 CF 3D 80 0D 01 02 00 00 00 00 85 [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 CF 3D 00 90 00 80 [07:28:48]RAPDU: 90 00 [07:28:48]wFMCommunicate OK [07:28:48]wFMCommunicate request_size=255 [07:28:48]MH_SAM_APDU [07:28: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 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 2A 00 00 00 F4 03 04 00 33 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 11 01 00 35 04 06 00 B4 [07:28:48]Write to MH i2c: E2 02 01 D0 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 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 2A 00 00 00 F4 03 04 00 33 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 11 01 00 35 04 06 00 B4 00 00 3C [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 D0 3D 00 90 00 81 [07:28:48]RAPDU: 90 00 [07:28:48]wFMCommunicate OK [07:28:48]wFMCommunicate request_size=10 [07:28:48]MH_SAM_APDU [07:28:48]CAPDU: 80 0D 02 02 05 DA B7 56 B3 CE [07:28:48]Write to MH i2c: E2 0D 00 D1 3D 80 0D 02 02 05 00 DA B7 56 B3 CE 00 00 FA [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [07:28:48]RAPDU: 90 00 [07:28:48]wFMCommunicate OK [07:28:48]wFMCommunicate request_size=4 [07:28:48]MH_SAM_APDU [07:28:48]CAPDU: 80 0D 03 02 [07:28:48]Write to MH i2c: E2 08 00 D2 3D 80 0D 03 02 00 00 00 00 8A [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 0B 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 0B 00 D2 3D 00 DB A0 10 44 A7 23 C6 82 90 00 6C [07:28:48]RAPDU: DB A0 10 44 A7 23 C6 82 90 00 [07:28:48]wFMCommunicate OK [07:28:48]SAM_PROTO_SignData done [07:28:48]FM_MakeSignedData done [07:28:48]CreateOFDProtocolMessage [07:28:48]wFMCommunicate request_size=4 [07:28:48]MH_SAM_APDU [07:28:48]CAPDU: 80 11 00 00 [07:28:48]Write to MH i2c: E2 08 00 D3 3D 80 11 00 00 00 00 00 00 8A [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:48]Read from MH i2c: E2 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 17 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: E2 17 00 D3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [07:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:28:48]wFMCommunicate OK [07:28:48]CreateOFDProtocolMessage done [07:28:48]OFDSenderStorePacket 70094 [07:28:48]StoreOFDPacket docnum=70094 [07:28:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8A FA 07 01 EA 44 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 2A 00 00 00 F4 03 04 00 33 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 11 01 00 35 04 06 00 B4 DA B7 56 B3 CE DB A0 10 44 A7 23 C6 82 [07:28:48]CheckFolder [07:28:48]dirname=/storage/ofd_packets [07:28:48]CheckFolder done [07:28:48]ProducePacketName [07:28:48]name=ofd_packets/00070094 [07:28:48]NVStorageSaveData ofd_packets/00070094 [07:28:48]File name is /storage/ofd_packets/00070094 [07:28:48]Write 301 bytes [07:28:48]NVStorageSaveData done [07:28:48]OFDSenderStorePacket done [07:28:48]KKMCreateOFDPacket done [07:28:48]NVStorageSaveData kkm_last_timestamp [07:28:48]File name is /storage/kkm_last_timestamp [07:28:48]Write 4 bytes [07:28:48]NVStorageSaveData done [07:28:48]ExternCall_PrintAddStr [07:28:48]wPrintStart [07:28:48]Write to MH i2c: 01 00 00 D4 3D 11 [07:28:48]Write i2c OK [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: 01 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: 01 07 00 [07:28:48]MH_I2C_Read... [07:28:48]Read from MH i2c: 01 07 00 D4 3D 00 00 00 00 00 FF 0F 26 [07:28:48]RasterBufferAndPrint [07:28:48]line Счет N : (1)2885860 [07:28:48]line ИНН: 02508201610067 [07:28:48]line Контрольно-Кассовый Чек [07:28:48]line ПРОДАЖА [07:28:48]line ТРК (МРК, ГНК) : 43 [07:28:48]line Товар: 2710124500 [07:28:48]line Аи-95-К-5 [07:28:48]line 26.960 * 74.20 [07:28:48]line = 2000.43 [07:28:48]line НДС 12% НСП 1% [07:28:48]line > о реализуемом товаре [07:28:48]line ОКРУГЛЕНИЕ: -0.43 [07:28:48]line ИТОГО: 2000.00 [07:28:48]line Внесено: 2000.00 [07:28:48]line СДАЧА: 0.00 [07:28:48]line НСП 1% : 17.70 [07:28:48]line НДС 12% : 212.43 [07:28:48]line Наличными: 2000.00 [07:28:48]line Безнал.: 0.00 [07:28:48]line Место: АЗС № 85 "Партнер Нефть" [07:28:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:28:48]line СНО: Общий режим [07:28:48]line Чек 42 22.10.2024 07:28 [07:28:48]line Смена: 195 ФФД: 1.0 [07:28:48]line ЗНМ: 0300000167 [07:28:48]line РНМ: 0000000000156251 [07:28:48]line Версия ККМ: v1.0 [07:28:48]line ФМ: 0000000000963346 [07:28:48]line ФД: 70094 [07:28:48]line ФПД: 198851471782862 [07:28:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70094&fm=198851471782862&tin=02508201610067®Number=0000000000156251&sum=200000 [07:28:48]OFD Sender: Processing packet 70094 [packets to send 18, broken 17] [07:28:48]ProducePacketName [07:28:48]name=ofd_packets/00070094 [07:28:48]OFD Sender: To server: pG, [07:28:48]CommunicateWithHost lk.salyk.kg:30040 [07:28:48]ConnectInit lk.salyk.kg [07:28:48]written 0, free lines is 4095 [07:28:48]Connected sock=10 [07:28: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 34 36 0F 01 00 00 8A FA 07 01 EA 44 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 2A 00 00 00 F4 03 04 00 33 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 11 01 00 35 04 06 00 B4 DA B7 56 B3 CE DB A0 10 44 A7 23 C6 82 [07:28: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 34 36 4F 00 00 00 6E D2 47 00 B8 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 34 36 10 04 04 00 CE 11 01 00 F4 03 04 00 D4 FD 16 67 B6 04 01 00 00 8C 3F 78 D4 53 0C 08 DE [07:28:49]CommunicateWithHost err = 0 [07:28:49]CheckOFDResponse [07:28:49]1017 (14) - 77093643461234 [07:28:49]1041 (16) - 0000000000963346 [07:28:49]1040 (4) - 70094 [07:28:49]1012 (4) - 22.10.2024 01:20 [07:28:49]1206 (1) - 0 [07:28:49]OFD Sender: Remove packet 70094 [07:28:49]ProducePacketName [07:28:49]name=ofd_packets/00070094 [07:28:49]NVStorageDeleteData [07:28:49]Write to MH i2c: 01 00 00 FF 3D 3C [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: 01 07 00 FF 3D 00 00 00 00 00 E4 0C 33 [07:28:49]RasterBufferAndPrint [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]line [07:28:49]written 0, free lines is 3306 [07:28:49]MH_Cut [07:28:49]Write to MH i2c: D1 01 00 06 3E 01 16 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 01 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: D1 01 00 06 3E 00 15 [07:28:49]Write to MH i2c: 01 00 00 07 3E 45 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]OFD Sender: No OFD packet to send [07:28:50]*** Cut start [07:28:50]*** Partial cut [07:28:50]*** CUTSNS_PIN = 1 [07:28:50]*** CUTSNS_PIN = 0 [07:28:50]*** Brake cut motor [07:28:50]Read from MH i2c: 01 [07:28:50]MH_I2C_Read... [07:28:50]*** Stop cut motor [07:28:50]*** Cut end [07:28:50]Read from MH i2c: 01 07 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: 01 07 00 07 3E 00 00 00 00 00 FF 0F 5A [07:28:50]process_action close_receipt done [07:28:50]requested_data is exist [07:28:50]produce_requested_data [07:28:50]requested_item fm.sn is exist - process it [07:28:50]wFMCommunicate request_size=4 [07:28:50]MH_SAM_APDU [07:28:50]CAPDU: 80 11 00 00 [07:28:50]Write to MH i2c: E2 08 00 08 3E 80 11 00 00 00 00 00 00 C0 [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:50]Read from MH i2c: E2 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 17 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 17 00 08 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [07:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:28:50]wFMCommunicate OK [07:28:50]requested_item fd.num is exist - process it [07:28:50]SAM_PROTO_GetFieldsCounters [07:28:50]wFMCommunicate request_size=4 [07:28:50]MH_SAM_APDU [07:28:50]CAPDU: 80 13 00 00 [07:28:50]Write to MH i2c: E2 08 00 09 3E 80 13 00 00 00 00 00 00 C3 [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:50]Read from MH i2c: E2 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 62 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 62 00 09 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 11 01 00 0E 04 04 00 C3 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 FF [07:28: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 11 01 00 0E 04 04 00 C3 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 [07:28:50]wFMCommunicate OK [07:28:50]SAM_PROTO_GetFieldsCounters done [07:28:50]requested_item shift.num is exist - process it [07:28:50]requested_item shift.opened is exist - process it [07:28:50]req_shift_opened [07:28:50]FM_GetShiftState [07:28:50]SAM_PROTO_GetShiftState [07:28:50]wFMCommunicate request_size=4 [07:28:50]MH_SAM_APDU [07:28:50]CAPDU: 80 13 01 00 [07:28:50]Write to MH i2c: E2 08 00 0A 3E 80 13 01 00 00 00 00 00 C5 [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:50]Read from MH i2c: E2 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 0E 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 0E 00 0A 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [07:28:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:28:50]wFMCommunicate OK [07:28:50]SAM_PROTO_GetShiftState done [07:28:50]FM_GetShiftState done [07:28:50]req_shift_opened done [07:28:50]requested_item shift.open_date is exist - process it [07:28:50]req_shift_open_date [07:28:50]req_shift_open_date done [07:28:50]produce_requested_data done [07:28:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70094,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:28:50]process_action_free close_receipt [07:28:50]json_value_free [07:28:50]json_value_free done [07:28:50]process_json_proto returns [07:28:50]Send response to host [07:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70094,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:28:50]free response buf [07:28:50]execute_script done [07:28:50]execute_script returns [07:28:50]free content buf [07:28:50]Sock 9.Close socket [07:28:50]Sock 9.Thread stoped [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:25]accept exits with 7 [07:31:25]New connection [07:31:25]New thread 3067170148 created [07:31:25]Thread 3067026788 joined [07:31:25]Waiting for new connection... [07:31:25] Sock 7.Parse request [07:31:25]Sock 7.Check first char [07:31:25]Sock 7.First char is OK [07:31:25]request: POST /json_proto HTTP/1.0 [07:31:25]Method: POST [07:31:25]URL: /json_proto [07:31:25]Method is POST - this is cgi request [07:31:25]url: /json_proto [07:31:25]query_string will be loaded in cgi processing [07:31:25]execute_cgi json_proto POST (null) [07:31:25]execute_cgi path=json_proto method=POST [07:31:25]POST find Content-Length [07:31:25]Host: 172.17.50.3:8080 [07:31:25]Content-Length: 678 [07:31:25]Content-Type: application/json [07:31:25] [07:31:25]POST finish read [07:31:25]Found Content-Length = 678 [07:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [07:31:25]execute_script... [07:31: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)2885861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [07:31:25]POST & json_proto [07:31:25]process_json_proto [07:31:25]json parsed OK: [07:31:25]protocol is kg_v1.0 [07:31:25]action value=close_receipt [07:31:25]process_action close_receipt [07:31:25]cmd_close_receipt [07:31:25]MH_GetDate [07:31:25]Write to MH i2c: F0 00 00 0B 3E 38 [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: F0 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: F0 09 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: F0 09 00 0B 3E 00 D2 54 17 67 6B 98 1E 66 6C [07:31:25]GetLastDocTimeStamp 1729582131 [07:31:25]current date 1729582290 [07:31:25]FM_GetShiftState [07:31:25]SAM_PROTO_GetShiftState [07:31:25]wFMCommunicate request_size=4 [07:31:25]MH_SAM_APDU [07:31:25]CAPDU: 80 13 01 00 [07:31:25]Write to MH i2c: E2 08 00 0C 3E 80 13 01 00 00 00 00 00 C7 [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:25]Read from MH i2c: E2 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: E2 0E 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: E2 0E 00 0C 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B5 [07:31:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:31:25]wFMCommunicate OK [07:31:25]SAM_PROTO_GetShiftState done [07:31:25]FM_GetShiftState done [07:31:25]opened in 1729555832 [07:31:25]opened+sec_in_day 1729642232 [07:31:25]quantity*price = 50041 [07:31:25]sum+1 = 50042 [07:31: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 43 22.10.2024 07:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70095 ФПД: 164901298265212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70095&fm=164901298265212&tin=02508201610067®Number=0000000000156251&sum=50000 [07:31:27]StoreToDocumentArchive [07:31:27]shift 195 fd 70095 [07:31:27]save to /storage/0195/doc_00070095 [07:31:27]save last doc name /storage/0195/doc_00070095 to /storage/kkm_last_doc_name [07:31:27]save OK [07:31:27]Clear old archive folders... [07:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:27]tlvbuf is 01172D70 [07:31:27]SAM_PROTO_ClearQueue [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 09 00 00 [07:31:27]Write to MH i2c: E2 08 00 19 3E 80 09 00 00 00 00 00 00 C9 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 19 3E 00 90 00 CB [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_ClearQueue done [07:31:27]KKMCreateOFDPacket [07:31:27]OFDProtocolAddRootSTLVToBuf [07:31:27]FM_MakeSignedData [07:31:27]FM_MakeSignedData [07:31:27]SAM_PROTO_SignData [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 01 02 [07:31:27]Write to MH i2c: E2 08 00 1A 3E 80 0D 01 02 00 00 00 00 D1 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 1A 3E 00 90 00 CC [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=255 [07:31:27]MH_SAM_APDU [07:31: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 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 2B 00 00 00 F4 03 04 00 D2 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 11 01 00 35 04 06 00 95 [07:31:27]Write to MH i2c: E2 02 01 1B 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 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 2B 00 00 00 F4 03 04 00 D2 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 11 01 00 35 04 06 00 95 00 00 62 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=10 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 02 02 05 FA 13 4E 5C 7C [07:31:27]Write to MH i2c: E2 0D 00 1C 3E 80 0D 02 02 05 00 FA 13 4E 5C 7C 00 00 11 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 03 02 [07:31:27]Write to MH i2c: E2 08 00 1D 3E 80 0D 03 02 00 00 00 00 D6 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0B 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0B 00 1D 3E 00 55 95 4F 28 95 77 69 F5 90 00 A2 [07:31:27]RAPDU: 55 95 4F 28 95 77 69 F5 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_SignData done [07:31:27]FM_MakeSignedData done [07:31:27]CreateOFDProtocolMessage [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 11 00 00 [07:31:27]Write to MH i2c: E2 08 00 1E 3E 80 11 00 00 00 00 00 00 D6 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 17 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 17 00 1E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [07:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:31:27]wFMCommunicate OK [07:31:27]CreateOFDProtocolMessage done [07:31:27]OFDSenderStorePacket 70095 [07:31:27]StoreOFDPacket docnum=70095 [07:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 92 07 01 AF EF 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 2B 00 00 00 F4 03 04 00 D2 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 11 01 00 35 04 06 00 95 FA 13 4E 5C 7C 55 95 4F 28 95 77 69 F5 [07:31:27]CheckFolder [07:31:27]dirname=/storage/ofd_packets [07:31:27]CheckFolder done [07:31:27]ProducePacketName [07:31:27]name=ofd_packets/00070095 [07:31:27]NVStorageSaveData ofd_packets/00070095 [07:31:27]File name is /storage/ofd_packets/00070095 [07:31:27]Write 301 bytes [07:31:27]NVStorageSaveData done [07:31:27]OFDSenderStorePacket done [07:31:27]KKMCreateOFDPacket done [07:31:27]NVStorageSaveData kkm_last_timestamp [07:31:27]File name is /storage/kkm_last_timestamp [07:31:27]Write 4 bytes [07:31:27]NVStorageSaveData done [07:31:27]ExternCall_PrintAddStr [07:31:27]wPrintStart [07:31:27]Write to MH i2c: 01 00 00 1F 3E 5D [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 07 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 07 00 1F 3E 00 00 00 00 00 FF 0F 72 [07:31:27]RasterBufferAndPrint [07:31:27]line Счет N : (1)2885861 [07:31:27]line ИНН: 02508201610067 [07:31:27]line Контрольно-Кассовый Чек [07:31:27]line ПРОДАЖА [07:31:27]line ТРК (МРК, ГНК) : 32 [07:31:27]line Товар: 2710124130 [07:31:27]line Аи-92-К-5 [07:31:27]line 7.480 * 66.90 [07:31:27]line = 500.41 [07:31:27]line НДС 12% НСП 1% [07:31:27]line > о реализуемом товаре [07:31:27]line ОКРУГЛЕНИЕ: -0.41 [07:31:27]line ИТОГО: 500.00 [07:31:27]line Внесено: 500.00 [07:31:27]line СДАЧА: 0.00 [07:31:27]line НСП 1% : 4.43 [07:31:27]line НДС 12% : 53.14 [07:31:27]line Наличными: 500.00 [07:31:27]line Безнал.: 0.00 [07:31:27]line Место: АЗС № 85 "Партнер Нефть" [07:31:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:31:27]line СНО: Общий режим [07:31:27]line Чек 43 22.10.2024 07:31 [07:31:27]line Смена: 195 ФФД: 1.0 [07:31:27]line ЗНМ: 0300000167 [07:31:27]line РНМ: 0000000000156251 [07:31:27]line Версия ККМ: v1.0 [07:31:27]line ФМ: 0000000000963346 [07:31:27]line ФД: 70095 [07:31:27]line ФПД: 164901298265212 [07:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70095&fm=164901298265212&tin=02508201610067®Number=0000000000156251&sum=50000 [07:31:27]OFD Sender: Processing packet 70095 [packets to send 18, broken 17] [07:31:27]ProducePacketName [07:31:27]name=ofd_packets/00070095 [07:31:27]OFD Sender: To server: pG, [07:31:27]CommunicateWithHost lk.salyk.kg:30040 [07:31:27]ConnectInit lk.salyk.kg [07:31:27]written 0, free lines is 4095 [07:31:27]Connected sock=9 [07:31: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 34 36 0F 01 00 00 18 92 07 01 AF EF 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 2B 00 00 00 F4 03 04 00 D2 54 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 11 01 00 35 04 06 00 95 FA 13 4E 5C 7C 55 95 4F 28 95 77 69 F5 [07:31: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 34 36 4F 00 00 00 56 13 47 00 1B 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 11 01 00 F4 03 04 00 73 FE 16 67 B6 04 01 00 00 AD CC A2 CB 18 76 9F 2D [07:31:28]CommunicateWithHost err = 0 [07:31:28]CheckOFDResponse [07:31:28]1017 (14) - 77093643461234 [07:31:28]1041 (16) - 0000000000963346 [07:31:28]1040 (4) - 70095 [07:31:28]1012 (4) - 22.10.2024 01:22 [07:31:28]1206 (1) - 0 [07:31:28]OFD Sender: Remove packet 70095 [07:31:28]ProducePacketName [07:31:28]name=ofd_packets/00070095 [07:31:28]NVStorageDeleteData [07:31:28]Write to MH i2c: 01 00 00 4A 3E 88 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 4A 3E 00 00 00 00 00 E4 0C 7F [07:31:28]RasterBufferAndPrint [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]written 0, free lines is 3309 [07:31:28]MH_Cut [07:31:28]Write to MH i2c: D1 01 00 51 3E 01 61 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 01 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 01 00 51 3E 00 60 [07:31:28]Write to MH i2c: 01 00 00 52 3E 90 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]OFD Sender: No OFD packet to send [07:31:29]*** Cut start [07:31:29]*** Partial cut [07:31:29]*** CUTSNS_PIN = 1 [07:31:29]*** CUTSNS_PIN = 0 [07:31:29]*** Brake cut motor [07:31:29]Read from MH i2c: 01 [07:31:29]MH_I2C_Read... [07:31:29]*** Stop cut motor [07:31:29]*** Cut end [07:31:29]Read from MH i2c: 01 07 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 07 00 52 3E 00 00 00 00 00 FF 0F A5 [07:31:29]process_action close_receipt done [07:31:29]requested_data is exist [07:31:29]produce_requested_data [07:31:29]requested_item fm.sn is exist - process it [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 11 00 00 [07:31:29]Write to MH i2c: E2 08 00 53 3E 80 11 00 00 00 00 00 00 0B [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 17 00 [07:31:29]MH_I2C_Read... [07:31:29]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 34 36 90 00 5D [07:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:31:29]wFMCommunicate OK [07:31:29]requested_item fd.num is exist - process it [07:31:29]SAM_PROTO_GetFieldsCounters [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 13 00 00 [07:31:29]Write to MH i2c: E2 08 00 54 3E 80 13 00 00 00 00 00 00 0E [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 62 00 [07:31:29]MH_I2C_Read... [07:31:29]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 11 01 00 0E 04 04 00 C3 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 4E [07:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 11 01 00 0E 04 04 00 C3 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 [07:31:29]wFMCommunicate OK [07:31:29]SAM_PROTO_GetFieldsCounters done [07:31:29]requested_item shift.num is exist - process it [07:31:29]requested_item shift.opened is exist - process it [07:31:29]req_shift_opened [07:31:29]FM_GetShiftState [07:31:29]SAM_PROTO_GetShiftState [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 13 01 00 [07:31:29]Write to MH i2c: E2 08 00 55 3E 80 13 01 00 00 00 00 00 10 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 0E 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 0E 00 55 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FE [07:31:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:31:29]wFMCommunicate OK [07:31:29]SAM_PROTO_GetShiftState done [07:31:29]FM_GetShiftState done [07:31:29]req_shift_opened done [07:31:29]requested_item shift.open_date is exist - process it [07:31:29]req_shift_open_date [07:31:29]req_shift_open_date done [07:31:29]produce_requested_data done [07:31:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70095,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:31:29]process_action_free close_receipt [07:31:29]json_value_free [07:31:29]json_value_free done [07:31:29]process_json_proto returns [07:31:29]Send response to host [07:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70095,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:31:29]free response buf [07:31:29]execute_script done [07:31:29]execute_script returns [07:31:29]free content buf [07:31:29]Sock 7.Close socket [07:31:29]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:20]accept exits with 10 [07:39:20]New connection [07:39:20]New thread 3067026788 created [07:39:20]Thread 3067170148 joined [07:39:20]Waiting for new connection... [07:39:20] Sock 10.Parse request [07:39:20]Sock 10.Check first char [07:39:20]Sock 10.First char is OK [07:39:20]request: POST /json_proto HTTP/1.0 [07:39:20]Method: POST [07:39:20]URL: /json_proto [07:39:20]Method is POST - this is cgi request [07:39:20]url: /json_proto [07:39:20]query_string will be loaded in cgi processing [07:39:20]execute_cgi json_proto POST (null) [07:39:20]execute_cgi path=json_proto method=POST [07:39:20]POST find Content-Length [07:39:20]Host: 172.17.50.3:8080 [07:39:20]Content-Length: 798 [07:39:20]Content-Type: application/json [07:39:20] [07:39:20]POST finish read [07:39:20]Found Content-Length = 798 [07:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885862", "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" : 0.00, "quantity" : 33.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\u000A4347200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:20]execute_script... [07:39:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885862", "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" : 0.00, "quantity" : 33.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\u000A4347200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:20]POST & json_proto [07:39:20]process_json_proto [07:39:20]json parsed OK: [07:39:20]protocol is kg_v1.0 [07:39:20]action value=close_receipt [07:39:20]process_action close_receipt [07:39:20]cmd_close_receipt [07:39:20]MH_GetDate [07:39:20]Write to MH i2c: F0 00 00 56 3E 83 [07:39:20]Write i2c OK [07:39:20]MH_I2C_Read... [07:39:20]Read from MH i2c: F0 [07:39:20]MH_I2C_Read... [07:39:20]Read from MH i2c: F0 09 00 [07:39:20]MH_I2C_Read... [07:39:20]Read from MH i2c: F0 09 00 56 3E 00 AC 56 17 67 6B 98 1E 66 93 [07:39:20]GetLastDocTimeStamp 1729582290 [07:39:20]current date 1729582764 [07:39:20]FM_GetShiftState [07:39:20]SAM_PROTO_GetShiftState [07:39:20]wFMCommunicate request_size=4 [07:39:20]MH_SAM_APDU [07:39:20]CAPDU: 80 13 01 00 [07:39:20]Write to MH i2c: E2 08 00 57 3E 80 13 01 00 00 00 00 00 12 [07:39:20]Write i2c OK [07:39:20]MH_I2C_Read... [07:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:20]Read from MH i2c: E2 [07:39:20]MH_I2C_Read... [07:39:20]Read from MH i2c: E2 0E 00 [07:39:20]MH_I2C_Read... [07:39:20]Read from MH i2c: E2 0E 00 57 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 00 [07:39:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:39:20]wFMCommunicate OK [07:39:20]SAM_PROTO_GetShiftState done [07:39:20]FM_GetShiftState done [07:39:20]opened in 1729555832 [07:39:20]opened+sec_in_day 1729642232 [07:39:20]quantity*price = 0 [07:39:20]sum+1 = 1 [07:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 44 22.10.2024 07:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4347200 ФМ: 0000000000963346 ФД: 70096 ФПД: 116221661589061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70096&fm=116221661589061&tin=02508201610067®Number=0000000000156251&sum=0 [07:39:21]StoreToDocumentArchive [07:39:21]shift 195 fd 70096 [07:39:21]save to /storage/0195/doc_00070096 [07:39:21]save last doc name /storage/0195/doc_00070096 to /storage/kkm_last_doc_name [07:39:21]save OK [07:39:21]Clear old archive folders... [07:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:39:21]tlvbuf is 011D7110 [07:39:21]SAM_PROTO_ClearQueue [07:39:21]wFMCommunicate request_size=4 [07:39:21]MH_SAM_APDU [07:39:21]CAPDU: 80 09 00 00 [07:39:21]Write to MH i2c: E2 08 00 64 3E 80 09 00 00 00 00 00 00 14 [07:39:21]Write i2c OK [07:39:21]MH_I2C_Read... [07:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:21]Read from MH i2c: E2 [07:39:21]MH_I2C_Read... [07:39:21]Read from MH i2c: E2 03 00 [07:39:21]MH_I2C_Read... [07:39:21]Read from MH i2c: E2 03 00 64 3E 00 90 00 16 [07:39:21]RAPDU: 90 00 [07:39:21]wFMCommunicate OK [07:39:21]SAM_PROTO_ClearQueue done [07:39:21]KKMCreateOFDPacket [07:39:21]OFDProtocolAddRootSTLVToBuf [07:39:21]FM_MakeSignedData [07:39:21]FM_MakeSignedData [07:39:21]SAM_PROTO_SignData [07:39:21]wFMCommunicate request_size=4 [07:39:21]MH_SAM_APDU [07:39:21]CAPDU: 80 0D 01 02 [07:39:21]Write to MH i2c: E2 08 00 65 3E 80 0D 01 02 00 00 00 00 1C [07:39:21]Write i2c OK [07:39:21]MH_I2C_Read... [07:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:21]Read from MH i2c: E2 [07:39:21]MH_I2C_Read... [07:39:21]Read from MH i2c: E2 03 00 [07:39:21]MH_I2C_Read... [07:39:21]Read from MH i2c: E2 03 00 65 3E 00 90 00 17 [07:39:21]RAPDU: 90 00 [07:39:21]wFMCommunicate OK [07:39:21]wFMCommunicate request_size=255 [07:39:21]MH_SAM_APDU [07:39: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 E8 80 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 00 00 00 F4 03 04 00 AC 56 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 11 01 00 35 04 06 00 69 B3 F6 DA [07:39:21]Write to MH i2c: E2 02 01 66 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 E8 80 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 00 00 00 F4 03 04 00 AC 56 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 11 01 00 35 04 06 00 69 B3 F6 DA 00 00 18 [07:39:21]Write i2c OK [07:39:21]MH_I2C_Read... [07:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:22]Read from MH i2c: E2 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 03 00 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 03 00 66 3E 00 90 00 18 [07:39:22]RAPDU: 90 00 [07:39:22]wFMCommunicate OK [07:39:22]wFMCommunicate request_size=7 [07:39:22]MH_SAM_APDU [07:39:22]CAPDU: 80 0D 02 02 02 AE 45 [07:39:22]Write to MH i2c: E2 0A 00 67 3E 80 0D 02 02 02 00 AE 45 00 00 16 [07:39:22]Write i2c OK [07:39:22]MH_I2C_Read... [07:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:22]Read from MH i2c: E2 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 03 00 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 03 00 67 3E 00 90 00 19 [07:39:22]RAPDU: 90 00 [07:39:22]wFMCommunicate OK [07:39:22]wFMCommunicate request_size=4 [07:39:22]MH_SAM_APDU [07:39:22]CAPDU: 80 0D 03 02 [07:39:22]Write to MH i2c: E2 08 00 68 3E 80 0D 03 02 00 00 00 00 21 [07:39:22]Write i2c OK [07:39:22]MH_I2C_Read... [07:39:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:22]Read from MH i2c: E2 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 0B 00 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 0B 00 68 3E 00 F0 9F A7 E7 FE C7 17 7F 90 00 9A [07:39:22]RAPDU: F0 9F A7 E7 FE C7 17 7F 90 00 [07:39:22]wFMCommunicate OK [07:39:22]SAM_PROTO_SignData done [07:39:22]FM_MakeSignedData done [07:39:22]CreateOFDProtocolMessage [07:39:22]wFMCommunicate request_size=4 [07:39:22]MH_SAM_APDU [07:39:22]CAPDU: 80 11 00 00 [07:39:22]Write to MH i2c: E2 08 00 69 3E 80 11 00 00 00 00 00 00 21 [07:39:22]Write i2c OK [07:39:22]MH_I2C_Read... [07:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:22]Read from MH i2c: E2 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 17 00 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: E2 17 00 69 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [07:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:39:22]wFMCommunicate OK [07:39:22]CreateOFDProtocolMessage done [07:39:22]OFDSenderStorePacket 70096 [07:39:22]StoreOFDPacket docnum=70096 [07:39:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 26 41 04 01 75 C3 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 E8 80 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 00 00 00 F4 03 04 00 AC 56 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 11 01 00 35 04 06 00 69 B3 F6 DA AE 45 F0 9F A7 E7 FE C7 17 7F [07:39:22]CheckFolder [07:39:22]dirname=/storage/ofd_packets [07:39:22]CheckFolder done [07:39:22]ProducePacketName [07:39:22]name=ofd_packets/00070096 [07:39:22]NVStorageSaveData ofd_packets/00070096 [07:39:22]File name is /storage/ofd_packets/00070096 [07:39:22]Write 298 bytes [07:39:22]NVStorageSaveData done [07:39:22]OFDSenderStorePacket done [07:39:22]KKMCreateOFDPacket done [07:39:22]NVStorageSaveData kkm_last_timestamp [07:39:22]File name is /storage/kkm_last_timestamp [07:39:22]Write 4 bytes [07:39:22]NVStorageSaveData done [07:39:22]ExternCall_PrintAddStr [07:39:22]wPrintStart [07:39:22]Write to MH i2c: 01 00 00 6A 3E A8 [07:39:22]Write i2c OK [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: 01 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: 01 07 00 [07:39:22]MH_I2C_Read... [07:39:22]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 FF 0F BD [07:39:22]RasterBufferAndPrint [07:39:22]line Счет N : (1)2885862 [07:39:22]line ИНН: 02508201610067 [07:39:22]line Контрольно-Кассовый Чек [07:39:22]line ПРОДАЖА [07:39:22]line ТРК (МРК, ГНК) : 51 [07:39:22]line Товар: 2710194210 [07:39:22]line ДТ-К-5 [07:39:22]line 33.000 * 0.00 [07:39:22]line = 0.00 [07:39:22]line НДС 12% НСП 1% [07:39:22]line > о реализуемом товаре [07:39:22]line ИТОГО: 0.00 [07:39:22]line НСП 1% : 0.00 [07:39:22]line НДС 12% : 0.00 [07:39:22]line Наличными: 0.00 [07:39:22]line Безнал.: 0.00 [07:39:22]line Место: АЗС № 85 "Партнер Нефть" [07:39:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:39:22]line СНО: Общий режим [07:39:22]line Чек 44 22.10.2024 07:39 [07:39:22]line Смена: 195 ФФД: 1.0 [07:39:22]line ЗНМ: 0300000167 [07:39:22]line РНМ: 0000000000156251 [07:39:22]line Версия ККМ: v1.0 [07:39:22]line Талоны: Топливные Талоны [07:39:22]line 4347200 [07:39:22]line ФМ: 0000000000963346 [07:39:22]line ФД: 70096 [07:39:22]line ФПД: 116221661589061 [07:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70096&fm=116221661589061&tin=02508201610067®Number=0000000000156251&sum=0 [07:39:22]OFD Sender: Processing packet 70096 [packets to send 18, broken 17] [07:39:22]ProducePacketName [07:39:22]name=ofd_packets/00070096 [07:39:22]OFD Sender: To server: pG, [07:39:22]CommunicateWithHost lk.salyk.kg:30040 [07:39:22]ConnectInit lk.salyk.kg [07:39:22]written 0, free lines is 4095 [07:39:22]Connected sock=9 [07: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 34 36 0C 01 00 00 26 41 04 01 75 C3 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 E8 80 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 00 00 00 F4 03 04 00 AC 56 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 11 01 00 35 04 06 00 69 B3 F6 DA AE 45 F0 9F A7 E7 FE C7 17 7F [07: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 34 36 4F 00 00 00 04 36 47 00 2D 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 34 36 10 04 04 00 D0 11 01 00 F4 03 04 00 4E 00 17 67 B6 04 01 00 00 DC C3 93 4B 1D F7 6F 6C [07:39:22]CommunicateWithHost err = 0 [07:39:22]CheckOFDResponse [07:39:22]1017 (14) - 77093643461234 [07:39:22]1041 (16) - 0000000000963346 [07:39:22]1040 (4) - 70096 [07:39:22]1012 (4) - 22.10.2024 01:30 [07:39:22]1206 (1) - 0 [07:39:22]OFD Sender: Remove packet 70096 [07:39:22]ProducePacketName [07:39:22]name=ofd_packets/00070096 [07:39:22]NVStorageDeleteData [07:39:23]Write to MH i2c: 01 00 00 94 3E D2 [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 94 3E 00 00 00 00 00 E6 0C CB [07:39:23]RasterBufferAndPrint [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]written 0, free lines is 3309 [07:39:23]MH_Cut [07:39:23]Write to MH i2c: D1 01 00 9B 3E 01 AB [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 01 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 01 00 9B 3E 00 AA [07:39:23]Write to MH i2c: 01 00 00 9C 3E DA [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]OFD Sender: No OFD packet to send [07:39:23]*** Cut start [07:39:23]*** Partial cut [07:39:23]*** CUTSNS_PIN = 1 [07:39:23]*** CUTSNS_PIN = 0 [07:39:24]*** Brake cut motor [07:39:24]Read from MH i2c: 01 [07:39:24]MH_I2C_Read... [07:39:24]*** Stop cut motor [07:39:24]*** Cut end [07:39:24]Read from MH i2c: 01 07 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: 01 07 00 9C 3E 00 00 00 00 00 FF 0F EF [07:39:24]process_action close_receipt done [07:39:24]requested_data is exist [07:39:24]produce_requested_data [07:39:24]requested_item fm.sn is exist - process it [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 11 00 00 [07:39:24]Write to MH i2c: E2 08 00 9D 3E 80 11 00 00 00 00 00 00 55 [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 17 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 17 00 9D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [07:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:39:24]wFMCommunicate OK [07:39:24]requested_item fd.num is exist - process it [07:39:24]SAM_PROTO_GetFieldsCounters [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 13 00 00 [07:39:24]Write to MH i2c: E2 08 00 9E 3E 80 13 00 00 00 00 00 00 58 [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 62 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 62 00 9E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 11 01 00 0E 04 04 00 C3 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 9C [07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 11 01 00 0E 04 04 00 C3 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 [07:39:24]wFMCommunicate OK [07:39:24]SAM_PROTO_GetFieldsCounters done [07:39:24]requested_item shift.num is exist - process it [07:39:24]requested_item shift.opened is exist - process it [07:39:24]req_shift_opened [07:39:24]FM_GetShiftState [07:39:24]SAM_PROTO_GetShiftState [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 13 01 00 [07:39:24]Write to MH i2c: E2 08 00 9F 3E 80 13 01 00 00 00 00 00 5A [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 0E 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 0E 00 9F 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [07:39:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:39:24]wFMCommunicate OK [07:39:24]SAM_PROTO_GetShiftState done [07:39:24]FM_GetShiftState done [07:39:24]req_shift_opened done [07:39:24]requested_item shift.open_date is exist - process it [07:39:24]req_shift_open_date [07:39:24]req_shift_open_date done [07:39:24]produce_requested_data done [07:39:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70096,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:39:24]process_action_free close_receipt [07:39:24]json_value_free [07:39:24]json_value_free done [07:39:24]process_json_proto returns [07:39:24]Send response to host [07:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70096,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:39:24]free response buf [07:39:24]execute_script done [07:39:24]execute_script returns [07:39:24]free content buf [07:39:24]Sock 10.Close socket [07:39:24]Sock 10.Thread stoped [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:46:04]ConnectInit Can't connect to host [07:46:07]ConnectInit Can't take IP for lk.salyk.kg [07:46:07]CommunicateWithHost connect error [07:46:07]CommunicateWithHost err = -1 [07:46:07]OFD Sender: Server communicate error [07:46:12]OFD Sender: Processing packet 70097 [packets to send 18, broken 17] [07:46:12]ProducePacketName [07:46:12]name=ofd_packets/00070097 [07:46:12]OFD Sender: To server: pG, [07:46:12]CommunicateWithHost lk.salyk.kg:30040 [07:46:12]ConnectInit lk.salyk.kg [07:46:12]Connected sock=7 [07:46: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 34 36 0F 01 00 00 31 87 07 01 5D AB 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 58 84 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 75 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 75 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 5E 00 00 00 00 07 04 06 00 28 75 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 00 00 00 F4 03 04 00 BA 57 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 11 01 00 35 04 06 00 A8 A7 AE 2F B7 E3 61 EF 05 6E F7 A5 9B 97 [07:46: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 34 36 4F 00 00 00 AA A2 47 00 F6 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 34 36 10 04 04 00 D1 11 01 00 F4 03 04 00 E7 01 17 67 B6 04 01 00 00 FC 03 EA 79 97 EB 5C AA [07:46:12]CommunicateWithHost err = 0 [07:46:12]CheckOFDResponse [07:46:12]1017 (14) - 77093643461234 [07:46:12]1041 (16) - 0000000000963346 [07:46:12]1040 (4) - 70097 [07:46:12]1012 (4) - 22.10.2024 01:37 [07:46:12]1206 (1) - 0 [07:46:12]OFD Sender: Remove packet 70097 [07:46:12]ProducePacketName [07:46:12]name=ofd_packets/00070097 [07:46:12]NVStorageDeleteData [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:19]accept exits with 9 [07:46:19]New connection [07:46:19]New thread 3067026788 created [07:46:19]Thread 3067170148 joined [07:46:19]Waiting for new connection... [07:46:19] Sock 9.Parse request [07:46:19]Sock 9.Check first char [07:46:19]Sock 9.First char is OK [07:46:19]request: POST /json_proto HTTP/1.0 [07:46:19]Method: POST [07:46:19]URL: /json_proto [07:46:19]Method is POST - this is cgi request [07:46:19]url: /json_proto [07:46:19]query_string will be loaded in cgi processing [07:46:19]execute_cgi json_proto POST (null) [07:46:19]execute_cgi path=json_proto method=POST [07:46:19]POST find Content-Length [07:46:19]Host: 172.17.50.3:8080 [07:46:19]Content-Length: 686 [07:46:19]Content-Type: application/json [07:46:19] [07:46:19]POST finish read [07:46:19]Found Content-Length = 686 [07:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [07:46:19]execute_script... [07:46: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)2885864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [07:46:19]POST & json_proto [07:46:19]process_json_proto [07:46:19]json parsed OK: [07:46:19]protocol is kg_v1.0 [07:46:19]action value=close_receipt [07:46:19]process_action close_receipt [07:46:19]cmd_close_receipt [07:46:19]MH_GetDate [07:46:19]Write to MH i2c: F0 00 00 EB 3E 18 [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 09 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 09 00 EB 3E 00 4F 58 17 67 6B 98 1E 66 CD [07:46:19]GetLastDocTimeStamp 1729583034 [07:46:19]current date 1729583183 [07:46:19]FM_GetShiftState [07:46:19]SAM_PROTO_GetShiftState [07:46:19]wFMCommunicate request_size=4 [07:46:19]MH_SAM_APDU [07:46:19]CAPDU: 80 13 01 00 [07:46:19]Write to MH i2c: E2 08 00 EC 3E 80 13 01 00 00 00 00 00 A7 [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0E 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0E 00 EC 3E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [07:46:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:46:19]wFMCommunicate OK [07:46:19]SAM_PROTO_GetShiftState done [07:46:19]FM_GetShiftState done [07:46:19]opened in 1729555832 [07:46:19]opened+sec_in_day 1729642232 [07:46:19]quantity*price = 100011 [07:46:19]sum+1 = 100013 [07:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 46 22.10.2024 07:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70098 ФПД: 106171023036202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074623&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70098&fm=106171023036202&tin=02508201610067®Number=0000000000156251&sum=100000 [07:46:20]StoreToDocumentArchive [07:46:20]shift 195 fd 70098 [07:46:20]save to /storage/0195/doc_00070098 [07:46:20]save last doc name /storage/0195/doc_00070098 to /storage/kkm_last_doc_name [07:46:20]save OK [07:46:20]Clear old archive folders... [07:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:46:20]tlvbuf is 0111F460 [07:46:20]SAM_PROTO_ClearQueue [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 09 00 00 [07:46:20]Write to MH i2c: E2 08 00 F9 3E 80 09 00 00 00 00 00 00 A9 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 F9 3E 00 90 00 AB [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_ClearQueue done [07:46:20]KKMCreateOFDPacket [07:46:20]OFDProtocolAddRootSTLVToBuf [07:46:20]FM_MakeSignedData [07:46:20]FM_MakeSignedData [07:46:20]SAM_PROTO_SignData [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 01 02 [07:46:20]Write to MH i2c: E2 08 00 FA 3E 80 0D 01 02 00 00 00 00 B1 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 FA 3E 00 90 00 AC [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]wFMCommunicate request_size=255 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 2E 00 00 00 F4 03 04 00 4F 58 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 11 01 00 35 04 06 00 60 8F [07:46:20]Write to MH i2c: E2 02 01 FB 3E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 2E 00 00 00 F4 03 04 00 4F 58 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 11 01 00 35 04 06 00 60 8F 00 00 FE [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 FB 3E 00 90 00 AD [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]wFMCommunicate request_size=9 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 02 02 04 DE 1D 0F 2A [07:46:20]Write to MH i2c: E2 0C 00 FC 3E 80 0D 02 02 04 00 DE 1D 0F 2A 00 00 F0 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 FC 3E 00 90 00 AE [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 03 02 [07:46:20]Write to MH i2c: E2 08 00 FD 3E 80 0D 03 02 00 00 00 00 B6 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0B 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0B 00 FD 3E 00 C2 30 93 10 F1 61 03 12 90 00 B3 [07:46:20]RAPDU: C2 30 93 10 F1 61 03 12 90 00 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_SignData done [07:46:20]FM_MakeSignedData done [07:46:20]CreateOFDProtocolMessage [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 11 00 00 [07:46:20]Write to MH i2c: E2 08 00 FE 3E 80 11 00 00 00 00 00 00 B6 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 FE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [07:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:46:20]wFMCommunicate OK [07:46:20]CreateOFDProtocolMessage done [07:46:20]OFDSenderStorePacket 70098 [07:46:20]StoreOFDPacket docnum=70098 [07:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 12 12 06 01 47 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 2E 00 00 00 F4 03 04 00 4F 58 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 11 01 00 35 04 06 00 60 8F DE 1D 0F 2A C2 30 93 10 F1 61 03 12 [07:46:20]CheckFolder [07:46:20]dirname=/storage/ofd_packets [07:46:20]CheckFolder done [07:46:20]ProducePacketName [07:46:20]name=ofd_packets/00070098 [07:46:20]NVStorageSaveData ofd_packets/00070098 [07:46:20]File name is /storage/ofd_packets/00070098 [07:46:20]Write 300 bytes [07:46:20]NVStorageSaveData done [07:46:20]OFDSenderStorePacket done [07:46:20]KKMCreateOFDPacket done [07:46:20]NVStorageSaveData kkm_last_timestamp [07:46:20]File name is /storage/kkm_last_timestamp [07:46:20]Write 4 bytes [07:46:20]NVStorageSaveData done [07:46:20]ExternCall_PrintAddStr [07:46:20]wPrintStart [07:46:20]Write to MH i2c: 01 00 00 FF 3E 3D [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 07 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 07 00 FF 3E 00 00 00 00 00 FF 0F 52 [07:46:20]RasterBufferAndPrint [07:46:20]line Счет N : (1)2885864 [07:46:20]line ИНН: 02508201610067 [07:46:20]line Контрольно-Кассовый Чек [07:46:20]line ПРОДАЖА [07:46:20]line ТРК (МРК, ГНК) : 71 [07:46:20]line Товар: 2711129700 [07:46:20]line ГАЗ-К-3 [07:46:20]line 25.710 * 38.90 [07:46:20]line = 1000.12 [07:46:20]line НДС 12% НСП 1% [07:46:20]line > о реализуемом товаре [07:46:20]line ОКРУГЛЕНИЕ: -0.12 [07:46:20]line ИТОГО: 1000.00 [07:46:20]line Внесено: 1000.00 [07:46:20]line СДАЧА: 0.00 [07:46:20]line НСП 1% : 8.85 [07:46:20]line НДС 12% : 106.21 [07:46:20]line Наличными: 1000.00 [07:46:20]line Безнал.: 0.00 [07:46:20]line Место: АЗС № 85 "Партнер Нефть" [07:46:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:46:20]line СНО: Общий режим [07:46:20]line Чек 46 22.10.2024 07:46 [07:46:20]line Смена: 195 ФФД: 1.0 [07:46:20]line ЗНМ: 0300000167 [07:46:20]line РНМ: 0000000000156251 [07:46:20]line Версия ККМ: v1.0 [07:46:20]line ФМ: 0000000000963346 [07:46:21]line ФД: 70098 [07:46:21]line ФПД: 106171023036202 [07:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074623&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70098&fm=106171023036202&tin=02508201610067®Number=0000000000156251&sum=100000 [07:46:21]OFD Sender: Processing packet 70098 [packets to send 18, broken 17] [07:46:21]ProducePacketName [07:46:21]name=ofd_packets/00070098 [07:46:21]OFD Sender: To server: pG, [07:46:21]CommunicateWithHost lk.salyk.kg:30040 [07:46:21]ConnectInit lk.salyk.kg [07:46:21]written 0, free lines is 4095 [07:46:21]Connected sock=10 [07:46: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 34 36 0E 01 00 00 12 12 06 01 47 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 2E 00 00 00 F4 03 04 00 4F 58 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 11 01 00 35 04 06 00 60 8F DE 1D 0F 2A C2 30 93 10 F1 61 03 12 [07:46: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 34 36 4F 00 00 00 AE 82 47 00 54 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 34 36 10 04 04 00 D2 11 01 00 F4 03 04 00 F0 01 17 67 B6 04 01 00 00 8B 76 DA 51 FC EE 4C F7 [07:46:21]CommunicateWithHost err = 0 [07:46:21]CheckOFDResponse [07:46:21]1017 (14) - 77093643461234 [07:46:21]1041 (16) - 0000000000963346 [07:46:21]1040 (4) - 70098 [07:46:21]1012 (4) - 22.10.2024 01:37 [07:46:21]1206 (1) - 0 [07:46:21]OFD Sender: Remove packet 70098 [07:46:21]ProducePacketName [07:46:21]name=ofd_packets/00070098 [07:46:21]NVStorageDeleteData [07:46:21]Write to MH i2c: 01 00 00 2A 3F 69 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 07 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 07 00 2A 3F 00 00 00 00 00 E1 0C 5D [07:46:21]RasterBufferAndPrint [07:46:21]line [07:46:21]line [07:46:21]line [07:46:21]line [07:46:21]line [07:46:21]written 0, free lines is 3303 [07:46:21]MH_Cut [07:46:21]Write to MH i2c: D1 01 00 31 3F 01 42 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: D1 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: D1 01 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: D1 01 00 31 3F 00 41 [07:46:21]Write to MH i2c: 01 00 00 32 3F 71 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:22]OFD Sender: No OFD packet to send [07:46:22]*** Cut start [07:46:22]*** Partial cut [07:46:22]*** CUTSNS_PIN = 1 [07:46:22]*** CUTSNS_PIN = 0 [07:46:22]*** Brake cut motor [07:46:23]Read from MH i2c: 01 [07:46:23]MH_I2C_Read... [07:46:23]*** Stop cut motor [07:46:23]*** Cut end [07:46:23]Read from MH i2c: 01 07 00 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: 01 07 00 32 3F 00 00 00 00 00 FF 0F 86 [07:46:23]process_action close_receipt done [07:46:23]requested_data is exist [07:46:23]produce_requested_data [07:46:23]requested_item fm.sn is exist - process it [07:46:23]wFMCommunicate request_size=4 [07:46:23]MH_SAM_APDU [07:46:23]CAPDU: 80 11 00 00 [07:46:23]Write to MH i2c: E2 08 00 33 3F 80 11 00 00 00 00 00 00 EC [07:46:23]Write i2c OK [07:46:23]MH_I2C_Read... [07:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:23]Read from MH i2c: E2 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 17 00 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 17 00 33 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [07:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:46:23]wFMCommunicate OK [07:46:23]requested_item fd.num is exist - process it [07:46:23]SAM_PROTO_GetFieldsCounters [07:46:23]wFMCommunicate request_size=4 [07:46:23]MH_SAM_APDU [07:46:23]CAPDU: 80 13 00 00 [07:46:23]Write to MH i2c: E2 08 00 34 3F 80 13 00 00 00 00 00 00 EF [07:46:23]Write i2c OK [07:46:23]MH_I2C_Read... [07:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:23]Read from MH i2c: E2 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 62 00 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 62 00 34 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 11 01 00 0E 04 04 00 C3 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 3B [07:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 11 01 00 0E 04 04 00 C3 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:46:23]wFMCommunicate OK [07:46:23]SAM_PROTO_GetFieldsCounters done [07:46:23]requested_item shift.num is exist - process it [07:46:23]requested_item shift.opened is exist - process it [07:46:23]req_shift_opened [07:46:23]FM_GetShiftState [07:46:23]SAM_PROTO_GetShiftState [07:46:23]wFMCommunicate request_size=4 [07:46:23]MH_SAM_APDU [07:46:23]CAPDU: 80 13 01 00 [07:46:23]Write to MH i2c: E2 08 00 35 3F 80 13 01 00 00 00 00 00 F1 [07:46:23]Write i2c OK [07:46:23]MH_I2C_Read... [07:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:23]Read from MH i2c: E2 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 0E 00 [07:46:23]MH_I2C_Read... [07:46:23]Read from MH i2c: E2 0E 00 35 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [07:46:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:46:23]wFMCommunicate OK [07:46:23]SAM_PROTO_GetShiftState done [07:46:23]FM_GetShiftState done [07:46:23]req_shift_opened done [07:46:23]requested_item shift.open_date is exist - process it [07:46:23]req_shift_open_date [07:46:23]req_shift_open_date done [07:46:23]produce_requested_data done [07:46:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70098,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:46:23]process_action_free close_receipt [07:46:23]json_value_free [07:46:23]json_value_free done [07:46:23]process_json_proto returns [07:46:23]Send response to host [07:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70098,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:46:23]free response buf [07:46:23]execute_script done [07:46:23]execute_script returns [07:46:23]free content buf [07:46:23]Sock 9.Close socket [07:46:23]Sock 9.Thread stoped [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:07]ConnectInit Can't connect to host [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:12]accept exits with 7 [07:54:12]New connection [07:54:12]New thread 3067170148 created [07:54:12]Thread 3067026788 joined [07:54:12]Waiting for new connection... [07:54:12] Sock 7.Parse request [07:54:12]Sock 7.Check first char [07:54:12]Sock 7.First char is OK [07:54:12]request: POST /json_proto HTTP/1.0 [07:54:12]Method: POST [07:54:12]URL: /json_proto [07:54:12]Method is POST - this is cgi request [07:54:12]url: /json_proto [07:54:12]query_string will be loaded in cgi processing [07:54:12]execute_cgi json_proto POST (null) [07:54:12]execute_cgi path=json_proto method=POST [07:54:12]POST find Content-Length [07:54:12]Host: 172.17.50.3:8080 [07:54:12]Content-Length: 797 [07:54:12]Content-Type: application/json [07:54:12] [07:54:12]POST finish read [07:54:12]Found Content-Length = 797 [07:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 7.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\u000A4347200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:12]execute_script... [07:54: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 : (1)2885865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 7.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\u000A4347200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:12]POST & json_proto [07:54:12]process_json_proto [07:54:12]json parsed OK: [07:54:12]protocol is kg_v1.0 [07:54:12]action value=close_receipt [07:54:12]process_action close_receipt [07:54:12]cmd_close_receipt [07:54:12]MH_GetDate [07:54:12]Write to MH i2c: F0 00 00 36 3F 64 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 09 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 09 00 36 3F 00 29 5A 17 67 6B 98 1E 66 F5 [07:54:12]GetLastDocTimeStamp 1729583183 [07:54:12]current date 1729583657 [07:54:12]FM_GetShiftState [07:54:12]SAM_PROTO_GetShiftState [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 01 00 [07:54:12]Write to MH i2c: E2 08 00 37 3F 80 13 01 00 00 00 00 00 F3 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 37 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E1 [07:54:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetShiftState done [07:54:12]FM_GetShiftState done [07:54:12]opened in 1729555832 [07:54:12]opened+sec_in_day 1729642232 [07:54:12]quantity*price = 0 [07:54:12]sum+1 = 1 [07:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 47 22.10.2024 07:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4347200 ФМ: 0000000000963346 ФД: 70099 ФПД: 29297444613962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70099&fm=29297444613962&tin=02508201610067®Number=0000000000156251&sum=0 [07:54:13]StoreToDocumentArchive [07:54:13]shift 195 fd 70099 [07:54:13]save to /storage/0195/doc_00070099 [07:54:13]save last doc name /storage/0195/doc_00070099 to /storage/kkm_last_doc_name [07:54:13]save OK [07:54:13]Clear old archive folders... [07:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:13]tlvbuf is 0123CB70 [07:54:13]SAM_PROTO_ClearQueue [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 09 00 00 [07:54:13]Write to MH i2c: E2 08 00 44 3F 80 09 00 00 00 00 00 00 F5 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 44 3F 00 90 00 F7 [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]SAM_PROTO_ClearQueue done [07:54:14]KKMCreateOFDPacket [07:54:14]OFDProtocolAddRootSTLVToBuf [07:54:14]FM_MakeSignedData [07:54:14]FM_MakeSignedData [07:54:14]SAM_PROTO_SignData [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 0D 01 02 [07:54:14]Write to MH i2c: E2 08 00 45 3F 80 0D 01 02 00 00 00 00 FD [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 45 3F 00 90 00 F8 [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]wFMCommunicate request_size=255 [07:54:14]MH_SAM_APDU [07:54:14]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 58 1B 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 2F 00 00 00 F4 03 04 00 29 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 11 01 00 35 04 06 00 1A A5 57 C7 [07:54:14]Write to MH i2c: E2 02 01 46 3F 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 58 1B 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 2F 00 00 00 F4 03 04 00 29 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 11 01 00 35 04 06 00 1A A5 57 C7 00 00 7C [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 46 3F 00 90 00 F9 [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]wFMCommunicate request_size=7 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 0D 02 02 02 6F 4A [07:54:14]Write to MH i2c: E2 0A 00 47 3F 80 0D 02 02 02 00 6F 4A 00 00 BD [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 47 3F 00 90 00 FA [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 0D 03 02 [07:54:14]Write to MH i2c: E2 08 00 48 3F 80 0D 03 02 00 00 00 00 02 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0B 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0B 00 48 3F 00 4A A5 17 DE E5 90 7A D9 90 00 AF [07:54:14]RAPDU: 4A A5 17 DE E5 90 7A D9 90 00 [07:54:14]wFMCommunicate OK [07:54:14]SAM_PROTO_SignData done [07:54:14]FM_MakeSignedData done [07:54:14]CreateOFDProtocolMessage [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 11 00 00 [07:54:14]Write to MH i2c: E2 08 00 49 3F 80 11 00 00 00 00 00 00 02 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 17 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 17 00 49 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [07:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:54:14]wFMCommunicate OK [07:54:14]CreateOFDProtocolMessage done [07:54:14]OFDSenderStorePacket 70099 [07:54:14]StoreOFDPacket docnum=70099 [07:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EE DC 04 01 EE 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 58 1B 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 2F 00 00 00 F4 03 04 00 29 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 11 01 00 35 04 06 00 1A A5 57 C7 6F 4A 4A A5 17 DE E5 90 7A D9 [07:54:14]CheckFolder [07:54:14]dirname=/storage/ofd_packets [07:54:14]CheckFolder done [07:54:14]ProducePacketName [07:54:14]name=ofd_packets/00070099 [07:54:14]NVStorageSaveData ofd_packets/00070099 [07:54:14]File name is /storage/ofd_packets/00070099 [07:54:14]Write 298 bytes [07:54:14]NVStorageSaveData done [07:54:14]OFDSenderStorePacket done [07:54:14]KKMCreateOFDPacket done [07:54:14]NVStorageSaveData kkm_last_timestamp [07:54:14]File name is /storage/kkm_last_timestamp [07:54:14]Write 4 bytes [07:54:14]NVStorageSaveData done [07:54:14]ExternCall_PrintAddStr [07:54:14]wPrintStart [07:54:14]Write to MH i2c: 01 00 00 4A 3F 89 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 4A 3F 00 00 00 00 00 FF 0F 9E [07:54:14]RasterBufferAndPrint [07:54:14]line Счет N : (1)2885865 [07:54:14]line ИНН: 02508201610067 [07:54:14]line Контрольно-Кассовый Чек [07:54:14]line ПРОДАЖА [07:54:14]line ТРК (МРК, ГНК) : 61 [07:54:14]line Товар: 2710194210 [07:54:14]line ДТ-К-5 [07:54:14]line 7.000 * 0.00 [07:54:14]line = 0.00 [07:54:14]line НДС 12% НСП 1% [07:54:14]line > о реализуемом товаре [07:54:14]line ИТОГО: 0.00 [07:54:14]line НСП 1% : 0.00 [07:54:14]line НДС 12% : 0.00 [07:54:14]line Наличными: 0.00 [07:54:14]line Безнал.: 0.00 [07:54:14]line Место: АЗС № 85 "Партнер Нефть" [07:54:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:54:14]line СНО: Общий режим [07:54:14]line Чек 47 22.10.2024 07:54 [07:54:14]line Смена: 195 ФФД: 1.0 [07:54:14]line ЗНМ: 0300000167 [07:54:14]line РНМ: 0000000000156251 [07:54:14]line Версия ККМ: v1.0 [07:54:14]line Талоны: Топливные Талоны [07:54:14]line 4347200 [07:54:14]line ФМ: 0000000000963346 [07:54:14]line ФД: 70099 [07:54:14]line ФПД: 29297444613962 [07:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70099&fm=29297444613962&tin=02508201610067®Number=0000000000156251&sum=0 [07:54:14]OFD Sender: Processing packet 70099 [packets to send 18, broken 17] [07:54:14]ProducePacketName [07:54:14]name=ofd_packets/00070099 [07:54:14]OFD Sender: To server: pG, [07:54:14]CommunicateWithHost lk.salyk.kg:30040 [07:54:14]ConnectInit lk.salyk.kg [07:54:14]written 0, free lines is 4095 [07:54:14]Connected sock=10 [07:54: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 34 36 0C 01 00 00 EE DC 04 01 EE 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 58 1B 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 2F 00 00 00 F4 03 04 00 29 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 11 01 00 35 04 06 00 1A A5 57 C7 6F 4A 4A A5 17 DE E5 90 7A D9 [07:54: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 34 36 4F 00 00 00 96 D9 47 00 65 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 34 36 10 04 04 00 D3 11 01 00 F4 03 04 00 CA 03 17 67 B6 04 01 00 00 C7 7C A6 29 91 D7 AC 6A [07:54:15]CommunicateWithHost err = 0 [07:54:15]CheckOFDResponse [07:54:15]1017 (14) - 77093643461234 [07:54:15]1041 (16) - 0000000000963346 [07:54:15]1040 (4) - 70099 [07:54:15]1012 (4) - 22.10.2024 01:45 [07:54:15]1206 (1) - 0 [07:54:15]OFD Sender: Remove packet 70099 [07:54:15]ProducePacketName [07:54:15]name=ofd_packets/00070099 [07:54:15]NVStorageDeleteData [07:54:15]Write to MH i2c: 01 00 00 74 3F B3 [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: 01 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: 01 07 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: 01 07 00 74 3F 00 00 00 00 00 E6 0C AC [07:54:15]RasterBufferAndPrint [07:54:15]line [07:54:15]line [07:54:15]line [07:54:15]line [07:54:15]line [07:54:15]written 0, free lines is 3312 [07:54:15]MH_Cut [07:54:15]Write to MH i2c: D1 01 00 7B 3F 01 8C [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: D1 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: D1 01 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: D1 01 00 7B 3F 00 8B [07:54:15]Write to MH i2c: 01 00 00 7C 3F BB [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]OFD Sender: No OFD packet to send [07:54:15]*** Cut start [07:54:15]*** Partial cut [07:54:15]*** CUTSNS_PIN = 1 [07:54:15]*** CUTSNS_PIN = 0 [07:54:16]*** Brake cut motor [07:54:16]Read from MH i2c: 01 [07:54:16]MH_I2C_Read... [07:54:16]*** Stop cut motor [07:54:16]*** Cut end [07:54:16]Read from MH i2c: 01 07 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 07 00 7C 3F 00 00 00 00 00 FF 0F D0 [07:54:16]process_action close_receipt done [07:54:16]requested_data is exist [07:54:16]produce_requested_data [07:54:16]requested_item fm.sn is exist - process it [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 11 00 00 [07:54:16]Write to MH i2c: E2 08 00 7D 3F 80 11 00 00 00 00 00 00 36 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 17 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 17 00 7D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [07:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:54:16]wFMCommunicate OK [07:54:16]requested_item fd.num is exist - process it [07:54:16]SAM_PROTO_GetFieldsCounters [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 13 00 00 [07:54:16]Write to MH i2c: E2 08 00 7E 3F 80 13 00 00 00 00 00 00 39 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 62 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 62 00 7E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 11 01 00 0E 04 04 00 C3 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 89 [07:54: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 11 01 00 0E 04 04 00 C3 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 [07:54:16]wFMCommunicate OK [07:54:16]SAM_PROTO_GetFieldsCounters done [07:54:16]requested_item shift.num is exist - process it [07:54:16]requested_item shift.opened is exist - process it [07:54:16]req_shift_opened [07:54:16]FM_GetShiftState [07:54:16]SAM_PROTO_GetShiftState [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 13 01 00 [07:54:16]Write to MH i2c: E2 08 00 7F 3F 80 13 01 00 00 00 00 00 3B [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 0E 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 0E 00 7F 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [07:54:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:54:16]wFMCommunicate OK [07:54:16]SAM_PROTO_GetShiftState done [07:54:16]FM_GetShiftState done [07:54:16]req_shift_opened done [07:54:16]requested_item shift.open_date is exist - process it [07:54:16]req_shift_open_date [07:54:16]req_shift_open_date done [07:54:16]produce_requested_data done [07:54:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70099,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:54:16]process_action_free close_receipt [07:54:16]json_value_free [07:54:16]json_value_free done [07:54:16]process_json_proto returns [07:54:16]Send response to host [07:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70099,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:54:16]free response buf [07:54:16]execute_script done [07:54:16]execute_script returns [07:54:16]free content buf [07:54:16]Sock 7.Close socket [07:54:16]Sock 7.Thread stoped [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:07]accept exits with 9 [07:55:07]New connection [07:55:07]New thread 3067026788 created [07:55:07]Thread 3067170148 joined [07:55:07]Waiting for new connection... [07:55:07] Sock 9.Parse request [07:55:07]Sock 9.Check first char [07:55:07]Sock 9.First char is OK [07:55:07]request: POST /json_proto HTTP/1.0 [07:55:07]Method: POST [07:55:07]URL: /json_proto [07:55:07]Method is POST - this is cgi request [07:55:07]url: /json_proto [07:55:07]query_string will be loaded in cgi processing [07:55:07]execute_cgi json_proto POST (null) [07:55:07]execute_cgi path=json_proto method=POST [07:55:07]POST find Content-Length [07:55:07]Host: 172.17.50.3:8080 [07:55:07]Content-Length: 683 [07:55:07]Content-Type: application/json [07:55:07] [07:55:07]POST finish read [07:55:07]Found Content-Length = 683 [07:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [07:55:07]execute_script... [07:55: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)2885866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [07:55:07]POST & json_proto [07:55:07]process_json_proto [07:55:07]json parsed OK: [07:55:07]protocol is kg_v1.0 [07:55:07]action value=close_receipt [07:55:07]process_action close_receipt [07:55:07]cmd_close_receipt [07:55:07]MH_GetDate [07:55:07]Write to MH i2c: F0 00 00 80 3F AE [07:55:07]Write i2c OK [07:55:07]MH_I2C_Read... [07:55:07]Read from MH i2c: F0 [07:55:07]MH_I2C_Read... [07:55:07]Read from MH i2c: F0 09 00 [07:55:07]MH_I2C_Read... [07:55:07]Read from MH i2c: F0 09 00 80 3F 00 5F 5A 17 67 6B 98 1E 66 75 [07:55:07]GetLastDocTimeStamp 1729583657 [07:55:07]current date 1729583711 [07:55:07]FM_GetShiftState [07:55:07]SAM_PROTO_GetShiftState [07:55:07]wFMCommunicate request_size=4 [07:55:07]MH_SAM_APDU [07:55:07]CAPDU: 80 13 01 00 [07:55:07]Write to MH i2c: E2 08 00 81 3F 80 13 01 00 00 00 00 00 3D [07:55:07]Write i2c OK [07:55:07]MH_I2C_Read... [07:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:07]Read from MH i2c: E2 [07:55:07]MH_I2C_Read... [07:55:07]Read from MH i2c: E2 0E 00 [07:55:07]MH_I2C_Read... [07:55:07]Read from MH i2c: E2 0E 00 81 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [07:55:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:55:07]wFMCommunicate OK [07:55:07]SAM_PROTO_GetShiftState done [07:55:07]FM_GetShiftState done [07:55:07]opened in 1729555832 [07:55:07]opened+sec_in_day 1729642232 [07:55:07]quantity*price = 100015 [07:55:07]sum+1 = 100017 [07:55: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 48 22.10.2024 07:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70100 ФПД: 33195724802758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70100&fm=33195724802758&tin=02508201610067®Number=0000000000156251&sum=100000 [07:55:08]StoreToDocumentArchive [07:55:08]shift 195 fd 70100 [07:55:08]save to /storage/0195/doc_00070100 [07:55:08]save last doc name /storage/0195/doc_00070100 to /storage/kkm_last_doc_name [07:55:08]save OK [07:55:08]Clear old archive folders... [07:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:08]tlvbuf is 0111D950 [07:55:08]SAM_PROTO_ClearQueue [07:55:08]wFMCommunicate request_size=4 [07:55:08]MH_SAM_APDU [07:55:08]CAPDU: 80 09 00 00 [07:55:08]Write to MH i2c: E2 08 00 8E 3F 80 09 00 00 00 00 00 00 3F [07:55:08]Write i2c OK [07:55:08]MH_I2C_Read... [07:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:08]Read from MH i2c: E2 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 8E 3F 00 90 00 41 [07:55:08]RAPDU: 90 00 [07:55:08]wFMCommunicate OK [07:55:08]SAM_PROTO_ClearQueue done [07:55:08]KKMCreateOFDPacket [07:55:08]OFDProtocolAddRootSTLVToBuf [07:55:08]FM_MakeSignedData [07:55:08]FM_MakeSignedData [07:55:08]SAM_PROTO_SignData [07:55:08]wFMCommunicate request_size=4 [07:55:08]MH_SAM_APDU [07:55:08]CAPDU: 80 0D 01 02 [07:55:08]Write to MH i2c: E2 08 00 8F 3F 80 0D 01 02 00 00 00 00 47 [07:55:08]Write i2c OK [07:55:08]MH_I2C_Read... [07:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:08]Read from MH i2c: E2 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 8F 3F 00 90 00 42 [07:55:08]RAPDU: 90 00 [07:55:08]wFMCommunicate OK [07:55:08]wFMCommunicate request_size=255 [07:55:08]MH_SAM_APDU [07:55: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 30 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 11 01 00 35 04 06 00 1E [07:55:08]Write to MH i2c: E2 02 01 90 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 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 30 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 11 01 00 35 04 06 00 1E 00 00 F8 [07:55:08]Write i2c OK [07:55:08]MH_I2C_Read... [07:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:08]Read from MH i2c: E2 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 90 3F 00 90 00 43 [07:55:08]RAPDU: 90 00 [07:55:08]wFMCommunicate OK [07:55:08]wFMCommunicate request_size=10 [07:55:08]MH_SAM_APDU [07:55:08]CAPDU: 80 0D 02 02 05 30 FB 62 8A C6 [07:55:08]Write to MH i2c: E2 0D 00 91 3F 80 0D 02 02 05 00 30 FB 62 8A C6 00 00 31 [07:55:08]Write i2c OK [07:55:08]MH_I2C_Read... [07:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:08]Read from MH i2c: E2 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 [07:55:08]MH_I2C_Read... [07:55:08]Read from MH i2c: E2 03 00 91 3F 00 90 00 44 [07:55:08]RAPDU: 90 00 [07:55:08]wFMCommunicate OK [07:55:08]wFMCommunicate request_size=4 [07:55:08]MH_SAM_APDU [07:55:08]CAPDU: 80 0D 03 02 [07:55:08]Write to MH i2c: E2 08 00 92 3F 80 0D 03 02 00 00 00 00 4C [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:09]Read from MH i2c: E2 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: E2 0B 00 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: E2 0B 00 92 3F 00 C1 3F 9A 32 2E F0 0A 62 90 00 A3 [07:55:09]RAPDU: C1 3F 9A 32 2E F0 0A 62 90 00 [07:55:09]wFMCommunicate OK [07:55:09]SAM_PROTO_SignData done [07:55:09]FM_MakeSignedData done [07:55:09]CreateOFDProtocolMessage [07:55:09]wFMCommunicate request_size=4 [07:55:09]MH_SAM_APDU [07:55:09]CAPDU: 80 11 00 00 [07:55:09]Write to MH i2c: E2 08 00 93 3F 80 11 00 00 00 00 00 00 4C [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:09]Read from MH i2c: E2 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: E2 17 00 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: E2 17 00 93 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [07:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:09]wFMCommunicate OK [07:55:09]CreateOFDProtocolMessage done [07:55:09]OFDSenderStorePacket 70100 [07:55:09]StoreOFDPacket docnum=70100 [07:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C3 92 07 01 F4 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 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 30 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 11 01 00 35 04 06 00 1E 30 FB 62 8A C6 C1 3F 9A 32 2E F0 0A 62 [07:55:09]CheckFolder [07:55:09]dirname=/storage/ofd_packets [07:55:09]CheckFolder done [07:55:09]ProducePacketName [07:55:09]name=ofd_packets/00070100 [07:55:09]NVStorageSaveData ofd_packets/00070100 [07:55:09]File name is /storage/ofd_packets/00070100 [07:55:09]Write 301 bytes [07:55:09]NVStorageSaveData done [07:55:09]OFDSenderStorePacket done [07:55:09]KKMCreateOFDPacket done [07:55:09]NVStorageSaveData kkm_last_timestamp [07:55:09]File name is /storage/kkm_last_timestamp [07:55:09]Write 4 bytes [07:55:09]NVStorageSaveData done [07:55:09]ExternCall_PrintAddStr [07:55:09]wPrintStart [07:55:09]Write to MH i2c: 01 00 00 94 3F D3 [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 07 00 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 07 00 94 3F 00 00 00 00 00 FF 0F E8 [07:55:09]RasterBufferAndPrint [07:55:09]line Счет N : (1)2885866 [07:55:09]line ИНН: 02508201610067 [07:55:09]line Контрольно-Кассовый Чек [07:55:09]line ПРОДАЖА [07:55:09]line ТРК (МРК, ГНК) : 32 [07:55:09]line Товар: 2710124130 [07:55:09]line Аи-92-К-5 [07:55:09]line 14.950 * 66.90 [07:55:09]line = 1000.16 [07:55:09]line НДС 12% НСП 1% [07:55:09]line > о реализуемом товаре [07:55:09]line ОКРУГЛЕНИЕ: -0.16 [07:55:09]line ИТОГО: 1000.00 [07:55:09]line Внесено: 1000.00 [07:55:09]line СДАЧА: 0.00 [07:55:09]line НСП 1% : 8.85 [07:55:09]line НДС 12% : 106.21 [07:55:09]line Наличными: 1000.00 [07:55:09]line Безнал.: 0.00 [07:55:09]line Место: АЗС № 85 "Партнер Нефть" [07:55:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:55:09]line СНО: Общий режим [07:55:09]line Чек 48 22.10.2024 07:55 [07:55:09]line Смена: 195 ФФД: 1.0 [07:55:09]line ЗНМ: 0300000167 [07:55:09]line РНМ: 0000000000156251 [07:55:09]line Версия ККМ: v1.0 [07:55:09]line ФМ: 0000000000963346 [07:55:09]line ФД: 70100 [07:55:09]line ФПД: 33195724802758 [07:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70100&fm=33195724802758&tin=02508201610067®Number=0000000000156251&sum=100000 [07:55:09]OFD Sender: Processing packet 70100 [packets to send 18, broken 17] [07:55:09]ProducePacketName [07:55:09]name=ofd_packets/00070100 [07:55:09]OFD Sender: To server: pG, [07:55:09]CommunicateWithHost lk.salyk.kg:30040 [07:55:09]ConnectInit lk.salyk.kg [07:55:09]written 0, free lines is 4095 [07:55:09]Connected sock=10 [07:55: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 34 36 0F 01 00 00 C3 92 07 01 F4 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 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 30 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 11 01 00 35 04 06 00 1E 30 FB 62 8A C6 C1 3F 9A 32 2E F0 0A 62 [07:55: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 34 36 4F 00 00 00 1A 03 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 34 36 10 04 04 00 D4 11 01 00 F4 03 04 00 01 04 17 67 B6 04 01 00 00 E0 4F 59 52 A2 8D 3A 9F [07:55:09]CommunicateWithHost err = 0 [07:55:09]CheckOFDResponse [07:55:09]1017 (14) - 77093643461234 [07:55:09]1041 (16) - 0000000000963346 [07:55:09]1040 (4) - 70100 [07:55:09]1012 (4) - 22.10.2024 01:46 [07:55:09]1206 (1) - 0 [07:55:09]OFD Sender: Remove packet 70100 [07:55:09]ProducePacketName [07:55:09]name=ofd_packets/00070100 [07:55:09]NVStorageDeleteData [07:55:09]Write to MH i2c: 01 00 00 BF 3F FE [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 07 00 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: 01 07 00 BF 3F 00 00 00 00 00 EF 0C 00 [07:55:09]RasterBufferAndPrint [07:55:09]line [07:55:09]line [07:55:09]line [07:55:09]line [07:55:09]line [07:55:09]written 0, free lines is 3317 [07:55:09]MH_Cut [07:55:09]Write to MH i2c: D1 01 00 C6 3F 01 D7 [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: D1 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: D1 01 00 [07:55:09]MH_I2C_Read... [07:55:09]Read from MH i2c: D1 01 00 C6 3F 00 D6 [07:55:09]Write to MH i2c: 01 00 00 C7 3F 06 [07:55:09]Write i2c OK [07:55:09]MH_I2C_Read... [07:55:10]OFD Sender: No OFD packet to send [07:55:10]*** Cut start [07:55:10]*** Partial cut [07:55:10]*** CUTSNS_PIN = 1 [07:55:10]*** CUTSNS_PIN = 0 [07:55:10]*** Brake cut motor [07:55:11]Read from MH i2c: 01 [07:55:11]MH_I2C_Read... [07:55:11]*** Stop cut motor [07:55:11]*** Cut end [07:55:11]Read from MH i2c: 01 07 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: 01 07 00 C7 3F 00 00 00 00 00 FF 0F 1B [07:55:11]process_action close_receipt done [07:55:11]requested_data is exist [07:55:11]produce_requested_data [07:55:11]requested_item fm.sn is exist - process it [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 11 00 00 [07:55:11]Write to MH i2c: E2 08 00 C8 3F 80 11 00 00 00 00 00 00 81 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:11]Read from MH i2c: E2 17 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 17 00 C8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [07:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:11]wFMCommunicate OK [07:55:11]requested_item fd.num is exist - process it [07:55:11]SAM_PROTO_GetFieldsCounters [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 13 00 00 [07:55:11]Write to MH i2c: E2 08 00 C9 3F 80 13 00 00 00 00 00 00 84 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 62 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 62 00 C9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 11 01 00 0E 04 04 00 C3 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 D8 [07:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 11 01 00 0E 04 04 00 C3 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 [07:55:11]wFMCommunicate OK [07:55:11]SAM_PROTO_GetFieldsCounters done [07:55:11]requested_item shift.num is exist - process it [07:55:11]requested_item shift.opened is exist - process it [07:55:11]req_shift_opened [07:55:11]FM_GetShiftState [07:55:11]SAM_PROTO_GetShiftState [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 13 01 00 [07:55:11]Write to MH i2c: E2 08 00 CA 3F 80 13 01 00 00 00 00 00 86 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 0E 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 0E 00 CA 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 74 [07:55:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:55:11]wFMCommunicate OK [07:55:11]SAM_PROTO_GetShiftState done [07:55:11]FM_GetShiftState done [07:55:11]req_shift_opened done [07:55:11]requested_item shift.open_date is exist - process it [07:55:11]req_shift_open_date [07:55:11]req_shift_open_date done [07:55:11]produce_requested_data done [07:55:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70100,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:55:11]process_action_free close_receipt [07:55:11]json_value_free [07:55:11]json_value_free done [07:55:11]process_json_proto returns [07:55:11]Send response to host [07:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70100,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:55:11]free response buf [07:55:11]execute_script done [07:55:11]execute_script returns [07:55:11]free content buf [07:55:11]Sock 9.Close socket [07:55:11]Sock 9.Thread stoped [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:54]accept exits with 7 [07:57:54]New connection [07:57:54]New thread 3067170148 created [07:57:54]Thread 3067026788 joined [07:57:54]Waiting for new connection... [07:57:54] Sock 7.Parse request [07:57:54]Sock 7.Check first char [07:57:54]Sock 7.First char is OK [07:57:54]request: POST /json_proto HTTP/1.0 [07:57:54]Method: POST [07:57:54]URL: /json_proto [07:57:54]Method is POST - this is cgi request [07:57:54]url: /json_proto [07:57:54]query_string will be loaded in cgi processing [07:57:54]execute_cgi json_proto POST (null) [07:57:54]execute_cgi path=json_proto method=POST [07:57:54]POST find Content-Length [07:57:54]Host: 172.17.50.3:8080 [07:57:54]Content-Length: 681 [07:57:54]Content-Type: application/json [07:57:54] [07:57:54]POST finish read [07:57:54]Found Content-Length = 681 [07:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [07:57:54]execute_script... [07:57: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)2885867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [07:57:54]POST & json_proto [07:57:54]process_json_proto [07:57:54]json parsed OK: [07:57:54]protocol is kg_v1.0 [07:57:54]action value=close_receipt [07:57:54]process_action close_receipt [07:57:54]cmd_close_receipt [07:57:54]MH_GetDate [07:57:54]Write to MH i2c: F0 00 00 CB 3F F9 [07:57:54]Write i2c OK [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: F0 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: F0 09 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: F0 09 00 CB 3F 00 06 5B 17 67 6B 98 1E 66 68 [07:57:54]GetLastDocTimeStamp 1729583711 [07:57:54]current date 1729583878 [07:57:54]FM_GetShiftState [07:57:54]SAM_PROTO_GetShiftState [07:57:54]wFMCommunicate request_size=4 [07:57:54]MH_SAM_APDU [07:57:54]CAPDU: 80 13 01 00 [07:57:54]Write to MH i2c: E2 08 00 CC 3F 80 13 01 00 00 00 00 00 88 [07:57:54]Write i2c OK [07:57:54]MH_I2C_Read... [07:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:54]Read from MH i2c: E2 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 0E 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 0E 00 CC 3F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 76 [07:57:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:57:54]wFMCommunicate OK [07:57:54]SAM_PROTO_GetShiftState done [07:57:54]FM_GetShiftState done [07:57:54]opened in 1729555832 [07:57:54]opened+sec_in_day 1729642232 [07:57:54]quantity*price = 30030 [07:57:54]sum+1 = 30032 [07:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 49 22.10.2024 07:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70101 ФПД: 269709689749003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70101&fm=269709689749003&tin=02508201610067®Number=0000000000156251&sum=30000 [07:57:55]StoreToDocumentArchive [07:57:55]shift 195 fd 70101 [07:57:55]save to /storage/0195/doc_00070101 [07:57:55]save last doc name /storage/0195/doc_00070101 to /storage/kkm_last_doc_name [07:57:55]save OK [07:57:55]Clear old archive folders... [07:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:57:55]tlvbuf is 01127660 [07:57:55]SAM_PROTO_ClearQueue [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 09 00 00 [07:57:55]Write to MH i2c: E2 08 00 D9 3F 80 09 00 00 00 00 00 00 8A [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 D9 3F 00 90 00 8C [07:57:55]RAPDU: 90 00 [07:57:55]wFMCommunicate OK [07:57:55]SAM_PROTO_ClearQueue done [07:57:55]KKMCreateOFDPacket [07:57:55]OFDProtocolAddRootSTLVToBuf [07:57:55]FM_MakeSignedData [07:57:55]FM_MakeSignedData [07:57:55]SAM_PROTO_SignData [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 0D 01 02 [07:57:55]Write to MH i2c: E2 08 00 DA 3F 80 0D 01 02 00 00 00 00 92 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 DA 3F 00 90 00 8D [07:57:55]RAPDU: 90 00 [07:57:55]wFMCommunicate OK [07:57:55]wFMCommunicate request_size=255 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 31 00 00 00 F4 03 04 00 06 5B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 11 01 00 35 04 06 00 F5 4C [07:57:55]Write to MH i2c: E2 02 01 DB 3F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 31 00 00 00 F4 03 04 00 06 5B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 11 01 00 35 04 06 00 F5 4C 00 00 60 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 DB 3F 00 90 00 8E [07:57:55]RAPDU: 90 00 [07:57:55]wFMCommunicate OK [07:57:55]wFMCommunicate request_size=9 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 0D 02 02 04 AE 3F FE 0B [07:57:55]Write to MH i2c: E2 0C 00 DC 3F 80 0D 02 02 04 00 AE 3F FE 0B 00 00 93 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 03 00 DC 3F 00 90 00 8F [07:57:55]RAPDU: 90 00 [07:57:55]wFMCommunicate OK [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 0D 03 02 [07:57:55]Write to MH i2c: E2 08 00 DD 3F 80 0D 03 02 00 00 00 00 97 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 0B 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 0B 00 DD 3F 00 9B 35 25 F4 2E C6 AF 17 90 00 3B [07:57:55]RAPDU: 9B 35 25 F4 2E C6 AF 17 90 00 [07:57:55]wFMCommunicate OK [07:57:55]SAM_PROTO_SignData done [07:57:55]FM_MakeSignedData done [07:57:55]CreateOFDProtocolMessage [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 11 00 00 [07:57:55]Write to MH i2c: E2 08 00 DE 3F 80 11 00 00 00 00 00 00 97 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:56]Read from MH i2c: E2 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 17 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 17 00 DE 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [07:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:57:56]wFMCommunicate OK [07:57:56]CreateOFDProtocolMessage done [07:57:56]OFDSenderStorePacket 70101 [07:57:56]StoreOFDPacket docnum=70101 [07:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F3 1E 06 01 7F 5E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 31 00 00 00 F4 03 04 00 06 5B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 11 01 00 35 04 06 00 F5 4C AE 3F FE 0B 9B 35 25 F4 2E C6 AF 17 [07:57:56]CheckFolder [07:57:56]dirname=/storage/ofd_packets [07:57:56]CheckFolder done [07:57:56]ProducePacketName [07:57:56]name=ofd_packets/00070101 [07:57:56]NVStorageSaveData ofd_packets/00070101 [07:57:56]File name is /storage/ofd_packets/00070101 [07:57:56]Write 300 bytes [07:57:56]NVStorageSaveData done [07:57:56]OFDSenderStorePacket done [07:57:56]KKMCreateOFDPacket done [07:57:56]NVStorageSaveData kkm_last_timestamp [07:57:56]File name is /storage/kkm_last_timestamp [07:57:56]Write 4 bytes [07:57:56]NVStorageSaveData done [07:57:56]ExternCall_PrintAddStr [07:57:56]wPrintStart [07:57:56]Write to MH i2c: 01 00 00 DF 3F 1E [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 07 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 07 00 DF 3F 00 00 00 00 00 FF 0F 33 [07:57:56]RasterBufferAndPrint [07:57:56]line Счет N : (1)2885867 [07:57:56]line ИНН: 02508201610067 [07:57:56]line Контрольно-Кассовый Чек [07:57:56]line ПРОДАЖА [07:57:56]line ТРК (МРК, ГНК) : 71 [07:57:56]line Товар: 2711129700 [07:57:56]line ГАЗ-К-3 [07:57:56]line 7.720 * 38.90 [07:57:56]line = 300.31 [07:57:56]line НДС 12% НСП 1% [07:57:56]line > о реализуемом товаре [07:57:56]line ОКРУГЛЕНИЕ: -0.31 [07:57:56]line ИТОГО: 300.00 [07:57:56]line Внесено: 300.00 [07:57:56]line СДАЧА: 0.00 [07:57:56]line НСП 1% : 2.66 [07:57:56]line НДС 12% : 31.89 [07:57:56]line Наличными: 300.00 [07:57:56]line Безнал.: 0.00 [07:57:56]line Место: АЗС № 85 "Партнер Нефть" [07:57:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:57:56]line СНО: Общий режим [07:57:56]line Чек 49 22.10.2024 07:57 [07:57:56]line Смена: 195 ФФД: 1.0 [07:57:56]line ЗНМ: 0300000167 [07:57:56]line РНМ: 0000000000156251 [07:57:56]line Версия ККМ: v1.0 [07:57:56]line ФМ: 0000000000963346 [07:57:56]line ФД: 70101 [07:57:56]line ФПД: 269709689749003 [07:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70101&fm=269709689749003&tin=02508201610067®Number=0000000000156251&sum=30000 [07:57:56]written 0, free lines is 4095 [07:57:56]OFD Sender: Processing packet 70101 [packets to send 18, broken 17] [07:57:56]ProducePacketName [07:57:56]name=ofd_packets/00070101 [07:57:56]OFD Sender: To server: pG, [07:57:56]CommunicateWithHost lk.salyk.kg:30040 [07:57:56]ConnectInit lk.salyk.kg [07:57:56]Connected sock=10 [07:57: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 34 36 0E 01 00 00 F3 1E 06 01 7F 5E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 31 00 00 00 F4 03 04 00 06 5B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 11 01 00 35 04 06 00 F5 4C AE 3F FE 0B 9B 35 25 F4 2E C6 AF 17 [07:57: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 34 36 4F 00 00 00 7D 94 47 00 93 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 34 36 10 04 04 00 D5 11 01 00 F4 03 04 00 A8 04 17 67 B6 04 01 00 00 04 DF D5 B9 89 94 00 6D [07:57:56]CommunicateWithHost err = 0 [07:57:56]CheckOFDResponse [07:57:56]1017 (14) - 77093643461234 [07:57:56]1041 (16) - 0000000000963346 [07:57:56]1040 (4) - 70101 [07:57:56]1012 (4) - 22.10.2024 01:49 [07:57:56]1206 (1) - 0 [07:57:56]OFD Sender: Remove packet 70101 [07:57:56]ProducePacketName [07:57:56]name=ofd_packets/00070101 [07:57:56]NVStorageDeleteData [07:57:56]Write to MH i2c: 01 00 00 0A 40 4A [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 07 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: 01 07 00 0A 40 00 00 00 00 00 E0 0C 3D [07:57:56]RasterBufferAndPrint [07:57:56]line [07:57:56]line [07:57:56]line [07:57:56]line [07:57:56]line [07:57:56]written 0, free lines is 3302 [07:57:56]MH_Cut [07:57:56]Write to MH i2c: D1 01 00 11 40 01 23 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: D1 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: D1 01 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: D1 01 00 11 40 00 22 [07:57:56]Write to MH i2c: 01 00 00 12 40 52 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:57]OFD Sender: No OFD packet to send [07:57:57]*** Cut start [07:57:57]*** Partial cut [07:57:57]*** CUTSNS_PIN = 1 [07:57:57]*** CUTSNS_PIN = 0 [07:57:57]*** Brake cut motor [07:57:58]Read from MH i2c: 01 [07:57:58]MH_I2C_Read... [07:57:58]*** Stop cut motor [07:57:58]*** Cut end [07:57:58]Read from MH i2c: 01 07 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: 01 07 00 12 40 00 00 00 00 00 FF 0F 67 [07:57:58]process_action close_receipt done [07:57:58]requested_data is exist [07:57:58]produce_requested_data [07:57:58]requested_item fm.sn is exist - process it [07:57:58]wFMCommunicate request_size=4 [07:57:58]MH_SAM_APDU [07:57:58]CAPDU: 80 11 00 00 [07:57:58]Write to MH i2c: E2 08 00 13 40 80 11 00 00 00 00 00 00 CD [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:58]Read from MH i2c: E2 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 17 00 [07:57:58]MH_I2C_Read... [07:57:58]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 34 36 90 00 1F [07:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:57:58]wFMCommunicate OK [07:57:58]requested_item fd.num is exist - process it [07:57:58]SAM_PROTO_GetFieldsCounters [07:57:58]wFMCommunicate request_size=4 [07:57:58]MH_SAM_APDU [07:57:58]CAPDU: 80 13 00 00 [07:57:58]Write to MH i2c: E2 08 00 14 40 80 13 00 00 00 00 00 00 D0 [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:58]Read from MH i2c: E2 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 62 00 [07:57:58]MH_I2C_Read... [07:57:58]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 11 01 00 0E 04 04 00 C3 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 28 [07:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 11 01 00 0E 04 04 00 C3 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 [07:57:58]wFMCommunicate OK [07:57:58]SAM_PROTO_GetFieldsCounters done [07:57:58]requested_item shift.num is exist - process it [07:57:58]requested_item shift.opened is exist - process it [07:57:58]req_shift_opened [07:57:58]FM_GetShiftState [07:57:58]SAM_PROTO_GetShiftState [07:57:58]wFMCommunicate request_size=4 [07:57:58]MH_SAM_APDU [07:57:58]CAPDU: 80 13 01 00 [07:57:58]Write to MH i2c: E2 08 00 15 40 80 13 01 00 00 00 00 00 D2 [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:58]Read from MH i2c: E2 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 0E 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 0E 00 15 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C0 [07:57:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [07:57:58]wFMCommunicate OK [07:57:58]SAM_PROTO_GetShiftState done [07:57:58]FM_GetShiftState done [07:57:58]req_shift_opened done [07:57:58]requested_item shift.open_date is exist - process it [07:57:58]req_shift_open_date [07:57:58]req_shift_open_date done [07:57:58]produce_requested_data done [07:57:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70101,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [07:57:58]process_action_free close_receipt [07:57:58]json_value_free [07:57:58]json_value_free done [07:57:58]process_json_proto returns [07:57:58]Send response to host [07:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70101,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [07:57:58]free response buf [07:57:58]execute_script done [07:57:58]execute_script returns [07:57:58]free content buf [07:57:58]Sock 7.Close socket [07:57:58]Sock 7.Thread stoped [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:21]recv_with_timeout no data received [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:10]accept exits with 9 [08:06:10]New connection [08:06:10]New thread 3067026788 created [08:06:10]Thread 3067170148 joined [08:06:10]Waiting for new connection... [08:06:10] Sock 9.Parse request [08:06:10]Sock 9.Check first char [08:06:10]Sock 9.First char is OK [08:06:10]request: POST /json_proto HTTP/1.0 [08:06:10]Method: POST [08:06:10]URL: /json_proto [08:06:10]Method is POST - this is cgi request [08:06:10]url: /json_proto [08:06:10]query_string will be loaded in cgi processing [08:06:10]execute_cgi json_proto POST (null) [08:06:10]execute_cgi path=json_proto method=POST [08:06:10]POST find Content-Length [08:06:10]Host: 172.17.50.3:8080 [08:06:10]Content-Length: 678 [08:06:10]Content-Type: application/json [08:06:10] [08:06:10]POST finish read [08:06:10]Found Content-Length = 678 [08:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [08:06:10]execute_script... [08: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)2885868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [08:06:10]POST & json_proto [08:06:10]process_json_proto [08:06:10]json parsed OK: [08:06:10]protocol is kg_v1.0 [08:06:10]action value=close_receipt [08:06:10]process_action close_receipt [08:06:10]cmd_close_receipt [08:06:10]MH_GetDate [08:06:10]Write to MH i2c: F0 00 00 16 40 45 [08:06:10]Write i2c OK [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 09 00 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 09 00 16 40 00 F7 5C 17 67 6B 98 1E 66 A6 [08:06:10]GetLastDocTimeStamp 1729583878 [08:06:10]current date 1729584375 [08:06:10]FM_GetShiftState [08:06:10]SAM_PROTO_GetShiftState [08:06:10]wFMCommunicate request_size=4 [08:06:10]MH_SAM_APDU [08:06:10]CAPDU: 80 13 01 00 [08:06:10]Write to MH i2c: E2 08 00 17 40 80 13 01 00 00 00 00 00 D4 [08:06:10]Write i2c OK [08:06:10]MH_I2C_Read... [08:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:10]Read from MH i2c: E2 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: E2 0E 00 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: E2 0E 00 17 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [08:06:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:06:10]wFMCommunicate OK [08:06:10]SAM_PROTO_GetShiftState done [08:06:10]FM_GetShiftState done [08:06:10]opened in 1729555832 [08:06:10]opened+sec_in_day 1729642232 [08:06:10]quantity*price = 60009 [08:06:10]sum+1 = 60010 [08:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 50 22.10.2024 08:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70102 ФПД: 71634877620935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70102&fm=71634877620935&tin=02508201610067®Number=0000000000156251&sum=60000 [08:06:12]StoreToDocumentArchive [08:06:12]shift 195 fd 70102 [08:06:12]save to /storage/0195/doc_00070102 [08:06:12]save last doc name /storage/0195/doc_00070102 to /storage/kkm_last_doc_name [08:06:12]save OK [08:06:12]Clear old archive folders... [08:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:12]tlvbuf is 01256C50 [08:06:12]SAM_PROTO_ClearQueue [08:06:12]wFMCommunicate request_size=4 [08:06:12]MH_SAM_APDU [08:06:12]CAPDU: 80 09 00 00 [08:06:12]Write to MH i2c: E2 08 00 24 40 80 09 00 00 00 00 00 00 D6 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 24 40 00 90 00 D8 [08:06:12]RAPDU: 90 00 [08:06:12]wFMCommunicate OK [08:06:12]SAM_PROTO_ClearQueue done [08:06:12]KKMCreateOFDPacket [08:06:12]OFDProtocolAddRootSTLVToBuf [08:06:12]FM_MakeSignedData [08:06:12]FM_MakeSignedData [08:06:12]SAM_PROTO_SignData [08:06:12]wFMCommunicate request_size=4 [08:06:12]MH_SAM_APDU [08:06:12]CAPDU: 80 0D 01 02 [08:06:12]Write to MH i2c: E2 08 00 25 40 80 0D 01 02 00 00 00 00 DE [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 25 40 00 90 00 D9 [08:06:12]RAPDU: 90 00 [08:06:12]wFMCommunicate OK [08:06:12]wFMCommunicate request_size=255 [08:06:12]MH_SAM_APDU [08:06: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 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 32 00 00 00 F4 03 04 00 F7 5C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 11 01 00 35 04 06 00 41 [08:06:12]Write to MH i2c: E2 02 01 26 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 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 32 00 00 00 F4 03 04 00 F7 5C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 11 01 00 35 04 06 00 41 00 00 33 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 26 40 00 90 00 DA [08:06:12]RAPDU: 90 00 [08:06:12]wFMCommunicate OK [08:06:12]wFMCommunicate request_size=10 [08:06:12]MH_SAM_APDU [08:06:12]CAPDU: 80 0D 02 02 05 26 CB 6F 22 C7 [08:06:12]Write to MH i2c: E2 0D 00 27 40 80 0D 02 02 05 00 26 CB 6F 22 C7 00 00 34 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [08:06:12]RAPDU: 90 00 [08:06:12]wFMCommunicate OK [08:06:12]wFMCommunicate request_size=4 [08:06:12]MH_SAM_APDU [08:06:12]CAPDU: 80 0D 03 02 [08:06:12]Write to MH i2c: E2 08 00 28 40 80 0D 03 02 00 00 00 00 E3 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 0B 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 0B 00 28 40 00 F2 43 6F 2B 64 9F C8 3F 90 00 BD [08:06:12]RAPDU: F2 43 6F 2B 64 9F C8 3F 90 00 [08:06:12]wFMCommunicate OK [08:06:12]SAM_PROTO_SignData done [08:06:12]FM_MakeSignedData done [08:06:12]CreateOFDProtocolMessage [08:06:12]wFMCommunicate request_size=4 [08:06:12]MH_SAM_APDU [08:06:12]CAPDU: 80 11 00 00 [08:06:12]Write to MH i2c: E2 08 00 29 40 80 11 00 00 00 00 00 00 E3 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:12]Read from MH i2c: E2 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: E2 17 00 [08:06:12]MH_I2C_Read... [08:06:12]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 34 36 90 00 35 [08:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:06:12]wFMCommunicate OK [08:06:12]CreateOFDProtocolMessage done [08:06:12]OFDSenderStorePacket 70102 [08:06:12]StoreOFDPacket docnum=70102 [08:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5C CD 07 01 BC B0 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 32 00 00 00 F4 03 04 00 F7 5C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 11 01 00 35 04 06 00 41 26 CB 6F 22 C7 F2 43 6F 2B 64 9F C8 3F [08:06:12]CheckFolder [08:06:12]dirname=/storage/ofd_packets [08:06:12]CheckFolder done [08:06:12]ProducePacketName [08:06:12]name=ofd_packets/00070102 [08:06:12]NVStorageSaveData ofd_packets/00070102 [08:06:12]File name is /storage/ofd_packets/00070102 [08:06:12]Write 301 bytes [08:06:12]NVStorageSaveData done [08:06:12]OFDSenderStorePacket done [08:06:12]KKMCreateOFDPacket done [08:06:12]NVStorageSaveData kkm_last_timestamp [08:06:12]File name is /storage/kkm_last_timestamp [08:06:12]Write 4 bytes [08:06:12]NVStorageSaveData done [08:06:12]ExternCall_PrintAddStr [08:06:12]wPrintStart [08:06:12]Write to MH i2c: 01 00 00 2A 40 6A [08:06:12]OFD Sender: Processing packet 70102 [packets to send 18, broken 17] [08:06:12]ProducePacketName [08:06:12]name=ofd_packets/00070102 [08:06:12]OFD Sender: To server: pG, [08:06:12]CommunicateWithHost lk.salyk.kg:30040 [08:06:12]ConnectInit lk.salyk.kg [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 07 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 07 00 2A 40 00 00 00 00 00 FF 0F 7F [08:06:12]RasterBufferAndPrint [08:06:12]line Счет N : (1)2885868 [08:06:12]line ИНН: 02508201610067 [08:06:12]line Контрольно-Кассовый Чек [08:06:12]line ПРОДАЖА [08:06:12]line ТРК (МРК, ГНК) : 32 [08:06:12]line Товар: 2710124130 [08:06:12]line Аи-92-К-5 [08:06:12]line 8.970 * 66.90 [08:06:12]line = 600.09 [08:06:12]line НДС 12% НСП 1% [08:06:12]line > о реализуемом товаре [08:06:12]line ОКРУГЛЕНИЕ: -0.09 [08:06:12]line ИТОГО: 600.00 [08:06:12]line Внесено: 600.00 [08:06:12]line СДАЧА: 0.00 [08:06:12]line НСП 1% : 5.31 [08:06:12]line НДС 12% : 63.73 [08:06:12]line Наличными: 600.00 [08:06:12]line Безнал.: 0.00 [08:06:12]line Место: АЗС № 85 "Партнер Нефть" [08:06:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:06:12]line СНО: Общий режим [08:06:12]line Чек 50 22.10.2024 08:06 [08:06:12]line Смена: 195 ФФД: 1.0 [08:06:12]line ЗНМ: 0300000167 [08:06:12]line РНМ: 0000000000156251 [08:06:12]line Версия ККМ: v1.0 [08:06:12]line ФМ: 0000000000963346 [08:06:12]line ФД: 70102 [08:06:12]line ФПД: 71634877620935 [08:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70102&fm=71634877620935&tin=02508201610067®Number=0000000000156251&sum=60000 [08:06:12]Connected sock=10 [08: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 34 36 0F 01 00 00 5C CD 07 01 BC B0 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 32 00 00 00 F4 03 04 00 F7 5C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 11 01 00 35 04 06 00 41 26 CB 6F 22 C7 F2 43 6F 2B 64 9F C8 3F [08:06:12]written 0, free lines is 4095 [08:06: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 34 36 4F 00 00 00 17 D6 47 00 A5 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 34 36 10 04 04 00 D6 11 01 00 F4 03 04 00 98 06 17 67 B6 04 01 00 00 EC 97 4D DF 67 C0 6E A7 [08:06:13]CommunicateWithHost err = 0 [08:06:13]CheckOFDResponse [08:06:13]1017 (14) - 77093643461234 [08:06:13]1041 (16) - 0000000000963346 [08:06:13]1040 (4) - 70102 [08:06:13]1012 (4) - 22.10.2024 01:57 [08:06:13]1206 (1) - 0 [08:06:13]OFD Sender: Remove packet 70102 [08:06:13]ProducePacketName [08:06:13]name=ofd_packets/00070102 [08:06:13]NVStorageDeleteData [08:06:13]Write to MH i2c: 01 00 00 55 40 95 [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 55 40 00 00 00 00 00 E4 0C 8C [08:06:13]RasterBufferAndPrint [08:06:13]line [08:06:13]line [08:06:13]line [08:06:13]line [08:06:13]line [08:06:13]written 0, free lines is 3306 [08:06:13]MH_Cut [08:06:13]Write to MH i2c: D1 01 00 5C 40 01 6E [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D1 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D1 01 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D1 01 00 5C 40 00 6D [08:06:13]Write to MH i2c: 01 00 00 5D 40 9D [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]OFD Sender: No OFD packet to send [08:06:14]*** Cut start [08:06:14]*** Partial cut [08:06:14]*** CUTSNS_PIN = 1 [08:06:14]*** CUTSNS_PIN = 0 [08:06:14]*** Brake cut motor [08:06:14]Read from MH i2c: 01 [08:06:14]MH_I2C_Read... [08:06:14]*** Stop cut motor [08:06:14]*** Cut end [08:06:14]Read from MH i2c: 01 07 00 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: 01 07 00 5D 40 00 00 00 00 00 FF 0F B2 [08:06:14]process_action close_receipt done [08:06:14]requested_data is exist [08:06:14]produce_requested_data [08:06:14]requested_item fm.sn is exist - process it [08:06:14]wFMCommunicate request_size=4 [08:06:14]MH_SAM_APDU [08:06:14]CAPDU: 80 11 00 00 [08:06:14]Write to MH i2c: E2 08 00 5E 40 80 11 00 00 00 00 00 00 18 [08:06:14]Write i2c OK [08:06:14]MH_I2C_Read... [08:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:14]Read from MH i2c: E2 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 17 00 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 17 00 5E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [08:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:06:14]wFMCommunicate OK [08:06:14]requested_item fd.num is exist - process it [08:06:14]SAM_PROTO_GetFieldsCounters [08:06:14]wFMCommunicate request_size=4 [08:06:14]MH_SAM_APDU [08:06:14]CAPDU: 80 13 00 00 [08:06:14]Write to MH i2c: E2 08 00 5F 40 80 13 00 00 00 00 00 00 1B [08:06:14]Write i2c OK [08:06:14]MH_I2C_Read... [08:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:14]Read from MH i2c: E2 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 62 00 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 62 00 5F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 11 01 00 0E 04 04 00 C3 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 77 [08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 11 01 00 0E 04 04 00 C3 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 [08:06:14]wFMCommunicate OK [08:06:14]SAM_PROTO_GetFieldsCounters done [08:06:14]requested_item shift.num is exist - process it [08:06:14]requested_item shift.opened is exist - process it [08:06:14]req_shift_opened [08:06:14]FM_GetShiftState [08:06:14]SAM_PROTO_GetShiftState [08:06:14]wFMCommunicate request_size=4 [08:06:14]MH_SAM_APDU [08:06:14]CAPDU: 80 13 01 00 [08:06:14]Write to MH i2c: E2 08 00 60 40 80 13 01 00 00 00 00 00 1D [08:06:14]Write i2c OK [08:06:14]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 0E 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 0E 00 60 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0B [08:06:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:06:15]wFMCommunicate OK [08:06:15]SAM_PROTO_GetShiftState done [08:06:15]FM_GetShiftState done [08:06:15]req_shift_opened done [08:06:15]requested_item shift.open_date is exist - process it [08:06:15]req_shift_open_date [08:06:15]req_shift_open_date done [08:06:15]produce_requested_data done [08:06:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70102,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:06:15]process_action_free close_receipt [08:06:15]json_value_free [08:06:15]json_value_free done [08:06:15]process_json_proto returns [08:06:15]Send response to host [08:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70102,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:06:15]free response buf [08:06:15]execute_script done [08:06:15]execute_script returns [08:06:15]free content buf [08:06:15]Sock 9.Close socket [08:06:15]Sock 9.Thread stoped [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:22]accept exits with 7 [08:07:22]New connection [08:07:22]New thread 3067170148 created [08:07:22]Thread 3067026788 joined [08:07:22]Waiting for new connection... [08:07:22] Sock 7.Parse request [08:07:22]Sock 7.Check first char [08:07:22]Sock 7.First char is OK [08:07:22]request: POST /json_proto HTTP/1.0 [08:07:22]Method: POST [08:07:22]URL: /json_proto [08:07:22]Method is POST - this is cgi request [08:07:22]url: /json_proto [08:07:22]query_string will be loaded in cgi processing [08:07:22]execute_cgi json_proto POST (null) [08:07:22]execute_cgi path=json_proto method=POST [08:07:22]POST find Content-Length [08:07:22]Host: 172.17.50.3:8080 [08:07:22]Content-Length: 754 [08:07:22]Content-Type: application/json [08:07:22] [08:07:22]POST finish read [08:07:22]Found Content-Length = 754 [08:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:22]execute_script... [08:07: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)2885869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:22]POST & json_proto [08:07:22]process_json_proto [08:07:22]json parsed OK: [08:07:22]protocol is kg_v1.0 [08:07:22]action value=close_receipt [08:07:22]process_action close_receipt [08:07:22]cmd_close_receipt [08:07:22]MH_GetDate [08:07:22]Write to MH i2c: F0 00 00 61 40 90 [08:07:22]Write i2c OK [08:07:22]MH_I2C_Read... [08:07:22]Read from MH i2c: F0 [08:07:22]MH_I2C_Read... [08:07:22]Read from MH i2c: F0 09 00 [08:07:22]MH_I2C_Read... [08:07:22]Read from MH i2c: F0 09 00 61 40 00 3F 5D 17 67 6B 98 1E 66 3A [08:07:22]GetLastDocTimeStamp 1729584375 [08:07:22]current date 1729584447 [08:07:22]FM_GetShiftState [08:07:22]SAM_PROTO_GetShiftState [08:07:22]wFMCommunicate request_size=4 [08:07:22]MH_SAM_APDU [08:07:22]CAPDU: 80 13 01 00 [08:07:22]Write to MH i2c: E2 08 00 62 40 80 13 01 00 00 00 00 00 1F [08:07:22]Write i2c OK [08:07:22]MH_I2C_Read... [08:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:22]Read from MH i2c: E2 [08:07:22]MH_I2C_Read... [08:07:22]Read from MH i2c: E2 0E 00 [08:07:22]MH_I2C_Read... [08:07:22]Read from MH i2c: E2 0E 00 62 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0D [08:07:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:07:22]wFMCommunicate OK [08:07:22]SAM_PROTO_GetShiftState done [08:07:22]FM_GetShiftState done [08:07:22]opened in 1729555832 [08:07:22]opened+sec_in_day 1729642232 [08:07:22]quantity*price = 0 [08:07:22]sum+1 = 1 [08:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 51 22.10.2024 08:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70103 ФПД: 142492337196856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70103&fm=142492337196856&tin=02508201610067®Number=0000000000156251&sum=0 [08:07:23]StoreToDocumentArchive [08:07:23]shift 195 fd 70103 [08:07:23]save to /storage/0195/doc_00070103 [08:07:23]save last doc name /storage/0195/doc_00070103 to /storage/kkm_last_doc_name [08:07:23]save OK [08:07:23]Clear old archive folders... [08:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:23]tlvbuf is 01208760 [08:07:23]SAM_PROTO_ClearQueue [08:07:23]wFMCommunicate request_size=4 [08:07:23]MH_SAM_APDU [08:07:23]CAPDU: 80 09 00 00 [08:07:23]Write to MH i2c: E2 08 00 6F 40 80 09 00 00 00 00 00 00 21 [08:07:23]Write i2c OK [08:07:23]MH_I2C_Read... [08:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:23]Read from MH i2c: E2 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: E2 03 00 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: E2 03 00 6F 40 00 90 00 23 [08:07:23]RAPDU: 90 00 [08:07:23]wFMCommunicate OK [08:07:23]SAM_PROTO_ClearQueue done [08:07:23]KKMCreateOFDPacket [08:07:23]OFDProtocolAddRootSTLVToBuf [08:07:23]FM_MakeSignedData [08:07:23]FM_MakeSignedData [08:07:23]SAM_PROTO_SignData [08:07:23]wFMCommunicate request_size=4 [08:07:23]MH_SAM_APDU [08:07:23]CAPDU: 80 0D 01 02 [08:07:23]Write to MH i2c: E2 08 00 70 40 80 0D 01 02 00 00 00 00 29 [08:07:23]Write i2c OK [08:07:23]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 70 40 00 90 00 24 [08:07:24]RAPDU: 90 00 [08:07:24]wFMCommunicate OK [08:07:24]wFMCommunicate request_size=255 [08:07:24]MH_SAM_APDU [08:07: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 88 13 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 33 00 00 00 F4 03 04 00 3F 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 11 01 00 35 04 06 00 81 [08:07:24]Write to MH i2c: E2 02 01 71 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 88 13 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 33 00 00 00 F4 03 04 00 3F 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 11 01 00 35 04 06 00 81 00 00 42 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [08:07:24]RAPDU: 90 00 [08:07:24]wFMCommunicate OK [08:07:24]wFMCommunicate request_size=10 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 0D 02 02 05 98 95 24 4F 38 [08:07:24]Write to MH i2c: E2 0D 00 72 40 80 0D 02 02 05 00 98 95 24 4F 38 00 00 0E [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [08:07:24]RAPDU: 90 00 [08:07:24]wFMCommunicate OK [08:07:24]wFMCommunicate request_size=4 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 0D 03 02 [08:07:24]Write to MH i2c: E2 08 00 73 40 80 0D 03 02 00 00 00 00 2E [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 0B 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 0B 00 73 40 00 9B B5 C1 49 63 8D 75 27 90 00 15 [08:07:24]RAPDU: 9B B5 C1 49 63 8D 75 27 90 00 [08:07:24]wFMCommunicate OK [08:07:24]SAM_PROTO_SignData done [08:07:24]FM_MakeSignedData done [08:07:24]CreateOFDProtocolMessage [08:07:24]wFMCommunicate request_size=4 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 11 00 00 [08:07:24]Write to MH i2c: E2 08 00 74 40 80 11 00 00 00 00 00 00 2E [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 17 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 17 00 74 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [08:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:24]wFMCommunicate OK [08:07:24]CreateOFDProtocolMessage done [08:07:24]OFDSenderStorePacket 70103 [08:07:24]StoreOFDPacket docnum=70103 [08:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F3 D3 07 01 56 66 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 13 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 33 00 00 00 F4 03 04 00 3F 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 11 01 00 35 04 06 00 81 98 95 24 4F 38 9B B5 C1 49 63 8D 75 27 [08:07:24]CheckFolder [08:07:24]dirname=/storage/ofd_packets [08:07:24]CheckFolder done [08:07:24]ProducePacketName [08:07:24]name=ofd_packets/00070103 [08:07:24]NVStorageSaveData ofd_packets/00070103 [08:07:24]File name is /storage/ofd_packets/00070103 [08:07:24]Write 301 bytes [08:07:24]NVStorageSaveData done [08:07:24]OFDSenderStorePacket done [08:07:24]KKMCreateOFDPacket done [08:07:24]NVStorageSaveData kkm_last_timestamp [08:07:24]File name is /storage/kkm_last_timestamp [08:07:24]Write 4 bytes [08:07:24]NVStorageSaveData done [08:07:24]ExternCall_PrintAddStr [08:07:24]wPrintStart [08:07:24]Write to MH i2c: 01 00 00 75 40 B5 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]OFD Sender: Processing packet 70103 [packets to send 18, broken 17] [08:07:24]ProducePacketName [08:07:24]name=ofd_packets/00070103 [08:07:24]OFD Sender: To server: pG, [08:07:24]CommunicateWithHost lk.salyk.kg:30040 [08:07:24]ConnectInit lk.salyk.kg [08:07:24]Read from MH i2c: 01 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: 01 07 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: 01 07 00 75 40 00 00 00 00 00 FF 0F CA [08:07:24]RasterBufferAndPrint [08:07:24]line Счет N : (1)2885869 [08:07:24]line ИНН: 02508201610067 [08:07:24]line Контрольно-Кассовый Чек [08:07:24]line ПРОДАЖА [08:07:24]line ТРК (МРК, ГНК) : 42 [08:07:24]line Товар: 2710124130 [08:07:24]line Аи-92-К-5 [08:07:24]line 5.000 * 0.00 [08:07:24]line = 0.00 [08:07:24]line НДС 12% НСП 1% [08:07:24]line > о реализуемом товаре [08:07:24]line ИТОГО: 0.00 [08:07:24]line НСП 1% : 0.00 [08:07:24]line НДС 12% : 0.00 [08:07:24]line Наличными: 0.00 [08:07:24]line Безнал.: 0.00 [08:07:24]line Место: АЗС № 85 "Партнер Нефть" [08:07:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:07:24]line СНО: Общий режим [08:07:24]line Чек 51 22.10.2024 08:07 [08:07:24]line Смена: 195 ФФД: 1.0 [08:07:24]line ЗНМ: 0300000167 [08:07:24]line РНМ: 0000000000156251 [08:07:24]line Версия ККМ: v1.0 [08:07:24]line Талоны: ТК ГПНА Online [08:07:24]line 30100970 [08:07:24]line ФМ: 0000000000963346 [08:07:24]line ФД: 70103 [08:07:24]line ФПД: 142492337196856 [08:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70103&fm=142492337196856&tin=02508201610067®Number=0000000000156251&sum=0 [08:07:24]written 0, free lines is 4095 [08:07:24]Connected sock=10 [08:07: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 34 36 0F 01 00 00 F3 D3 07 01 56 66 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 13 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 33 00 00 00 F4 03 04 00 3F 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 11 01 00 35 04 06 00 81 98 95 24 4F 38 9B B5 C1 49 63 8D 75 27 [08:07: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 34 36 4F 00 00 00 AA 6B 47 00 62 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 11 01 00 F4 03 04 00 E0 06 17 67 B6 04 01 00 00 91 53 79 B6 53 F4 5D 62 [08:07:24]CommunicateWithHost err = 0 [08:07:24]CheckOFDResponse [08:07:24]1017 (14) - 77093643461234 [08:07:24]1041 (16) - 0000000000963346 [08:07:24]1040 (4) - 70103 [08:07:24]1012 (4) - 22.10.2024 01:58 [08:07:24]1206 (1) - 0 [08:07:24]OFD Sender: Remove packet 70103 [08:07:24]ProducePacketName [08:07:24]name=ofd_packets/00070103 [08:07:24]NVStorageDeleteData [08:07:24]Write to MH i2c: 01 00 00 9F 40 DF [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: 01 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: 01 07 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: 01 07 00 9F 40 00 00 00 00 00 FA 0C EC [08:07:24]RasterBufferAndPrint [08:07:24]line [08:07:24]line [08:07:24]line [08:07:24]line [08:07:24]line [08:07:24]written 0, free lines is 3328 [08:07:24]MH_Cut [08:07:24]Write to MH i2c: D1 01 00 A6 40 01 B8 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: D1 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: D1 01 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: D1 01 00 A6 40 00 B7 [08:07:24]Write to MH i2c: 01 00 00 A7 40 E7 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:25]OFD Sender: No OFD packet to send [08:07:25]*** Cut start [08:07:25]*** Partial cut [08:07:25]*** CUTSNS_PIN = 1 [08:07:25]*** CUTSNS_PIN = 0 [08:07:25]*** Brake cut motor [08:07:26]Read from MH i2c: 01 [08:07:26]MH_I2C_Read... [08:07:26]*** Stop cut motor [08:07:26]*** Cut end [08:07:26]Read from MH i2c: 01 07 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: 01 07 00 A7 40 00 00 00 00 00 FF 0F FC [08:07:26]process_action close_receipt done [08:07:26]requested_data is exist [08:07:26]produce_requested_data [08:07:26]requested_item fm.sn is exist - process it [08:07:26]wFMCommunicate request_size=4 [08:07:26]MH_SAM_APDU [08:07:26]CAPDU: 80 11 00 00 [08:07:26]Write to MH i2c: E2 08 00 A8 40 80 11 00 00 00 00 00 00 62 [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:26]Read from MH i2c: E2 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 17 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 17 00 A8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [08:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:26]wFMCommunicate OK [08:07:26]requested_item fd.num is exist - process it [08:07:26]SAM_PROTO_GetFieldsCounters [08:07:26]wFMCommunicate request_size=4 [08:07:26]MH_SAM_APDU [08:07:26]CAPDU: 80 13 00 00 [08:07:26]Write to MH i2c: E2 08 00 A9 40 80 13 00 00 00 00 00 00 65 [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:26]Read from MH i2c: E2 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 62 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 62 00 A9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 11 01 00 0E 04 04 00 C3 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 C5 [08:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 11 01 00 0E 04 04 00 C3 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 [08:07:26]wFMCommunicate OK [08:07:26]SAM_PROTO_GetFieldsCounters done [08:07:26]requested_item shift.num is exist - process it [08:07:26]requested_item shift.opened is exist - process it [08:07:26]req_shift_opened [08:07:26]FM_GetShiftState [08:07:26]SAM_PROTO_GetShiftState [08:07:26]wFMCommunicate request_size=4 [08:07:26]MH_SAM_APDU [08:07:26]CAPDU: 80 13 01 00 [08:07:26]Write to MH i2c: E2 08 00 AA 40 80 13 01 00 00 00 00 00 67 [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:26]Read from MH i2c: E2 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 0E 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: E2 0E 00 AA 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 55 [08:07:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:07:26]wFMCommunicate OK [08:07:26]SAM_PROTO_GetShiftState done [08:07:26]FM_GetShiftState done [08:07:26]req_shift_opened done [08:07:26]requested_item shift.open_date is exist - process it [08:07:26]req_shift_open_date [08:07:26]req_shift_open_date done [08:07:26]produce_requested_data done [08:07:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70103,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:07:26]process_action_free close_receipt [08:07:26]json_value_free [08:07:26]json_value_free done [08:07:26]process_json_proto returns [08:07:26]Send response to host [08:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70103,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:07:26]free response buf [08:07:26]execute_script done [08:07:26]execute_script returns [08:07:26]free content buf [08:07:26]Sock 7.Close socket [08:07:26]Sock 7.Thread stoped [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:44]accept exits with 9 [08:07:44]New connection [08:07:44]New thread 3067026788 created [08:07:44]Thread 3067170148 joined [08:07:44]Waiting for new connection... [08:07:44] Sock 9.Parse request [08:07:44]Sock 9.Check first char [08:07:44]Sock 9.First char is OK [08:07:44]request: POST /json_proto HTTP/1.0 [08:07:44]Method: POST [08:07:44]URL: /json_proto [08:07:44]Method is POST - this is cgi request [08:07:44]url: /json_proto [08:07:44]query_string will be loaded in cgi processing [08:07:44]execute_cgi json_proto POST (null) [08:07:44]execute_cgi path=json_proto method=POST [08:07:44]POST find Content-Length [08:07:44]Host: 172.17.50.3:8080 [08:07:44]Content-Length: 678 [08:07:44]Content-Type: application/json [08:07:44] [08:07:44]POST finish read [08:07:44]Found Content-Length = 678 [08:07:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:07:44]execute_script... [08:07: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)2885870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:07:44]POST & json_proto [08:07:44]process_json_proto [08:07:44]json parsed OK: [08:07:44]protocol is kg_v1.0 [08:07:44]action value=close_receipt [08:07:44]process_action close_receipt [08:07:44]cmd_close_receipt [08:07:44]MH_GetDate [08:07:44]Write to MH i2c: F0 00 00 AB 40 DA [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: F0 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: F0 09 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: F0 09 00 AB 40 00 54 5D 17 67 6B 98 1E 66 99 [08:07:44]GetLastDocTimeStamp 1729584447 [08:07:44]current date 1729584468 [08:07:44]FM_GetShiftState [08:07:44]SAM_PROTO_GetShiftState [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 13 01 00 [08:07:44]Write to MH i2c: E2 08 00 AC 40 80 13 01 00 00 00 00 00 69 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0E 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0E 00 AC 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 57 [08:07:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:07:44]wFMCommunicate OK [08:07:44]SAM_PROTO_GetShiftState done [08:07:44]FM_GetShiftState done [08:07:44]opened in 1729555832 [08:07:44]opened+sec_in_day 1729642232 [08:07:44]quantity*price = 40006 [08:07:44]sum+1 = 40007 [08:07:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 52 22.10.2024 08:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70104 ФПД: 98815099433073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70104&fm=98815099433073&tin=02508201610067®Number=0000000000156251&sum=40000 [08:07:45]StoreToDocumentArchive [08:07:45]shift 195 fd 70104 [08:07:45]save to /storage/0195/doc_00070104 [08:07:45]save last doc name /storage/0195/doc_00070104 to /storage/kkm_last_doc_name [08:07:45]save OK [08:07:45]Clear old archive folders... [08:07:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:45]tlvbuf is 0114EF90 [08:07:45]SAM_PROTO_ClearQueue [08:07:45]wFMCommunicate request_size=4 [08:07:45]MH_SAM_APDU [08:07:45]CAPDU: 80 09 00 00 [08:07:45]Write to MH i2c: E2 08 00 B9 40 80 09 00 00 00 00 00 00 6B [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:45]Read from MH i2c: E2 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 03 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 03 00 B9 40 00 90 00 6D [08:07:45]RAPDU: 90 00 [08:07:45]wFMCommunicate OK [08:07:45]SAM_PROTO_ClearQueue done [08:07:45]KKMCreateOFDPacket [08:07:45]OFDProtocolAddRootSTLVToBuf [08:07:45]FM_MakeSignedData [08:07:45]FM_MakeSignedData [08:07:45]SAM_PROTO_SignData [08:07:45]wFMCommunicate request_size=4 [08:07:45]MH_SAM_APDU [08:07:45]CAPDU: 80 0D 01 02 [08:07:45]Write to MH i2c: E2 08 00 BA 40 80 0D 01 02 00 00 00 00 73 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:45]Read from MH i2c: E2 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 03 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 03 00 BA 40 00 90 00 6E [08:07:45]RAPDU: 90 00 [08:07:45]wFMCommunicate OK [08:07:45]wFMCommunicate request_size=255 [08:07:45]MH_SAM_APDU [08:07:45]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 34 00 00 00 F4 03 04 00 54 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 11 01 00 35 04 06 00 59 [08:07:45]Write to MH i2c: E2 02 01 BB 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 34 00 00 00 F4 03 04 00 54 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 11 01 00 35 04 06 00 59 00 00 34 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 BB 40 00 90 00 6F [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]wFMCommunicate request_size=10 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 02 02 05 DF 2E E6 70 71 [08:07:46]Write to MH i2c: E2 0D 00 BC 40 80 0D 02 02 05 00 DF 2E E6 70 71 00 00 54 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 BC 40 00 90 00 70 [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 03 02 [08:07:46]Write to MH i2c: E2 08 00 BD 40 80 0D 03 02 00 00 00 00 78 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0B 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0B 00 BD 40 00 90 76 F4 9B 02 E5 F5 5C 90 00 46 [08:07:46]RAPDU: 90 76 F4 9B 02 E5 F5 5C 90 00 [08:07:46]wFMCommunicate OK [08:07:46]SAM_PROTO_SignData done [08:07:46]FM_MakeSignedData done [08:07:46]CreateOFDProtocolMessage [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 11 00 00 [08:07:46]Write to MH i2c: E2 08 00 BE 40 80 11 00 00 00 00 00 00 78 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 17 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 17 00 BE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [08:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:46]wFMCommunicate OK [08:07:46]CreateOFDProtocolMessage done [08:07:46]OFDSenderStorePacket 70104 [08:07:46]StoreOFDPacket docnum=70104 [08:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 42 07 01 E5 7B 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 34 00 00 00 F4 03 04 00 54 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 11 01 00 35 04 06 00 59 DF 2E E6 70 71 90 76 F4 9B 02 E5 F5 5C [08:07:46]CheckFolder [08:07:46]dirname=/storage/ofd_packets [08:07:46]CheckFolder done [08:07:46]ProducePacketName [08:07:46]name=ofd_packets/00070104 [08:07:46]NVStorageSaveData ofd_packets/00070104 [08:07:46]File name is /storage/ofd_packets/00070104 [08:07:46]Write 301 bytes [08:07:46]NVStorageSaveData done [08:07:46]OFDSenderStorePacket done [08:07:46]KKMCreateOFDPacket done [08:07:46]NVStorageSaveData kkm_last_timestamp [08:07:46]File name is /storage/kkm_last_timestamp [08:07:46]Write 4 bytes [08:07:46]NVStorageSaveData done [08:07:46]ExternCall_PrintAddStr [08:07:46]wPrintStart [08:07:46]Write to MH i2c: 01 00 00 BF 40 FF [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 07 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 07 00 BF 40 00 00 00 00 00 FF 0F 14 [08:07:46]RasterBufferAndPrint [08:07:46]line Счет N : (1)2885870 [08:07:46]line ИНН: 02508201610067 [08:07:46]line Контрольно-Кассовый Чек [08:07:46]line ПРОДАЖА [08:07:46]line ТРК (МРК, ГНК) : 12 [08:07:46]line Товар: 2710124130 [08:07:46]line Аи-92-К-5 [08:07:46]line 5.980 * 66.90 [08:07:46]line = 400.06 [08:07:46]line НДС 12% НСП 1% [08:07:46]line > о реализуемом товаре [08:07:46]line ОКРУГЛЕНИЕ: -0.06 [08:07:46]line ИТОГО: 400.00 [08:07:46]line Внесено: 400.00 [08:07:46]line СДАЧА: 0.00 [08:07:46]line НСП 1% : 3.54 [08:07:46]line НДС 12% : 42.48 [08:07:46]line Наличными: 400.00 [08:07:46]line Безнал.: 0.00 [08:07:46]line Место: АЗС № 85 "Партнер Нефть" [08:07:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:07:46]line СНО: Общий режим [08:07:46]line Чек 52 22.10.2024 08:07 [08:07:46]line Смена: 195 ФФД: 1.0 [08:07:46]line ЗНМ: 0300000167 [08:07:46]line РНМ: 0000000000156251 [08:07:46]line Версия ККМ: v1.0 [08:07:46]line ФМ: 0000000000963346 [08:07:46]line ФД: 70104 [08:07:46]line ФПД: 98815099433073 [08:07:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70104&fm=98815099433073&tin=02508201610067®Number=0000000000156251&sum=40000 [08:07:46]OFD Sender: Processing packet 70104 [packets to send 18, broken 17] [08:07:46]ProducePacketName [08:07:46]name=ofd_packets/00070104 [08:07:46]OFD Sender: To server: pG, [08:07:46]CommunicateWithHost lk.salyk.kg:30040 [08:07:46]ConnectInit lk.salyk.kg [08:07:46]written 0, free lines is 4095 [08:07:46]Connected sock=7 [08:07: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 34 36 0F 01 00 00 F8 42 07 01 E5 7B 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 34 00 00 00 F4 03 04 00 54 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 11 01 00 35 04 06 00 59 DF 2E E6 70 71 90 76 F4 9B 02 E5 F5 5C [08:07: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 34 36 4F 00 00 00 3C 3D 47 00 EE EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 11 01 00 F4 03 04 00 F6 06 17 67 B6 04 01 00 00 6A 28 88 BC 4D 5D CB A3 [08:07:46]CommunicateWithHost err = 0 [08:07:46]CheckOFDResponse [08:07:46]1017 (14) - 77093643461234 [08:07:46]1041 (16) - 0000000000963346 [08:07:46]1040 (4) - 70104 [08:07:46]1012 (4) - 22.10.2024 01:59 [08:07:46]1206 (1) - 0 [08:07:46]OFD Sender: Remove packet 70104 [08:07:46]ProducePacketName [08:07:46]name=ofd_packets/00070104 [08:07:46]NVStorageDeleteData [08:07:47]Write to MH i2c: 01 00 00 EA 40 2A [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 07 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 07 00 EA 40 00 00 00 00 00 F7 0C 34 [08:07:47]RasterBufferAndPrint [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]written 0, free lines is 3329 [08:07:47]MH_Cut [08:07:47]Write to MH i2c: D1 01 00 F1 40 01 03 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 01 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 01 00 F1 40 00 02 [08:07:47]Write to MH i2c: 01 00 00 F2 40 32 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]OFD Sender: No OFD packet to send [08:07:47]*** Cut start [08:07:47]*** Partial cut [08:07:47]*** CUTSNS_PIN = 1 [08:07:47]*** CUTSNS_PIN = 0 [08:07:48]*** Brake cut motor [08:07:48]Read from MH i2c: 01 [08:07:48]MH_I2C_Read... [08:07:48]*** Stop cut motor [08:07:48]*** Cut end [08:07:48]Read from MH i2c: 01 07 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: 01 07 00 F2 40 00 00 00 00 00 FF 0F 47 [08:07:48]process_action close_receipt done [08:07:48]requested_data is exist [08:07:48]produce_requested_data [08:07:48]requested_item fm.sn is exist - process it [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 11 00 00 [08:07:48]Write to MH i2c: E2 08 00 F3 40 80 11 00 00 00 00 00 00 AD [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 17 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 17 00 F3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [08:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:48]wFMCommunicate OK [08:07:48]requested_item fd.num is exist - process it [08:07:48]SAM_PROTO_GetFieldsCounters [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 13 00 00 [08:07:48]Write to MH i2c: E2 08 00 F4 40 80 13 00 00 00 00 00 00 B0 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 62 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 62 00 F4 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 11 01 00 0E 04 04 00 C3 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 14 [08:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 11 01 00 0E 04 04 00 C3 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 [08:07:48]wFMCommunicate OK [08:07:48]SAM_PROTO_GetFieldsCounters done [08:07:48]requested_item shift.num is exist - process it [08:07:48]requested_item shift.opened is exist - process it [08:07:48]req_shift_opened [08:07:48]FM_GetShiftState [08:07:48]SAM_PROTO_GetShiftState [08:07:48]wFMCommunicate request_size=4 [08:07:48]MH_SAM_APDU [08:07:48]CAPDU: 80 13 01 00 [08:07:48]Write to MH i2c: E2 08 00 F5 40 80 13 01 00 00 00 00 00 B2 [08:07:48]Write i2c OK [08:07:48]MH_I2C_Read... [08:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:48]Read from MH i2c: E2 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 0E 00 [08:07:48]MH_I2C_Read... [08:07:48]Read from MH i2c: E2 0E 00 F5 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A0 [08:07:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:07:48]wFMCommunicate OK [08:07:48]SAM_PROTO_GetShiftState done [08:07:48]FM_GetShiftState done [08:07:48]req_shift_opened done [08:07:48]requested_item shift.open_date is exist - process it [08:07:48]req_shift_open_date [08:07:48]req_shift_open_date done [08:07:48]produce_requested_data done [08:07:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70104,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:07:48]process_action_free close_receipt [08:07:48]json_value_free [08:07:48]json_value_free done [08:07:48]process_json_proto returns [08:07:48]Send response to host [08:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70104,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:07:48]free response buf [08:07:48]execute_script done [08:07:48]execute_script returns [08:07:48]free content buf [08:07:48]Sock 9.Close socket [08:07:48]Sock 9.Thread stoped [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:34]int [08:08:34]Write to MH i2c: 01 00 00 F6 40 36 [08:08:34]*** FLAG_PRN_PAP1 set [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 F6 40 00 01 00 00 00 FF 0F 4C [08:08:34]state=0 [08:08:34]No paper [08:08:34]int [08:08:34]Write to MH i2c: 01 00 00 F7 40 37 [08:08:34]*** FLAG_PRN_PAP2 set [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 F7 40 00 03 00 00 00 FF 0F 4F [08:08:34]state=0 [08:08:34]No paper [08:08:34]Cover opened [08:08:34]int [08:08:34]Write to MH i2c: 01 00 00 F8 40 38 [08:08:34]*** FLAG_PRN_PAP2 reset [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 F8 40 00 01 00 00 00 FF 0F 4E [08:08:34]state=3 [08:08:34]No paper [08:08:34]Cover closed [08:08:34]int [08:08:34]Write to MH i2c: 01 00 00 F9 40 39 [08:08:34]*** FLAG_PRN_PAP2 set [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 F9 40 00 03 00 00 00 FF 0F 51 [08:08:34]state=0 [08:08:34]No paper [08:08:34]Cover opened [08:08:37]OFD Sender: No OFD packet to send [08:08:37]int [08:08:37]Write to MH i2c: 01 00 00 FA 40 3A [08:08:37]*** FLAG_PRN_PAP2 reset [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 FA 40 00 01 00 00 00 FF 0F 50 [08:08:37]state=3 [08:08:37]No paper [08:08:37]Cover closed [08:08:37]int [08:08:37]Write to MH i2c: 01 00 00 FB 40 3B [08:08:37]*** FLAG_PRN_PAP1 reset [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 FB 40 00 00 00 00 00 FF 0F 50 [08:08:37]state=0 [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:03]accept exits with 10 [08:09:03]New connection [08:09:03]New thread 3067170148 created [08:09:03]Thread 3067026788 joined [08:09:03]Waiting for new connection... [08:09:03] Sock 10.Parse request [08:09:03]Sock 10.Check first char [08:09:03]Sock 10.First char is OK [08:09:03]request: POST /json_proto HTTP/1.0 [08:09:03]Method: POST [08:09:03]URL: /json_proto [08:09:03]Method is POST - this is cgi request [08:09:03]url: /json_proto [08:09:03]query_string will be loaded in cgi processing [08:09:03]execute_cgi json_proto POST (null) [08:09:03]execute_cgi path=json_proto method=POST [08:09:03]POST find Content-Length [08:09:03]Host: 172.17.50.3:8080 [08:09:03]Content-Length: 770 [08:09:03]Content-Type: application/json [08:09:03] [08:09:03]POST finish read [08:09:03]Found Content-Length = 770 [08:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:03]execute_script... [08:09: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)2885871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:03]POST & json_proto [08:09:03]process_json_proto [08:09:03]json parsed OK: [08:09:03]protocol is kg_v1.0 [08:09:03]action value=close_receipt [08:09:03]process_action close_receipt [08:09:03]cmd_close_receipt [08:09:03]MH_GetDate [08:09:03]Write to MH i2c: F0 00 00 FC 40 2B [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 09 00 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 09 00 FC 40 00 A4 5D 17 67 6B 98 1E 66 3A [08:09:03]GetLastDocTimeStamp 1729584468 [08:09:03]current date 1729584548 [08:09:03]FM_GetShiftState [08:09:03]SAM_PROTO_GetShiftState [08:09:03]wFMCommunicate request_size=4 [08:09:03]MH_SAM_APDU [08:09:03]CAPDU: 80 13 01 00 [08:09:03]Write to MH i2c: E2 08 00 FD 40 80 13 01 00 00 00 00 00 BA [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:04]Read from MH i2c: E2 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 0E 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 0E 00 FD 40 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A8 [08:09:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:09:04]wFMCommunicate OK [08:09:04]SAM_PROTO_GetShiftState done [08:09:04]FM_GetShiftState done [08:09:04]opened in 1729555832 [08:09:04]opened+sec_in_day 1729642232 [08:09:04]quantity*price = 200031 [08:09:04]sum+1 = 200032 [08:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 53 22.10.2024 08:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70105 ФПД: 176016511972410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70105&fm=176016511972410&tin=02508201610067®Number=0000000000156251&sum=200031 [08:09:05]StoreToDocumentArchive [08:09:05]shift 195 fd 70105 [08:09:05]save to /storage/0195/doc_00070105 [08:09:05]save last doc name /storage/0195/doc_00070105 to /storage/kkm_last_doc_name [08:09:05]save OK [08:09:05]Clear old archive folders... [08:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:05]tlvbuf is 011D17A0 [08:09:05]SAM_PROTO_ClearQueue [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 09 00 00 [08:09:05]Write to MH i2c: E2 08 00 0A 41 80 09 00 00 00 00 00 00 BD [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 0A 41 00 90 00 BF [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]SAM_PROTO_ClearQueue done [08:09:05]KKMCreateOFDPacket [08:09:05]OFDProtocolAddRootSTLVToBuf [08:09:05]FM_MakeSignedData [08:09:05]FM_MakeSignedData [08:09:05]SAM_PROTO_SignData [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 0D 01 02 [08:09:05]Write to MH i2c: E2 08 00 0B 41 80 0D 01 02 00 00 00 00 C5 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 0B 41 00 90 00 C0 [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]wFMCommunicate request_size=255 [08:09:05]MH_SAM_APDU [08:09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A4 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 11 01 00 35 04 06 00 A0 [08:09:05]Write to MH i2c: E2 02 01 0C 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A4 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 11 01 00 35 04 06 00 A0 00 00 D0 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 0C 41 00 90 00 C1 [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]wFMCommunicate request_size=10 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 0D 02 02 05 16 09 AB B4 3A [08:09:05]Write to MH i2c: E2 0D 00 0D 41 80 0D 02 02 05 00 16 09 AB B4 3A 00 00 8A [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 0D 41 00 90 00 C2 [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 0D 03 02 [08:09:05]Write to MH i2c: E2 08 00 0E 41 80 0D 03 02 00 00 00 00 CA [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 0B 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 0B 00 0E 41 00 4B F0 E2 23 8A 01 AA 34 90 00 74 [08:09:05]RAPDU: 4B F0 E2 23 8A 01 AA 34 90 00 [08:09:05]wFMCommunicate OK [08:09:05]SAM_PROTO_SignData done [08:09:05]FM_MakeSignedData done [08:09:05]CreateOFDProtocolMessage [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 11 00 00 [08:09:05]Write to MH i2c: E2 08 00 0F 41 80 11 00 00 00 00 00 00 CA [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 17 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 17 00 0F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [08:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:09:05]wFMCommunicate OK [08:09:05]CreateOFDProtocolMessage done [08:09:05]OFDSenderStorePacket 70105 [08:09:05]StoreOFDPacket docnum=70105 [08:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA D4 07 01 25 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A4 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 11 01 00 35 04 06 00 A0 16 09 AB B4 3A 4B F0 E2 23 8A 01 AA 34 [08:09:05]CheckFolder [08:09:05]dirname=/storage/ofd_packets [08:09:05]CheckFolder done [08:09:05]ProducePacketName [08:09:05]name=ofd_packets/00070105 [08:09:05]NVStorageSaveData ofd_packets/00070105 [08:09:05]File name is /storage/ofd_packets/00070105 [08:09:05]Write 301 bytes [08:09:05]NVStorageSaveData done [08:09:05]OFDSenderStorePacket done [08:09:05]KKMCreateOFDPacket done [08:09:05]NVStorageSaveData kkm_last_timestamp [08:09:05]File name is /storage/kkm_last_timestamp [08:09:05]Write 4 bytes [08:09:05]NVStorageSaveData done [08:09:05]ExternCall_PrintAddStr [08:09:05]wPrintStart [08:09:05]Write to MH i2c: 01 00 00 10 41 51 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 07 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 07 00 10 41 00 00 00 00 00 FF 0F 66 [08:09:05]RasterBufferAndPrint [08:09:05]line Счет N : (1)2885871 [08:09:05]line ИНН: 02508201610067 [08:09:05]line Контрольно-Кассовый Чек [08:09:05]line ПРОДАЖА [08:09:05]line ТРК (МРК, ГНК) : 22 [08:09:05]line Товар: 2710124130 [08:09:05]line Аи-92-К-5 [08:09:05]line 29.900 * 66.90 [08:09:05]line = 2000.31 [08:09:05]line НДС 12% НСП 1% [08:09:05]line > о реализуемом товаре [08:09:05]line ИТОГО: 2000.31 [08:09:05]line НСП 1% : 17.70 [08:09:05]line НДС 12% : 212.42 [08:09:05]line Наличными: 0.00 [08:09:05]line Безнал.: 2000.31 [08:09:05]line Место: АЗС № 85 "Партнер Нефть" [08:09:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:09:05]line СНО: Общий режим [08:09:05]line Чек 53 22.10.2024 08:09 [08:09:05]line Смена: 195 ФФД: 1.0 [08:09:05]line ЗНМ: 0300000167 [08:09:05]line РНМ: 0000000000156251 [08:09:05]line Версия ККМ: v1.0 [08:09:05]line Платежная система: Mbank [08:09:05]line ФМ: 0000000000963346 [08:09:05]line ФД: 70105 [08:09:05]line ФПД: 176016511972410 [08:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70105&fm=176016511972410&tin=02508201610067®Number=0000000000156251&sum=200031 [08:09:06]OFD Sender: Processing packet 70105 [packets to send 18, broken 17] [08:09:06]ProducePacketName [08:09:06]name=ofd_packets/00070105 [08:09:06]OFD Sender: To server: pG, [08:09:06]CommunicateWithHost lk.salyk.kg:30040 [08:09:06]ConnectInit lk.salyk.kg [08:09:06]written 0, free lines is 4095 [08:09:06]Connected sock=9 [08:09: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 34 36 0F 01 00 00 EA D4 07 01 25 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 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 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A4 5D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 11 01 00 35 04 06 00 A0 16 09 AB B4 3A 4B F0 E2 23 8A 01 AA 34 [08:09: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 34 36 4F 00 00 00 D2 D3 47 00 2E 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 34 36 10 04 04 00 D9 11 01 00 F4 03 04 00 45 07 17 67 B6 04 01 00 00 BB 91 B2 9F 83 1E C2 2B [08:09:06]CommunicateWithHost err = 0 [08:09:06]CheckOFDResponse [08:09:06]1017 (14) - 77093643461234 [08:09:06]1041 (16) - 0000000000963346 [08:09:06]1040 (4) - 70105 [08:09:06]1012 (4) - 22.10.2024 02:00 [08:09:06]1206 (1) - 0 [08:09:06]OFD Sender: Remove packet 70105 [08:09:06]ProducePacketName [08:09:06]name=ofd_packets/00070105 [08:09:06]NVStorageDeleteData [08:09:06]Write to MH i2c: 01 00 00 39 41 7A [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 07 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 07 00 39 41 00 00 00 00 00 17 0D A5 [08:09:06]RasterBufferAndPrint [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]written 0, free lines is 3359 [08:09:06]MH_Cut [08:09:06]Write to MH i2c: D1 01 00 40 41 01 53 [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 01 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 01 00 40 41 00 52 [08:09:06]Write to MH i2c: 01 00 00 41 41 82 [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]OFD Sender: No OFD packet to send [08:09:07]*** Cut start [08:09:07]*** Partial cut [08:09:07]*** CUTSNS_PIN = 1 [08:09:07]*** CUTSNS_PIN = 0 [08:09:07]*** Brake cut motor [08:09:07]Read from MH i2c: 01 [08:09:07]MH_I2C_Read... [08:09:07]*** Stop cut motor [08:09:07]*** Cut end [08:09:07]Read from MH i2c: 01 07 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: 01 07 00 41 41 00 00 00 00 00 FF 0F 97 [08:09:07]process_action close_receipt done [08:09:07]requested_data is exist [08:09:07]produce_requested_data [08:09:07]requested_item fm.sn is exist - process it [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 11 00 00 [08:09:07]Write to MH i2c: E2 08 00 42 41 80 11 00 00 00 00 00 00 FD [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:07]Read from MH i2c: E2 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 17 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 17 00 42 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [08:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:09:07]wFMCommunicate OK [08:09:07]requested_item fd.num is exist - process it [08:09:07]SAM_PROTO_GetFieldsCounters [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 13 00 00 [08:09:07]Write to MH i2c: E2 08 00 43 41 80 13 00 00 00 00 00 00 00 [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:07]Read from MH i2c: E2 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 62 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 62 00 43 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 11 01 00 0E 04 04 00 C3 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 68 [08:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 11 01 00 0E 04 04 00 C3 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 [08:09:07]wFMCommunicate OK [08:09:07]SAM_PROTO_GetFieldsCounters done [08:09:07]requested_item shift.num is exist - process it [08:09:07]requested_item shift.opened is exist - process it [08:09:07]req_shift_opened [08:09:07]FM_GetShiftState [08:09:07]SAM_PROTO_GetShiftState [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 13 01 00 [08:09:07]Write to MH i2c: E2 08 00 44 41 80 13 01 00 00 00 00 00 02 [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:08]Read from MH i2c: E2 [08:09:08]MH_I2C_Read... [08:09:08]Read from MH i2c: E2 0E 00 [08:09:08]MH_I2C_Read... [08:09:08]Read from MH i2c: E2 0E 00 44 41 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F0 [08:09:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:09:08]wFMCommunicate OK [08:09:08]SAM_PROTO_GetShiftState done [08:09:08]FM_GetShiftState done [08:09:08]req_shift_opened done [08:09:08]requested_item shift.open_date is exist - process it [08:09:08]req_shift_open_date [08:09:08]req_shift_open_date done [08:09:08]produce_requested_data done [08:09:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70105,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:09:08]process_action_free close_receipt [08:09:08]json_value_free [08:09:08]json_value_free done [08:09:08]process_json_proto returns [08:09:08]Send response to host [08:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70105,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:09:08]free response buf [08:09:08]execute_script done [08:09:08]execute_script returns [08:09:08]free content buf [08:09:08]Sock 10.Close socket [08:09:08]Sock 10.Thread stoped [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:39]accept exits with 7 [08:10:39]New connection [08:10:39]New thread 3067026788 created [08:10:39]Thread 3067170148 joined [08:10:39]Waiting for new connection... [08:10:39] Sock 7.Parse request [08:10:39]Sock 7.Check first char [08:10:39]Sock 7.First char is OK [08:10:39]request: POST /json_proto HTTP/1.0 [08:10:39]Method: POST [08:10:39]URL: /json_proto [08:10:39]Method is POST - this is cgi request [08:10:39]url: /json_proto [08:10:39]query_string will be loaded in cgi processing [08:10:39]execute_cgi json_proto POST (null) [08:10:39]execute_cgi path=json_proto method=POST [08:10:39]POST find Content-Length [08:10:39]Host: 172.17.50.3:8080 [08:10:39]Content-Length: 680 [08:10:39]Content-Type: application/json [08:10:39] [08:10:39]POST finish read [08:10:39]Found Content-Length = 680 [08:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885872", "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" ] } } [08:10:39]execute_script... [08:10: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)2885872", "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" ] } } [08:10:39]POST & json_proto [08:10:39]process_json_proto [08:10:39]json parsed OK: [08:10:39]protocol is kg_v1.0 [08:10:39]action value=close_receipt [08:10:39]process_action close_receipt [08:10:39]cmd_close_receipt [08:10:39]MH_GetDate [08:10:39]Write to MH i2c: F0 00 00 45 41 75 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 09 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 09 00 45 41 00 03 5E 17 67 6B 98 1E 66 E4 [08:10:39]GetLastDocTimeStamp 1729584548 [08:10:39]current date 1729584643 [08:10:39]FM_GetShiftState [08:10:39]SAM_PROTO_GetShiftState [08:10:39]wFMCommunicate request_size=4 [08:10:39]MH_SAM_APDU [08:10:39]CAPDU: 80 13 01 00 [08:10:39]Write to MH i2c: E2 08 00 46 41 80 13 01 00 00 00 00 00 04 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:39]Read from MH i2c: E2 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 0E 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 0E 00 46 41 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F2 [08:10:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:10:39]wFMCommunicate OK [08:10:39]SAM_PROTO_GetShiftState done [08:10:39]FM_GetShiftState done [08:10:39]opened in 1729555832 [08:10:39]opened+sec_in_day 1729642232 [08:10:39]quantity*price = 100050 [08:10:39]sum+1 = 100052 [08:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 54 22.10.2024 08:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70106 ФПД: 171780245854532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081043&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70106&fm=171780245854532&tin=02508201610067®Number=0000000000156251&sum=100000 [08:10:40]StoreToDocumentArchive [08:10:40]shift 195 fd 70106 [08:10:40]save to /storage/0195/doc_00070106 [08:10:40]save last doc name /storage/0195/doc_00070106 to /storage/kkm_last_doc_name [08:10:40]save OK [08:10:40]Clear old archive folders... [08:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:10:40]tlvbuf is 0112D700 [08:10:40]SAM_PROTO_ClearQueue [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 09 00 00 [08:10:40]Write to MH i2c: E2 08 00 53 41 80 09 00 00 00 00 00 00 06 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 53 41 00 90 00 08 [08:10:40]RAPDU: 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_ClearQueue done [08:10:40]KKMCreateOFDPacket [08:10:40]OFDProtocolAddRootSTLVToBuf [08:10:40]FM_MakeSignedData [08:10:40]FM_MakeSignedData [08:10:40]SAM_PROTO_SignData [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 0D 01 02 [08:10:40]Write to MH i2c: E2 08 00 54 41 80 0D 01 02 00 00 00 00 0E [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 54 41 00 90 00 09 [08:10:40]RAPDU: 90 00 [08:10:40]wFMCommunicate OK [08:10:40]wFMCommunicate request_size=255 [08:10:40]MH_SAM_APDU [08:10:40]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 36 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 11 01 00 35 04 06 00 9C 3B B4 88 [08:10:40]Write to MH i2c: E2 02 01 55 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 36 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 11 01 00 35 04 06 00 9C 3B B4 88 00 00 64 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 55 41 00 90 00 0A [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=7 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 02 02 02 99 44 [08:10:41]Write to MH i2c: E2 0A 00 56 41 80 0D 02 02 02 00 99 44 00 00 F2 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 56 41 00 90 00 0B [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 03 02 [08:10:41]Write to MH i2c: E2 08 00 57 41 80 0D 03 02 00 00 00 00 13 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 57 41 00 02 05 E8 86 0A 87 EA 6A 90 00 6E [08:10:41]RAPDU: 02 05 E8 86 0A 87 EA 6A 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_SignData done [08:10:41]FM_MakeSignedData done [08:10:41]CreateOFDProtocolMessage [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 11 00 00 [08:10:41]Write to MH i2c: E2 08 00 58 41 80 11 00 00 00 00 00 00 13 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 58 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [08:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:10:41]wFMCommunicate OK [08:10:41]CreateOFDProtocolMessage done [08:10:41]OFDSenderStorePacket 70106 [08:10:41]StoreOFDPacket docnum=70106 [08:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70106,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:10:43]free response buf [08:10:43]execute_script done [08:10:43]execute_script returns [08:10:43]free content buf [08:10:43]Sock 7.Close socket [08:10:43]Sock 7.Thread stoped [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:01]recv_with_timeout no data received [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:16]ConnectInit Can't connect to host [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:26]accept exits with 9 [08:21:26]New connection [08:21:26]New thread 3067170148 created [08:21:26]Thread 3067026788 joined [08:21:26]Waiting for new connection... [08:21:26] Sock 9.Parse request [08:21:26]Sock 9.Check first char [08:21:26]Sock 9.First char is OK [08:21:26]request: POST /json_proto HTTP/1.0 [08:21:26]Method: POST [08:21:26]URL: /json_proto [08:21:26]Method is POST - this is cgi request [08:21:26]url: /json_proto [08:21:26]query_string will be loaded in cgi processing [08:21:26]execute_cgi json_proto POST (null) [08:21:26]execute_cgi path=json_proto method=POST [08:21:26]POST find Content-Length [08:21:26]Host: 172.17.50.3:8080 [08:21:26]Content-Length: 689 [08:21:26]Content-Type: application/json [08:21:26] [08:21:26]POST finish read [08:21:26]Found Content-Length = 689 [08:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:26]execute_script... [08:21: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)2885873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:26]POST & json_proto [08:21:26]process_json_proto [08:21:26]json parsed OK: [08:21:26]protocol is kg_v1.0 [08:21:26]action value=close_receipt [08:21:26]process_action close_receipt [08:21:26]cmd_close_receipt [08:21:26]MH_GetDate [08:21:26]Write to MH i2c: F0 00 00 90 41 C0 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 09 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 09 00 90 41 00 8B 60 17 67 6B 98 1E 66 B9 [08:21:26]GetLastDocTimeStamp 1729584643 [08:21:26]current date 1729585291 [08:21:26]FM_GetShiftState [08:21:26]SAM_PROTO_GetShiftState [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 01 00 [08:21:26]Write to MH i2c: E2 08 00 91 41 80 13 01 00 00 00 00 00 4F [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 91 41 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3D [08:21:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetShiftState done [08:21:26]FM_GetShiftState done [08:21:26]opened in 1729555832 [08:21:26]opened+sec_in_day 1729642232 [08:21:26]quantity*price = 220020 [08:21:26]sum+1 = 220021 [08:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.65 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 55 22.10.2024 08:21 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70107 ФПД: 113147724268789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70107&fm=113147724268789&tin=02508201610067®Number=0000000000156251&sum=220000 [08:21:27]StoreToDocumentArchive [08:21:27]shift 195 fd 70107 [08:21:27]save to /storage/0195/doc_00070107 [08:21:27]save last doc name /storage/0195/doc_00070107 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=257 [08:21:27]tlvbuf is B6F8D380 [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 9E 41 80 09 00 00 00 00 00 00 51 [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 9E 41 00 90 00 53 [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 9F 41 80 0D 01 02 00 00 00 00 59 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]OFD Sender: No OFD packet to send [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 9F 41 00 90 00 54 [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 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 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 8B 60 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 11 01 [08:21:27]Write to MH i2c: E2 02 01 A0 41 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 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 8B 60 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 11 01 00 00 B2 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 03 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 03 00 A0 41 00 90 00 55 [08:21:28]RAPDU: 90 00 [08:21:28]wFMCommunicate OK [08:21:28]wFMCommunicate request_size=16 [08:21:28]MH_SAM_APDU [08:21:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 E8 41 E9 84 F5 [08:21:28]Write to MH i2c: E2 13 00 A1 41 80 0D 02 02 0B 00 00 35 04 06 00 66 E8 41 E9 84 F5 00 00 A2 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 03 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 03 00 A1 41 00 90 00 56 [08:21:28]RAPDU: 90 00 [08:21:28]wFMCommunicate OK [08:21:28]wFMCommunicate request_size=4 [08:21:28]MH_SAM_APDU [08:21:28]CAPDU: 80 0D 03 02 [08:21:28]Write to MH i2c: E2 08 00 A2 41 80 0D 03 02 00 00 00 00 5E [08:21:28]Write i2c OK [08:21:28]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 A2 41 00 86 56 E1 BF E8 F2 6E 69 90 00 8C [08:21:28]RAPDU: 86 56 E1 BF E8 F2 6E 69 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 A3 41 80 11 00 00 00 00 00 00 5E [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 A3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [08:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:21:28]wFMCommunicate OK [08:21:28]CreateOFDProtocolMessage done [08:21:28]OFDSenderStorePacket 70107 [08:21:28]StoreOFDPacket docnum=70107 [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 34 36 15 01 00 00 27 6F 0D 01 85 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 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 8B 60 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 11 01 00 35 04 06 00 66 E8 41 E9 84 F5 86 56 E1 BF E8 F2 6E 69 [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/00070107 [08:21:28]NVStorageSaveData ofd_packets/00070107 [08:21:28]File name is /storage/ofd_packets/00070107 [08:21:28]Write 307 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 A4 41 E5 [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 A4 41 00 00 00 00 00 FF 0F FA [08:21:28]RasterBufferAndPrint [08:21:28]line Счет N : (1)2885873 [08:21:28]line ИНН: 02508201610067 [08:21:28]line Контрольно-Кассовый Чек [08:21:28]line ПРОДАЖА [08:21:28]line ТРК (МРК, ГНК) : 31 [08:21:28]line Товар: 2710194240 [08:21:28]line D-ENERGY Дт-К-2 [08:21:28]line 28.500 * 77.20 [08:21:28]line = 2200.20 [08:21:28]line НДС 12% НСП 1% [08:21:28]line > о реализуемом товаре [08:21:28]line ОКРУГЛЕНИЕ: -0.20 [08:21:28]line ИТОГО: 2200.00 [08:21:28]line Внесено: 2200.00 [08:21:28]line СДАЧА: 0.00 [08:21:28]line НСП 1% : 19.47 [08:21:28]line НДС 12% : 233.65 [08:21:28]line Наличными: 2200.00 [08:21:28]line Безнал.: 0.00 [08:21:28]line Место: АЗС № 85 "Партнер Нефть" [08:21:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:21:28]line СНО: Общий режим [08:21:28]line Чек 55 22.10.2024 08:21 [08:21:28]line Смена: 195 ФФД: 1.0 [08:21:28]line ЗНМ: 0300000167 [08:21:28]line РНМ: 0000000000156251 [08:21:28]line Версия ККМ: v1.0 [08:21:28]line ФМ: 0000000000963346 [08:21:28]line ФД: 70107 [08:21:28]line ФПД: 113147724268789 [08:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70107&fm=113147724268789&tin=02508201610067®Number=0000000000156251&sum=220000 [08:21:28]OFD Sender: Processing packet 70107 [packets to send 18, broken 17] [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00070107 [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]written 0, free lines is 4095 [08:21:28]Connected sock=10 [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 34 36 15 01 00 00 27 6F 0D 01 85 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 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 8B 60 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 11 01 00 35 04 06 00 66 E8 41 E9 84 F5 86 56 E1 BF E8 F2 6E 69 [08:21: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 34 36 4F 00 00 00 46 C0 47 00 E9 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 34 36 10 04 04 00 DB 11 01 00 F4 03 04 00 2C 0A 17 67 B6 04 01 00 00 D7 DF FD 44 50 F5 E1 2C [08:21:29]CommunicateWithHost err = 0 [08:21:29]CheckOFDResponse [08:21:29]1017 (14) - 77093643461234 [08:21:29]1041 (16) - 0000000000963346 [08:21:29]1040 (4) - 70107 [08:21:29]1012 (4) - 22.10.2024 02:13 [08:21:29]1206 (1) - 0 [08:21:29]OFD Sender: Remove packet 70107 [08:21:29]ProducePacketName [08:21:29]name=ofd_packets/00070107 [08:21:29]NVStorageDeleteData [08:21:29]Write to MH i2c: 01 00 00 CF 41 10 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: 01 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: 01 07 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: 01 07 00 CF 41 00 00 00 00 00 FD 0C 20 [08:21:29]RasterBufferAndPrint [08:21:29]line [08:21:29]line [08:21:29]line [08:21:29]line [08:21:29]line [08:21:29]written 0, free lines is 3334 [08:21:29]MH_Cut [08:21:29]Write to MH i2c: D1 01 00 D6 41 01 E9 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: D1 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: D1 01 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: D1 01 00 D6 41 00 E8 [08:21:29]Write to MH i2c: 01 00 00 D7 41 18 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]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:30]*** 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 D7 41 00 00 00 00 00 FF 0F 2D [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 D8 41 80 11 00 00 00 00 00 00 93 [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 D8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [08:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 D9 41 80 13 00 00 00 00 00 00 96 [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 D9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 11 01 00 0E 04 04 00 C3 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 06 [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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 11 01 00 0E 04 04 00 C3 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 [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 DA 41 80 13 01 00 00 00 00 00 98 [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 DA 41 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 86 [08:21:30]RAPDU: 09 00 01 78 ED 16 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":"0000000000963346","fd.num":70107,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [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":"0000000000963346","fd.num":70107,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [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 9.Close socket [08:21:30]Sock 9.Thread stoped [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:41]recv_with_timeout no data received [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]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:59]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:53]accept exits with 7 [08:30:53]New connection [08:30:53]New thread 3067026788 created [08:30:53]Thread 3067170148 joined [08:30:53]Waiting for new connection... [08:30:53] Sock 7.Parse request [08:30:53]Sock 7.Check first char [08:30:53]Sock 7.First char is OK [08:30:53]request: POST /json_proto HTTP/1.0 [08:30:53]Method: POST [08:30:53]URL: /json_proto [08:30:53]Method is POST - this is cgi request [08:30:53]url: /json_proto [08:30:53]query_string will be loaded in cgi processing [08:30:53]execute_cgi json_proto POST (null) [08:30:53]execute_cgi path=json_proto method=POST [08:30:53]POST find Content-Length [08:30:53]Host: 172.17.50.3:8080 [08:30:53]Content-Length: 681 [08:30:53]Content-Type: application/json [08:30:53] [08:30:53]POST finish read [08:30:53]Found Content-Length = 681 [08:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.660, "sum" : 220.17, "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" ] } } [08:30:53]execute_script... [08: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)2885874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.660, "sum" : 220.17, "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" ] } } [08:30:53]POST & json_proto [08:30:53]process_json_proto [08:30:53]json parsed OK: [08:30:53]protocol is kg_v1.0 [08:30:53]action value=close_receipt [08:30:53]process_action close_receipt [08:30:53]cmd_close_receipt [08:30:53]MH_GetDate [08:30:53]Write to MH i2c: F0 00 00 DB 41 0B [08:30:53]Write i2c OK [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: F0 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: F0 09 00 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: F0 09 00 DB 41 00 C1 62 17 67 6B 98 1E 66 3C [08:30:53]GetLastDocTimeStamp 1729585291 [08:30:53]current date 1729585857 [08:30:53]FM_GetShiftState [08:30:53]SAM_PROTO_GetShiftState [08:30:53]wFMCommunicate request_size=4 [08:30:53]MH_SAM_APDU [08:30:53]CAPDU: 80 13 01 00 [08:30:53]Write to MH i2c: E2 08 00 DC 41 80 13 01 00 00 00 00 00 9A [08:30:53]Write i2c OK [08:30:53]MH_I2C_Read... [08:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:53]Read from MH i2c: E2 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: E2 0E 00 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: E2 0E 00 DC 41 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 88 [08:30:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:30:53]wFMCommunicate OK [08:30:53]SAM_PROTO_GetShiftState done [08:30:53]FM_GetShiftState done [08:30:53]opened in 1729555832 [08:30:53]opened+sec_in_day 1729642232 [08:30:53]quantity*price = 22017 [08:30:53]sum+1 = 22018 [08:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.38 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 56 22.10.2024 08:30 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70108 ФПД: 123874890536598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70108&fm=123874890536598&tin=02508201610067®Number=0000000000156251&sum=22000 [08:30:54]StoreToDocumentArchive [08:30:54]shift 195 fd 70108 [08:30:54]save to /storage/0195/doc_00070108 [08:30:54]save last doc name /storage/0195/doc_00070108 to /storage/kkm_last_doc_name [08:30:54]save OK [08:30:54]Clear old archive folders... [08:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:30:54]tlvbuf is B6F8D4F0 [08:30:54]SAM_PROTO_ClearQueue [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 09 00 00 [08:30:54]Write to MH i2c: E2 08 00 E9 41 80 09 00 00 00 00 00 00 9C [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 E9 41 00 90 00 9E [08:30:54]RAPDU: 90 00 [08:30:54]wFMCommunicate OK [08:30:54]SAM_PROTO_ClearQueue done [08:30:54]KKMCreateOFDPacket [08:30:54]OFDProtocolAddRootSTLVToBuf [08:30:54]FM_MakeSignedData [08:30:54]FM_MakeSignedData [08:30:54]SAM_PROTO_SignData [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 0D 01 02 [08:30:54]Write to MH i2c: E2 08 00 EA 41 80 0D 01 02 00 00 00 00 A4 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 EA 41 00 90 00 9F [08:30:54]RAPDU: 90 00 [08:30:54]wFMCommunicate OK [08:30:54]wFMCommunicate request_size=255 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 01 56 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 22 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 38 00 00 00 F4 03 04 00 C1 62 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 11 01 00 35 04 06 00 70 A9 [08:30:54]Write to MH i2c: E2 02 01 EB 41 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 01 56 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 22 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 38 00 00 00 F4 03 04 00 C1 62 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 11 01 00 35 04 06 00 70 A9 00 00 3B [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 EB 41 00 90 00 A0 [08:30:54]RAPDU: 90 00 [08:30:54]wFMCommunicate OK [08:30:54]wFMCommunicate request_size=9 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 0D 02 02 04 DE D8 D6 96 [08:30:54]Write to MH i2c: E2 0C 00 EC 41 80 0D 02 02 04 00 DE D8 D6 96 00 00 D1 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 03 00 EC 41 00 90 00 A1 [08:30:54]RAPDU: 90 00 [08:30:54]wFMCommunicate OK [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 0D 03 02 [08:30:54]Write to MH i2c: E2 08 00 ED 41 80 0D 03 02 00 00 00 00 A9 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 0B 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 0B 00 ED 41 00 9C 17 F7 EB FE 05 44 6A 90 00 F0 [08:30:54]RAPDU: 9C 17 F7 EB FE 05 44 6A 90 00 [08:30:54]wFMCommunicate OK [08:30:54]SAM_PROTO_SignData done [08:30:54]FM_MakeSignedData done [08:30:54]CreateOFDProtocolMessage [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 11 00 00 [08:30:54]Write to MH i2c: E2 08 00 EE 41 80 11 00 00 00 00 00 00 A9 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 17 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 17 00 EE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [08:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:30:54]wFMCommunicate OK [08:30:54]CreateOFDProtocolMessage done [08:30:54]OFDSenderStorePacket 70108 [08:30:54]StoreOFDPacket docnum=70108 [08:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1D ED 06 01 32 7D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 01 56 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 22 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 38 00 00 00 F4 03 04 00 C1 62 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 11 01 00 35 04 06 00 70 A9 DE D8 D6 96 9C 17 F7 EB FE 05 44 6A [08:30:54]CheckFolder [08:30:54]dirname=/storage/ofd_packets [08:30:54]CheckFolder done [08:30:54]ProducePacketName [08:30:54]name=ofd_packets/00070108 [08:30:54]NVStorageSaveData ofd_packets/00070108 [08:30:54]File name is /storage/ofd_packets/00070108 [08:30:54]Write 300 bytes [08:30:54]NVStorageSaveData done [08:30:54]OFDSenderStorePacket done [08:30:54]KKMCreateOFDPacket done [08:30:54]NVStorageSaveData kkm_last_timestamp [08:30:54]File name is /storage/kkm_last_timestamp [08:30:54]Write 4 bytes [08:30:54]NVStorageSaveData done [08:30:54]ExternCall_PrintAddStr [08:30:54]wPrintStart [08:30:54]Write to MH i2c: 01 00 00 EF 41 30 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: 01 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: 01 07 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: 01 07 00 EF 41 00 00 00 00 00 FF 0F 45 [08:30:54]RasterBufferAndPrint [08:30:54]line Счет N : (1)2885874 [08:30:54]line ИНН: 02508201610067 [08:30:54]line Контрольно-Кассовый Чек [08:30:54]line ПРОДАЖА [08:30:54]line ТРК (МРК, ГНК) : 71 [08:30:54]line Товар: 2711129700 [08:30:54]line ГАЗ-К-3 [08:30:54]line 5.660 * 38.90 [08:30:54]line = 220.17 [08:30:54]line НДС 12% НСП 1% [08:30:54]line > о реализуемом товаре [08:30:54]line ОКРУГЛЕНИЕ: -0.17 [08:30:54]line ИТОГО: 220.00 [08:30:54]line Внесено: 220.00 [08:30:54]line СДАЧА: 0.00 [08:30:54]line НСП 1% : 1.95 [08:30:54]line НДС 12% : 23.38 [08:30:54]line Наличными: 220.00 [08:30:54]line Безнал.: 0.00 [08:30:54]line Место: АЗС № 85 "Партнер Нефть" [08:30:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:30:54]line СНО: Общий режим [08:30:54]line Чек 56 22.10.2024 08:30 [08:30:54]line Смена: 195 ФФД: 1.0 [08:30:54]line ЗНМ: 0300000167 [08:30:54]line РНМ: 0000000000156251 [08:30:54]line Версия ККМ: v1.0 [08:30:54]line ФМ: 0000000000963346 [08:30:54]line ФД: 70108 [08:30:54]line ФПД: 123874890536598 [08:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70108&fm=123874890536598&tin=02508201610067®Number=0000000000156251&sum=22000 [08:30:55]OFD Sender: Processing packet 70108 [packets to send 18, broken 17] [08:30:55]ProducePacketName [08:30:55]name=ofd_packets/00070108 [08:30:55]OFD Sender: To server: pG, [08:30:55]CommunicateWithHost lk.salyk.kg:30040 [08:30:55]ConnectInit lk.salyk.kg [08:30:55]written 0, free lines is 4095 [08:30:55]Connected sock=10 [08: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 34 36 0E 01 00 00 1D ED 06 01 32 7D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 01 56 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 22 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 38 00 00 00 F4 03 04 00 C1 62 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 11 01 00 35 04 06 00 70 A9 DE D8 D6 96 9C 17 F7 EB FE 05 44 6A [08: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 34 36 4F 00 00 00 C3 AB 47 00 31 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 11 01 00 F4 03 04 00 62 0C 17 67 B6 04 01 00 00 E6 E6 2B E6 C6 72 AD 4D [08:30:55]CommunicateWithHost err = 0 [08:30:55]CheckOFDResponse [08:30:55]1017 (14) - 77093643461234 [08:30:55]1041 (16) - 0000000000963346 [08:30:55]1040 (4) - 70108 [08:30:55]1012 (4) - 22.10.2024 02:22 [08:30:55]1206 (1) - 0 [08:30:55]OFD Sender: Remove packet 70108 [08:30:55]ProducePacketName [08:30:55]name=ofd_packets/00070108 [08:30:55]NVStorageDeleteData [08:30:55]Write to MH i2c: 01 00 00 1A 42 5C [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: 01 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: 01 07 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: 01 07 00 1A 42 00 00 00 00 00 EC 0C 5B [08:30:55]RasterBufferAndPrint [08:30:55]line [08:30:55]line [08:30:55]line [08:30:55]line [08:30:55]line [08:30:55]written 0, free lines is 3314 [08:30:55]MH_Cut [08:30:55]Write to MH i2c: D1 01 00 21 42 01 35 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: D1 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: D1 01 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: D1 01 00 21 42 00 34 [08:30:55]Write to MH i2c: 01 00 00 22 42 64 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]OFD Sender: No OFD packet to send [08:30:56]*** Cut start [08:30:56]*** Partial cut [08:30:56]*** CUTSNS_PIN = 1 [08:30:56]*** CUTSNS_PIN = 0 [08:30:56]*** Brake cut motor [08:30:56]Read from MH i2c: 01 [08:30:56]MH_I2C_Read... [08:30:56]*** Stop cut motor [08:30:56]*** Cut end [08:30:56]Read from MH i2c: 01 07 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: 01 07 00 22 42 00 00 00 00 00 FF 0F 79 [08:30:56]process_action close_receipt done [08:30:56]requested_data is exist [08:30:56]produce_requested_data [08:30:56]requested_item fm.sn is exist - process it [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 11 00 00 [08:30:56]Write to MH i2c: E2 08 00 23 42 80 11 00 00 00 00 00 00 DF [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 17 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 17 00 23 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [08:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:30:56]wFMCommunicate OK [08:30:56]requested_item fd.num is exist - process it [08:30:56]SAM_PROTO_GetFieldsCounters [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 13 00 00 [08:30:56]Write to MH i2c: E2 08 00 24 42 80 13 00 00 00 00 00 00 E2 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 62 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 62 00 24 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 11 01 00 0E 04 04 00 C3 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 56 [08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 11 01 00 0E 04 04 00 C3 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 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_GetFieldsCounters done [08:30:57]requested_item shift.num is exist - process it [08:30:57]requested_item shift.opened is exist - process it [08:30:57]req_shift_opened [08:30:57]FM_GetShiftState [08:30:57]SAM_PROTO_GetShiftState [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 13 01 00 [08:30:57]Write to MH i2c: E2 08 00 25 42 80 13 01 00 00 00 00 00 E4 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0E 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0E 00 25 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D2 [08:30:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_GetShiftState done [08:30:57]FM_GetShiftState done [08:30:57]req_shift_opened done [08:30:57]requested_item shift.open_date is exist - process it [08:30:57]req_shift_open_date [08:30:57]req_shift_open_date done [08:30:57]produce_requested_data done [08:30:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70108,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:30:57]process_action_free close_receipt [08:30:57]json_value_free [08:30:57]json_value_free done [08:30:57]process_json_proto returns [08:30:57]Send response to host [08:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70108,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:30:57]free response buf [08:30:57]execute_script done [08:30:57]execute_script returns [08:30:57]free content buf [08:30:57]Sock 7.Close socket [08:30:57]Sock 7.Thread stoped [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:36]accept exits with 9 [08:32:36]New connection [08:32:36]New thread 3067170148 created [08:32:36] Sock 9.Parse request [08:32:36]Thread 3067026788 joined [08:32:36]Sock 9.Check first char [08:32:36]Waiting for new connection... [08:32:36]Sock 9.First char is OK [08:32:36]request: POST /json_proto HTTP/1.0 [08:32:36]Method: POST [08:32:36]URL: /json_proto [08:32:36]Method is POST - this is cgi request [08:32:36]url: /json_proto [08:32:36]query_string will be loaded in cgi processing [08:32:36]execute_cgi json_proto POST (null) [08:32:36]execute_cgi path=json_proto method=POST [08:32:36]POST find Content-Length [08:32:36]Host: 172.17.50.3:8080 [08:32:36]Content-Length: 678 [08:32:36]Content-Type: application/json [08:32:36] [08:32:36]POST finish read [08:32:36]Found Content-Length = 678 [08:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [08:32:36]execute_script... [08:32: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)2885875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [08:32:36]POST & json_proto [08:32:36]process_json_proto [08:32:36]json parsed OK: [08:32:36]protocol is kg_v1.0 [08:32:36]action value=close_receipt [08:32:36]process_action close_receipt [08:32:36]cmd_close_receipt [08:32:36]MH_GetDate [08:32:36]Write to MH i2c: F0 00 00 26 42 57 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: F0 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: F0 09 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: F0 09 00 26 42 00 28 63 17 67 6B 98 1E 66 F0 [08:32:36]GetLastDocTimeStamp 1729585857 [08:32:36]current date 1729585960 [08:32:36]FM_GetShiftState [08:32:36]SAM_PROTO_GetShiftState [08:32:36]wFMCommunicate request_size=4 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 13 01 00 [08:32:36]Write to MH i2c: E2 08 00 27 42 80 13 01 00 00 00 00 00 E6 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 0E 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 0E 00 27 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D4 [08:32:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:32:36]wFMCommunicate OK [08:32:36]SAM_PROTO_GetShiftState done [08:32:36]FM_GetShiftState done [08:32:36]opened in 1729555832 [08:32:36]opened+sec_in_day 1729642232 [08:32:36]quantity*price = 50010 [08:32:36]sum+1 = 50012 [08:32:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 57 22.10.2024 08:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70109 ФПД: 72377709826859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70109&fm=72377709826859&tin=02508201610067®Number=0000000000156251&sum=50000 [08:32:37]StoreToDocumentArchive [08:32:37]shift 195 fd 70109 [08:32:37]save to /storage/0195/doc_00070109 [08:32:37]save last doc name /storage/0195/doc_00070109 to /storage/kkm_last_doc_name [08:32:37]save OK [08:32:37]Clear old archive folders... [08:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:37]tlvbuf is 01230650 [08:32:37]SAM_PROTO_ClearQueue [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 09 00 00 [08:32:37]Write to MH i2c: E2 08 00 34 42 80 09 00 00 00 00 00 00 E8 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 34 42 00 90 00 EA [08:32:37]RAPDU: 90 00 [08:32:37]wFMCommunicate OK [08:32:37]SAM_PROTO_ClearQueue done [08:32:37]KKMCreateOFDPacket [08:32:37]OFDProtocolAddRootSTLVToBuf [08:32:37]FM_MakeSignedData [08:32:37]FM_MakeSignedData [08:32:37]SAM_PROTO_SignData [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 0D 01 02 [08:32:37]Write to MH i2c: E2 08 00 35 42 80 0D 01 02 00 00 00 00 F0 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 35 42 00 90 00 EB [08:32:37]RAPDU: 90 00 [08:32:37]wFMCommunicate OK [08:32:37]wFMCommunicate request_size=255 [08:32:37]MH_SAM_APDU [08:32: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 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 39 00 00 00 F4 03 04 00 29 63 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 11 01 00 35 04 06 00 41 [08:32:37]Write to MH i2c: E2 02 01 36 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 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 39 00 00 00 F4 03 04 00 29 63 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 11 01 00 35 04 06 00 41 00 00 87 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 03 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [08:32:38]RAPDU: 90 00 [08:32:38]wFMCommunicate OK [08:32:38]wFMCommunicate request_size=10 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 0D 02 02 05 D3 BF AF 13 2B [08:32:38]Write to MH i2c: E2 0D 00 37 42 80 0D 02 02 05 00 D3 BF AF 13 2B 00 00 7C [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 03 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 03 00 37 42 00 90 00 ED [08:32:38]RAPDU: 90 00 [08:32:38]wFMCommunicate OK [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 0D 03 02 [08:32:38]Write to MH i2c: E2 08 00 38 42 80 0D 03 02 00 00 00 00 F5 [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0B 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0B 00 38 42 00 7A 63 93 3D 6F 81 87 F0 90 00 0A [08:32:38]RAPDU: 7A 63 93 3D 6F 81 87 F0 90 00 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_SignData done [08:32:38]FM_MakeSignedData done [08:32:38]CreateOFDProtocolMessage [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 11 00 00 [08:32:38]Write to MH i2c: E2 08 00 39 42 80 11 00 00 00 00 00 00 F5 [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 17 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 17 00 39 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [08:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:32:38]wFMCommunicate OK [08:32:38]CreateOFDProtocolMessage done [08:32:38]OFDSenderStorePacket 70109 [08:32:38]StoreOFDPacket docnum=70109 [08:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C F0 07 01 28 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 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 39 00 00 00 F4 03 04 00 29 63 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 11 01 00 35 04 06 00 41 D3 BF AF 13 2B 7A 63 93 3D 6F 81 87 F0 [08:32:38]CheckFolder [08:32:38]dirname=/storage/ofd_packets [08:32:38]CheckFolder done [08:32:38]ProducePacketName [08:32:38]name=ofd_packets/00070109 [08:32:38]NVStorageSaveData ofd_packets/00070109 [08:32:38]File name is /storage/ofd_packets/00070109 [08:32:38]Write 301 bytes [08:32:38]NVStorageSaveData done [08:32:38]OFDSenderStorePacket done [08:32:38]KKMCreateOFDPacket done [08:32:38]NVStorageSaveData kkm_last_timestamp [08:32:38]File name is /storage/kkm_last_timestamp [08:32:38]Write 4 bytes [08:32:38]NVStorageSaveData done [08:32:38]ExternCall_PrintAddStr [08:32:38]wPrintStart [08:32:38]Write to MH i2c: 01 00 00 3A 42 7C [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 07 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 07 00 3A 42 00 00 00 00 00 FF 0F 91 [08:32:38]RasterBufferAndPrint [08:32:38]line Счет N : (1)2885875 [08:32:38]line ИНН: 02508201610067 [08:32:38]line Контрольно-Кассовый Чек [08:32:38]line ПРОДАЖА [08:32:38]line ТРК (МРК, ГНК) : 33 [08:32:38]line Товар: 2710124500 [08:32:38]line Аи-95-К-5 [08:32:38]line 6.740 * 74.20 [08:32:38]line = 500.11 [08:32:38]line НДС 12% НСП 1% [08:32:38]line > о реализуемом товаре [08:32:38]line ОКРУГЛЕНИЕ: -0.11 [08:32:38]line ИТОГО: 500.00 [08:32:38]line Внесено: 500.00 [08:32:38]line СДАЧА: 0.00 [08:32:38]line НСП 1% : 4.43 [08:32:38]line НДС 12% : 53.11 [08:32:38]line Наличными: 500.00 [08:32:38]line Безнал.: 0.00 [08:32:38]line Место: АЗС № 85 "Партнер Нефть" [08:32:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:32:38]line СНО: Общий режим [08:32:38]line Чек 57 22.10.2024 08:32 [08:32:38]line Смена: 195 ФФД: 1.0 [08:32:38]line ЗНМ: 0300000167 [08:32:38]line РНМ: 0000000000156251 [08:32:38]line Версия ККМ: v1.0 [08:32:38]line ФМ: 0000000000963346 [08:32:38]line ФД: 70109 [08:32:38]line ФПД: 72377709826859 [08:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70109&fm=72377709826859&tin=02508201610067®Number=0000000000156251&sum=50000 [08:32:38]OFD Sender: Processing packet 70109 [packets to send 18, broken 17] [08:32:38]ProducePacketName [08:32:38]name=ofd_packets/00070109 [08:32:38]OFD Sender: To server: pG, [08:32:38]CommunicateWithHost lk.salyk.kg:30040 [08:32:38]ConnectInit lk.salyk.kg [08:32:38]written 0, free lines is 4095 [08:32:38]Connected sock=10 [08:32: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 34 36 0F 01 00 00 4C F0 07 01 28 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 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 39 00 00 00 F4 03 04 00 29 63 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 11 01 00 35 04 06 00 41 D3 BF AF 13 2B 7A 63 93 3D 6F 81 87 F0 [08:32: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 34 36 4F 00 00 00 5C 86 47 00 9C 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 34 36 10 04 04 00 DD 11 01 00 F4 03 04 00 CA 0C 17 67 B6 04 01 00 00 57 0A CC 4D 6E 09 A5 0B [08:32:38]CommunicateWithHost err = 0 [08:32:38]CheckOFDResponse [08:32:38]1017 (14) - 77093643461234 [08:32:38]1041 (16) - 0000000000963346 [08:32:38]1040 (4) - 70109 [08:32:38]1012 (4) - 22.10.2024 02:24 [08:32:38]1206 (1) - 0 [08:32:38]OFD Sender: Remove packet 70109 [08:32:38]ProducePacketName [08:32:38]name=ofd_packets/00070109 [08:32:38]NVStorageDeleteData [08:32:39]Write to MH i2c: 01 00 00 65 42 A7 [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: 01 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: 01 07 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: 01 07 00 65 42 00 00 00 00 00 EF 0C A9 [08:32:39]RasterBufferAndPrint [08:32:39]line [08:32:39]line [08:32:39]line [08:32:39]line [08:32:39]line [08:32:39]written 0, free lines is 3317 [08:32:39]MH_Cut [08:32:39]Write to MH i2c: D1 01 00 6C 42 01 80 [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: D1 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: D1 01 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: D1 01 00 6C 42 00 7F [08:32:39]Write to MH i2c: 01 00 00 6D 42 AF [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]OFD Sender: No OFD packet to send [08:32:39]*** Cut start [08:32:39]*** Partial cut [08:32:39]*** CUTSNS_PIN = 1 [08:32:39]*** CUTSNS_PIN = 0 [08:32:40]*** Brake cut motor [08:32:40]Read from MH i2c: 01 [08:32:40]MH_I2C_Read... [08:32:40]*** Stop cut motor [08:32:40]*** Cut end [08:32:40]Read from MH i2c: 01 07 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: 01 07 00 6D 42 00 00 00 00 00 FF 0F C4 [08:32:40]process_action close_receipt done [08:32:40]requested_data is exist [08:32:40]produce_requested_data [08:32:40]requested_item fm.sn is exist - process it [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 11 00 00 [08:32:40]Write to MH i2c: E2 08 00 6E 42 80 11 00 00 00 00 00 00 2A [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 17 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 17 00 6E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [08:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:32:40]wFMCommunicate OK [08:32:40]requested_item fd.num is exist - process it [08:32:40]SAM_PROTO_GetFieldsCounters [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 13 00 00 [08:32:40]Write to MH i2c: E2 08 00 6F 42 80 13 00 00 00 00 00 00 2D [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 62 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 62 00 6F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 11 01 00 0E 04 04 00 C3 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 A5 [08:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 11 01 00 0E 04 04 00 C3 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 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_GetFieldsCounters done [08:32:40]requested_item shift.num is exist - process it [08:32:40]requested_item shift.opened is exist - process it [08:32:40]req_shift_opened [08:32:40]FM_GetShiftState [08:32:40]SAM_PROTO_GetShiftState [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 13 01 00 [08:32:40]Write to MH i2c: E2 08 00 70 42 80 13 01 00 00 00 00 00 2F [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 70 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1D [08:32:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_GetShiftState done [08:32:40]FM_GetShiftState done [08:32:40]req_shift_opened done [08:32:40]requested_item shift.open_date is exist - process it [08:32:40]req_shift_open_date [08:32:40]req_shift_open_date done [08:32:40]produce_requested_data done [08:32:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70109,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:32:40]process_action_free close_receipt [08:32:40]json_value_free [08:32:40]json_value_free done [08:32:40]process_json_proto returns [08:32:40]Send response to host [08:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70109,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:32:40]free response buf [08:32:40]execute_script done [08:32:40]execute_script returns [08:32:40]free content buf [08:32:40]Sock 9.Close socket [08:32:40]Sock 9.Thread stoped [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]accept exits with 7 [08:36:14]New connection [08:36:14]New thread 3067026788 created [08:36:14]Thread 3067170148 joined [08:36:14]Waiting for new connection... [08:36:14] Sock 7.Parse request [08:36:14]Sock 7.Check first char [08:36:14]Sock 7.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.50.3:8080 [08:36:14]Content-Length: 767 [08:36:14]Content-Type: application/json [08:36:14] [08:36:14]POST finish read [08:36:14]Found Content-Length = 767 [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)2885876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "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)2885876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "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 71 42 A2 [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 71 42 00 02 64 17 67 6B 98 1E 66 16 [08:36:14]GetLastDocTimeStamp 1729585961 [08:36:14]current date 1729586178 [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 72 42 80 13 01 00 00 00 00 00 31 [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 72 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1F [08:36:14]RAPDU: 09 00 01 78 ED 16 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 1729555832 [08:36:14]opened+sec_in_day 1729642232 [08:36:14]quantity*price = 20003 [08:36:14]sum+1 = 20004 [08:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 58 22.10.2024 08:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70110 ФПД: 84619747501820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70110&fm=84619747501820&tin=02508201610067®Number=0000000000156251&sum=20003 [08:36:15]StoreToDocumentArchive [08:36:15]shift 195 fd 70110 [08:36:15]save to /storage/0195/doc_00070110 [08:36:15]save last doc name /storage/0195/doc_00070110 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=251 [08:36:15]tlvbuf is B6F8A300 [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 7F 42 80 09 00 00 00 00 00 00 33 [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 7F 42 00 90 00 35 [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 80 42 80 0D 01 02 00 00 00 00 3B [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]*** iso7816_exchange 80 0D 01 02... 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 80 42 00 90 00 36 [08:36:15]RAPDU: 90 00 [08:36:15]wFMCommunicate OK [08:36:15]wFMCommunicate request_size=255 [08:36:15]MH_SAM_APDU [08:36: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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 03 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 11 01 00 35 04 06 00 4C [08:36:15]Write to MH i2c: E2 02 01 81 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 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 03 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 11 01 00 35 04 06 00 4C 00 00 AA [08:36:15]Write i2c OK [08:36:15]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 81 42 00 90 00 37 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=10 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 05 F6 11 FD A6 FC [08:36:16]Write to MH i2c: E2 0D 00 82 42 80 0D 02 02 05 00 F6 11 FD A6 FC 00 00 EE [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 82 42 00 90 00 38 [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 83 42 80 0D 03 02 00 00 00 00 40 [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 83 42 00 E0 C5 54 3D 73 53 78 3D 90 00 F2 [08:36:16]RAPDU: E0 C5 54 3D 73 53 78 3D 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 84 42 80 11 00 00 00 00 00 00 40 [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 84 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [08:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:36:16]wFMCommunicate OK [08:36:16]CreateOFDProtocolMessage done [08:36:16]OFDSenderStorePacket 70110 [08:36:16]StoreOFDPacket docnum=70110 [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 34 36 0F 01 00 00 B6 95 07 01 D7 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 03 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 11 01 00 35 04 06 00 4C F6 11 FD A6 FC E0 C5 54 3D 73 53 78 3D [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/00070110 [08:36:16]NVStorageSaveData ofd_packets/00070110 [08:36:16]File name is /storage/ofd_packets/00070110 [08:36:16]Write 301 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 85 42 C7 [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 85 42 00 00 00 00 00 FF 0F DC [08:36:16]RasterBufferAndPrint [08:36:16]line Счет N : (1)2885876 [08:36:16]line ИНН: 02508201610067 [08:36:16]line Контрольно-Кассовый Чек [08:36:16]line ПРОДАЖА [08:36:16]line ТРК (МРК, ГНК) : 12 [08:36:16]line Товар: 2710124130 [08:36:16]line Аи-92-К-5 [08:36:16]line 2.990 * 66.90 [08:36:16]line = 200.03 [08:36:16]line НДС 12% НСП 1% [08:36:16]line > о реализуемом товаре [08:36:16]line ИТОГО: 200.03 [08:36:16]line НСП 1% : 1.77 [08:36:16]line НДС 12% : 21.24 [08:36:16]line Наличными: 0.00 [08:36:16]line Безнал.: 200.03 [08:36:16]line Место: АЗС № 85 "Партнер Нефть" [08:36:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:36:16]line СНО: Общий режим [08:36:16]line Чек 58 22.10.2024 08:36 [08:36:16]line Смена: 195 ФФД: 1.0 [08:36:16]line ЗНМ: 0300000167 [08:36:16]line РНМ: 0000000000156251 [08:36:16]line Версия ККМ: v1.0 [08:36:16]line Платежная система: Mbank [08:36:16]line ФМ: 0000000000963346 [08:36:16]line ФД: 70110 [08:36:16]line ФПД: 84619747501820 [08:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70110&fm=84619747501820&tin=02508201610067®Number=0000000000156251&sum=20003 [08:36:16]OFD Sender: Processing packet 70110 [packets to send 18, broken 17] [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00070110 [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 34 36 0F 01 00 00 B6 95 07 01 D7 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 03 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 11 01 00 35 04 06 00 4C F6 11 FD A6 FC E0 C5 54 3D 73 53 78 3D [08:36: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 34 36 4F 00 00 00 04 CF 47 00 B0 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 34 36 10 04 04 00 DE 11 01 00 F4 03 04 00 A4 0D 17 67 B6 04 01 00 00 8D C4 BA 39 5A 64 E4 A9 [08:36:16]CommunicateWithHost err = 0 [08:36:16]CheckOFDResponse [08:36:16]1017 (14) - 77093643461234 [08:36:16]1041 (16) - 0000000000963346 [08:36:16]1040 (4) - 70110 [08:36:16]1012 (4) - 22.10.2024 02:27 [08:36:16]1206 (1) - 0 [08:36:16]OFD Sender: Remove packet 70110 [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00070110 [08:36:16]NVStorageDeleteData [08:36:17]Write to MH i2c: 01 00 00 AE 42 F0 [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 AE 42 00 00 00 00 00 21 0D 25 [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 3367 [08:36:17]MH_Cut [08:36:17]Write to MH i2c: D1 01 00 B5 42 01 C9 [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 B5 42 00 C8 [08:36:17]Write to MH i2c: 01 00 00 B6 42 F8 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]OFD Sender: No OFD packet to send [08:36:17]*** Cut start [08:36:17]*** Partial cut [08:36:17]*** CUTSNS_PIN = 1 [08:36:17]*** CUTSNS_PIN = 0 [08:36:17]*** Brake cut motor [08:36:18]Read from MH i2c: 01 [08:36:18]MH_I2C_Read... [08:36:18]*** Stop cut motor [08:36:18]*** Cut end [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 B6 42 00 00 00 00 00 FF 0F 0D [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 B7 42 80 11 00 00 00 00 00 00 73 [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 B7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 B8 42 80 13 00 00 00 00 00 00 76 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 62 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 62 00 B8 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 11 01 00 0E 04 04 00 C3 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 F2 [08:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 11 01 00 0E 04 04 00 C3 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 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_GetFieldsCounters done [08:36:18]requested_item shift.num is exist - process it [08:36:18]requested_item shift.opened is exist - process it [08:36:18]req_shift_opened [08:36:18]FM_GetShiftState [08:36:18]SAM_PROTO_GetShiftState [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 13 01 00 [08:36:18]Write to MH i2c: E2 08 00 B9 42 80 13 01 00 00 00 00 00 78 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 B9 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 66 [08:36:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_GetShiftState done [08:36:18]FM_GetShiftState done [08:36:18]req_shift_opened done [08:36:18]requested_item shift.open_date is exist - process it [08:36:18]req_shift_open_date [08:36:18]req_shift_open_date done [08:36:18]produce_requested_data done [08:36:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70110,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:36:18]process_action_free close_receipt [08:36:18]json_value_free [08:36:18]json_value_free done [08:36:18]process_json_proto returns [08:36:18]Send response to host [08:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70110,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:36:18]free response buf [08:36:18]execute_script done [08:36:18]execute_script returns [08:36:18]free content buf [08:36:18]Sock 7.Close socket [08:36:18]Sock 7.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:38]accept exits with 9 [08:39:38]New connection [08:39:38]New thread 3067170148 created [08:39:38]Thread 3067026788 joined [08:39:38]Waiting for new connection... [08:39:38] Sock 9.Parse request [08:39:38]Sock 9.Check first char [08:39:38]Sock 9.First char is OK [08:39:38]request: POST /json_proto HTTP/1.0 [08:39:38]Method: POST [08:39:38]URL: /json_proto [08:39:38]Method is POST - this is cgi request [08:39:38]url: /json_proto [08:39:38]query_string will be loaded in cgi processing [08:39:38]execute_cgi json_proto POST (null) [08:39:38]execute_cgi path=json_proto method=POST [08:39:38]POST find Content-Length [08:39:38]Host: 172.17.50.3:8080 [08:39:38]Content-Length: 767 [08:39:38]Content-Type: application/json [08:39:38] [08:39:38]POST finish read [08:39:38]Found Content-Length = 767 [08:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "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.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:38]execute_script... [08:39: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)2885877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "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.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:38]POST & json_proto [08:39:38]process_json_proto [08:39:38]json parsed OK: [08:39:38]protocol is kg_v1.0 [08:39:38]action value=close_receipt [08:39:38]process_action close_receipt [08:39:38]cmd_close_receipt [08:39:38]MH_GetDate [08:39:38]Write to MH i2c: F0 00 00 BA 42 EB [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: F0 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: F0 09 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: F0 09 00 BA 42 00 CE 64 17 67 6B 98 1E 66 2B [08:39:38]GetLastDocTimeStamp 1729586179 [08:39:38]current date 1729586382 [08:39:38]FM_GetShiftState [08:39:38]SAM_PROTO_GetShiftState [08:39:38]wFMCommunicate request_size=4 [08:39:38]MH_SAM_APDU [08:39:38]CAPDU: 80 13 01 00 [08:39:38]Write to MH i2c: E2 08 00 BB 42 80 13 01 00 00 00 00 00 7A [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:38]Read from MH i2c: E2 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 0E 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 0E 00 BB 42 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 68 [08:39:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:39:38]wFMCommunicate OK [08:39:38]SAM_PROTO_GetShiftState done [08:39:38]FM_GetShiftState done [08:39:38]opened in 1729555832 [08:39:38]opened+sec_in_day 1729642232 [08:39:38]quantity*price = 15052 [08:39:38]sum+1 = 15054 [08:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.53 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.53 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 59 22.10.2024 08:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70111 ФПД: 157068045478537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70111&fm=157068045478537&tin=02508201610067®Number=0000000000156251&sum=15053 [08:39:39]StoreToDocumentArchive [08:39:39]shift 195 fd 70111 [08:39:39]save to /storage/0195/doc_00070111 [08:39:39]save last doc name /storage/0195/doc_00070111 to /storage/kkm_last_doc_name [08:39:39]save OK [08:39:39]Clear old archive folders... [08:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:39]tlvbuf is 011EB5C0 [08:39:39]SAM_PROTO_ClearQueue [08:39:39]wFMCommunicate request_size=4 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 09 00 00 [08:39:39]Write to MH i2c: E2 08 00 C8 42 80 09 00 00 00 00 00 00 7C [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 C8 42 00 90 00 7E [08:39:39]RAPDU: 90 00 [08:39:39]wFMCommunicate OK [08:39:39]SAM_PROTO_ClearQueue done [08:39:39]KKMCreateOFDPacket [08:39:39]OFDProtocolAddRootSTLVToBuf [08:39:39]FM_MakeSignedData [08:39:39]FM_MakeSignedData [08:39:39]SAM_PROTO_SignData [08:39:39]wFMCommunicate request_size=4 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 0D 01 02 [08:39:39]Write to MH i2c: E2 08 00 C9 42 80 0D 01 02 00 00 00 00 84 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 C9 42 00 90 00 7F [08:39:39]RAPDU: 90 00 [08:39:39]wFMCommunicate OK [08:39:39]wFMCommunicate request_size=255 [08:39:39]MH_SAM_APDU [08:39: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 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 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 11 01 00 35 04 06 00 8E [08:39:39]Write to MH i2c: E2 02 01 CA 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 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 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 11 01 00 35 04 06 00 8E 00 00 A1 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 CA 42 00 90 00 80 [08:39:39]RAPDU: 90 00 [08:39:39]wFMCommunicate OK [08:39:39]wFMCommunicate request_size=10 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 0D 02 02 05 DA 41 0E 6A 89 [08:39:39]Write to MH i2c: E2 0D 00 CB 42 80 0D 02 02 05 00 DA 41 0E 6A 89 00 00 AD [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 03 00 CB 42 00 90 00 81 [08:39:39]RAPDU: 90 00 [08:39:39]wFMCommunicate OK [08:39:39]wFMCommunicate request_size=4 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 0D 03 02 [08:39:39]Write to MH i2c: E2 08 00 CC 42 80 0D 03 02 00 00 00 00 89 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 0B 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 0B 00 CC 42 00 E3 DC BE F1 99 90 6A 9E 90 00 29 [08:39:39]RAPDU: E3 DC BE F1 99 90 6A 9E 90 00 [08:39:39]wFMCommunicate OK [08:39:39]SAM_PROTO_SignData done [08:39:39]FM_MakeSignedData done [08:39:39]CreateOFDProtocolMessage [08:39:39]wFMCommunicate request_size=4 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 11 00 00 [08:39:39]Write to MH i2c: E2 08 00 CD 42 80 11 00 00 00 00 00 00 89 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 17 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 17 00 CD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [08:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:39]wFMCommunicate OK [08:39:39]CreateOFDProtocolMessage done [08:39:39]OFDSenderStorePacket 70111 [08:39:39]StoreOFDPacket docnum=70111 [08:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 5C 07 01 E3 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 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 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 11 01 00 35 04 06 00 8E DA 41 0E 6A 89 E3 DC BE F1 99 90 6A 9E [08:39:39]CheckFolder [08:39:39]dirname=/storage/ofd_packets [08:39:39]CheckFolder done [08:39:39]ProducePacketName [08:39:39]name=ofd_packets/00070111 [08:39:39]NVStorageSaveData ofd_packets/00070111 [08:39:39]File name is /storage/ofd_packets/00070111 [08:39:39]Write 301 bytes [08:39:39]NVStorageSaveData done [08:39:39]OFDSenderStorePacket done [08:39:39]KKMCreateOFDPacket done [08:39:39]NVStorageSaveData kkm_last_timestamp [08:39:39]File name is /storage/kkm_last_timestamp [08:39:39]Write 4 bytes [08:39:39]NVStorageSaveData done [08:39:39]ExternCall_PrintAddStr [08:39:39]wPrintStart [08:39:39]Write to MH i2c: 01 00 00 CE 42 10 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: 01 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: 01 07 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: 01 07 00 CE 42 00 00 00 00 00 FF 0F 25 [08:39:39]RasterBufferAndPrint [08:39:39]line Счет N : (1)2885877 [08:39:39]line ИНН: 02508201610067 [08:39:39]line Контрольно-Кассовый Чек [08:39:39]line ПРОДАЖА [08:39:39]line ТРК (МРК, ГНК) : 12 [08:39:39]line Товар: 2710124130 [08:39:39]line Аи-92-К-5 [08:39:39]line 2.250 * 66.90 [08:39:39]line = 150.53 [08:39:39]line НДС 12% НСП 1% [08:39:39]line > о реализуемом товаре [08:39:39]line ИТОГО: 150.53 [08:39:39]line НСП 1% : 1.33 [08:39:39]line НДС 12% : 15.98 [08:39:39]line Наличными: 0.00 [08:39:39]line Безнал.: 150.53 [08:39:39]line Место: АЗС № 85 "Партнер Нефть" [08:39:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:39:39]line СНО: Общий режим [08:39:39]line Чек 59 22.10.2024 08:39 [08:39:39]line Смена: 195 ФФД: 1.0 [08:39:39]line ЗНМ: 0300000167 [08:39:39]line РНМ: 0000000000156251 [08:39:39]line Версия ККМ: v1.0 [08:39:39]line Платежная система: Mbank [08:39:39]line ФМ: 0000000000963346 [08:39:39]line ФД: 70111 [08:39:39]line ФПД: 157068045478537 [08:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70111&fm=157068045478537&tin=02508201610067®Number=0000000000156251&sum=15053 [08:39:40]OFD Sender: Processing packet 70111 [packets to send 18, broken 17] [08:39:40]ProducePacketName [08:39:40]name=ofd_packets/00070111 [08:39:40]OFD Sender: To server: pG, [08:39:40]CommunicateWithHost lk.salyk.kg:30040 [08:39:40]ConnectInit lk.salyk.kg [08:39:40]written 0, free lines is 4095 [08:39:40]Connected sock=10 [08:39: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 34 36 0F 01 00 00 02 5C 07 01 E3 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 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 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 11 01 00 35 04 06 00 8E DA 41 0E 6A 89 E3 DC BE F1 99 90 6A 9E [08:39: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 34 36 4F 00 00 00 26 EE 47 00 A0 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 11 01 00 F4 03 04 00 6F 0E 17 67 B6 04 01 00 00 09 CB B6 CD F3 57 3D 49 [08:39:40]CommunicateWithHost err = 0 [08:39:40]CheckOFDResponse [08:39:40]1017 (14) - 77093643461234 [08:39:40]1041 (16) - 0000000000963346 [08:39:40]1040 (4) - 70111 [08:39:40]1012 (4) - 22.10.2024 02:31 [08:39:40]1206 (1) - 0 [08:39:40]OFD Sender: Remove packet 70111 [08:39:40]ProducePacketName [08:39:40]name=ofd_packets/00070111 [08:39:40]NVStorageDeleteData [08:39:40]Write to MH i2c: 01 00 00 F7 42 39 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: 01 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: 01 07 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: 01 07 00 F7 42 00 00 00 00 00 1E 0D 6B [08:39:40]RasterBufferAndPrint [08:39:40]line [08:39:40]line [08:39:40]line [08:39:40]line [08:39:40]line [08:39:40]written 0, free lines is 3363 [08:39:40]MH_Cut [08:39:40]Write to MH i2c: D1 01 00 FE 42 01 12 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: D1 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: D1 01 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: D1 01 00 FE 42 00 11 [08:39:40]Write to MH i2c: 01 00 00 FF 42 41 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:41]OFD Sender: No OFD packet to send [08:39:41]*** Cut start [08:39:41]*** Partial cut [08:39:41]*** CUTSNS_PIN = 1 [08:39:41]*** CUTSNS_PIN = 0 [08:39:41]*** Brake cut motor [08:39:41]Read from MH i2c: 01 [08:39:41]MH_I2C_Read... [08:39:41]*** Stop cut motor [08:39:41]*** Cut end [08:39:41]Read from MH i2c: 01 07 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 FF 42 00 00 00 00 00 FF 0F 56 [08:39:41]process_action close_receipt done [08:39:41]requested_data is exist [08:39:41]produce_requested_data [08:39:41]requested_item fm.sn is exist - process it [08:39:41]wFMCommunicate request_size=4 [08:39:41]MH_SAM_APDU [08:39:41]CAPDU: 80 11 00 00 [08:39:41]Write to MH i2c: E2 08 00 00 43 80 11 00 00 00 00 00 00 BD [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:42]Read from MH i2c: E2 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 17 00 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 17 00 00 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [08:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:42]wFMCommunicate OK [08:39:42]requested_item fd.num is exist - process it [08:39:42]SAM_PROTO_GetFieldsCounters [08:39:42]wFMCommunicate request_size=4 [08:39:42]MH_SAM_APDU [08:39:42]CAPDU: 80 13 00 00 [08:39:42]Write to MH i2c: E2 08 00 01 43 80 13 00 00 00 00 00 00 C0 [08:39:42]Write i2c OK [08:39:42]MH_I2C_Read... [08:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:42]Read from MH i2c: E2 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 62 00 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 62 00 01 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 11 01 00 0E 04 04 00 C3 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 40 [08:39: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 11 01 00 0E 04 04 00 C3 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 [08:39:42]wFMCommunicate OK [08:39:42]SAM_PROTO_GetFieldsCounters done [08:39:42]requested_item shift.num is exist - process it [08:39:42]requested_item shift.opened is exist - process it [08:39:42]req_shift_opened [08:39:42]FM_GetShiftState [08:39:42]SAM_PROTO_GetShiftState [08:39:42]wFMCommunicate request_size=4 [08:39:42]MH_SAM_APDU [08:39:42]CAPDU: 80 13 01 00 [08:39:42]Write to MH i2c: E2 08 00 02 43 80 13 01 00 00 00 00 00 C2 [08:39:42]Write i2c OK [08:39:42]MH_I2C_Read... [08:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:42]Read from MH i2c: E2 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 0E 00 [08:39:42]MH_I2C_Read... [08:39:42]Read from MH i2c: E2 0E 00 02 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B0 [08:39:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:39:42]wFMCommunicate OK [08:39:42]SAM_PROTO_GetShiftState done [08:39:42]FM_GetShiftState done [08:39:42]req_shift_opened done [08:39:42]requested_item shift.open_date is exist - process it [08:39:42]req_shift_open_date [08:39:42]req_shift_open_date done [08:39:42]produce_requested_data done [08:39:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70111,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:39:42]process_action_free close_receipt [08:39:42]json_value_free [08:39:42]json_value_free done [08:39:42]process_json_proto returns [08:39:42]Send response to host [08:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70111,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:39:42]free response buf [08:39:42]execute_script done [08:39:42]execute_script returns [08:39:42]free content buf [08:39:42]Sock 9.Close socket [08:39:42]Sock 9.Thread stoped [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:03]accept exits with 7 [08:40:03]New connection [08:40:03]New thread 3067026788 created [08:40:03]Thread 3067170148 joined [08:40:03]Waiting for new connection... [08:40:03] Sock 7.Parse request [08:40:03]Sock 7.Check first char [08:40:03]Sock 7.First char is OK [08:40:03]request: POST /json_proto HTTP/1.0 [08:40:03]Method: POST [08:40:03]URL: /json_proto [08:40:03]Method is POST - this is cgi request [08:40:03]url: /json_proto [08:40:03]query_string will be loaded in cgi processing [08:40:03]execute_cgi json_proto POST (null) [08:40:03]execute_cgi path=json_proto method=POST [08:40:03]POST find Content-Length [08:40:03]Host: 172.17.50.3:8080 [08:40:03]Content-Length: 678 [08:40:03]Content-Type: application/json [08:40:03] [08:40:03]POST finish read [08:40:03]Found Content-Length = 678 [08:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:03]execute_script... [08:40: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)2885878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:03]POST & json_proto [08:40:03]process_json_proto [08:40:03]json parsed OK: [08:40:03]protocol is kg_v1.0 [08:40:03]action value=close_receipt [08:40:03]process_action close_receipt [08:40:03]cmd_close_receipt [08:40:03]MH_GetDate [08:40:03]Write to MH i2c: F0 00 00 03 43 35 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: F0 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: F0 09 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: F0 09 00 03 43 00 E7 64 17 67 6B 98 1E 66 8E [08:40:03]GetLastDocTimeStamp 1729586382 [08:40:03]current date 1729586407 [08:40:03]FM_GetShiftState [08:40:03]SAM_PROTO_GetShiftState [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 13 01 00 [08:40:03]Write to MH i2c: E2 08 00 04 43 80 13 01 00 00 00 00 00 C4 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0E 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0E 00 04 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B2 [08:40:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_GetShiftState done [08:40:03]FM_GetShiftState done [08:40:03]opened in 1729555832 [08:40:03]opened+sec_in_day 1729642232 [08:40:03]quantity*price = 35055 [08:40:03]sum+1 = 35057 [08:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 60 22.10.2024 08:40 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70112 ФПД: 225060911082737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70112&fm=225060911082737&tin=02508201610067®Number=0000000000156251&sum=35000 [08:40:04]StoreToDocumentArchive [08:40:04]shift 195 fd 70112 [08:40:04]save to /storage/0195/doc_00070112 [08:40:04]save last doc name /storage/0195/doc_00070112 to /storage/kkm_last_doc_name [08:40:04]save OK [08:40:04]Clear old archive folders... [08:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:04]tlvbuf is 0111FCE0 [08:40:04]SAM_PROTO_ClearQueue [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 09 00 00 [08:40:04]Write to MH i2c: E2 08 00 11 43 80 09 00 00 00 00 00 00 C6 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 11 43 00 90 00 C8 [08:40:04]RAPDU: 90 00 [08:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_ClearQueue done [08:40:04]KKMCreateOFDPacket [08:40:04]OFDProtocolAddRootSTLVToBuf [08:40:04]FM_MakeSignedData [08:40:04]FM_MakeSignedData [08:40:04]SAM_PROTO_SignData [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 0D 01 02 [08:40:04]Write to MH i2c: E2 08 00 12 43 80 0D 01 02 00 00 00 00 CE [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 12 43 00 90 00 C9 [08:40:04]RAPDU: 90 00 [08:40:04]wFMCommunicate OK [08:40:04]wFMCommunicate request_size=255 [08:40:04]MH_SAM_APDU [08:40: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 11 01 00 35 04 06 00 CC [08:40:04]Write to MH i2c: E2 02 01 13 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 11 01 00 35 04 06 00 CC 00 00 E8 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [08:40:04]RAPDU: 90 00 [08:40:04]wFMCommunicate OK [08:40:04]wFMCommunicate request_size=10 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 0D 02 02 05 B1 13 A8 6C F1 [08:40:04]Write to MH i2c: E2 0D 00 14 43 80 0D 02 02 05 00 B1 13 A8 6C F1 00 00 A4 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [08:40:04]RAPDU: 90 00 [08:40:04]wFMCommunicate OK [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 0D 03 02 [08:40:04]Write to MH i2c: E2 08 00 15 43 80 0D 03 02 00 00 00 00 D3 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0B 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0B 00 15 43 00 E9 81 49 77 F8 D9 FC 35 90 00 00 [08:40:04]RAPDU: E9 81 49 77 F8 D9 FC 35 90 00 [08:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_SignData done [08:40:04]FM_MakeSignedData done [08:40:04]CreateOFDProtocolMessage [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 11 00 00 [08:40:04]Write to MH i2c: E2 08 00 16 43 80 11 00 00 00 00 00 00 D3 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 17 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 17 00 16 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [08:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:40:04]wFMCommunicate OK [08:40:04]CreateOFDProtocolMessage done [08:40:04]OFDSenderStorePacket 70112 [08:40:04]StoreOFDPacket docnum=70112 [08:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 09 EC 07 01 7B 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 11 01 00 35 04 06 00 CC B1 13 A8 6C F1 E9 81 49 77 F8 D9 FC 35 [08:40:04]CheckFolder [08:40:04]dirname=/storage/ofd_packets [08:40:04]CheckFolder done [08:40:04]ProducePacketName [08:40:04]name=ofd_packets/00070112 [08:40:04]NVStorageSaveData ofd_packets/00070112 [08:40:04]File name is /storage/ofd_packets/00070112 [08:40:04]Write 301 bytes [08:40:04]NVStorageSaveData done [08:40:04]OFDSenderStorePacket done [08:40:04]KKMCreateOFDPacket done [08:40:04]NVStorageSaveData kkm_last_timestamp [08:40:04]File name is /storage/kkm_last_timestamp [08:40:04]Write 4 bytes [08:40:04]NVStorageSaveData done [08:40:04]ExternCall_PrintAddStr [08:40:04]wPrintStart [08:40:04]Write to MH i2c: 01 00 00 17 43 5A [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 07 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 07 00 17 43 00 00 00 00 00 FF 0F 6F [08:40:04]RasterBufferAndPrint [08:40:04]line Счет N : (1)2885878 [08:40:04]line ИНН: 02508201610067 [08:40:04]line Контрольно-Кассовый Чек [08:40:04]line ПРОДАЖА [08:40:04]line ТРК (МРК, ГНК) : 12 [08:40:04]line Товар: 2710124130 [08:40:04]line Аи-92-К-5 [08:40:04]line 5.240 * 66.90 [08:40:04]line = 350.56 [08:40:04]line НДС 12% НСП 1% [08:40:04]line > о реализуемом товаре [08:40:04]line ОКРУГЛЕНИЕ: -0.56 [08:40:04]line ИТОГО: 350.00 [08:40:04]line Внесено: 350.00 [08:40:04]line СДАЧА: 0.00 [08:40:04]line НСП 1% : 3.10 [08:40:04]line НДС 12% : 37.23 [08:40:04]line Наличными: 350.00 [08:40:04]line Безнал.: 0.00 [08:40:04]line Место: АЗС № 85 "Партнер Нефть" [08:40:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:40:04]line СНО: Общий режим [08:40:04]line Чек 60 22.10.2024 08:40 [08:40:04]line Смена: 195 ФФД: 1.0 [08:40:04]line ЗНМ: 0300000167 [08:40:04]line РНМ: 0000000000156251 [08:40:04]line Версия ККМ: v1.0 [08:40:04]line ФМ: 0000000000963346 [08:40:04]line ФД: 70112 [08:40:04]line ФПД: 225060911082737 [08:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70112&fm=225060911082737&tin=02508201610067®Number=0000000000156251&sum=35000 [08:40:05]OFD Sender: Processing packet 70112 [packets to send 18, broken 17] [08:40:05]ProducePacketName [08:40:05]name=ofd_packets/00070112 [08:40:05]OFD Sender: To server: pG, [08:40:05]CommunicateWithHost lk.salyk.kg:30040 [08:40:05]ConnectInit lk.salyk.kg [08:40:05]written 0, free lines is 4095 [08:40:05]Connected sock=10 [08:40: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 34 36 0F 01 00 00 09 EC 07 01 7B 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 64 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 11 01 00 35 04 06 00 CC B1 13 A8 6C F1 E9 81 49 77 F8 D9 FC 35 [08:40: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 34 36 4F 00 00 00 23 7D 47 00 9F 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 11 01 00 F4 03 04 00 88 0E 17 67 B6 04 01 00 00 99 47 93 26 EF F5 F4 2B [08:40:05]CommunicateWithHost err = 0 [08:40:05]CheckOFDResponse [08:40:05]1017 (14) - 77093643461234 [08:40:05]1041 (16) - 0000000000963346 [08:40:05]1040 (4) - 70112 [08:40:05]1012 (4) - 22.10.2024 02:31 [08:40:05]1206 (1) - 0 [08:40:05]OFD Sender: Remove packet 70112 [08:40:05]ProducePacketName [08:40:05]name=ofd_packets/00070112 [08:40:05]NVStorageDeleteData [08:40:05]Write to MH i2c: 01 00 00 42 43 85 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 07 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 07 00 42 43 00 00 00 00 00 EF 0C 87 [08:40:05]RasterBufferAndPrint [08:40:05]line [08:40:05]line [08:40:05]line [08:40:05]line [08:40:05]line [08:40:05]written 0, free lines is 3320 [08:40:05]MH_Cut [08:40:05]Write to MH i2c: D1 01 00 49 43 01 5E [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: D1 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: D1 01 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: D1 01 00 49 43 00 5D [08:40:05]Write to MH i2c: 01 00 00 4A 43 8D [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:06]OFD Sender: No OFD packet to send [08:40:06]*** Cut start [08:40:06]*** Partial cut [08:40:06]*** CUTSNS_PIN = 1 [08:40:06]*** CUTSNS_PIN = 0 [08:40:06]*** Brake cut motor [08:40:06]Read from MH i2c: 01 [08:40:07]MH_I2C_Read... [08:40:07]*** Stop cut motor [08:40:07]*** Cut end [08:40:07]Read from MH i2c: 01 07 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 07 00 4A 43 00 00 00 00 00 FF 0F A2 [08:40:07]process_action close_receipt done [08:40:07]requested_data is exist [08:40:07]produce_requested_data [08:40:07]requested_item fm.sn is exist - process it [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 11 00 00 [08:40:07]Write to MH i2c: E2 08 00 4B 43 80 11 00 00 00 00 00 00 08 [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 17 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 17 00 4B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [08:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:40:07]wFMCommunicate OK [08:40:07]requested_item fd.num is exist - process it [08:40:07]SAM_PROTO_GetFieldsCounters [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 13 00 00 [08:40:07]Write to MH i2c: E2 08 00 4C 43 80 13 00 00 00 00 00 00 0B [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 62 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 62 00 4C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 11 01 00 0E 04 04 00 C3 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 8F [08:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 11 01 00 0E 04 04 00 C3 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 [08:40:07]wFMCommunicate OK [08:40:07]SAM_PROTO_GetFieldsCounters done [08:40:07]requested_item shift.num is exist - process it [08:40:07]requested_item shift.opened is exist - process it [08:40:07]req_shift_opened [08:40:07]FM_GetShiftState [08:40:07]SAM_PROTO_GetShiftState [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 13 01 00 [08:40:07]Write to MH i2c: E2 08 00 4D 43 80 13 01 00 00 00 00 00 0D [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0E 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0E 00 4D 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [08:40:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:40:07]wFMCommunicate OK [08:40:07]SAM_PROTO_GetShiftState done [08:40:07]FM_GetShiftState done [08:40:07]req_shift_opened done [08:40:07]requested_item shift.open_date is exist - process it [08:40:07]req_shift_open_date [08:40:07]req_shift_open_date done [08:40:07]produce_requested_data done [08:40:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70112,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:40:07]process_action_free close_receipt [08:40:07]json_value_free [08:40:07]json_value_free done [08:40:07]process_json_proto returns [08:40:07]Send response to host [08:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70112,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:40:07]free response buf [08:40:07]execute_script done [08:40:07]execute_script returns [08:40:07]free content buf [08:40:07]Sock 7.Close socket [08:40:07]Sock 7.Thread stoped [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:11]accept exits with 9 [08:42:11]New connection [08:42:11]New thread 3067170148 created [08:42:11]Thread 3067026788 joined [08:42:11]Waiting for new connection... [08:42:11] Sock 9.Parse request [08:42:11]Sock 9.Check first char [08:42:11]Sock 9.First char is OK [08:42:11]request: POST /json_proto HTTP/1.0 [08:42:11]Method: POST [08:42:11]URL: /json_proto [08:42:11]Method is POST - this is cgi request [08:42:11]url: /json_proto [08:42:11]query_string will be loaded in cgi processing [08:42:11]execute_cgi json_proto POST (null) [08:42:11]execute_cgi path=json_proto method=POST [08:42:11]POST find Content-Length [08:42:11]Host: 172.17.50.3:8080 [08:42:11]Content-Length: 679 [08:42:11]Content-Type: application/json [08:42:11] [08:42:11]POST finish read [08:42:11]Found Content-Length = 679 [08:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [08:42:11]execute_script... [08:42: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)2885879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [08:42:11]POST & json_proto [08:42:11]process_json_proto [08:42:11]json parsed OK: [08:42:11]protocol is kg_v1.0 [08:42:11]action value=close_receipt [08:42:11]process_action close_receipt [08:42:11]cmd_close_receipt [08:42:11]MH_GetDate [08:42:11]Write to MH i2c: F0 00 00 4E 43 80 [08:42:11]Write i2c OK [08:42:11]MH_I2C_Read... [08:42:11]Read from MH i2c: F0 [08:42:11]MH_I2C_Read... [08:42:11]Read from MH i2c: F0 09 00 [08:42:11]MH_I2C_Read... [08:42:11]Read from MH i2c: F0 09 00 4E 43 00 68 65 17 67 6B 98 1E 66 5B [08:42:11]GetLastDocTimeStamp 1729586407 [08:42:11]current date 1729586536 [08:42:11]FM_GetShiftState [08:42:11]SAM_PROTO_GetShiftState [08:42:11]wFMCommunicate request_size=4 [08:42:11]MH_SAM_APDU [08:42:11]CAPDU: 80 13 01 00 [08:42:11]Write to MH i2c: E2 08 00 4F 43 80 13 01 00 00 00 00 00 0F [08:42:11]Write i2c OK [08:42:11]MH_I2C_Read... [08:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:11]Read from MH i2c: E2 [08:42:11]MH_I2C_Read... [08:42:11]Read from MH i2c: E2 0E 00 [08:42:11]MH_I2C_Read... [08:42:11]Read from MH i2c: E2 0E 00 4F 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [08:42:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:42:11]wFMCommunicate OK [08:42:11]SAM_PROTO_GetShiftState done [08:42:11]FM_GetShiftState done [08:42:11]opened in 1729555832 [08:42:11]opened+sec_in_day 1729642232 [08:42:11]quantity*price = 80012 [08:42:11]sum+1 = 80013 [08:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 61 22.10.2024 08:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70113 ФПД: 180425570398128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70113&fm=180425570398128&tin=02508201610067®Number=0000000000156251&sum=80000 [08:42:12]StoreToDocumentArchive [08:42:12]shift 195 fd 70113 [08:42:12]save to /storage/0195/doc_00070113 [08:42:12]save last doc name /storage/0195/doc_00070113 to /storage/kkm_last_doc_name [08:42:12]save OK [08:42:12]Clear old archive folders... [08:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:12]tlvbuf is 01167BB0 [08:42:12]SAM_PROTO_ClearQueue [08:42:12]wFMCommunicate request_size=4 [08:42:12]MH_SAM_APDU [08:42:12]CAPDU: 80 09 00 00 [08:42:12]Write to MH i2c: E2 08 00 5C 43 80 09 00 00 00 00 00 00 11 [08:42:12]Write i2c OK [08:42:12]MH_I2C_Read... [08:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:12]Read from MH i2c: E2 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: E2 03 00 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: E2 03 00 5C 43 00 90 00 13 [08:42:12]RAPDU: 90 00 [08:42:12]wFMCommunicate OK [08:42:12]SAM_PROTO_ClearQueue done [08:42:12]KKMCreateOFDPacket [08:42:12]OFDProtocolAddRootSTLVToBuf [08:42:12]FM_MakeSignedData [08:42:12]FM_MakeSignedData [08:42:12]SAM_PROTO_SignData [08:42:12]wFMCommunicate request_size=4 [08:42:12]MH_SAM_APDU [08:42:12]CAPDU: 80 0D 01 02 [08:42:12]Write to MH i2c: E2 08 00 5D 43 80 0D 01 02 00 00 00 00 19 [08:42:12]Write i2c OK [08:42:12]MH_I2C_Read... [08:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:12]Read from MH i2c: E2 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: E2 03 00 [08:42:12]MH_I2C_Read... [08:42:12]Read from MH i2c: E2 03 00 5D 43 00 90 00 14 [08:42:12]RAPDU: 90 00 [08:42:12]wFMCommunicate OK [08:42:12]wFMCommunicate request_size=255 [08:42:12]MH_SAM_APDU [08:42: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 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 3D 00 00 00 F4 03 04 00 68 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 11 01 00 35 04 06 00 A4 [08:42:12]Write to MH i2c: E2 02 01 5E 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 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 3D 00 00 00 F4 03 04 00 68 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 11 01 00 35 04 06 00 A4 00 00 70 [08:42:12]Write i2c OK [08:42:12]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 03 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 03 00 5E 43 00 90 00 15 [08:42:13]RAPDU: 90 00 [08:42:13]wFMCommunicate OK [08:42:13]wFMCommunicate request_size=10 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 0D 02 02 05 18 9A 08 2F B0 [08:42:13]Write to MH i2c: E2 0D 00 5F 43 80 0D 02 02 05 00 18 9A 08 2F B0 00 00 BF [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 03 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 03 00 5F 43 00 90 00 16 [08:42:13]RAPDU: 90 00 [08:42:13]wFMCommunicate OK [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 0D 03 02 [08:42:13]Write to MH i2c: E2 08 00 60 43 80 0D 03 02 00 00 00 00 1E [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0B 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0B 00 60 43 00 86 AB D7 7A 6E 75 80 29 90 00 2D [08:42:13]RAPDU: 86 AB D7 7A 6E 75 80 29 90 00 [08:42:13]wFMCommunicate OK [08:42:13]SAM_PROTO_SignData done [08:42:13]FM_MakeSignedData done [08:42:13]CreateOFDProtocolMessage [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 11 00 00 [08:42:13]Write to MH i2c: E2 08 00 61 43 80 11 00 00 00 00 00 00 1E [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 17 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 17 00 61 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [08:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:42:13]wFMCommunicate OK [08:42:13]CreateOFDProtocolMessage done [08:42:13]OFDSenderStorePacket 70113 [08:42:13]StoreOFDPacket docnum=70113 [08:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 A1 07 01 BD 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 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 3D 00 00 00 F4 03 04 00 68 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 11 01 00 35 04 06 00 A4 18 9A 08 2F B0 86 AB D7 7A 6E 75 80 29 [08:42:13]CheckFolder [08:42:13]dirname=/storage/ofd_packets [08:42:13]CheckFolder done [08:42:13]ProducePacketName [08:42:13]name=ofd_packets/00070113 [08:42:13]NVStorageSaveData ofd_packets/00070113 [08:42:13]File name is /storage/ofd_packets/00070113 [08:42:13]Write 301 bytes [08:42:13]NVStorageSaveData done [08:42:13]OFDSenderStorePacket done [08:42:13]KKMCreateOFDPacket done [08:42:13]NVStorageSaveData kkm_last_timestamp [08:42:13]File name is /storage/kkm_last_timestamp [08:42:13]Write 4 bytes [08:42:13]NVStorageSaveData done [08:42:13]ExternCall_PrintAddStr [08:42:13]wPrintStart [08:42:13]Write to MH i2c: 01 00 00 62 43 A5 [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: 01 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: 01 07 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: 01 07 00 62 43 00 00 00 00 00 FF 0F BA [08:42:13]RasterBufferAndPrint [08:42:13]line Счет N : (1)2885879 [08:42:13]line ИНН: 02508201610067 [08:42:13]line Контрольно-Кассовый Чек [08:42:13]line ПРОДАЖА [08:42:13]line ТРК (МРК, ГНК) : 32 [08:42:13]line Товар: 2710124130 [08:42:13]line Аи-92-К-5 [08:42:13]line 11.960 * 66.90 [08:42:13]line = 800.12 [08:42:13]line НДС 12% НСП 1% [08:42:13]line > о реализуемом товаре [08:42:13]line ОКРУГЛЕНИЕ: -0.12 [08:42:13]line ИТОГО: 800.00 [08:42:13]line Внесено: 800.00 [08:42:13]line СДАЧА: 0.00 [08:42:13]line НСП 1% : 7.08 [08:42:13]line НДС 12% : 84.97 [08:42:13]line Наличными: 800.00 [08:42:13]line Безнал.: 0.00 [08:42:13]line Место: АЗС № 85 "Партнер Нефть" [08:42:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:42:13]line СНО: Общий режим [08:42:13]line Чек 61 22.10.2024 08:42 [08:42:13]line Смена: 195 ФФД: 1.0 [08:42:13]line ЗНМ: 0300000167 [08:42:13]line РНМ: 0000000000156251 [08:42:13]line Версия ККМ: v1.0 [08:42:13]line ФМ: 0000000000963346 [08:42:13]line ФД: 70113 [08:42:13]line ФПД: 180425570398128 [08:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70113&fm=180425570398128&tin=02508201610067®Number=0000000000156251&sum=80000 [08:42:13]OFD Sender: Processing packet 70113 [packets to send 18, broken 17] [08:42:13]ProducePacketName [08:42:13]name=ofd_packets/00070113 [08:42:13]OFD Sender: To server: pG, [08:42:13]CommunicateWithHost lk.salyk.kg:30040 [08:42:13]ConnectInit lk.salyk.kg [08:42:13]written 0, free lines is 4095 [08:42:13]Connected sock=10 [08:42: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 34 36 0F 01 00 00 B7 A1 07 01 BD 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 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 3D 00 00 00 F4 03 04 00 68 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 11 01 00 35 04 06 00 A4 18 9A 08 2F B0 86 AB D7 7A 6E 75 80 29 [08:42: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 34 36 4F 00 00 00 14 07 47 00 A3 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 11 01 00 F4 03 04 00 09 0F 17 67 B6 04 01 00 00 30 9D 1A DA 71 E4 7E 50 [08:42:13]CommunicateWithHost err = 0 [08:42:13]CheckOFDResponse [08:42:13]1017 (14) - 77093643461234 [08:42:13]1041 (16) - 0000000000963346 [08:42:13]1040 (4) - 70113 [08:42:13]1012 (4) - 22.10.2024 02:33 [08:42:13]1206 (1) - 0 [08:42:13]OFD Sender: Remove packet 70113 [08:42:13]ProducePacketName [08:42:13]name=ofd_packets/00070113 [08:42:13]NVStorageDeleteData [08:42:14]Write to MH i2c: 01 00 00 8D 43 D0 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: 01 07 00 8D 43 00 00 00 00 00 EC 0C CF [08:42:14]RasterBufferAndPrint [08:42:14]line [08:42:14]line [08:42:14]line [08:42:14]line [08:42:14]line [08:42:14]written 0, free lines is 3314 [08:42:14]MH_Cut [08:42:14]Write to MH i2c: D1 01 00 94 43 01 A9 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: D1 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: D1 01 00 [08:42:14]MH_I2C_Read... [08:42:14]Read from MH i2c: D1 01 00 94 43 00 A8 [08:42:14]Write to MH i2c: 01 00 00 95 43 D8 [08:42:14]Write i2c OK [08:42:14]MH_I2C_Read... [08:42:14]OFD Sender: No OFD packet to send [08:42:14]*** Cut start [08:42:14]*** Partial cut [08:42:14]*** CUTSNS_PIN = 1 [08:42:14]*** CUTSNS_PIN = 0 [08:42:15]*** Brake cut motor [08:42:15]Read from MH i2c: 01 [08:42:15]MH_I2C_Read... [08:42:15]*** Stop cut motor [08:42:15]*** Cut end [08:42:15]Read from MH i2c: 01 07 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 FF 0F ED [08:42:15]process_action close_receipt done [08:42:15]requested_data is exist [08:42:15]produce_requested_data [08:42:15]requested_item fm.sn is exist - process it [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 11 00 00 [08:42:15]Write to MH i2c: E2 08 00 96 43 80 11 00 00 00 00 00 00 53 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 17 00 96 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [08:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:42:15]wFMCommunicate OK [08:42:15]requested_item fd.num is exist - process it [08:42:15]SAM_PROTO_GetFieldsCounters [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 00 00 [08:42:15]Write to MH i2c: E2 08 00 97 43 80 13 00 00 00 00 00 00 56 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 62 00 97 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 11 01 00 0E 04 04 00 C3 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 DE [08:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 11 01 00 0E 04 04 00 C3 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 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetFieldsCounters done [08:42:15]requested_item shift.num is exist - process it [08:42:15]requested_item shift.opened is exist - process it [08:42:15]req_shift_opened [08:42:15]FM_GetShiftState [08:42:15]SAM_PROTO_GetShiftState [08:42:15]wFMCommunicate request_size=4 [08:42:15]MH_SAM_APDU [08:42:15]CAPDU: 80 13 01 00 [08:42:15]Write to MH i2c: E2 08 00 98 43 80 13 01 00 00 00 00 00 58 [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:15]Read from MH i2c: E2 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: E2 0E 00 98 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [08:42:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:42:15]wFMCommunicate OK [08:42:15]SAM_PROTO_GetShiftState done [08:42:15]FM_GetShiftState done [08:42:15]req_shift_opened done [08:42:15]requested_item shift.open_date is exist - process it [08:42:15]req_shift_open_date [08:42:15]req_shift_open_date done [08:42:15]produce_requested_data done [08:42:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70113,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:42:15]process_action_free close_receipt [08:42:15]json_value_free [08:42:15]json_value_free done [08:42:15]process_json_proto returns [08:42:15]Send response to host [08:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70113,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:42:15]free response buf [08:42:15]execute_script done [08:42:15]execute_script returns [08:42:15]free content buf [08:42:15]Sock 9.Close socket [08:42:15]Sock 9.Thread stoped [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:05]accept exits with 7 [08:44:05]New connection [08:44:05]New thread 3067026788 created [08:44:05]Thread 3067170148 joined [08:44:05]Waiting for new connection... [08:44:05] Sock 7.Parse request [08:44:05]Sock 7.Check first char [08:44:05]Sock 7.First char is OK [08:44:05]request: POST /json_proto HTTP/1.0 [08:44:05]Method: POST [08:44:05]URL: /json_proto [08:44:05]Method is POST - this is cgi request [08:44:05]url: /json_proto [08:44:05]query_string will be loaded in cgi processing [08:44:05]execute_cgi json_proto POST (null) [08:44:05]execute_cgi path=json_proto method=POST [08:44:05]POST find Content-Length [08:44:05]Host: 172.17.50.3:8080 [08:44:05]Content-Length: 678 [08:44:05]Content-Type: application/json [08:44:05] [08:44:05]POST finish read [08:44:05]Found Content-Length = 678 [08:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:44:05]execute_script... [08:44:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:44:05]POST & json_proto [08:44:05]process_json_proto [08:44:05]json parsed OK: [08:44:05]protocol is kg_v1.0 [08:44:05]action value=close_receipt [08:44:05]process_action close_receipt [08:44:05]cmd_close_receipt [08:44:05]MH_GetDate [08:44:05]Write to MH i2c: F0 00 00 99 43 CB [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 09 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 09 00 99 43 00 DA 65 17 67 6B 98 1E 66 18 [08:44:05]GetLastDocTimeStamp 1729586536 [08:44:05]current date 1729586650 [08:44:05]FM_GetShiftState [08:44:05]SAM_PROTO_GetShiftState [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 01 00 [08:44:05]Write to MH i2c: E2 08 00 9A 43 80 13 01 00 00 00 00 00 5A [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 9A 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [08:44:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetShiftState done [08:44:05]FM_GetShiftState done [08:44:05]opened in 1729555832 [08:44:05]opened+sec_in_day 1729642232 [08:44:05]quantity*price = 50041 [08:44:05]sum+1 = 50042 [08:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 62 22.10.2024 08:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70114 ФПД: 52468301623215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70114&fm=52468301623215&tin=02508201610067®Number=0000000000156251&sum=50000 [08:44:07]StoreToDocumentArchive [08:44:07]shift 195 fd 70114 [08:44:07]save to /storage/0195/doc_00070114 [08:44:07]save last doc name /storage/0195/doc_00070114 to /storage/kkm_last_doc_name [08:44:07]save OK [08:44:07]Clear old archive folders... [08:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:07]tlvbuf is 01202BA0 [08:44:07]SAM_PROTO_ClearQueue [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 09 00 00 [08:44:07]Write to MH i2c: E2 08 00 A7 43 80 09 00 00 00 00 00 00 5C [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 A7 43 00 90 00 5E [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]SAM_PROTO_ClearQueue done [08:44:07]KKMCreateOFDPacket [08:44:07]OFDProtocolAddRootSTLVToBuf [08:44:07]FM_MakeSignedData [08:44:07]FM_MakeSignedData [08:44:07]SAM_PROTO_SignData [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 01 02 [08:44:07]Write to MH i2c: E2 08 00 A8 43 80 0D 01 02 00 00 00 00 64 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 A8 43 00 90 00 5F [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=255 [08:44:07]MH_SAM_APDU [08:44: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 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 00 00 00 F4 03 04 00 DA 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 11 01 00 35 04 06 00 2F [08:44:07]Write to MH i2c: E2 02 01 A9 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 3E 00 00 00 F4 03 04 00 DA 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 11 01 00 35 04 06 00 2F 00 00 CE [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=10 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 02 02 05 B8 3A 7A EF AF [08:44:07]Write to MH i2c: E2 0D 00 AA 43 80 0D 02 02 05 00 B8 3A 7A EF AF 00 00 7B [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 03 02 [08:44:07]Write to MH i2c: E2 08 00 AB 43 80 0D 03 02 00 00 00 00 69 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0B 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0B 00 AB 43 00 5A D5 59 30 D0 85 86 E4 90 00 E1 [08:44:07]RAPDU: 5A D5 59 30 D0 85 86 E4 90 00 [08:44:07]wFMCommunicate OK [08:44:07]SAM_PROTO_SignData done [08:44:07]FM_MakeSignedData done [08:44:07]CreateOFDProtocolMessage [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 11 00 00 [08:44:07]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 17 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [08:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:07]wFMCommunicate OK [08:44:07]CreateOFDProtocolMessage done [08:44:07]OFDSenderStorePacket 70114 [08:44:07]StoreOFDPacket docnum=70114 [08:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E BE 07 01 F2 83 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 00 00 00 F4 03 04 00 DA 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 11 01 00 35 04 06 00 2F B8 3A 7A EF AF 5A D5 59 30 D0 85 86 E4 [08:44:07]CheckFolder [08:44:07]dirname=/storage/ofd_packets [08:44:07]CheckFolder done [08:44:07]ProducePacketName [08:44:07]name=ofd_packets/00070114 [08:44:07]NVStorageSaveData ofd_packets/00070114 [08:44:07]File name is /storage/ofd_packets/00070114 [08:44:07]Write 301 bytes [08:44:07]NVStorageSaveData done [08:44:07]OFDSenderStorePacket done [08:44:07]KKMCreateOFDPacket done [08:44:07]NVStorageSaveData kkm_last_timestamp [08:44:07]File name is /storage/kkm_last_timestamp [08:44:07]Write 4 bytes [08:44:07]NVStorageSaveData done [08:44:07]ExternCall_PrintAddStr [08:44:07]wPrintStart [08:44:07]Write to MH i2c: 01 00 00 AD 43 F0 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 AD 43 00 00 00 00 00 FF 0F 05 [08:44:07]RasterBufferAndPrint [08:44:07]line Счет N : (1)2885881 [08:44:07]line ИНН: 02508201610067 [08:44:07]line Контрольно-Кассовый Чек [08:44:07]line ПРОДАЖА [08:44:07]line ТРК (МРК, ГНК) : 32 [08:44:07]line Товар: 2710124130 [08:44:07]line Аи-92-К-5 [08:44:07]line 7.480 * 66.90 [08:44:07]line = 500.41 [08:44:07]line НДС 12% НСП 1% [08:44:07]line > о реализуемом товаре [08:44:07]line ОКРУГЛЕНИЕ: -0.41 [08:44:07]line ИТОГО: 500.00 [08:44:07]line Внесено: 500.00 [08:44:07]line СДАЧА: 0.00 [08:44:07]line НСП 1% : 4.43 [08:44:07]line НДС 12% : 53.14 [08:44:07]line Наличными: 500.00 [08:44:07]line Безнал.: 0.00 [08:44:07]line Место: АЗС № 85 "Партнер Нефть" [08:44:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:44:07]line СНО: Общий режим [08:44:07]line Чек 62 22.10.2024 08:44 [08:44:07]line Смена: 195 ФФД: 1.0 [08:44:07]line ЗНМ: 0300000167 [08:44:07]line РНМ: 0000000000156251 [08:44:07]line Версия ККМ: v1.0 [08:44:07]line ФМ: 0000000000963346 [08:44:07]line ФД: 70114 [08:44:07]line ФПД: 52468301623215 [08:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70114&fm=52468301623215&tin=02508201610067®Number=0000000000156251&sum=50000 [08:44:07]OFD Sender: Processing packet 70114 [packets to send 18, broken 17] [08:44:07]ProducePacketName [08:44:07]name=ofd_packets/00070114 [08:44:07]OFD Sender: To server: pG, [08:44:07]CommunicateWithHost lk.salyk.kg:30040 [08:44:07]ConnectInit lk.salyk.kg [08:44:07]written 0, free lines is 4095 [08:44:08]Connected sock=10 [08:44: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 34 36 0F 01 00 00 5E BE 07 01 F2 83 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 00 00 00 F4 03 04 00 DA 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 11 01 00 35 04 06 00 2F B8 3A 7A EF AF 5A D5 59 30 D0 85 86 E4 [08:44: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 34 36 4F 00 00 00 6F 4A 47 00 A8 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 34 36 10 04 04 00 E2 11 01 00 F4 03 04 00 7B 0F 17 67 B6 04 01 00 00 75 DB E2 04 69 21 C7 8C [08:44:08]CommunicateWithHost err = 0 [08:44:08]CheckOFDResponse [08:44:08]1017 (14) - 77093643461234 [08:44:08]1041 (16) - 0000000000963346 [08:44:08]1040 (4) - 70114 [08:44:08]1012 (4) - 22.10.2024 02:35 [08:44:08]1206 (1) - 0 [08:44:08]OFD Sender: Remove packet 70114 [08:44:08]ProducePacketName [08:44:08]name=ofd_packets/00070114 [08:44:08]NVStorageDeleteData [08:44:08]Write to MH i2c: 01 00 00 D8 43 1B [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 D8 43 00 00 00 00 00 D9 0C 07 [08:44:08]RasterBufferAndPrint [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]written 0, free lines is 3296 [08:44:08]MH_Cut [08:44:08]Write to MH i2c: D1 01 00 DF 43 01 F4 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 01 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 01 00 DF 43 00 F3 [08:44:08]Write to MH i2c: 01 00 00 E0 43 23 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]OFD Sender: No OFD packet to send [08:44:09]*** Cut start [08:44:09]*** Partial cut [08:44:09]*** CUTSNS_PIN = 1 [08:44:09]*** CUTSNS_PIN = 0 [08:44:09]*** Brake cut motor [08:44:09]Read from MH i2c: 01 [08:44:09]MH_I2C_Read... [08:44:09]*** Stop cut motor [08:44:09]*** Cut end [08:44:09]Read from MH i2c: 01 07 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 FF 0F 38 [08:44:09]process_action close_receipt done [08:44:09]requested_data is exist [08:44:09]produce_requested_data [08:44:09]requested_item fm.sn is exist - process it [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 11 00 00 [08:44:09]Write to MH i2c: E2 08 00 E1 43 80 11 00 00 00 00 00 00 9E [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 E1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [08:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:09]wFMCommunicate OK [08:44:09]requested_item fd.num is exist - process it [08:44:09]SAM_PROTO_GetFieldsCounters [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 13 00 00 [08:44:09]Write to MH i2c: E2 08 00 E2 43 80 13 00 00 00 00 00 00 A1 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 62 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 62 00 E2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 11 01 00 0E 04 04 00 C3 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 2D [08:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 11 01 00 0E 04 04 00 C3 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 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_GetFieldsCounters done [08:44:09]requested_item shift.num is exist - process it [08:44:09]requested_item shift.opened is exist - process it [08:44:09]req_shift_opened [08:44:09]FM_GetShiftState [08:44:09]SAM_PROTO_GetShiftState [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 13 01 00 [08:44:09]Write to MH i2c: E2 08 00 E3 43 80 13 01 00 00 00 00 00 A3 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0E 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0E 00 E3 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 91 [08:44:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_GetShiftState done [08:44:09]FM_GetShiftState done [08:44:09]req_shift_opened done [08:44:09]requested_item shift.open_date is exist - process it [08:44:09]req_shift_open_date [08:44:09]req_shift_open_date done [08:44:09]produce_requested_data done [08:44:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70114,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:44:09]process_action_free close_receipt [08:44:09]json_value_free [08:44:09]json_value_free done [08:44:09]process_json_proto returns [08:44:09]Send response to host [08:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70114,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:44:09]free response buf [08:44:09]execute_script done [08:44:09]execute_script returns [08:44:09]free content buf [08:44:09]Sock 7.Close socket [08:44:09]Sock 7.Thread stoped [08:44:13]OFD Sender: No OFD packet to send [08:44:17]accept exits with 9 [08:44:17]New connection [08:44:17]New thread 3067170148 created [08:44:17]Thread 3067026788 joined [08:44:17]Waiting for new connection... [08:44:17] Sock 9.Parse request [08:44:17]Sock 9.Check first char [08:44:17]Sock 9.First char is OK [08:44:17]request: POST /json_proto HTTP/1.0 [08:44:17]Method: POST [08:44:17]URL: /json_proto [08:44:17]Method is POST - this is cgi request [08:44:17]url: /json_proto [08:44:17]query_string will be loaded in cgi processing [08:44:17]execute_cgi json_proto POST (null) [08:44:17]execute_cgi path=json_proto method=POST [08:44:17]POST find Content-Length [08:44:17]Host: 172.17.50.3:8080 [08:44:17]Content-Length: 683 [08:44:17]Content-Type: application/json [08:44:17] [08:44:17]POST finish read [08:44:17]Found Content-Length = 683 [08:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [08:44:17]execute_script... [08:44: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)2885880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [08:44:17]POST & json_proto [08:44:17]process_json_proto [08:44:17]json parsed OK: [08:44:17]protocol is kg_v1.0 [08:44:17]action value=close_receipt [08:44:17]process_action close_receipt [08:44:17]cmd_close_receipt [08:44:17]MH_GetDate [08:44:17]Write to MH i2c: F0 00 00 E4 43 16 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 09 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 09 00 E4 43 00 E5 65 17 67 6B 98 1E 66 6E [08:44:17]GetLastDocTimeStamp 1729586650 [08:44:17]current date 1729586661 [08:44:17]FM_GetShiftState [08:44:17]SAM_PROTO_GetShiftState [08:44:17]wFMCommunicate request_size=4 [08:44:17]MH_SAM_APDU [08:44:17]CAPDU: 80 13 01 00 [08:44:17]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:17]Read from MH i2c: E2 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: E2 0E 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [08:44:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:44:17]wFMCommunicate OK [08:44:17]SAM_PROTO_GetShiftState done [08:44:17]FM_GetShiftState done [08:44:17]opened in 1729555832 [08:44:17]opened+sec_in_day 1729642232 [08:44:17]quantity*price = 200043 [08:44:17]sum+1 = 200044 [08:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 63 22.10.2024 08:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70115 ФПД: 85101990634454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70115&fm=85101990634454&tin=02508201610067®Number=0000000000156251&sum=200000 [08:44:18]StoreToDocumentArchive [08:44:18]shift 195 fd 70115 [08:44:18]save to /storage/0195/doc_00070115 [08:44:18]save last doc name /storage/0195/doc_00070115 to /storage/kkm_last_doc_name [08:44:18]save OK [08:44:18]Clear old archive folders... [08:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:18]tlvbuf is 01178640 [08:44:18]SAM_PROTO_ClearQueue [08:44:18]wFMCommunicate request_size=4 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 09 00 00 [08:44:18]Write to MH i2c: E2 08 00 F2 43 80 09 00 00 00 00 00 00 A7 [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 F2 43 00 90 00 A9 [08:44:18]RAPDU: 90 00 [08:44:18]wFMCommunicate OK [08:44:18]SAM_PROTO_ClearQueue done [08:44:18]KKMCreateOFDPacket [08:44:18]OFDProtocolAddRootSTLVToBuf [08:44:18]FM_MakeSignedData [08:44:18]FM_MakeSignedData [08:44:18]SAM_PROTO_SignData [08:44:18]wFMCommunicate request_size=4 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 0D 01 02 [08:44:18]Write to MH i2c: E2 08 00 F3 43 80 0D 01 02 00 00 00 00 AF [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 F3 43 00 90 00 AA [08:44:18]RAPDU: 90 00 [08:44:18]wFMCommunicate OK [08:44:18]wFMCommunicate request_size=255 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 00 00 00 F4 03 04 00 E5 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 11 01 00 35 04 06 00 4D [08:44:18]Write to MH i2c: E2 02 01 F4 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 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 3F 00 00 00 F4 03 04 00 E5 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 11 01 00 35 04 06 00 4D 00 00 EC [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]OFD Sender: No OFD packet to send [08:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [08:44:18]RAPDU: 90 00 [08:44:18]wFMCommunicate OK [08:44:18]wFMCommunicate request_size=10 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 0D 02 02 05 66 59 EB E3 D6 [08:44:18]Write to MH i2c: E2 0D 00 F5 43 80 0D 02 02 05 00 66 59 EB E3 D6 00 00 1F [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [08:44:18]RAPDU: 90 00 [08:44:18]wFMCommunicate OK [08:44:18]wFMCommunicate request_size=4 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 0D 03 02 [08:44:18]Write to MH i2c: E2 08 00 F6 43 80 0D 03 02 00 00 00 00 B4 [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 0B 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 0B 00 F6 43 00 A7 61 59 68 89 F2 CE 13 90 00 DA [08:44:18]RAPDU: A7 61 59 68 89 F2 CE 13 90 00 [08:44:18]wFMCommunicate OK [08:44:18]SAM_PROTO_SignData done [08:44:18]FM_MakeSignedData done [08:44:18]CreateOFDProtocolMessage [08:44:18]wFMCommunicate request_size=4 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 11 00 00 [08:44:18]Write to MH i2c: E2 08 00 F7 43 80 11 00 00 00 00 00 00 B4 [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 17 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 17 00 F7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [08:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:18]wFMCommunicate OK [08:44:18]CreateOFDProtocolMessage done [08:44:18]OFDSenderStorePacket 70115 [08:44:18]StoreOFDPacket docnum=70115 [08:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0E DB 07 01 70 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 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 3F 00 00 00 F4 03 04 00 E5 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 11 01 00 35 04 06 00 4D 66 59 EB E3 D6 A7 61 59 68 89 F2 CE 13 [08:44:18]CheckFolder [08:44:18]dirname=/storage/ofd_packets [08:44:18]CheckFolder done [08:44:18]ProducePacketName [08:44:18]name=ofd_packets/00070115 [08:44:18]NVStorageSaveData ofd_packets/00070115 [08:44:18]File name is /storage/ofd_packets/00070115 [08:44:18]Write 301 bytes [08:44:18]NVStorageSaveData done [08:44:18]OFDSenderStorePacket done [08:44:18]KKMCreateOFDPacket done [08:44:18]NVStorageSaveData kkm_last_timestamp [08:44:18]File name is /storage/kkm_last_timestamp [08:44:18]Write 4 bytes [08:44:18]NVStorageSaveData done [08:44:18]ExternCall_PrintAddStr [08:44:18]wPrintStart [08:44:18]Write to MH i2c: 01 00 00 F8 43 3B [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 07 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 07 00 F8 43 00 00 00 00 00 FF 0F 50 [08:44:18]RasterBufferAndPrint [08:44:18]line Счет N : (1)2885880 [08:44:18]line ИНН: 02508201610067 [08:44:18]line Контрольно-Кассовый Чек [08:44:18]line ПРОДАЖА [08:44:19]line ТРК (МРК, ГНК) : 43 [08:44:19]line Товар: 2710124500 [08:44:19]line Аи-95-К-5 [08:44:19]line 26.960 * 74.20 [08:44:19]line = 2000.43 [08:44:19]line НДС 12% НСП 1% [08:44:19]line > о реализуемом товаре [08:44:19]line ОКРУГЛЕНИЕ: -0.43 [08:44:19]line ИТОГО: 2000.00 [08:44:19]line Внесено: 2000.00 [08:44:19]line СДАЧА: 0.00 [08:44:19]line НСП 1% : 17.70 [08:44:19]line НДС 12% : 212.43 [08:44:19]line Наличными: 2000.00 [08:44:19]line Безнал.: 0.00 [08:44:19]line Место: АЗС № 85 "Партнер Нефть" [08:44:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:44:19]line СНО: Общий режим [08:44:19]line Чек 63 22.10.2024 08:44 [08:44:19]line Смена: 195 ФФД: 1.0 [08:44:19]line ЗНМ: 0300000167 [08:44:19]line РНМ: 0000000000156251 [08:44:19]line Версия ККМ: v1.0 [08:44:19]line ФМ: 0000000000963346 [08:44:19]line ФД: 70115 [08:44:19]line ФПД: 85101990634454 [08:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70115&fm=85101990634454&tin=02508201610067®Number=0000000000156251&sum=200000 [08:44:19]written 0, free lines is 4095 [08:44:19]OFD Sender: Processing packet 70115 [packets to send 18, broken 17] [08:44:19]ProducePacketName [08:44:19]name=ofd_packets/00070115 [08:44:19]OFD Sender: To server: pG, [08:44:19]CommunicateWithHost lk.salyk.kg:30040 [08:44:19]ConnectInit lk.salyk.kg [08:44:19]Connected sock=11 [08:44: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 34 36 0F 01 00 00 0E DB 07 01 70 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 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 3F 00 00 00 F4 03 04 00 E5 65 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 11 01 00 35 04 06 00 4D 66 59 EB E3 D6 A7 61 59 68 89 F2 CE 13 [08:44: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 34 36 4F 00 00 00 D3 CA 47 00 4D 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 34 36 10 04 04 00 E3 11 01 00 F4 03 04 00 86 0F 17 67 B6 04 01 00 00 51 08 2F D7 E7 4D 08 80 [08:44:19]CommunicateWithHost err = 0 [08:44:19]CheckOFDResponse [08:44:19]1017 (14) - 77093643461234 [08:44:19]1041 (16) - 0000000000963346 [08:44:19]1040 (4) - 70115 [08:44:19]1012 (4) - 22.10.2024 02:35 [08:44:19]1206 (1) - 0 [08:44:19]OFD Sender: Remove packet 70115 [08:44:19]ProducePacketName [08:44:19]name=ofd_packets/00070115 [08:44:19]NVStorageDeleteData [08:44:19]Write to MH i2c: 01 00 00 23 44 67 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 23 44 00 00 00 00 00 EB 0C 65 [08:44:19]RasterBufferAndPrint [08:44:19]line [08:44:19]line [08:44:19]line [08:44:19]line [08:44:19]line [08:44:19]written 0, free lines is 3316 [08:44:19]MH_Cut [08:44:19]Write to MH i2c: D1 01 00 2A 44 01 40 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: D1 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: D1 01 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: D1 01 00 2A 44 00 3F [08:44:19]Write to MH i2c: 01 00 00 2B 44 6F [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]OFD Sender: No OFD packet to send [08:44:20]*** Cut start [08:44:20]*** Partial cut [08:44:20]*** CUTSNS_PIN = 1 [08:44:20]*** CUTSNS_PIN = 0 [08:44:20]*** Brake cut motor [08:44:20]Read from MH i2c: 01 [08:44:20]MH_I2C_Read... [08:44:20]*** Stop cut motor [08:44:20]Read from MH i2c: 01 07 00 [08:44:20]MH_I2C_Read... [08:44:20]*** Cut end [08:44:20]Read from MH i2c: 01 07 00 2B 44 00 00 00 00 00 FF 0F 84 [08:44:20]process_action close_receipt done [08:44:20]requested_data is exist [08:44:20]produce_requested_data [08:44:20]requested_item fm.sn is exist - process it [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 11 00 00 [08:44:20]Write to MH i2c: E2 08 00 2C 44 80 11 00 00 00 00 00 00 EA [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 2C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [08:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:21]wFMCommunicate OK [08:44:21]requested_item fd.num is exist - process it [08:44:21]SAM_PROTO_GetFieldsCounters [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 13 00 00 [08:44:21]Write to MH i2c: E2 08 00 2D 44 80 13 00 00 00 00 00 00 ED [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 62 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 62 00 2D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 11 01 00 0E 04 04 00 C3 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 7D [08:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 11 01 00 0E 04 04 00 C3 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 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_GetFieldsCounters done [08:44:21]requested_item shift.num is exist - process it [08:44:21]requested_item shift.opened is exist - process it [08:44:21]req_shift_opened [08:44:21]FM_GetShiftState [08:44:21]SAM_PROTO_GetShiftState [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 13 01 00 [08:44:21]Write to MH i2c: E2 08 00 2E 44 80 13 01 00 00 00 00 00 EF [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0E 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0E 00 2E 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DD [08:44:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_GetShiftState done [08:44:21]FM_GetShiftState done [08:44:21]req_shift_opened done [08:44:21]requested_item shift.open_date is exist - process it [08:44:21]req_shift_open_date [08:44:21]req_shift_open_date done [08:44:21]produce_requested_data done [08:44:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70115,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:44:21]process_action_free close_receipt [08:44:21]json_value_free [08:44:21]json_value_free done [08:44:21]process_json_proto returns [08:44:21]Send response to host [08:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70115,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:44:21]free response buf [08:44:21]execute_script done [08:44:21]execute_script returns [08:44:21]free content buf [08:44:21]Sock 9.Close socket [08:44:21]Sock 9.Thread stoped [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [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]accept exits with 7 [08:49:45]New connection [08:49:45]New thread 3067026788 created [08:49:45]Thread 3067170148 joined [08:49:45]Waiting for new connection... [08:49:45] Sock 7.Parse request [08:49:45]Sock 7.Check first char [08:49:45]Sock 7.First char is OK [08:49:45]request: POST /json_proto HTTP/1.0 [08:49:45]Method: POST [08:49:45]URL: /json_proto [08:49:45]Method is POST - this is cgi request [08:49:45]url: /json_proto [08:49:45]query_string will be loaded in cgi processing [08:49:45]execute_cgi json_proto POST (null) [08:49:45]execute_cgi path=json_proto method=POST [08:49:45]POST find Content-Length [08:49:45]Host: 172.17.50.3:8080 [08:49:45]Content-Length: 678 [08:49:45]Content-Type: application/json [08:49:45] [08:49:45]POST finish read [08:49:45]Found Content-Length = 678 [08:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:49:45]execute_script... [08:49: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)2885882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:49:45]POST & json_proto [08:49:45]process_json_proto [08:49:45]json parsed OK: [08:49:45]protocol is kg_v1.0 [08:49:45]action value=close_receipt [08:49:45]process_action close_receipt [08:49:45]cmd_close_receipt [08:49:45]MH_GetDate [08:49:45]Write to MH i2c: F0 00 00 2F 44 62 [08:49:45]Write i2c OK [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: F0 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: F0 09 00 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: F0 09 00 2F 44 00 2D 67 17 67 6B 98 1E 66 04 [08:49:45]GetLastDocTimeStamp 1729586661 [08:49:45]current date 1729586989 [08:49:45]FM_GetShiftState [08:49:45]SAM_PROTO_GetShiftState [08:49:45]wFMCommunicate request_size=4 [08:49:45]MH_SAM_APDU [08:49:45]CAPDU: 80 13 01 00 [08:49:45]Write to MH i2c: E2 08 00 30 44 80 13 01 00 00 00 00 00 F1 [08:49:45]Write i2c OK [08:49:45]MH_I2C_Read... [08:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:45]Read from MH i2c: E2 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: E2 0E 00 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: E2 0E 00 30 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [08:49:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:49:45]wFMCommunicate OK [08:49:45]SAM_PROTO_GetShiftState done [08:49:45]FM_GetShiftState done [08:49:45]opened in 1729555832 [08:49:45]opened+sec_in_day 1729642232 [08:49:45]quantity*price = 50041 [08:49:45]sum+1 = 50042 [08:49: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 64 22.10.2024 08:49 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70116 ФПД: 245846250629711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084949&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70116&fm=245846250629711&tin=02508201610067®Number=0000000000156251&sum=50000 [08:49:46]StoreToDocumentArchive [08:49:46]shift 195 fd 70116 [08:49:46]save to /storage/0195/doc_00070116 [08:49:46]save last doc name /storage/0195/doc_00070116 to /storage/kkm_last_doc_name [08:49:46]save OK [08:49:46]Clear old archive folders... [08:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:46]tlvbuf is 011D77C0 [08:49:46]SAM_PROTO_ClearQueue [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 09 00 00 [08:49:46]Write to MH i2c: E2 08 00 3D 44 80 09 00 00 00 00 00 00 F3 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 3D 44 00 90 00 F5 [08:49:46]RAPDU: 90 00 [08:49:46]wFMCommunicate OK [08:49:46]SAM_PROTO_ClearQueue done [08:49:46]KKMCreateOFDPacket [08:49:46]OFDProtocolAddRootSTLVToBuf [08:49:46]FM_MakeSignedData [08:49:46]FM_MakeSignedData [08:49:46]SAM_PROTO_SignData [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 0D 01 02 [08:49:46]Write to MH i2c: E2 08 00 3E 44 80 0D 01 02 00 00 00 00 FB [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 3E 44 00 90 00 F6 [08:49:46]RAPDU: 90 00 [08:49:46]wFMCommunicate OK [08:49:46]wFMCommunicate request_size=255 [08:49:46]MH_SAM_APDU [08:49: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 40 00 00 00 F4 03 04 00 2D 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 11 01 00 35 04 06 00 DF [08:49:46]Write to MH i2c: E2 02 01 3F 44 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 40 00 00 00 F4 03 04 00 2D 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 11 01 00 35 04 06 00 DF 00 00 6E [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 3F 44 00 90 00 F7 [08:49:46]RAPDU: 90 00 [08:49:46]wFMCommunicate OK [08:49:46]wFMCommunicate request_size=10 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 0D 02 02 05 98 8A 70 2A 4F [08:49:46]Write to MH i2c: E2 0D 00 40 44 80 0D 02 02 05 00 98 8A 70 2A 4F 00 00 13 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 03 00 40 44 00 90 00 F8 [08:49:46]RAPDU: 90 00 [08:49:46]wFMCommunicate OK [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 0D 03 02 [08:49:46]Write to MH i2c: E2 08 00 41 44 80 0D 03 02 00 00 00 00 00 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 0B 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 0B 00 41 44 00 A6 E7 97 24 C3 3B CC 79 90 00 8C [08:49:46]RAPDU: A6 E7 97 24 C3 3B CC 79 90 00 [08:49:46]wFMCommunicate OK [08:49:46]SAM_PROTO_SignData done [08:49:46]FM_MakeSignedData done [08:49:46]CreateOFDProtocolMessage [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 11 00 00 [08:49:46]Write to MH i2c: E2 08 00 42 44 80 11 00 00 00 00 00 00 00 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 17 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 17 00 42 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [08:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:49:46]wFMCommunicate OK [08:49:46]CreateOFDProtocolMessage done [08:49:46]OFDSenderStorePacket 70116 [08:49:46]StoreOFDPacket docnum=70116 [08:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EB B3 07 01 EB 11 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 40 00 00 00 F4 03 04 00 2D 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 11 01 00 35 04 06 00 DF 98 8A 70 2A 4F A6 E7 97 24 C3 3B CC 79 [08:49:46]CheckFolder [08:49:46]dirname=/storage/ofd_packets [08:49:46]CheckFolder done [08:49:46]ProducePacketName [08:49:46]name=ofd_packets/00070116 [08:49:46]NVStorageSaveData ofd_packets/00070116 [08:49:46]File name is /storage/ofd_packets/00070116 [08:49:46]Write 301 bytes [08:49:46]NVStorageSaveData done [08:49:46]OFDSenderStorePacket done [08:49:46]KKMCreateOFDPacket done [08:49:46]NVStorageSaveData kkm_last_timestamp [08:49:46]File name is /storage/kkm_last_timestamp [08:49:46]Write 4 bytes [08:49:46]NVStorageSaveData done [08:49:46]ExternCall_PrintAddStr [08:49:46]wPrintStart [08:49:46]Write to MH i2c: 01 00 00 43 44 87 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: 01 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: 01 07 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: 01 07 00 43 44 00 00 00 00 00 FF 0F 9C [08:49:46]RasterBufferAndPrint [08:49:46]line Счет N : (1)2885882 [08:49:46]line ИНН: 02508201610067 [08:49:46]line Контрольно-Кассовый Чек [08:49:46]line ПРОДАЖА [08:49:46]line ТРК (МРК, ГНК) : 42 [08:49:46]line Товар: 2710124130 [08:49:46]line Аи-92-К-5 [08:49:46]line 7.480 * 66.90 [08:49:46]line = 500.41 [08:49:46]line НДС 12% НСП 1% [08:49:46]line > о реализуемом товаре [08:49:46]line ОКРУГЛЕНИЕ: -0.41 [08:49:46]line ИТОГО: 500.00 [08:49:46]line Внесено: 500.00 [08:49:46]line СДАЧА: 0.00 [08:49:46]line НСП 1% : 4.43 [08:49:46]line НДС 12% : 53.14 [08:49:46]line Наличными: 500.00 [08:49:46]line Безнал.: 0.00 [08:49:46]line Место: АЗС № 85 "Партнер Нефть" [08:49:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:49:46]line СНО: Общий режим [08:49:46]line Чек 64 22.10.2024 08:49 [08:49:46]line Смена: 195 ФФД: 1.0 [08:49:46]line ЗНМ: 0300000167 [08:49:46]line РНМ: 0000000000156251 [08:49:46]line Версия ККМ: v1.0 [08:49:46]line ФМ: 0000000000963346 [08:49:46]line ФД: 70116 [08:49:46]line ФПД: 245846250629711 [08:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084949&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70116&fm=245846250629711&tin=02508201610067®Number=0000000000156251&sum=50000 [08:49:46]written 0, free lines is 4095 [08:49:46]OFD Sender: Processing packet 70116 [packets to send 18, broken 17] [08:49:46]ProducePacketName [08:49:46]name=ofd_packets/00070116 [08:49:46]OFD Sender: To server: pG, [08:49:46]CommunicateWithHost lk.salyk.kg:30040 [08:49:46]ConnectInit lk.salyk.kg [08:49:46]Connected sock=10 [08:49: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 34 36 0F 01 00 00 EB B3 07 01 EB 11 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 40 00 00 00 F4 03 04 00 2D 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 11 01 00 35 04 06 00 DF 98 8A 70 2A 4F A6 E7 97 24 C3 3B CC 79 [08:49: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 34 36 4F 00 00 00 A9 3B 47 00 17 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 34 36 10 04 04 00 E4 11 01 00 F4 03 04 00 CE 10 17 67 B6 04 01 00 00 04 AF 2E 93 6A C4 8B 5F [08:49:47]CommunicateWithHost err = 0 [08:49:47]CheckOFDResponse [08:49:47]1017 (14) - 77093643461234 [08:49:47]1041 (16) - 0000000000963346 [08:49:47]1040 (4) - 70116 [08:49:47]1012 (4) - 22.10.2024 02:41 [08:49:47]1206 (1) - 0 [08:49:47]OFD Sender: Remove packet 70116 [08:49:47]ProducePacketName [08:49:47]name=ofd_packets/00070116 [08:49:47]NVStorageDeleteData [08:49:47]Write to MH i2c: 01 00 00 6E 44 B2 [08:49:47]Write i2c OK [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: 01 [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: 01 07 00 [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: 01 07 00 6E 44 00 00 00 00 00 E0 0C A5 [08:49:47]RasterBufferAndPrint [08:49:47]line [08:49:47]line [08:49:47]line [08:49:47]line [08:49:47]line [08:49:47]written 0, free lines is 3302 [08:49:47]MH_Cut [08:49:47]Write to MH i2c: D1 01 00 75 44 01 8B [08:49:47]Write i2c OK [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: D1 [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: D1 01 00 [08:49:47]MH_I2C_Read... [08:49:47]Read from MH i2c: D1 01 00 75 44 00 8A [08:49:47]Write to MH i2c: 01 00 00 76 44 BA [08:49:47]Write i2c OK [08:49:47]MH_I2C_Read... [08:49:47]OFD Sender: No OFD packet to send [08:49:47]*** Cut start [08:49:47]*** Partial cut [08:49:47]*** CUTSNS_PIN = 1 [08:49:47]*** CUTSNS_PIN = 0 [08:49:48]*** Brake cut motor [08:49:48]Read from MH i2c: 01 [08:49:48]MH_I2C_Read... [08:49:48]*** Stop cut motor [08:49:48]*** Cut end [08:49:48]Read from MH i2c: 01 07 00 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: 01 07 00 76 44 00 00 00 00 00 FF 0F CF [08:49:48]process_action close_receipt done [08:49:48]requested_data is exist [08:49:48]produce_requested_data [08:49:48]requested_item fm.sn is exist - process it [08:49:48]wFMCommunicate request_size=4 [08:49:48]MH_SAM_APDU [08:49:48]CAPDU: 80 11 00 00 [08:49:48]Write to MH i2c: E2 08 00 77 44 80 11 00 00 00 00 00 00 35 [08:49:48]Write i2c OK [08:49:48]MH_I2C_Read... [08:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:48]Read from MH i2c: E2 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 17 00 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 17 00 77 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [08:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:49:48]wFMCommunicate OK [08:49:48]requested_item fd.num is exist - process it [08:49:48]SAM_PROTO_GetFieldsCounters [08:49:48]wFMCommunicate request_size=4 [08:49:48]MH_SAM_APDU [08:49:48]CAPDU: 80 13 00 00 [08:49:48]Write to MH i2c: E2 08 00 78 44 80 13 00 00 00 00 00 00 38 [08:49:48]Write i2c OK [08:49:48]MH_I2C_Read... [08:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:48]Read from MH i2c: E2 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 62 00 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 62 00 78 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 11 01 00 0E 04 04 00 C3 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 CC [08:49: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 11 01 00 0E 04 04 00 C3 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 [08:49:48]wFMCommunicate OK [08:49:48]SAM_PROTO_GetFieldsCounters done [08:49:48]requested_item shift.num is exist - process it [08:49:48]requested_item shift.opened is exist - process it [08:49:48]req_shift_opened [08:49:48]FM_GetShiftState [08:49:48]SAM_PROTO_GetShiftState [08:49:48]wFMCommunicate request_size=4 [08:49:48]MH_SAM_APDU [08:49:48]CAPDU: 80 13 01 00 [08:49:48]Write to MH i2c: E2 08 00 79 44 80 13 01 00 00 00 00 00 3A [08:49:48]Write i2c OK [08:49:48]MH_I2C_Read... [08:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:48]Read from MH i2c: E2 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 0E 00 [08:49:48]MH_I2C_Read... [08:49:48]Read from MH i2c: E2 0E 00 79 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 28 [08:49:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:49:48]wFMCommunicate OK [08:49:48]SAM_PROTO_GetShiftState done [08:49:48]FM_GetShiftState done [08:49:48]req_shift_opened done [08:49:48]requested_item shift.open_date is exist - process it [08:49:48]req_shift_open_date [08:49:48]req_shift_open_date done [08:49:48]produce_requested_data done [08:49:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70116,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:49:48]process_action_free close_receipt [08:49:48]json_value_free [08:49:48]json_value_free done [08:49:48]process_json_proto returns [08:49:48]Send response to host [08:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70116,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:49:48]free response buf [08:49:48]execute_script done [08:49:48]execute_script returns [08:49:48]free content buf [08:49:48]Sock 7.Close socket [08:49:48]Sock 7.Thread stoped [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [08:52:40]New connection [08:52:40]New thread 3067170148 created [08:52:40]Thread 3067026788 joined [08:52:40]Waiting for new connection... [08:52:40] Sock 9.Parse request [08:52:40]Sock 9.Check first char [08:52:40]Sock 9.First char is OK [08:52:40]request: POST /json_proto HTTP/1.0 [08:52:40]Method: POST [08:52:40]URL: /json_proto [08:52:40]Method is POST - this is cgi request [08:52:40]url: /json_proto [08:52:40]query_string will be loaded in cgi processing [08:52:40]execute_cgi json_proto POST (null) [08:52:40]execute_cgi path=json_proto method=POST [08:52:40]POST find Content-Length [08:52:40]Host: 172.17.50.3:8080 [08:52:40]Content-Length: 771 [08:52:40]Content-Type: application/json [08:52:40] [08:52:40]POST finish read [08:52:40]Found Content-Length = 771 [08:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]execute_script... [08:52: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)2885883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]POST & json_proto [08:52:40]process_json_proto [08:52:40]json parsed OK: [08:52:40]protocol is kg_v1.0 [08:52:40]action value=close_receipt [08:52:40]process_action close_receipt [08:52:40]cmd_close_receipt [08:52:40]MH_GetDate [08:52:40]Write to MH i2c: F0 00 00 7A 44 AD [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 7A 44 00 DC 67 17 67 6B 98 1E 66 FE [08:52:40]GetLastDocTimeStamp 1729586989 [08:52:40]current date 1729587164 [08:52:40]FM_GetShiftState [08:52:40]SAM_PROTO_GetShiftState [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 13 01 00 [08:52:40]Write to MH i2c: E2 08 00 7B 44 80 13 01 00 00 00 00 00 3C [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 7B 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2A [08:52:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:52:40]wFMCommunicate OK [08:52:40]SAM_PROTO_GetShiftState done [08:52:40]FM_GetShiftState done [08:52:40]opened in 1729555832 [08:52:40]opened+sec_in_day 1729642232 [08:52:40]quantity*price = 50025 [08:52:40]sum+1 = 50026 [08:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 65 22.10.2024 08:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70117 ФПД: 115923384091362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70117&fm=115923384091362&tin=02508201610067®Number=0000000000156251&sum=50025 [08:52:41]StoreToDocumentArchive [08:52:41]shift 195 fd 70117 [08:52:41]save to /storage/0195/doc_00070117 [08:52:41]save last doc name /storage/0195/doc_00070117 to /storage/kkm_last_doc_name [08:52:41]save OK [08:52:41]Clear old archive folders... [08:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:52:41]tlvbuf is 01155700 [08:52:41]SAM_PROTO_ClearQueue [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 09 00 00 [08:52:41]Write to MH i2c: E2 08 00 88 44 80 09 00 00 00 00 00 00 3E [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 88 44 00 90 00 40 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_ClearQueue done [08:52:41]KKMCreateOFDPacket [08:52:41]OFDProtocolAddRootSTLVToBuf [08:52:41]FM_MakeSignedData [08:52:41]FM_MakeSignedData [08:52:41]SAM_PROTO_SignData [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 01 02 [08:52:41]Write to MH i2c: E2 08 00 89 44 80 0D 01 02 00 00 00 00 46 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 89 44 00 90 00 41 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=255 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DC 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 11 01 00 35 04 06 00 69 6E [08:52:41]Write to MH i2c: E2 02 01 8A 44 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DC 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 11 01 00 35 04 06 00 69 6E 00 00 4E [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 8A 44 00 90 00 42 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=9 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 04 84 21 42 E2 [08:52:41]Write to MH i2c: E2 0C 00 8B 44 80 0D 02 02 04 00 84 21 42 E2 00 00 1A [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 03 02 [08:52:41]Write to MH i2c: E2 08 00 8C 44 80 0D 03 02 00 00 00 00 4B [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 8C 44 00 69 BE A4 1D B5 1E 12 10 90 00 29 [08:52:41]RAPDU: 69 BE A4 1D B5 1E 12 10 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_SignData done [08:52:41]FM_MakeSignedData done [08:52:41]CreateOFDProtocolMessage [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 11 00 00 [08:52:41]Write to MH i2c: E2 08 00 8D 44 80 11 00 00 00 00 00 00 4B [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 8D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [08:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:41]wFMCommunicate OK [08:52:41]CreateOFDProtocolMessage done [08:52:41]OFDSenderStorePacket 70117 [08:52:41]StoreOFDPacket docnum=70117 [08:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 94 C8 06 01 0C 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DC 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 11 01 00 35 04 06 00 69 6E 84 21 42 E2 69 BE A4 1D B5 1E 12 10 [08:52:41]CheckFolder [08:52:41]dirname=/storage/ofd_packets [08:52:41]CheckFolder done [08:52:41]ProducePacketName [08:52:41]name=ofd_packets/00070117 [08:52:41]NVStorageSaveData ofd_packets/00070117 [08:52:41]File name is /storage/ofd_packets/00070117 [08:52:41]Write 300 bytes [08:52:41]NVStorageSaveData done [08:52:41]OFDSenderStorePacket done [08:52:41]KKMCreateOFDPacket done [08:52:41]NVStorageSaveData kkm_last_timestamp [08:52:41]File name is /storage/kkm_last_timestamp [08:52:41]Write 4 bytes [08:52:41]NVStorageSaveData done [08:52:41]ExternCall_PrintAddStr [08:52:41]wPrintStart [08:52:41]Write to MH i2c: 01 00 00 8E 44 D2 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 8E 44 00 00 00 00 00 FF 0F E7 [08:52:41]RasterBufferAndPrint [08:52:41]line Счет N : (1)2885883 [08:52:41]line ИНН: 02508201610067 [08:52:41]line Контрольно-Кассовый Чек [08:52:41]line ПРОДАЖА [08:52:41]line ТРК (МРК, ГНК) : 71 [08:52:41]line Товар: 2711129700 [08:52:41]line ГАЗ-К-3 [08:52:41]line 12.860 * 38.90 [08:52:41]line = 500.25 [08:52:41]line НДС 12% НСП 1% [08:52:41]line > о реализуемом товаре [08:52:41]line ИТОГО: 500.25 [08:52:41]line НСП 1% : 4.43 [08:52:41]line НДС 12% : 53.12 [08:52:41]line Наличными: 0.00 [08:52:41]line Безнал.: 500.25 [08:52:41]line Место: АЗС № 85 "Партнер Нефть" [08:52:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:52:41]line СНО: Общий режим [08:52:41]line Чек 65 22.10.2024 08:52 [08:52:41]line Смена: 195 ФФД: 1.0 [08:52:41]line ЗНМ: 0300000167 [08:52:41]line РНМ: 0000000000156251 [08:52:41]line Версия ККМ: v1.0 [08:52:41]line Платежная система: Mbank [08:52:41]line ФМ: 0000000000963346 [08:52:41]line ФД: 70117 [08:52:41]line ФПД: 115923384091362 [08:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70117&fm=115923384091362&tin=02508201610067®Number=0000000000156251&sum=50025 [08:52:42]OFD Sender: Processing packet 70117 [packets to send 18, broken 17] [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00070117 [08:52:42]OFD Sender: To server: pG, [08:52:42]CommunicateWithHost lk.salyk.kg:30040 [08:52:42]ConnectInit lk.salyk.kg [08:52:42]written 0, free lines is 4095 [08:52:42]Connected sock=10 [08:52: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 34 36 0E 01 00 00 94 C8 06 01 0C 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 DC 67 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 11 01 00 35 04 06 00 69 6E 84 21 42 E2 69 BE A4 1D B5 1E 12 10 [08:52: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 34 36 4F 00 00 00 C5 CE 47 00 D8 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 34 36 10 04 04 00 E5 11 01 00 F4 03 04 00 7D 11 17 67 B6 04 01 00 00 BD 52 02 14 36 1C E0 0D [08:52:42]CommunicateWithHost err = 0 [08:52:42]CheckOFDResponse [08:52:42]1017 (14) - 77093643461234 [08:52:42]1041 (16) - 0000000000963346 [08:52:42]1040 (4) - 70117 [08:52:42]1012 (4) - 22.10.2024 02:44 [08:52:42]1206 (1) - 0 [08:52:42]OFD Sender: Remove packet 70117 [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00070117 [08:52:42]NVStorageDeleteData [08:52:42]Write to MH i2c: 01 00 00 B7 44 FB [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 B7 44 00 00 00 00 00 07 0D 16 [08:52:42]RasterBufferAndPrint [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]written 0, free lines is 3341 [08:52:42]MH_Cut [08:52:42]Write to MH i2c: D1 01 00 BE 44 01 D4 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 BE 44 00 D3 [08:52:42]Write to MH i2c: 01 00 00 BF 44 03 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]OFD Sender: No OFD packet to send [08:52:43]*** Cut start [08:52:43]*** Partial cut [08:52:43]*** CUTSNS_PIN = 1 [08:52:43]*** CUTSNS_PIN = 0 [08:52:43]*** Brake cut motor [08:52:43]Read from MH i2c: 01 [08:52:43]MH_I2C_Read... [08:52:43]*** Stop cut motor [08:52:43]*** Cut end [08:52:43]Read from MH i2c: 01 07 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: 01 07 00 BF 44 00 00 00 00 00 FF 0F 18 [08:52:43]process_action close_receipt done [08:52:43]requested_data is exist [08:52:43]produce_requested_data [08:52:43]requested_item fm.sn is exist - process it [08:52:43]wFMCommunicate request_size=4 [08:52:43]MH_SAM_APDU [08:52:43]CAPDU: 80 11 00 00 [08:52:43]Write to MH i2c: E2 08 00 C0 44 80 11 00 00 00 00 00 00 7E [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 17 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 17 00 C0 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [08:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:44]wFMCommunicate OK [08:52:44]requested_item fd.num is exist - process it [08:52:44]SAM_PROTO_GetFieldsCounters [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 00 00 [08:52:44]Write to MH i2c: E2 08 00 C1 44 80 13 00 00 00 00 00 00 81 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 C1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 11 01 00 0E 04 04 00 C3 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 19 [08:52: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 11 01 00 0E 04 04 00 C3 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 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetFieldsCounters done [08:52:44]requested_item shift.num is exist - process it [08:52:44]requested_item shift.opened is exist - process it [08:52:44]req_shift_opened [08:52:44]FM_GetShiftState [08:52:44]SAM_PROTO_GetShiftState [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 01 00 [08:52:44]Write to MH i2c: E2 08 00 C2 44 80 13 01 00 00 00 00 00 83 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 C2 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 71 [08:52:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetShiftState done [08:52:44]FM_GetShiftState done [08:52:44]req_shift_opened done [08:52:44]requested_item shift.open_date is exist - process it [08:52:44]req_shift_open_date [08:52:44]req_shift_open_date done [08:52:44]produce_requested_data done [08:52:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70117,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:52:44]process_action_free close_receipt [08:52:44]json_value_free [08:52:44]json_value_free done [08:52:44]process_json_proto returns [08:52:44]Send response to host [08:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70117,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:52:44]free response buf [08:52:44]execute_script done [08:52:44]execute_script returns [08:52:44]free content buf [08:52:44]Sock 9.Close socket [08:52:44]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:16]accept exits with 7 [08:55:16]New connection [08:55:16]New thread 3067026788 created [08:55:16]Thread 3067170148 joined [08:55:16]Waiting for new connection... [08:55:16] Sock 7.Parse request [08:55:16]Sock 7.Check first char [08:55:16]Sock 7.First char is OK [08:55:16]request: POST /json_proto HTTP/1.0 [08:55:16]Method: POST [08:55:16]URL: /json_proto [08:55:16]Method is POST - this is cgi request [08:55:16]url: /json_proto [08:55:16]query_string will be loaded in cgi processing [08:55:16]execute_cgi json_proto POST (null) [08:55:16]execute_cgi path=json_proto method=POST [08:55:16]POST find Content-Length [08:55:16]Host: 172.17.50.3:8080 [08:55:16]Content-Length: 683 [08:55:16]Content-Type: application/json [08:55:16] [08:55:16]POST finish read [08:55:16]Found Content-Length = 683 [08:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [08:55:16]execute_script... [08:55: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)2885884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [08:55:16]POST & json_proto [08:55:16]process_json_proto [08:55:16]json parsed OK: [08:55:16]protocol is kg_v1.0 [08:55:16]action value=close_receipt [08:55:16]process_action close_receipt [08:55:16]cmd_close_receipt [08:55:16]MH_GetDate [08:55:16]Write to MH i2c: F0 00 00 C3 44 F6 [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: F0 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: F0 09 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: F0 09 00 C3 44 00 79 68 17 67 6B 98 1E 66 E5 [08:55:16]GetLastDocTimeStamp 1729587164 [08:55:16]current date 1729587321 [08:55:16]FM_GetShiftState [08:55:16]SAM_PROTO_GetShiftState [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 13 01 00 [08:55:16]Write to MH i2c: E2 08 00 C4 44 80 13 01 00 00 00 00 00 85 [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:16]Read from MH i2c: E2 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 0E 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 0E 00 C4 44 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 73 [08:55:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:55:16]wFMCommunicate OK [08:55:16]SAM_PROTO_GetShiftState done [08:55:16]FM_GetShiftState done [08:55:16]opened in 1729555832 [08:55:16]opened+sec_in_day 1729642232 [08:55:16]quantity*price = 200043 [08:55:16]sum+1 = 200044 [08:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 66 22.10.2024 08:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70118 ФПД: 140421729107215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70118&fm=140421729107215&tin=02508201610067®Number=0000000000156251&sum=200000 [08:55:17]StoreToDocumentArchive [08:55:17]shift 195 fd 70118 [08:55:17]save to /storage/0195/doc_00070118 [08:55:17]save last doc name /storage/0195/doc_00070118 to /storage/kkm_last_doc_name [08:55:17]save OK [08:55:17]Clear old archive folders... [08:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:17]tlvbuf is 0114E770 [08:55:17]SAM_PROTO_ClearQueue [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 09 00 00 [08:55:17]Write to MH i2c: E2 08 00 D1 44 80 09 00 00 00 00 00 00 87 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 D1 44 00 90 00 89 [08:55:17]RAPDU: 90 00 [08:55:17]wFMCommunicate OK [08:55:17]SAM_PROTO_ClearQueue done [08:55:17]KKMCreateOFDPacket [08:55:17]OFDProtocolAddRootSTLVToBuf [08:55:17]FM_MakeSignedData [08:55:17]FM_MakeSignedData [08:55:17]SAM_PROTO_SignData [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 0D 01 02 [08:55:17]Write to MH i2c: E2 08 00 D2 44 80 0D 01 02 00 00 00 00 8F [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 D2 44 00 90 00 8A [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]wFMCommunicate request_size=255 [08:55:18]MH_SAM_APDU [08:55: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 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 42 00 00 00 F4 03 04 00 79 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 11 01 00 35 04 06 00 7F [08:55:18]Write to MH i2c: E2 02 01 D3 44 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 42 00 00 00 F4 03 04 00 79 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 11 01 00 35 04 06 00 7F 00 00 9B [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]OFD Sender: No OFD packet to send [08:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 D3 44 00 90 00 8B [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]wFMCommunicate request_size=10 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 0D 02 02 05 B6 7B 48 3D 0F [08:55:18]Write to MH i2c: E2 0D 00 D4 44 80 0D 02 02 05 00 B6 7B 48 3D 0F 00 00 61 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 D4 44 00 90 00 8C [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 0D 03 02 [08:55:18]Write to MH i2c: E2 08 00 D5 44 80 0D 03 02 00 00 00 00 94 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 0B 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 0B 00 D5 44 00 55 B8 38 D9 36 D4 04 1E 90 00 DF [08:55:18]RAPDU: 55 B8 38 D9 36 D4 04 1E 90 00 [08:55:18]wFMCommunicate OK [08:55:18]SAM_PROTO_SignData done [08:55:18]FM_MakeSignedData done [08:55:18]CreateOFDProtocolMessage [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 11 00 00 [08:55:18]Write to MH i2c: E2 08 00 D6 44 80 11 00 00 00 00 00 00 94 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 17 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 17 00 D6 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [08:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:55:18]wFMCommunicate OK [08:55:18]CreateOFDProtocolMessage done [08:55:18]OFDSenderStorePacket 70118 [08:55:18]StoreOFDPacket docnum=70118 [08:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9B CF 07 01 B5 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 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 42 00 00 00 F4 03 04 00 79 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 11 01 00 35 04 06 00 7F B6 7B 48 3D 0F 55 B8 38 D9 36 D4 04 1E [08:55:18]CheckFolder [08:55:18]dirname=/storage/ofd_packets [08:55:18]CheckFolder done [08:55:18]ProducePacketName [08:55:18]name=ofd_packets/00070118 [08:55:18]NVStorageSaveData ofd_packets/00070118 [08:55:18]File name is /storage/ofd_packets/00070118 [08:55:18]Write 301 bytes [08:55:18]NVStorageSaveData done [08:55:18]OFDSenderStorePacket done [08:55:18]KKMCreateOFDPacket done [08:55:18]NVStorageSaveData kkm_last_timestamp [08:55:18]File name is /storage/kkm_last_timestamp [08:55:18]Write 4 bytes [08:55:18]NVStorageSaveData done [08:55:18]ExternCall_PrintAddStr [08:55:18]wPrintStart [08:55:18]Write to MH i2c: 01 00 00 D7 44 1B [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 07 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 07 00 D7 44 00 00 00 00 00 FF 0F 30 [08:55:18]RasterBufferAndPrint [08:55:18]line Счет N : (1)2885884 [08:55:18]line ИНН: 02508201610067 [08:55:18]line Контрольно-Кассовый Чек [08:55:18]line ПРОДАЖА [08:55:18]line ТРК (МРК, ГНК) : 43 [08:55:18]line Товар: 2710124500 [08:55:18]line Аи-95-К-5 [08:55:18]line 26.960 * 74.20 [08:55:18]line = 2000.43 [08:55:18]line НДС 12% НСП 1% [08:55:18]line > о реализуемом товаре [08:55:18]line ОКРУГЛЕНИЕ: -0.43 [08:55:18]line ИТОГО: 2000.00 [08:55:18]line Внесено: 2000.00 [08:55:18]line СДАЧА: 0.00 [08:55:18]line НСП 1% : 17.70 [08:55:18]line НДС 12% : 212.43 [08:55:18]line Наличными: 2000.00 [08:55:18]line Безнал.: 0.00 [08:55:18]line Место: АЗС № 85 "Партнер Нефть" [08:55:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:55:18]line СНО: Общий режим [08:55:18]line Чек 66 22.10.2024 08:55 [08:55:18]line Смена: 195 ФФД: 1.0 [08:55:18]line ЗНМ: 0300000167 [08:55:18]line РНМ: 0000000000156251 [08:55:18]line Версия ККМ: v1.0 [08:55:18]line ФМ: 0000000000963346 [08:55:18]line ФД: 70118 [08:55:18]line ФПД: 140421729107215 [08:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70118&fm=140421729107215&tin=02508201610067®Number=0000000000156251&sum=200000 [08:55:18]OFD Sender: Processing packet 70118 [packets to send 18, broken 17] [08:55:18]ProducePacketName [08:55:18]name=ofd_packets/00070118 [08:55:18]OFD Sender: To server: pG, [08:55:18]CommunicateWithHost lk.salyk.kg:30040 [08:55:18]ConnectInit lk.salyk.kg [08:55:18]written 0, free lines is 4095 [08:55:18]Connected sock=10 [08:55: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 34 36 0F 01 00 00 9B CF 07 01 B5 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 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 42 00 00 00 F4 03 04 00 79 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 11 01 00 35 04 06 00 7F B6 7B 48 3D 0F 55 B8 38 D9 36 D4 04 1E [08:55: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 34 36 4F 00 00 00 34 B2 47 00 5A 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 34 36 10 04 04 00 E6 11 01 00 F4 03 04 00 1A 12 17 67 B6 04 01 00 00 9C 9F A5 90 AF 7C C6 0E [08:55:19]CommunicateWithHost err = 0 [08:55:19]CheckOFDResponse [08:55:19]1017 (14) - 77093643461234 [08:55:19]1041 (16) - 0000000000963346 [08:55:19]1040 (4) - 70118 [08:55:19]1012 (4) - 22.10.2024 02:46 [08:55:19]1206 (1) - 0 [08:55:19]OFD Sender: Remove packet 70118 [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00070118 [08:55:19]NVStorageDeleteData [08:55:19]Write to MH i2c: 01 00 00 02 45 47 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 02 45 00 00 00 00 00 E4 0C 3E [08:55:19]RasterBufferAndPrint [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]written 0, free lines is 3306 [08:55:19]MH_Cut [08:55:19]Write to MH i2c: D1 01 00 09 45 01 20 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: D1 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: D1 01 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: D1 01 00 09 45 00 1F [08:55:19]Write to MH i2c: 01 00 00 0A 45 4F [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]OFD Sender: No OFD packet to send [08:55:19]*** Cut start [08:55:19]*** Partial cut [08:55:19]*** CUTSNS_PIN = 1 [08:55:20]*** CUTSNS_PIN = 0 [08:55:20]*** Brake cut motor [08:55:20]Read from MH i2c: 01 [08:55:20]MH_I2C_Read... [08:55:20]*** Stop cut motor [08:55:20]*** Cut end [08:55:20]Read from MH i2c: 01 07 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 07 00 0A 45 00 00 00 00 00 FF 0F 64 [08:55:20]process_action close_receipt done [08:55:20]requested_data is exist [08:55:20]produce_requested_data [08:55:20]requested_item fm.sn is exist - process it [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 11 00 00 [08:55:20]Write to MH i2c: E2 08 00 0B 45 80 11 00 00 00 00 00 00 CA [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 17 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 17 00 0B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [08:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:55:20]wFMCommunicate OK [08:55:20]requested_item fd.num is exist - process it [08:55:20]SAM_PROTO_GetFieldsCounters [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 13 00 00 [08:55:20]Write to MH i2c: E2 08 00 0C 45 80 13 00 00 00 00 00 00 CD [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 62 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 62 00 0C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 11 01 00 0E 04 04 00 C3 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 69 [08:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 11 01 00 0E 04 04 00 C3 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 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_GetFieldsCounters done [08:55:20]requested_item shift.num is exist - process it [08:55:20]requested_item shift.opened is exist - process it [08:55:20]req_shift_opened [08:55:20]FM_GetShiftState [08:55:20]SAM_PROTO_GetShiftState [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 13 01 00 [08:55:20]Write to MH i2c: E2 08 00 0D 45 80 13 01 00 00 00 00 00 CF [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 0D 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [08:55:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_GetShiftState done [08:55:20]FM_GetShiftState done [08:55:20]req_shift_opened done [08:55:20]requested_item shift.open_date is exist - process it [08:55:20]req_shift_open_date [08:55:20]req_shift_open_date done [08:55:20]produce_requested_data done [08:55:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70118,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:55:20]process_action_free close_receipt [08:55:20]json_value_free [08:55:20]json_value_free done [08:55:20]process_json_proto returns [08:55:20]Send response to host [08:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70118,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:55:20]free response buf [08:55:20]execute_script done [08:55:20]execute_script returns [08:55:20]free content buf [08:55:20]Sock 7.Close socket [08:55:20]Sock 7.Thread stoped [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]accept exits with 9 [08:56:49]New connection [08:56:49]New thread 3067170148 created [08:56:49]Thread 3067026788 joined [08:56:49]Waiting for new connection... [08:56:49] Sock 9.Parse request [08:56:49]Sock 9.Check first char [08:56:49]Sock 9.First char is OK [08:56:49]request: POST /json_proto HTTP/1.0 [08:56:49]Method: POST [08:56:49]URL: /json_proto [08:56:49]Method is POST - this is cgi request [08:56:49]url: /json_proto [08:56:49]query_string will be loaded in cgi processing [08:56:49]execute_cgi json_proto POST (null) [08:56:49]execute_cgi path=json_proto method=POST [08:56:49]POST find Content-Length [08:56:49]Host: 172.17.50.3:8080 [08:56:49]Content-Length: 767 [08:56:49]Content-Type: application/json [08:56:49] [08:56:49]POST finish read [08:56:49]Found Content-Length = 767 [08:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885885", "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 }]} ], "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" ] } } [08:56:49]execute_script... [08:56: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)2885885", "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 }]} ], "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" ] } } [08:56:49]POST & json_proto [08:56:49]process_json_proto [08:56:49]json parsed OK: [08:56:49]protocol is kg_v1.0 [08:56:49]action value=close_receipt [08:56:49]process_action close_receipt [08:56:49]cmd_close_receipt [08:56:49]MH_GetDate [08:56:49]Write to MH i2c: F0 00 00 0E 45 42 [08:56:49]Write i2c OK [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: F0 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: F0 09 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: F0 09 00 0E 45 00 D6 68 17 67 6B 98 1E 66 8E [08:56:49]GetLastDocTimeStamp 1729587321 [08:56:49]current date 1729587414 [08:56:49]FM_GetShiftState [08:56:49]SAM_PROTO_GetShiftState [08:56:49]wFMCommunicate request_size=4 [08:56:49]MH_SAM_APDU [08:56:49]CAPDU: 80 13 01 00 [08:56:49]Write to MH i2c: E2 08 00 0F 45 80 13 01 00 00 00 00 00 D1 [08:56:49]Write i2c OK [08:56:49]MH_I2C_Read... [08:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:49]Read from MH i2c: E2 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 0E 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 0E 00 0F 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [08:56:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:56:49]wFMCommunicate OK [08:56:49]SAM_PROTO_GetShiftState done [08:56:49]FM_GetShiftState done [08:56:49]opened in 1729555832 [08:56:49]opened+sec_in_day 1729642232 [08:56:49]quantity*price = 100050 [08:56:49]sum+1 = 100052 [08:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 67 22.10.2024 08:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70119 ФПД: 89616930498240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70119&fm=89616930498240&tin=02508201610067®Number=0000000000156251&sum=100051 [08:56:50]StoreToDocumentArchive [08:56:50]shift 195 fd 70119 [08:56:50]save to /storage/0195/doc_00070119 [08:56:50]save last doc name /storage/0195/doc_00070119 to /storage/kkm_last_doc_name [08:56:50]save OK [08:56:50]Clear old archive folders... [08:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:56:50]tlvbuf is 01256440 [08:56:50]SAM_PROTO_ClearQueue [08:56:50]wFMCommunicate request_size=4 [08:56:50]MH_SAM_APDU [08:56:50]CAPDU: 80 09 00 00 [08:56:50]Write to MH i2c: E2 08 00 1C 45 80 09 00 00 00 00 00 00 D3 [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:50]Read from MH i2c: E2 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 03 00 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 03 00 1C 45 00 90 00 D5 [08:56:50]RAPDU: 90 00 [08:56:50]wFMCommunicate OK [08:56:50]SAM_PROTO_ClearQueue done [08:56:50]KKMCreateOFDPacket [08:56:50]OFDProtocolAddRootSTLVToBuf [08:56:50]FM_MakeSignedData [08:56:50]FM_MakeSignedData [08:56:50]SAM_PROTO_SignData [08:56:50]wFMCommunicate request_size=4 [08:56:50]MH_SAM_APDU [08:56:50]CAPDU: 80 0D 01 02 [08:56:50]Write to MH i2c: E2 08 00 1D 45 80 0D 01 02 00 00 00 00 DB [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:50]Read from MH i2c: E2 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 03 00 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 03 00 1D 45 00 90 00 D6 [08:56:50]RAPDU: 90 00 [08:56:50]wFMCommunicate OK [08:56:50]wFMCommunicate request_size=255 [08:56:50]MH_SAM_APDU [08:56: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 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 43 00 00 00 F4 03 04 00 D6 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 11 01 00 35 04 06 00 51 81 91 4E [08:56:50]Write to MH i2c: E2 02 01 1E 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 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 43 00 00 00 F4 03 04 00 D6 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 11 01 00 35 04 06 00 51 81 91 4E 00 00 2C [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 1E 45 00 90 00 D7 [08:56:51]RAPDU: 90 00 [08:56:51]wFMCommunicate OK [08:56:51]wFMCommunicate request_size=7 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 0D 02 02 02 E6 C0 [08:56:51]Write to MH i2c: E2 0A 00 1F 45 80 0D 02 02 02 00 E6 C0 00 00 88 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 1F 45 00 90 00 D8 [08:56:51]RAPDU: 90 00 [08:56:51]wFMCommunicate OK [08:56:51]wFMCommunicate request_size=4 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 0D 03 02 [08:56:51]Write to MH i2c: E2 08 00 20 45 80 0D 03 02 00 00 00 00 E0 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 0B 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 0B 00 20 45 00 46 1B 6B 82 4D A6 CB DA 90 00 C7 [08:56:51]RAPDU: 46 1B 6B 82 4D A6 CB DA 90 00 [08:56:51]wFMCommunicate OK [08:56:51]SAM_PROTO_SignData done [08:56:51]FM_MakeSignedData done [08:56:51]CreateOFDProtocolMessage [08:56:51]wFMCommunicate request_size=4 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 11 00 00 [08:56:51]Write to MH i2c: E2 08 00 21 45 80 11 00 00 00 00 00 00 E0 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 17 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 17 00 21 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [08:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:56:51]wFMCommunicate OK [08:56:51]CreateOFDProtocolMessage done [08:56:51]OFDSenderStorePacket 70119 [08:56:51]StoreOFDPacket docnum=70119 [08:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FC A8 04 01 AF D9 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 43 00 00 00 F4 03 04 00 D6 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 11 01 00 35 04 06 00 51 81 91 4E E6 C0 46 1B 6B 82 4D A6 CB DA [08:56:51]CheckFolder [08:56:51]dirname=/storage/ofd_packets [08:56:51]CheckFolder done [08:56:51]ProducePacketName [08:56:51]name=ofd_packets/00070119 [08:56:51]NVStorageSaveData ofd_packets/00070119 [08:56:51]File name is /storage/ofd_packets/00070119 [08:56:51]Write 298 bytes [08:56:51]NVStorageSaveData done [08:56:51]OFDSenderStorePacket done [08:56:51]KKMCreateOFDPacket done [08:56:51]NVStorageSaveData kkm_last_timestamp [08:56:51]File name is /storage/kkm_last_timestamp [08:56:51]Write 4 bytes [08:56:51]NVStorageSaveData done [08:56:51]ExternCall_PrintAddStr [08:56:51]wPrintStart [08:56:51]Write to MH i2c: 01 00 00 22 45 67 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 07 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 07 00 22 45 00 00 00 00 00 FF 0F 7C [08:56:51]RasterBufferAndPrint [08:56:51]line Счет N : (1)2885885 [08:56:51]line ИНН: 02508201610067 [08:56:51]line Контрольно-Кассовый Чек [08:56:51]line ПРОДАЖА [08:56:51]line ТРК (МРК, ГНК) : 51 [08:56:51]line Товар: 2710194210 [08:56:51]line ДТ-К-5 [08:56:51]line 13.130 * 76.20 [08:56:51]line = 1000.51 [08:56:51]line НДС 12% НСП 1% [08:56:51]line > о реализуемом товаре [08:56:51]line ИТОГО: 1000.51 [08:56:51]line НСП 1% : 8.85 [08:56:51]line НДС 12% : 106.25 [08:56:51]line Наличными: 0.00 [08:56:51]line Безнал.: 1000.51 [08:56:51]line Место: АЗС № 85 "Партнер Нефть" [08:56:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:56:51]line СНО: Общий режим [08:56:51]line Чек 67 22.10.2024 08:56 [08:56:51]line Смена: 195 ФФД: 1.0 [08:56:51]line ЗНМ: 0300000167 [08:56:51]line РНМ: 0000000000156251 [08:56:51]line Версия ККМ: v1.0 [08:56:51]line Платежная система: Mbank [08:56:51]line ФМ: 0000000000963346 [08:56:51]line ФД: 70119 [08:56:51]line ФПД: 89616930498240 [08:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70119&fm=89616930498240&tin=02508201610067®Number=0000000000156251&sum=100051 [08:56:51]OFD Sender: Processing packet 70119 [packets to send 18, broken 17] [08:56:51]ProducePacketName [08:56:51]name=ofd_packets/00070119 [08:56:51]OFD Sender: To server: pG, [08:56:51]CommunicateWithHost lk.salyk.kg:30040 [08:56:51]ConnectInit lk.salyk.kg [08:56:51]written 0, free lines is 4095 [08:56:51]Connected sock=10 [08:56: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 34 36 0C 01 00 00 FC A8 04 01 AF D9 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 43 00 00 00 F4 03 04 00 D6 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 11 01 00 35 04 06 00 51 81 91 4E E6 C0 46 1B 6B 82 4D A6 CB DA [08:56: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 34 36 4F 00 00 00 21 B5 47 00 BC 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 34 36 10 04 04 00 E7 11 01 00 F4 03 04 00 77 12 17 67 B6 04 01 00 00 F2 7C BC 8B 6E E2 EE 0C [08:56:51]CommunicateWithHost err = 0 [08:56:51]CheckOFDResponse [08:56:51]1017 (14) - 77093643461234 [08:56:51]1041 (16) - 0000000000963346 [08:56:51]1040 (4) - 70119 [08:56:51]1012 (4) - 22.10.2024 02:48 [08:56:51]1206 (1) - 0 [08:56:51]OFD Sender: Remove packet 70119 [08:56:51]ProducePacketName [08:56:51]name=ofd_packets/00070119 [08:56:51]NVStorageDeleteData [08:56:52]Write to MH i2c: 01 00 00 4B 45 90 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 07 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 07 00 4B 45 00 00 00 00 00 15 0D B9 [08:56:52]RasterBufferAndPrint [08:56:52]line [08:56:52]line [08:56:52]line [08:56:52]line [08:56:52]line [08:56:52]written 0, free lines is 3357 [08:56:52]MH_Cut [08:56:52]Write to MH i2c: D1 01 00 52 45 01 69 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: D1 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: D1 01 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: D1 01 00 52 45 00 68 [08:56:52]Write to MH i2c: 01 00 00 53 45 98 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]OFD Sender: No OFD packet to send [08:56:52]*** Cut start [08:56:52]*** Partial cut [08:56:52]*** CUTSNS_PIN = 1 [08:56:52]*** CUTSNS_PIN = 0 [08:56:53]*** Brake cut motor [08:56:53]Read from MH i2c: 01 [08:56:53]MH_I2C_Read... [08:56:53]*** Stop cut motor [08:56:53]*** Cut end [08:56:53]Read from MH i2c: 01 07 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 53 45 00 00 00 00 00 FF 0F AD [08:56:53]process_action close_receipt done [08:56:53]requested_data is exist [08:56:53]produce_requested_data [08:56:53]requested_item fm.sn is exist - process it [08:56:53]wFMCommunicate request_size=4 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 11 00 00 [08:56:53]Write to MH i2c: E2 08 00 54 45 80 11 00 00 00 00 00 00 13 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 17 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 17 00 54 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [08:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:56:53]wFMCommunicate OK [08:56:53]requested_item fd.num is exist - process it [08:56:53]SAM_PROTO_GetFieldsCounters [08:56:53]wFMCommunicate request_size=4 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 13 00 00 [08:56:53]Write to MH i2c: E2 08 00 55 45 80 13 00 00 00 00 00 00 16 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 62 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 62 00 55 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 11 01 00 0E 04 04 00 C3 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 B6 [08:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 11 01 00 0E 04 04 00 C3 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 [08:56:53]wFMCommunicate OK [08:56:53]SAM_PROTO_GetFieldsCounters done [08:56:53]requested_item shift.num is exist - process it [08:56:53]requested_item shift.opened is exist - process it [08:56:53]req_shift_opened [08:56:53]FM_GetShiftState [08:56:53]SAM_PROTO_GetShiftState [08:56:53]wFMCommunicate request_size=4 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 13 01 00 [08:56:53]Write to MH i2c: E2 08 00 56 45 80 13 01 00 00 00 00 00 18 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 0E 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 0E 00 56 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 06 [08:56:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:56:53]wFMCommunicate OK [08:56:53]SAM_PROTO_GetShiftState done [08:56:53]FM_GetShiftState done [08:56:53]req_shift_opened done [08:56:53]requested_item shift.open_date is exist - process it [08:56:53]req_shift_open_date [08:56:53]req_shift_open_date done [08:56:53]produce_requested_data done [08:56:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70119,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:56:53]process_action_free close_receipt [08:56:53]json_value_free [08:56:53]json_value_free done [08:56:53]process_json_proto returns [08:56:53]Send response to host [08:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70119,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:56:53]free response buf [08:56:53]execute_script done [08:56:53]execute_script returns [08:56:53]free content buf [08:56:53]Sock 9.Close socket [08:56:53]Sock 9.Thread stoped [08:56:57]OFD Sender: No OFD packet to send [08:57:00]accept exits with 7 [08:57:00]New connection [08:57:00]New thread 3067026788 created [08:57:00]Thread 3067170148 joined [08:57:00]Waiting for new connection... [08:57:00] Sock 7.Parse request [08:57:00]Sock 7.Check first char [08:57:00]Sock 7.First char is OK [08:57:00]request: POST /json_proto HTTP/1.0 [08:57:00]Method: POST [08:57:00]URL: /json_proto [08:57:00]Method is POST - this is cgi request [08:57:00]url: /json_proto [08:57:00]query_string will be loaded in cgi processing [08:57:00]execute_cgi json_proto POST (null) [08:57:00]execute_cgi path=json_proto method=POST [08:57:00]POST find Content-Length [08:57:00]Host: 172.17.50.3:8080 [08:57:00]Content-Length: 683 [08:57:00]Content-Type: application/json [08:57:00] [08:57:00]POST finish read [08:57:00]Found Content-Length = 683 [08:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:57:00]execute_script... [08:57: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)2885886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:57:00]POST & json_proto [08:57:00]process_json_proto [08:57:00]json parsed OK: [08:57:00]protocol is kg_v1.0 [08:57:00]action value=close_receipt [08:57:00]process_action close_receipt [08:57:00]cmd_close_receipt [08:57:00]MH_GetDate [08:57:00]Write to MH i2c: F0 00 00 57 45 8B [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: F0 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: F0 09 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: F0 09 00 57 45 00 E0 68 17 67 6B 98 1E 66 E1 [08:57:00]GetLastDocTimeStamp 1729587414 [08:57:00]current date 1729587424 [08:57:00]FM_GetShiftState [08:57:00]SAM_PROTO_GetShiftState [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 13 01 00 [08:57:00]Write to MH i2c: E2 08 00 58 45 80 13 01 00 00 00 00 00 1A [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0E 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0E 00 58 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 08 [08:57:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:57:00]wFMCommunicate OK [08:57:00]SAM_PROTO_GetShiftState done [08:57:00]FM_GetShiftState done [08:57:00]opened in 1729555832 [08:57:00]opened+sec_in_day 1729642232 [08:57:00]quantity*price = 150056 [08:57:00]sum+1 = 150058 [08:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 68 22.10.2024 08:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70120 ФПД: 223440980759681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70120&fm=223440980759681&tin=02508201610067®Number=0000000000156251&sum=150000 [08:57:01]StoreToDocumentArchive [08:57:01]shift 195 fd 70120 [08:57:01]save to /storage/0195/doc_00070120 [08:57:01]save last doc name /storage/0195/doc_00070120 to /storage/kkm_last_doc_name [08:57:01]save OK [08:57:01]Clear old archive folders... [08:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:01]tlvbuf is 0111FB30 [08:57:01]SAM_PROTO_ClearQueue [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 09 00 00 [08:57:01]Write to MH i2c: E2 08 00 65 45 80 09 00 00 00 00 00 00 1C [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:01]Read from MH i2c: E2 03 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 65 45 00 90 00 1E [08:57:01]RAPDU: 90 00 [08:57:01]wFMCommunicate OK [08:57:01]SAM_PROTO_ClearQueue done [08:57:01]KKMCreateOFDPacket [08:57:01]OFDProtocolAddRootSTLVToBuf [08:57:01]FM_MakeSignedData [08:57:01]FM_MakeSignedData [08:57:01]SAM_PROTO_SignData [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 0D 01 02 [08:57:01]Write to MH i2c: E2 08 00 66 45 80 0D 01 02 00 00 00 00 24 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 66 45 00 90 00 1F [08:57:01]RAPDU: 90 00 [08:57:01]wFMCommunicate OK [08:57:01]wFMCommunicate request_size=255 [08:57:01]MH_SAM_APDU [08:57: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 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 44 00 00 00 F4 03 04 00 E0 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 11 01 00 35 04 06 00 CB [08:57:01]Write to MH i2c: E2 02 01 67 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 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 44 00 00 00 F4 03 04 00 E0 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 11 01 00 35 04 06 00 CB 00 00 88 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 67 45 00 90 00 20 [08:57:01]RAPDU: 90 00 [08:57:01]wFMCommunicate OK [08:57:01]wFMCommunicate request_size=10 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 0D 02 02 05 37 E8 49 54 81 [08:57:01]Write to MH i2c: E2 0D 00 68 45 80 0D 02 02 05 00 37 E8 49 54 81 00 00 6E [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 03 00 68 45 00 90 00 21 [08:57:01]RAPDU: 90 00 [08:57:01]wFMCommunicate OK [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 0D 03 02 [08:57:01]Write to MH i2c: E2 08 00 69 45 80 0D 03 02 00 00 00 00 29 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0B 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0B 00 69 45 00 19 97 14 D8 A1 3F 4C 1F 90 00 11 [08:57:01]RAPDU: 19 97 14 D8 A1 3F 4C 1F 90 00 [08:57:01]wFMCommunicate OK [08:57:01]SAM_PROTO_SignData done [08:57:01]FM_MakeSignedData done [08:57:01]CreateOFDProtocolMessage [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 11 00 00 [08:57:01]Write to MH i2c: E2 08 00 6A 45 80 11 00 00 00 00 00 00 29 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 17 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 17 00 6A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [08:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:57:01]wFMCommunicate OK [08:57:01]CreateOFDProtocolMessage done [08:57:01]OFDSenderStorePacket 70120 [08:57:01]StoreOFDPacket docnum=70120 [08:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC AA 07 01 47 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 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 44 00 00 00 F4 03 04 00 E0 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 11 01 00 35 04 06 00 CB 37 E8 49 54 81 19 97 14 D8 A1 3F 4C 1F [08:57:01]CheckFolder [08:57:01]dirname=/storage/ofd_packets [08:57:01]CheckFolder done [08:57:01]ProducePacketName [08:57:01]name=ofd_packets/00070120 [08:57:01]NVStorageSaveData ofd_packets/00070120 [08:57:01]File name is /storage/ofd_packets/00070120 [08:57:01]Write 301 bytes [08:57:01]NVStorageSaveData done [08:57:01]OFDSenderStorePacket done [08:57:01]KKMCreateOFDPacket done [08:57:01]NVStorageSaveData kkm_last_timestamp [08:57:01]File name is /storage/kkm_last_timestamp [08:57:01]Write 4 bytes [08:57:01]NVStorageSaveData done [08:57:01]ExternCall_PrintAddStr [08:57:01]wPrintStart [08:57:01]Write to MH i2c: 01 00 00 6B 45 B0 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 6B 45 00 00 00 00 00 FF 0F C5 [08:57:01]RasterBufferAndPrint [08:57:01]line Счет N : (1)2885886 [08:57:01]line ИНН: 02508201610067 [08:57:01]line Контрольно-Кассовый Чек [08:57:01]line ПРОДАЖА [08:57:01]line ТРК (МРК, ГНК) : 12 [08:57:01]line Товар: 2710124130 [08:57:01]line Аи-92-К-5 [08:57:01]line 22.430 * 66.90 [08:57:01]line = 1500.57 [08:57:01]line НДС 12% НСП 1% [08:57:01]line > о реализуемом товаре [08:57:01]line ОКРУГЛЕНИЕ: -0.57 [08:57:01]line ИТОГО: 1500.00 [08:57:01]line Внесено: 1500.00 [08:57:01]line СДАЧА: 0.00 [08:57:01]line НСП 1% : 13.28 [08:57:01]line НДС 12% : 159.35 [08:57:01]line Наличными: 1500.00 [08:57:01]line Безнал.: 0.00 [08:57:01]line Место: АЗС № 85 "Партнер Нефть" [08:57:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:57:01]line СНО: Общий режим [08:57:01]line Чек 68 22.10.2024 08:57 [08:57:01]line Смена: 195 ФФД: 1.0 [08:57:01]line ЗНМ: 0300000167 [08:57:01]line РНМ: 0000000000156251 [08:57:01]line Версия ККМ: v1.0 [08:57:01]line ФМ: 0000000000963346 [08:57:01]line ФД: 70120 [08:57:01]line ФПД: 223440980759681 [08:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70120&fm=223440980759681&tin=02508201610067®Number=0000000000156251&sum=150000 [08:57:01]written 0, free lines is 4095 [08:57:01]OFD Sender: Processing packet 70120 [packets to send 18, broken 17] [08:57:01]ProducePacketName [08:57:01]name=ofd_packets/00070120 [08:57:01]OFD Sender: To server: pG, [08:57:01]CommunicateWithHost lk.salyk.kg:30040 [08:57:01]ConnectInit lk.salyk.kg [08:57:01]Connected sock=10 [08:57: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 34 36 0F 01 00 00 DC AA 07 01 47 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 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 44 00 00 00 F4 03 04 00 E0 68 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 11 01 00 35 04 06 00 CB 37 E8 49 54 81 19 97 14 D8 A1 3F 4C 1F [08:57: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 34 36 4F 00 00 00 34 ED 47 00 22 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 34 36 10 04 04 00 E8 11 01 00 F4 03 04 00 81 12 17 67 B6 04 01 00 00 C7 CF 78 23 A3 C1 23 A4 [08:57:02]CommunicateWithHost err = 0 [08:57:02]CheckOFDResponse [08:57:02]1017 (14) - 77093643461234 [08:57:02]1041 (16) - 0000000000963346 [08:57:02]1040 (4) - 70120 [08:57:02]1012 (4) - 22.10.2024 02:48 [08:57:02]1206 (1) - 0 [08:57:02]OFD Sender: Remove packet 70120 [08:57:02]ProducePacketName [08:57:02]name=ofd_packets/00070120 [08:57:02]NVStorageDeleteData [08:57:02]Write to MH i2c: 01 00 00 96 45 DB [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: 01 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: 01 07 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: 01 07 00 96 45 00 00 00 00 00 F6 0C E4 [08:57:02]RasterBufferAndPrint [08:57:02]line [08:57:02]line [08:57:02]line [08:57:02]line [08:57:02]line [08:57:02]written 0, free lines is 3330 [08:57:02]MH_Cut [08:57:02]Write to MH i2c: D1 01 00 9D 45 01 B4 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: D1 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: D1 01 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: D1 01 00 9D 45 00 B3 [08:57:02]Write to MH i2c: 01 00 00 9E 45 E3 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]OFD Sender: No OFD packet to send [08:57:02]*** Cut start [08:57:02]*** Partial cut [08:57:02]*** CUTSNS_PIN = 1 [08:57:03]*** CUTSNS_PIN = 0 [08:57:03]*** Brake cut motor [08:57:03]Read from MH i2c: 01 [08:57:03]MH_I2C_Read... [08:57:03]*** Stop cut motor [08:57:03]*** Cut end [08:57:03]Read from MH i2c: 01 07 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: 01 07 00 9E 45 00 00 00 00 00 FF 0F F8 [08:57:03]process_action close_receipt done [08:57:03]requested_data is exist [08:57:03]produce_requested_data [08:57:03]requested_item fm.sn is exist - process it [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 11 00 00 [08:57:03]Write to MH i2c: E2 08 00 9F 45 80 11 00 00 00 00 00 00 5E [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 9F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [08:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:57:03]wFMCommunicate OK [08:57:03]requested_item fd.num is exist - process it [08:57:03]SAM_PROTO_GetFieldsCounters [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 13 00 00 [08:57:03]Write to MH i2c: E2 08 00 A0 45 80 13 00 00 00 00 00 00 61 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 62 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 62 00 A0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 11 01 00 0E 04 04 00 C3 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 05 [08:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 11 01 00 0E 04 04 00 C3 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 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_GetFieldsCounters done [08:57:03]requested_item shift.num is exist - process it [08:57:03]requested_item shift.opened is exist - process it [08:57:03]req_shift_opened [08:57:03]FM_GetShiftState [08:57:03]SAM_PROTO_GetShiftState [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 13 01 00 [08:57:03]Write to MH i2c: E2 08 00 A1 45 80 13 01 00 00 00 00 00 63 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0E 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0E 00 A1 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 51 [08:57:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_GetShiftState done [08:57:03]FM_GetShiftState done [08:57:03]req_shift_opened done [08:57:03]requested_item shift.open_date is exist - process it [08:57:03]req_shift_open_date [08:57:03]req_shift_open_date done [08:57:03]produce_requested_data done [08:57:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70120,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [08:57:03]process_action_free close_receipt [08:57:03]json_value_free [08:57:03]json_value_free done [08:57:03]process_json_proto returns [08:57:03]Send response to host [08:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70120,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [08:57:03]free response buf [08:57:03]execute_script done [08:57:03]execute_script returns [08:57:03]free content buf [08:57:03]Sock 7.Close socket [08:57:03]Sock 7.Thread stoped [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]int [09:02:32]Write to MH i2c: 01 00 00 A2 45 E7 [09:02:32]*** FLAG_PRN_PAP1 set [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: 01 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: 01 07 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: 01 07 00 A2 45 00 01 00 00 00 FF 0F FD [09:02:32]state=0 [09:02:32]No paper [09:02:32]OFD Sender: No OFD packet to send [09:02:33]int [09:02:33]Write to MH i2c: 01 00 00 A3 45 E8 [09:02:33]*** FLAG_PRN_PAP2 set [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 A3 45 00 03 00 00 00 FF 0F 00 [09:02:33]state=0 [09:02:33]No paper [09:02:33]Cover opened [09:02:34]int [09:02:34]Write to MH i2c: 01 00 00 A4 45 E9 [09:02:34]*** FLAG_PRN_PAP2 reset [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 A4 45 00 01 00 00 00 FF 0F FF [09:02:34]state=3 [09:02:34]No paper [09:02:34]Cover closed [09:02:34]int [09:02:34]Write to MH i2c: 01 00 00 A5 45 EA [09:02:34]*** FLAG_PRN_PAP2 set [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 A5 45 00 03 00 00 00 FF 0F 02 [09:02:34]state=0 [09:02:34]No paper [09:02:34]Cover opened [09:02:36]int [09:02:36]Write to MH i2c: 01 00 00 A6 45 EB [09:02:36]*** FLAG_PRN_PAP2 reset [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 07 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 07 00 A6 45 00 01 00 00 00 FF 0F 01 [09:02:36]state=3 [09:02:36]No paper [09:02:36]Cover closed [09:02:36]int [09:02:36]Write to MH i2c: 01 00 00 A7 45 EC [09:02:36]*** FLAG_PRN_PAP2 set [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 07 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 07 00 A7 45 00 03 00 00 00 FF 0F 04 [09:02:36]state=0 [09:02:36]No paper [09:02:36]Cover opened [09:02:37]OFD Sender: No OFD packet to send [09:02:41]Write to MH i2c: 01 00 00 A8 45 ED [09:02:41]Write i2c OK [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 07 00 [09:02:41]MH_I2C_Read... [09:02:41]Read from MH i2c: 01 07 00 A8 45 00 03 00 00 00 FF 0F 05 [09:02:41]state=3 [09:02:41]No paper [09:02:41]Cover opened [09:02:42]OFD Sender: No OFD packet to send [09:02:46]Write to MH i2c: 01 00 00 A9 45 EE [09:02:46]Write i2c OK [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: 01 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: 01 07 00 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: 01 07 00 A9 45 00 03 00 00 00 FF 0F 06 [09:02:46]state=3 [09:02:46]No paper [09:02:46]Cover opened [09:02:47]int [09:02:47]Write to MH i2c: 01 00 00 AA 45 EF [09:02:47]*** FLAG_PRN_PAP2 reset [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 AA 45 00 01 00 00 00 FF 0F 05 [09:02:47]state=3 [09:02:47]No paper [09:02:47]Cover closed [09:02:47]int [09:02:47]Write to MH i2c: 01 00 00 AB 45 F0 [09:02:47]*** FLAG_PRN_PAP2 set [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 AB 45 00 03 00 00 00 FF 0F 08 [09:02:47]state=0 [09:02:47]No paper [09:02:47]Cover opened [09:02:47]int [09:02:47]Write to MH i2c: 01 00 00 AC 45 F1 [09:02:47]*** FLAG_PRN_PAP2 reset [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 AC 45 00 01 00 00 00 FF 0F 07 [09:02:47]state=3 [09:02:47]No paper [09:02:47]Cover closed [09:02:47]int [09:02:47]Write to MH i2c: 01 00 00 AD 45 F2 [09:02:47]*** FLAG_PRN_PAP1 reset [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: 01 07 00 AD 45 00 00 00 00 00 FF 0F 07 [09:02:47]state=0 [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:15]accept exits with 9 [09:03:15]New connection [09:03:15]New thread 3067170148 created [09:03:15]Thread 3067026788 joined [09:03:15]Waiting for new connection... [09:03:15] Sock 9.Parse request [09:03:15]Sock 9.Check first char [09:03:15]Sock 9.First char is OK [09:03:15]request: POST /json_proto HTTP/1.0 [09:03:15]Method: POST [09:03:15]URL: /json_proto [09:03:15]Method is POST - this is cgi request [09:03:15]url: /json_proto [09:03:15]query_string will be loaded in cgi processing [09:03:15]execute_cgi json_proto POST (null) [09:03:15]execute_cgi path=json_proto method=POST [09:03:15]POST find Content-Length [09:03:15]Host: 172.17.50.3:8080 [09:03:15]Content-Length: 793 [09:03:15]Content-Type: application/json [09:03:15] [09:03:15]POST finish read [09:03:15]Found Content-Length = 793 [09:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:15]execute_script... [09:03: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)2885887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:15]POST & json_proto [09:03:15]process_json_proto [09:03:15]json parsed OK: [09:03:15]protocol is kg_v1.0 [09:03:15]action value=close_receipt [09:03:15]process_action close_receipt [09:03:15]cmd_close_receipt [09:03:15]MH_GetDate [09:03:15]Write to MH i2c: F0 00 00 AE 45 E2 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 AE 45 00 57 6A 17 67 6B 98 1E 66 B1 [09:03:15]GetLastDocTimeStamp 1729587424 [09:03:15]current date 1729587799 [09:03:15]FM_GetShiftState [09:03:15]SAM_PROTO_GetShiftState [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 13 01 00 [09:03:15]Write to MH i2c: E2 08 00 AF 45 80 13 01 00 00 00 00 00 71 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 AF 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [09:03:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:03:15]wFMCommunicate OK [09:03:15]SAM_PROTO_GetShiftState done [09:03:15]FM_GetShiftState done [09:03:15]opened in 1729555832 [09:03:15]opened+sec_in_day 1729642232 [09:03:15]quantity*price = 0 [09:03:15]sum+1 = 1 [09:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 69 22.10.2024 09:03 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 43080 ФМ: 0000000000963346 ФД: 70121 ФПД: 26459191876785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70121&fm=26459191876785&tin=02508201610067®Number=0000000000156251&sum=0 [09:03:16]StoreToDocumentArchive [09:03:16]shift 195 fd 70121 [09:03:16]save to /storage/0195/doc_00070121 [09:03:16]save last doc name /storage/0195/doc_00070121 to /storage/kkm_last_doc_name [09:03:16]save OK [09:03:16]Clear old archive folders... [09:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:16]tlvbuf is 01133620 [09:03:16]SAM_PROTO_ClearQueue [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 09 00 00 [09:03:16]Write to MH i2c: E2 08 00 BC 45 80 09 00 00 00 00 00 00 73 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 BC 45 00 90 00 75 [09:03:16]RAPDU: 90 00 [09:03:16]wFMCommunicate OK [09:03:16]SAM_PROTO_ClearQueue done [09:03:16]KKMCreateOFDPacket [09:03:16]OFDProtocolAddRootSTLVToBuf [09:03:16]FM_MakeSignedData [09:03:16]FM_MakeSignedData [09:03:16]SAM_PROTO_SignData [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 0D 01 02 [09:03:16]Write to MH i2c: E2 08 00 BD 45 80 0D 01 02 00 00 00 00 7B [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 BD 45 00 90 00 76 [09:03:16]RAPDU: 90 00 [09:03:16]wFMCommunicate OK [09:03:16]wFMCommunicate request_size=255 [09:03:16]MH_SAM_APDU [09:03: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 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 45 00 00 00 F4 03 04 00 57 6A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 11 01 00 35 04 06 00 18 [09:03:16]Write to MH i2c: E2 02 01 BE 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 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 45 00 00 00 F4 03 04 00 57 6A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 11 01 00 35 04 06 00 18 00 00 10 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 BE 45 00 90 00 77 [09:03:16]RAPDU: 90 00 [09:03:16]wFMCommunicate OK [09:03:16]wFMCommunicate request_size=10 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 0D 02 02 05 10 82 BB 9C B1 [09:03:16]Write to MH i2c: E2 0D 00 BF 45 80 0D 02 02 05 00 10 82 BB 9C B1 00 00 22 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 03 00 BF 45 00 90 00 78 [09:03:16]RAPDU: 90 00 [09:03:16]wFMCommunicate OK [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 0D 03 02 [09:03:16]Write to MH i2c: E2 08 00 C0 45 80 0D 03 02 00 00 00 00 80 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 0B 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 0B 00 C0 45 00 1E 83 9E E8 59 94 58 AF 90 00 9C [09:03:16]RAPDU: 1E 83 9E E8 59 94 58 AF 90 00 [09:03:16]wFMCommunicate OK [09:03:16]SAM_PROTO_SignData done [09:03:16]FM_MakeSignedData done [09:03:16]CreateOFDProtocolMessage [09:03:16]wFMCommunicate request_size=4 [09:03:16]MH_SAM_APDU [09:03:16]CAPDU: 80 11 00 00 [09:03:16]Write to MH i2c: E2 08 00 C1 45 80 11 00 00 00 00 00 00 80 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:16]Read from MH i2c: E2 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 17 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: E2 17 00 C1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [09:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:03:16]wFMCommunicate OK [09:03:16]CreateOFDProtocolMessage done [09:03:16]OFDSenderStorePacket 70121 [09:03:16]StoreOFDPacket docnum=70121 [09:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D0 4E 07 01 85 4B 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 45 00 00 00 F4 03 04 00 57 6A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 11 01 00 35 04 06 00 18 10 82 BB 9C B1 1E 83 9E E8 59 94 58 AF [09:03:16]CheckFolder [09:03:16]dirname=/storage/ofd_packets [09:03:16]CheckFolder done [09:03:16]ProducePacketName [09:03:16]name=ofd_packets/00070121 [09:03:16]NVStorageSaveData ofd_packets/00070121 [09:03:16]File name is /storage/ofd_packets/00070121 [09:03:16]Write 301 bytes [09:03:16]NVStorageSaveData done [09:03:16]OFDSenderStorePacket done [09:03:16]KKMCreateOFDPacket done [09:03:16]NVStorageSaveData kkm_last_timestamp [09:03:16]File name is /storage/kkm_last_timestamp [09:03:16]Write 4 bytes [09:03:16]NVStorageSaveData done [09:03:16]ExternCall_PrintAddStr [09:03:16]wPrintStart [09:03:16]Write to MH i2c: 01 00 00 C2 45 07 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 C2 45 00 00 00 00 00 FF 0F 1C [09:03:16]RasterBufferAndPrint [09:03:16]line Счет N : (1)2885887 [09:03:16]line ИНН: 02508201610067 [09:03:16]line Контрольно-Кассовый Чек [09:03:16]line ПРОДАЖА [09:03:16]line ТРК (МРК, ГНК) : 42 [09:03:16]line Товар: 2710124130 [09:03:16]line Аи-92-К-5 [09:03:16]line 10.000 * 0.00 [09:03:16]line = 0.00 [09:03:16]line НДС 12% НСП 1% [09:03:16]line > о реализуемом товаре [09:03:16]line ИТОГО: 0.00 [09:03:16]line НСП 1% : 0.00 [09:03:16]line НДС 12% : 0.00 [09:03:16]line Наличными: 0.00 [09:03:16]line Безнал.: 0.00 [09:03:16]line Место: АЗС № 85 "Партнер Нефть" [09:03:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:03:16]line СНО: Общий режим [09:03:16]line Чек 69 22.10.2024 09:03 [09:03:16]line Смена: 195 ФФД: 1.0 [09:03:16]line ЗНМ: 0300000167 [09:03:16]line РНМ: 0000000000156251 [09:03:16]line Версия ККМ: v1.0 [09:03:16]line Талоны: Топливная Карта [09:03:16]line 43080 [09:03:16]line ФМ: 0000000000963346 [09:03:16]line ФД: 70121 [09:03:16]line ФПД: 26459191876785 [09:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70121&fm=26459191876785&tin=02508201610067®Number=0000000000156251&sum=0 [09:03:17]OFD Sender: Processing packet 70121 [packets to send 18, broken 17] [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00070121 [09:03:17]OFD Sender: To server: pG, [09:03:17]CommunicateWithHost lk.salyk.kg:30040 [09:03:17]ConnectInit lk.salyk.kg [09:03:17]written 0, free lines is 4095 [09:03:17]Connected sock=10 [09:03: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 34 36 0F 01 00 00 D0 4E 07 01 85 4B 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 45 00 00 00 F4 03 04 00 57 6A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 11 01 00 35 04 06 00 18 10 82 BB 9C B1 1E 83 9E E8 59 94 58 AF [09:03: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 34 36 4F 00 00 00 B4 97 47 00 04 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 34 36 10 04 04 00 E9 11 01 00 F4 03 04 00 F9 13 17 67 B6 04 01 00 00 1C CF 51 A7 9C 05 3C 40 [09:03:17]CommunicateWithHost err = 0 [09:03:17]CheckOFDResponse [09:03:17]1017 (14) - 77093643461234 [09:03:17]1041 (16) - 0000000000963346 [09:03:17]1040 (4) - 70121 [09:03:17]1012 (4) - 22.10.2024 02:54 [09:03:17]1206 (1) - 0 [09:03:17]OFD Sender: Remove packet 70121 [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00070121 [09:03:17]NVStorageDeleteData [09:03:17]Write to MH i2c: 01 00 00 EC 45 31 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 EC 45 00 00 00 00 00 FD 0C 41 [09:03:17]RasterBufferAndPrint [09:03:17]line [09:03:17]line [09:03:17]line [09:03:17]line [09:03:17]line [09:03:17]written 0, free lines is 3334 [09:03:17]MH_Cut [09:03:17]Write to MH i2c: D1 01 00 F3 45 01 0A [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D1 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D1 01 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D1 01 00 F3 45 00 09 [09:03:17]Write to MH i2c: 01 00 00 F4 45 39 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:18]OFD Sender: No OFD packet to send [09:03:18]*** Cut start [09:03:18]*** Partial cut [09:03:18]*** CUTSNS_PIN = 1 [09:03:18]*** CUTSNS_PIN = 0 [09:03:18]*** Brake cut motor [09:03:18]Read from MH i2c: 01 [09:03:18]MH_I2C_Read... [09:03:18]*** Stop cut motor [09:03:18]*** Cut end [09:03:18]Read from MH i2c: 01 07 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 F4 45 00 00 00 00 00 FF 0F 4E [09:03:18]process_action close_receipt done [09:03:18]requested_data is exist [09:03:18]produce_requested_data [09:03:18]requested_item fm.sn is exist - process it [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 11 00 00 [09:03:18]Write to MH i2c: E2 08 00 F5 45 80 11 00 00 00 00 00 00 B4 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:19]Read from MH i2c: E2 17 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 17 00 F5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [09:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:03:19]wFMCommunicate OK [09:03:19]requested_item fd.num is exist - process it [09:03:19]SAM_PROTO_GetFieldsCounters [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 00 00 [09:03:19]Write to MH i2c: E2 08 00 F6 45 80 13 00 00 00 00 00 00 B7 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 F6 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 11 01 00 0E 04 04 00 C3 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 5F [09:03: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 11 01 00 0E 04 04 00 C3 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 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetFieldsCounters done [09:03:19]requested_item shift.num is exist - process it [09:03:19]requested_item shift.opened is exist - process it [09:03:19]req_shift_opened [09:03:19]FM_GetShiftState [09:03:19]SAM_PROTO_GetShiftState [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 01 00 [09:03:19]Write to MH i2c: E2 08 00 F7 45 80 13 01 00 00 00 00 00 B9 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 0E 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 0E 00 F7 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A7 [09:03:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetShiftState done [09:03:19]FM_GetShiftState done [09:03:19]req_shift_opened done [09:03:19]requested_item shift.open_date is exist - process it [09:03:19]req_shift_open_date [09:03:19]req_shift_open_date done [09:03:19]produce_requested_data done [09:03:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70121,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:03:19]process_action_free close_receipt [09:03:19]json_value_free [09:03:19]json_value_free done [09:03:19]process_json_proto returns [09:03:19]Send response to host [09:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70121,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:03:19]free response buf [09:03:19]execute_script done [09:03:19]execute_script returns [09:03:19]free content buf [09:03:19]Sock 9.Close socket [09:03:19]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:32]accept exits with 7 [09:06:32]New connection [09:06:32]New thread 3067026788 created [09:06:32]Thread 3067170148 joined [09:06:32]Waiting for new connection... [09:06:32] Sock 7.Parse request [09:06:32]Sock 7.Check first char [09:06:32]Sock 7.First char is OK [09:06:32]request: POST /json_proto HTTP/1.0 [09:06:32]Method: POST [09:06:32]URL: /json_proto [09:06:32]Method is POST - this is cgi request [09:06:32]url: /json_proto [09:06:32]query_string will be loaded in cgi processing [09:06:32]execute_cgi json_proto POST (null) [09:06:32]execute_cgi path=json_proto method=POST [09:06:32]POST find Content-Length [09:06:32]Host: 172.17.50.3:8080 [09:06:32]Content-Length: 683 [09:06:32]Content-Type: application/json [09:06:32] [09:06:32]POST finish read [09:06:32]Found Content-Length = 683 [09:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:32]execute_script... [09:06: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)2885888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:32]POST & json_proto [09:06:32]process_json_proto [09:06:32]json parsed OK: [09:06:32]protocol is kg_v1.0 [09:06:32]action value=close_receipt [09:06:32]process_action close_receipt [09:06:32]cmd_close_receipt [09:06:32]MH_GetDate [09:06:32]Write to MH i2c: F0 00 00 F8 45 2C [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: F0 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: F0 09 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: F0 09 00 F8 45 00 1D 6B 17 67 6B 98 1E 66 C2 [09:06:32]GetLastDocTimeStamp 1729587799 [09:06:32]current date 1729587997 [09:06:32]FM_GetShiftState [09:06:32]SAM_PROTO_GetShiftState [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 13 01 00 [09:06:32]Write to MH i2c: E2 08 00 F9 45 80 13 01 00 00 00 00 00 BB [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 0E 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 0E 00 F9 45 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [09:06:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:06:32]wFMCommunicate OK [09:06:32]SAM_PROTO_GetShiftState done [09:06:32]FM_GetShiftState done [09:06:32]opened in 1729555832 [09:06:32]opened+sec_in_day 1729642232 [09:06:32]quantity*price = 100015 [09:06:32]sum+1 = 100017 [09:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 70 22.10.2024 09:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70122 ФПД: 113236504819773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70122&fm=113236504819773&tin=02508201610067®Number=0000000000156251&sum=100000 [09:06:33]StoreToDocumentArchive [09:06:33]shift 195 fd 70122 [09:06:33]save to /storage/0195/doc_00070122 [09:06:33]save last doc name /storage/0195/doc_00070122 to /storage/kkm_last_doc_name [09:06:33]save OK [09:06:33]Clear old archive folders... [09:06:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:33]tlvbuf is 011449E0 [09:06:33]SAM_PROTO_ClearQueue [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 09 00 00 [09:06:33]Write to MH i2c: E2 08 00 06 46 80 09 00 00 00 00 00 00 BE [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 03 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 06 46 00 90 00 C0 [09:06:34]RAPDU: 90 00 [09:06:34]wFMCommunicate OK [09:06:34]SAM_PROTO_ClearQueue done [09:06:34]KKMCreateOFDPacket [09:06:34]OFDProtocolAddRootSTLVToBuf [09:06:34]FM_MakeSignedData [09:06:34]FM_MakeSignedData [09:06:34]SAM_PROTO_SignData [09:06:34]wFMCommunicate request_size=4 [09:06:34]MH_SAM_APDU [09:06:34]CAPDU: 80 0D 01 02 [09:06:34]Write to MH i2c: E2 08 00 07 46 80 0D 01 02 00 00 00 00 C6 [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 07 46 00 90 00 C1 [09:06:34]RAPDU: 90 00 [09:06:34]wFMCommunicate OK [09:06:34]wFMCommunicate request_size=255 [09:06:34]MH_SAM_APDU [09:06: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 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 46 00 00 00 F4 03 04 00 1D 6B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 11 01 00 35 04 06 00 66 [09:06:34]Write to MH i2c: E2 02 01 08 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 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 46 00 00 00 F4 03 04 00 1D 6B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 11 01 00 35 04 06 00 66 00 00 BA [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 08 46 00 90 00 C2 [09:06:34]RAPDU: 90 00 [09:06:34]wFMCommunicate OK [09:06:34]wFMCommunicate request_size=10 [09:06:34]MH_SAM_APDU [09:06:34]CAPDU: 80 0D 02 02 05 FC ED A5 38 3D [09:06:34]Write to MH i2c: E2 0D 00 09 46 80 0D 02 02 05 00 FC ED A5 38 3D 00 00 D6 [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 03 00 09 46 00 90 00 C3 [09:06:34]RAPDU: 90 00 [09:06:34]wFMCommunicate OK [09:06:34]wFMCommunicate request_size=4 [09:06:34]MH_SAM_APDU [09:06:34]CAPDU: 80 0D 03 02 [09:06:34]Write to MH i2c: E2 08 00 0A 46 80 0D 03 02 00 00 00 00 CB [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 0B 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 0B 00 0A 46 00 9A A3 6A FF 99 37 48 9A 90 00 24 [09:06:34]RAPDU: 9A A3 6A FF 99 37 48 9A 90 00 [09:06:34]wFMCommunicate OK [09:06:34]SAM_PROTO_SignData done [09:06:34]FM_MakeSignedData done [09:06:34]CreateOFDProtocolMessage [09:06:34]wFMCommunicate request_size=4 [09:06:34]MH_SAM_APDU [09:06:34]CAPDU: 80 11 00 00 [09:06:34]Write to MH i2c: E2 08 00 0B 46 80 11 00 00 00 00 00 00 CB [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 17 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 17 00 0B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [09:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:34]wFMCommunicate OK [09:06:34]CreateOFDProtocolMessage done [09:06:34]OFDSenderStorePacket 70122 [09:06:34]StoreOFDPacket docnum=70122 [09:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 CA 07 01 FA 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 46 00 00 00 F4 03 04 00 1D 6B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 11 01 00 35 04 06 00 66 FC ED A5 38 3D 9A A3 6A FF 99 37 48 9A [09:06:34]CheckFolder [09:06:34]dirname=/storage/ofd_packets [09:06:34]CheckFolder done [09:06:34]ProducePacketName [09:06:34]name=ofd_packets/00070122 [09:06:34]NVStorageSaveData ofd_packets/00070122 [09:06:34]File name is /storage/ofd_packets/00070122 [09:06:34]Write 301 bytes [09:06:34]NVStorageSaveData done [09:06:34]OFDSenderStorePacket done [09:06:34]KKMCreateOFDPacket done [09:06:34]NVStorageSaveData kkm_last_timestamp [09:06:34]File name is /storage/kkm_last_timestamp [09:06:34]Write 4 bytes [09:06:34]NVStorageSaveData done [09:06:34]ExternCall_PrintAddStr [09:06:34]wPrintStart [09:06:34]Write to MH i2c: 01 00 00 0C 46 52 [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 07 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 07 00 0C 46 00 00 00 00 00 FF 0F 67 [09:06:34]RasterBufferAndPrint [09:06:34]line Счет N : (1)2885888 [09:06:34]line ИНН: 02508201610067 [09:06:34]line Контрольно-Кассовый Чек [09:06:34]line ПРОДАЖА [09:06:34]line ТРК (МРК, ГНК) : 42 [09:06:34]line Товар: 2710124130 [09:06:34]line Аи-92-К-5 [09:06:34]line 14.950 * 66.90 [09:06:34]line = 1000.16 [09:06:34]line НДС 12% НСП 1% [09:06:34]line > о реализуемом товаре [09:06:34]line ОКРУГЛЕНИЕ: -0.16 [09:06:34]line ИТОГО: 1000.00 [09:06:34]line Внесено: 1000.00 [09:06:34]line СДАЧА: 0.00 [09:06:34]line НСП 1% : 8.85 [09:06:34]line НДС 12% : 106.21 [09:06:34]line Наличными: 1000.00 [09:06:34]line Безнал.: 0.00 [09:06:34]line Место: АЗС № 85 "Партнер Нефть" [09:06:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:06:34]line СНО: Общий режим [09:06:34]line Чек 70 22.10.2024 09:06 [09:06:34]line Смена: 195 ФФД: 1.0 [09:06:34]line ЗНМ: 0300000167 [09:06:34]line РНМ: 0000000000156251 [09:06:34]line Версия ККМ: v1.0 [09:06:34]line ФМ: 0000000000963346 [09:06:34]line ФД: 70122 [09:06:34]line ФПД: 113236504819773 [09:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70122&fm=113236504819773&tin=02508201610067®Number=0000000000156251&sum=100000 [09:06:34]OFD Sender: Processing packet 70122 [packets to send 18, broken 17] [09:06:34]ProducePacketName [09:06:34]name=ofd_packets/00070122 [09:06:34]OFD Sender: To server: pG, [09:06:34]CommunicateWithHost lk.salyk.kg:30040 [09:06:34]ConnectInit lk.salyk.kg [09:06:34]written 0, free lines is 4095 [09:06:34]Connected sock=10 [09:06: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 34 36 0F 01 00 00 C4 CA 07 01 FA 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 46 00 00 00 F4 03 04 00 1D 6B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 11 01 00 35 04 06 00 66 FC ED A5 38 3D 9A A3 6A FF 99 37 48 9A [09:06: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 34 36 4F 00 00 00 4C 7E 47 00 A5 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 34 36 10 04 04 00 EA 11 01 00 F4 03 04 00 BE 14 17 67 B6 04 01 00 00 F2 31 0B E8 9E 67 85 EB [09:06:35]CommunicateWithHost err = 0 [09:06:35]CheckOFDResponse [09:06:35]1017 (14) - 77093643461234 [09:06:35]1041 (16) - 0000000000963346 [09:06:35]1040 (4) - 70122 [09:06:35]1012 (4) - 22.10.2024 02:58 [09:06:35]1206 (1) - 0 [09:06:35]OFD Sender: Remove packet 70122 [09:06:35]ProducePacketName [09:06:35]name=ofd_packets/00070122 [09:06:35]NVStorageDeleteData [09:06:35]Write to MH i2c: 01 00 00 37 46 7D [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 37 46 00 00 00 00 00 EB 0C 7B [09:06:35]RasterBufferAndPrint [09:06:35]line [09:06:35]line [09:06:35]line [09:06:35]line [09:06:35]line [09:06:35]written 0, free lines is 3313 [09:06:35]MH_Cut [09:06:35]Write to MH i2c: D1 01 00 3E 46 01 56 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: D1 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: D1 01 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: D1 01 00 3E 46 00 55 [09:06:35]Write to MH i2c: 01 00 00 3F 46 85 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]OFD Sender: No OFD packet to send [09:06:35]*** Cut start [09:06:35]*** Partial cut [09:06:35]*** CUTSNS_PIN = 1 [09:06:36]*** CUTSNS_PIN = 0 [09:06:36]*** Brake cut motor [09:06:36]Read from MH i2c: 01 [09:06:36]MH_I2C_Read... [09:06:36]*** Stop cut motor [09:06:36]*** Cut end [09:06:36]Read from MH i2c: 01 07 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: 01 07 00 3F 46 00 00 00 00 00 FF 0F 9A [09:06:36]process_action close_receipt done [09:06:36]requested_data is exist [09:06:36]produce_requested_data [09:06:36]requested_item fm.sn is exist - process it [09:06:36]wFMCommunicate request_size=4 [09:06:36]MH_SAM_APDU [09:06:36]CAPDU: 80 11 00 00 [09:06:36]Write to MH i2c: E2 08 00 40 46 80 11 00 00 00 00 00 00 00 [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:36]Read from MH i2c: E2 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 17 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 17 00 40 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [09:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:36]wFMCommunicate OK [09:06:36]requested_item fd.num is exist - process it [09:06:36]SAM_PROTO_GetFieldsCounters [09:06:36]wFMCommunicate request_size=4 [09:06:36]MH_SAM_APDU [09:06:36]CAPDU: 80 13 00 00 [09:06:36]Write to MH i2c: E2 08 00 41 46 80 13 00 00 00 00 00 00 03 [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:36]Read from MH i2c: E2 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 62 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 62 00 41 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 11 01 00 0E 04 04 00 C3 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 AF [09:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 11 01 00 0E 04 04 00 C3 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 [09:06:36]wFMCommunicate OK [09:06:36]SAM_PROTO_GetFieldsCounters done [09:06:36]requested_item shift.num is exist - process it [09:06:36]requested_item shift.opened is exist - process it [09:06:36]req_shift_opened [09:06:36]FM_GetShiftState [09:06:36]SAM_PROTO_GetShiftState [09:06:36]wFMCommunicate request_size=4 [09:06:36]MH_SAM_APDU [09:06:36]CAPDU: 80 13 01 00 [09:06:36]Write to MH i2c: E2 08 00 42 46 80 13 01 00 00 00 00 00 05 [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:36]Read from MH i2c: E2 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 0E 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: E2 0E 00 42 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F3 [09:06:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:06:36]wFMCommunicate OK [09:06:36]SAM_PROTO_GetShiftState done [09:06:36]FM_GetShiftState done [09:06:36]req_shift_opened done [09:06:36]requested_item shift.open_date is exist - process it [09:06:36]req_shift_open_date [09:06:36]req_shift_open_date done [09:06:36]produce_requested_data done [09:06:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70122,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:06:36]process_action_free close_receipt [09:06:36]json_value_free [09:06:36]json_value_free done [09:06:36]process_json_proto returns [09:06:36]Send response to host [09:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70122,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:06:36]free response buf [09:06:36]execute_script done [09:06:36]execute_script returns [09:06:36]free content buf [09:06:36]Sock 7.Close socket [09:06:36]Sock 7.Thread stoped [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07: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:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:12]accept exits with 9 [09:14:12]New connection [09:14:12]New thread 3067170148 created [09:14:12]Thread 3067026788 joined [09:14:12]Waiting for new connection... [09:14:12] Sock 9.Parse request [09:14:12]Sock 9.Check first char [09:14:12]Sock 9.First char is OK [09:14:12]request: POST /json_proto HTTP/1.0 [09:14:12]Method: POST [09:14:12]URL: /json_proto [09:14:12]Method is POST - this is cgi request [09:14:12]url: /json_proto [09:14:12]query_string will be loaded in cgi processing [09:14:12]execute_cgi json_proto POST (null) [09:14:12]execute_cgi path=json_proto method=POST [09:14:12]POST find Content-Length [09:14:12]Host: 172.17.50.3:8080 [09:14:12]Content-Length: 680 [09:14:12]Content-Type: application/json [09:14:12] [09:14:12]POST finish read [09:14:12]Found Content-Length = 680 [09:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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:14:12]execute_script... [09:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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:14:12]POST & json_proto [09:14:12]process_json_proto [09:14:12]json parsed OK: [09:14:12]protocol is kg_v1.0 [09:14:12]action value=close_receipt [09:14:12]process_action close_receipt [09:14:12]cmd_close_receipt [09:14:12]MH_GetDate [09:14:12]Write to MH i2c: F0 00 00 43 46 78 [09:14:12]Write i2c OK [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: F0 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: F0 09 00 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: F0 09 00 43 46 00 E8 6C 17 67 6B 98 1E 66 DA [09:14:12]GetLastDocTimeStamp 1729587997 [09:14:12]current date 1729588456 [09:14:12]FM_GetShiftState [09:14:12]SAM_PROTO_GetShiftState [09:14:12]wFMCommunicate request_size=4 [09:14:12]MH_SAM_APDU [09:14:12]CAPDU: 80 13 01 00 [09:14:12]Write to MH i2c: E2 08 00 44 46 80 13 01 00 00 00 00 00 07 [09:14:12]Write i2c OK [09:14:12]MH_I2C_Read... [09:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:12]Read from MH i2c: E2 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: E2 0E 00 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: E2 0E 00 44 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F5 [09:14:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:14:12]wFMCommunicate OK [09:14:12]SAM_PROTO_GetShiftState done [09:14:12]FM_GetShiftState done [09:14:12]opened in 1729555832 [09:14:12]opened+sec_in_day 1729642232 [09:14:12]quantity*price = 150037 [09:14:12]sum+1 = 150039 [09:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 71 22.10.2024 09:14 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70123 ФПД: 170057752784169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091416&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70123&fm=170057752784169&tin=02508201610067®Number=0000000000156251&sum=150000 [09:14:13]StoreToDocumentArchive [09:14:13]shift 195 fd 70123 [09:14:13]save to /storage/0195/doc_00070123 [09:14:13]save last doc name /storage/0195/doc_00070123 to /storage/kkm_last_doc_name [09:14:13]save OK [09:14:13]Clear old archive folders... [09:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:13]tlvbuf is 0111FED0 [09:14:13]SAM_PROTO_ClearQueue [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 09 00 00 [09:14:13]Write to MH i2c: E2 08 00 51 46 80 09 00 00 00 00 00 00 09 [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 51 46 00 90 00 0B [09:14:13]RAPDU: 90 00 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_ClearQueue done [09:14:13]KKMCreateOFDPacket [09:14:13]OFDProtocolAddRootSTLVToBuf [09:14:13]FM_MakeSignedData [09:14:13]FM_MakeSignedData [09:14:13]SAM_PROTO_SignData [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 0D 01 02 [09:14:13]Write to MH i2c: E2 08 00 52 46 80 0D 01 02 00 00 00 00 11 [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 52 46 00 90 00 0C [09:14:13]RAPDU: 90 00 [09:14:13]wFMCommunicate OK [09:14:13]wFMCommunicate request_size=255 [09:14:13]MH_SAM_APDU [09:14: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 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 47 00 00 00 F4 03 04 00 E8 6C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 11 01 00 35 04 06 00 9A AA A7 F2 [09:14:13]Write to MH i2c: E2 02 01 53 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 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 47 00 00 00 F4 03 04 00 E8 6C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 11 01 00 35 04 06 00 9A AA A7 F2 00 00 BD [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 53 46 00 90 00 0D [09:14:13]RAPDU: 90 00 [09:14:13]wFMCommunicate OK [09:14:13]wFMCommunicate request_size=7 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 0D 02 02 02 2D 29 [09:14:13]Write to MH i2c: E2 0A 00 54 46 80 0D 02 02 02 00 2D 29 00 00 6E [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 03 00 54 46 00 90 00 0E [09:14:13]RAPDU: 90 00 [09:14:13]wFMCommunicate OK [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 0D 03 02 [09:14:13]Write to MH i2c: E2 08 00 55 46 80 0D 03 02 00 00 00 00 16 [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0B 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0B 00 55 46 00 14 DF 07 5F B2 8F B6 7D 90 00 E4 [09:14:13]RAPDU: 14 DF 07 5F B2 8F B6 7D 90 00 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_SignData done [09:14:13]FM_MakeSignedData done [09:14:13]CreateOFDProtocolMessage [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 11 00 00 [09:14:13]Write to MH i2c: E2 08 00 56 46 80 11 00 00 00 00 00 00 16 [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 17 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 17 00 56 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [09:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:14:13]wFMCommunicate OK [09:14:13]CreateOFDProtocolMessage done [09:14:13]OFDSenderStorePacket 70123 [09:14:13]StoreOFDPacket docnum=70123 [09:14:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 97 0A 04 01 52 FF 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 47 00 00 00 F4 03 04 00 E8 6C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 11 01 00 35 04 06 00 9A AA A7 F2 2D 29 14 DF 07 5F B2 8F B6 7D [09:14:13]CheckFolder [09:14:13]dirname=/storage/ofd_packets [09:14:13]CheckFolder done [09:14:13]ProducePacketName [09:14:13]name=ofd_packets/00070123 [09:14:13]NVStorageSaveData ofd_packets/00070123 [09:14:13]File name is /storage/ofd_packets/00070123 [09:14:13]Write 298 bytes [09:14:13]NVStorageSaveData done [09:14:13]OFDSenderStorePacket done [09:14:13]KKMCreateOFDPacket done [09:14:13]NVStorageSaveData kkm_last_timestamp [09:14:13]File name is /storage/kkm_last_timestamp [09:14:13]Write 4 bytes [09:14:13]NVStorageSaveData done [09:14:13]ExternCall_PrintAddStr [09:14:13]wPrintStart [09:14:13]Write to MH i2c: 01 00 00 57 46 9D [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: 01 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: 01 07 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: 01 07 00 57 46 00 00 00 00 00 FF 0F B2 [09:14:13]RasterBufferAndPrint [09:14:13]line Счет N : (1)2885889 [09:14:13]line ИНН: 02508201610067 [09:14:13]line Контрольно-Кассовый Чек [09:14:13]line ПРОДАЖА [09:14:13]line ТРК (МРК, ГНК) : 61 [09:14:13]line Товар: 2710194210 [09:14:13]line ДТ-К-5 [09:14:13]line 19.690 * 76.20 [09:14:13]line = 1500.38 [09:14:13]line НДС 12% НСП 1% [09:14:13]line > о реализуемом товаре [09:14:13]line ОКРУГЛЕНИЕ: -0.38 [09:14:13]line ИТОГО: 1500.00 [09:14:13]line Внесено: 1500.00 [09:14:13]line СДАЧА: 0.00 [09:14:13]line НСП 1% : 13.28 [09:14:13]line НДС 12% : 159.33 [09:14:13]line Наличными: 1500.00 [09:14:13]line Безнал.: 0.00 [09:14:13]line Место: АЗС № 85 "Партнер Нефть" [09:14:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:14:13]line СНО: Общий режим [09:14:13]line Чек 71 22.10.2024 09:14 [09:14:13]line Смена: 195 ФФД: 1.0 [09:14:13]line ЗНМ: 0300000167 [09:14:13]line РНМ: 0000000000156251 [09:14:13]line Версия ККМ: v1.0 [09:14:13]line ФМ: 0000000000963346 [09:14:13]line ФД: 70123 [09:14:13]line ФПД: 170057752784169 [09:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091416&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70123&fm=170057752784169&tin=02508201610067®Number=0000000000156251&sum=150000 [09:14:14]OFD Sender: Processing packet 70123 [packets to send 18, broken 17] [09:14:14]ProducePacketName [09:14:14]name=ofd_packets/00070123 [09:14:14]OFD Sender: To server: pG, [09:14:14]CommunicateWithHost lk.salyk.kg:30040 [09:14:14]ConnectInit lk.salyk.kg [09:14:14]written 0, free lines is 4095 [09:14:14]Connected sock=10 [09:14: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 34 36 0C 01 00 00 97 0A 04 01 52 FF 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 47 00 00 00 F4 03 04 00 E8 6C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 11 01 00 35 04 06 00 9A AA A7 F2 2D 29 14 DF 07 5F B2 8F B6 7D [09: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 34 36 4F 00 00 00 A8 B7 47 00 2A 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 34 36 10 04 04 00 EB 11 01 00 F4 03 04 00 8A 16 17 67 B6 04 01 00 00 71 5B F1 E3 D3 6C D4 19 [09:14:14]CommunicateWithHost err = 0 [09:14:14]CheckOFDResponse [09:14:14]1017 (14) - 77093643461234 [09:14:14]1041 (16) - 0000000000963346 [09:14:14]1040 (4) - 70123 [09:14:14]1012 (4) - 22.10.2024 03:05 [09:14:14]1206 (1) - 0 [09:14:14]OFD Sender: Remove packet 70123 [09:14:14]ProducePacketName [09:14:14]name=ofd_packets/00070123 [09:14:14]NVStorageDeleteData [09:14:14]Write to MH i2c: 01 00 00 82 46 C8 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 82 46 00 00 00 00 00 E1 0C BC [09:14:14]RasterBufferAndPrint [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]written 0, free lines is 3303 [09:14:14]MH_Cut [09:14:14]Write to MH i2c: D1 01 00 89 46 01 A1 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 01 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 01 00 89 46 00 A0 [09:14:14]Write to MH i2c: 01 00 00 8A 46 D0 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:15]OFD Sender: No OFD packet to send [09:14:15]*** Cut start [09:14:15]*** Partial cut [09:14:15]*** CUTSNS_PIN = 1 [09:14:15]*** CUTSNS_PIN = 0 [09:14:15]*** Brake cut motor [09:14:15]Read from MH i2c: 01 [09:14:15]MH_I2C_Read... [09:14:16]*** Stop cut motor [09:14:16]*** Cut end [09:14:16]Read from MH i2c: 01 07 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: 01 07 00 8A 46 00 00 00 00 00 FF 0F E5 [09:14:16]process_action close_receipt done [09:14:16]requested_data is exist [09:14:16]produce_requested_data [09:14:16]requested_item fm.sn is exist - process it [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 11 00 00 [09:14:16]Write to MH i2c: E2 08 00 8B 46 80 11 00 00 00 00 00 00 4B [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 17 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 17 00 8B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [09:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:14:16]wFMCommunicate OK [09:14:16]requested_item fd.num is exist - process it [09:14:16]SAM_PROTO_GetFieldsCounters [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 13 00 00 [09:14:16]Write to MH i2c: E2 08 00 8C 46 80 13 00 00 00 00 00 00 4E [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 62 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 62 00 8C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 11 01 00 0E 04 04 00 C3 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 FE [09:14: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 11 01 00 0E 04 04 00 C3 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 [09:14:16]wFMCommunicate OK [09:14:16]SAM_PROTO_GetFieldsCounters done [09:14:16]requested_item shift.num is exist - process it [09:14:16]requested_item shift.opened is exist - process it [09:14:16]req_shift_opened [09:14:16]FM_GetShiftState [09:14:16]SAM_PROTO_GetShiftState [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 13 01 00 [09:14:16]Write to MH i2c: E2 08 00 8D 46 80 13 01 00 00 00 00 00 50 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 8D 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3E [09:14:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:14:16]wFMCommunicate OK [09:14:16]SAM_PROTO_GetShiftState done [09:14:16]FM_GetShiftState done [09:14:16]req_shift_opened done [09:14:16]requested_item shift.open_date is exist - process it [09:14:16]req_shift_open_date [09:14:16]req_shift_open_date done [09:14:16]produce_requested_data done [09:14:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70123,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:14:16]process_action_free close_receipt [09:14:16]json_value_free [09:14:16]json_value_free done [09:14:16]process_json_proto returns [09:14:16]Send response to host [09:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70123,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:14:16]free response buf [09:14:16]execute_script done [09:14:16]execute_script returns [09:14:16]free content buf [09:14:16]Sock 9.Close socket [09:14:16]Sock 9.Thread stoped [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:01]accept exits with 7 [09:16:01]New connection [09:16:01]New thread 3067026788 created [09:16:01]Thread 3067170148 joined [09:16:01]Waiting for new connection... [09:16:01] Sock 7.Parse request [09:16:01]Sock 7.Check first char [09:16:01]Sock 7.First char is OK [09:16:01]request: POST /json_proto HTTP/1.0 [09:16:01]Method: POST [09:16:01]URL: /json_proto [09:16:01]Method is POST - this is cgi request [09:16:01]url: /json_proto [09:16:01]query_string will be loaded in cgi processing [09:16:01]execute_cgi json_proto POST (null) [09:16:01]execute_cgi path=json_proto method=POST [09:16:01]POST find Content-Length [09:16:01]Host: 172.17.50.3:8080 [09:16:01]Content-Length: 755 [09:16:01]Content-Type: application/json [09:16:01] [09:16:01]POST finish read [09:16:01]Found Content-Length = 755 [09:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:01]execute_script... [09:16: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)2885890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:01]POST & json_proto [09:16:01]process_json_proto [09:16:01]json parsed OK: [09:16:01]protocol is kg_v1.0 [09:16:01]action value=close_receipt [09:16:01]process_action close_receipt [09:16:01]cmd_close_receipt [09:16:01]MH_GetDate [09:16:01]Write to MH i2c: F0 00 00 8E 46 C3 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 09 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 09 00 8E 46 00 56 6D 17 67 6B 98 1E 66 94 [09:16:01]GetLastDocTimeStamp 1729588456 [09:16:01]current date 1729588566 [09:16:01]FM_GetShiftState [09:16:01]SAM_PROTO_GetShiftState [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 01 00 [09:16:01]Write to MH i2c: E2 08 00 8F 46 80 13 01 00 00 00 00 00 52 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 8F 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 40 [09:16:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetShiftState done [09:16:01]FM_GetShiftState done [09:16:01]opened in 1729555832 [09:16:01]opened+sec_in_day 1729642232 [09:16:01]quantity*price = 0 [09:16:01]sum+1 = 1 [09:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 72 22.10.2024 09:16 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100954 ФМ: 0000000000963346 ФД: 70124 ФПД: 40133848787200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70124&fm=40133848787200&tin=02508201610067®Number=0000000000156251&sum=0 [09:16:02]StoreToDocumentArchive [09:16:02]shift 195 fd 70124 [09:16:02]save to /storage/0195/doc_00070124 [09:16:02]save last doc name /storage/0195/doc_00070124 to /storage/kkm_last_doc_name [09:16:02]save OK [09:16:02]Clear old archive folders... [09:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:02]tlvbuf is 011CD8C0 [09:16:02]SAM_PROTO_ClearQueue [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 09 00 00 [09:16:02]Write to MH i2c: E2 08 00 9C 46 80 09 00 00 00 00 00 00 54 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 9C 46 00 90 00 56 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]SAM_PROTO_ClearQueue done [09:16:02]KKMCreateOFDPacket [09:16:02]OFDProtocolAddRootSTLVToBuf [09:16:02]FM_MakeSignedData [09:16:02]FM_MakeSignedData [09:16:02]SAM_PROTO_SignData [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 01 02 [09:16:02]Write to MH i2c: E2 08 00 9D 46 80 0D 01 02 00 00 00 00 5C [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 9D 46 00 90 00 57 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]wFMCommunicate request_size=255 [09:16:02]MH_SAM_APDU [09:16: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 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 48 00 00 00 F4 03 04 00 56 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 11 01 00 35 04 06 00 24 [09:16:02]Write to MH i2c: E2 02 01 9E 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 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 48 00 00 00 F4 03 04 00 56 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 11 01 00 35 04 06 00 24 00 00 3C [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 9E 46 00 90 00 58 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]wFMCommunicate request_size=10 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 02 02 05 80 63 CC E9 00 [09:16:02]Write to MH i2c: E2 0D 00 9F 46 80 0D 02 02 05 00 80 63 CC E9 00 00 00 01 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** 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 9F 46 00 90 00 59 [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 A0 46 80 0D 03 02 00 00 00 00 61 [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 A0 46 00 11 94 B6 02 61 B6 C1 C7 90 00 5E [09:16:03]RAPDU: 11 94 B6 02 61 B6 C1 C7 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 A1 46 80 11 00 00 00 00 00 00 61 [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 A1 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [09:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:16:03]wFMCommunicate OK [09:16:03]CreateOFDProtocolMessage done [09:16:03]OFDSenderStorePacket 70124 [09:16:03]StoreOFDPacket docnum=70124 [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 34 36 0F 01 00 00 B8 67 07 01 36 82 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 48 00 00 00 F4 03 04 00 56 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 11 01 00 35 04 06 00 24 80 63 CC E9 00 11 94 B6 02 61 B6 C1 C7 [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/00070124 [09:16:03]NVStorageSaveData ofd_packets/00070124 [09:16:03]File name is /storage/ofd_packets/00070124 [09:16:03]Write 301 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 A2 46 E8 [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 A2 46 00 00 00 00 00 FF 0F FD [09:16:03]RasterBufferAndPrint [09:16:03]line Счет N : (1)2885890 [09:16:03]line ИНН: 02508201610067 [09:16:03]line Контрольно-Кассовый Чек [09:16:03]line ПРОДАЖА [09:16:03]line ТРК (МРК, ГНК) : 32 [09:16:03]line Товар: 2710124130 [09:16:03]line Аи-92-К-5 [09:16:03]line 20.000 * 0.00 [09:16:03]line = 0.00 [09:16:03]line НДС 12% НСП 1% [09:16:03]line > о реализуемом товаре [09:16:03]line ИТОГО: 0.00 [09:16:03]line НСП 1% : 0.00 [09:16:03]line НДС 12% : 0.00 [09:16:03]line Наличными: 0.00 [09:16:03]line Безнал.: 0.00 [09:16:03]line Место: АЗС № 85 "Партнер Нефть" [09:16:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:16:03]line СНО: Общий режим [09:16:03]line Чек 72 22.10.2024 09:16 [09:16:03]line Смена: 195 ФФД: 1.0 [09:16:03]line ЗНМ: 0300000167 [09:16:03]line РНМ: 0000000000156251 [09:16:03]line Версия ККМ: v1.0 [09:16:03]line Талоны: ТК ГПНА Online [09:16:03]line 30100954 [09:16:03]line ФМ: 0000000000963346 [09:16:03]line ФД: 70124 [09:16:03]line ФПД: 40133848787200 [09:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70124&fm=40133848787200&tin=02508201610067®Number=0000000000156251&sum=0 [09:16:03]OFD Sender: Processing packet 70124 [packets to send 18, broken 17] [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00070124 [09:16:03]OFD Sender: To server: pG, [09:16:03]CommunicateWithHost lk.salyk.kg:30040 [09:16:03]ConnectInit lk.salyk.kg [09:16:03]written 0, free lines is 4095 [09:16:03]Connected sock=6 [09:16: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 34 36 0F 01 00 00 B8 67 07 01 36 82 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 48 00 00 00 F4 03 04 00 56 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 11 01 00 35 04 06 00 24 80 63 CC E9 00 11 94 B6 02 61 B6 C1 C7 [09:16: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 34 36 4F 00 00 00 D6 11 47 00 95 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 34 36 10 04 04 00 EC 11 01 00 F4 03 04 00 F7 16 17 67 B6 04 01 00 00 B1 E8 F9 76 71 65 3E 18 [09:16:03]CommunicateWithHost err = 0 [09:16:03]CheckOFDResponse [09:16:03]1017 (14) - 77093643461234 [09:16:03]1041 (16) - 0000000000963346 [09:16:03]1040 (4) - 70124 [09:16:03]1012 (4) - 22.10.2024 03:07 [09:16:03]1206 (1) - 0 [09:16:03]OFD Sender: Remove packet 70124 [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00070124 [09:16:03]NVStorageDeleteData [09:16:03]Write to MH i2c: 01 00 00 CC 46 12 [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 CC 46 00 00 00 00 00 EE 0C 13 [09:16:03]RasterBufferAndPrint [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]written 0, free lines is 3318 [09:16:03]MH_Cut [09:16:03]Write to MH i2c: D1 01 00 D3 46 01 EB [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 01 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 01 00 D3 46 00 EA [09:16:03]Write to MH i2c: 01 00 00 D4 46 1A [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:04]OFD Sender: No OFD packet to send [09:16:04]*** Cut start [09:16:04]*** Partial cut [09:16:04]*** CUTSNS_PIN = 1 [09:16:04]*** CUTSNS_PIN = 0 [09:16:04]*** Brake cut motor [09:16:05]Read from MH i2c: 01 [09:16:05]MH_I2C_Read... [09:16:05]*** Stop cut motor [09:16:05]*** Cut end [09:16:05]Read from MH i2c: 01 07 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: 01 07 00 D4 46 00 00 00 00 00 FF 0F 2F [09:16:05]process_action close_receipt done [09:16:05]requested_data is exist [09:16:05]produce_requested_data [09:16:05]requested_item fm.sn is exist - process it [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 11 00 00 [09:16:05]Write to MH i2c: E2 08 00 D5 46 80 11 00 00 00 00 00 00 95 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 17 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 17 00 D5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [09:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:16:05]wFMCommunicate OK [09:16:05]requested_item fd.num is exist - process it [09:16:05]SAM_PROTO_GetFieldsCounters [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 13 00 00 [09:16:05]Write to MH i2c: E2 08 00 D6 46 80 13 00 00 00 00 00 00 98 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 62 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 62 00 D6 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 11 01 00 0E 04 04 00 C3 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 4C [09:16: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 11 01 00 0E 04 04 00 C3 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 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetFieldsCounters done [09:16:05]requested_item shift.num is exist - process it [09:16:05]requested_item shift.opened is exist - process it [09:16:05]req_shift_opened [09:16:05]FM_GetShiftState [09:16:05]SAM_PROTO_GetShiftState [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 13 01 00 [09:16:05]Write to MH i2c: E2 08 00 D7 46 80 13 01 00 00 00 00 00 9A [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 D7 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 88 [09:16:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetShiftState done [09:16:05]FM_GetShiftState done [09:16:05]req_shift_opened done [09:16:05]requested_item shift.open_date is exist - process it [09:16:05]req_shift_open_date [09:16:05]req_shift_open_date done [09:16:05]produce_requested_data done [09:16:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70124,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:16:05]process_action_free close_receipt [09:16:05]json_value_free [09:16:05]json_value_free done [09:16:05]process_json_proto returns [09:16:05]Send response to host [09:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70124,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:16:05]free response buf [09:16:05]execute_script done [09:16:05]execute_script returns [09:16:05]free content buf [09:16:05]Sock 7.Close socket [09:16:05]Sock 7.Thread stoped [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:08]accept exits with 9 [09:17:08]New connection [09:17:08]New thread 3067170148 created [09:17:08]Thread 3067026788 joined [09:17:08]Waiting for new connection... [09:17:08] Sock 9.Parse request [09:17:08]Sock 9.Check first char [09:17:08]Sock 9.First char is OK [09:17:08]request: POST /json_proto HTTP/1.0 [09:17:08]Method: POST [09:17:08]URL: /json_proto [09:17:08]Method is POST - this is cgi request [09:17:08]url: /json_proto [09:17:08]query_string will be loaded in cgi processing [09:17:08]execute_cgi json_proto POST (null) [09:17:08]execute_cgi path=json_proto method=POST [09:17:08]POST find Content-Length [09:17:08]Host: 172.17.50.3:8080 [09:17:08]Content-Length: 679 [09:17:08]Content-Type: application/json [09:17:08] [09:17:08]POST finish read [09:17:08]Found Content-Length = 679 [09:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [09:17:08]execute_script... [09:17: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)2885892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [09:17:08]POST & json_proto [09:17:08]process_json_proto [09:17:08]json parsed OK: [09:17:08]protocol is kg_v1.0 [09:17:08]action value=close_receipt [09:17:08]process_action close_receipt [09:17:08]cmd_close_receipt [09:17:08]MH_GetDate [09:17:08]Write to MH i2c: F0 00 00 D8 46 0D [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 09 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 09 00 D8 46 00 99 6D 17 67 6B 98 1E 66 21 [09:17:08]GetLastDocTimeStamp 1729588566 [09:17:08]current date 1729588633 [09:17:08]FM_GetShiftState [09:17:08]SAM_PROTO_GetShiftState [09:17:08]wFMCommunicate request_size=4 [09:17:08]MH_SAM_APDU [09:17:08]CAPDU: 80 13 01 00 [09:17:08]Write to MH i2c: E2 08 00 D9 46 80 13 01 00 00 00 00 00 9C [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:08]Read from MH i2c: E2 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 D9 46 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8A [09:17:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:17:08]wFMCommunicate OK [09:17:08]SAM_PROTO_GetShiftState done [09:17:08]FM_GetShiftState done [09:17:08]opened in 1729555832 [09:17:08]opened+sec_in_day 1729642232 [09:17:08]quantity*price = 70044 [09:17:08]sum+1 = 70045 [09:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 73 22.10.2024 09:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70125 ФПД: 102871474549320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091713&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70125&fm=102871474549320&tin=02508201610067®Number=0000000000156251&sum=70000 [09:17:09]StoreToDocumentArchive [09:17:09]shift 195 fd 70125 [09:17:09]save to /storage/0195/doc_00070125 [09:17:09]save last doc name /storage/0195/doc_00070125 to /storage/kkm_last_doc_name [09:17:09]save OK [09:17:09]Clear old archive folders... [09:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:09]tlvbuf is 0128ACA0 [09:17:09]SAM_PROTO_ClearQueue [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 09 00 00 [09:17:09]Write to MH i2c: E2 08 00 E6 46 80 09 00 00 00 00 00 00 9E [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 E6 46 00 90 00 A0 [09:17:09]RAPDU: 90 00 [09:17:09]wFMCommunicate OK [09:17:09]SAM_PROTO_ClearQueue done [09:17:09]KKMCreateOFDPacket [09:17:09]OFDProtocolAddRootSTLVToBuf [09:17:09]FM_MakeSignedData [09:17:09]FM_MakeSignedData [09:17:09]SAM_PROTO_SignData [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 0D 01 02 [09:17:09]Write to MH i2c: E2 08 00 E7 46 80 0D 01 02 00 00 00 00 A6 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 E7 46 00 90 00 A1 [09:17:09]RAPDU: 90 00 [09:17:09]wFMCommunicate OK [09:17:09]wFMCommunicate request_size=255 [09:17:09]MH_SAM_APDU [09:17: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 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 49 00 00 00 F4 03 04 00 99 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 11 01 00 35 04 06 00 5D [09:17:09]Write to MH i2c: E2 02 01 E8 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 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 49 00 00 00 F4 03 04 00 99 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 11 01 00 35 04 06 00 5D 00 00 2B [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 E8 46 00 90 00 A2 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=10 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 02 02 05 8F A1 B2 B2 48 [09:17:10]Write to MH i2c: E2 0D 00 E9 46 80 0D 02 02 05 00 8F A1 B2 B2 48 00 00 8F [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 E9 46 00 90 00 A3 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 03 02 [09:17:10]Write to MH i2c: E2 08 00 EA 46 80 0D 03 02 00 00 00 00 AB [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 EA 46 00 FC 50 FB B2 8E AC FB 5B 90 00 35 [09:17:10]RAPDU: FC 50 FB B2 8E AC FB 5B 90 00 [09:17:10]wFMCommunicate OK [09:17:10]SAM_PROTO_SignData done [09:17:10]FM_MakeSignedData done [09:17:10]CreateOFDProtocolMessage [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 11 00 00 [09:17:10]Write to MH i2c: E2 08 00 EB 46 80 11 00 00 00 00 00 00 AB [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 EB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [09:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:17:10]wFMCommunicate OK [09:17:10]CreateOFDProtocolMessage done [09:17:10]OFDSenderStorePacket 70125 [09:17:10]StoreOFDPacket docnum=70125 [09:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F2 3A 07 01 83 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 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 49 00 00 00 F4 03 04 00 99 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 11 01 00 35 04 06 00 5D 8F A1 B2 B2 48 FC 50 FB B2 8E AC FB 5B [09:17:10]CheckFolder [09:17:10]dirname=/storage/ofd_packets [09:17:10]CheckFolder done [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00070125 [09:17:10]NVStorageSaveData ofd_packets/00070125 [09:17:10]File name is /storage/ofd_packets/00070125 [09:17:10]Write 301 bytes [09:17:10]NVStorageSaveData done [09:17:10]OFDSenderStorePacket done [09:17:10]KKMCreateOFDPacket done [09:17:10]NVStorageSaveData kkm_last_timestamp [09:17:10]File name is /storage/kkm_last_timestamp [09:17:10]Write 4 bytes [09:17:10]NVStorageSaveData done [09:17:10]OFD Sender: Processing packet 70125 [packets to send 18, broken 17] [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00070125 [09:17:10]OFD Sender: To server: pG, [09:17:10]CommunicateWithHost lk.salyk.kg:30040 [09:17:10]ConnectInit lk.salyk.kg [09:17:10]ExternCall_PrintAddStr [09:17:10]wPrintStart [09:17:10]Write to MH i2c: 01 00 00 EC 46 32 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 EC 46 00 00 00 00 00 FF 0F 47 [09:17:10]RasterBufferAndPrint [09:17:10]line Счет N : (1)2885892 [09:17:10]line ИНН: 02508201610067 [09:17:10]line Контрольно-Кассовый Чек [09:17:10]line ПРОДАЖА [09:17:10]line ТРК (МРК, ГНК) : 12 [09:17:10]line Товар: 2710124130 [09:17:10]line Аи-92-К-5 [09:17:10]line 10.470 * 66.90 [09:17:10]line = 700.44 [09:17:10]line НДС 12% НСП 1% [09:17:10]line > о реализуемом товаре [09:17:10]line ОКРУГЛЕНИЕ: -0.44 [09:17:10]line ИТОГО: 700.00 [09:17:10]line Внесено: 700.00 [09:17:10]line СДАЧА: 0.00 [09:17:10]line НСП 1% : 6.20 [09:17:10]line НДС 12% : 74.38 [09:17:10]line Наличными: 700.00 [09:17:10]line Безнал.: 0.00 [09:17:10]line Место: АЗС № 85 "Партнер Нефть" [09:17:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:17:10]line СНО: Общий режим [09:17:10]line Чек 73 22.10.2024 09:17 [09:17:10]line Смена: 195 ФФД: 1.0 [09:17:10]line ЗНМ: 0300000167 [09:17:10]line РНМ: 0000000000156251 [09:17:10]line Версия ККМ: v1.0 [09:17:10]line ФМ: 0000000000963346 [09:17:10]line ФД: 70125 [09:17:10]line ФПД: 102871474549320 [09:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091713&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70125&fm=102871474549320&tin=02508201610067®Number=0000000000156251&sum=70000 [09:17:10]Connected sock=11 [09:17: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 34 36 0F 01 00 00 F2 3A 07 01 83 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 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 49 00 00 00 F4 03 04 00 99 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 11 01 00 35 04 06 00 5D 8F A1 B2 B2 48 FC 50 FB B2 8E AC FB 5B [09:17:10]written 0, free lines is 4095 [09:17: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 34 36 4F 00 00 00 9A 6E 47 00 66 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 11 01 00 F4 03 04 00 3A 17 17 67 B6 04 01 00 00 FC 6F E1 82 D6 AA 34 41 [09:17:10]CommunicateWithHost err = 0 [09:17:10]CheckOFDResponse [09:17:10]1017 (14) - 77093643461234 [09:17:10]1041 (16) - 0000000000963346 [09:17:10]1040 (4) - 70125 [09:17:10]1012 (4) - 22.10.2024 03:08 [09:17:10]1206 (1) - 0 [09:17:10]OFD Sender: Remove packet 70125 [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00070125 [09:17:10]NVStorageDeleteData [09:17:11]Write to MH i2c: 01 00 00 17 47 5E [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 17 47 00 00 00 00 00 E9 0C 5A [09:17:11]RasterBufferAndPrint [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]written 0, free lines is 3311 [09:17:11]MH_Cut [09:17:11]Write to MH i2c: D1 01 00 1E 47 01 37 [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 1E 47 00 36 [09:17:11]Write to MH i2c: 01 00 00 1F 47 66 [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]OFD Sender: No OFD packet to send [09:17:11]*** Cut start [09:17:11]*** Partial cut [09:17:11]*** CUTSNS_PIN = 1 [09:17:11]*** CUTSNS_PIN = 0 [09:17:12]*** Brake cut motor [09:17:12]Read from MH i2c: 01 [09:17:12]MH_I2C_Read... [09:17:12]*** Stop cut motor [09:17:12]*** Cut end [09:17:12]Read from MH i2c: 01 07 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: 01 07 00 1F 47 00 00 00 00 00 FF 0F 7B [09:17:12]process_action close_receipt done [09:17:12]requested_data is exist [09:17:12]produce_requested_data [09:17:12]requested_item fm.sn is exist - process it [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 11 00 00 [09:17:12]Write to MH i2c: E2 08 00 20 47 80 11 00 00 00 00 00 00 E1 [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 17 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 17 00 20 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [09:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:17:12]wFMCommunicate OK [09:17:12]requested_item fd.num is exist - process it [09:17:12]SAM_PROTO_GetFieldsCounters [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 13 00 00 [09:17:12]Write to MH i2c: E2 08 00 21 47 80 13 00 00 00 00 00 00 E4 [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 62 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 62 00 21 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 11 01 00 0E 04 04 00 C3 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 9C [09:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 11 01 00 0E 04 04 00 C3 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 [09:17:12]wFMCommunicate OK [09:17:12]SAM_PROTO_GetFieldsCounters done [09:17:12]requested_item shift.num is exist - process it [09:17:12]requested_item shift.opened is exist - process it [09:17:12]req_shift_opened [09:17:12]FM_GetShiftState [09:17:12]SAM_PROTO_GetShiftState [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 13 01 00 [09:17:12]Write to MH i2c: E2 08 00 22 47 80 13 01 00 00 00 00 00 E6 [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 0E 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 0E 00 22 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D4 [09:17:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:17:12]wFMCommunicate OK [09:17:12]SAM_PROTO_GetShiftState done [09:17:12]FM_GetShiftState done [09:17:12]req_shift_opened done [09:17:12]requested_item shift.open_date is exist - process it [09:17:12]req_shift_open_date [09:17:12]req_shift_open_date done [09:17:12]produce_requested_data done [09:17:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70125,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:17:12]process_action_free close_receipt [09:17:12]json_value_free [09:17:12]json_value_free done [09:17:12]process_json_proto returns [09:17:12]Send response to host [09:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70125,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:17:12]free response buf [09:17:12]execute_script done [09:17:12]execute_script returns [09:17:12]free content buf [09:17:12]Sock 9.Close socket [09:17:12]Sock 9.Thread stoped [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:38]accept exits with 7 [09:18:38]New connection [09:18:38]New thread 3067026788 created [09:18:38]Thread 3067170148 joined [09:18:38]Waiting for new connection... [09:18:38] Sock 7.Parse request [09:18:38]Sock 7.Check first char [09:18:38]Sock 7.First char is OK [09:18:38]request: POST /json_proto HTTP/1.0 [09:18:38]Method: POST [09:18:38]URL: /json_proto [09:18:38]Method is POST - this is cgi request [09:18:38]url: /json_proto [09:18:38]query_string will be loaded in cgi processing [09:18:38]execute_cgi json_proto POST (null) [09:18:38]execute_cgi path=json_proto method=POST [09:18:38]POST find Content-Length [09:18:38]Host: 172.17.50.3:8080 [09:18:38]Content-Length: 689 [09:18:38]Content-Type: application/json [09:18:38] [09:18:38]POST finish read [09:18:38]Found Content-Length = 689 [09:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 35.670, "sum" : 2753.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2753.00, "total" : 2753.00, "payments": [ { "type": 0, "sum" : 2753.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:38]execute_script... [09:18: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)2885891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 35.670, "sum" : 2753.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2753.00, "total" : 2753.00, "payments": [ { "type": 0, "sum" : 2753.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:38]POST & json_proto [09:18:38]process_json_proto [09:18:38]json parsed OK: [09:18:38]protocol is kg_v1.0 [09:18:38]action value=close_receipt [09:18:38]process_action close_receipt [09:18:38]cmd_close_receipt [09:18:38]MH_GetDate [09:18:38]Write to MH i2c: F0 00 00 23 47 59 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: F0 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: F0 09 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: F0 09 00 23 47 00 F3 6D 17 67 6B 98 1E 66 C7 [09:18:38]GetLastDocTimeStamp 1729588633 [09:18:38]current date 1729588723 [09:18:38]FM_GetShiftState [09:18:38]SAM_PROTO_GetShiftState [09:18:38]wFMCommunicate request_size=4 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 13 01 00 [09:18:38]Write to MH i2c: E2 08 00 24 47 80 13 01 00 00 00 00 00 E8 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0E 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0E 00 24 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D6 [09:18:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:18:38]wFMCommunicate OK [09:18:38]SAM_PROTO_GetShiftState done [09:18:38]FM_GetShiftState done [09:18:38]opened in 1729555832 [09:18:38]opened+sec_in_day 1729642232 [09:18:38]quantity*price = 275372 [09:18:38]sum+1 = 275373 [09:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2753.00 Внесено: 2753.00 СДАЧА: 0.00 НСП 1% : 24.37 НДС 12% : 292.43 Наличными: 2753.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 74 22.10.2024 09:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70126 ФПД: 272167902616686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091843&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70126&fm=272167902616686&tin=02508201610067®Number=0000000000156251&sum=275300 [09:18:39]StoreToDocumentArchive [09:18:39]shift 195 fd 70126 [09:18:39]save to /storage/0195/doc_00070126 [09:18:39]save last doc name /storage/0195/doc_00070126 to /storage/kkm_last_doc_name [09:18:39]save OK [09:18:39]Clear old archive folders... [09:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:18:39]tlvbuf is 0118A0A0 [09:18:39]SAM_PROTO_ClearQueue [09:18:39]wFMCommunicate request_size=4 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 09 00 00 [09:18:39]Write to MH i2c: E2 08 00 31 47 80 09 00 00 00 00 00 00 EA [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 31 47 00 90 00 EC [09:18:39]RAPDU: 90 00 [09:18:39]wFMCommunicate OK [09:18:39]SAM_PROTO_ClearQueue done [09:18:39]KKMCreateOFDPacket [09:18:39]OFDProtocolAddRootSTLVToBuf [09:18:39]FM_MakeSignedData [09:18:39]FM_MakeSignedData [09:18:39]SAM_PROTO_SignData [09:18:39]wFMCommunicate request_size=4 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 0D 01 02 [09:18:39]Write to MH i2c: E2 08 00 32 47 80 0D 01 02 00 00 00 00 F2 [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 32 47 00 90 00 ED [09:18:39]RAPDU: 90 00 [09:18:39]wFMCommunicate OK [09:18:39]wFMCommunicate request_size=255 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AC 33 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 33 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 72 00 00 00 00 07 04 06 00 64 33 04 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 F3 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 11 01 [09:18:39]Write to MH i2c: E2 02 01 33 47 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AC 33 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 33 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 72 00 00 00 00 07 04 06 00 64 33 04 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 F3 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 11 01 00 00 C8 [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 03 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 03 00 33 47 00 90 00 EE [09:18:40]RAPDU: 90 00 [09:18:40]wFMCommunicate OK [09:18:40]wFMCommunicate request_size=16 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 89 07 27 9C 6E [09:18:40]Write to MH i2c: E2 13 00 34 47 80 0D 02 02 0B 00 00 35 04 06 00 F7 89 07 27 9C 6E 00 00 02 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 03 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 03 00 34 47 00 90 00 EF [09:18:40]RAPDU: 90 00 [09:18:40]wFMCommunicate OK [09:18:40]wFMCommunicate request_size=4 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 0D 03 02 [09:18:40]Write to MH i2c: E2 08 00 35 47 80 0D 03 02 00 00 00 00 F7 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 0B 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 0B 00 35 47 00 B0 4C 09 B5 7D 81 B7 E5 90 00 4C [09:18:40]RAPDU: B0 4C 09 B5 7D 81 B7 E5 90 00 [09:18:40]wFMCommunicate OK [09:18:40]SAM_PROTO_SignData done [09:18:40]FM_MakeSignedData done [09:18:40]CreateOFDProtocolMessage [09:18:40]wFMCommunicate request_size=4 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 11 00 00 [09:18:40]Write to MH i2c: E2 08 00 36 47 80 11 00 00 00 00 00 00 F7 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 17 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 17 00 36 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [09:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:40]wFMCommunicate OK [09:18:40]CreateOFDProtocolMessage done [09:18:40]OFDSenderStorePacket 70126 [09:18:40]StoreOFDPacket docnum=70126 [09:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D8 8D 0D 01 F1 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AC 33 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 33 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 72 00 00 00 00 07 04 06 00 64 33 04 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 F3 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 11 01 00 35 04 06 00 F7 89 07 27 9C 6E B0 4C 09 B5 7D 81 B7 E5 [09:18:40]CheckFolder [09:18:40]dirname=/storage/ofd_packets [09:18:40]CheckFolder done [09:18:40]ProducePacketName [09:18:40]name=ofd_packets/00070126 [09:18:40]NVStorageSaveData ofd_packets/00070126 [09:18:40]File name is /storage/ofd_packets/00070126 [09:18:40]Write 307 bytes [09:18:40]NVStorageSaveData done [09:18:40]OFDSenderStorePacket done [09:18:40]KKMCreateOFDPacket done [09:18:40]NVStorageSaveData kkm_last_timestamp [09:18:40]File name is /storage/kkm_last_timestamp [09:18:40]Write 4 bytes [09:18:40]NVStorageSaveData done [09:18:40]ExternCall_PrintAddStr [09:18:40]wPrintStart [09:18:40]Write to MH i2c: 01 00 00 37 47 7E [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 37 47 00 00 00 00 00 FF 0F 93 [09:18:40]RasterBufferAndPrint [09:18:40]line Счет N : (1)2885891 [09:18:40]line ИНН: 02508201610067 [09:18:40]line Контрольно-Кассовый Чек [09:18:40]line ПРОДАЖА [09:18:40]line ТРК (МРК, ГНК) : 41 [09:18:40]line Товар: 2710194240 [09:18:40]line D-ENERGY Дт-К-2 [09:18:40]line 35.670 * 77.20 [09:18:40]line = 2753.72 [09:18:40]line НДС 12% НСП 1% [09:18:40]line > о реализуемом товаре [09:18:40]line ОКРУГЛЕНИЕ: -0.72 [09:18:40]line ИТОГО: 2753.00 [09:18:40]line Внесено: 2753.00 [09:18:40]line СДАЧА: 0.00 [09:18:40]line НСП 1% : 24.37 [09:18:40]line НДС 12% : 292.43 [09:18:40]line Наличными: 2753.00 [09:18:40]line Безнал.: 0.00 [09:18:40]line Место: АЗС № 85 "Партнер Нефть" [09:18:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:18:40]line СНО: Общий режим [09:18:40]line Чек 74 22.10.2024 09:18 [09:18:40]line Смена: 195 ФФД: 1.0 [09:18:40]line ЗНМ: 0300000167 [09:18:40]line РНМ: 0000000000156251 [09:18:40]line Версия ККМ: v1.0 [09:18:40]line ФМ: 0000000000963346 [09:18:40]line ФД: 70126 [09:18:40]line ФПД: 272167902616686 [09:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091843&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70126&fm=272167902616686&tin=02508201610067®Number=0000000000156251&sum=275300 [09:18:40]OFD Sender: Processing packet 70126 [packets to send 18, broken 17] [09:18:40]ProducePacketName [09:18:40]name=ofd_packets/00070126 [09:18:40]OFD Sender: To server: pG, [09:18:40]CommunicateWithHost lk.salyk.kg:30040 [09:18:40]ConnectInit lk.salyk.kg [09:18:40]written 0, free lines is 4095 [09:18:40]Connected sock=10 [09:18: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 34 36 15 01 00 00 D8 8D 0D 01 F1 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AC 33 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 33 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 72 00 00 00 00 07 04 06 00 64 33 04 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 F3 6D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 11 01 00 35 04 06 00 F7 89 07 27 9C 6E B0 4C 09 B5 7D 81 B7 E5 [09:18: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 34 36 4F 00 00 00 E4 6E 47 00 7A 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 34 36 10 04 04 00 EE 11 01 00 F4 03 04 00 94 17 17 67 B6 04 01 00 00 DE 47 15 5D 66 F5 20 5C [09:18:40]CommunicateWithHost err = 0 [09:18:40]CheckOFDResponse [09:18:40]1017 (14) - 77093643461234 [09:18:40]1041 (16) - 0000000000963346 [09:18:40]1040 (4) - 70126 [09:18:40]1012 (4) - 22.10.2024 03:10 [09:18:40]1206 (1) - 0 [09:18:40]OFD Sender: Remove packet 70126 [09:18:40]ProducePacketName [09:18:40]name=ofd_packets/00070126 [09:18:40]NVStorageDeleteData [09:18:40]Write to MH i2c: 01 00 00 62 47 A9 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 62 47 00 00 00 00 00 F6 0C B2 [09:18:40]RasterBufferAndPrint [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]written 0, free lines is 3328 [09:18:40]MH_Cut [09:18:40]Write to MH i2c: D1 01 00 69 47 01 82 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 01 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 01 00 69 47 00 81 [09:18:40]Write to MH i2c: 01 00 00 6A 47 B1 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:41]OFD Sender: No OFD packet to send [09:18:41]*** Cut start [09:18:41]*** Partial cut [09:18:41]*** CUTSNS_PIN = 1 [09:18:41]*** CUTSNS_PIN = 0 [09:18:41]*** Brake cut motor [09:18:42]Read from MH i2c: 01 [09:18:42]MH_I2C_Read... [09:18:42]*** Stop cut motor [09:18:42]*** Cut end [09:18:42]Read from MH i2c: 01 07 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: 01 07 00 6A 47 00 00 00 00 00 FF 0F C6 [09:18:42]process_action close_receipt done [09:18:42]requested_data is exist [09:18:42]produce_requested_data [09:18:42]requested_item fm.sn is exist - process it [09:18:42]wFMCommunicate request_size=4 [09:18:42]MH_SAM_APDU [09:18:42]CAPDU: 80 11 00 00 [09:18:42]Write to MH i2c: E2 08 00 6B 47 80 11 00 00 00 00 00 00 2C [09:18:42]Write i2c OK [09:18:42]MH_I2C_Read... [09:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:42]Read from MH i2c: E2 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 17 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 17 00 6B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [09:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:42]wFMCommunicate OK [09:18:42]requested_item fd.num is exist - process it [09:18:42]SAM_PROTO_GetFieldsCounters [09:18:42]wFMCommunicate request_size=4 [09:18:42]MH_SAM_APDU [09:18:42]CAPDU: 80 13 00 00 [09:18:42]Write to MH i2c: E2 08 00 6C 47 80 13 00 00 00 00 00 00 2F [09:18:42]Write i2c OK [09:18:42]MH_I2C_Read... [09:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:42]Read from MH i2c: E2 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 62 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 62 00 6C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 11 01 00 0E 04 04 00 C3 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 EB [09:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 11 01 00 0E 04 04 00 C3 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 [09:18:42]wFMCommunicate OK [09:18:42]SAM_PROTO_GetFieldsCounters done [09:18:42]requested_item shift.num is exist - process it [09:18:42]requested_item shift.opened is exist - process it [09:18:42]req_shift_opened [09:18:42]FM_GetShiftState [09:18:42]SAM_PROTO_GetShiftState [09:18:42]wFMCommunicate request_size=4 [09:18:42]MH_SAM_APDU [09:18:42]CAPDU: 80 13 01 00 [09:18:42]Write to MH i2c: E2 08 00 6D 47 80 13 01 00 00 00 00 00 31 [09:18:42]Write i2c OK [09:18:42]MH_I2C_Read... [09:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:42]Read from MH i2c: E2 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 0E 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 0E 00 6D 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1F [09:18:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:18:42]wFMCommunicate OK [09:18:42]SAM_PROTO_GetShiftState done [09:18:42]FM_GetShiftState done [09:18:42]req_shift_opened done [09:18:42]requested_item shift.open_date is exist - process it [09:18:42]req_shift_open_date [09:18:42]req_shift_open_date done [09:18:42]produce_requested_data done [09:18:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70126,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:18:42]process_action_free close_receipt [09:18:42]json_value_free [09:18:42]json_value_free done [09:18:42]process_json_proto returns [09:18:42]Send response to host [09:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70126,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:18:42]free response buf [09:18:42]execute_script done [09:18:42]execute_script returns [09:18:42]free content buf [09:18:42]Sock 7.Close socket [09:18:42]Sock 7.Thread stoped [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]accept exits with 9 [09:20:46]New connection [09:20:46]New thread 3067170148 created [09:20:46]Thread 3067026788 joined [09:20:46]Waiting for new connection... [09:20:46] Sock 9.Parse request [09:20:46]Sock 9.Check first char [09:20:46]Sock 9.First char is OK [09:20:46]request: POST /json_proto HTTP/1.0 [09:20:46]Method: POST [09:20:46]URL: /json_proto [09:20:46]Method is POST - this is cgi request [09:20:46]url: /json_proto [09:20:46]query_string will be loaded in cgi processing [09:20:46]execute_cgi json_proto POST (null) [09:20:46]execute_cgi path=json_proto method=POST [09:20:46]POST find Content-Length [09:20:46]Host: 172.17.50.3:8080 [09:20:46]Content-Length: 682 [09:20:46]Content-Type: application/json [09:20:46] [09:20:46]POST finish read [09:20:46]Found Content-Length = 682 [09:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:20:46]execute_script... [09:20: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)2885893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:20:46]POST & json_proto [09:20:46]process_json_proto [09:20:46]json parsed OK: [09:20:46]protocol is kg_v1.0 [09:20:46]action value=close_receipt [09:20:46]process_action close_receipt [09:20:46]cmd_close_receipt [09:20:46]MH_GetDate [09:20:46]Write to MH i2c: F0 00 00 6E 47 A4 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 09 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 09 00 6E 47 00 72 6E 17 67 6B 98 1E 66 92 [09:20:46]GetLastDocTimeStamp 1729588723 [09:20:46]current date 1729588850 [09:20:46]FM_GetShiftState [09:20:46]SAM_PROTO_GetShiftState [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 13 01 00 [09:20:46]Write to MH i2c: E2 08 00 6F 47 80 13 01 00 00 00 00 00 33 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 6F 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 21 [09:20:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:20:46]wFMCommunicate OK [09:20:46]SAM_PROTO_GetShiftState done [09:20:46]FM_GetShiftState done [09:20:46]opened in 1729555832 [09:20:46]opened+sec_in_day 1729642232 [09:20:46]quantity*price = 50025 [09:20:46]sum+1 = 50026 [09:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 75 22.10.2024 09:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70127 ФПД: 275597922333991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70127&fm=275597922333991&tin=02508201610067®Number=0000000000156251&sum=50000 [09:20:47]StoreToDocumentArchive [09:20:47]shift 195 fd 70127 [09:20:47]save to /storage/0195/doc_00070127 [09:20:47]save last doc name /storage/0195/doc_00070127 to /storage/kkm_last_doc_name [09:20:47]save OK [09:20:47]Clear old archive folders... [09:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:20:47]tlvbuf is 0128AD30 [09:20:47]SAM_PROTO_ClearQueue [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 09 00 00 [09:20:47]Write to MH i2c: E2 08 00 7C 47 80 09 00 00 00 00 00 00 35 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 7C 47 00 90 00 37 [09:20:47]RAPDU: 90 00 [09:20:47]wFMCommunicate OK [09:20:47]SAM_PROTO_ClearQueue done [09:20:47]KKMCreateOFDPacket [09:20:47]OFDProtocolAddRootSTLVToBuf [09:20:47]FM_MakeSignedData [09:20:47]FM_MakeSignedData [09:20:47]SAM_PROTO_SignData [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 0D 01 02 [09:20:47]Write to MH i2c: E2 08 00 7D 47 80 0D 01 02 00 00 00 00 3D [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 7D 47 00 90 00 38 [09:20:47]RAPDU: 90 00 [09:20:47]wFMCommunicate OK [09:20:47]wFMCommunicate request_size=255 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 4B 00 00 00 F4 03 04 00 72 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 11 01 00 35 04 06 00 FA A7 [09:20:47]Write to MH i2c: E2 02 01 7E 47 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 4B 00 00 00 F4 03 04 00 72 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 11 01 00 35 04 06 00 FA A7 00 00 8E [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 7E 47 00 90 00 39 [09:20:47]RAPDU: 90 00 [09:20:47]wFMCommunicate OK [09:20:47]wFMCommunicate request_size=9 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 0D 02 02 04 A4 42 F5 27 [09:20:47]Write to MH i2c: E2 0C 00 7F 47 80 0D 02 02 04 00 A4 42 F5 27 00 00 4A [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 03 00 7F 47 00 90 00 3A [09:20:47]RAPDU: 90 00 [09:20:47]wFMCommunicate OK [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 0D 03 02 [09:20:47]Write to MH i2c: E2 08 00 80 47 80 0D 03 02 00 00 00 00 42 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 0B 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 0B 00 80 47 00 1A 4C A6 E7 A1 43 E7 70 90 00 71 [09:20:47]RAPDU: 1A 4C A6 E7 A1 43 E7 70 90 00 [09:20:47]wFMCommunicate OK [09:20:47]SAM_PROTO_SignData done [09:20:47]FM_MakeSignedData done [09:20:47]CreateOFDProtocolMessage [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 11 00 00 [09:20:47]Write to MH i2c: E2 08 00 81 47 80 11 00 00 00 00 00 00 42 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 17 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 17 00 81 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [09:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:47]wFMCommunicate OK [09:20:47]CreateOFDProtocolMessage done [09:20:47]OFDSenderStorePacket 70127 [09:20:47]StoreOFDPacket docnum=70127 [09:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 00 DD 06 01 4F 18 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 4B 00 00 00 F4 03 04 00 72 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 11 01 00 35 04 06 00 FA A7 A4 42 F5 27 1A 4C A6 E7 A1 43 E7 70 [09:20:47]CheckFolder [09:20:47]dirname=/storage/ofd_packets [09:20:47]CheckFolder done [09:20:47]ProducePacketName [09:20:47]name=ofd_packets/00070127 [09:20:47]NVStorageSaveData ofd_packets/00070127 [09:20:47]File name is /storage/ofd_packets/00070127 [09:20:47]Write 300 bytes [09:20:47]NVStorageSaveData done [09:20:47]OFDSenderStorePacket done [09:20:47]KKMCreateOFDPacket done [09:20:47]NVStorageSaveData kkm_last_timestamp [09:20:47]File name is /storage/kkm_last_timestamp [09:20:47]Write 4 bytes [09:20:47]NVStorageSaveData done [09:20:47]ExternCall_PrintAddStr [09:20:47]wPrintStart [09:20:47]Write to MH i2c: 01 00 00 82 47 C9 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: 01 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: 01 07 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: 01 07 00 82 47 00 00 00 00 00 FF 0F DE [09:20:47]RasterBufferAndPrint [09:20:47]line Счет N : (1)2885893 [09:20:47]line ИНН: 02508201610067 [09:20:47]line Контрольно-Кассовый Чек [09:20:47]line ПРОДАЖА [09:20:47]line ТРК (МРК, ГНК) : 71 [09:20:47]line Товар: 2711129700 [09:20:47]line ГАЗ-К-3 [09:20:47]line 12.860 * 38.90 [09:20:47]line = 500.25 [09:20:47]line НДС 12% НСП 1% [09:20:47]line > о реализуемом товаре [09:20:47]line ОКРУГЛЕНИЕ: -0.25 [09:20:47]line ИТОГО: 500.00 [09:20:47]line Внесено: 500.00 [09:20:47]line СДАЧА: 0.00 [09:20:47]line НСП 1% : 4.43 [09:20:47]line НДС 12% : 53.12 [09:20:47]line Наличными: 500.00 [09:20:47]line Безнал.: 0.00 [09:20:47]line Место: АЗС № 85 "Партнер Нефть" [09:20:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:20:47]line СНО: Общий режим [09:20:47]line Чек 75 22.10.2024 09:20 [09:20:47]line Смена: 195 ФФД: 1.0 [09:20:47]line ЗНМ: 0300000167 [09:20:47]line РНМ: 0000000000156251 [09:20:47]line Версия ККМ: v1.0 [09:20:47]line ФМ: 0000000000963346 [09:20:47]line ФД: 70127 [09:20:47]line ФПД: 275597922333991 [09:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70127&fm=275597922333991&tin=02508201610067®Number=0000000000156251&sum=50000 [09:20:48]OFD Sender: Processing packet 70127 [packets to send 18, broken 17] [09:20:48]ProducePacketName [09:20:48]name=ofd_packets/00070127 [09:20:48]OFD Sender: To server: pG, [09:20:48]CommunicateWithHost lk.salyk.kg:30040 [09:20:48]ConnectInit lk.salyk.kg [09:20:48]written 0, free lines is 4095 [09:20:48]Connected sock=10 [09:20: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 34 36 0E 01 00 00 00 DD 06 01 4F 18 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 4B 00 00 00 F4 03 04 00 72 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 11 01 00 35 04 06 00 FA A7 A4 42 F5 27 1A 4C A6 E7 A1 43 E7 70 [09:20: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 34 36 4F 00 00 00 72 4C 47 00 20 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 34 36 10 04 04 00 EF 11 01 00 F4 03 04 00 13 18 17 67 B6 04 01 00 00 8B E9 B9 78 60 8B 26 6E [09:20:48]CommunicateWithHost err = 0 [09:20:48]CheckOFDResponse [09:20:48]1017 (14) - 77093643461234 [09:20:48]1041 (16) - 0000000000963346 [09:20:48]1040 (4) - 70127 [09:20:48]1012 (4) - 22.10.2024 03:12 [09:20:48]1206 (1) - 0 [09:20:48]OFD Sender: Remove packet 70127 [09:20:48]ProducePacketName [09:20:48]name=ofd_packets/00070127 [09:20:48]NVStorageDeleteData [09:20:48]Write to MH i2c: 01 00 00 AD 47 F4 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 07 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 07 00 AD 47 00 00 00 00 00 D9 0C E0 [09:20:48]RasterBufferAndPrint [09:20:48]line [09:20:48]line [09:20:48]line [09:20:48]line [09:20:48]line [09:20:48]written 0, free lines is 3297 [09:20:48]MH_Cut [09:20:48]Write to MH i2c: D1 01 00 B4 47 01 CD [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: D1 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: D1 01 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: D1 01 00 B4 47 00 CC [09:20:48]Write to MH i2c: 01 00 00 B5 47 FC [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]OFD Sender: No OFD packet to send [09:20:49]*** Cut start [09:20:49]*** Partial cut [09:20:49]*** CUTSNS_PIN = 1 [09:20:49]*** CUTSNS_PIN = 0 [09:20:49]*** Brake cut motor [09:20:49]Read from MH i2c: 01 [09:20:49]MH_I2C_Read... [09:20:49]*** Stop cut motor [09:20:49]*** Cut end [09:20:49]Read from MH i2c: 01 07 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 07 00 B5 47 00 00 00 00 00 FF 0F 11 [09:20:49]process_action close_receipt done [09:20:49]requested_data is exist [09:20:49]produce_requested_data [09:20:49]requested_item fm.sn is exist - process it [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 11 00 00 [09:20:49]Write to MH i2c: E2 08 00 B6 47 80 11 00 00 00 00 00 00 77 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:49]Read from MH i2c: E2 17 00 [09:20:49]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 B6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [09:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:50]wFMCommunicate OK [09:20:50]requested_item fd.num is exist - process it [09:20:50]SAM_PROTO_GetFieldsCounters [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 00 00 [09:20:50]Write to MH i2c: E2 08 00 B7 47 80 13 00 00 00 00 00 00 7A [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 B7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 11 01 00 0E 04 04 00 C3 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 3A [09:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 11 01 00 0E 04 04 00 C3 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:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetFieldsCounters done [09:20:50]requested_item shift.num is exist - process it [09:20:50]requested_item shift.opened is exist - process it [09:20:50]req_shift_opened [09:20:50]FM_GetShiftState [09:20:50]SAM_PROTO_GetShiftState [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 01 00 [09:20:50]Write to MH i2c: E2 08 00 B8 47 80 13 01 00 00 00 00 00 7C [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 B8 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6A [09:20:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetShiftState done [09:20:50]FM_GetShiftState done [09:20:50]req_shift_opened done [09:20:50]requested_item shift.open_date is exist - process it [09:20:50]req_shift_open_date [09:20:50]req_shift_open_date done [09:20:50]produce_requested_data done [09:20:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70127,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:20:50]process_action_free close_receipt [09:20:50]json_value_free [09:20:50]json_value_free done [09:20:50]process_json_proto returns [09:20:50]Send response to host [09:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70127,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:20:50]free response buf [09:20:50]execute_script done [09:20:50]execute_script returns [09:20:50]free content buf [09:20:50]Sock 9.Close socket [09:20:50]Sock 9.Thread stoped [09:20:53]accept exits with 7 [09:20:53]New connection [09:20:53]New thread 3067026788 created [09:20:53]Thread 3067170148 joined [09:20:53]Waiting for new connection... [09:20:53] Sock 7.Parse request [09:20:53]Sock 7.Check first char [09:20:53]Sock 7.First char is OK [09:20:53]request: POST /json_proto HTTP/1.0 [09:20:53]Method: POST [09:20:53]URL: /json_proto [09:20:53]Method is POST - this is cgi request [09:20:53]url: /json_proto [09:20:53]query_string will be loaded in cgi processing [09:20:53]execute_cgi json_proto POST (null) [09:20:53]execute_cgi path=json_proto method=POST [09:20:53]POST find Content-Length [09:20:53]Host: 172.17.50.3:8080 [09:20:53]Content-Length: 675 [09:20:53]Content-Type: application/json [09:20:53] [09:20:53]POST finish read [09:20:53]Found Content-Length = 675 [09:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885894", "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" : 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" ] } } [09:20:53]execute_script... [09: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 : (1)2885894", "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" : 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" ] } } [09:20:53]POST & json_proto [09:20:53]process_json_proto [09:20:53]json parsed OK: [09:20:53]protocol is kg_v1.0 [09:20:53]action value=close_receipt [09:20:53]process_action close_receipt [09:20:53]cmd_close_receipt [09:20:53]MH_GetDate [09:20:53]Write to MH i2c: F0 00 00 B9 47 EF [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 09 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 09 00 B9 47 00 7A 6E 17 67 6B 98 1E 66 E5 [09:20:53]GetLastDocTimeStamp 1729588850 [09:20:53]current date 1729588858 [09:20:53]FM_GetShiftState [09:20:53]SAM_PROTO_GetShiftState [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 13 01 00 [09:20:53]Write to MH i2c: E2 08 00 BA 47 80 13 01 00 00 00 00 00 7E [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 BA 47 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6C [09:20:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:20:53]wFMCommunicate OK [09:20:53]SAM_PROTO_GetShiftState done [09:20:53]FM_GetShiftState done [09:20:53]opened in 1729555832 [09:20:53]opened+sec_in_day 1729642232 [09:20:53]quantity*price = 50063 [09:20:53]sum+1 = 50064 [09:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 76 22.10.2024 09:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70128 ФПД: 61525576308574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70128&fm=61525576308574&tin=02508201610067®Number=0000000000156251&sum=50000 [09:20:55]StoreToDocumentArchive [09:20:55]shift 195 fd 70128 [09:20:55]save to /storage/0195/doc_00070128 [09:20:55]save last doc name /storage/0195/doc_00070128 to /storage/kkm_last_doc_name [09:20:55]save OK [09:20:55]Clear old archive folders... [09:20:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:55]tlvbuf is 011427F0 [09:20:55]SAM_PROTO_ClearQueue [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 09 00 00 [09:20:55]Write to MH i2c: E2 08 00 C7 47 80 09 00 00 00 00 00 00 80 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 C7 47 00 90 00 82 [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_ClearQueue done [09:20:55]KKMCreateOFDPacket [09:20:55]OFDProtocolAddRootSTLVToBuf [09:20:55]FM_MakeSignedData [09:20:55]FM_MakeSignedData [09:20:55]SAM_PROTO_SignData [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 01 02 [09:20:55]Write to MH i2c: E2 08 00 C8 47 80 0D 01 02 00 00 00 00 88 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 C8 47 00 90 00 83 [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=255 [09:20:55]MH_SAM_APDU [09:20: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 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 4C 00 00 00 F4 03 04 00 7A 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 11 01 00 35 04 06 00 37 F5 0A 1E [09:20:55]Write to MH i2c: E2 02 01 C9 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 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 4C 00 00 00 F4 03 04 00 7A 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 11 01 00 35 04 06 00 37 F5 0A 1E 00 00 5A [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 C9 47 00 90 00 84 [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=7 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 02 02 02 D7 5E [09:20:55]Write to MH i2c: E2 0A 00 CA 47 80 0D 02 02 02 00 D7 5E 00 00 C4 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 CA 47 00 90 00 85 [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 03 02 [09:20:55]Write to MH i2c: E2 08 00 CB 47 80 0D 03 02 00 00 00 00 8D [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0B 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0B 00 CB 47 00 B8 C4 6D 5B 6B 6A B0 7D 90 00 D4 [09:20:55]RAPDU: B8 C4 6D 5B 6B 6A B0 7D 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_SignData done [09:20:55]FM_MakeSignedData done [09:20:55]CreateOFDProtocolMessage [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 11 00 00 [09:20:55]Write to MH i2c: E2 08 00 CC 47 80 11 00 00 00 00 00 00 8D [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 CC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [09:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:55]wFMCommunicate OK [09:20:55]CreateOFDProtocolMessage done [09:20:55]OFDSenderStorePacket 70128 [09:20:55]StoreOFDPacket docnum=70128 [09:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2C 87 04 01 C2 88 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 4C 00 00 00 F4 03 04 00 7A 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 11 01 00 35 04 06 00 37 F5 0A 1E D7 5E B8 C4 6D 5B 6B 6A B0 7D [09:20:55]CheckFolder [09:20:55]dirname=/storage/ofd_packets [09:20:55]CheckFolder done [09:20:55]ProducePacketName [09:20:55]name=ofd_packets/00070128 [09:20:55]NVStorageSaveData ofd_packets/00070128 [09:20:55]File name is /storage/ofd_packets/00070128 [09:20:55]Write 298 bytes [09:20:55]NVStorageSaveData done [09:20:55]OFDSenderStorePacket done [09:20:55]KKMCreateOFDPacket done [09:20:55]NVStorageSaveData kkm_last_timestamp [09:20:55]File name is /storage/kkm_last_timestamp [09:20:55]Write 4 bytes [09:20:55]NVStorageSaveData done [09:20:55]ExternCall_PrintAddStr [09:20:55]wPrintStart [09:20:55]Write to MH i2c: 01 00 00 CD 47 14 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 07 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 07 00 CD 47 00 00 00 00 00 FF 0F 29 [09:20:55]RasterBufferAndPrint [09:20:55]line Счет N : (1)2885894 [09:20:55]line ИНН: 02508201610067 [09:20:55]line Контрольно-Кассовый Чек [09:20:55]line ПРОДАЖА [09:20:55]line ТРК (МРК, ГНК) : 51 [09:20:55]line Товар: 2710194210 [09:20:55]line ДТ-К-5 [09:20:55]line 6.570 * 76.20 [09:20:55]line = 500.63 [09:20:55]line НДС 12% НСП 1% [09:20:55]line > о реализуемом товаре [09:20:55]line ОКРУГЛЕНИЕ: -0.63 [09:20:55]line ИТОГО: 500.00 [09:20:55]line Внесено: 500.00 [09:20:55]line СДАЧА: 0.00 [09:20:55]line НСП 1% : 4.43 [09:20:55]line НДС 12% : 53.16 [09:20:55]line Наличными: 500.00 [09:20:55]line Безнал.: 0.00 [09:20:55]line Место: АЗС № 85 "Партнер Нефть" [09:20:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:20:55]line СНО: Общий режим [09:20:55]line Чек 76 22.10.2024 09:20 [09:20:55]line Смена: 195 ФФД: 1.0 [09:20:55]line ЗНМ: 0300000167 [09:20:55]line РНМ: 0000000000156251 [09:20:55]line Версия ККМ: v1.0 [09:20:55]line ФМ: 0000000000963346 [09:20:55]line ФД: 70128 [09:20:55]line ФПД: 61525576308574 [09:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70128&fm=61525576308574&tin=02508201610067®Number=0000000000156251&sum=50000 [09:20:55]written 0, free lines is 4095 [09:20:55]OFD Sender: Processing packet 70128 [packets to send 18, broken 17] [09:20:55]ProducePacketName [09:20:55]name=ofd_packets/00070128 [09:20:55]OFD Sender: To server: pG, [09:20:55]CommunicateWithHost lk.salyk.kg:30040 [09:20:55]ConnectInit lk.salyk.kg [09:20:55]Connected sock=10 [09: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 34 36 0C 01 00 00 2C 87 04 01 C2 88 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 4C 00 00 00 F4 03 04 00 7A 6E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 11 01 00 35 04 06 00 37 F5 0A 1E D7 5E B8 C4 6D 5B 6B 6A B0 7D [09:20: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 34 36 4F 00 00 00 C2 17 47 00 05 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 34 36 10 04 04 00 F0 11 01 00 F4 03 04 00 1B 18 17 67 B6 04 01 00 00 AB 49 EF F3 C1 59 ED 9A [09:20:56]CommunicateWithHost err = 0 [09:20:56]CheckOFDResponse [09:20:56]1017 (14) - 77093643461234 [09:20:56]1041 (16) - 0000000000963346 [09:20:56]1040 (4) - 70128 [09:20:56]1012 (4) - 22.10.2024 03:12 [09:20:56]1206 (1) - 0 [09:20:56]OFD Sender: Remove packet 70128 [09:20:56]ProducePacketName [09:20:56]name=ofd_packets/00070128 [09:20:56]NVStorageDeleteData [09:20:56]Write to MH i2c: 01 00 00 F8 47 3F [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 07 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 07 00 F8 47 00 00 00 00 00 E6 0C 38 [09:20:56]RasterBufferAndPrint [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]written 0, free lines is 3314 [09:20:56]MH_Cut [09:20:56]Write to MH i2c: D1 01 00 FF 47 01 18 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 01 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 01 00 FF 47 00 17 [09:20:56]Write to MH i2c: 01 00 00 00 48 48 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]OFD Sender: No OFD packet to send [09:20:56]*** Cut start [09:20:56]*** Partial cut [09:20:56]*** CUTSNS_PIN = 1 [09:20:56]*** CUTSNS_PIN = 0 [09:20:57]*** Brake cut motor [09:20:57]Read from MH i2c: 01 [09:20:57]MH_I2C_Read... [09:20:57]*** Stop cut motor [09:20:57]*** Cut end [09:20:57]Read from MH i2c: 01 07 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 07 00 00 48 00 00 00 00 00 FF 0F 5D [09:20:57]process_action close_receipt done [09:20:57]requested_data is exist [09:20:57]produce_requested_data [09:20:57]requested_item fm.sn is exist - process it [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 11 00 00 [09:20:57]Write to MH i2c: E2 08 00 01 48 80 11 00 00 00 00 00 00 C3 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 17 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 17 00 01 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [09:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:57]wFMCommunicate OK [09:20:57]requested_item fd.num is exist - process it [09:20:57]SAM_PROTO_GetFieldsCounters [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 13 00 00 [09:20:57]Write to MH i2c: E2 08 00 02 48 80 13 00 00 00 00 00 00 C6 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 62 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 62 00 02 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 11 01 00 0E 04 04 00 C3 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 8A [09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 11 01 00 0E 04 04 00 C3 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 [09:20:57]wFMCommunicate OK [09:20:57]SAM_PROTO_GetFieldsCounters done [09:20:57]requested_item shift.num is exist - process it [09:20:57]requested_item shift.opened is exist - process it [09:20:57]req_shift_opened [09:20:57]FM_GetShiftState [09:20:57]SAM_PROTO_GetShiftState [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 13 01 00 [09:20:57]Write to MH i2c: E2 08 00 03 48 80 13 01 00 00 00 00 00 C8 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 0E 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 0E 00 03 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B6 [09:20:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:20:57]wFMCommunicate OK [09:20:57]SAM_PROTO_GetShiftState done [09:20:57]FM_GetShiftState done [09:20:57]req_shift_opened done [09:20:57]requested_item shift.open_date is exist - process it [09:20:57]req_shift_open_date [09:20:57]req_shift_open_date done [09:20:57]produce_requested_data done [09:20:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70128,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:20:57]process_action_free close_receipt [09:20:57]json_value_free [09:20:57]json_value_free done [09:20:57]process_json_proto returns [09:20:57]Send response to host [09:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70128,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:20:57]free response buf [09:20:57]execute_script done [09:20:57]execute_script returns [09:20:57]free content buf [09:20:57]Sock 7.Close socket [09:20:57]Sock 7.Thread stoped [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:08]accept exits with 9 [09:23:08]New connection [09:23:08]New thread 3067170148 created [09:23:08]Thread 3067026788 joined [09:23:08]Waiting for new connection... [09:23:08] Sock 9.Parse request [09:23:08]Sock 9.Check first char [09:23:08]Sock 9.First char is OK [09:23:08]request: POST /json_proto HTTP/1.0 [09:23:08]Method: POST [09:23:08]URL: /json_proto [09:23:08]Method is POST - this is cgi request [09:23:08]url: /json_proto [09:23:08]query_string will be loaded in cgi processing [09:23:08]execute_cgi json_proto POST (null) [09:23:08]execute_cgi path=json_proto method=POST [09:23:08]POST find Content-Length [09:23:08]Host: 172.17.50.3:8080 [09:23:08]Content-Length: 689 [09:23:08]Content-Type: application/json [09:23:08] [09:23:08]POST finish read [09:23:08]Found Content-Length = 689 [09:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:23:08]execute_script... [09:23: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)2885895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:23:08]POST & json_proto [09:23:08]process_json_proto [09:23:08]json parsed OK: [09:23:08]protocol is kg_v1.0 [09:23:08]action value=close_receipt [09:23:08]process_action close_receipt [09:23:08]cmd_close_receipt [09:23:08]MH_GetDate [09:23:08]Write to MH i2c: F0 00 00 04 48 3B [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: F0 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: F0 09 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: F0 09 00 04 48 00 01 6F 17 67 6B 98 1E 66 B9 [09:23:08]GetLastDocTimeStamp 1729588858 [09:23:08]current date 1729588993 [09:23:08]FM_GetShiftState [09:23:08]SAM_PROTO_GetShiftState [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 13 01 00 [09:23:08]Write to MH i2c: E2 08 00 05 48 80 13 01 00 00 00 00 00 CA [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 0E 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 0E 00 05 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B8 [09:23:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:23:08]wFMCommunicate OK [09:23:08]SAM_PROTO_GetShiftState done [09:23:08]FM_GetShiftState done [09:23:08]opened in 1729555832 [09:23:08]opened+sec_in_day 1729642232 [09:23:08]quantity*price = 100051 [09:23:08]sum+1 = 100052 [09:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 77 22.10.2024 09:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70129 ФПД: 76822265275361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70129&fm=76822265275361&tin=02508201610067®Number=0000000000156251&sum=100000 [09:23:10]StoreToDocumentArchive [09:23:10]shift 195 fd 70129 [09:23:10]save to /storage/0195/doc_00070129 [09:23:10]save last doc name /storage/0195/doc_00070129 to /storage/kkm_last_doc_name [09:23:10]save OK [09:23:10]Clear old archive folders... [09:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:23:10]tlvbuf is 011F6EF0 [09:23:10]SAM_PROTO_ClearQueue [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 09 00 00 [09:23:10]Write to MH i2c: E2 08 00 12 48 80 09 00 00 00 00 00 00 CC [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 12 48 00 90 00 CE [09:23:10]RAPDU: 90 00 [09:23:10]wFMCommunicate OK [09:23:10]SAM_PROTO_ClearQueue done [09:23:10]KKMCreateOFDPacket [09:23:10]OFDProtocolAddRootSTLVToBuf [09:23:10]FM_MakeSignedData [09:23:10]FM_MakeSignedData [09:23:10]SAM_PROTO_SignData [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 0D 01 02 [09:23:10]Write to MH i2c: E2 08 00 13 48 80 0D 01 02 00 00 00 00 D4 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 13 48 00 90 00 CF [09:23:10]RAPDU: 90 00 [09:23:10]wFMCommunicate OK [09:23:10]wFMCommunicate request_size=255 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 01 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 11 01 [09:23:10]Write to MH i2c: E2 02 01 14 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 01 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 11 01 00 00 27 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 14 48 00 90 00 D0 [09:23:10]RAPDU: 90 00 [09:23:10]wFMCommunicate OK [09:23:10]wFMCommunicate request_size=16 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 45 DE 93 D5 23 E1 [09:23:10]Write to MH i2c: E2 13 00 15 48 80 0D 02 02 0B 00 00 35 04 06 00 45 DE 93 D5 23 E1 00 00 BB [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 03 00 15 48 00 90 00 D1 [09:23:10]RAPDU: 90 00 [09:23:10]wFMCommunicate OK [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 0D 03 02 [09:23:10]Write to MH i2c: E2 08 00 16 48 80 0D 03 02 00 00 00 00 D9 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0B 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0B 00 16 48 00 B1 65 2A 68 B9 76 76 E6 90 00 0D [09:23:10]RAPDU: B1 65 2A 68 B9 76 76 E6 90 00 [09:23:10]wFMCommunicate OK [09:23:10]SAM_PROTO_SignData done [09:23:10]FM_MakeSignedData done [09:23:10]CreateOFDProtocolMessage [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 11 00 00 [09:23:10]Write to MH i2c: E2 08 00 17 48 80 11 00 00 00 00 00 00 D9 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 17 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 17 00 17 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [09:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:23:10]wFMCommunicate OK [09:23:10]CreateOFDProtocolMessage done [09:23:10]OFDSenderStorePacket 70129 [09:23:10]StoreOFDPacket docnum=70129 [09:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D2 BE 0D 01 B2 99 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 01 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 11 01 00 35 04 06 00 45 DE 93 D5 23 E1 B1 65 2A 68 B9 76 76 E6 [09:23:10]CheckFolder [09:23:10]dirname=/storage/ofd_packets [09:23:10]CheckFolder done [09:23:10]ProducePacketName [09:23:10]name=ofd_packets/00070129 [09:23:10]NVStorageSaveData ofd_packets/00070129 [09:23:10]File name is /storage/ofd_packets/00070129 [09:23:10]Write 307 bytes [09:23:10]NVStorageSaveData done [09:23:10]OFDSenderStorePacket done [09:23:10]KKMCreateOFDPacket done [09:23:10]NVStorageSaveData kkm_last_timestamp [09:23:10]File name is /storage/kkm_last_timestamp [09:23:10]Write 4 bytes [09:23:10]NVStorageSaveData done [09:23:10]ExternCall_PrintAddStr [09:23:10]wPrintStart [09:23:10]Write to MH i2c: 01 00 00 18 48 60 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: 01 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: 01 07 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: 01 07 00 18 48 00 00 00 00 00 FF 0F 75 [09:23:10]RasterBufferAndPrint [09:23:10]line Счет N : (1)2885895 [09:23:10]line ИНН: 02508201610067 [09:23:10]line Контрольно-Кассовый Чек [09:23:10]line ПРОДАЖА [09:23:10]line ТРК (МРК, ГНК) : 41 [09:23:10]line Товар: 2710194240 [09:23:10]line D-ENERGY Дт-К-2 [09:23:10]line 12.960 * 77.20 [09:23:10]line = 1000.51 [09:23:10]line НДС 12% НСП 1% [09:23:10]line > о реализуемом товаре [09:23:10]line ОКРУГЛЕНИЕ: -0.51 [09:23:10]line ИТОГО: 1000.00 [09:23:10]line Внесено: 1000.00 [09:23:10]line СДАЧА: 0.00 [09:23:10]line НСП 1% : 8.85 [09:23:10]line НДС 12% : 106.25 [09:23:10]line Наличными: 1000.00 [09:23:10]line Безнал.: 0.00 [09:23:10]line Место: АЗС № 85 "Партнер Нефть" [09:23:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:23:10]line СНО: Общий режим [09:23:10]line Чек 77 22.10.2024 09:23 [09:23:10]line Смена: 195 ФФД: 1.0 [09:23:10]line ЗНМ: 0300000167 [09:23:10]line РНМ: 0000000000156251 [09:23:10]line Версия ККМ: v1.0 [09:23:10]line ФМ: 0000000000963346 [09:23:10]line ФД: 70129 [09:23:10]line ФПД: 76822265275361 [09:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70129&fm=76822265275361&tin=02508201610067®Number=0000000000156251&sum=100000 [09:23:10]OFD Sender: Processing packet 70129 [packets to send 18, broken 17] [09:23:10]ProducePacketName [09:23:10]name=ofd_packets/00070129 [09:23:10]OFD Sender: To server: pG, [09:23:10]CommunicateWithHost lk.salyk.kg:30040 [09:23:10]ConnectInit lk.salyk.kg [09:23:10]written 0, free lines is 4095 [09:23:11]Connected sock=10 [09:23: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 34 36 15 01 00 00 D2 BE 0D 01 B2 99 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 01 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 11 01 00 35 04 06 00 45 DE 93 D5 23 E1 B1 65 2A 68 B9 76 76 E6 [09:23: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 34 36 4F 00 00 00 C9 6D 47 00 93 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 11 01 00 F4 03 04 00 A2 18 17 67 B6 04 01 00 00 00 7D 63 00 03 04 1C EF [09:23:11]CommunicateWithHost err = 0 [09:23:11]CheckOFDResponse [09:23:11]1017 (14) - 77093643461234 [09:23:11]1041 (16) - 0000000000963346 [09:23:11]1040 (4) - 70129 [09:23:11]1012 (4) - 22.10.2024 03:14 [09:23:11]1206 (1) - 0 [09:23:11]OFD Sender: Remove packet 70129 [09:23:11]ProducePacketName [09:23:11]name=ofd_packets/00070129 [09:23:11]NVStorageDeleteData [09:23:11]Write to MH i2c: 01 00 00 43 48 8B [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: 01 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: 01 07 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: 01 07 00 43 48 00 00 00 00 00 EF 0C 8D [09:23:11]RasterBufferAndPrint [09:23:11]line [09:23:11]line [09:23:11]line [09:23:11]line [09:23:11]line [09:23:11]written 0, free lines is 3317 [09:23:11]MH_Cut [09:23:11]Write to MH i2c: D1 01 00 4A 48 01 64 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: D1 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: D1 01 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: D1 01 00 4A 48 00 63 [09:23:11]Write to MH i2c: 01 00 00 4B 48 93 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]OFD Sender: No OFD packet to send [09:23:12]*** Cut start [09:23:12]*** Partial cut [09:23:12]*** CUTSNS_PIN = 1 [09:23:12]*** CUTSNS_PIN = 0 [09:23:12]*** Brake cut motor [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]*** Stop cut motor [09:23:12]*** Cut end [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 4B 48 00 00 00 00 00 FF 0F A8 [09:23:12]process_action close_receipt done [09:23:12]requested_data is exist [09:23:12]produce_requested_data [09:23:12]requested_item fm.sn is exist - process it [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 11 00 00 [09:23:12]Write to MH i2c: E2 08 00 4C 48 80 11 00 00 00 00 00 00 0E [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 4C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [09:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:23:12]wFMCommunicate OK [09:23:12]requested_item fd.num is exist - process it [09:23:12]SAM_PROTO_GetFieldsCounters [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 13 00 00 [09:23:12]Write to MH i2c: E2 08 00 4D 48 80 13 00 00 00 00 00 00 11 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 62 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 62 00 4D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 11 01 00 0E 04 04 00 C3 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 D9 [09:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 11 01 00 0E 04 04 00 C3 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 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_GetFieldsCounters done [09:23:12]requested_item shift.num is exist - process it [09:23:12]requested_item shift.opened is exist - process it [09:23:12]req_shift_opened [09:23:12]FM_GetShiftState [09:23:12]SAM_PROTO_GetShiftState [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 13 01 00 [09:23:12]Write to MH i2c: E2 08 00 4E 48 80 13 01 00 00 00 00 00 13 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 4E 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 01 [09:23:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_GetShiftState done [09:23:13]FM_GetShiftState done [09:23:13]req_shift_opened done [09:23:13]requested_item shift.open_date is exist - process it [09:23:13]req_shift_open_date [09:23:13]req_shift_open_date done [09:23:13]produce_requested_data done [09:23:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70129,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:23:13]process_action_free close_receipt [09:23:13]json_value_free [09:23:13]json_value_free done [09:23:13]process_json_proto returns [09:23:13]Send response to host [09:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70129,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:23:13]free response buf [09:23:13]execute_script done [09:23:13]execute_script returns [09:23:13]free content buf [09:23:13]Sock 9.Close socket [09:23:13]Sock 9.Thread stoped [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:53]accept exits with 7 [09:23:53]New connection [09:23:53]New thread 3067026788 created [09:23:53]Thread 3067170148 joined [09:23:53]Waiting for new connection... [09:23:53] Sock 7.Parse request [09:23:53]Sock 7.Check first char [09:23:53]Sock 7.First char is OK [09:23:53]request: POST /json_proto HTTP/1.0 [09:23:53]Method: POST [09:23:53]URL: /json_proto [09:23:53]Method is POST - this is cgi request [09:23:53]url: /json_proto [09:23:53]query_string will be loaded in cgi processing [09:23:53]execute_cgi json_proto POST (null) [09:23:53]execute_cgi path=json_proto method=POST [09:23:53]POST find Content-Length [09:23:53]Host: 172.17.50.3:8080 [09:23:53]Content-Length: 683 [09:23:53]Content-Type: application/json [09:23:53] [09:23:53]POST finish read [09:23:53]Found Content-Length = 683 [09:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 60.650, "sum" : 4500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:23:53]execute_script... [09: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)2885896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 60.650, "sum" : 4500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:23:53]POST & json_proto [09:23:53]process_json_proto [09:23:53]json parsed OK: [09:23:53]protocol is kg_v1.0 [09:23:53]action value=close_receipt [09:23:53]process_action close_receipt [09:23:53]cmd_close_receipt [09:23:53]MH_GetDate [09:23:53]Write to MH i2c: F0 00 00 4F 48 86 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: F0 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: F0 09 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: F0 09 00 4F 48 00 2E 6F 17 67 6B 98 1E 66 31 [09:23:53]GetLastDocTimeStamp 1729588993 [09:23:53]current date 1729589038 [09:23:53]FM_GetShiftState [09:23:53]SAM_PROTO_GetShiftState [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 13 01 00 [09:23:53]Write to MH i2c: E2 08 00 50 48 80 13 01 00 00 00 00 00 15 [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 0E 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 0E 00 50 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 03 [09:23:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:23:53]wFMCommunicate OK [09:23:53]SAM_PROTO_GetShiftState done [09:23:53]FM_GetShiftState done [09:23:53]opened in 1729555832 [09:23:53]opened+sec_in_day 1729642232 [09:23:53]quantity*price = 450023 [09:23:53]sum+1 = 450024 [09:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.82 НДС 12% : 477.90 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 78 22.10.2024 09:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70130 ФПД: 147195595687306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70130&fm=147195595687306&tin=02508201610067®Number=0000000000156251&sum=450000 [09:23:54]StoreToDocumentArchive [09:23:54]shift 195 fd 70130 [09:23:54]save to /storage/0195/doc_00070130 [09:23:54]save last doc name /storage/0195/doc_00070130 to /storage/kkm_last_doc_name [09:23:54]save OK [09:23:54]Clear old archive folders... [09:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:54]tlvbuf is 0121DFA0 [09:23:54]SAM_PROTO_ClearQueue [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 09 00 00 [09:23:54]Write to MH i2c: E2 08 00 5D 48 80 09 00 00 00 00 00 00 17 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 5D 48 00 90 00 19 [09:23:54]RAPDU: 90 00 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_ClearQueue done [09:23:54]KKMCreateOFDPacket [09:23:54]OFDProtocolAddRootSTLVToBuf [09:23:54]FM_MakeSignedData [09:23:54]FM_MakeSignedData [09:23:54]SAM_PROTO_SignData [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 0D 01 02 [09:23:54]Write to MH i2c: E2 08 00 5E 48 80 0D 01 02 00 00 00 00 1F [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 5E 48 00 90 00 1A [09:23:54]RAPDU: 90 00 [09:23:54]wFMCommunicate OK [09:23:54]wFMCommunicate request_size=255 [09:23:54]MH_SAM_APDU [09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 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 4E 00 00 00 F4 03 04 00 2E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 11 01 00 35 04 06 00 85 [09:23:54]Write to MH i2c: E2 02 01 5F 48 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 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 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 4E 00 00 00 F4 03 04 00 2E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 11 01 00 35 04 06 00 85 00 00 FF [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 03 00 5F 48 00 90 00 1B [09:23:54]RAPDU: 90 00 [09:23:54]wFMCommunicate OK [09:23:54]wFMCommunicate request_size=10 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 0D 02 02 05 DF A5 31 85 8A [09:23:54]Write to MH i2c: E2 0D 00 60 48 80 0D 02 02 05 00 DF A5 31 85 8A 00 00 F0 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 60 48 00 90 00 1C [09:23:55]RAPDU: 90 00 [09:23:55]wFMCommunicate OK [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 0D 03 02 [09:23:55]Write to MH i2c: E2 08 00 61 48 80 0D 03 02 00 00 00 00 24 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0B 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0B 00 61 48 00 91 F3 81 D7 70 CB 98 F7 90 00 CB [09:23:55]RAPDU: 91 F3 81 D7 70 CB 98 F7 90 00 [09:23:55]wFMCommunicate OK [09:23:55]SAM_PROTO_SignData done [09:23:55]FM_MakeSignedData done [09:23:55]CreateOFDProtocolMessage [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 11 00 00 [09:23:55]Write to MH i2c: E2 08 00 62 48 80 11 00 00 00 00 00 00 24 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 62 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [09:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:23:55]wFMCommunicate OK [09:23:55]CreateOFDProtocolMessage done [09:23:55]OFDSenderStorePacket 70130 [09:23:55]StoreOFDPacket docnum=70130 [09:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 F2 07 01 29 32 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 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 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 4E 00 00 00 F4 03 04 00 2E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 11 01 00 35 04 06 00 85 DF A5 31 85 8A 91 F3 81 D7 70 CB 98 F7 [09:23:55]CheckFolder [09:23:55]dirname=/storage/ofd_packets [09:23:55]CheckFolder done [09:23:55]ProducePacketName [09:23:55]name=ofd_packets/00070130 [09:23:55]NVStorageSaveData ofd_packets/00070130 [09:23:55]File name is /storage/ofd_packets/00070130 [09:23:55]Write 301 bytes [09:23:55]NVStorageSaveData done [09:23:55]OFDSenderStorePacket done [09:23:55]KKMCreateOFDPacket done [09:23:55]NVStorageSaveData kkm_last_timestamp [09:23:55]File name is /storage/kkm_last_timestamp [09:23:55]Write 4 bytes [09:23:55]NVStorageSaveData done [09:23:55]ExternCall_PrintAddStr [09:23:55]wPrintStart [09:23:55]Write to MH i2c: 01 00 00 63 48 AB [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 63 48 00 00 00 00 00 FF 0F C0 [09:23:55]RasterBufferAndPrint [09:23:55]line Счет N : (1)2885896 [09:23:55]line ИНН: 02508201610067 [09:23:55]line Контрольно-Кассовый Чек [09:23:55]line ПРОДАЖА [09:23:55]line ТРК (МРК, ГНК) : 13 [09:23:55]line Товар: 2710124500 [09:23:55]line Аи-95-К-5 [09:23:55]line 60.650 * 74.20 [09:23:55]line = 4500.23 [09:23:55]line НДС 12% НСП 1% [09:23:55]line > о реализуемом товаре [09:23:55]line ОКРУГЛЕНИЕ: -0.23 [09:23:55]line ИТОГО: 4500.00 [09:23:55]line Внесено: 4500.00 [09:23:55]line СДАЧА: 0.00 [09:23:55]line НСП 1% : 39.82 [09:23:55]line НДС 12% : 477.90 [09:23:55]line Наличными: 4500.00 [09:23:55]line Безнал.: 0.00 [09:23:55]line Место: АЗС № 85 "Партнер Нефть" [09:23:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:23:55]line СНО: Общий режим [09:23:55]line Чек 78 22.10.2024 09:23 [09:23:55]line Смена: 195 ФФД: 1.0 [09:23:55]line ЗНМ: 0300000167 [09:23:55]line РНМ: 0000000000156251 [09:23:55]line Версия ККМ: v1.0 [09:23:55]line ФМ: 0000000000963346 [09:23:55]line ФД: 70130 [09:23:55]line ФПД: 147195595687306 [09:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70130&fm=147195595687306&tin=02508201610067®Number=0000000000156251&sum=450000 [09:23:55]OFD Sender: Processing packet 70130 [packets to send 18, broken 17] [09:23:55]ProducePacketName [09:23:55]name=ofd_packets/00070130 [09:23:55]OFD Sender: To server: pG, [09:23:55]CommunicateWithHost lk.salyk.kg:30040 [09:23:55]ConnectInit lk.salyk.kg [09:23:55]written 0, free lines is 4095 [09:23:55]Connected sock=10 [09: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 34 36 0F 01 00 00 39 F2 07 01 29 32 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 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 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 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 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 4E 00 00 00 F4 03 04 00 2E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 11 01 00 35 04 06 00 85 DF A5 31 85 8A 91 F3 81 D7 70 CB 98 F7 [09: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 34 36 4F 00 00 00 D8 9B 47 00 33 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 34 36 10 04 04 00 F2 11 01 00 F4 03 04 00 CF 18 17 67 B6 04 01 00 00 89 7D 26 B0 07 8D 56 38 [09:23:55]CommunicateWithHost err = 0 [09:23:55]CheckOFDResponse [09:23:55]1017 (14) - 77093643461234 [09:23:55]1041 (16) - 0000000000963346 [09:23:55]1040 (4) - 70130 [09:23:55]1012 (4) - 22.10.2024 03:15 [09:23:55]1206 (1) - 0 [09:23:55]OFD Sender: Remove packet 70130 [09:23:55]ProducePacketName [09:23:55]name=ofd_packets/00070130 [09:23:55]NVStorageDeleteData [09:23:55]Write to MH i2c: 01 00 00 8E 48 D6 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 8E 48 00 00 00 00 00 EA 0C D3 [09:23:55]RasterBufferAndPrint [09:23:55]line [09:23:55]line [09:23:55]line [09:23:55]line [09:23:55]line [09:23:55]written 0, free lines is 3312 [09:23:55]MH_Cut [09:23:55]Write to MH i2c: D1 01 00 95 48 01 AF [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: D1 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: D1 01 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: D1 01 00 95 48 00 AE [09:23:55]Write to MH i2c: 01 00 00 96 48 DE [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:56]OFD Sender: No OFD packet to send [09:23:56]*** Cut start [09:23:56]*** Partial cut [09:23:56]*** CUTSNS_PIN = 1 [09:23:56]*** CUTSNS_PIN = 0 [09:23:56]*** Brake cut motor [09:23:57]Read from MH i2c: 01 [09:23:57]MH_I2C_Read... [09:23:57]*** Stop cut motor [09:23:57]*** Cut end [09:23:57]Read from MH i2c: 01 07 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 96 48 00 00 00 00 00 FF 0F F3 [09:23:57]process_action close_receipt done [09:23:57]requested_data is exist [09:23:57]produce_requested_data [09:23:57]requested_item fm.sn is exist - process it [09:23:57]wFMCommunicate request_size=4 [09:23:57]MH_SAM_APDU [09:23:57]CAPDU: 80 11 00 00 [09:23:57]Write to MH i2c: E2 08 00 97 48 80 11 00 00 00 00 00 00 59 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:57]Read from MH i2c: E2 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 17 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 17 00 97 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [09:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:23:57]wFMCommunicate OK [09:23:57]requested_item fd.num is exist - process it [09:23:57]SAM_PROTO_GetFieldsCounters [09:23:57]wFMCommunicate request_size=4 [09:23:57]MH_SAM_APDU [09:23:57]CAPDU: 80 13 00 00 [09:23:57]Write to MH i2c: E2 08 00 98 48 80 13 00 00 00 00 00 00 5C [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:57]Read from MH i2c: E2 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 62 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 62 00 98 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 11 01 00 0E 04 04 00 C3 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 28 [09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 11 01 00 0E 04 04 00 C3 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 [09:23:57]wFMCommunicate OK [09:23:57]SAM_PROTO_GetFieldsCounters done [09:23:57]requested_item shift.num is exist - process it [09:23:57]requested_item shift.opened is exist - process it [09:23:57]req_shift_opened [09:23:57]FM_GetShiftState [09:23:57]SAM_PROTO_GetShiftState [09:23:57]wFMCommunicate request_size=4 [09:23:57]MH_SAM_APDU [09:23:57]CAPDU: 80 13 01 00 [09:23:57]Write to MH i2c: E2 08 00 99 48 80 13 01 00 00 00 00 00 5E [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 [09:23:57]MH_I2C_Read... [09:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:57]Read from MH i2c: E2 0E 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: E2 0E 00 99 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4C [09:23:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:23:57]wFMCommunicate OK [09:23:57]SAM_PROTO_GetShiftState done [09:23:57]FM_GetShiftState done [09:23:57]req_shift_opened done [09:23:57]requested_item shift.open_date is exist - process it [09:23:57]req_shift_open_date [09:23:57]req_shift_open_date done [09:23:57]produce_requested_data done [09:23:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70130,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:23:57]process_action_free close_receipt [09:23:57]json_value_free [09:23:57]json_value_free done [09:23:57]process_json_proto returns [09:23:57]Send response to host [09:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70130,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:23:57]free response buf [09:23:57]execute_script done [09:23:57]execute_script returns [09:23:57]free content buf [09:23:57]Sock 7.Close socket [09:23:57]Sock 7.Thread stoped [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:13]accept exits with 9 [09:25:13]New connection [09:25:13]New thread 3067170148 created [09:25:13]Thread 3067026788 joined [09:25:13]Waiting for new connection... [09:25:13] Sock 9.Parse request [09:25:13]Sock 9.Check first char [09:25:13]Sock 9.First char is OK [09:25:13]request: POST /json_proto HTTP/1.0 [09:25:13]Method: POST [09:25:13]URL: /json_proto [09:25:13]Method is POST - this is cgi request [09:25:13]url: /json_proto [09:25:13]query_string will be loaded in cgi processing [09:25:13]execute_cgi json_proto POST (null) [09:25:13]execute_cgi path=json_proto method=POST [09:25:13]POST find Content-Length [09:25:13]Host: 172.17.50.3:8080 [09:25:13]Content-Length: 678 [09:25:13]Content-Type: application/json [09:25:13] [09:25:13]POST finish read [09:25:13]Found Content-Length = 678 [09:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [09:25:13]execute_script... [09:25: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)2885898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [09:25:13]POST & json_proto [09:25:13]process_json_proto [09:25:13]json parsed OK: [09:25:13]protocol is kg_v1.0 [09:25:13]action value=close_receipt [09:25:13]process_action close_receipt [09:25:13]cmd_close_receipt [09:25:13]MH_GetDate [09:25:13]Write to MH i2c: F0 00 00 9A 48 D1 [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: F0 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: F0 09 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: F0 09 00 9A 48 00 7E 6F 17 67 6B 98 1E 66 CC [09:25:13]GetLastDocTimeStamp 1729589038 [09:25:13]current date 1729589118 [09:25:13]FM_GetShiftState [09:25:13]SAM_PROTO_GetShiftState [09:25:13]wFMCommunicate request_size=4 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 13 01 00 [09:25:13]Write to MH i2c: E2 08 00 9B 48 80 13 01 00 00 00 00 00 60 [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 0E 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 0E 00 9B 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4E [09:25:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:25:13]wFMCommunicate OK [09:25:13]SAM_PROTO_GetShiftState done [09:25:13]FM_GetShiftState done [09:25:13]opened in 1729555832 [09:25:13]opened+sec_in_day 1729642232 [09:25:13]quantity*price = 40006 [09:25:13]sum+1 = 40007 [09:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 79 22.10.2024 09:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70131 ФПД: 181880980008109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70131&fm=181880980008109&tin=02508201610067®Number=0000000000156251&sum=40000 [09:25:14]StoreToDocumentArchive [09:25:14]shift 195 fd 70131 [09:25:14]save to /storage/0195/doc_00070131 [09:25:14]save last doc name /storage/0195/doc_00070131 to /storage/kkm_last_doc_name [09:25:14]save OK [09:25:14]Clear old archive folders... [09:25:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:14]tlvbuf is 0112D230 [09:25:14]SAM_PROTO_ClearQueue [09:25:14]wFMCommunicate request_size=4 [09:25:14]MH_SAM_APDU [09:25:14]CAPDU: 80 09 00 00 [09:25:14]Write to MH i2c: E2 08 00 A8 48 80 09 00 00 00 00 00 00 62 [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:14]Read from MH i2c: E2 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 03 00 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 03 00 A8 48 00 90 00 64 [09:25:14]RAPDU: 90 00 [09:25:14]wFMCommunicate OK [09:25:14]SAM_PROTO_ClearQueue done [09:25:14]KKMCreateOFDPacket [09:25:14]OFDProtocolAddRootSTLVToBuf [09:25:14]FM_MakeSignedData [09:25:14]FM_MakeSignedData [09:25:14]SAM_PROTO_SignData [09:25:14]wFMCommunicate request_size=4 [09:25:14]MH_SAM_APDU [09:25:14]CAPDU: 80 0D 01 02 [09:25:14]Write to MH i2c: E2 08 00 A9 48 80 0D 01 02 00 00 00 00 6A [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:14]Read from MH i2c: E2 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 03 00 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 03 00 A9 48 00 90 00 65 [09:25:14]RAPDU: 90 00 [09:25:14]wFMCommunicate OK [09:25:14]wFMCommunicate request_size=255 [09:25:14]MH_SAM_APDU [09:25: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 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 4F 00 00 00 F4 03 04 00 7E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 11 01 00 35 04 06 00 A5 [09:25:14]Write to MH i2c: E2 02 01 AA 48 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 4F 00 00 00 F4 03 04 00 7E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 11 01 00 35 04 06 00 A5 00 00 E9 [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 03 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 03 00 AA 48 00 90 00 66 [09:25:15]RAPDU: 90 00 [09:25:15]wFMCommunicate OK [09:25:15]wFMCommunicate request_size=10 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 0D 02 02 05 6B 77 34 6C AD [09:25:15]Write to MH i2c: E2 0D 00 AB 48 80 0D 02 02 05 00 6B 77 34 6C AD 00 00 A6 [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 03 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 03 00 AB 48 00 90 00 67 [09:25:15]RAPDU: 90 00 [09:25:15]wFMCommunicate OK [09:25:15]wFMCommunicate request_size=4 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 0D 03 02 [09:25:15]Write to MH i2c: E2 08 00 AC 48 80 0D 03 02 00 00 00 00 6F [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 0B 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 0B 00 AC 48 00 09 90 9E 0B 9E 58 F7 5F 90 00 FE [09:25:15]RAPDU: 09 90 9E 0B 9E 58 F7 5F 90 00 [09:25:15]wFMCommunicate OK [09:25:15]SAM_PROTO_SignData done [09:25:15]FM_MakeSignedData done [09:25:15]CreateOFDProtocolMessage [09:25:15]wFMCommunicate request_size=4 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 11 00 00 [09:25:15]Write to MH i2c: E2 08 00 AD 48 80 11 00 00 00 00 00 00 6F [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 17 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 17 00 AD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [09:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:15]wFMCommunicate OK [09:25:15]CreateOFDProtocolMessage done [09:25:15]OFDSenderStorePacket 70131 [09:25:15]StoreOFDPacket docnum=70131 [09:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 51 07 01 12 80 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 4F 00 00 00 F4 03 04 00 7E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 11 01 00 35 04 06 00 A5 6B 77 34 6C AD 09 90 9E 0B 9E 58 F7 5F [09:25:15]CheckFolder [09:25:15]dirname=/storage/ofd_packets [09:25:15]CheckFolder done [09:25:15]ProducePacketName [09:25:15]name=ofd_packets/00070131 [09:25:15]NVStorageSaveData ofd_packets/00070131 [09:25:15]File name is /storage/ofd_packets/00070131 [09:25:15]Write 301 bytes [09:25:15]NVStorageSaveData done [09:25:15]OFDSenderStorePacket done [09:25:15]KKMCreateOFDPacket done [09:25:15]NVStorageSaveData kkm_last_timestamp [09:25:15]File name is /storage/kkm_last_timestamp [09:25:15]Write 4 bytes [09:25:15]NVStorageSaveData done [09:25:15]ExternCall_PrintAddStr [09:25:15]wPrintStart [09:25:15]Write to MH i2c: 01 00 00 AE 48 F6 [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: 01 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: 01 07 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: 01 07 00 AE 48 00 00 00 00 00 FF 0F 0B [09:25:15]RasterBufferAndPrint [09:25:15]line Счет N : (1)2885898 [09:25:15]line ИНН: 02508201610067 [09:25:15]line Контрольно-Кассовый Чек [09:25:15]line ПРОДАЖА [09:25:15]line ТРК (МРК, ГНК) : 22 [09:25:15]line Товар: 2710124130 [09:25:15]line Аи-92-К-5 [09:25:15]line 5.980 * 66.90 [09:25:15]line = 400.06 [09:25:15]line НДС 12% НСП 1% [09:25:15]line > о реализуемом товаре [09:25:15]line ОКРУГЛЕНИЕ: -0.06 [09:25:15]line ИТОГО: 400.00 [09:25:15]line Внесено: 400.00 [09:25:15]line СДАЧА: 0.00 [09:25:15]line НСП 1% : 3.54 [09:25:15]line НДС 12% : 42.48 [09:25:15]line Наличными: 400.00 [09:25:15]line Безнал.: 0.00 [09:25:15]line Место: АЗС № 85 "Партнер Нефть" [09:25:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:25:15]line СНО: Общий режим [09:25:15]line Чек 79 22.10.2024 09:25 [09:25:15]line Смена: 195 ФФД: 1.0 [09:25:15]line ЗНМ: 0300000167 [09:25:15]line РНМ: 0000000000156251 [09:25:15]line Версия ККМ: v1.0 [09:25:15]line ФМ: 0000000000963346 [09:25:15]line ФД: 70131 [09:25:15]line ФПД: 181880980008109 [09:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70131&fm=181880980008109&tin=02508201610067®Number=0000000000156251&sum=40000 [09:25:15]OFD Sender: Processing packet 70131 [packets to send 18, broken 17] [09:25:15]ProducePacketName [09:25:15]name=ofd_packets/00070131 [09:25:15]OFD Sender: To server: pG, [09:25:15]CommunicateWithHost lk.salyk.kg:30040 [09:25:15]ConnectInit lk.salyk.kg [09:25:15]written 0, free lines is 4095 [09:25:15]Connected sock=10 [09:25: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 34 36 0F 01 00 00 44 51 07 01 12 80 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 4F 00 00 00 F4 03 04 00 7E 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 11 01 00 35 04 06 00 A5 6B 77 34 6C AD 09 90 9E 0B 9E 58 F7 5F [09: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 34 36 4F 00 00 00 D4 9D 47 00 69 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 34 36 10 04 04 00 F3 11 01 00 F4 03 04 00 1F 19 17 67 B6 04 01 00 00 FF BB 90 3B 16 7C F6 CA [09:25:16]CommunicateWithHost err = 0 [09:25:16]CheckOFDResponse [09:25:16]1017 (14) - 77093643461234 [09:25:16]1041 (16) - 0000000000963346 [09:25:16]1040 (4) - 70131 [09:25:16]1012 (4) - 22.10.2024 03:16 [09:25:16]1206 (1) - 0 [09:25:16]OFD Sender: Remove packet 70131 [09:25:16]ProducePacketName [09:25:16]name=ofd_packets/00070131 [09:25:16]NVStorageDeleteData [09:25:16]Write to MH i2c: 01 00 00 D9 48 21 [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: 01 07 00 D9 48 00 00 00 00 00 F9 0C 2D [09:25:16]RasterBufferAndPrint [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]line [09:25:16]written 0, free lines is 3331 [09:25:16]MH_Cut [09:25:16]Write to MH i2c: D1 01 00 E0 48 01 FA [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 01 00 [09:25:16]MH_I2C_Read... [09:25:16]Read from MH i2c: D1 01 00 E0 48 00 F9 [09:25:16]Write to MH i2c: 01 00 00 E1 48 29 [09:25:16]Write i2c OK [09:25:16]MH_I2C_Read... [09:25:16]OFD Sender: No OFD packet to send [09:25:16]*** Cut start [09:25:16]*** Partial cut [09:25:16]*** CUTSNS_PIN = 1 [09:25:16]*** CUTSNS_PIN = 0 [09:25:17]*** Brake cut motor [09:25:17]Read from MH i2c: 01 [09:25:17]MH_I2C_Read... [09:25:17]*** Stop cut motor [09:25:17]*** Cut end [09:25:17]Read from MH i2c: 01 07 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: 01 07 00 E1 48 00 00 00 00 00 FF 0F 3E [09:25:17]process_action close_receipt done [09:25:17]requested_data is exist [09:25:17]produce_requested_data [09:25:17]requested_item fm.sn is exist - process it [09:25:17]wFMCommunicate request_size=4 [09:25:17]MH_SAM_APDU [09:25:17]CAPDU: 80 11 00 00 [09:25:17]Write to MH i2c: E2 08 00 E2 48 80 11 00 00 00 00 00 00 A4 [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:17]Read from MH i2c: E2 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 17 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 17 00 E2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [09:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:17]wFMCommunicate OK [09:25:17]requested_item fd.num is exist - process it [09:25:17]SAM_PROTO_GetFieldsCounters [09:25:17]wFMCommunicate request_size=4 [09:25:17]MH_SAM_APDU [09:25:17]CAPDU: 80 13 00 00 [09:25:17]Write to MH i2c: E2 08 00 E3 48 80 13 00 00 00 00 00 00 A7 [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:17]Read from MH i2c: E2 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 62 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 62 00 E3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 11 01 00 0E 04 04 00 C3 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 77 [09:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 11 01 00 0E 04 04 00 C3 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 [09:25:17]wFMCommunicate OK [09:25:17]SAM_PROTO_GetFieldsCounters done [09:25:17]requested_item shift.num is exist - process it [09:25:17]requested_item shift.opened is exist - process it [09:25:17]req_shift_opened [09:25:17]FM_GetShiftState [09:25:17]SAM_PROTO_GetShiftState [09:25:17]wFMCommunicate request_size=4 [09:25:17]MH_SAM_APDU [09:25:17]CAPDU: 80 13 01 00 [09:25:17]Write to MH i2c: E2 08 00 E4 48 80 13 01 00 00 00 00 00 A9 [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:17]Read from MH i2c: E2 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 0E 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 0E 00 E4 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 97 [09:25:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:25:17]wFMCommunicate OK [09:25:17]SAM_PROTO_GetShiftState done [09:25:17]FM_GetShiftState done [09:25:17]req_shift_opened done [09:25:17]requested_item shift.open_date is exist - process it [09:25:17]req_shift_open_date [09:25:17]req_shift_open_date done [09:25:17]produce_requested_data done [09:25:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70131,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:25:17]process_action_free close_receipt [09:25:17]json_value_free [09:25:17]json_value_free done [09:25:17]process_json_proto returns [09:25:17]Send response to host [09:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70131,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:25:17]free response buf [09:25:17]execute_script done [09:25:17]execute_script returns [09:25:17]free content buf [09:25:17]Sock 9.Close socket [09:25:17]Sock 9.Thread stoped [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]accept exits with 7 [09:25:31]New connection [09:25:31]New thread 3067026788 created [09:25:31]Thread 3067170148 joined [09:25:31]Waiting for new connection... [09:25:31] Sock 7.Parse request [09:25:31]Sock 7.Check first char [09:25:31]Sock 7.First char is OK [09:25:31]request: POST /json_proto HTTP/1.0 [09:25:31]Method: POST [09:25:31]URL: /json_proto [09:25:31]Method is POST - this is cgi request [09:25:31]url: /json_proto [09:25:31]query_string will be loaded in cgi processing [09:25:31]execute_cgi json_proto POST (null) [09:25:31]execute_cgi path=json_proto method=POST [09:25:31]POST find Content-Length [09:25:31]Host: 172.17.50.3:8080 [09:25:31]Content-Length: 755 [09:25:31]Content-Type: application/json [09:25:31] [09:25:31]POST finish read [09:25:31]Found Content-Length = 755 [09:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30074753", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:31]execute_script... [09:25: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)2885897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30074753", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:31]POST & json_proto [09:25:31]process_json_proto [09:25:31]json parsed OK: [09:25:31]protocol is kg_v1.0 [09:25:31]action value=close_receipt [09:25:31]process_action close_receipt [09:25:31]cmd_close_receipt [09:25:31]MH_GetDate [09:25:31]Write to MH i2c: F0 00 00 E5 48 1C [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: F0 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: F0 09 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: F0 09 00 E5 48 00 90 6F 17 67 6B 98 1E 66 29 [09:25:31]GetLastDocTimeStamp 1729589118 [09:25:31]current date 1729589136 [09:25:31]FM_GetShiftState [09:25:31]SAM_PROTO_GetShiftState [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 13 01 00 [09:25:31]Write to MH i2c: E2 08 00 E6 48 80 13 01 00 00 00 00 00 AB [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]OFD Sender: No OFD packet to send [09:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0E 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0E 00 E6 48 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 99 [09:25:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_GetShiftState done [09:25:31]FM_GetShiftState done [09:25:31]opened in 1729555832 [09:25:31]opened+sec_in_day 1729642232 [09:25:31]quantity*price = 0 [09:25:31]sum+1 = 1 [09:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 80 22.10.2024 09:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30074753 ФМ: 0000000000963346 ФД: 70132 ФПД: 56439520101735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092536&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70132&fm=56439520101735&tin=02508201610067®Number=0000000000156251&sum=0 [09:25:32]StoreToDocumentArchive [09:25:32]shift 195 fd 70132 [09:25:32]save to /storage/0195/doc_00070132 [09:25:32]save last doc name /storage/0195/doc_00070132 to /storage/kkm_last_doc_name [09:25:32]save OK [09:25:32]Clear old archive folders... [09:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:32]tlvbuf is 0129B790 [09:25:32]SAM_PROTO_ClearQueue [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 09 00 00 [09:25:32]Write to MH i2c: E2 08 00 F3 48 80 09 00 00 00 00 00 00 AD [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 03 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 03 00 F3 48 00 90 00 AF [09:25:32]RAPDU: 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_ClearQueue done [09:25:32]KKMCreateOFDPacket [09:25:32]OFDProtocolAddRootSTLVToBuf [09:25:32]FM_MakeSignedData [09:25:32]FM_MakeSignedData [09:25:32]SAM_PROTO_SignData [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 0D 01 02 [09:25:32]Write to MH i2c: E2 08 00 F4 48 80 0D 01 02 00 00 00 00 B5 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 03 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 03 00 F4 48 00 90 00 B0 [09:25:32]RAPDU: 90 00 [09:25:32]wFMCommunicate OK [09:25:32]wFMCommunicate request_size=255 [09:25:32]MH_SAM_APDU [09:25: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 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 50 00 00 00 F4 03 04 00 90 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 11 01 00 35 04 06 00 33 [09:25:32]Write to MH i2c: E2 02 01 F5 48 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 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 50 00 00 00 F4 03 04 00 90 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 11 01 00 35 04 06 00 33 00 00 27 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 F5 48 00 90 00 B1 [09:25:33]RAPDU: 90 00 [09:25:33]wFMCommunicate OK [09:25:33]wFMCommunicate request_size=10 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 0D 02 02 05 54 D9 8C 05 67 [09:25:33]Write to MH i2c: E2 0D 00 F6 48 80 0D 02 02 05 00 54 D9 8C 05 67 00 00 E7 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 F6 48 00 90 00 B2 [09:25:33]RAPDU: 90 00 [09:25:33]wFMCommunicate OK [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 0D 03 02 [09:25:33]Write to MH i2c: E2 08 00 F7 48 80 0D 03 02 00 00 00 00 BA [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 0B 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 0B 00 F7 48 00 8A 8D 3B 43 57 3E C5 EB 90 00 95 [09:25:33]RAPDU: 8A 8D 3B 43 57 3E C5 EB 90 00 [09:25:33]wFMCommunicate OK [09:25:33]SAM_PROTO_SignData done [09:25:33]FM_MakeSignedData done [09:25:33]CreateOFDProtocolMessage [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 11 00 00 [09:25:33]Write to MH i2c: E2 08 00 F8 48 80 11 00 00 00 00 00 00 BA [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 17 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 17 00 F8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [09:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:33]wFMCommunicate OK [09:25:33]CreateOFDProtocolMessage done [09:25:33]OFDSenderStorePacket 70132 [09:25:33]StoreOFDPacket docnum=70132 [09:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E 43 07 01 D4 B9 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 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 50 00 00 00 F4 03 04 00 90 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 11 01 00 35 04 06 00 33 54 D9 8C 05 67 8A 8D 3B 43 57 3E C5 EB [09:25:33]CheckFolder [09:25:33]dirname=/storage/ofd_packets [09:25:33]CheckFolder done [09:25:33]ProducePacketName [09:25:33]name=ofd_packets/00070132 [09:25:33]NVStorageSaveData ofd_packets/00070132 [09:25:33]File name is /storage/ofd_packets/00070132 [09:25:33]Write 301 bytes [09:25:33]NVStorageSaveData done [09:25:33]OFDSenderStorePacket done [09:25:33]KKMCreateOFDPacket done [09:25:33]NVStorageSaveData kkm_last_timestamp [09:25:33]File name is /storage/kkm_last_timestamp [09:25:33]Write 4 bytes [09:25:33]NVStorageSaveData done [09:25:33]ExternCall_PrintAddStr [09:25:33]wPrintStart [09:25:33]Write to MH i2c: 01 00 00 F9 48 41 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 07 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 07 00 F9 48 00 00 00 00 00 FF 0F 56 [09:25:33]RasterBufferAndPrint [09:25:33]line Счет N : (1)2885897 [09:25:33]line ИНН: 02508201610067 [09:25:33]line Контрольно-Кассовый Чек [09:25:33]line ПРОДАЖА [09:25:33]line ТРК (МРК, ГНК) : 32 [09:25:33]line Товар: 2710124130 [09:25:33]line Аи-92-К-5 [09:25:33]line 30.000 * 0.00 [09:25:33]line = 0.00 [09:25:33]line НДС 12% НСП 1% [09:25:33]line > о реализуемом товаре [09:25:33]line ИТОГО: 0.00 [09:25:33]line НСП 1% : 0.00 [09:25:33]line НДС 12% : 0.00 [09:25:33]line Наличными: 0.00 [09:25:33]line Безнал.: 0.00 [09:25:33]line Место: АЗС № 85 "Партнер Нефть" [09:25:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:25:33]line СНО: Общий режим [09:25:33]line Чек 80 22.10.2024 09:25 [09:25:33]line Смена: 195 ФФД: 1.0 [09:25:33]line ЗНМ: 0300000167 [09:25:33]line РНМ: 0000000000156251 [09:25:33]line Версия ККМ: v1.0 [09:25:33]line Талоны: ТК ГПНА Online [09:25:33]line 30074753 [09:25:33]line ФМ: 0000000000963346 [09:25:33]line ФД: 70132 [09:25:33]line ФПД: 56439520101735 [09:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092536&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70132&fm=56439520101735&tin=02508201610067®Number=0000000000156251&sum=0 [09:25:33]OFD Sender: Processing packet 70132 [packets to send 18, broken 17] [09:25:33]ProducePacketName [09:25:33]name=ofd_packets/00070132 [09:25:33]OFD Sender: To server: pG, [09:25:33]CommunicateWithHost lk.salyk.kg:30040 [09:25:33]ConnectInit lk.salyk.kg [09:25:33]written 0, free lines is 4095 [09:25:33]Connected sock=10 [09:25: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 34 36 0F 01 00 00 4E 43 07 01 D4 B9 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 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 50 00 00 00 F4 03 04 00 90 6F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 11 01 00 35 04 06 00 33 54 D9 8C 05 67 8A 8D 3B 43 57 3E C5 EB [09:25: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 34 36 4F 00 00 00 32 6A 47 00 94 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 34 36 10 04 04 00 F4 11 01 00 F4 03 04 00 31 19 17 67 B6 04 01 00 00 CE 6F 28 A5 EA AB 16 6C [09:25:33]CommunicateWithHost err = 0 [09:25:33]CheckOFDResponse [09:25:33]1017 (14) - 77093643461234 [09:25:33]1041 (16) - 0000000000963346 [09:25:33]1040 (4) - 70132 [09:25:33]1012 (4) - 22.10.2024 03:17 [09:25:33]1206 (1) - 0 [09:25:33]OFD Sender: Remove packet 70132 [09:25:33]ProducePacketName [09:25:33]name=ofd_packets/00070132 [09:25:33]NVStorageDeleteData [09:25:33]Write to MH i2c: 01 00 00 23 49 6C [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 07 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 0D 0D 8D [09:25:33]RasterBufferAndPrint [09:25:33]line [09:25:33]line [09:25:33]line [09:25:33]line [09:25:33]line [09:25:33]written 0, free lines is 3348 [09:25:34]MH_Cut [09:25:34]Write to MH i2c: D1 01 00 2A 49 01 45 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: D1 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: D1 01 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: D1 01 00 2A 49 00 44 [09:25:34]Write to MH i2c: 01 00 00 2B 49 74 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]OFD Sender: No OFD packet to send [09:25:34]*** Cut start [09:25:34]*** Partial cut [09:25:34]*** CUTSNS_PIN = 1 [09:25:34]*** CUTSNS_PIN = 0 [09:25:34]*** Brake cut motor [09:25:35]Read from MH i2c: 01 [09:25:35]MH_I2C_Read... [09:25:35]*** Stop cut motor [09:25:35]*** Cut end [09:25:35]Read from MH i2c: 01 07 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: 01 07 00 2B 49 00 00 00 00 00 FF 0F 89 [09:25:35]process_action close_receipt done [09:25:35]requested_data is exist [09:25:35]produce_requested_data [09:25:35]requested_item fm.sn is exist - process it [09:25:35]wFMCommunicate request_size=4 [09:25:35]MH_SAM_APDU [09:25:35]CAPDU: 80 11 00 00 [09:25:35]Write to MH i2c: E2 08 00 2C 49 80 11 00 00 00 00 00 00 EF [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:35]Read from MH i2c: E2 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 17 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 17 00 2C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [09:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:35]wFMCommunicate OK [09:25:35]requested_item fd.num is exist - process it [09:25:35]SAM_PROTO_GetFieldsCounters [09:25:35]wFMCommunicate request_size=4 [09:25:35]MH_SAM_APDU [09:25:35]CAPDU: 80 13 00 00 [09:25:35]Write to MH i2c: E2 08 00 2D 49 80 13 00 00 00 00 00 00 F2 [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:35]Read from MH i2c: E2 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 62 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 62 00 2D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 11 01 00 0E 04 04 00 C3 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 C6 [09:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 11 01 00 0E 04 04 00 C3 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 [09:25:35]wFMCommunicate OK [09:25:35]SAM_PROTO_GetFieldsCounters done [09:25:35]requested_item shift.num is exist - process it [09:25:35]requested_item shift.opened is exist - process it [09:25:35]req_shift_opened [09:25:35]FM_GetShiftState [09:25:35]SAM_PROTO_GetShiftState [09:25:35]wFMCommunicate request_size=4 [09:25:35]MH_SAM_APDU [09:25:35]CAPDU: 80 13 01 00 [09:25:35]Write to MH i2c: E2 08 00 2E 49 80 13 01 00 00 00 00 00 F4 [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:35]Read from MH i2c: E2 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 0E 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: E2 0E 00 2E 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E2 [09:25:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:25:35]wFMCommunicate OK [09:25:35]SAM_PROTO_GetShiftState done [09:25:35]FM_GetShiftState done [09:25:35]req_shift_opened done [09:25:35]requested_item shift.open_date is exist - process it [09:25:35]req_shift_open_date [09:25:35]req_shift_open_date done [09:25:35]produce_requested_data done [09:25:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70132,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:25:35]process_action_free close_receipt [09:25:35]json_value_free [09:25:35]json_value_free done [09:25:35]process_json_proto returns [09:25:35]Send response to host [09:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70132,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:25:35]free response buf [09:25:35]execute_script done [09:25:35]execute_script returns [09:25:35]free content buf [09:25:35]Sock 7.Close socket [09:25:35]Sock 7.Thread stoped [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:12]accept exits with 9 [09:31:12]New connection [09:31:12]New thread 3067170148 created [09:31:12]Thread 3067026788 joined [09:31:12]Waiting for new connection... [09:31:12] Sock 9.Parse request [09:31:12]Sock 9.Check first char [09:31:12]Sock 9.First char is OK [09:31:12]request: POST /json_proto HTTP/1.0 [09:31:12]Method: POST [09:31:12]URL: /json_proto [09:31:12]Method is POST - this is cgi request [09:31:12]url: /json_proto [09:31:12]query_string will be loaded in cgi processing [09:31:12]execute_cgi json_proto POST (null) [09:31:12]execute_cgi path=json_proto method=POST [09:31:12]POST find Content-Length [09:31:12]Host: 172.17.50.3:8080 [09:31:12]Content-Length: 683 [09:31:12]Content-Type: application/json [09:31:12] [09:31:12]POST finish read [09:31:12]Found Content-Length = 683 [09:31:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:31:12]execute_script... [09:31: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 : (1)2885899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:31:12]POST & json_proto [09:31:12]process_json_proto [09:31:12]json parsed OK: [09:31:12]protocol is kg_v1.0 [09:31:12]action value=close_receipt [09:31:12]process_action close_receipt [09:31:12]cmd_close_receipt [09:31:12]MH_GetDate [09:31:12]Write to MH i2c: F0 00 00 2F 49 67 [09:31:12]Write i2c OK [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: F0 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: F0 09 00 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: F0 09 00 2F 49 00 E5 70 17 67 6B 98 1E 66 CA [09:31:12]GetLastDocTimeStamp 1729589136 [09:31:12]current date 1729589477 [09:31:12]FM_GetShiftState [09:31:12]SAM_PROTO_GetShiftState [09:31:12]wFMCommunicate request_size=4 [09:31:12]MH_SAM_APDU [09:31:12]CAPDU: 80 13 01 00 [09:31:12]Write to MH i2c: E2 08 00 30 49 80 13 01 00 00 00 00 00 F6 [09:31:12]Write i2c OK [09:31:12]MH_I2C_Read... [09:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:12]Read from MH i2c: E2 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: E2 0E 00 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: E2 0E 00 30 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E4 [09:31:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:31:12]wFMCommunicate OK [09:31:12]SAM_PROTO_GetShiftState done [09:31:12]FM_GetShiftState done [09:31:12]opened in 1729555832 [09:31:12]opened+sec_in_day 1729642232 [09:31:12]quantity*price = 150032 [09:31:12]sum+1 = 150033 [09:31:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 81 22.10.2024 09:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70133 ФПД: 161172061542135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70133&fm=161172061542135&tin=02508201610067®Number=0000000000156251&sum=150000 [09:31:13]StoreToDocumentArchive [09:31:13]shift 195 fd 70133 [09:31:13]save to /storage/0195/doc_00070133 [09:31:13]save last doc name /storage/0195/doc_00070133 to /storage/kkm_last_doc_name [09:31:13]save OK [09:31:13]Clear old archive folders... [09:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:13]tlvbuf is B6F0F350 [09:31:13]SAM_PROTO_ClearQueue [09:31:13]wFMCommunicate request_size=4 [09:31:13]MH_SAM_APDU [09:31:13]CAPDU: 80 09 00 00 [09:31:13]Write to MH i2c: E2 08 00 3D 49 80 09 00 00 00 00 00 00 F8 [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:13]Read from MH i2c: E2 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 03 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 03 00 3D 49 00 90 00 FA [09:31:13]RAPDU: 90 00 [09:31:13]wFMCommunicate OK [09:31:13]SAM_PROTO_ClearQueue done [09:31:13]KKMCreateOFDPacket [09:31:13]OFDProtocolAddRootSTLVToBuf [09:31:13]FM_MakeSignedData [09:31:13]FM_MakeSignedData [09:31:13]SAM_PROTO_SignData [09:31:13]wFMCommunicate request_size=4 [09:31:13]MH_SAM_APDU [09:31:13]CAPDU: 80 0D 01 02 [09:31:13]Write to MH i2c: E2 08 00 3E 49 80 0D 01 02 00 00 00 00 00 [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:13]Read from MH i2c: E2 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 03 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 03 00 3E 49 00 90 00 FB [09:31:13]RAPDU: 90 00 [09:31:13]wFMCommunicate OK [09:31:13]wFMCommunicate request_size=255 [09:31:13]MH_SAM_APDU [09:31:13]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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 51 00 00 00 F4 03 04 00 E5 70 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 11 01 00 35 04 06 00 92 [09:31:13]Write to MH i2c: E2 02 01 3F 49 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 51 00 00 00 F4 03 04 00 E5 70 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 11 01 00 35 04 06 00 92 00 00 6C [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:14]Read from MH i2c: E2 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 03 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 03 00 3F 49 00 90 00 FC [09:31:14]RAPDU: 90 00 [09:31:14]wFMCommunicate OK [09:31:14]wFMCommunicate request_size=10 [09:31:14]MH_SAM_APDU [09:31:14]CAPDU: 80 0D 02 02 05 95 CB 79 D6 F7 [09:31:14]Write to MH i2c: E2 0D 00 40 49 80 0D 02 02 05 00 95 CB 79 D6 F7 00 00 B3 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:14]Read from MH i2c: E2 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 03 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 03 00 40 49 00 90 00 FD [09:31:14]RAPDU: 90 00 [09:31:14]wFMCommunicate OK [09:31:14]wFMCommunicate request_size=4 [09:31:14]MH_SAM_APDU [09:31:14]CAPDU: 80 0D 03 02 [09:31:14]Write to MH i2c: E2 08 00 41 49 80 0D 03 02 00 00 00 00 05 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:14]Read from MH i2c: E2 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 0B 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 0B 00 41 49 00 79 9E 18 53 CF C1 1A 8C 90 00 BE [09:31:14]RAPDU: 79 9E 18 53 CF C1 1A 8C 90 00 [09:31:14]wFMCommunicate OK [09:31:14]SAM_PROTO_SignData done [09:31:14]FM_MakeSignedData done [09:31:14]CreateOFDProtocolMessage [09:31:14]wFMCommunicate request_size=4 [09:31:14]MH_SAM_APDU [09:31:14]CAPDU: 80 11 00 00 [09:31:14]Write to MH i2c: E2 08 00 42 49 80 11 00 00 00 00 00 00 05 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:14]Read from MH i2c: E2 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 17 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 17 00 42 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [09:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:14]wFMCommunicate OK [09:31:14]CreateOFDProtocolMessage done [09:31:14]OFDSenderStorePacket 70133 [09:31:14]StoreOFDPacket docnum=70133 [09:31:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 82 98 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 51 00 00 00 F4 03 04 00 E5 70 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 11 01 00 35 04 06 00 92 95 CB 79 D6 F7 79 9E 18 53 CF C1 1A 8C [09:31:14]CheckFolder [09:31:14]dirname=/storage/ofd_packets [09:31:14]CheckFolder done [09:31:14]ProducePacketName [09:31:14]name=ofd_packets/00070133 [09:31:14]NVStorageSaveData ofd_packets/00070133 [09:31:14]File name is /storage/ofd_packets/00070133 [09:31:14]Write 301 bytes [09:31:14]NVStorageSaveData done [09:31:14]OFDSenderStorePacket done [09:31:14]KKMCreateOFDPacket done [09:31:14]NVStorageSaveData kkm_last_timestamp [09:31:14]File name is /storage/kkm_last_timestamp [09:31:14]Write 4 bytes [09:31:14]NVStorageSaveData done [09:31:14]ExternCall_PrintAddStr [09:31:14]wPrintStart [09:31:14]Write to MH i2c: 01 00 00 43 49 8C [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 07 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 07 00 43 49 00 00 00 00 00 FF 0F A1 [09:31:14]RasterBufferAndPrint [09:31:14]line Счет N : (1)2885899 [09:31:14]line ИНН: 02508201610067 [09:31:14]line Контрольно-Кассовый Чек [09:31:14]line ПРОДАЖА [09:31:14]line ТРК (МРК, ГНК) : 23 [09:31:14]line Товар: 2710124500 [09:31:14]line Аи-95-К-5 [09:31:14]line 20.220 * 74.20 [09:31:14]line = 1500.32 [09:31:14]line НДС 12% НСП 1% [09:31:14]line > о реализуемом товаре [09:31:14]line ОКРУГЛЕНИЕ: -0.32 [09:31:14]line ИТОГО: 1500.00 [09:31:14]line Внесено: 1500.00 [09:31:14]line СДАЧА: 0.00 [09:31:14]line НСП 1% : 13.28 [09:31:14]line НДС 12% : 159.33 [09:31:14]line Наличными: 1500.00 [09:31:14]line Безнал.: 0.00 [09:31:14]line Место: АЗС № 85 "Партнер Нефть" [09:31:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:31:14]line СНО: Общий режим [09:31:14]line Чек 81 22.10.2024 09:31 [09:31:14]line Смена: 195 ФФД: 1.0 [09:31:14]line ЗНМ: 0300000167 [09:31:14]line РНМ: 0000000000156251 [09:31:14]line Версия ККМ: v1.0 [09:31:14]line ФМ: 0000000000963346 [09:31:14]line ФД: 70133 [09:31:14]line ФПД: 161172061542135 [09:31:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70133&fm=161172061542135&tin=02508201610067®Number=0000000000156251&sum=150000 [09:31:14]OFD Sender: Processing packet 70133 [packets to send 18, broken 17] [09:31:14]ProducePacketName [09:31:14]name=ofd_packets/00070133 [09:31:14]OFD Sender: To server: pG, [09:31:14]CommunicateWithHost lk.salyk.kg:30040 [09:31:14]ConnectInit lk.salyk.kg [09:31:14]written 0, free lines is 4095 [09:31:14]Connected sock=10 [09:31: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 34 36 0F 01 00 00 82 98 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 51 00 00 00 F4 03 04 00 E5 70 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 11 01 00 35 04 06 00 92 95 CB 79 D6 F7 79 9E 18 53 CF C1 1A 8C [09:31: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 34 36 4F 00 00 00 EF 1B 47 00 66 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 34 36 10 04 04 00 F5 11 01 00 F4 03 04 00 86 1A 17 67 B6 04 01 00 00 5B CF 48 C7 B4 F2 2A AB [09:31:14]CommunicateWithHost err = 0 [09:31:14]CheckOFDResponse [09:31:14]1017 (14) - 77093643461234 [09:31:14]1041 (16) - 0000000000963346 [09:31:14]1040 (4) - 70133 [09:31:14]1012 (4) - 22.10.2024 03:22 [09:31:14]1206 (1) - 0 [09:31:14]OFD Sender: Remove packet 70133 [09:31:14]ProducePacketName [09:31:14]name=ofd_packets/00070133 [09:31:14]NVStorageDeleteData [09:31:14]Write to MH i2c: 01 00 00 6E 49 B7 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 07 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: 01 07 00 6E 49 00 00 00 00 00 F1 0C BB [09:31:14]RasterBufferAndPrint [09:31:14]line [09:31:14]line [09:31:14]line [09:31:14]line [09:31:14]line [09:31:14]written 0, free lines is 3322 [09:31:15]MH_Cut [09:31:15]Write to MH i2c: D1 01 00 75 49 01 90 [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: D1 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: D1 01 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: D1 01 00 75 49 00 8F [09:31:15]Write to MH i2c: 01 00 00 76 49 BF [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]OFD Sender: No OFD packet to send [09:31:15]*** Cut start [09:31:15]*** Partial cut [09:31:15]*** CUTSNS_PIN = 1 [09:31:15]*** CUTSNS_PIN = 0 [09:31:15]*** Brake cut motor [09:31:16]Read from MH i2c: 01 [09:31:16]MH_I2C_Read... [09:31:16]*** Stop cut motor [09:31:16]*** Cut end [09:31:16]Read from MH i2c: 01 07 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 07 00 76 49 00 00 00 00 00 FF 0F D4 [09:31:16]process_action close_receipt done [09:31:16]requested_data is exist [09:31:16]produce_requested_data [09:31:16]requested_item fm.sn is exist - process it [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 11 00 00 [09:31:16]Write to MH i2c: E2 08 00 77 49 80 11 00 00 00 00 00 00 3A [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 17 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 17 00 77 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [09:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:16]wFMCommunicate OK [09:31:16]requested_item fd.num is exist - process it [09:31:16]SAM_PROTO_GetFieldsCounters [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 13 00 00 [09:31:16]Write to MH i2c: E2 08 00 78 49 80 13 00 00 00 00 00 00 3D [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 62 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 62 00 78 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 11 01 00 0E 04 04 00 C3 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 15 [09:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 11 01 00 0E 04 04 00 C3 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 [09:31:16]wFMCommunicate OK [09:31:16]SAM_PROTO_GetFieldsCounters done [09:31:16]requested_item shift.num is exist - process it [09:31:16]requested_item shift.opened is exist - process it [09:31:16]req_shift_opened [09:31:16]FM_GetShiftState [09:31:16]SAM_PROTO_GetShiftState [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 13 01 00 [09:31:16]Write to MH i2c: E2 08 00 79 49 80 13 01 00 00 00 00 00 3F [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 0E 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 0E 00 79 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2D [09:31:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:31:16]wFMCommunicate OK [09:31:16]SAM_PROTO_GetShiftState done [09:31:16]FM_GetShiftState done [09:31:16]req_shift_opened done [09:31:16]requested_item shift.open_date is exist - process it [09:31:16]req_shift_open_date [09:31:16]req_shift_open_date done [09:31:16]produce_requested_data done [09:31:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70133,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:31:16]process_action_free close_receipt [09:31:16]json_value_free [09:31:16]json_value_free done [09:31:16]process_json_proto returns [09:31:16]Send response to host [09:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70133,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:31:16]free response buf [09:31:16]execute_script done [09:31:16]execute_script returns [09:31:16]free content buf [09:31:16]Sock 9.Close socket [09:31:16]Sock 9.Thread stoped [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:19]accept exits with 7 [09:32:19]New connection [09:32:19]New thread 3067026788 created [09:32:19]Thread 3067170148 joined [09:32:19]Waiting for new connection... [09:32:19] Sock 7.Parse request [09:32:19]Sock 7.Check first char [09:32:19]Sock 7.First char is OK [09:32:19]request: POST /json_proto HTTP/1.0 [09:32:19]Method: POST [09:32:19]URL: /json_proto [09:32:19]Method is POST - this is cgi request [09:32:19]url: /json_proto [09:32:19]query_string will be loaded in cgi processing [09:32:19]execute_cgi json_proto POST (null) [09:32:19]execute_cgi path=json_proto method=POST [09:32:19]POST find Content-Length [09:32:19]Host: 172.17.50.3:8080 [09:32:19]Content-Length: 755 [09:32:19]Content-Type: application/json [09:32:19] [09:32:19]POST finish read [09:32:19]Found Content-Length = 755 [09:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u000A30138186", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]execute_script... [09:32: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)2885900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u000A30138186", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]POST & json_proto [09:32:19]process_json_proto [09:32:19]json parsed OK: [09:32:19]protocol is kg_v1.0 [09:32:19]action value=close_receipt [09:32:19]process_action close_receipt [09:32:19]cmd_close_receipt [09:32:19]MH_GetDate [09:32:19]Write to MH i2c: F0 00 00 7A 49 B2 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 7A 49 00 27 71 17 67 6B 98 1E 66 58 [09:32:19]GetLastDocTimeStamp 1729589477 [09:32:19]current date 1729589543 [09:32:19]FM_GetShiftState [09:32:19]SAM_PROTO_GetShiftState [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 01 00 [09:32:19]Write to MH i2c: E2 08 00 7B 49 80 13 01 00 00 00 00 00 41 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 7B 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2F [09:32:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetShiftState done [09:32:19]FM_GetShiftState done [09:32:19]opened in 1729555832 [09:32:19]opened+sec_in_day 1729642232 [09:32:19]quantity*price = 0 [09:32:19]sum+1 = 1 [09:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 82 22.10.2024 09:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138186 ФМ: 0000000000963346 ФД: 70134 ФПД: 251240217899153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70134&fm=251240217899153&tin=02508201610067®Number=0000000000156251&sum=0 [09:32:20]StoreToDocumentArchive [09:32:20]shift 195 fd 70134 [09:32:20]save to /storage/0195/doc_00070134 [09:32:20]save last doc name /storage/0195/doc_00070134 to /storage/kkm_last_doc_name [09:32:20]save OK [09:32:20]Clear old archive folders... [09:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:20]tlvbuf is 01142A00 [09:32:20]SAM_PROTO_ClearQueue [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 09 00 00 [09:32:20]Write to MH i2c: E2 08 00 88 49 80 09 00 00 00 00 00 00 43 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 88 49 00 90 00 45 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_ClearQueue done [09:32:20]KKMCreateOFDPacket [09:32:20]OFDProtocolAddRootSTLVToBuf [09:32:20]FM_MakeSignedData [09:32:20]FM_MakeSignedData [09:32:20]SAM_PROTO_SignData [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 01 02 [09:32:20]Write to MH i2c: E2 08 00 89 49 80 0D 01 02 00 00 00 00 4B [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 89 49 00 90 00 46 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=255 [09:32:20]MH_SAM_APDU [09:32:20]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 52 00 00 00 F4 03 04 00 28 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 11 01 00 35 04 06 00 E4 [09:32:20]Write to MH i2c: E2 02 01 8A 49 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 52 00 00 00 F4 03 04 00 28 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 11 01 00 35 04 06 00 E4 00 00 D5 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 8A 49 00 90 00 47 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=10 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 02 02 05 80 6B F0 F0 91 [09:32:20]Write to MH i2c: E2 0D 00 8B 49 80 0D 02 02 05 00 80 6B F0 F0 91 00 00 B4 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 8B 49 00 90 00 48 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 03 02 [09:32:20]Write to MH i2c: E2 08 00 8C 49 80 0D 03 02 00 00 00 00 50 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0B 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0B 00 8C 49 00 A8 38 E2 A5 88 54 A9 C0 90 00 FD [09:32:20]RAPDU: A8 38 E2 A5 88 54 A9 C0 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_SignData done [09:32:20]FM_MakeSignedData done [09:32:20]CreateOFDProtocolMessage [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 11 00 00 [09:32:20]Write to MH i2c: E2 08 00 8D 49 80 11 00 00 00 00 00 00 50 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 17 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 17 00 8D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [09:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:32:20]wFMCommunicate OK [09:32:20]CreateOFDProtocolMessage done [09:32:20]OFDSenderStorePacket 70134 [09:32:20]StoreOFDPacket docnum=70134 [09:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 51 A3 07 01 FA 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 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 52 00 00 00 F4 03 04 00 28 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 11 01 00 35 04 06 00 E4 80 6B F0 F0 91 A8 38 E2 A5 88 54 A9 C0 [09:32:20]CheckFolder [09:32:20]dirname=/storage/ofd_packets [09:32:20]CheckFolder done [09:32:20]ProducePacketName [09:32:20]name=ofd_packets/00070134 [09:32:20]NVStorageSaveData ofd_packets/00070134 [09:32:20]File name is /storage/ofd_packets/00070134 [09:32:20]Write 301 bytes [09:32:20]NVStorageSaveData done [09:32:20]OFDSenderStorePacket done [09:32:20]KKMCreateOFDPacket done [09:32:20]NVStorageSaveData kkm_last_timestamp [09:32:20]File name is /storage/kkm_last_timestamp [09:32:20]Write 4 bytes [09:32:20]NVStorageSaveData done [09:32:20]ExternCall_PrintAddStr [09:32:20]wPrintStart [09:32:20]Write to MH i2c: 01 00 00 8E 49 D7 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 8E 49 00 00 00 00 00 FF 0F EC [09:32:20]RasterBufferAndPrint [09:32:20]line Счет N : (1)2885900 [09:32:20]line ИНН: 02508201610067 [09:32:20]line Контрольно-Кассовый Чек [09:32:20]line ПРОДАЖА [09:32:20]line ТРК (МРК, ГНК) : 32 [09:32:20]line Товар: 2710124130 [09:32:20]line Аи-92-К-5 [09:32:20]line 20.000 * 0.00 [09:32:20]line = 0.00 [09:32:20]line НДС 12% НСП 1% [09:32:20]line > о реализуемом товаре [09:32:20]line ИТОГО: 0.00 [09:32:20]line НСП 1% : 0.00 [09:32:20]line НДС 12% : 0.00 [09:32:20]line Наличными: 0.00 [09:32:20]line Безнал.: 0.00 [09:32:20]line Место: АЗС № 85 "Партнер Нефть" [09:32:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:32:20]line СНО: Общий режим [09:32:20]line Чек 82 22.10.2024 09:32 [09:32:20]line Смена: 195 ФФД: 1.0 [09:32:20]line ЗНМ: 0300000167 [09:32:20]line РНМ: 0000000000156251 [09:32:20]line Версия ККМ: v1.0 [09:32:20]line Талоны: ТК ГПНА Online [09:32:20]line 30138186 [09:32:20]line ФМ: 0000000000963346 [09:32:20]line ФД: 70134 [09:32:20]line ФПД: 251240217899153 [09:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70134&fm=251240217899153&tin=02508201610067®Number=0000000000156251&sum=0 [09:32:21]OFD Sender: Processing packet 70134 [packets to send 18, broken 17] [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00070134 [09:32:21]OFD Sender: To server: pG, [09:32:21]CommunicateWithHost lk.salyk.kg:30040 [09:32:21]ConnectInit lk.salyk.kg [09:32:21]written 0, free lines is 4095 [09:32:21]Connected sock=10 [09:32: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 34 36 0F 01 00 00 51 A3 07 01 FA 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 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 52 00 00 00 F4 03 04 00 28 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 11 01 00 35 04 06 00 E4 80 6B F0 F0 91 A8 38 E2 A5 88 54 A9 C0 [09:32: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 34 36 4F 00 00 00 86 09 47 00 63 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 34 36 10 04 04 00 F6 11 01 00 F4 03 04 00 C9 1A 17 67 B6 04 01 00 00 11 5A 47 8E BA 2A A2 64 [09:32:21]CommunicateWithHost err = 0 [09:32:21]CheckOFDResponse [09:32:21]1017 (14) - 77093643461234 [09:32:21]1041 (16) - 0000000000963346 [09:32:21]1040 (4) - 70134 [09:32:21]1012 (4) - 22.10.2024 03:23 [09:32:21]1206 (1) - 0 [09:32:21]OFD Sender: Remove packet 70134 [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00070134 [09:32:21]NVStorageDeleteData [09:32:21]Write to MH i2c: 01 00 00 B8 49 01 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 B8 49 00 00 00 00 00 F7 0C 0B [09:32:21]RasterBufferAndPrint [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]written 0, free lines is 3325 [09:32:21]MH_Cut [09:32:21]Write to MH i2c: D1 01 00 BF 49 01 DA [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 01 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 01 00 BF 49 00 D9 [09:32:21]Write to MH i2c: 01 00 00 C0 49 09 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:22]OFD Sender: No OFD packet to send [09:32:22]*** Cut start [09:32:22]*** Partial cut [09:32:22]*** CUTSNS_PIN = 1 [09:32:22]*** CUTSNS_PIN = 0 [09:32:22]*** Brake cut motor [09:32:23]Read from MH i2c: 01 [09:32:23]MH_I2C_Read... [09:32:23]*** Stop cut motor [09:32:23]*** Cut end [09:32:23]Read from MH i2c: 01 07 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 07 00 C0 49 00 00 00 00 00 FF 0F 1E [09:32:23]process_action close_receipt done [09:32:23]requested_data is exist [09:32:23]produce_requested_data [09:32:23]requested_item fm.sn is exist - process it [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 11 00 00 [09:32:23]Write to MH i2c: E2 08 00 C1 49 80 11 00 00 00 00 00 00 84 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 C1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [09:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:32:23]wFMCommunicate OK [09:32:23]requested_item fd.num is exist - process it [09:32:23]SAM_PROTO_GetFieldsCounters [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 00 00 [09:32:23]Write to MH i2c: E2 08 00 C2 49 80 13 00 00 00 00 00 00 87 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 C2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 11 01 00 0E 04 04 00 C3 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 63 [09:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 11 01 00 0E 04 04 00 C3 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 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetFieldsCounters done [09:32:23]requested_item shift.num is exist - process it [09:32:23]requested_item shift.opened is exist - process it [09:32:23]req_shift_opened [09:32:23]FM_GetShiftState [09:32:23]SAM_PROTO_GetShiftState [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 01 00 [09:32:23]Write to MH i2c: E2 08 00 C3 49 80 13 01 00 00 00 00 00 89 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 0E 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 0E 00 C3 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [09:32:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetShiftState done [09:32:23]FM_GetShiftState done [09:32:23]req_shift_opened done [09:32:23]requested_item shift.open_date is exist - process it [09:32:23]req_shift_open_date [09:32:23]req_shift_open_date done [09:32:23]produce_requested_data done [09:32:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70134,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:32:23]process_action_free close_receipt [09:32:23]json_value_free [09:32:23]json_value_free done [09:32:23]process_json_proto returns [09:32:23]Send response to host [09:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70134,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:32:23]free response buf [09:32:23]execute_script done [09:32:23]execute_script returns [09:32:23]free content buf [09:32:23]Sock 7.Close socket [09:32:23]Sock 7.Thread stoped [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:11]accept exits with 9 [09:33:11]New connection [09:33:11]New thread 3067170148 created [09:33:11]Thread 3067026788 joined [09:33:11]Waiting for new connection... [09:33:11] Sock 9.Parse request [09:33:11]Sock 9.Check first char [09:33:11]Sock 9.First char is OK [09:33:11]request: POST /json_proto HTTP/1.0 [09:33:11]Method: POST [09:33:11]URL: /json_proto [09:33:11]Method is POST - this is cgi request [09:33:11]url: /json_proto [09:33:11]query_string will be loaded in cgi processing [09:33:11]execute_cgi json_proto POST (null) [09:33:11]execute_cgi path=json_proto method=POST [09:33:11]POST find Content-Length [09:33:11]Host: 172.17.50.3:8080 [09:33:11]Content-Length: 755 [09:33:11]Content-Type: application/json [09:33:11] [09:33:11]POST finish read [09:33:11]Found Content-Length = 755 [09:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.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\u000A30069787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:11]execute_script... [09: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)2885901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.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\u000A30069787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:11]POST & json_proto [09:33:11]process_json_proto [09:33:11]json parsed OK: [09:33:11]protocol is kg_v1.0 [09:33:11]action value=close_receipt [09:33:11]process_action close_receipt [09:33:11]cmd_close_receipt [09:33:11]MH_GetDate [09:33:11]Write to MH i2c: F0 00 00 C4 49 FC [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: F0 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: F0 09 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: F0 09 00 C4 49 00 5B 71 17 67 6B 98 1E 66 D6 [09:33:11]GetLastDocTimeStamp 1729589544 [09:33:11]current date 1729589595 [09:33:11]FM_GetShiftState [09:33:11]SAM_PROTO_GetShiftState [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 13 01 00 [09:33:11]Write to MH i2c: E2 08 00 C5 49 80 13 01 00 00 00 00 00 8B [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0E 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0E 00 C5 49 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 79 [09:33:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:33:11]wFMCommunicate OK [09:33:11]SAM_PROTO_GetShiftState done [09:33:11]FM_GetShiftState done [09:33:11]opened in 1729555832 [09:33:11]opened+sec_in_day 1729642232 [09:33:11]quantity*price = 0 [09:33:11]sum+1 = 1 [09:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 83 22.10.2024 09:33 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30069787 ФМ: 0000000000963346 ФД: 70135 ФПД: 275644974098639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70135&fm=275644974098639&tin=02508201610067®Number=0000000000156251&sum=0 [09:33:12]StoreToDocumentArchive [09:33:12]shift 195 fd 70135 [09:33:12]save to /storage/0195/doc_00070135 [09:33:12]save last doc name /storage/0195/doc_00070135 to /storage/kkm_last_doc_name [09:33:12]save OK [09:33:12]Clear old archive folders... [09:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:12]tlvbuf is B6F0F930 [09:33:12]SAM_PROTO_ClearQueue [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 09 00 00 [09:33:12]Write to MH i2c: E2 08 00 D2 49 80 09 00 00 00 00 00 00 8D [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 D2 49 00 90 00 8F [09:33:12]RAPDU: 90 00 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_ClearQueue done [09:33:12]KKMCreateOFDPacket [09:33:12]OFDProtocolAddRootSTLVToBuf [09:33:12]FM_MakeSignedData [09:33:12]FM_MakeSignedData [09:33:12]SAM_PROTO_SignData [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 0D 01 02 [09:33:12]Write to MH i2c: E2 08 00 D3 49 80 0D 01 02 00 00 00 00 95 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 D3 49 00 90 00 90 [09:33:12]RAPDU: 90 00 [09:33:12]wFMCommunicate OK [09:33:12]wFMCommunicate request_size=255 [09:33:12]MH_SAM_APDU [09: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 B8 88 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 53 00 00 00 F4 03 04 00 5B 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 11 01 00 35 04 06 00 FA [09:33:12]Write to MH i2c: E2 02 01 D4 49 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 88 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 53 00 00 00 F4 03 04 00 5B 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 11 01 00 35 04 06 00 FA 00 00 3C [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 D4 49 00 90 00 91 [09:33:12]RAPDU: 90 00 [09:33:12]wFMCommunicate OK [09:33:12]wFMCommunicate request_size=10 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 0D 02 02 05 B2 98 C3 E8 CF [09:33:12]Write to MH i2c: E2 0D 00 D5 49 80 0D 02 02 05 00 B2 98 C3 E8 CF 00 00 66 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 03 00 D5 49 00 90 00 92 [09:33:12]RAPDU: 90 00 [09:33:12]wFMCommunicate OK [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 0D 03 02 [09:33:12]Write to MH i2c: E2 08 00 D6 49 80 0D 03 02 00 00 00 00 9A [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0B 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0B 00 D6 49 00 CD 88 6D BF 4F 71 47 4C 90 00 6F [09:33:12]RAPDU: CD 88 6D BF 4F 71 47 4C 90 00 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_SignData done [09:33:12]FM_MakeSignedData done [09:33:12]CreateOFDProtocolMessage [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 11 00 00 [09:33:12]Write to MH i2c: E2 08 00 D7 49 80 11 00 00 00 00 00 00 9A [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 D7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [09:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:33:12]wFMCommunicate OK [09:33:12]CreateOFDProtocolMessage done [09:33:12]OFDSenderStorePacket 70135 [09:33:12]StoreOFDPacket docnum=70135 [09:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 93 07 01 79 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 B8 88 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 53 00 00 00 F4 03 04 00 5B 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 11 01 00 35 04 06 00 FA B2 98 C3 E8 CF CD 88 6D BF 4F 71 47 4C [09:33:12]CheckFolder [09:33:12]dirname=/storage/ofd_packets [09:33:12]CheckFolder done [09:33:12]ProducePacketName [09:33:12]name=ofd_packets/00070135 [09:33:12]NVStorageSaveData ofd_packets/00070135 [09:33:12]File name is /storage/ofd_packets/00070135 [09:33:12]Write 301 bytes [09:33:12]NVStorageSaveData done [09:33:12]OFDSenderStorePacket done [09:33:12]KKMCreateOFDPacket done [09:33:12]NVStorageSaveData kkm_last_timestamp [09:33:12]File name is /storage/kkm_last_timestamp [09:33:12]Write 4 bytes [09:33:12]NVStorageSaveData done [09:33:12]ExternCall_PrintAddStr [09:33:12]wPrintStart [09:33:12]Write to MH i2c: 01 00 00 D8 49 21 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 D8 49 00 00 00 00 00 FF 0F 36 [09:33:12]RasterBufferAndPrint [09:33:12]line Счет N : (1)2885901 [09:33:12]line ИНН: 02508201610067 [09:33:12]line Контрольно-Кассовый Чек [09:33:12]line ПРОДАЖА [09:33:12]line ТРК (МРК, ГНК) : 42 [09:33:12]line Товар: 2710124130 [09:33:12]line Аи-92-К-5 [09:33:12]line 35.000 * 0.00 [09:33:12]line = 0.00 [09:33:12]line НДС 12% НСП 1% [09:33:12]line > о реализуемом товаре [09:33:12]line ИТОГО: 0.00 [09:33:12]line НСП 1% : 0.00 [09:33:12]line НДС 12% : 0.00 [09:33:12]line Наличными: 0.00 [09:33:12]line Безнал.: 0.00 [09:33:12]line Место: АЗС № 85 "Партнер Нефть" [09:33:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:33:12]line СНО: Общий режим [09:33:12]line Чек 83 22.10.2024 09:33 [09:33:12]line Смена: 195 ФФД: 1.0 [09:33:12]line ЗНМ: 0300000167 [09:33:12]line РНМ: 0000000000156251 [09:33:12]line Версия ККМ: v1.0 [09:33:12]line Талоны: ТК ГПНА Online [09:33:12]line 30069787 [09:33:12]line ФМ: 0000000000963346 [09:33:12]line ФД: 70135 [09:33:12]line ФПД: 275644974098639 [09:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70135&fm=275644974098639&tin=02508201610067®Number=0000000000156251&sum=0 [09:33:13]OFD Sender: Processing packet 70135 [packets to send 18, broken 17] [09:33:13]ProducePacketName [09:33:13]name=ofd_packets/00070135 [09:33:13]OFD Sender: To server: pG, [09:33:13]CommunicateWithHost lk.salyk.kg:30040 [09:33:13]ConnectInit lk.salyk.kg [09:33:13]written 0, free lines is 4095 [09:33:13]Connected sock=10 [09: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 34 36 0F 01 00 00 4C 93 07 01 79 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 B8 88 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 53 00 00 00 F4 03 04 00 5B 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 11 01 00 35 04 06 00 FA B2 98 C3 E8 CF CD 88 6D BF 4F 71 47 4C [09: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 34 36 4F 00 00 00 3C E0 47 00 74 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 34 36 10 04 04 00 F7 11 01 00 F4 03 04 00 FC 1A 17 67 B6 04 01 00 00 F3 69 74 CB 4E 6A 9B DA [09:33:13]CommunicateWithHost err = 0 [09:33:13]CheckOFDResponse [09:33:13]1017 (14) - 77093643461234 [09:33:13]1041 (16) - 0000000000963346 [09:33:13]1040 (4) - 70135 [09:33:13]1012 (4) - 22.10.2024 03:24 [09:33:13]1206 (1) - 0 [09:33:13]OFD Sender: Remove packet 70135 [09:33:13]ProducePacketName [09:33:13]name=ofd_packets/00070135 [09:33:13]NVStorageDeleteData [09:33:13]Write to MH i2c: 01 00 00 02 4A 4C [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: 01 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: 01 07 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: 01 07 00 02 4A 00 00 00 00 00 F6 0C 55 [09:33:13]RasterBufferAndPrint [09:33:13]line [09:33:13]line [09:33:13]line [09:33:13]line [09:33:13]line [09:33:13]written 0, free lines is 3324 [09:33:13]MH_Cut [09:33:13]Write to MH i2c: D1 01 00 09 4A 01 25 [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: D1 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: D1 01 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: D1 01 00 09 4A 00 24 [09:33:13]Write to MH i2c: 01 00 00 0A 4A 54 [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]OFD Sender: No OFD packet to send [09:33:14]*** Cut start [09:33:14]*** Partial cut [09:33:14]*** CUTSNS_PIN = 1 [09:33:14]*** CUTSNS_PIN = 0 [09:33:14]*** Brake cut motor [09:33:14]Read from MH i2c: 01 [09:33:14]MH_I2C_Read... [09:33:14]*** Stop cut motor [09:33:14]*** Cut end [09:33:14]Read from MH i2c: 01 07 00 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: 01 07 00 0A 4A 00 00 00 00 00 FF 0F 69 [09:33:14]process_action close_receipt done [09:33:14]requested_data is exist [09:33:14]produce_requested_data [09:33:14]requested_item fm.sn is exist - process it [09:33:14]wFMCommunicate request_size=4 [09:33:14]MH_SAM_APDU [09:33:14]CAPDU: 80 11 00 00 [09:33:14]Write to MH i2c: E2 08 00 0B 4A 80 11 00 00 00 00 00 00 CF [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:14]Read from MH i2c: E2 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 17 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 17 00 0B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [09:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:33:15]wFMCommunicate OK [09:33:15]requested_item fd.num is exist - process it [09:33:15]SAM_PROTO_GetFieldsCounters [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 13 00 00 [09:33:15]Write to MH i2c: E2 08 00 0C 4A 80 13 00 00 00 00 00 00 D2 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 62 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 62 00 0C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 11 01 00 0E 04 04 00 C3 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 B2 [09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 11 01 00 0E 04 04 00 C3 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 [09:33:15]wFMCommunicate OK [09:33:15]SAM_PROTO_GetFieldsCounters done [09:33:15]requested_item shift.num is exist - process it [09:33:15]requested_item shift.opened is exist - process it [09:33:15]req_shift_opened [09:33:15]FM_GetShiftState [09:33:15]SAM_PROTO_GetShiftState [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 13 01 00 [09:33:15]Write to MH i2c: E2 08 00 0D 4A 80 13 01 00 00 00 00 00 D4 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 0E 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 0E 00 0D 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [09:33:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:33:15]wFMCommunicate OK [09:33:15]SAM_PROTO_GetShiftState done [09:33:15]FM_GetShiftState done [09:33:15]req_shift_opened done [09:33:15]requested_item shift.open_date is exist - process it [09:33:15]req_shift_open_date [09:33:15]req_shift_open_date done [09:33:15]produce_requested_data done [09:33:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70135,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:33:15]process_action_free close_receipt [09:33:15]json_value_free [09:33:15]json_value_free done [09:33:15]process_json_proto returns [09:33:15]Send response to host [09:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70135,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:33:15]free response buf [09:33:15]execute_script done [09:33:15]execute_script returns [09:33:15]free content buf [09:33:15]Sock 9.Close socket [09:33:15]Sock 9.Thread stoped [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:07]accept exits with 7 [09:34:07]New connection [09:34:07]New thread 3067026788 created [09:34:07]Thread 3067170148 joined [09:34:07]Waiting for new connection... [09:34:07] Sock 7.Parse request [09:34:07]Sock 7.Check first char [09:34:07]Sock 7.First char is OK [09:34:07]request: POST /json_proto HTTP/1.0 [09:34:07]Method: POST [09:34:07]URL: /json_proto [09:34:07]Method is POST - this is cgi request [09:34:07]url: /json_proto [09:34:07]query_string will be loaded in cgi processing [09:34:07]execute_cgi json_proto POST (null) [09:34:07]execute_cgi path=json_proto method=POST [09:34:07]POST find Content-Length [09:34:07]Host: 172.17.50.3:8080 [09:34:07]Content-Length: 683 [09:34:07]Content-Type: application/json [09:34:07] [09:34:07]POST finish read [09:34:07]Found Content-Length = 683 [09:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [09:34:07]execute_script... [09: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)2885902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [09:34:07]POST & json_proto [09:34:07]process_json_proto [09:34:07]json parsed OK: [09:34:07]protocol is kg_v1.0 [09:34:07]action value=close_receipt [09:34:07]process_action close_receipt [09:34:07]cmd_close_receipt [09:34:07]MH_GetDate [09:34:07]Write to MH i2c: F0 00 00 0E 4A 47 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 09 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 09 00 0E 4A 00 93 71 17 67 6B 98 1E 66 59 [09:34:07]GetLastDocTimeStamp 1729589595 [09:34:07]current date 1729589651 [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 0F 4A 80 13 01 00 00 00 00 00 D6 [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 0F 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C4 [09:34:07]RAPDU: 09 00 01 78 ED 16 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]opened in 1729555832 [09:34:07]opened+sec_in_day 1729642232 [09:34:07]quantity*price = 100021 [09:34:07]sum+1 = 100023 [09:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 84 22.10.2024 09:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70136 ФПД: 249355655785551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70136&fm=249355655785551&tin=02508201610067®Number=0000000000156251&sum=100000 [09:34:08]StoreToDocumentArchive [09:34:08]shift 195 fd 70136 [09:34:08]save to /storage/0195/doc_00070136 [09:34:08]save last doc name /storage/0195/doc_00070136 to /storage/kkm_last_doc_name [09:34:08]save OK [09:34:08]Clear old archive folders... [09:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:08]tlvbuf is 0110BB00 [09:34:08]SAM_PROTO_ClearQueue [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 09 00 00 [09:34:08]Write to MH i2c: E2 08 00 1C 4A 80 09 00 00 00 00 00 00 D8 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 1C 4A 00 90 00 DA [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]SAM_PROTO_ClearQueue done [09:34:08]KKMCreateOFDPacket [09:34:08]OFDProtocolAddRootSTLVToBuf [09:34:08]FM_MakeSignedData [09:34:08]FM_MakeSignedData [09:34:08]SAM_PROTO_SignData [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 01 02 [09:34:08]Write to MH i2c: E2 08 00 1D 4A 80 0D 01 02 00 00 00 00 E0 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 1D 4A 00 90 00 DB [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=255 [09:34:08]MH_SAM_APDU [09: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 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 54 00 00 00 F4 03 04 00 93 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 11 01 00 35 04 06 00 E2 [09:34:08]Write to MH i2c: E2 02 01 1E 4A 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 54 00 00 00 F4 03 04 00 93 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 11 01 00 35 04 06 00 E2 00 00 0B [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 1E 4A 00 90 00 DC [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=10 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 02 02 05 C9 A3 49 2C 4F [09:34:08]Write to MH i2c: E2 0D 00 1F 4A 80 0D 02 02 05 00 C9 A3 49 2C 4F 00 00 1D [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 1F 4A 00 90 00 DD [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 03 02 [09:34:08]Write to MH i2c: E2 08 00 20 4A 80 0D 03 02 00 00 00 00 E5 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 0B 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 0B 00 20 4A 00 D1 54 64 C4 EB C7 E1 46 90 00 0C [09:34:08]RAPDU: D1 54 64 C4 EB C7 E1 46 90 00 [09:34:08]wFMCommunicate OK [09:34:08]SAM_PROTO_SignData done [09:34:08]FM_MakeSignedData done [09:34:08]CreateOFDProtocolMessage [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 11 00 00 [09:34:08]Write to MH i2c: E2 08 00 21 4A 80 11 00 00 00 00 00 00 E5 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 17 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 17 00 21 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [09:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:08]wFMCommunicate OK [09:34:08]CreateOFDProtocolMessage done [09:34:08]OFDSenderStorePacket 70136 [09:34:08]StoreOFDPacket docnum=70136 [09:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AC 54 07 01 56 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 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 54 00 00 00 F4 03 04 00 93 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 11 01 00 35 04 06 00 E2 C9 A3 49 2C 4F D1 54 64 C4 EB C7 E1 46 [09:34:08]CheckFolder [09:34:08]dirname=/storage/ofd_packets [09:34:08]CheckFolder done [09:34:08]ProducePacketName [09:34:08]name=ofd_packets/00070136 [09:34:08]NVStorageSaveData ofd_packets/00070136 [09:34:08]File name is /storage/ofd_packets/00070136 [09:34:08]Write 301 bytes [09:34:08]NVStorageSaveData done [09:34:08]OFDSenderStorePacket done [09:34:08]KKMCreateOFDPacket done [09:34:08]NVStorageSaveData kkm_last_timestamp [09:34:08]File name is /storage/kkm_last_timestamp [09:34:08]Write 4 bytes [09:34:08]NVStorageSaveData done [09:34:08]ExternCall_PrintAddStr [09:34:08]wPrintStart [09:34:08]Write to MH i2c: 01 00 00 22 4A 6C [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 22 4A 00 00 00 00 00 FF 0F 81 [09:34:08]RasterBufferAndPrint [09:34:08]line Счет N : (1)2885902 [09:34:08]line ИНН: 02508201610067 [09:34:08]line Контрольно-Кассовый Чек [09:34:08]line ПРОДАЖА [09:34:08]line ТРК (МРК, ГНК) : 13 [09:34:08]line Товар: 2710124500 [09:34:08]line Аи-95-К-5 [09:34:08]line 13.480 * 74.20 [09:34:08]line = 1000.22 [09:34:08]line НДС 12% НСП 1% [09:34:08]line > о реализуемом товаре [09:34:08]line ОКРУГЛЕНИЕ: -0.22 [09:34:08]line ИТОГО: 1000.00 [09:34:08]line Внесено: 1000.00 [09:34:08]line СДАЧА: 0.00 [09:34:08]line НСП 1% : 8.85 [09:34:08]line НДС 12% : 106.22 [09:34:08]line Наличными: 1000.00 [09:34:08]line Безнал.: 0.00 [09:34:08]line Место: АЗС № 85 "Партнер Нефть" [09:34:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:34:08]line СНО: Общий режим [09:34:08]line Чек 84 22.10.2024 09:34 [09:34:08]line Смена: 195 ФФД: 1.0 [09:34:08]line ЗНМ: 0300000167 [09:34:08]line РНМ: 0000000000156251 [09:34:08]line Версия ККМ: v1.0 [09:34:08]line ФМ: 0000000000963346 [09:34:08]line ФД: 70136 [09:34:08]line ФПД: 249355655785551 [09:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70136&fm=249355655785551&tin=02508201610067®Number=0000000000156251&sum=100000 [09:34:09]OFD Sender: Processing packet 70136 [packets to send 18, broken 17] [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00070136 [09:34:09]OFD Sender: To server: pG, [09:34:09]CommunicateWithHost lk.salyk.kg:30040 [09:34:09]ConnectInit lk.salyk.kg [09:34:09]written 0, free lines is 4095 [09:34:09]Connected sock=10 [09: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 34 36 0F 01 00 00 AC 54 07 01 56 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 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 54 00 00 00 F4 03 04 00 93 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 11 01 00 35 04 06 00 E2 C9 A3 49 2C 4F D1 54 64 C4 EB C7 E1 46 [09: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 34 36 4F 00 00 00 D2 7A 47 00 24 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 34 36 10 04 04 00 F8 11 01 00 F4 03 04 00 35 1B 17 67 B6 04 01 00 00 AB 9D 82 B4 17 D0 5E 03 [09:34:09]CommunicateWithHost err = 0 [09:34:09]CheckOFDResponse [09:34:09]1017 (14) - 77093643461234 [09:34:09]1041 (16) - 0000000000963346 [09:34:09]1040 (4) - 70136 [09:34:09]1012 (4) - 22.10.2024 03:25 [09:34:09]1206 (1) - 0 [09:34:09]OFD Sender: Remove packet 70136 [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00070136 [09:34:09]NVStorageDeleteData [09:34:09]Write to MH i2c: 01 00 00 4D 4A 97 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 4D 4A 00 00 00 00 00 F0 0C 9A [09:34:09]RasterBufferAndPrint [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]written 0, free lines is 3318 [09:34:09]MH_Cut [09:34:09]Write to MH i2c: D1 01 00 54 4A 01 70 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 01 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 01 00 54 4A 00 6F [09:34:09]Write to MH i2c: 01 00 00 55 4A 9F [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:10]OFD Sender: No OFD packet to send [09:34:10]*** Cut start [09:34:10]*** Partial cut [09:34:10]*** CUTSNS_PIN = 1 [09:34:10]*** CUTSNS_PIN = 0 [09:34:10]*** Brake cut motor [09:34:10]Read from MH i2c: 01 [09:34:10]MH_I2C_Read... [09:34:10]*** Stop cut motor [09:34:11]*** Cut end [09:34:11]Read from MH i2c: 01 07 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: 01 07 00 55 4A 00 00 00 00 00 FF 0F B4 [09:34:11]process_action close_receipt done [09:34:11]requested_data is exist [09:34:11]produce_requested_data [09:34:11]requested_item fm.sn is exist - process it [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 11 00 00 [09:34:11]Write to MH i2c: E2 08 00 56 4A 80 11 00 00 00 00 00 00 1A [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 56 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [09:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:11]wFMCommunicate OK [09:34:11]requested_item fd.num is exist - process it [09:34:11]SAM_PROTO_GetFieldsCounters [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 00 00 [09:34:11]Write to MH i2c: E2 08 00 57 4A 80 13 00 00 00 00 00 00 1D [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 57 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 11 01 00 0E 04 04 00 C3 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 01 [09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 11 01 00 0E 04 04 00 C3 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 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetFieldsCounters done [09:34:11]requested_item shift.num is exist - process it [09:34:11]requested_item shift.opened is exist - process it [09:34:11]req_shift_opened [09:34:11]FM_GetShiftState [09:34:11]SAM_PROTO_GetShiftState [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 01 00 [09:34:11]Write to MH i2c: E2 08 00 58 4A 80 13 01 00 00 00 00 00 1F [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 58 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0D [09:34:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetShiftState done [09:34:11]FM_GetShiftState done [09:34:11]req_shift_opened done [09:34:11]requested_item shift.open_date is exist - process it [09:34:11]req_shift_open_date [09:34:11]req_shift_open_date done [09:34:11]produce_requested_data done [09:34:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70136,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:34:11]process_action_free close_receipt [09:34:11]json_value_free [09:34:11]json_value_free done [09:34:11]process_json_proto returns [09:34:11]Send response to host [09:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70136,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:34:11]free response buf [09:34:11]execute_script done [09:34:11]execute_script returns [09:34:11]free content buf [09:34:11]Sock 7.Close socket [09:34:11]Sock 7.Thread stoped [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:33]accept exits with 9 [09:35:33]New connection [09:35:33]New thread 3067170148 created [09:35:33]Thread 3067026788 joined [09:35:33]Waiting for new connection... [09:35:33] Sock 9.Parse request [09:35:33]Sock 9.Check first char [09:35:33]Sock 9.First char is OK [09:35:33]request: POST /json_proto HTTP/1.0 [09:35:33]Method: POST [09:35:33]URL: /json_proto [09:35:33]Method is POST - this is cgi request [09:35:33]url: /json_proto [09:35:33]query_string will be loaded in cgi processing [09:35:33]execute_cgi json_proto POST (null) [09:35:33]execute_cgi path=json_proto method=POST [09:35:33]POST find Content-Length [09:35:33]Host: 172.17.50.3:8080 [09:35:33]Content-Length: 678 [09:35:33]Content-Type: application/json [09:35:33] [09:35:33]POST finish read [09:35:33]Found Content-Length = 678 [09:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:35:33]execute_script... [09:35: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)2885904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:35:33]POST & json_proto [09:35:33]process_json_proto [09:35:33]json parsed OK: [09:35:33]protocol is kg_v1.0 [09:35:33]action value=close_receipt [09:35:33]process_action close_receipt [09:35:33]cmd_close_receipt [09:35:33]MH_GetDate [09:35:33]Write to MH i2c: F0 00 00 59 4A 92 [09:35:33]Write i2c OK [09:35:33]MH_I2C_Read... [09:35:33]Read from MH i2c: F0 [09:35:33]MH_I2C_Read... [09:35:33]Read from MH i2c: F0 09 00 [09:35:33]MH_I2C_Read... [09:35:33]Read from MH i2c: F0 09 00 59 4A 00 EA 71 17 67 6B 98 1E 66 FB [09:35:33]GetLastDocTimeStamp 1729589651 [09:35:33]current date 1729589738 [09:35:33]FM_GetShiftState [09:35:33]SAM_PROTO_GetShiftState [09:35:33]wFMCommunicate request_size=4 [09:35:33]MH_SAM_APDU [09:35:33]CAPDU: 80 13 01 00 [09:35:33]Write to MH i2c: E2 08 00 5A 4A 80 13 01 00 00 00 00 00 21 [09:35:33]Write i2c OK [09:35:33]MH_I2C_Read... [09:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:33]Read from MH i2c: E2 [09:35:33]MH_I2C_Read... [09:35:33]Read from MH i2c: E2 0E 00 [09:35:33]MH_I2C_Read... [09:35:33]Read from MH i2c: E2 0E 00 5A 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0F [09:35:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:35:33]wFMCommunicate OK [09:35:33]SAM_PROTO_GetShiftState done [09:35:33]FM_GetShiftState done [09:35:33]opened in 1729555832 [09:35:33]opened+sec_in_day 1729642232 [09:35:33]quantity*price = 60009 [09:35:33]sum+1 = 60010 [09:35:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 85 22.10.2024 09:35 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70137 ФПД: 154021130294642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093538&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70137&fm=154021130294642&tin=02508201610067®Number=0000000000156251&sum=60000 [09:35:35]StoreToDocumentArchive [09:35:35]shift 195 fd 70137 [09:35:35]save to /storage/0195/doc_00070137 [09:35:35]save last doc name /storage/0195/doc_00070137 to /storage/kkm_last_doc_name [09:35:35]save OK [09:35:35]Clear old archive folders... [09:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:35]tlvbuf is 01193E30 [09:35:35]SAM_PROTO_ClearQueue [09:35:35]wFMCommunicate request_size=4 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 09 00 00 [09:35:35]Write to MH i2c: E2 08 00 67 4A 80 09 00 00 00 00 00 00 23 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 67 4A 00 90 00 25 [09:35:35]RAPDU: 90 00 [09:35:35]wFMCommunicate OK [09:35:35]SAM_PROTO_ClearQueue done [09:35:35]KKMCreateOFDPacket [09:35:35]OFDProtocolAddRootSTLVToBuf [09:35:35]FM_MakeSignedData [09:35:35]FM_MakeSignedData [09:35:35]SAM_PROTO_SignData [09:35:35]wFMCommunicate request_size=4 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 0D 01 02 [09:35:35]Write to MH i2c: E2 08 00 68 4A 80 0D 01 02 00 00 00 00 2B [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]OFD Sender: No OFD packet to send [09:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 68 4A 00 90 00 26 [09:35:35]RAPDU: 90 00 [09:35:35]wFMCommunicate OK [09:35:35]wFMCommunicate request_size=255 [09:35:35]MH_SAM_APDU [09:35:35]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 55 00 00 00 F4 03 04 00 EA 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 11 01 00 35 04 06 00 8C [09:35:35]Write to MH i2c: E2 02 01 69 4A 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 55 00 00 00 F4 03 04 00 EA 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 11 01 00 35 04 06 00 8C 00 00 19 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 69 4A 00 90 00 27 [09:35:35]RAPDU: 90 00 [09:35:35]wFMCommunicate OK [09:35:35]wFMCommunicate request_size=10 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 0D 02 02 05 14 D6 C2 55 72 [09:35:35]Write to MH i2c: E2 0D 00 6A 4A 80 0D 02 02 05 00 14 D6 C2 55 72 00 00 AB [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 03 00 6A 4A 00 90 00 28 [09:35:35]RAPDU: 90 00 [09:35:35]wFMCommunicate OK [09:35:35]wFMCommunicate request_size=4 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 0D 03 02 [09:35:35]Write to MH i2c: E2 08 00 6B 4A 80 0D 03 02 00 00 00 00 30 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 0B 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 0B 00 6B 4A 00 DB EA 1A 66 56 92 F5 03 90 00 56 [09:35:35]RAPDU: DB EA 1A 66 56 92 F5 03 90 00 [09:35:35]wFMCommunicate OK [09:35:35]SAM_PROTO_SignData done [09:35:35]FM_MakeSignedData done [09:35:35]CreateOFDProtocolMessage [09:35:35]wFMCommunicate request_size=4 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 11 00 00 [09:35:35]Write to MH i2c: E2 08 00 6C 4A 80 11 00 00 00 00 00 00 30 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 17 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 17 00 6C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [09:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:35:35]wFMCommunicate OK [09:35:35]CreateOFDProtocolMessage done [09:35:35]OFDSenderStorePacket 70137 [09:35:35]StoreOFDPacket docnum=70137 [09:35:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6A A1 07 01 99 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 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 55 00 00 00 F4 03 04 00 EA 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 11 01 00 35 04 06 00 8C 14 D6 C2 55 72 DB EA 1A 66 56 92 F5 03 [09:35:35]CheckFolder [09:35:35]dirname=/storage/ofd_packets [09:35:35]CheckFolder done [09:35:35]ProducePacketName [09:35:35]name=ofd_packets/00070137 [09:35:35]NVStorageSaveData ofd_packets/00070137 [09:35:35]File name is /storage/ofd_packets/00070137 [09:35:35]Write 301 bytes [09:35:35]NVStorageSaveData done [09:35:35]OFDSenderStorePacket done [09:35:35]KKMCreateOFDPacket done [09:35:35]NVStorageSaveData kkm_last_timestamp [09:35:35]File name is /storage/kkm_last_timestamp [09:35:35]Write 4 bytes [09:35:35]NVStorageSaveData done [09:35:35]ExternCall_PrintAddStr [09:35:35]wPrintStart [09:35:35]Write to MH i2c: 01 00 00 6D 4A B7 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: 01 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: 01 07 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: 01 07 00 6D 4A 00 00 00 00 00 FF 0F CC [09:35:35]RasterBufferAndPrint [09:35:35]line Счет N : (1)2885904 [09:35:35]line ИНН: 02508201610067 [09:35:35]line Контрольно-Кассовый Чек [09:35:35]line ПРОДАЖА [09:35:35]line ТРК (МРК, ГНК) : 42 [09:35:35]line Товар: 2710124130 [09:35:35]line Аи-92-К-5 [09:35:35]line 8.970 * 66.90 [09:35:35]line = 600.09 [09:35:35]line НДС 12% НСП 1% [09:35:35]line > о реализуемом товаре [09:35:35]line ОКРУГЛЕНИЕ: -0.09 [09:35:35]line ИТОГО: 600.00 [09:35:35]line Внесено: 600.00 [09:35:35]line СДАЧА: 0.00 [09:35:35]line НСП 1% : 5.31 [09:35:35]line НДС 12% : 63.73 [09:35:35]line Наличными: 600.00 [09:35:35]line Безнал.: 0.00 [09:35:35]line Место: АЗС № 85 "Партнер Нефть" [09:35:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:35:35]line СНО: Общий режим [09:35:35]line Чек 85 22.10.2024 09:35 [09:35:35]line Смена: 195 ФФД: 1.0 [09:35:35]line ЗНМ: 0300000167 [09:35:35]line РНМ: 0000000000156251 [09:35:35]line Версия ККМ: v1.0 [09:35:35]line ФМ: 0000000000963346 [09:35:35]line ФД: 70137 [09:35:35]line ФПД: 154021130294642 [09:35:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093538&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70137&fm=154021130294642&tin=02508201610067®Number=0000000000156251&sum=60000 [09:35:35]OFD Sender: Processing packet 70137 [packets to send 18, broken 17] [09:35:35]ProducePacketName [09:35:35]name=ofd_packets/00070137 [09:35:35]OFD Sender: To server: pG, [09:35:35]CommunicateWithHost lk.salyk.kg:30040 [09:35:35]ConnectInit lk.salyk.kg [09:35:35]written 0, free lines is 4095 [09:35:36]Connected sock=10 [09:35: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 34 36 0F 01 00 00 6A A1 07 01 99 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 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 55 00 00 00 F4 03 04 00 EA 71 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 11 01 00 35 04 06 00 8C 14 D6 C2 55 72 DB EA 1A 66 56 92 F5 03 [09:35: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 34 36 4F 00 00 00 BA 90 47 00 E9 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 11 01 00 F4 03 04 00 8B 1B 17 67 B6 04 01 00 00 D3 B7 56 78 1A 70 CE D9 [09:35:36]CommunicateWithHost err = 0 [09:35:36]CheckOFDResponse [09:35:36]1017 (14) - 77093643461234 [09:35:36]1041 (16) - 0000000000963346 [09:35:36]1040 (4) - 70137 [09:35:36]1012 (4) - 22.10.2024 03:27 [09:35:36]1206 (1) - 0 [09:35:36]OFD Sender: Remove packet 70137 [09:35:36]ProducePacketName [09:35:36]name=ofd_packets/00070137 [09:35:36]NVStorageDeleteData [09:35:36]Write to MH i2c: 01 00 00 98 4A E2 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 07 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 07 00 98 4A 00 00 00 00 00 EA 0C DF [09:35:36]RasterBufferAndPrint [09:35:36]line [09:35:36]line [09:35:36]line [09:35:36]line [09:35:36]line [09:35:36]written 0, free lines is 3315 [09:35:36]MH_Cut [09:35:36]Write to MH i2c: D1 01 00 9F 4A 01 BB [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: D1 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: D1 01 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: D1 01 00 9F 4A 00 BA [09:35:36]Write to MH i2c: 01 00 00 A0 4A EA [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]OFD Sender: No OFD packet to send [09:35:37]*** Cut start [09:35:37]*** Partial cut [09:35:37]*** CUTSNS_PIN = 1 [09:35:37]*** CUTSNS_PIN = 0 [09:35:37]*** Brake cut motor [09:35:37]Read from MH i2c: 01 [09:35:37]MH_I2C_Read... [09:35:37]*** Stop cut motor [09:35:37]*** Cut end [09:35:37]Read from MH i2c: 01 07 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: 01 07 00 A0 4A 00 00 00 00 00 FF 0F FF [09:35:37]process_action close_receipt done [09:35:37]requested_data is exist [09:35:37]produce_requested_data [09:35:37]requested_item fm.sn is exist - process it [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 11 00 00 [09:35:37]Write to MH i2c: E2 08 00 A1 4A 80 11 00 00 00 00 00 00 65 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 17 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 17 00 A1 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [09:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:35:37]wFMCommunicate OK [09:35:37]requested_item fd.num is exist - process it [09:35:37]SAM_PROTO_GetFieldsCounters [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 13 00 00 [09:35:37]Write to MH i2c: E2 08 00 A2 4A 80 13 00 00 00 00 00 00 68 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 62 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 62 00 A2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 11 01 00 0E 04 04 00 C3 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 50 [09:35: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 11 01 00 0E 04 04 00 C3 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 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_GetFieldsCounters done [09:35:37]requested_item shift.num is exist - process it [09:35:37]requested_item shift.opened is exist - process it [09:35:37]req_shift_opened [09:35:37]FM_GetShiftState [09:35:37]SAM_PROTO_GetShiftState [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 13 01 00 [09:35:37]Write to MH i2c: E2 08 00 A3 4A 80 13 01 00 00 00 00 00 6A [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0E 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0E 00 A3 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 58 [09:35:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:35:38]wFMCommunicate OK [09:35:38]SAM_PROTO_GetShiftState done [09:35:38]FM_GetShiftState done [09:35:38]req_shift_opened done [09:35:38]requested_item shift.open_date is exist - process it [09:35:38]req_shift_open_date [09:35:38]req_shift_open_date done [09:35:38]produce_requested_data done [09:35:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70137,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:35:38]process_action_free close_receipt [09:35:38]json_value_free [09:35:38]json_value_free done [09:35:38]process_json_proto returns [09:35:38]Send response to host [09:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70137,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:35:38]free response buf [09:35:38]execute_script done [09:35:38]execute_script returns [09:35:38]free content buf [09:35:38]Sock 9.Close socket [09:35:38]Sock 9.Thread stoped [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:03]accept exits with 7 [09:36:03]New connection [09:36:03]New thread 3067026788 created [09:36:03]Thread 3067170148 joined [09:36:03]Waiting for new connection... [09:36:03] Sock 7.Parse request [09:36:03]Sock 7.Check first char [09:36:03]Sock 7.First char is OK [09:36:03]request: POST /json_proto HTTP/1.0 [09:36:03]Method: POST [09:36:03]URL: /json_proto [09:36:03]Method is POST - this is cgi request [09:36:03]url: /json_proto [09:36:03]query_string will be loaded in cgi processing [09:36:03]execute_cgi json_proto POST (null) [09:36:03]execute_cgi path=json_proto method=POST [09:36:03]POST find Content-Length [09:36:03]Host: 172.17.50.3:8080 [09:36:03]Content-Length: 770 [09:36:03]Content-Type: application/json [09:36:03] [09:36:03]POST finish read [09:36:03]Found Content-Length = 770 [09:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:03]execute_script... [09:36: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)2885903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:03]POST & json_proto [09:36:03]process_json_proto [09:36:03]json parsed OK: [09:36:03]protocol is kg_v1.0 [09:36:03]action value=close_receipt [09:36:03]process_action close_receipt [09:36:03]cmd_close_receipt [09:36:03]MH_GetDate [09:36:03]Write to MH i2c: F0 00 00 A4 4A DD [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 09 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 09 00 A4 4A 00 08 72 17 67 6B 98 1E 66 65 [09:36:03]GetLastDocTimeStamp 1729589738 [09:36:03]current date 1729589768 [09:36:03]FM_GetShiftState [09:36:03]SAM_PROTO_GetShiftState [09:36:03]wFMCommunicate request_size=4 [09:36:03]MH_SAM_APDU [09:36:03]CAPDU: 80 13 01 00 [09:36:03]Write to MH i2c: E2 08 00 A5 4A 80 13 01 00 00 00 00 00 6C [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0E 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0E 00 A5 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5A [09:36:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:36:04]wFMCommunicate OK [09:36:04]SAM_PROTO_GetShiftState done [09:36:04]FM_GetShiftState done [09:36:04]opened in 1729555832 [09:36:04]opened+sec_in_day 1729642232 [09:36:04]quantity*price = 100021 [09:36:04]sum+1 = 100023 [09:36:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 86 22.10.2024 09:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70138 ФПД: 78487914575218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70138&fm=78487914575218&tin=02508201610067®Number=0000000000156251&sum=100022 [09:36:05]StoreToDocumentArchive [09:36:05]shift 195 fd 70138 [09:36:05]save to /storage/0195/doc_00070138 [09:36:05]save last doc name /storage/0195/doc_00070138 to /storage/kkm_last_doc_name [09:36:05]save OK [09:36:05]Clear old archive folders... [09:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:05]tlvbuf is 01133A60 [09:36:05]SAM_PROTO_ClearQueue [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 09 00 00 [09:36:05]Write to MH i2c: E2 08 00 B2 4A 80 09 00 00 00 00 00 00 6E [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 B2 4A 00 90 00 70 [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]SAM_PROTO_ClearQueue done [09:36:05]KKMCreateOFDPacket [09:36:05]OFDProtocolAddRootSTLVToBuf [09:36:05]FM_MakeSignedData [09:36:05]FM_MakeSignedData [09:36:05]SAM_PROTO_SignData [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 0D 01 02 [09:36:05]Write to MH i2c: E2 08 00 B3 4A 80 0D 01 02 00 00 00 00 76 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 B3 4A 00 90 00 71 [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]wFMCommunicate request_size=255 [09:36:05]MH_SAM_APDU [09:36: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 56 00 00 00 F4 03 04 00 08 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 11 01 00 35 04 06 00 47 [09:36:05]Write to MH i2c: E2 02 01 B4 4A 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 56 00 00 00 F4 03 04 00 08 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 11 01 00 35 04 06 00 47 00 00 AC [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 B4 4A 00 90 00 72 [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]wFMCommunicate request_size=10 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 0D 02 02 05 62 64 44 75 72 [09:36:05]Write to MH i2c: E2 0D 00 B5 4A 80 0D 02 02 05 00 62 64 44 75 72 00 00 74 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 B5 4A 00 90 00 73 [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 0D 03 02 [09:36:05]Write to MH i2c: E2 08 00 B6 4A 80 0D 03 02 00 00 00 00 7B [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 0B 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 0B 00 B6 4A 00 79 33 FD 52 F3 5D 92 9F 90 00 F8 [09:36:05]RAPDU: 79 33 FD 52 F3 5D 92 9F 90 00 [09:36:05]wFMCommunicate OK [09:36:05]SAM_PROTO_SignData done [09:36:05]FM_MakeSignedData done [09:36:05]CreateOFDProtocolMessage [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 11 00 00 [09:36:05]Write to MH i2c: E2 08 00 B7 4A 80 11 00 00 00 00 00 00 7B [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 17 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 17 00 B7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [09:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:36:05]wFMCommunicate OK [09:36:05]CreateOFDProtocolMessage done [09:36:05]OFDSenderStorePacket 70138 [09:36:05]StoreOFDPacket docnum=70138 [09:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AF 02 07 01 2B 5E 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 56 00 00 00 F4 03 04 00 08 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 11 01 00 35 04 06 00 47 62 64 44 75 72 79 33 FD 52 F3 5D 92 9F [09:36:05]CheckFolder [09:36:05]dirname=/storage/ofd_packets [09:36:05]CheckFolder done [09:36:05]ProducePacketName [09:36:05]name=ofd_packets/00070138 [09:36:05]NVStorageSaveData ofd_packets/00070138 [09:36:05]File name is /storage/ofd_packets/00070138 [09:36:05]Write 301 bytes [09:36:05]NVStorageSaveData done [09:36:05]OFDSenderStorePacket done [09:36:05]KKMCreateOFDPacket done [09:36:05]NVStorageSaveData kkm_last_timestamp [09:36:05]File name is /storage/kkm_last_timestamp [09:36:05]Write 4 bytes [09:36:05]NVStorageSaveData done [09:36:05]ExternCall_PrintAddStr [09:36:05]wPrintStart [09:36:05]Write to MH i2c: 01 00 00 B8 4A 02 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 B8 4A 00 00 00 00 00 FF 0F 17 [09:36:05]RasterBufferAndPrint [09:36:05]line Счет N : (1)2885903 [09:36:05]line ИНН: 02508201610067 [09:36:05]line Контрольно-Кассовый Чек [09:36:05]line ПРОДАЖА [09:36:05]line ТРК (МРК, ГНК) : 33 [09:36:05]line Товар: 2710124500 [09:36:05]line Аи-95-К-5 [09:36:05]line 13.480 * 74.20 [09:36:05]line = 1000.22 [09:36:05]line НДС 12% НСП 1% [09:36:05]line > о реализуемом товаре [09:36:05]line ИТОГО: 1000.22 [09:36:05]line НСП 1% : 8.85 [09:36:05]line НДС 12% : 106.22 [09:36:05]line Наличными: 0.00 [09:36:05]line Безнал.: 1000.22 [09:36:05]line Место: АЗС № 85 "Партнер Нефть" [09:36:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:36:05]line СНО: Общий режим [09:36:05]line Чек 86 22.10.2024 09:36 [09:36:05]line Смена: 195 ФФД: 1.0 [09:36:05]line ЗНМ: 0300000167 [09:36:05]line РНМ: 0000000000156251 [09:36:05]line Версия ККМ: v1.0 [09:36:05]line Платежная система: Mbank [09:36:05]line ФМ: 0000000000963346 [09:36:05]line ФД: 70138 [09:36:05]line ФПД: 78487914575218 [09:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70138&fm=78487914575218&tin=02508201610067®Number=0000000000156251&sum=100022 [09:36:06]OFD Sender: Processing packet 70138 [packets to send 18, broken 17] [09:36:06]ProducePacketName [09:36:06]name=ofd_packets/00070138 [09:36:06]OFD Sender: To server: pG, [09:36:06]CommunicateWithHost lk.salyk.kg:30040 [09:36:06]ConnectInit lk.salyk.kg [09:36:06]written 0, free lines is 4095 [09:36:06]Connected sock=10 [09:36: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 34 36 0F 01 00 00 AF 02 07 01 2B 5E 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 56 00 00 00 F4 03 04 00 08 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 11 01 00 35 04 06 00 47 62 64 44 75 72 79 33 FD 52 F3 5D 92 9F [09:36: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 34 36 4F 00 00 00 30 58 47 00 98 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 34 36 10 04 04 00 FA 11 01 00 F4 03 04 00 A9 1B 17 67 B6 04 01 00 00 5F 85 8F D8 22 F5 95 99 [09:36:06]CommunicateWithHost err = 0 [09:36:06]CheckOFDResponse [09:36:06]1017 (14) - 77093643461234 [09:36:06]1041 (16) - 0000000000963346 [09:36:06]1040 (4) - 70138 [09:36:06]1012 (4) - 22.10.2024 03:27 [09:36:06]1206 (1) - 0 [09:36:06]OFD Sender: Remove packet 70138 [09:36:06]ProducePacketName [09:36:06]name=ofd_packets/00070138 [09:36:06]NVStorageDeleteData [09:36:06]Write to MH i2c: 01 00 00 E1 4A 2B [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 07 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 07 00 E1 4A 00 00 00 00 00 18 0D 57 [09:36:06]RasterBufferAndPrint [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]written 0, free lines is 3358 [09:36:06]MH_Cut [09:36:06]Write to MH i2c: D1 01 00 E8 4A 01 04 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 01 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 01 00 E8 4A 00 03 [09:36:06]Write to MH i2c: 01 00 00 E9 4A 33 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]OFD Sender: No OFD packet to send [09:36:07]*** Cut start [09:36:07]*** Partial cut [09:36:07]*** CUTSNS_PIN = 1 [09:36:07]*** CUTSNS_PIN = 0 [09:36:07]*** Brake cut motor [09:36:07]Read from MH i2c: 01 [09:36:07]MH_I2C_Read... [09:36:07]*** Stop cut motor [09:36:07]*** Cut end [09:36:07]Read from MH i2c: 01 07 00 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: 01 07 00 E9 4A 00 00 00 00 00 FF 0F 48 [09:36:07]process_action close_receipt done [09:36:07]requested_data is exist [09:36:07]produce_requested_data [09:36:07]requested_item fm.sn is exist - process it [09:36:07]wFMCommunicate request_size=4 [09:36:07]MH_SAM_APDU [09:36:07]CAPDU: 80 11 00 00 [09:36:07]Write to MH i2c: E2 08 00 EA 4A 80 11 00 00 00 00 00 00 AE [09:36:07]Write i2c OK [09:36:07]MH_I2C_Read... [09:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:07]Read from MH i2c: E2 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 17 00 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 17 00 EA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [09:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:36:07]wFMCommunicate OK [09:36:07]requested_item fd.num is exist - process it [09:36:07]SAM_PROTO_GetFieldsCounters [09:36:07]wFMCommunicate request_size=4 [09:36:07]MH_SAM_APDU [09:36:07]CAPDU: 80 13 00 00 [09:36:07]Write to MH i2c: E2 08 00 EB 4A 80 13 00 00 00 00 00 00 B1 [09:36:07]Write i2c OK [09:36:07]MH_I2C_Read... [09:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:07]Read from MH i2c: E2 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 62 00 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 62 00 EB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 11 01 00 0E 04 04 00 C3 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 9D [09:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 11 01 00 0E 04 04 00 C3 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 [09:36:07]wFMCommunicate OK [09:36:07]SAM_PROTO_GetFieldsCounters done [09:36:07]requested_item shift.num is exist - process it [09:36:07]requested_item shift.opened is exist - process it [09:36:07]req_shift_opened [09:36:07]FM_GetShiftState [09:36:07]SAM_PROTO_GetShiftState [09:36:07]wFMCommunicate request_size=4 [09:36:07]MH_SAM_APDU [09:36:07]CAPDU: 80 13 01 00 [09:36:07]Write to MH i2c: E2 08 00 EC 4A 80 13 01 00 00 00 00 00 B3 [09:36:07]Write i2c OK [09:36:07]MH_I2C_Read... [09:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:08]Read from MH i2c: E2 [09:36:08]MH_I2C_Read... [09:36:08]Read from MH i2c: E2 0E 00 [09:36:08]MH_I2C_Read... [09:36:08]Read from MH i2c: E2 0E 00 EC 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A1 [09:36:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:36:08]wFMCommunicate OK [09:36:08]SAM_PROTO_GetShiftState done [09:36:08]FM_GetShiftState done [09:36:08]req_shift_opened done [09:36:08]requested_item shift.open_date is exist - process it [09:36:08]req_shift_open_date [09:36:08]req_shift_open_date done [09:36:08]produce_requested_data done [09:36:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70138,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:36:08]process_action_free close_receipt [09:36:08]json_value_free [09:36:08]json_value_free done [09:36:08]process_json_proto returns [09:36:08]Send response to host [09:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70138,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:36:08]free response buf [09:36:08]execute_script done [09:36:08]execute_script returns [09:36:08]free content buf [09:36:08]Sock 7.Close socket [09:36:08]Sock 7.Thread stoped [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]accept exits with 9 [09:37:21]New connection [09:37:21]New thread 3067170148 created [09:37:21]Thread 3067026788 joined [09:37:21]Waiting for new connection... [09:37:21] Sock 9.Parse request [09:37:21]Sock 9.Check first char [09:37:21]Sock 9.First char is OK [09:37:21]request: POST /json_proto HTTP/1.0 [09:37:21]Method: POST [09:37:21]URL: /json_proto [09:37:21]Method is POST - this is cgi request [09:37:21]url: /json_proto [09:37:21]query_string will be loaded in cgi processing [09:37:21]execute_cgi json_proto POST (null) [09:37:21]execute_cgi path=json_proto method=POST [09:37:21]POST find Content-Length [09:37:21]Host: 172.17.50.3:8080 [09:37:21]Content-Length: 679 [09:37:21]Content-Type: application/json [09:37:21] [09:37:21]POST finish read [09:37:21]Found Content-Length = 679 [09:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:37:21]execute_script... [09:37: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)2885905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:37:21]POST & json_proto [09:37:21]process_json_proto [09:37:21]json parsed OK: [09:37:21]protocol is kg_v1.0 [09:37:21]action value=close_receipt [09:37:21]process_action close_receipt [09:37:21]cmd_close_receipt [09:37:21]MH_GetDate [09:37:21]Write to MH i2c: F0 00 00 ED 4A 26 [09:37:21]Write i2c OK [09:37:21]MH_I2C_Read... [09:37:21]Read from MH i2c: F0 [09:37:21]MH_I2C_Read... [09:37:21]Read from MH i2c: F0 09 00 [09:37:21]MH_I2C_Read... [09:37:21]Read from MH i2c: F0 09 00 ED 4A 00 56 72 17 67 6B 98 1E 66 FC [09:37:21]GetLastDocTimeStamp 1729589768 [09:37:21]current date 1729589846 [09:37:21]FM_GetShiftState [09:37:21]SAM_PROTO_GetShiftState [09:37:21]wFMCommunicate request_size=4 [09:37:21]MH_SAM_APDU [09:37:21]CAPDU: 80 13 01 00 [09:37:21]Write to MH i2c: E2 08 00 EE 4A 80 13 01 00 00 00 00 00 B5 [09:37:21]Write i2c OK [09:37:21]MH_I2C_Read... [09:37:21]OFD Sender: No OFD packet to send [09:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:21]Read from MH i2c: E2 [09:37:21]MH_I2C_Read... [09:37:21]Read from MH i2c: E2 0E 00 [09:37:21]MH_I2C_Read... [09:37:21]Read from MH i2c: E2 0E 00 EE 4A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A3 [09:37:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:37:21]wFMCommunicate OK [09:37:21]SAM_PROTO_GetShiftState done [09:37:21]FM_GetShiftState done [09:37:21]opened in 1729555832 [09:37:21]opened+sec_in_day 1729642232 [09:37:21]quantity*price = 70044 [09:37:21]sum+1 = 70045 [09:37:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 87 22.10.2024 09:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70139 ФПД: 230518382831945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70139&fm=230518382831945&tin=02508201610067®Number=0000000000156251&sum=70000 [09:37:23]StoreToDocumentArchive [09:37:23]shift 195 fd 70139 [09:37:23]save to /storage/0195/doc_00070139 [09:37:23]save last doc name /storage/0195/doc_00070139 to /storage/kkm_last_doc_name [09:37:23]save OK [09:37:23]Clear old archive folders... [09:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:23]tlvbuf is 0128AFA0 [09:37:23]SAM_PROTO_ClearQueue [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 09 00 00 [09:37:23]Write to MH i2c: E2 08 00 FB 4A 80 09 00 00 00 00 00 00 B7 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 FB 4A 00 90 00 B9 [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]SAM_PROTO_ClearQueue done [09:37:23]KKMCreateOFDPacket [09:37:23]OFDProtocolAddRootSTLVToBuf [09:37:23]FM_MakeSignedData [09:37:23]FM_MakeSignedData [09:37:23]SAM_PROTO_SignData [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 01 02 [09:37:23]Write to MH i2c: E2 08 00 FC 4A 80 0D 01 02 00 00 00 00 BF [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 FC 4A 00 90 00 BA [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=255 [09:37:23]MH_SAM_APDU [09:37: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 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 57 00 00 00 F4 03 04 00 56 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 11 01 00 35 04 06 00 D1 [09:37:23]Write to MH i2c: E2 02 01 FD 4A 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 57 00 00 00 F4 03 04 00 56 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 11 01 00 35 04 06 00 D1 00 00 96 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=10 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 02 02 05 A7 BE 52 A9 49 [09:37:23]Write to MH i2c: E2 0D 00 FE 4A 80 0D 02 02 05 00 A7 BE 52 A9 49 00 00 75 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [09:37:23]RAPDU: 90 00 [09:37:23]wFMCommunicate OK [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 0D 03 02 [09:37:23]Write to MH i2c: E2 08 00 FF 4A 80 0D 03 02 00 00 00 00 C4 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0B 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0B 00 FF 4A 00 34 1E 29 2F F6 D7 15 F2 90 00 43 [09:37:23]RAPDU: 34 1E 29 2F F6 D7 15 F2 90 00 [09:37:23]wFMCommunicate OK [09:37:23]SAM_PROTO_SignData done [09:37:23]FM_MakeSignedData done [09:37:23]CreateOFDProtocolMessage [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 11 00 00 [09:37:23]Write to MH i2c: E2 08 00 00 4B 80 11 00 00 00 00 00 00 C5 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 17 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 17 00 00 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [09:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:23]wFMCommunicate OK [09:37:23]CreateOFDProtocolMessage done [09:37:23]OFDSenderStorePacket 70139 [09:37:23]StoreOFDPacket docnum=70139 [09:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A F9 07 01 E7 0D 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 57 00 00 00 F4 03 04 00 56 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 11 01 00 35 04 06 00 D1 A7 BE 52 A9 49 34 1E 29 2F F6 D7 15 F2 [09:37:23]CheckFolder [09:37:23]dirname=/storage/ofd_packets [09:37:23]CheckFolder done [09:37:23]ProducePacketName [09:37:23]name=ofd_packets/00070139 [09:37:23]NVStorageSaveData ofd_packets/00070139 [09:37:23]File name is /storage/ofd_packets/00070139 [09:37:23]Write 301 bytes [09:37:23]NVStorageSaveData done [09:37:23]OFDSenderStorePacket done [09:37:23]KKMCreateOFDPacket done [09:37:23]NVStorageSaveData kkm_last_timestamp [09:37:23]File name is /storage/kkm_last_timestamp [09:37:23]Write 4 bytes [09:37:23]NVStorageSaveData done [09:37:23]ExternCall_PrintAddStr [09:37:23]wPrintStart [09:37:23]Write to MH i2c: 01 00 00 01 4B 4C [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 07 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: 01 07 00 01 4B 00 00 00 00 00 FF 0F 61 [09:37:23]RasterBufferAndPrint [09:37:23]line Счет N : (1)2885905 [09:37:23]line ИНН: 02508201610067 [09:37:23]line Контрольно-Кассовый Чек [09:37:23]line ПРОДАЖА [09:37:23]line ТРК (МРК, ГНК) : 42 [09:37:23]line Товар: 2710124130 [09:37:23]line Аи-92-К-5 [09:37:23]line 10.470 * 66.90 [09:37:23]line = 700.44 [09:37:23]line НДС 12% НСП 1% [09:37:23]line > о реализуемом товаре [09:37:23]line ОКРУГЛЕНИЕ: -0.44 [09:37:23]line ИТОГО: 700.00 [09:37:23]line Внесено: 700.00 [09:37:23]line СДАЧА: 0.00 [09:37:23]line НСП 1% : 6.20 [09:37:23]line НДС 12% : 74.38 [09:37:23]line Наличными: 700.00 [09:37:23]line Безнал.: 0.00 [09:37:23]line Место: АЗС № 85 "Партнер Нефть" [09:37:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:37:23]line СНО: Общий режим [09:37:23]line Чек 87 22.10.2024 09:37 [09:37:23]line Смена: 195 ФФД: 1.0 [09:37:23]line ЗНМ: 0300000167 [09:37:23]line РНМ: 0000000000156251 [09:37:23]line Версия ККМ: v1.0 [09:37:23]line ФМ: 0000000000963346 [09:37:23]line ФД: 70139 [09:37:23]line ФПД: 230518382831945 [09:37:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70139&fm=230518382831945&tin=02508201610067®Number=0000000000156251&sum=70000 [09:37:23]OFD Sender: Processing packet 70139 [packets to send 18, broken 17] [09:37:23]ProducePacketName [09:37:23]name=ofd_packets/00070139 [09:37:23]OFD Sender: To server: pG, [09:37:23]CommunicateWithHost lk.salyk.kg:30040 [09:37:23]ConnectInit lk.salyk.kg [09:37:23]written 0, free lines is 4095 [09:37:23]Connected sock=10 [09:37: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 34 36 0F 01 00 00 7A F9 07 01 E7 0D 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 57 00 00 00 F4 03 04 00 56 72 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 11 01 00 35 04 06 00 D1 A7 BE 52 A9 49 34 1E 29 2F F6 D7 15 F2 [09:37: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 34 36 4F 00 00 00 32 4E 47 00 F6 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 34 36 10 04 04 00 FB 11 01 00 F4 03 04 00 F7 1B 17 67 B6 04 01 00 00 6F 4D 40 85 C2 C4 D2 2A [09:37:24]CommunicateWithHost err = 0 [09:37:24]CheckOFDResponse [09:37:24]1017 (14) - 77093643461234 [09:37:24]1041 (16) - 0000000000963346 [09:37:24]1040 (4) - 70139 [09:37:24]1012 (4) - 22.10.2024 03:28 [09:37:24]1206 (1) - 0 [09:37:24]OFD Sender: Remove packet 70139 [09:37:24]ProducePacketName [09:37:24]name=ofd_packets/00070139 [09:37:24]NVStorageDeleteData [09:37:24]Write to MH i2c: 01 00 00 2C 4B 77 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 07 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: 01 07 00 2C 4B 00 00 00 00 00 E9 0C 73 [09:37:24]RasterBufferAndPrint [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]line [09:37:24]written 0, free lines is 3311 [09:37:24]MH_Cut [09:37:24]Write to MH i2c: D1 01 00 33 4B 01 50 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: D1 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: D1 01 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: D1 01 00 33 4B 00 4F [09:37:24]Write to MH i2c: 01 00 00 34 4B 7F [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]OFD Sender: No OFD packet to send [09:37:25]*** Cut start [09:37:25]*** Partial cut [09:37:25]*** CUTSNS_PIN = 1 [09:37:25]*** CUTSNS_PIN = 0 [09:37:25]*** Brake cut motor [09:37:25]Read from MH i2c: 01 [09:37:25]MH_I2C_Read... [09:37:25]*** Stop cut motor [09:37:25]*** Cut end [09:37:25]Read from MH i2c: 01 07 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: 01 07 00 34 4B 00 00 00 00 00 FF 0F 94 [09:37:25]process_action close_receipt done [09:37:25]requested_data is exist [09:37:25]produce_requested_data [09:37:25]requested_item fm.sn is exist - process it [09:37:25]wFMCommunicate request_size=4 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 11 00 00 [09:37:25]Write to MH i2c: E2 08 00 35 4B 80 11 00 00 00 00 00 00 FA [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 17 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 17 00 35 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [09:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:25]wFMCommunicate OK [09:37:25]requested_item fd.num is exist - process it [09:37:25]SAM_PROTO_GetFieldsCounters [09:37:25]wFMCommunicate request_size=4 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 13 00 00 [09:37:25]Write to MH i2c: E2 08 00 36 4B 80 13 00 00 00 00 00 00 FD [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 62 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 62 00 36 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 11 01 00 0E 04 04 00 C3 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 ED [09:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 11 01 00 0E 04 04 00 C3 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 [09:37:25]wFMCommunicate OK [09:37:25]SAM_PROTO_GetFieldsCounters done [09:37:25]requested_item shift.num is exist - process it [09:37:25]requested_item shift.opened is exist - process it [09:37:25]req_shift_opened [09:37:25]FM_GetShiftState [09:37:25]SAM_PROTO_GetShiftState [09:37:25]wFMCommunicate request_size=4 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 13 01 00 [09:37:25]Write to MH i2c: E2 08 00 37 4B 80 13 01 00 00 00 00 00 FF [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 0E 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 0E 00 37 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 ED [09:37:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:37:25]wFMCommunicate OK [09:37:25]SAM_PROTO_GetShiftState done [09:37:25]FM_GetShiftState done [09:37:25]req_shift_opened done [09:37:25]requested_item shift.open_date is exist - process it [09:37:25]req_shift_open_date [09:37:25]req_shift_open_date done [09:37:25]produce_requested_data done [09:37:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70139,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:37:25]process_action_free close_receipt [09:37:25]json_value_free [09:37:25]json_value_free done [09:37:25]process_json_proto returns [09:37:25]Send response to host [09:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70139,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:37:25]free response buf [09:37:25]execute_script done [09:37:25]execute_script returns [09:37:25]free content buf [09:37:25]Sock 9.Close socket [09:37:25]Sock 9.Thread stoped [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39: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:54]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:52]accept exits with 7 [09:44:52]New connection [09:44:52]New thread 3067026788 created [09:44:52]Thread 3067170148 joined [09:44:52]Waiting for new connection... [09:44:52] Sock 7.Parse request [09:44:52]Sock 7.Check first char [09:44:52]Sock 7.First char is OK [09:44:52]request: POST /json_proto HTTP/1.0 [09:44:52]Method: POST [09:44:52]URL: /json_proto [09:44:52]Method is POST - this is cgi request [09:44:52]url: /json_proto [09:44:52]query_string will be loaded in cgi processing [09:44:52]execute_cgi json_proto POST (null) [09:44:52]execute_cgi path=json_proto method=POST [09:44:52]POST find Content-Length [09:44:52]Host: 172.17.50.3:8080 [09:44:52]Content-Length: 767 [09:44:52]Content-Type: application/json [09:44:52] [09:44:52]POST finish read [09:44:52]Found Content-Length = 767 [09:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [09:44:52]execute_script... [09:44: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)2885906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [09:44:52]POST & json_proto [09:44:52]process_json_proto [09:44:52]json parsed OK: [09:44:52]protocol is kg_v1.0 [09:44:52]action value=close_receipt [09:44:52]process_action close_receipt [09:44:52]cmd_close_receipt [09:44:52]MH_GetDate [09:44:52]Write to MH i2c: F0 00 00 38 4B 72 [09:44:52]Write i2c OK [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: F0 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: F0 09 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: F0 09 00 38 4B 00 18 74 17 67 6B 98 1E 66 0C [09:44:52]GetLastDocTimeStamp 1729589846 [09:44:52]current date 1729590296 [09:44:52]FM_GetShiftState [09:44:52]SAM_PROTO_GetShiftState [09:44:52]wFMCommunicate request_size=4 [09:44:52]MH_SAM_APDU [09:44:52]CAPDU: 80 13 01 00 [09:44:52]Write to MH i2c: E2 08 00 39 4B 80 13 01 00 00 00 00 00 01 [09:44:52]Write i2c OK [09:44:52]MH_I2C_Read... [09:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:52]Read from MH i2c: E2 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 39 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EF [09:44:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:44:52]wFMCommunicate OK [09:44:52]SAM_PROTO_GetShiftState done [09:44:52]FM_GetShiftState done [09:44:52]opened in 1729555832 [09:44:52]opened+sec_in_day 1729642232 [09:44:52]quantity*price = 50041 [09:44:52]sum+1 = 50042 [09:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 88 22.10.2024 09:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70140 ФПД: 200601033174398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70140&fm=200601033174398&tin=02508201610067®Number=0000000000156251&sum=50041 [09:44:53]StoreToDocumentArchive [09:44:53]shift 195 fd 70140 [09:44:53]save to /storage/0195/doc_00070140 [09:44:53]save last doc name /storage/0195/doc_00070140 to /storage/kkm_last_doc_name [09:44:53]save OK [09:44:53]Clear old archive folders... [09:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:53]tlvbuf is 01123CB0 [09:44:53]SAM_PROTO_ClearQueue [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 09 00 00 [09:44:53]Write to MH i2c: E2 08 00 46 4B 80 09 00 00 00 00 00 00 03 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 46 4B 00 90 00 05 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_ClearQueue done [09:44:53]KKMCreateOFDPacket [09:44:53]OFDProtocolAddRootSTLVToBuf [09:44:53]FM_MakeSignedData [09:44:53]FM_MakeSignedData [09:44:53]SAM_PROTO_SignData [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 01 02 [09:44:53]Write to MH i2c: E2 08 00 47 4B 80 0D 01 02 00 00 00 00 0B [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 47 4B 00 90 00 06 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=255 [09:44:53]MH_SAM_APDU [09:44: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 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 58 00 00 00 F4 03 04 00 18 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 11 01 00 35 04 06 00 B6 [09:44:53]Write to MH i2c: E2 02 01 48 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 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 58 00 00 00 F4 03 04 00 18 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 11 01 00 35 04 06 00 B6 00 00 CF [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 48 4B 00 90 00 07 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=10 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 02 02 05 72 11 52 ED 7E [09:44:53]Write to MH i2c: E2 0D 00 49 4B 80 0D 02 02 05 00 72 11 52 ED 7E 00 00 58 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 49 4B 00 90 00 08 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 03 02 [09:44:53]Write to MH i2c: E2 08 00 4A 4B 80 0D 03 02 00 00 00 00 10 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0B 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0B 00 4A 4B 00 8E D5 D8 1E 14 DA A1 D0 90 00 C9 [09:44:53]RAPDU: 8E D5 D8 1E 14 DA A1 D0 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_SignData done [09:44:53]FM_MakeSignedData done [09:44:53]CreateOFDProtocolMessage [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 11 00 00 [09:44:53]Write to MH i2c: E2 08 00 4B 4B 80 11 00 00 00 00 00 00 10 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 4B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [09:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:53]wFMCommunicate OK [09:44:53]CreateOFDProtocolMessage done [09:44:53]OFDSenderStorePacket 70140 [09:44:53]StoreOFDPacket docnum=70140 [09:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FB 12 07 01 23 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 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 58 00 00 00 F4 03 04 00 18 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 11 01 00 35 04 06 00 B6 72 11 52 ED 7E 8E D5 D8 1E 14 DA A1 D0 [09:44:53]CheckFolder [09:44:53]dirname=/storage/ofd_packets [09:44:53]CheckFolder done [09:44:53]ProducePacketName [09:44:53]name=ofd_packets/00070140 [09:44:53]NVStorageSaveData ofd_packets/00070140 [09:44:53]File name is /storage/ofd_packets/00070140 [09:44:53]Write 301 bytes [09:44:53]NVStorageSaveData done [09:44:53]OFDSenderStorePacket done [09:44:53]KKMCreateOFDPacket done [09:44:53]NVStorageSaveData kkm_last_timestamp [09:44:53]File name is /storage/kkm_last_timestamp [09:44:53]Write 4 bytes [09:44:53]NVStorageSaveData done [09:44:53]ExternCall_PrintAddStr [09:44:53]wPrintStart [09:44:53]Write to MH i2c: 01 00 00 4C 4B 97 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 07 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 07 00 4C 4B 00 00 00 00 00 FF 0F AC [09:44:53]RasterBufferAndPrint [09:44:53]line Счет N : (1)2885906 [09:44:53]line ИНН: 02508201610067 [09:44:53]line Контрольно-Кассовый Чек [09:44:53]line ПРОДАЖА [09:44:53]line ТРК (МРК, ГНК) : 22 [09:44:53]line Товар: 2710124130 [09:44:53]line Аи-92-К-5 [09:44:53]line 7.480 * 66.90 [09:44:53]line = 500.41 [09:44:53]line НДС 12% НСП 1% [09:44:53]line > о реализуемом товаре [09:44:53]line ИТОГО: 500.41 [09:44:53]line НСП 1% : 4.43 [09:44:53]line НДС 12% : 53.14 [09:44:53]line Наличными: 0.00 [09:44:53]line Безнал.: 500.41 [09:44:53]line Место: АЗС № 85 "Партнер Нефть" [09:44:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:53]line СНО: Общий режим [09:44:53]line Чек 88 22.10.2024 09:44 [09:44:53]line Смена: 195 ФФД: 1.0 [09:44:53]line ЗНМ: 0300000167 [09:44:53]line РНМ: 0000000000156251 [09:44:53]line Версия ККМ: v1.0 [09:44:53]line Платежная система: Mbank [09:44:53]line ФМ: 0000000000963346 [09:44:53]line ФД: 70140 [09:44:53]line ФПД: 200601033174398 [09:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70140&fm=200601033174398&tin=02508201610067®Number=0000000000156251&sum=50041 [09:44:54]OFD Sender: Processing packet 70140 [packets to send 18, broken 17] [09:44:54]ProducePacketName [09:44:54]name=ofd_packets/00070140 [09:44:54]OFD Sender: To server: pG, [09:44:54]CommunicateWithHost lk.salyk.kg:30040 [09:44:54]ConnectInit lk.salyk.kg [09:44:54]written 0, free lines is 4095 [09:44:54]Connected sock=9 [09:44: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 34 36 0F 01 00 00 FB 12 07 01 23 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 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 58 00 00 00 F4 03 04 00 18 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 11 01 00 35 04 06 00 B6 72 11 52 ED 7E 8E D5 D8 1E 14 DA A1 D0 [09:44: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 34 36 4F 00 00 00 68 D4 47 00 7D 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 34 36 10 04 04 00 FC 11 01 00 F4 03 04 00 B9 1D 17 67 B6 04 01 00 00 C3 47 D9 2D 80 BA 0C 43 [09:44:54]CommunicateWithHost err = 0 [09:44:54]CheckOFDResponse [09:44:54]1017 (14) - 77093643461234 [09:44:54]1041 (16) - 0000000000963346 [09:44:54]1040 (4) - 70140 [09:44:54]1012 (4) - 22.10.2024 03:36 [09:44:54]1206 (1) - 0 [09:44:54]OFD Sender: Remove packet 70140 [09:44:54]ProducePacketName [09:44:54]name=ofd_packets/00070140 [09:44:54]NVStorageDeleteData [09:44:54]Write to MH i2c: 01 00 00 75 4B C0 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 07 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 07 00 75 4B 00 00 00 00 00 10 0D E4 [09:44:54]RasterBufferAndPrint [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]written 0, free lines is 3350 [09:44:54]MH_Cut [09:44:54]Write to MH i2c: D1 01 00 7C 4B 01 99 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 01 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 01 00 7C 4B 00 98 [09:44:54]Write to MH i2c: 01 00 00 7D 4B C8 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]OFD Sender: No OFD packet to send [09:44:55]*** Cut start [09:44:55]*** Partial cut [09:44:55]*** CUTSNS_PIN = 1 [09:44:55]*** CUTSNS_PIN = 0 [09:44:55]*** Brake cut motor [09:44:55]Read from MH i2c: 01 [09:44:55]MH_I2C_Read... [09:44:55]*** Stop cut motor [09:44:55]*** Cut end [09:44:55]Read from MH i2c: 01 07 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: 01 07 00 7D 4B 00 00 00 00 00 FF 0F DD [09:44:55]process_action close_receipt done [09:44:55]requested_data is exist [09:44:55]produce_requested_data [09:44:55]requested_item fm.sn is exist - process it [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 11 00 00 [09:44:55]Write to MH i2c: E2 08 00 7E 4B 80 11 00 00 00 00 00 00 43 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 17 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 17 00 7E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [09:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:55]wFMCommunicate OK [09:44:55]requested_item fd.num is exist - process it [09:44:55]SAM_PROTO_GetFieldsCounters [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 13 00 00 [09:44:55]Write to MH i2c: E2 08 00 7F 4B 80 13 00 00 00 00 00 00 46 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 62 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 62 00 7F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 11 01 00 0E 04 04 00 C3 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 3A [09:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 11 01 00 0E 04 04 00 C3 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 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_GetFieldsCounters done [09:44:56]requested_item shift.num is exist - process it [09:44:56]requested_item shift.opened is exist - process it [09:44:56]req_shift_opened [09:44:56]FM_GetShiftState [09:44:56]SAM_PROTO_GetShiftState [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 13 01 00 [09:44:56]Write to MH i2c: E2 08 00 80 4B 80 13 01 00 00 00 00 00 48 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0E 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0E 00 80 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [09:44:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_GetShiftState done [09:44:56]FM_GetShiftState done [09:44:56]req_shift_opened done [09:44:56]requested_item shift.open_date is exist - process it [09:44:56]req_shift_open_date [09:44:56]req_shift_open_date done [09:44:56]produce_requested_data done [09:44:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70140,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:44:56]process_action_free close_receipt [09:44:56]json_value_free [09:44:56]json_value_free done [09:44:56]process_json_proto returns [09:44:56]Send response to host [09:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70140,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:44:56]free response buf [09:44:56]execute_script done [09:44:56]execute_script returns [09:44:56]free content buf [09:44:56]Sock 7.Close socket [09:44:56]Sock 7.Thread stoped [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:17]accept exits with 10 [09:46:17]New connection [09:46:17]New thread 3067170148 created [09:46:17]Thread 3067026788 joined [09:46:17]Waiting for new connection... [09:46:17] Sock 10.Parse request [09:46:17]Sock 10.Check first char [09:46:17]Sock 10.First char is OK [09:46:17]request: POST /json_proto HTTP/1.0 [09:46:17]Method: POST [09:46:17]URL: /json_proto [09:46:17]Method is POST - this is cgi request [09:46:17]url: /json_proto [09:46:17]query_string will be loaded in cgi processing [09:46:17]execute_cgi json_proto POST (null) [09:46:17]execute_cgi path=json_proto method=POST [09:46:17]POST find Content-Length [09:46:17]Host: 172.17.50.3:8080 [09:46:17]Content-Length: 755 [09:46:17]Content-Type: application/json [09:46:17] [09:46:17]POST finish read [09:46:17]Found Content-Length = 755 [09:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.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\u000A30147194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:17]execute_script... [09:46: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)2885907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.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\u000A30147194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:17]POST & json_proto [09:46:17]process_json_proto [09:46:17]json parsed OK: [09:46:17]protocol is kg_v1.0 [09:46:17]action value=close_receipt [09:46:17]process_action close_receipt [09:46:17]cmd_close_receipt [09:46:17]MH_GetDate [09:46:17]Write to MH i2c: F0 00 00 81 4B BB [09:46:17]Write i2c OK [09:46:17]MH_I2C_Read... [09:46:17]Read from MH i2c: F0 [09:46:17]MH_I2C_Read... [09:46:17]Read from MH i2c: F0 09 00 [09:46:17]MH_I2C_Read... [09:46:17]Read from MH i2c: F0 09 00 81 4B 00 6E 74 17 67 6B 98 1E 66 AB [09:46:17]GetLastDocTimeStamp 1729590296 [09:46:17]current date 1729590382 [09:46:17]FM_GetShiftState [09:46:17]SAM_PROTO_GetShiftState [09:46:17]wFMCommunicate request_size=4 [09:46:17]MH_SAM_APDU [09:46:17]CAPDU: 80 13 01 00 [09:46:17]Write to MH i2c: E2 08 00 82 4B 80 13 01 00 00 00 00 00 4A [09:46:17]Write i2c OK [09:46:17]MH_I2C_Read... [09:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:17]Read from MH i2c: E2 [09:46:17]MH_I2C_Read... [09:46:17]Read from MH i2c: E2 0E 00 [09:46:17]MH_I2C_Read... [09:46:17]Read from MH i2c: E2 0E 00 82 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 38 [09:46:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:46:17]wFMCommunicate OK [09:46:17]SAM_PROTO_GetShiftState done [09:46:17]FM_GetShiftState done [09:46:17]opened in 1729555832 [09:46:17]opened+sec_in_day 1729642232 [09:46:17]quantity*price = 0 [09:46:17]sum+1 = 1 [09:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 89 22.10.2024 09:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30147194 ФМ: 0000000000963346 ФД: 70141 ФПД: 130273113947376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70141&fm=130273113947376&tin=02508201610067®Number=0000000000156251&sum=0 [09:46:18]StoreToDocumentArchive [09:46:18]shift 195 fd 70141 [09:46:18]save to /storage/0195/doc_00070141 [09:46:18]save last doc name /storage/0195/doc_00070141 to /storage/kkm_last_doc_name [09:46:18]save OK [09:46:18]Clear old archive folders... [09:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:18]tlvbuf is B6F8A160 [09:46:18]SAM_PROTO_ClearQueue [09:46:18]wFMCommunicate request_size=4 [09:46:18]MH_SAM_APDU [09:46:18]CAPDU: 80 09 00 00 [09:46:18]Write to MH i2c: E2 08 00 8F 4B 80 09 00 00 00 00 00 00 4C [09:46:18]Write i2c OK [09:46:18]MH_I2C_Read... [09:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:18]Read from MH i2c: E2 [09:46:18]MH_I2C_Read... [09:46:18]Read from MH i2c: E2 03 00 [09:46:18]MH_I2C_Read... [09:46:18]Read from MH i2c: E2 03 00 8F 4B 00 90 00 4E [09:46:18]RAPDU: 90 00 [09:46:18]wFMCommunicate OK [09:46:18]SAM_PROTO_ClearQueue done [09:46:18]KKMCreateOFDPacket [09:46:18]OFDProtocolAddRootSTLVToBuf [09:46:18]FM_MakeSignedData [09:46:18]FM_MakeSignedData [09:46:18]SAM_PROTO_SignData [09:46:18]wFMCommunicate request_size=4 [09:46:18]MH_SAM_APDU [09:46:18]CAPDU: 80 0D 01 02 [09:46:18]Write to MH i2c: E2 08 00 90 4B 80 0D 01 02 00 00 00 00 54 [09:46:18]Write i2c OK [09:46:18]MH_I2C_Read... [09:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:18]Read from MH i2c: E2 [09:46:18]MH_I2C_Read... [09:46:18]Read from MH i2c: E2 03 00 [09:46:18]MH_I2C_Read... [09:46:18]Read from MH i2c: E2 03 00 90 4B 00 90 00 4F [09:46:18]RAPDU: 90 00 [09:46:18]wFMCommunicate OK [09:46:18]wFMCommunicate request_size=255 [09:46:18]MH_SAM_APDU [09:46: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 A2 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 59 00 00 00 F4 03 04 00 6E 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 11 01 00 35 04 06 00 76 [09:46:18]Write to MH i2c: E2 02 01 91 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 A2 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 59 00 00 00 F4 03 04 00 6E 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 11 01 00 35 04 06 00 76 00 00 49 [09:46:18]Write i2c OK [09:46:18]MH_I2C_Read... [09:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:19]Read from MH i2c: E2 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 03 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 03 00 91 4B 00 90 00 50 [09:46:19]RAPDU: 90 00 [09:46:19]wFMCommunicate OK [09:46:19]wFMCommunicate request_size=10 [09:46:19]MH_SAM_APDU [09:46:19]CAPDU: 80 0D 02 02 05 7B 92 AE 3C F0 [09:46:19]Write to MH i2c: E2 0D 00 92 4B 80 0D 02 02 05 00 7B 92 AE 3C F0 00 00 48 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:19]Read from MH i2c: E2 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 03 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 03 00 92 4B 00 90 00 51 [09:46:19]RAPDU: 90 00 [09:46:19]wFMCommunicate OK [09:46:19]wFMCommunicate request_size=4 [09:46:19]MH_SAM_APDU [09:46:19]CAPDU: 80 0D 03 02 [09:46:19]Write to MH i2c: E2 08 00 93 4B 80 0D 03 02 00 00 00 00 59 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:19]Read from MH i2c: E2 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 0B 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 0B 00 93 4B 00 95 19 C6 8B 01 8B 91 DA 90 00 50 [09:46:19]RAPDU: 95 19 C6 8B 01 8B 91 DA 90 00 [09:46:19]wFMCommunicate OK [09:46:19]SAM_PROTO_SignData done [09:46:19]FM_MakeSignedData done [09:46:19]CreateOFDProtocolMessage [09:46:19]wFMCommunicate request_size=4 [09:46:19]MH_SAM_APDU [09:46:19]CAPDU: 80 11 00 00 [09:46:19]Write to MH i2c: E2 08 00 94 4B 80 11 00 00 00 00 00 00 59 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:19]Read from MH i2c: E2 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 17 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 17 00 94 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [09:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:19]wFMCommunicate OK [09:46:19]CreateOFDProtocolMessage done [09:46:19]OFDSenderStorePacket 70141 [09:46:19]StoreOFDPacket docnum=70141 [09:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 23 DB 07 01 C0 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 A2 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 59 00 00 00 F4 03 04 00 6E 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 11 01 00 35 04 06 00 76 7B 92 AE 3C F0 95 19 C6 8B 01 8B 91 DA [09:46:19]CheckFolder [09:46:19]dirname=/storage/ofd_packets [09:46:19]CheckFolder done [09:46:19]ProducePacketName [09:46:19]name=ofd_packets/00070141 [09:46:19]NVStorageSaveData ofd_packets/00070141 [09:46:19]File name is /storage/ofd_packets/00070141 [09:46:19]Write 301 bytes [09:46:19]NVStorageSaveData done [09:46:19]OFDSenderStorePacket done [09:46:19]KKMCreateOFDPacket done [09:46:19]NVStorageSaveData kkm_last_timestamp [09:46:19]File name is /storage/kkm_last_timestamp [09:46:19]Write 4 bytes [09:46:19]NVStorageSaveData done [09:46:19]ExternCall_PrintAddStr [09:46:19]wPrintStart [09:46:19]Write to MH i2c: 01 00 00 95 4B E0 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: 01 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: 01 07 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: 01 07 00 95 4B 00 00 00 00 00 FF 0F F5 [09:46:19]RasterBufferAndPrint [09:46:19]line Счет N : (1)2885907 [09:46:19]line ИНН: 02508201610067 [09:46:19]line Контрольно-Кассовый Чек [09:46:19]line ПРОДАЖА [09:46:19]line ТРК (МРК, ГНК) : 32 [09:46:19]line Товар: 2710124130 [09:46:19]line Аи-92-К-5 [09:46:19]line 20.130 * 0.00 [09:46:19]line = 0.00 [09:46:19]line НДС 12% НСП 1% [09:46:19]line > о реализуемом товаре [09:46:19]line ИТОГО: 0.00 [09:46:19]line НСП 1% : 0.00 [09:46:19]line НДС 12% : 0.00 [09:46:19]line Наличными: 0.00 [09:46:19]line Безнал.: 0.00 [09:46:19]line Место: АЗС № 85 "Партнер Нефть" [09:46:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:46:19]line СНО: Общий режим [09:46:19]line Чек 89 22.10.2024 09:46 [09:46:19]line Смена: 195 ФФД: 1.0 [09:46:19]line ЗНМ: 0300000167 [09:46:19]line РНМ: 0000000000156251 [09:46:19]line Версия ККМ: v1.0 [09:46:19]line Талоны: ТК ГПНА Online [09:46:19]line 30147194 [09:46:19]line ФМ: 0000000000963346 [09:46:19]line ФД: 70141 [09:46:19]line ФПД: 130273113947376 [09:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70141&fm=130273113947376&tin=02508201610067®Number=0000000000156251&sum=0 [09:46:19]OFD Sender: Processing packet 70141 [packets to send 18, broken 17] [09:46:19]ProducePacketName [09:46:19]name=ofd_packets/00070141 [09:46:19]OFD Sender: To server: pG, [09:46:19]CommunicateWithHost lk.salyk.kg:30040 [09:46:19]ConnectInit lk.salyk.kg [09:46:19]written 0, free lines is 4095 [09:46:19]Connected sock=9 [09:46: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 34 36 0F 01 00 00 23 DB 07 01 C0 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 A2 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 59 00 00 00 F4 03 04 00 6E 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 11 01 00 35 04 06 00 76 7B 92 AE 3C F0 95 19 C6 8B 01 8B 91 DA [09:46: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 34 36 4F 00 00 00 67 D2 47 00 C5 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 34 36 10 04 04 00 FD 11 01 00 F4 03 04 00 0F 1E 17 67 B6 04 01 00 00 EB EC 91 FA 90 00 F7 50 [09:46:20]CommunicateWithHost err = 0 [09:46:20]CheckOFDResponse [09:46:20]1017 (14) - 77093643461234 [09:46:20]1041 (16) - 0000000000963346 [09:46:20]1040 (4) - 70141 [09:46:20]1012 (4) - 22.10.2024 03:37 [09:46:20]1206 (1) - 0 [09:46:20]OFD Sender: Remove packet 70141 [09:46:20]ProducePacketName [09:46:20]name=ofd_packets/00070141 [09:46:20]NVStorageDeleteData [09:46:20]Write to MH i2c: 01 00 00 BF 4B 0A [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 07 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 07 00 BF 4B 00 00 00 00 00 EE 0C 0B [09:46:20]RasterBufferAndPrint [09:46:20]line [09:46:20]line [09:46:20]line [09:46:20]line [09:46:20]line [09:46:20]written 0, free lines is 3319 [09:46:20]MH_Cut [09:46:20]Write to MH i2c: D1 01 00 C6 4B 01 E3 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: D1 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: D1 01 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: D1 01 00 C6 4B 00 E2 [09:46:20]Write to MH i2c: 01 00 00 C7 4B 12 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]OFD Sender: No OFD packet to send [09:46:20]*** Cut start [09:46:20]*** Partial cut [09:46:20]*** CUTSNS_PIN = 1 [09:46:20]*** CUTSNS_PIN = 0 [09:46:21]*** Brake cut motor [09:46:21]Read from MH i2c: 01 [09:46:21]MH_I2C_Read... [09:46:21]*** Stop cut motor [09:46:21]*** Cut end [09:46:21]Read from MH i2c: 01 07 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: 01 07 00 C7 4B 00 00 00 00 00 FF 0F 27 [09:46:21]process_action close_receipt done [09:46:21]requested_data is exist [09:46:21]produce_requested_data [09:46:21]requested_item fm.sn is exist - process it [09:46:21]wFMCommunicate request_size=4 [09:46:21]MH_SAM_APDU [09:46:21]CAPDU: 80 11 00 00 [09:46:21]Write to MH i2c: E2 08 00 C8 4B 80 11 00 00 00 00 00 00 8D [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:21]Read from MH i2c: E2 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 17 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 17 00 C8 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [09:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:21]wFMCommunicate OK [09:46:21]requested_item fd.num is exist - process it [09:46:21]SAM_PROTO_GetFieldsCounters [09:46:21]wFMCommunicate request_size=4 [09:46:21]MH_SAM_APDU [09:46:21]CAPDU: 80 13 00 00 [09:46:21]Write to MH i2c: E2 08 00 C9 4B 80 13 00 00 00 00 00 00 90 [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:21]Read from MH i2c: E2 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 62 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 62 00 C9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 11 01 00 0E 04 04 00 C3 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 88 [09:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 11 01 00 0E 04 04 00 C3 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 [09:46:21]wFMCommunicate OK [09:46:21]SAM_PROTO_GetFieldsCounters done [09:46:21]requested_item shift.num is exist - process it [09:46:21]requested_item shift.opened is exist - process it [09:46:21]req_shift_opened [09:46:21]FM_GetShiftState [09:46:21]SAM_PROTO_GetShiftState [09:46:21]wFMCommunicate request_size=4 [09:46:21]MH_SAM_APDU [09:46:21]CAPDU: 80 13 01 00 [09:46:21]Write to MH i2c: E2 08 00 CA 4B 80 13 01 00 00 00 00 00 92 [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:21]Read from MH i2c: E2 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 0E 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 0E 00 CA 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 80 [09:46:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:46:21]wFMCommunicate OK [09:46:21]SAM_PROTO_GetShiftState done [09:46:21]FM_GetShiftState done [09:46:21]req_shift_opened done [09:46:21]requested_item shift.open_date is exist - process it [09:46:21]req_shift_open_date [09:46:21]req_shift_open_date done [09:46:21]produce_requested_data done [09:46:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70141,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:46:21]process_action_free close_receipt [09:46:21]json_value_free [09:46:21]json_value_free done [09:46:21]process_json_proto returns [09:46:21]Send response to host [09:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70141,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:46:21]free response buf [09:46:21]execute_script done [09:46:21]execute_script returns [09:46:21]free content buf [09:46:21]Sock 10.Close socket [09:46:21]Sock 10.Thread stoped [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:38]accept exits with 7 [09:46:38]New connection [09:46:38]New thread 3067026788 created [09:46:38]Thread 3067170148 joined [09:46:38]Waiting for new connection... [09:46:38] Sock 7.Parse request [09:46:38]Sock 7.Check first char [09:46:38]Sock 7.First char is OK [09:46:38]request: POST /json_proto HTTP/1.0 [09:46:38]Method: POST [09:46:38]URL: /json_proto [09:46:38]Method is POST - this is cgi request [09:46:38]url: /json_proto [09:46:38]query_string will be loaded in cgi processing [09:46:38]execute_cgi json_proto POST (null) [09:46:38]execute_cgi path=json_proto method=POST [09:46:38]POST find Content-Length [09:46:38]Host: 172.17.50.3:8080 [09:46:38]Content-Length: 683 [09:46:38]Content-Type: application/json [09:46:38] [09:46:38]POST finish read [09:46:38]Found Content-Length = 683 [09:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:46:38]execute_script... [09:46: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)2885909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:46:38]POST & json_proto [09:46:38]process_json_proto [09:46:38]json parsed OK: [09:46:38]protocol is kg_v1.0 [09:46:38]action value=close_receipt [09:46:38]process_action close_receipt [09:46:38]cmd_close_receipt [09:46:38]MH_GetDate [09:46:38]Write to MH i2c: F0 00 00 CB 4B 05 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 CB 4B 00 83 74 17 67 6B 98 1E 66 0A [09:46:38]GetLastDocTimeStamp 1729590382 [09:46:38]current date 1729590403 [09:46:38]FM_GetShiftState [09:46:38]SAM_PROTO_GetShiftState [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 01 00 [09:46:38]Write to MH i2c: E2 08 00 CC 4B 80 13 01 00 00 00 00 00 94 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 CC 4B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 82 [09:46:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetShiftState done [09:46:38]FM_GetShiftState done [09:46:38]opened in 1729555832 [09:46:38]opened+sec_in_day 1729642232 [09:46:38]quantity*price = 100015 [09:46:38]sum+1 = 100017 [09:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 90 22.10.2024 09:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70142 ФПД: 19084468267036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70142&fm=19084468267036&tin=02508201610067®Number=0000000000156251&sum=100000 [09:46:40]StoreToDocumentArchive [09:46:40]shift 195 fd 70142 [09:46:40]save to /storage/0195/doc_00070142 [09:46:40]save last doc name /storage/0195/doc_00070142 to /storage/kkm_last_doc_name [09:46:40]save OK [09:46:40]Clear old archive folders... [09:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:40]tlvbuf is B6F0F530 [09:46:40]SAM_PROTO_ClearQueue [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 09 00 00 [09:46:40]Write to MH i2c: E2 08 00 D9 4B 80 09 00 00 00 00 00 00 96 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 D9 4B 00 90 00 98 [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_ClearQueue done [09:46:40]KKMCreateOFDPacket [09:46:40]OFDProtocolAddRootSTLVToBuf [09:46:40]FM_MakeSignedData [09:46:40]FM_MakeSignedData [09:46:40]SAM_PROTO_SignData [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 01 02 [09:46:40]Write to MH i2c: E2 08 00 DA 4B 80 0D 01 02 00 00 00 00 9E [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 DA 4B 00 90 00 99 [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=255 [09:46:40]MH_SAM_APDU [09:46: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 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 5A 00 00 00 F4 03 04 00 83 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 11 01 00 35 04 06 00 11 [09:46:40]Write to MH i2c: E2 02 01 DB 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 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 5A 00 00 00 F4 03 04 00 83 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 11 01 00 35 04 06 00 11 00 00 D4 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 DB 4B 00 90 00 9A [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=10 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 05 5B 72 F3 A8 1C [09:46:40]Write to MH i2c: E2 0D 00 DC 4B 80 0D 02 02 05 00 5B 72 F3 A8 1C 00 00 2F [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 DC 4B 00 90 00 9B [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 03 02 [09:46:40]Write to MH i2c: E2 08 00 DD 4B 80 0D 03 02 00 00 00 00 A3 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 DD 4B 00 6A EC FB 78 2B 22 BA EA 90 00 5E [09:46:40]RAPDU: 6A EC FB 78 2B 22 BA EA 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_SignData done [09:46:40]FM_MakeSignedData done [09:46:40]CreateOFDProtocolMessage [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 11 00 00 [09:46:40]Write to MH i2c: E2 08 00 DE 4B 80 11 00 00 00 00 00 00 A3 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]OFD Sender: No OFD packet to send [09:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 DE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [09:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:40]wFMCommunicate OK [09:46:40]CreateOFDProtocolMessage done [09:46:40]OFDSenderStorePacket 70142 [09:46:40]StoreOFDPacket docnum=70142 [09:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 B6 07 01 BA 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 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 5A 00 00 00 F4 03 04 00 83 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 11 01 00 35 04 06 00 11 5B 72 F3 A8 1C 6A EC FB 78 2B 22 BA EA [09:46:40]CheckFolder [09:46:40]dirname=/storage/ofd_packets [09:46:40]CheckFolder done [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00070142 [09:46:40]NVStorageSaveData ofd_packets/00070142 [09:46:40]File name is /storage/ofd_packets/00070142 [09:46:40]Write 301 bytes [09:46:40]NVStorageSaveData done [09:46:40]OFDSenderStorePacket done [09:46:40]KKMCreateOFDPacket done [09:46:40]NVStorageSaveData kkm_last_timestamp [09:46:40]File name is /storage/kkm_last_timestamp [09:46:40]Write 4 bytes [09:46:40]NVStorageSaveData done [09:46:40]ExternCall_PrintAddStr [09:46:40]wPrintStart [09:46:40]Write to MH i2c: 01 00 00 DF 4B 2A [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 DF 4B 00 00 00 00 00 FF 0F 3F [09:46:40]RasterBufferAndPrint [09:46:40]line Счет N : (1)2885909 [09:46:40]line ИНН: 02508201610067 [09:46:40]line Контрольно-Кассовый Чек [09:46:40]line ПРОДАЖА [09:46:40]line ТРК (МРК, ГНК) : 12 [09:46:40]line Товар: 2710124130 [09:46:40]line Аи-92-К-5 [09:46:40]line 14.950 * 66.90 [09:46:40]line = 1000.16 [09:46:40]line НДС 12% НСП 1% [09:46:40]line > о реализуемом товаре [09:46:40]line ОКРУГЛЕНИЕ: -0.16 [09:46:40]line ИТОГО: 1000.00 [09:46:40]line Внесено: 1000.00 [09:46:40]line СДАЧА: 0.00 [09:46:40]line НСП 1% : 8.85 [09:46:40]line НДС 12% : 106.21 [09:46:40]line Наличными: 1000.00 [09:46:40]line Безнал.: 0.00 [09:46:40]line Место: АЗС № 85 "Партнер Нефть" [09:46:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:46:40]line СНО: Общий режим [09:46:40]line Чек 90 22.10.2024 09:46 [09:46:40]line Смена: 195 ФФД: 1.0 [09:46:40]line ЗНМ: 0300000167 [09:46:40]line РНМ: 0000000000156251 [09:46:40]line Версия ККМ: v1.0 [09:46:40]line ФМ: 0000000000963346 [09:46:40]line ФД: 70142 [09:46:40]line ФПД: 19084468267036 [09:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70142&fm=19084468267036&tin=02508201610067®Number=0000000000156251&sum=100000 [09:46:40]OFD Sender: Processing packet 70142 [packets to send 18, broken 17] [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00070142 [09:46:40]OFD Sender: To server: pG, [09:46:40]CommunicateWithHost lk.salyk.kg:30040 [09:46:40]ConnectInit lk.salyk.kg [09:46:40]written 0, free lines is 4095 [09:46:41]Connected sock=10 [09:46: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 34 36 0F 01 00 00 F9 B6 07 01 BA 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 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 5A 00 00 00 F4 03 04 00 83 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 11 01 00 35 04 06 00 11 5B 72 F3 A8 1C 6A EC FB 78 2B 22 BA EA [09:46: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 34 36 4F 00 00 00 9A 2A 47 00 DC FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 11 01 00 F4 03 04 00 24 1E 17 67 B6 04 01 00 00 21 AD 45 1A 12 0B E2 D7 [09:46:41]CommunicateWithHost err = 0 [09:46:41]CheckOFDResponse [09:46:41]1017 (14) - 77093643461234 [09:46:41]1041 (16) - 0000000000963346 [09:46:41]1040 (4) - 70142 [09:46:41]1012 (4) - 22.10.2024 03:38 [09:46:41]1206 (1) - 0 [09:46:41]OFD Sender: Remove packet 70142 [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00070142 [09:46:41]NVStorageDeleteData [09:46:41]Write to MH i2c: 01 00 00 0A 4C 56 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 0A 4C 00 00 00 00 00 E4 0C 4D [09:46:41]RasterBufferAndPrint [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]written 0, free lines is 3306 [09:46:41]MH_Cut [09:46:41]Write to MH i2c: D1 01 00 11 4C 01 2F [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 11 4C 00 2E [09:46:41]Write to MH i2c: 01 00 00 12 4C 5E [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]OFD Sender: No OFD packet to send [09:46:42]*** Cut start [09:46:42]*** Partial cut [09:46:42]*** CUTSNS_PIN = 1 [09:46:42]*** CUTSNS_PIN = 0 [09:46:42]*** Brake cut motor [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]*** Stop cut motor [09:46:42]*** Cut end [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 12 4C 00 00 00 00 00 FF 0F 73 [09:46:42]process_action close_receipt done [09:46:42]requested_data is exist [09:46:42]produce_requested_data [09:46:42]requested_item fm.sn is exist - process it [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 13 4C 80 11 00 00 00 00 00 00 D9 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 13 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:42]wFMCommunicate OK [09:46:42]requested_item fd.num is exist - process it [09:46:42]SAM_PROTO_GetFieldsCounters [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 00 00 [09:46:42]Write to MH i2c: E2 08 00 14 4C 80 13 00 00 00 00 00 00 DC [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 14 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 11 01 00 0E 04 04 00 C3 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 D8 [09:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 11 01 00 0E 04 04 00 C3 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 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetFieldsCounters done [09:46:42]requested_item shift.num is exist - process it [09:46:42]requested_item shift.opened is exist - process it [09:46:42]req_shift_opened [09:46:42]FM_GetShiftState [09:46:42]SAM_PROTO_GetShiftState [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 01 00 [09:46:42]Write to MH i2c: E2 08 00 15 4C 80 13 01 00 00 00 00 00 DE [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 15 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CC [09:46:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetShiftState done [09:46:42]FM_GetShiftState done [09:46:42]req_shift_opened done [09:46:42]requested_item shift.open_date is exist - process it [09:46:42]req_shift_open_date [09:46:42]req_shift_open_date done [09:46:42]produce_requested_data done [09:46:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70142,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:46:42]process_action_free close_receipt [09:46:42]json_value_free [09:46:42]json_value_free done [09:46:42]process_json_proto returns [09:46:42]Send response to host [09:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70142,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:46:42]free response buf [09:46:42]execute_script done [09:46:42]execute_script returns [09:46:42]free content buf [09:46:42]Sock 7.Close socket [09:46:42]Sock 7.Thread stoped [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:05]accept exits with 9 [09:47:05]New connection [09:47:05]New thread 3067170148 created [09:47:05]Thread 3067026788 joined [09:47:05]Waiting for new connection... [09:47:05] Sock 9.Parse request [09:47:05]Sock 9.Check first char [09:47:05]Sock 9.First char is OK [09:47:05]request: POST /json_proto HTTP/1.0 [09:47:05]Method: POST [09:47:05]URL: /json_proto [09:47:05]Method is POST - this is cgi request [09:47:05]url: /json_proto [09:47:05]query_string will be loaded in cgi processing [09:47:05]execute_cgi json_proto POST (null) [09:47:05]execute_cgi path=json_proto method=POST [09:47:05]POST find Content-Length [09:47:05]Host: 172.17.50.3:8080 [09:47:05]Content-Length: 680 [09:47:05]Content-Type: application/json [09:47:05] [09:47:05]POST finish read [09:47:05]Found Content-Length = 680 [09:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885910", "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:47:05]execute_script... [09:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885910", "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:47:05]POST & json_proto [09:47:05]process_json_proto [09:47:05]json parsed OK: [09:47:05]protocol is kg_v1.0 [09:47:05]action value=close_receipt [09:47:05]process_action close_receipt [09:47:05]cmd_close_receipt [09:47:05]MH_GetDate [09:47:05]Write to MH i2c: F0 00 00 16 4C 51 [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: F0 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: F0 09 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: F0 09 00 16 4C 00 9D 74 17 67 6B 98 1E 66 70 [09:47:05]GetLastDocTimeStamp 1729590403 [09:47:05]current date 1729590429 [09:47:05]FM_GetShiftState [09:47:05]SAM_PROTO_GetShiftState [09:47:05]wFMCommunicate request_size=4 [09:47:05]MH_SAM_APDU [09:47:05]CAPDU: 80 13 01 00 [09:47:05]Write to MH i2c: E2 08 00 17 4C 80 13 01 00 00 00 00 00 E0 [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:05]Read from MH i2c: E2 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 0E 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 0E 00 17 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CE [09:47:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:47:05]wFMCommunicate OK [09:47:05]SAM_PROTO_GetShiftState done [09:47:05]FM_GetShiftState done [09:47:05]opened in 1729555832 [09:47:05]opened+sec_in_day 1729642232 [09:47:05]quantity*price = 100050 [09:47:05]sum+1 = 100052 [09:47:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 91 22.10.2024 09:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70143 ФПД: 30640144719568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70143&fm=30640144719568&tin=02508201610067®Number=0000000000156251&sum=100000 [09:47:06]StoreToDocumentArchive [09:47:06]shift 195 fd 70143 [09:47:06]save to /storage/0195/doc_00070143 [09:47:06]save last doc name /storage/0195/doc_00070143 to /storage/kkm_last_doc_name [09:47:06]save OK [09:47:06]Clear old archive folders... [09:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:06]tlvbuf is 0128B340 [09:47:06]SAM_PROTO_ClearQueue [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 09 00 00 [09:47:06]Write to MH i2c: E2 08 00 24 4C 80 09 00 00 00 00 00 00 E2 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 24 4C 00 90 00 E4 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]SAM_PROTO_ClearQueue done [09:47:06]KKMCreateOFDPacket [09:47:06]OFDProtocolAddRootSTLVToBuf [09:47:06]FM_MakeSignedData [09:47:06]FM_MakeSignedData [09:47:06]SAM_PROTO_SignData [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 0D 01 02 [09:47:06]Write to MH i2c: E2 08 00 25 4C 80 0D 01 02 00 00 00 00 EA [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 25 4C 00 90 00 E5 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]wFMCommunicate request_size=255 [09:47:06]MH_SAM_APDU [09:47: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 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 5B 00 00 00 F4 03 04 00 9D 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 11 01 00 35 04 06 00 1B DD F6 F1 [09:47:06]Write to MH i2c: E2 02 01 26 4C 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 5B 00 00 00 F4 03 04 00 9D 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 11 01 00 35 04 06 00 1B DD F6 F1 00 00 06 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 26 4C 00 90 00 E6 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]wFMCommunicate request_size=7 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 0D 02 02 02 1E D0 [09:47:06]Write to MH i2c: E2 0A 00 27 4C 80 0D 02 02 02 00 1E D0 00 00 DF [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 27 4C 00 90 00 E7 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 0D 03 02 [09:47:06]Write to MH i2c: E2 08 00 28 4C 80 0D 03 02 00 00 00 00 EF [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0B 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0B 00 28 4C 00 2A 95 82 13 52 87 60 73 90 00 F0 [09:47:06]RAPDU: 2A 95 82 13 52 87 60 73 90 00 [09:47:06]wFMCommunicate OK [09:47:06]SAM_PROTO_SignData done [09:47:06]FM_MakeSignedData done [09:47:06]CreateOFDProtocolMessage [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 11 00 00 [09:47:06]Write to MH i2c: E2 08 00 29 4C 80 11 00 00 00 00 00 00 EF [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]OFD Sender: No OFD packet to send [09:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 17 00 [09:47:06]MH_I2C_Read... [09:47:06]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 34 36 90 00 41 [09:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:47:06]wFMCommunicate OK [09:47:06]CreateOFDProtocolMessage done [09:47:06]OFDSenderStorePacket 70143 [09:47:06]StoreOFDPacket docnum=70143 [09:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 87 64 04 01 E9 3A 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 5B 00 00 00 F4 03 04 00 9D 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 11 01 00 35 04 06 00 1B DD F6 F1 1E D0 2A 95 82 13 52 87 60 73 [09:47:06]CheckFolder [09:47:06]dirname=/storage/ofd_packets [09:47:06]CheckFolder done [09:47:06]ProducePacketName [09:47:06]name=ofd_packets/00070143 [09:47:06]NVStorageSaveData ofd_packets/00070143 [09:47:06]File name is /storage/ofd_packets/00070143 [09:47:06]Write 298 bytes [09:47:06]NVStorageSaveData done [09:47:06]OFDSenderStorePacket done [09:47:06]KKMCreateOFDPacket done [09:47:06]NVStorageSaveData kkm_last_timestamp [09:47:06]File name is /storage/kkm_last_timestamp [09:47:06]Write 4 bytes [09:47:06]NVStorageSaveData done [09:47:06]ExternCall_PrintAddStr [09:47:06]wPrintStart [09:47:06]Write to MH i2c: 01 00 00 2A 4C 76 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 2A 4C 00 00 00 00 00 FF 0F 8B [09:47:06]RasterBufferAndPrint [09:47:06]line Счет N : (1)2885910 [09:47:06]line ИНН: 02508201610067 [09:47:06]line Контрольно-Кассовый Чек [09:47:06]line ПРОДАЖА [09:47:06]line ТРК (МРК, ГНК) : 51 [09:47:06]line Товар: 2710194210 [09:47:06]line ДТ-К-5 [09:47:06]line 13.130 * 76.20 [09:47:06]line = 1000.51 [09:47:06]line НДС 12% НСП 1% [09:47:06]line > о реализуемом товаре [09:47:06]line ОКРУГЛЕНИЕ: -0.51 [09:47:06]line ИТОГО: 1000.00 [09:47:06]line Внесено: 1000.00 [09:47:06]line СДАЧА: 0.00 [09:47:06]line НСП 1% : 8.85 [09:47:06]line НДС 12% : 106.25 [09:47:06]line Наличными: 1000.00 [09:47:06]line Безнал.: 0.00 [09:47:06]line Место: АЗС № 85 "Партнер Нефть" [09:47:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:47:06]line СНО: Общий режим [09:47:06]line Чек 91 22.10.2024 09:47 [09:47:06]line Смена: 195 ФФД: 1.0 [09:47:06]line ЗНМ: 0300000167 [09:47:06]line РНМ: 0000000000156251 [09:47:06]line Версия ККМ: v1.0 [09:47:06]line ФМ: 0000000000963346 [09:47:06]line ФД: 70143 [09:47:06]line ФПД: 30640144719568 [09:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70143&fm=30640144719568&tin=02508201610067®Number=0000000000156251&sum=100000 [09:47:07]OFD Sender: Processing packet 70143 [packets to send 18, broken 17] [09:47:07]ProducePacketName [09:47:07]name=ofd_packets/00070143 [09:47:07]OFD Sender: To server: pG, [09:47:07]CommunicateWithHost lk.salyk.kg:30040 [09:47:07]ConnectInit lk.salyk.kg [09:47:07]written 0, free lines is 4095 [09:47:07]Connected sock=10 [09:47: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 34 36 0C 01 00 00 87 64 04 01 E9 3A 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 5B 00 00 00 F4 03 04 00 9D 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 11 01 00 35 04 06 00 1B DD F6 F1 1E D0 2A 95 82 13 52 87 60 73 [09:47: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 34 36 4F 00 00 00 9D AC 47 00 1C 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 11 01 00 F4 03 04 00 3F 1E 17 67 B6 04 01 00 00 0A 8B 17 8C 8D 83 CF E8 [09:47:07]CommunicateWithHost err = 0 [09:47:07]CheckOFDResponse [09:47:07]1017 (14) - 77093643461234 [09:47:07]1041 (16) - 0000000000963346 [09:47:07]1040 (4) - 70143 [09:47:07]1012 (4) - 22.10.2024 03:38 [09:47:07]1206 (1) - 0 [09:47:07]OFD Sender: Remove packet 70143 [09:47:07]ProducePacketName [09:47:07]name=ofd_packets/00070143 [09:47:07]NVStorageDeleteData [09:47:07]Write to MH i2c: 01 00 00 55 4C A1 [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: 01 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: 01 07 00 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: 01 07 00 55 4C 00 00 00 00 00 DD 0C 91 [09:47:07]RasterBufferAndPrint [09:47:07]line [09:47:07]line [09:47:07]line [09:47:07]line [09:47:07]line [09:47:07]written 0, free lines is 3302 [09:47:07]MH_Cut [09:47:07]Write to MH i2c: D1 01 00 5C 4C 01 7A [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: D1 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: D1 01 00 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: D1 01 00 5C 4C 00 79 [09:47:07]Write to MH i2c: 01 00 00 5D 4C A9 [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]OFD Sender: No OFD packet to send [09:47:08]*** Cut start [09:47:08]*** Partial cut [09:47:08]*** CUTSNS_PIN = 1 [09:47:08]*** CUTSNS_PIN = 0 [09:47:08]*** Brake cut motor [09:47:08]Read from MH i2c: 01 [09:47:08]MH_I2C_Read... [09:47:08]*** Stop cut motor [09:47:08]*** Cut end [09:47:08]Read from MH i2c: 01 07 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: 01 07 00 5D 4C 00 00 00 00 00 FF 0F BE [09:47:08]process_action close_receipt done [09:47:08]requested_data is exist [09:47:08]produce_requested_data [09:47:08]requested_item fm.sn is exist - process it [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 11 00 00 [09:47:08]Write to MH i2c: E2 08 00 5E 4C 80 11 00 00 00 00 00 00 24 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:09]Read from MH i2c: E2 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 17 00 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 17 00 5E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [09:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:47:09]wFMCommunicate OK [09:47:09]requested_item fd.num is exist - process it [09:47:09]SAM_PROTO_GetFieldsCounters [09:47:09]wFMCommunicate request_size=4 [09:47:09]MH_SAM_APDU [09:47:09]CAPDU: 80 13 00 00 [09:47:09]Write to MH i2c: E2 08 00 5F 4C 80 13 00 00 00 00 00 00 27 [09:47:09]Write i2c OK [09:47:09]MH_I2C_Read... [09:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:09]Read from MH i2c: E2 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 62 00 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 62 00 5F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 11 01 00 0E 04 04 00 C3 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 27 [09:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 11 01 00 0E 04 04 00 C3 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 [09:47:09]wFMCommunicate OK [09:47:09]SAM_PROTO_GetFieldsCounters done [09:47:09]requested_item shift.num is exist - process it [09:47:09]requested_item shift.opened is exist - process it [09:47:09]req_shift_opened [09:47:09]FM_GetShiftState [09:47:09]SAM_PROTO_GetShiftState [09:47:09]wFMCommunicate request_size=4 [09:47:09]MH_SAM_APDU [09:47:09]CAPDU: 80 13 01 00 [09:47:09]Write to MH i2c: E2 08 00 60 4C 80 13 01 00 00 00 00 00 29 [09:47:09]Write i2c OK [09:47:09]MH_I2C_Read... [09:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:09]Read from MH i2c: E2 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 0E 00 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: E2 0E 00 60 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 17 [09:47:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:47:09]wFMCommunicate OK [09:47:09]SAM_PROTO_GetShiftState done [09:47:09]FM_GetShiftState done [09:47:09]req_shift_opened done [09:47:09]requested_item shift.open_date is exist - process it [09:47:09]req_shift_open_date [09:47:09]req_shift_open_date done [09:47:09]produce_requested_data done [09:47:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70143,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:47:09]process_action_free close_receipt [09:47:09]json_value_free [09:47:09]json_value_free done [09:47:09]process_json_proto returns [09:47:09]Send response to host [09:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70143,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:47:09]free response buf [09:47:09]execute_script done [09:47:09]execute_script returns [09:47:09]free content buf [09:47:09]Sock 9.Close socket [09:47:09]Sock 9.Thread stoped [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:11]accept exits with 7 [09:48:11]New connection [09:48:11]New thread 3067026788 created [09:48:11]Thread 3067170148 joined [09:48:11]Waiting for new connection... [09:48:11] Sock 7.Parse request [09:48:11]Sock 7.Check first char [09:48:11]Sock 7.First char is OK [09:48:11]request: POST /json_proto HTTP/1.0 [09:48:11]Method: POST [09:48:11]URL: /json_proto [09:48:11]Method is POST - this is cgi request [09:48:11]url: /json_proto [09:48:11]query_string will be loaded in cgi processing [09:48:11]execute_cgi json_proto POST (null) [09:48:11]execute_cgi path=json_proto method=POST [09:48:11]POST find Content-Length [09:48:11]Host: 172.17.50.3:8080 [09:48:11]Content-Length: 801 [09:48:11]Content-Type: application/json [09:48:11] [09:48:11]POST finish read [09:48:11]Found Content-Length = 801 [09:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4194537", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:11]execute_script... [09:48: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)2885911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4194537", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:11]POST & json_proto [09:48:11]process_json_proto [09:48:11]json parsed OK: [09:48:11]protocol is kg_v1.0 [09:48:11]action value=close_receipt [09:48:11]process_action close_receipt [09:48:11]cmd_close_receipt [09:48:11]MH_GetDate [09:48:11]Write to MH i2c: F0 00 00 61 4C 9C [09:48:11]Write i2c OK [09:48:11]MH_I2C_Read... [09:48:11]Read from MH i2c: F0 [09:48:11]MH_I2C_Read... [09:48:11]Read from MH i2c: F0 09 00 [09:48:11]MH_I2C_Read... [09:48:11]Read from MH i2c: F0 09 00 61 4C 00 DF 74 17 67 6B 98 1E 66 FD [09:48:11]GetLastDocTimeStamp 1729590429 [09:48:11]current date 1729590495 [09:48:11]FM_GetShiftState [09:48:11]SAM_PROTO_GetShiftState [09:48:11]wFMCommunicate request_size=4 [09:48:11]MH_SAM_APDU [09:48:11]CAPDU: 80 13 01 00 [09:48:11]Write to MH i2c: E2 08 00 62 4C 80 13 01 00 00 00 00 00 2B [09:48:11]Write i2c OK [09:48:11]MH_I2C_Read... [09:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:11]Read from MH i2c: E2 [09:48:11]MH_I2C_Read... [09:48:11]Read from MH i2c: E2 0E 00 [09:48:11]MH_I2C_Read... [09:48:11]Read from MH i2c: E2 0E 00 62 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 19 [09:48:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:48:11]wFMCommunicate OK [09:48:11]SAM_PROTO_GetShiftState done [09:48:11]FM_GetShiftState done [09:48:11]opened in 1729555832 [09:48:11]opened+sec_in_day 1729642232 [09:48:11]quantity*price = 0 [09:48:11]sum+1 = 1 [09:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 92 22.10.2024 09:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4194537 ФМ: 0000000000963346 ФД: 70144 ФПД: 16628352038485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70144&fm=16628352038485&tin=02508201610067®Number=0000000000156251&sum=0 [09:48:12]StoreToDocumentArchive [09:48:12]shift 195 fd 70144 [09:48:12]save to /storage/0195/doc_00070144 [09:48:12]save last doc name /storage/0195/doc_00070144 to /storage/kkm_last_doc_name [09:48:12]save OK [09:48:12]Clear old archive folders... [09:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:12]tlvbuf is 01155470 [09:48:12]SAM_PROTO_ClearQueue [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 09 00 00 [09:48:12]Write to MH i2c: E2 08 00 6F 4C 80 09 00 00 00 00 00 00 2D [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 6F 4C 00 90 00 2F [09:48:12]RAPDU: 90 00 [09:48:12]wFMCommunicate OK [09:48:12]SAM_PROTO_ClearQueue done [09:48:12]KKMCreateOFDPacket [09:48:12]OFDProtocolAddRootSTLVToBuf [09:48:12]FM_MakeSignedData [09:48:12]FM_MakeSignedData [09:48:12]SAM_PROTO_SignData [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 0D 01 02 [09:48:12]Write to MH i2c: E2 08 00 70 4C 80 0D 01 02 00 00 00 00 35 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 70 4C 00 90 00 30 [09:48:12]RAPDU: 90 00 [09:48:12]wFMCommunicate OK [09:48:12]wFMCommunicate request_size=255 [09:48:12]MH_SAM_APDU [09:48: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 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 5C 00 00 00 F4 03 04 00 DF 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 12 01 00 35 04 06 00 0F [09:48:12]Write to MH i2c: E2 02 01 71 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 DF 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 12 01 00 35 04 06 00 0F 00 00 82 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 71 4C 00 90 00 31 [09:48:12]RAPDU: 90 00 [09:48:12]wFMCommunicate OK [09:48:12]wFMCommunicate request_size=10 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 0D 02 02 05 1F 97 04 36 55 [09:48:12]Write to MH i2c: E2 0D 00 72 4C 80 0D 02 02 05 00 1F 97 04 36 55 00 00 87 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 03 00 72 4C 00 90 00 32 [09:48:12]RAPDU: 90 00 [09:48:12]wFMCommunicate OK [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 0D 03 02 [09:48:12]Write to MH i2c: E2 08 00 73 4C 80 0D 03 02 00 00 00 00 3A [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 0B 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 0B 00 73 4C 00 05 E5 7C B6 4C B2 96 AA 90 00 95 [09:48:12]RAPDU: 05 E5 7C B6 4C B2 96 AA 90 00 [09:48:12]wFMCommunicate OK [09:48:12]SAM_PROTO_SignData done [09:48:12]FM_MakeSignedData done [09:48:12]CreateOFDProtocolMessage [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 11 00 00 [09:48:12]Write to MH i2c: E2 08 00 74 4C 80 11 00 00 00 00 00 00 3A [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 17 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 17 00 74 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [09:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:12]wFMCommunicate OK [09:48:12]CreateOFDProtocolMessage done [09:48:12]OFDSenderStorePacket 70144 [09:48:12]StoreOFDPacket docnum=70144 [09:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9E 72 07 01 C1 9F 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 5C 00 00 00 F4 03 04 00 DF 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 12 01 00 35 04 06 00 0F 1F 97 04 36 55 05 E5 7C B6 4C B2 96 AA [09:48:12]CheckFolder [09:48:12]dirname=/storage/ofd_packets [09:48:12]CheckFolder done [09:48:12]ProducePacketName [09:48:12]name=ofd_packets/00070144 [09:48:12]NVStorageSaveData ofd_packets/00070144 [09:48:12]File name is /storage/ofd_packets/00070144 [09:48:12]Write 301 bytes [09:48:12]NVStorageSaveData done [09:48:12]OFDSenderStorePacket done [09:48:12]KKMCreateOFDPacket done [09:48:12]NVStorageSaveData kkm_last_timestamp [09:48:12]File name is /storage/kkm_last_timestamp [09:48:12]Write 4 bytes [09:48:12]NVStorageSaveData done [09:48:12]ExternCall_PrintAddStr [09:48:12]wPrintStart [09:48:12]Write to MH i2c: 01 00 00 75 4C C1 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: 01 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: 01 07 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: 01 07 00 75 4C 00 00 00 00 00 FF 0F D6 [09:48:12]RasterBufferAndPrint [09:48:12]line Счет N : (1)2885911 [09:48:12]line ИНН: 02508201610067 [09:48:12]line Контрольно-Кассовый Чек [09:48:12]line ПРОДАЖА [09:48:12]line ТРК (МРК, ГНК) : 42 [09:48:12]line Товар: 2710124130 [09:48:12]line Аи-92-К-5 [09:48:12]line 10.000 * 0.00 [09:48:12]line = 0.00 [09:48:12]line НДС 12% НСП 1% [09:48:12]line > о реализуемом товаре [09:48:12]line ИТОГО: 0.00 [09:48:12]line НСП 1% : 0.00 [09:48:12]line НДС 12% : 0.00 [09:48:12]line Наличными: 0.00 [09:48:12]line Безнал.: 0.00 [09:48:12]line Место: АЗС № 85 "Партнер Нефть" [09:48:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:48:12]line СНО: Общий режим [09:48:12]line Чек 92 22.10.2024 09:48 [09:48:12]line Смена: 195 ФФД: 1.0 [09:48:12]line ЗНМ: 0300000167 [09:48:12]line РНМ: 0000000000156251 [09:48:12]line Версия ККМ: v1.0 [09:48:12]line Талоны: Топливные Талоны [09:48:12]line 4194537 [09:48:12]line ФМ: 0000000000963346 [09:48:12]line ФД: 70144 [09:48:12]line ФПД: 16628352038485 [09:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70144&fm=16628352038485&tin=02508201610067®Number=0000000000156251&sum=0 [09:48:13]OFD Sender: Processing packet 70144 [packets to send 18, broken 17] [09:48:13]ProducePacketName [09:48:13]name=ofd_packets/00070144 [09:48:13]OFD Sender: To server: pG, [09:48:13]CommunicateWithHost lk.salyk.kg:30040 [09:48:13]ConnectInit lk.salyk.kg [09:48:13]written 0, free lines is 4095 [09:48:13]Connected sock=10 [09:48: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 34 36 0F 01 00 00 9E 72 07 01 C1 9F 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 5C 00 00 00 F4 03 04 00 DF 74 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 12 01 00 35 04 06 00 0F 1F 97 04 36 55 05 E5 7C B6 4C B2 96 AA [09: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 34 36 4F 00 00 00 37 C6 47 00 0B 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 12 01 00 F4 03 04 00 80 1E 17 67 B6 04 01 00 00 DF 25 5D FC 7E 1E 86 34 [09:48:13]CommunicateWithHost err = 0 [09:48:13]CheckOFDResponse [09:48:13]1017 (14) - 77093643461234 [09:48:13]1041 (16) - 0000000000963346 [09:48:13]1040 (4) - 70144 [09:48:13]1012 (4) - 22.10.2024 03:39 [09:48:13]1206 (1) - 0 [09:48:13]OFD Sender: Remove packet 70144 [09:48:13]ProducePacketName [09:48:13]name=ofd_packets/00070144 [09:48:13]NVStorageDeleteData [09:48:13]Write to MH i2c: 01 00 00 9F 4C EB [09:48:13]Write i2c OK [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: 01 [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: 01 07 00 [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: 01 07 00 9F 4C 00 00 00 00 00 08 0D 07 [09:48:13]RasterBufferAndPrint [09:48:13]line [09:48:13]line [09:48:13]line [09:48:13]line [09:48:13]line [09:48:13]written 0, free lines is 3344 [09:48:13]MH_Cut [09:48:13]Write to MH i2c: D1 01 00 A6 4C 01 C4 [09:48:13]Write i2c OK [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: D1 [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: D1 01 00 [09:48:13]MH_I2C_Read... [09:48:13]Read from MH i2c: D1 01 00 A6 4C 00 C3 [09:48:13]Write to MH i2c: 01 00 00 A7 4C F3 [09:48:13]Write i2c OK [09:48:13]MH_I2C_Read... [09:48:13]OFD Sender: No OFD packet to send [09:48:14]*** Cut start [09:48:14]*** Partial cut [09:48:14]*** CUTSNS_PIN = 1 [09:48:14]*** CUTSNS_PIN = 0 [09:48:14]*** Brake cut motor [09:48:14]Read from MH i2c: 01 [09:48:14]MH_I2C_Read... [09:48:14]*** Stop cut motor [09:48:14]*** Cut end [09:48:14]Read from MH i2c: 01 07 00 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: 01 07 00 A7 4C 00 00 00 00 00 FF 0F 08 [09:48:14]process_action close_receipt done [09:48:14]requested_data is exist [09:48:14]produce_requested_data [09:48:14]requested_item fm.sn is exist - process it [09:48:14]wFMCommunicate request_size=4 [09:48:14]MH_SAM_APDU [09:48:14]CAPDU: 80 11 00 00 [09:48:14]Write to MH i2c: E2 08 00 A8 4C 80 11 00 00 00 00 00 00 6E [09:48:14]Write i2c OK [09:48:14]MH_I2C_Read... [09:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:14]Read from MH i2c: E2 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: E2 17 00 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: E2 17 00 A8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [09:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:14]wFMCommunicate OK [09:48:14]requested_item fd.num is exist - process it [09:48:14]SAM_PROTO_GetFieldsCounters [09:48:14]wFMCommunicate request_size=4 [09:48:14]MH_SAM_APDU [09:48:14]CAPDU: 80 13 00 00 [09:48:14]Write to MH i2c: E2 08 00 A9 4C 80 13 00 00 00 00 00 00 71 [09:48:14]Write i2c OK [09:48:14]MH_I2C_Read... [09:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:15]Read from MH i2c: E2 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 62 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 62 00 A9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 12 01 00 0E 04 04 00 C3 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 76 [09:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 12 01 00 0E 04 04 00 C3 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 [09:48:15]wFMCommunicate OK [09:48:15]SAM_PROTO_GetFieldsCounters done [09:48:15]requested_item shift.num is exist - process it [09:48:15]requested_item shift.opened is exist - process it [09:48:15]req_shift_opened [09:48:15]FM_GetShiftState [09:48:15]SAM_PROTO_GetShiftState [09:48:15]wFMCommunicate request_size=4 [09:48:15]MH_SAM_APDU [09:48:15]CAPDU: 80 13 01 00 [09:48:15]Write to MH i2c: E2 08 00 AA 4C 80 13 01 00 00 00 00 00 73 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:15]Read from MH i2c: E2 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 0E 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 0E 00 AA 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 61 [09:48:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:48:15]wFMCommunicate OK [09:48:15]SAM_PROTO_GetShiftState done [09:48:15]FM_GetShiftState done [09:48:15]req_shift_opened done [09:48:15]requested_item shift.open_date is exist - process it [09:48:15]req_shift_open_date [09:48:15]req_shift_open_date done [09:48:15]produce_requested_data done [09:48:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70144,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:48:15]process_action_free close_receipt [09:48:15]json_value_free [09:48:15]json_value_free done [09:48:15]process_json_proto returns [09:48:15]Send response to host [09:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70144,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:48:15]free response buf [09:48:15]execute_script done [09:48:15]execute_script returns [09:48:15]free content buf [09:48:15]Sock 7.Close socket [09:48:15]Sock 7.Thread stoped [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]accept exits with 9 [09:48:43]New connection [09:48:43]New thread 3067170148 created [09:48:43]Thread 3067026788 joined [09:48:43]Waiting for new connection... [09:48:43] Sock 9.Parse request [09:48:43]Sock 9.Check first char [09:48:43]Sock 9.First char is OK [09:48:43]request: POST /json_proto HTTP/1.0 [09:48:43]Method: POST [09:48:43]URL: /json_proto [09:48:43]Method is POST - this is cgi request [09:48:43]url: /json_proto [09:48:43]query_string will be loaded in cgi processing [09:48:43]execute_cgi json_proto POST (null) [09:48:43]execute_cgi path=json_proto method=POST [09:48:43]POST find Content-Length [09:48:43]Host: 172.17.50.3:8080 [09:48:43]Content-Length: 980 [09:48:43]Content-Type: application/json [09:48:43] [09:48:43]POST finish read [09:48:43]Found Content-Length = 980 [09:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.040, "sum" : 8500.61, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.04 \u0441\u043E\u043C", "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]execute_script... [09:48: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)2885908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.040, "sum" : 8500.61, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.04 \u0441\u043E\u043C", "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]POST & json_proto [09:48:43]process_json_proto [09:48:43]json parsed OK: [09:48:43]protocol is kg_v1.0 [09:48:43]action value=close_receipt [09:48:43]process_action close_receipt [09:48:43]cmd_close_receipt [09:48:43]MH_GetDate [09:48:43]Write to MH i2c: F0 00 00 AB 4C E6 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 AB 4C 00 FF 74 17 67 6B 98 1E 66 67 [09:48:43]GetLastDocTimeStamp 1729590495 [09:48:43]current date 1729590527 [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 AC 4C 80 13 01 00 00 00 00 00 75 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 AC 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 63 [09:48:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]opened in 1729555832 [09:48:43]opened+sec_in_day 1729642232 [09:48:43]quantity*price = 850060 [09:48:43]sum+1 = 850062 [09:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 8500.00 Внесено: 8500.00 СДАЧА: 0.00 НСП 1% : 75.23 НДС 12% : 902.72 Наличными: 8500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 93 22.10.2024 09:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 113.04 сом ФМ: 0000000000963346 ФД: 70145 ФПД: 195813304321356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094848&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70145&fm=195813304321356&tin=02508201610067®Number=0000000000156251&sum=850000 [09:48:44]StoreToDocumentArchive [09:48:44]shift 195 fd 70145 [09:48:44]save to /storage/0195/doc_00070145 [09:48:44]save last doc name /storage/0195/doc_00070145 to /storage/kkm_last_doc_name [09:48:44]save OK [09:48:44]Clear old archive folders... [09:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:44]tlvbuf is 011698A0 [09:48:44]SAM_PROTO_ClearQueue [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 09 00 00 [09:48:44]Write to MH i2c: E2 08 00 B9 4C 80 09 00 00 00 00 00 00 77 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 B9 4C 00 90 00 79 [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_ClearQueue done [09:48:44]KKMCreateOFDPacket [09:48:44]OFDProtocolAddRootSTLVToBuf [09:48:44]FM_MakeSignedData [09:48:44]FM_MakeSignedData [09:48:44]SAM_PROTO_SignData [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 01 02 [09:48:44]Write to MH i2c: E2 08 00 BA 4C 80 0D 01 02 00 00 00 00 7F [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 BA 4C 00 90 00 7A [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=255 [09:48:44]MH_SAM_APDU [09:48:44]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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 00 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 12 01 00 35 04 06 00 B2 17 56 72 [09:48:44]Write to MH i2c: E2 02 01 BB 4C 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 00 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 12 01 00 35 04 06 00 B2 17 56 72 00 00 0F [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 BB 4C 00 90 00 7B [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=7 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 02 02 02 45 4C [09:48:44]Write to MH i2c: E2 0A 00 BC 4C 80 0D 02 02 02 00 45 4C 00 00 17 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 BC 4C 00 90 00 7C [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 03 02 [09:48:44]Write to MH i2c: E2 08 00 BD 4C 80 0D 03 02 00 00 00 00 84 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0B 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0B 00 BD 4C 00 DC A7 B7 4E 5E 66 8D E0 90 00 3E [09:48:44]RAPDU: DC A7 B7 4E 5E 66 8D E0 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_SignData done [09:48:44]FM_MakeSignedData done [09:48:44]CreateOFDProtocolMessage [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 11 00 00 [09:48:44]Write to MH i2c: E2 08 00 BE 4C 80 11 00 00 00 00 00 00 84 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 17 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 17 00 BE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [09:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:44]wFMCommunicate OK [09:48:44]CreateOFDProtocolMessage done [09:48:44]OFDSenderStorePacket 70145 [09:48:44]StoreOFDPacket docnum=70145 [09:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AA 29 04 01 1E 29 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 00 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 12 01 00 35 04 06 00 B2 17 56 72 45 4C DC A7 B7 4E 5E 66 8D E0 [09:48:44]CheckFolder [09:48:44]dirname=/storage/ofd_packets [09:48:44]CheckFolder done [09:48:44]ProducePacketName [09:48:44]name=ofd_packets/00070145 [09:48:44]NVStorageSaveData ofd_packets/00070145 [09:48:44]File name is /storage/ofd_packets/00070145 [09:48:44]Write 298 bytes [09:48:44]NVStorageSaveData done [09:48:44]OFDSenderStorePacket done [09:48:44]KKMCreateOFDPacket done [09:48:44]NVStorageSaveData kkm_last_timestamp [09:48:44]File name is /storage/kkm_last_timestamp [09:48:44]Write 4 bytes [09:48:44]NVStorageSaveData done [09:48:44]ExternCall_PrintAddStr [09:48:44]wPrintStart [09:48:44]Write to MH i2c: 01 00 00 BF 4C 0B [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 07 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 07 00 BF 4C 00 00 00 00 00 FF 0F 20 [09:48:44]RasterBufferAndPrint [09:48:44]line Счет N : (1)2885908 [09:48:44]line ИНН: 02508201610067 [09:48:44]line Контрольно-Кассовый Чек [09:48:44]line ПРОДАЖА [09:48:44]line ТРК (МРК, ГНК) : 61 [09:48:44]line Товар: 2710194210 [09:48:44]line ДТ-К-5 [09:48:44]line 113.040 * 75.20 [09:48:44]line = 8500.61 [09:48:44]line НДС 12% НСП 1% [09:48:44]line > о реализуемом товаре [09:48:44]line ОКРУГЛЕНИЕ: -0.61 [09:48:44]line ИТОГО: 8500.00 [09:48:44]line Внесено: 8500.00 [09:48:44]line СДАЧА: 0.00 [09:48:44]line НСП 1% : 75.23 [09:48:44]line НДС 12% : 902.72 [09:48:44]line Наличными: 8500.00 [09:48:44]line Безнал.: 0.00 [09:48:44]line Место: АЗС № 85 "Партнер Нефть" [09:48:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:48:44]line СНО: Общий режим [09:48:44]line Чек 93 22.10.2024 09:48 [09:48:44]line Смена: 195 ФФД: 1.0 [09:48:44]line ЗНМ: 0300000167 [09:48:44]line РНМ: 0000000000156251 [09:48:44]line Версия ККМ: v1.0 [09:48:44]line [09:48:44]line Дисконтная программа [09:48:44]line ДТ [09:48:44]line номер 85 [09:48:44]line сэкономлено 113.04 сом [09:48:44]line ФМ: 0000000000963346 [09:48:44]line ФД: 70145 [09:48:44]line ФПД: 195813304321356 [09:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094848&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70145&fm=195813304321356&tin=02508201610067®Number=0000000000156251&sum=850000 [09:48:45]OFD Sender: Processing packet 70145 [packets to send 18, broken 17] [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00070145 [09:48:45]OFD Sender: To server: pG, [09:48:45]CommunicateWithHost lk.salyk.kg:30040 [09:48:45]ConnectInit lk.salyk.kg [09:48:45]written 0, free lines is 4095 [09:48:45]Connected sock=10 [09:48: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 34 36 0C 01 00 00 AA 29 04 01 1E 29 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 00 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 12 01 00 35 04 06 00 B2 17 56 72 45 4C DC A7 B7 4E 5E 66 8D E0 [09:48: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 34 36 4F 00 00 00 FA FE 47 00 BA 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 34 36 10 04 04 00 01 12 01 00 F4 03 04 00 A1 1E 17 67 B6 04 01 00 00 FE 87 14 61 49 36 2C 54 [09:48:45]CommunicateWithHost err = 0 [09:48:45]CheckOFDResponse [09:48:45]1017 (14) - 77093643461234 [09:48:45]1041 (16) - 0000000000963346 [09:48:45]1040 (4) - 70145 [09:48:45]1012 (4) - 22.10.2024 03:40 [09:48:45]1206 (1) - 0 [09:48:45]OFD Sender: Remove packet 70145 [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00070145 [09:48:45]NVStorageDeleteData [09:48:45]Write to MH i2c: 01 00 00 EF 4C 3B [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 EF 4C 00 00 00 00 00 8C 0C DA [09:48:45]RasterBufferAndPrint [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]written 0, free lines is 3218 [09:48:45]MH_Cut [09:48:45]Write to MH i2c: D1 01 00 F6 4C 01 14 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 01 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 01 00 F6 4C 00 13 [09:48:45]Write to MH i2c: 01 00 00 F7 4C 43 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:46]OFD Sender: No OFD packet to send [09:48:46]*** Cut start [09:48:46]*** Partial cut [09:48:46]*** CUTSNS_PIN = 1 [09:48:46]*** CUTSNS_PIN = 0 [09:48:46]*** Brake cut motor [09:48:47]Read from MH i2c: 01 [09:48:47]MH_I2C_Read... [09:48:47]*** Stop cut motor [09:48:47]*** Cut end [09:48:47]Read from MH i2c: 01 07 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 F7 4C 00 00 00 00 00 FF 0F 58 [09:48:47]process_action close_receipt done [09:48:47]requested_data is exist [09:48:47]produce_requested_data [09:48:47]requested_item fm.sn is exist - process it [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 11 00 00 [09:48:47]Write to MH i2c: E2 08 00 F8 4C 80 11 00 00 00 00 00 00 BE [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 F8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [09:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:47]wFMCommunicate OK [09:48:47]requested_item fd.num is exist - process it [09:48:47]SAM_PROTO_GetFieldsCounters [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 00 00 [09:48:47]Write to MH i2c: E2 08 00 F9 4C 80 13 00 00 00 00 00 00 C1 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 F9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 12 01 00 0E 04 04 00 C3 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 CA [09:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 12 01 00 0E 04 04 00 C3 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 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetFieldsCounters done [09:48:47]requested_item shift.num is exist - process it [09:48:47]requested_item shift.opened is exist - process it [09:48:47]req_shift_opened [09:48:47]FM_GetShiftState [09:48:47]SAM_PROTO_GetShiftState [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 01 00 [09:48:47]Write to MH i2c: E2 08 00 FA 4C 80 13 01 00 00 00 00 00 C3 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 FA 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B1 [09:48:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetShiftState done [09:48:47]FM_GetShiftState done [09:48:47]req_shift_opened done [09:48:47]requested_item shift.open_date is exist - process it [09:48:47]req_shift_open_date [09:48:47]req_shift_open_date done [09:48:47]produce_requested_data done [09:48:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70145,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:48:47]process_action_free close_receipt [09:48:47]json_value_free [09:48:47]json_value_free done [09:48:47]process_json_proto returns [09:48:47]Send response to host [09:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70145,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:48:47]free response buf [09:48:47]execute_script done [09:48:47]execute_script returns [09:48:47]free content buf [09:48:47]Sock 9.Close socket [09:48:47]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:24]accept exits with 7 [09:52:24]New connection [09:52:24]New thread 3067026788 created [09:52:24]Thread 3067170148 joined [09:52:24]Waiting for new connection... [09:52:24] Sock 7.Parse request [09:52:24]Sock 7.Check first char [09:52:24]Sock 7.First char is OK [09:52:24]request: POST /json_proto HTTP/1.0 [09:52:24]Method: POST [09:52:24]URL: /json_proto [09:52:24]Method is POST - this is cgi request [09:52:24]url: /json_proto [09:52:24]query_string will be loaded in cgi processing [09:52:24]execute_cgi json_proto POST (null) [09:52:24]execute_cgi path=json_proto method=POST [09:52:24]POST find Content-Length [09:52:24]Host: 172.17.50.3:8080 [09:52:24]Content-Length: 684 [09:52:24]Content-Type: application/json [09:52:24] [09:52:24]POST finish read [09:52:24]Found Content-Length = 684 [09:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:52:24]execute_script... [09:52: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)2885912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:52:24]POST & json_proto [09:52:24]process_json_proto [09:52:24]json parsed OK: [09:52:24]protocol is kg_v1.0 [09:52:24]action value=close_receipt [09:52:24]process_action close_receipt [09:52:24]cmd_close_receipt [09:52:24]MH_GetDate [09:52:24]Write to MH i2c: F0 00 00 FB 4C 36 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: F0 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: F0 09 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: F0 09 00 FB 4C 00 DD 75 17 67 6B 98 1E 66 96 [09:52:24]GetLastDocTimeStamp 1729590528 [09:52:24]current date 1729590749 [09:52:24]FM_GetShiftState [09:52:24]SAM_PROTO_GetShiftState [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 13 01 00 [09:52:24]Write to MH i2c: E2 08 00 FC 4C 80 13 01 00 00 00 00 00 C5 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0E 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0E 00 FC 4C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [09:52:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:52:25]wFMCommunicate OK [09:52:25]SAM_PROTO_GetShiftState done [09:52:25]FM_GetShiftState done [09:52:25]opened in 1729555832 [09:52:25]opened+sec_in_day 1729642232 [09:52:25]quantity*price = 50025 [09:52:25]sum+1 = 50027 [09:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 94 22.10.2024 09:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70146 ФПД: 166740646287638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095229&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70146&fm=166740646287638&tin=02508201610067®Number=0000000000156251&sum=50000 [09:52:26]StoreToDocumentArchive [09:52:26]shift 195 fd 70146 [09:52:26]save to /storage/0195/doc_00070146 [09:52:26]save last doc name /storage/0195/doc_00070146 to /storage/kkm_last_doc_name [09:52:26]save OK [09:52:26]Clear old archive folders... [09:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:52:26]tlvbuf is 01109D30 [09:52:26]SAM_PROTO_ClearQueue [09:52:26]wFMCommunicate request_size=4 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 09 00 00 [09:52:26]Write to MH i2c: E2 08 00 09 4D 80 09 00 00 00 00 00 00 C8 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 09 4D 00 90 00 CA [09:52:26]RAPDU: 90 00 [09:52:26]wFMCommunicate OK [09:52:26]SAM_PROTO_ClearQueue done [09:52:26]KKMCreateOFDPacket [09:52:26]OFDProtocolAddRootSTLVToBuf [09:52:26]FM_MakeSignedData [09:52:26]FM_MakeSignedData [09:52:26]SAM_PROTO_SignData [09:52:26]wFMCommunicate request_size=4 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 0D 01 02 [09:52:26]Write to MH i2c: E2 08 00 0A 4D 80 0D 01 02 00 00 00 00 D0 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 0A 4D 00 90 00 CB [09:52:26]RAPDU: 90 00 [09:52:26]wFMCommunicate OK [09:52:26]wFMCommunicate request_size=255 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 DD 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 12 01 [09:52:26]Write to MH i2c: E2 02 01 0B 4D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 DD 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 12 01 00 00 D8 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]OFD Sender: No OFD packet to send [09:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 0B 4D 00 90 00 CC [09:52:26]RAPDU: 90 00 [09:52:26]wFMCommunicate OK [09:52:26]wFMCommunicate request_size=16 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 97 A6 54 FD D9 16 [09:52:26]Write to MH i2c: E2 13 00 0C 4D 80 0D 02 02 0B 00 00 35 04 06 00 97 A6 54 FD D9 16 00 00 A5 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 03 00 0C 4D 00 90 00 CD [09:52:26]RAPDU: 90 00 [09:52:26]wFMCommunicate OK [09:52:26]wFMCommunicate request_size=4 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 0D 03 02 [09:52:26]Write to MH i2c: E2 08 00 0D 4D 80 0D 03 02 00 00 00 00 D5 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 0B 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 0B 00 0D 4D 00 79 A7 0A 12 A1 C0 9B 43 90 00 51 [09:52:26]RAPDU: 79 A7 0A 12 A1 C0 9B 43 90 00 [09:52:26]wFMCommunicate OK [09:52:26]SAM_PROTO_SignData done [09:52:26]FM_MakeSignedData done [09:52:26]CreateOFDProtocolMessage [09:52:26]wFMCommunicate request_size=4 [09:52:26]MH_SAM_APDU [09:52:26]CAPDU: 80 11 00 00 [09:52:26]Write to MH i2c: E2 08 00 0E 4D 80 11 00 00 00 00 00 00 D5 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:26]Read from MH i2c: E2 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 17 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: E2 17 00 0E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [09:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:52:26]wFMCommunicate OK [09:52:26]CreateOFDProtocolMessage done [09:52:26]OFDSenderStorePacket 70146 [09:52:26]StoreOFDPacket docnum=70146 [09:52:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3D A7 0D 01 67 2F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 DD 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 12 01 00 35 04 06 00 97 A6 54 FD D9 16 79 A7 0A 12 A1 C0 9B 43 [09:52:26]CheckFolder [09:52:26]dirname=/storage/ofd_packets [09:52:26]CheckFolder done [09:52:26]ProducePacketName [09:52:26]name=ofd_packets/00070146 [09:52:26]NVStorageSaveData ofd_packets/00070146 [09:52:26]File name is /storage/ofd_packets/00070146 [09:52:26]Write 307 bytes [09:52:26]NVStorageSaveData done [09:52:26]OFDSenderStorePacket done [09:52:26]KKMCreateOFDPacket done [09:52:26]NVStorageSaveData kkm_last_timestamp [09:52:26]File name is /storage/kkm_last_timestamp [09:52:26]Write 4 bytes [09:52:26]NVStorageSaveData done [09:52:26]ExternCall_PrintAddStr [09:52:26]wPrintStart [09:52:26]Write to MH i2c: 01 00 00 0F 4D 5C [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 07 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 07 00 0F 4D 00 00 00 00 00 FF 0F 71 [09:52:26]RasterBufferAndPrint [09:52:26]line Счет N : (1)2885912 [09:52:26]line ИНН: 02508201610067 [09:52:26]line Контрольно-Кассовый Чек [09:52:26]line ПРОДАЖА [09:52:26]line ТРК (МРК, ГНК) : 11 [09:52:26]line Товар: 2710194240 [09:52:26]line D-ENERGY Дт-К-2 [09:52:26]line 6.480 * 77.20 [09:52:26]line = 500.26 [09:52:26]line НДС 12% НСП 1% [09:52:26]line > о реализуемом товаре [09:52:26]line ОКРУГЛЕНИЕ: -0.26 [09:52:26]line ИТОГО: 500.00 [09:52:26]line Внесено: 500.00 [09:52:26]line СДАЧА: 0.00 [09:52:26]line НСП 1% : 4.43 [09:52:26]line НДС 12% : 53.12 [09:52:26]line Наличными: 500.00 [09:52:26]line Безнал.: 0.00 [09:52:26]line Место: АЗС № 85 "Партнер Нефть" [09:52:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:52:26]line СНО: Общий режим [09:52:26]line Чек 94 22.10.2024 09:52 [09:52:26]line Смена: 195 ФФД: 1.0 [09:52:26]line ЗНМ: 0300000167 [09:52:26]line РНМ: 0000000000156251 [09:52:26]line Версия ККМ: v1.0 [09:52:26]line ФМ: 0000000000963346 [09:52:26]line ФД: 70146 [09:52:26]line ФПД: 166740646287638 [09:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095229&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70146&fm=166740646287638&tin=02508201610067®Number=0000000000156251&sum=50000 [09:52:26]OFD Sender: Processing packet 70146 [packets to send 18, broken 17] [09:52:26]ProducePacketName [09:52:26]name=ofd_packets/00070146 [09:52:26]OFD Sender: To server: pG, [09:52:26]CommunicateWithHost lk.salyk.kg:30040 [09:52:26]ConnectInit lk.salyk.kg [09:52:26]written 0, free lines is 4095 [09:52:27]Connected sock=10 [09:52: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 34 36 15 01 00 00 3D A7 0D 01 67 2F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 DD 75 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 12 01 00 35 04 06 00 97 A6 54 FD D9 16 79 A7 0A 12 A1 C0 9B 43 [09:52: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 34 36 4F 00 00 00 16 E7 47 00 BF 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 34 36 10 04 04 00 02 12 01 00 F4 03 04 00 7E 1F 17 67 B6 04 01 00 00 A2 16 2C B9 65 21 AB 4A [09:52:27]CommunicateWithHost err = 0 [09:52:27]CheckOFDResponse [09:52:27]1017 (14) - 77093643461234 [09:52:27]1041 (16) - 0000000000963346 [09:52:27]1040 (4) - 70146 [09:52:27]1012 (4) - 22.10.2024 03:43 [09:52:27]1206 (1) - 0 [09:52:27]OFD Sender: Remove packet 70146 [09:52:27]ProducePacketName [09:52:27]name=ofd_packets/00070146 [09:52:27]NVStorageDeleteData [09:52:27]Write to MH i2c: 01 00 00 3A 4D 87 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 3A 4D 00 00 00 00 00 E9 0C 83 [09:52:27]RasterBufferAndPrint [09:52:27]line [09:52:27]line [09:52:27]line [09:52:27]line [09:52:27]line [09:52:27]written 0, free lines is 3311 [09:52:27]MH_Cut [09:52:27]Write to MH i2c: D1 01 00 41 4D 01 60 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: D1 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: D1 01 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: D1 01 00 41 4D 00 5F [09:52:27]Write to MH i2c: 01 00 00 42 4D 8F [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]OFD Sender: No OFD packet to send [09:52:28]*** Cut start [09:52:28]*** Partial cut [09:52:28]*** CUTSNS_PIN = 1 [09:52:28]*** CUTSNS_PIN = 0 [09:52:28]*** Brake cut motor [09:52:28]Read from MH i2c: 01 [09:52:28]MH_I2C_Read... [09:52:28]*** Stop cut motor [09:52:28]*** Cut end [09:52:28]Read from MH i2c: 01 07 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: 01 07 00 42 4D 00 00 00 00 00 FF 0F A4 [09:52:28]process_action close_receipt done [09:52:28]requested_data is exist [09:52:28]produce_requested_data [09:52:28]requested_item fm.sn is exist - process it [09:52:28]wFMCommunicate request_size=4 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 11 00 00 [09:52:28]Write to MH i2c: E2 08 00 43 4D 80 11 00 00 00 00 00 00 0A [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:28]Read from MH i2c: E2 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 17 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 17 00 43 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [09:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:52:28]wFMCommunicate OK [09:52:28]requested_item fd.num is exist - process it [09:52:28]SAM_PROTO_GetFieldsCounters [09:52:28]wFMCommunicate request_size=4 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 13 00 00 [09:52:28]Write to MH i2c: E2 08 00 44 4D 80 13 00 00 00 00 00 00 0D [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:28]Read from MH i2c: E2 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 62 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 62 00 44 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 12 01 00 0E 04 04 00 C3 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 1A [09:52: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 12 01 00 0E 04 04 00 C3 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 [09:52:28]wFMCommunicate OK [09:52:28]SAM_PROTO_GetFieldsCounters done [09:52:28]requested_item shift.num is exist - process it [09:52:28]requested_item shift.opened is exist - process it [09:52:28]req_shift_opened [09:52:28]FM_GetShiftState [09:52:28]SAM_PROTO_GetShiftState [09:52:28]wFMCommunicate request_size=4 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 13 01 00 [09:52:28]Write to MH i2c: E2 08 00 45 4D 80 13 01 00 00 00 00 00 0F [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 45 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [09:52:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_GetShiftState done [09:52:29]FM_GetShiftState done [09:52:29]req_shift_opened done [09:52:29]requested_item shift.open_date is exist - process it [09:52:29]req_shift_open_date [09:52:29]req_shift_open_date done [09:52:29]produce_requested_data done [09:52:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70146,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:52:29]process_action_free close_receipt [09:52:29]json_value_free [09:52:29]json_value_free done [09:52:29]process_json_proto returns [09:52:29]Send response to host [09:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70146,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:52:29]free response buf [09:52:29]execute_script done [09:52:29]execute_script returns [09:52:29]free content buf [09:52:29]Sock 7.Close socket [09:52:29]Sock 7.Thread stoped [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]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:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:45]accept exits with 9 [09:58:45]New connection [09:58:45]New thread 3067170148 created [09:58:45]Thread 3067026788 joined [09:58:45]Waiting for new connection... [09:58:45] Sock 9.Parse request [09:58:45]Sock 9.Check first char [09:58:45]Sock 9.First char is OK [09:58:45]request: POST /json_proto HTTP/1.0 [09:58:45]Method: POST [09:58:45]URL: /json_proto [09:58:45]Method is POST - this is cgi request [09:58:45]url: /json_proto [09:58:45]query_string will be loaded in cgi processing [09:58:45]execute_cgi json_proto POST (null) [09:58:45]execute_cgi path=json_proto method=POST [09:58:45]POST find Content-Length [09:58:45]Host: 172.17.50.3:8080 [09:58:45]Content-Length: 678 [09:58:45]Content-Type: application/json [09:58:45] [09:58:45]POST finish read [09:58:45]Found Content-Length = 678 [09:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:58:45]execute_script... [09:58: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)2885915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:58:45]POST & json_proto [09:58:45]process_json_proto [09:58:45]json parsed OK: [09:58:45]protocol is kg_v1.0 [09:58:45]action value=close_receipt [09:58:45]process_action close_receipt [09:58:45]cmd_close_receipt [09:58:45]MH_GetDate [09:58:45]Write to MH i2c: F0 00 00 46 4D 82 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 46 4D 00 5A 77 17 67 6B 98 1E 66 61 [09:58:45]GetLastDocTimeStamp 1729590749 [09:58:45]current date 1729591130 [09:58:45]FM_GetShiftState [09:58:45]SAM_PROTO_GetShiftState [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 13 01 00 [09:58:45]Write to MH i2c: E2 08 00 47 4D 80 13 01 00 00 00 00 00 11 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 47 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FF [09:58:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:58:45]wFMCommunicate OK [09:58:45]SAM_PROTO_GetShiftState done [09:58:45]FM_GetShiftState done [09:58:45]opened in 1729555832 [09:58:45]opened+sec_in_day 1729642232 [09:58:45]quantity*price = 50041 [09:58:45]sum+1 = 50042 [09:58: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 95 22.10.2024 09:58 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70147 ФПД: 201155552857302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70147&fm=201155552857302&tin=02508201610067®Number=0000000000156251&sum=50000 [09:58:46]StoreToDocumentArchive [09:58:46]shift 195 fd 70147 [09:58:46]save to /storage/0195/doc_00070147 [09:58:46]save last doc name /storage/0195/doc_00070147 to /storage/kkm_last_doc_name [09:58:46]save OK [09:58:46]Clear old archive folders... [09:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:46]tlvbuf is 01131AC0 [09:58:46]SAM_PROTO_ClearQueue [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 09 00 00 [09:58:46]Write to MH i2c: E2 08 00 54 4D 80 09 00 00 00 00 00 00 13 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [09:58:46]RAPDU: 90 00 [09:58:46]wFMCommunicate OK [09:58:46]SAM_PROTO_ClearQueue done [09:58:46]KKMCreateOFDPacket [09:58:46]OFDProtocolAddRootSTLVToBuf [09:58:46]FM_MakeSignedData [09:58:46]FM_MakeSignedData [09:58:46]SAM_PROTO_SignData [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 0D 01 02 [09:58:46]Write to MH i2c: E2 08 00 55 4D 80 0D 01 02 00 00 00 00 1B [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 55 4D 00 90 00 16 [09:58:46]RAPDU: 90 00 [09:58:46]wFMCommunicate OK [09:58:46]wFMCommunicate request_size=255 [09:58:46]MH_SAM_APDU [09:58: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 5F 00 00 00 F4 03 04 00 5A 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 12 01 00 35 04 06 00 B6 [09:58:46]Write to MH i2c: E2 02 01 56 4D 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 5F 00 00 00 F4 03 04 00 5A 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 12 01 00 35 04 06 00 B6 00 00 E1 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 56 4D 00 90 00 17 [09:58:46]RAPDU: 90 00 [09:58:46]wFMCommunicate OK [09:58:46]wFMCommunicate request_size=10 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 0D 02 02 05 F3 2D 45 CC D6 [09:58:46]Write to MH i2c: E2 0D 00 57 4D 80 0D 02 02 05 00 F3 2D 45 CC D6 00 00 2F [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 03 00 57 4D 00 90 00 18 [09:58:46]RAPDU: 90 00 [09:58:46]wFMCommunicate OK [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 0D 03 02 [09:58:46]Write to MH i2c: E2 08 00 58 4D 80 0D 03 02 00 00 00 00 20 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 0B 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 0B 00 58 4D 00 E1 57 E1 10 AA 4F 93 36 90 00 0C [09:58:46]RAPDU: E1 57 E1 10 AA 4F 93 36 90 00 [09:58:46]wFMCommunicate OK [09:58:46]SAM_PROTO_SignData done [09:58:46]FM_MakeSignedData done [09:58:46]CreateOFDProtocolMessage [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 11 00 00 [09:58:46]Write to MH i2c: E2 08 00 59 4D 80 11 00 00 00 00 00 00 20 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 17 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 17 00 59 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [09:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:58:46]wFMCommunicate OK [09:58:46]CreateOFDProtocolMessage done [09:58:46]OFDSenderStorePacket 70147 [09:58:46]StoreOFDPacket docnum=70147 [09:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0D A3 07 01 6C 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 5F 00 00 00 F4 03 04 00 5A 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 12 01 00 35 04 06 00 B6 F3 2D 45 CC D6 E1 57 E1 10 AA 4F 93 36 [09:58:46]CheckFolder [09:58:46]dirname=/storage/ofd_packets [09:58:46]CheckFolder done [09:58:46]ProducePacketName [09:58:46]name=ofd_packets/00070147 [09:58:46]NVStorageSaveData ofd_packets/00070147 [09:58:46]File name is /storage/ofd_packets/00070147 [09:58:46]Write 301 bytes [09:58:46]NVStorageSaveData done [09:58:46]OFDSenderStorePacket done [09:58:46]KKMCreateOFDPacket done [09:58:46]NVStorageSaveData kkm_last_timestamp [09:58:46]File name is /storage/kkm_last_timestamp [09:58:46]Write 4 bytes [09:58:46]NVStorageSaveData done [09:58:46]ExternCall_PrintAddStr [09:58:46]wPrintStart [09:58:46]Write to MH i2c: 01 00 00 5A 4D A7 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 07 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 07 00 5A 4D 00 00 00 00 00 FF 0F BC [09:58:46]RasterBufferAndPrint [09:58:46]line Счет N : (1)2885915 [09:58:46]line ИНН: 02508201610067 [09:58:46]line Контрольно-Кассовый Чек [09:58:46]line ПРОДАЖА [09:58:46]line ТРК (МРК, ГНК) : 32 [09:58:46]line Товар: 2710124130 [09:58:46]line Аи-92-К-5 [09:58:46]line 7.480 * 66.90 [09:58:46]line = 500.41 [09:58:46]line НДС 12% НСП 1% [09:58:46]line > о реализуемом товаре [09:58:46]line ОКРУГЛЕНИЕ: -0.41 [09:58:46]line ИТОГО: 500.00 [09:58:46]line Внесено: 500.00 [09:58:46]line СДАЧА: 0.00 [09:58:46]line НСП 1% : 4.43 [09:58:46]line НДС 12% : 53.14 [09:58:46]line Наличными: 500.00 [09:58:46]line Безнал.: 0.00 [09:58:46]line Место: АЗС № 85 "Партнер Нефть" [09:58:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:58:46]line СНО: Общий режим [09:58:46]line Чек 95 22.10.2024 09:58 [09:58:46]line Смена: 195 ФФД: 1.0 [09:58:46]line ЗНМ: 0300000167 [09:58:46]line РНМ: 0000000000156251 [09:58:46]line Версия ККМ: v1.0 [09:58:46]line ФМ: 0000000000963346 [09:58:46]line ФД: 70147 [09:58:46]line ФПД: 201155552857302 [09:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70147&fm=201155552857302&tin=02508201610067®Number=0000000000156251&sum=50000 [09:58:46]written 0, free lines is 4095 [09:58:47]OFD Sender: Processing packet 70147 [packets to send 18, broken 17] [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00070147 [09:58:47]OFD Sender: To server: pG, [09:58:47]CommunicateWithHost lk.salyk.kg:30040 [09:58:47]ConnectInit lk.salyk.kg [09:58:47]Connected sock=10 [09:58: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 34 36 0F 01 00 00 0D A3 07 01 6C 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 5F 00 00 00 F4 03 04 00 5A 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 12 01 00 35 04 06 00 B6 F3 2D 45 CC D6 E1 57 E1 10 AA 4F 93 36 [09:58: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 34 36 4F 00 00 00 0F D9 47 00 E5 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 34 36 10 04 04 00 03 12 01 00 F4 03 04 00 FA 20 17 67 B6 04 01 00 00 F2 80 D5 B4 F7 9F AC 3E [09:58:47]CommunicateWithHost err = 0 [09:58:47]CheckOFDResponse [09:58:47]1017 (14) - 77093643461234 [09:58:47]1041 (16) - 0000000000963346 [09:58:47]1040 (4) - 70147 [09:58:47]1012 (4) - 22.10.2024 03:50 [09:58:47]1206 (1) - 0 [09:58:47]OFD Sender: Remove packet 70147 [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00070147 [09:58:47]NVStorageDeleteData [09:58:47]Write to MH i2c: 01 00 00 85 4D D2 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 85 4D 00 00 00 00 00 E8 0C CD [09:58:47]RasterBufferAndPrint [09:58:47]line [09:58:47]line [09:58:47]line [09:58:47]line [09:58:47]line [09:58:47]written 0, free lines is 3310 [09:58:47]MH_Cut [09:58:47]Write to MH i2c: D1 01 00 8C 4D 01 AB [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: D1 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: D1 01 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: D1 01 00 8C 4D 00 AA [09:58:47]Write to MH i2c: 01 00 00 8D 4D DA [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]OFD Sender: No OFD packet to send [09:58:48]*** Cut start [09:58:48]*** Partial cut [09:58:48]*** CUTSNS_PIN = 1 [09:58:48]*** CUTSNS_PIN = 0 [09:58:48]*** Brake cut motor [09:58:48]Read from MH i2c: 01 [09:58:48]MH_I2C_Read... [09:58:48]*** Stop cut motor [09:58:48]*** Cut end [09:58:48]Read from MH i2c: 01 07 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 8D 4D 00 00 00 00 00 FF 0F EF [09:58:48]process_action close_receipt done [09:58:48]requested_data is exist [09:58:48]produce_requested_data [09:58:48]requested_item fm.sn is exist - process it [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 11 00 00 [09:58:48]Write to MH i2c: E2 08 00 8E 4D 80 11 00 00 00 00 00 00 55 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 8E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [09:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:58:48]wFMCommunicate OK [09:58:48]requested_item fd.num is exist - process it [09:58:48]SAM_PROTO_GetFieldsCounters [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 13 00 00 [09:58:48]Write to MH i2c: E2 08 00 8F 4D 80 13 00 00 00 00 00 00 58 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 62 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 62 00 8F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 12 01 00 0E 04 04 00 C3 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 69 [09:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 12 01 00 0E 04 04 00 C3 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 [09:58:48]wFMCommunicate OK [09:58:48]SAM_PROTO_GetFieldsCounters done [09:58:48]requested_item shift.num is exist - process it [09:58:48]requested_item shift.opened is exist - process it [09:58:48]req_shift_opened [09:58:48]FM_GetShiftState [09:58:48]SAM_PROTO_GetShiftState [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 13 01 00 [09:58:48]Write to MH i2c: E2 08 00 90 4D 80 13 01 00 00 00 00 00 5A [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0E 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0E 00 90 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [09:58:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetShiftState done [09:58:49]FM_GetShiftState done [09:58:49]req_shift_opened done [09:58:49]requested_item shift.open_date is exist - process it [09:58:49]req_shift_open_date [09:58:49]req_shift_open_date done [09:58:49]produce_requested_data done [09:58:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70147,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:58:49]process_action_free close_receipt [09:58:49]json_value_free [09:58:49]json_value_free done [09:58:49]process_json_proto returns [09:58:49]Send response to host [09:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70147,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:58:49]free response buf [09:58:49]execute_script done [09:58:49]execute_script returns [09:58:49]free content buf [09:58:49]Sock 9.Close socket [09:58:49]Sock 9.Thread stoped [09:58:49]accept exits with 7 [09:58:49]New connection [09:58:49]New thread 3067026788 created [09:58:49]Thread 3067170148 joined [09:58:49]Waiting for new connection... [09:58:49] Sock 7.Parse request [09:58:49]Sock 7.Check first char [09:58:49]Sock 7.First char is OK [09:58:49]request: POST /json_proto HTTP/1.0 [09:58:49]Method: POST [09:58:49]URL: /json_proto [09:58:49]Method is POST - this is cgi request [09:58:49]url: /json_proto [09:58:49]query_string will be loaded in cgi processing [09:58:49]execute_cgi json_proto POST (null) [09:58:49]execute_cgi path=json_proto method=POST [09:58:49]POST find Content-Length [09:58:49]Host: 172.17.50.3:8080 [09:58:49]Content-Length: 683 [09:58:49]Content-Type: application/json [09:58:49] [09:58:49]POST finish read [09:58:49]Found Content-Length = 683 [09:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [09:58:49]execute_script... [09:58: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)2885914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [09:58:49]POST & json_proto [09:58:49]process_json_proto [09:58:49]json parsed OK: [09:58:49]protocol is kg_v1.0 [09:58:49]action value=close_receipt [09:58:49]process_action close_receipt [09:58:49]cmd_close_receipt [09:58:49]MH_GetDate [09:58:49]Write to MH i2c: F0 00 00 91 4D CD [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 91 4D 00 5E 77 17 67 6B 98 1E 66 B0 [09:58:49]GetLastDocTimeStamp 1729591130 [09:58:49]current date 1729591134 [09:58:49]FM_GetShiftState [09:58:49]SAM_PROTO_GetShiftState [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 13 01 00 [09:58:49]Write to MH i2c: E2 08 00 92 4D 80 13 01 00 00 00 00 00 5C [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 92 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4A [09:58:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetShiftState done [09:58:49]FM_GetShiftState done [09:58:49]opened in 1729555832 [09:58:49]opened+sec_in_day 1729642232 [09:58:49]quantity*price = 100021 [09:58:49]sum+1 = 100023 [09:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 96 22.10.2024 09:58 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70148 ФПД: 221415361192955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70148&fm=221415361192955&tin=02508201610067®Number=0000000000156251&sum=100000 [09:58:51]StoreToDocumentArchive [09:58:51]shift 195 fd 70148 [09:58:51]save to /storage/0195/doc_00070148 [09:58:51]save last doc name /storage/0195/doc_00070148 to /storage/kkm_last_doc_name [09:58:51]save OK [09:58:51]Clear old archive folders... [09:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:51]tlvbuf is 011DBAB0 [09:58:51]SAM_PROTO_ClearQueue [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 09 00 00 [09:58:51]Write to MH i2c: E2 08 00 9F 4D 80 09 00 00 00 00 00 00 5E [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 9F 4D 00 90 00 60 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_ClearQueue done [09:58:51]KKMCreateOFDPacket [09:58:51]OFDProtocolAddRootSTLVToBuf [09:58:51]FM_MakeSignedData [09:58:51]FM_MakeSignedData [09:58:51]SAM_PROTO_SignData [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 01 02 [09:58:51]Write to MH i2c: E2 08 00 A0 4D 80 0D 01 02 00 00 00 00 66 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 A0 4D 00 90 00 61 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=255 [09:58:51]MH_SAM_APDU [09:58: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 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 60 00 00 00 F4 03 04 00 5E 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 12 01 00 35 04 06 00 C9 [09:58:51]Write to MH i2c: E2 02 01 A1 4D 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 60 00 00 00 F4 03 04 00 5E 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 12 01 00 35 04 06 00 C9 00 00 62 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 A1 4D 00 90 00 62 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=10 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 02 02 05 60 47 F3 A3 FB [09:58:51]Write to MH i2c: E2 0D 00 A2 4D 80 0D 02 02 05 00 60 47 F3 A3 FB 00 00 AB [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 03 02 [09:58:51]Write to MH i2c: E2 08 00 A3 4D 80 0D 03 02 00 00 00 00 6B [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0B 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0B 00 A3 4D 00 CF 71 DD 9F C4 6A 14 A2 90 00 0C [09:58:51]RAPDU: CF 71 DD 9F C4 6A 14 A2 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_SignData done [09:58:51]FM_MakeSignedData done [09:58:51]CreateOFDProtocolMessage [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 11 00 00 [09:58:51]Write to MH i2c: E2 08 00 A4 4D 80 11 00 00 00 00 00 00 6B [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 A4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [09:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:58:51]wFMCommunicate OK [09:58:51]CreateOFDProtocolMessage done [09:58:51]OFDSenderStorePacket 70148 [09:58:51]StoreOFDPacket docnum=70148 [09:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 16 CA 07 01 DB 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 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 60 00 00 00 F4 03 04 00 5E 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 12 01 00 35 04 06 00 C9 60 47 F3 A3 FB CF 71 DD 9F C4 6A 14 A2 [09:58:51]CheckFolder [09:58:51]dirname=/storage/ofd_packets [09:58:51]CheckFolder done [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00070148 [09:58:51]NVStorageSaveData ofd_packets/00070148 [09:58:51]File name is /storage/ofd_packets/00070148 [09:58:51]Write 301 bytes [09:58:51]NVStorageSaveData done [09:58:51]OFDSenderStorePacket done [09:58:51]KKMCreateOFDPacket done [09:58:51]NVStorageSaveData kkm_last_timestamp [09:58:51]File name is /storage/kkm_last_timestamp [09:58:51]Write 4 bytes [09:58:51]NVStorageSaveData done [09:58:51]ExternCall_PrintAddStr [09:58:51]wPrintStart [09:58:51]Write to MH i2c: 01 00 00 A5 4D F2 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 A5 4D 00 00 00 00 00 FF 0F 07 [09:58:51]RasterBufferAndPrint [09:58:51]line Счет N : (1)2885914 [09:58:51]line ИНН: 02508201610067 [09:58:51]line Контрольно-Кассовый Чек [09:58:51]line ПРОДАЖА [09:58:51]line ТРК (МРК, ГНК) : 13 [09:58:51]line Товар: 2710124500 [09:58:51]line Аи-95-К-5 [09:58:51]line 13.480 * 74.20 [09:58:51]line = 1000.22 [09:58:51]line НДС 12% НСП 1% [09:58:51]line > о реализуемом товаре [09:58:51]line ОКРУГЛЕНИЕ: -0.22 [09:58:51]line ИТОГО: 1000.00 [09:58:51]line Внесено: 1000.00 [09:58:51]line СДАЧА: 0.00 [09:58:51]line НСП 1% : 8.85 [09:58:51]line НДС 12% : 106.22 [09:58:51]line Наличными: 1000.00 [09:58:51]line Безнал.: 0.00 [09:58:51]line Место: АЗС № 85 "Партнер Нефть" [09:58:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:58:51]line СНО: Общий режим [09:58:51]line Чек 96 22.10.2024 09:58 [09:58:51]line Смена: 195 ФФД: 1.0 [09:58:51]line ЗНМ: 0300000167 [09:58:51]line РНМ: 0000000000156251 [09:58:51]line Версия ККМ: v1.0 [09:58:51]line ФМ: 0000000000963346 [09:58:51]line ФД: 70148 [09:58:51]line ФПД: 221415361192955 [09:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70148&fm=221415361192955&tin=02508201610067®Number=0000000000156251&sum=100000 [09:58:51]OFD Sender: Processing packet 70148 [packets to send 18, broken 17] [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00070148 [09:58:51]OFD Sender: To server: pG, [09:58:51]CommunicateWithHost lk.salyk.kg:30040 [09:58:51]ConnectInit lk.salyk.kg [09:58:51]written 0, free lines is 4095 [09:58:52]Connected sock=10 [09:58: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 34 36 0F 01 00 00 16 CA 07 01 DB 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 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 60 00 00 00 F4 03 04 00 5E 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 12 01 00 35 04 06 00 C9 60 47 F3 A3 FB CF 71 DD 9F C4 6A 14 A2 [09:58: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 34 36 4F 00 00 00 0E E7 47 00 56 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 34 36 10 04 04 00 04 12 01 00 F4 03 04 00 FF 20 17 67 B6 04 01 00 00 9E BA F6 0C BB 01 C5 39 [09:58:52]CommunicateWithHost err = 0 [09:58:52]CheckOFDResponse [09:58:52]1017 (14) - 77093643461234 [09:58:52]1041 (16) - 0000000000963346 [09:58:52]1040 (4) - 70148 [09:58:52]1012 (4) - 22.10.2024 03:50 [09:58:52]1206 (1) - 0 [09:58:52]OFD Sender: Remove packet 70148 [09:58:52]ProducePacketName [09:58:52]name=ofd_packets/00070148 [09:58:52]NVStorageDeleteData [09:58:52]Write to MH i2c: 01 00 00 D0 4D 1D [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 D0 4D 00 00 00 00 00 F4 0C 24 [09:58:52]RasterBufferAndPrint [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]written 0, free lines is 3326 [09:58:52]MH_Cut [09:58:52]Write to MH i2c: D1 01 00 D7 4D 01 F6 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 01 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 01 00 D7 4D 00 F5 [09:58:52]Write to MH i2c: 01 00 00 D8 4D 25 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]OFD Sender: No OFD packet to send [09:58:53]*** Cut start [09:58:53]*** Partial cut [09:58:53]*** CUTSNS_PIN = 1 [09:58:53]*** CUTSNS_PIN = 0 [09:58:53]*** Brake cut motor [09:58:53]Read from MH i2c: 01 [09:58:53]MH_I2C_Read... [09:58:53]*** Stop cut motor [09:58:53]*** Cut end [09:58:53]Read from MH i2c: 01 07 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: 01 07 00 D8 4D 00 00 00 00 00 FF 0F 3A [09:58:53]process_action close_receipt done [09:58:53]requested_data is exist [09:58:53]produce_requested_data [09:58:53]requested_item fm.sn is exist - process it [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 11 00 00 [09:58:53]Write to MH i2c: E2 08 00 D9 4D 80 11 00 00 00 00 00 00 A0 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 17 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 17 00 D9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [09:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:58:53]wFMCommunicate OK [09:58:53]requested_item fd.num is exist - process it [09:58:53]SAM_PROTO_GetFieldsCounters [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 13 00 00 [09:58:53]Write to MH i2c: E2 08 00 DA 4D 80 13 00 00 00 00 00 00 A3 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 62 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 62 00 DA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 12 01 00 0E 04 04 00 C3 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 B8 [09:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 12 01 00 0E 04 04 00 C3 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 [09:58:53]wFMCommunicate OK [09:58:53]SAM_PROTO_GetFieldsCounters done [09:58:53]requested_item shift.num is exist - process it [09:58:53]requested_item shift.opened is exist - process it [09:58:53]req_shift_opened [09:58:53]FM_GetShiftState [09:58:53]SAM_PROTO_GetShiftState [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 13 01 00 [09:58:53]Write to MH i2c: E2 08 00 DB 4D 80 13 01 00 00 00 00 00 A5 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0E 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0E 00 DB 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [09:58:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [09:58:54]wFMCommunicate OK [09:58:54]SAM_PROTO_GetShiftState done [09:58:54]FM_GetShiftState done [09:58:54]req_shift_opened done [09:58:54]requested_item shift.open_date is exist - process it [09:58:54]req_shift_open_date [09:58:54]req_shift_open_date done [09:58:54]produce_requested_data done [09:58:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70148,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [09:58:54]process_action_free close_receipt [09:58:54]json_value_free [09:58:54]json_value_free done [09:58:54]process_json_proto returns [09:58:54]Send response to host [09:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70148,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [09:58:54]free response buf [09:58:54]execute_script done [09:58:54]execute_script returns [09:58:54]free content buf [09:58:54]Sock 7.Close socket [09:58:54]Sock 7.Thread stoped [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:45]accept exits with 9 [10:00:45]New connection [10:00:45]New thread 3067170148 created [10:00:45]Thread 3067026788 joined [10:00:45]Waiting for new connection... [10:00:45] Sock 9.Parse request [10:00:45]Sock 9.Check first char [10:00:45]Sock 9.First char is OK [10:00:45]request: POST /json_proto HTTP/1.0 [10:00:45]Method: POST [10:00:45]URL: /json_proto [10:00:45]Method is POST - this is cgi request [10:00:45]url: /json_proto [10:00:45]query_string will be loaded in cgi processing [10:00:45]execute_cgi json_proto POST (null) [10:00:45]execute_cgi path=json_proto method=POST [10:00:45]POST find Content-Length [10:00:45]Host: 172.17.50.3:8080 [10:00:45]Content-Length: 678 [10:00:45]Content-Type: application/json [10:00:45] [10:00:45]POST finish read [10:00:45]Found Content-Length = 678 [10:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:45]execute_script... [10:00: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)2885916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:45]POST & json_proto [10:00:45]process_json_proto [10:00:45]json parsed OK: [10:00:45]protocol is kg_v1.0 [10:00:45]action value=close_receipt [10:00:45]process_action close_receipt [10:00:45]cmd_close_receipt [10:00:45]MH_GetDate [10:00:45]Write to MH i2c: F0 00 00 DC 4D 18 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 DC 4D 00 D2 77 17 67 6B 98 1E 66 6F [10:00:45]GetLastDocTimeStamp 1729591134 [10:00:45]current date 1729591250 [10:00:45]FM_GetShiftState [10:00:45]SAM_PROTO_GetShiftState [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 13 01 00 [10:00:45]Write to MH i2c: E2 08 00 DD 4D 80 13 01 00 00 00 00 00 A7 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 DD 4D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [10:00:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_GetShiftState done [10:00:45]FM_GetShiftState done [10:00:45]opened in 1729555832 [10:00:45]opened+sec_in_day 1729642232 [10:00:45]quantity*price = 35055 [10:00:45]sum+1 = 35057 [10:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 97 22.10.2024 10:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70149 ФПД: 279043309304097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70149&fm=279043309304097&tin=02508201610067®Number=0000000000156251&sum=35000 [10:00:46]StoreToDocumentArchive [10:00:46]shift 195 fd 70149 [10:00:46]save to /storage/0195/doc_00070149 [10:00:46]save last doc name /storage/0195/doc_00070149 to /storage/kkm_last_doc_name [10:00:46]save OK [10:00:46]Clear old archive folders... [10:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:46]tlvbuf is 01123610 [10:00:46]SAM_PROTO_ClearQueue [10:00:46]wFMCommunicate request_size=4 [10:00:46]MH_SAM_APDU [10:00:46]CAPDU: 80 09 00 00 [10:00:46]Write to MH i2c: E2 08 00 EA 4D 80 09 00 00 00 00 00 00 A9 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:46]Read from MH i2c: E2 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 EA 4D 00 90 00 AB [10:00:46]RAPDU: 90 00 [10:00:46]wFMCommunicate OK [10:00:46]SAM_PROTO_ClearQueue done [10:00:46]KKMCreateOFDPacket [10:00:46]OFDProtocolAddRootSTLVToBuf [10:00:46]FM_MakeSignedData [10:00:46]FM_MakeSignedData [10:00:46]SAM_PROTO_SignData [10:00:46]wFMCommunicate request_size=4 [10:00:46]MH_SAM_APDU [10:00:46]CAPDU: 80 0D 01 02 [10:00:46]Write to MH i2c: E2 08 00 EB 4D 80 0D 01 02 00 00 00 00 B1 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:46]Read from MH i2c: E2 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 03 00 EB 4D 00 90 00 AC [10:00:46]RAPDU: 90 00 [10:00:46]wFMCommunicate OK [10:00:46]wFMCommunicate request_size=255 [10:00:46]MH_SAM_APDU [10:00: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 12 01 00 35 04 06 00 FD [10:00:46]Write to MH i2c: E2 02 01 EC 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 12 01 00 35 04 06 00 FD 00 00 45 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 EC 4D 00 90 00 AD [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=10 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 02 02 05 C9 D5 53 F9 21 [10:00:47]Write to MH i2c: E2 0D 00 ED 4D 80 0D 02 02 05 00 C9 D5 53 F9 21 00 00 C9 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 ED 4D 00 90 00 AE [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 03 02 [10:00:47]Write to MH i2c: E2 08 00 EE 4D 80 0D 03 02 00 00 00 00 B6 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 EE 4D 00 CE 01 2F F7 3E F0 35 0F 90 00 1E [10:00:47]RAPDU: CE 01 2F F7 3E F0 35 0F 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_SignData done [10:00:47]FM_MakeSignedData done [10:00:47]CreateOFDProtocolMessage [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 11 00 00 [10:00:47]Write to MH i2c: E2 08 00 EF 4D 80 11 00 00 00 00 00 00 B6 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 [10:00:47]MH_I2C_Read... [10:00:47]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 34 36 90 00 08 [10:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:00:47]wFMCommunicate OK [10:00:47]CreateOFDProtocolMessage done [10:00:47]OFDSenderStorePacket 70149 [10:00:47]StoreOFDPacket docnum=70149 [10:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 28 BF 07 01 16 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 12 01 00 35 04 06 00 FD C9 D5 53 F9 21 CE 01 2F F7 3E F0 35 0F [10:00:47]CheckFolder [10:00:47]dirname=/storage/ofd_packets [10:00:47]CheckFolder done [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00070149 [10:00:47]NVStorageSaveData ofd_packets/00070149 [10:00:47]File name is /storage/ofd_packets/00070149 [10:00:47]Write 301 bytes [10:00:47]NVStorageSaveData done [10:00:47]OFDSenderStorePacket done [10:00:47]KKMCreateOFDPacket done [10:00:47]NVStorageSaveData kkm_last_timestamp [10:00:47]File name is /storage/kkm_last_timestamp [10:00:47]Write 4 bytes [10:00:47]NVStorageSaveData done [10:00:47]ExternCall_PrintAddStr [10:00:47]wPrintStart [10:00:47]Write to MH i2c: 01 00 00 F0 4D 3D [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 F0 4D 00 00 00 00 00 FF 0F 52 [10:00:47]RasterBufferAndPrint [10:00:47]line Счет N : (1)2885916 [10:00:47]line ИНН: 02508201610067 [10:00:47]line Контрольно-Кассовый Чек [10:00:47]line ПРОДАЖА [10:00:47]line ТРК (МРК, ГНК) : 12 [10:00:47]line Товар: 2710124130 [10:00:47]line Аи-92-К-5 [10:00:47]line 5.240 * 66.90 [10:00:47]line = 350.56 [10:00:47]line НДС 12% НСП 1% [10:00:47]line > о реализуемом товаре [10:00:47]line ОКРУГЛЕНИЕ: -0.56 [10:00:47]line ИТОГО: 350.00 [10:00:47]line Внесено: 350.00 [10:00:47]line СДАЧА: 0.00 [10:00:47]line НСП 1% : 3.10 [10:00:47]line НДС 12% : 37.23 [10:00:47]line Наличными: 350.00 [10:00:47]line Безнал.: 0.00 [10:00:47]line Место: АЗС № 85 "Партнер Нефть" [10:00:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:00:47]line СНО: Общий режим [10:00:47]line Чек 97 22.10.2024 10:00 [10:00:47]line Смена: 195 ФФД: 1.0 [10:00:47]line ЗНМ: 0300000167 [10:00:47]line РНМ: 0000000000156251 [10:00:47]line Версия ККМ: v1.0 [10:00:47]line ФМ: 0000000000963346 [10:00:47]line ФД: 70149 [10:00:47]line ФПД: 279043309304097 [10:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70149&fm=279043309304097&tin=02508201610067®Number=0000000000156251&sum=35000 [10:00:47]written 0, free lines is 4095 [10:00:47]OFD Sender: Processing packet 70149 [packets to send 18, broken 17] [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00070149 [10:00:47]OFD Sender: To server: pG, [10:00:47]CommunicateWithHost lk.salyk.kg:30040 [10:00:47]ConnectInit lk.salyk.kg [10:00:47]Connected sock=10 [10:00: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 34 36 0F 01 00 00 28 BF 07 01 16 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 77 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 12 01 00 35 04 06 00 FD C9 D5 53 F9 21 CE 01 2F F7 3E F0 35 0F [10:00: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 34 36 4F 00 00 00 4E B6 47 00 86 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 34 36 10 04 04 00 05 12 01 00 F4 03 04 00 73 21 17 67 B6 04 01 00 00 3D 3B 50 5E BA 64 5A A6 [10:00:47]CommunicateWithHost err = 0 [10:00:47]CheckOFDResponse [10:00:47]1017 (14) - 77093643461234 [10:00:47]1041 (16) - 0000000000963346 [10:00:47]1040 (4) - 70149 [10:00:47]1012 (4) - 22.10.2024 03:52 [10:00:47]1206 (1) - 0 [10:00:47]OFD Sender: Remove packet 70149 [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00070149 [10:00:47]NVStorageDeleteData [10:00:47]Write to MH i2c: 01 00 00 1B 4E 69 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 1B 4E 00 00 00 00 00 F6 0C 72 [10:00:47]RasterBufferAndPrint [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]line [10:00:47]written 0, free lines is 3324 [10:00:47]MH_Cut [10:00:47]Write to MH i2c: D1 01 00 22 4E 01 42 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 01 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D1 01 00 22 4E 00 41 [10:00:47]Write to MH i2c: 01 00 00 23 4E 71 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:48]OFD Sender: No OFD packet to send [10:00:48]*** Cut start [10:00:48]*** Partial cut [10:00:48]*** CUTSNS_PIN = 1 [10:00:48]*** CUTSNS_PIN = 0 [10:00:48]*** Brake cut motor [10:00:49]Read from MH i2c: 01 [10:00:49]MH_I2C_Read... [10:00:49]*** Stop cut motor [10:00:49]*** Cut end [10:00:49]Read from MH i2c: 01 07 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: 01 07 00 23 4E 00 00 00 00 00 FF 0F 86 [10:00:49]process_action close_receipt done [10:00:49]requested_data is exist [10:00:49]produce_requested_data [10:00:49]requested_item fm.sn is exist - process it [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 11 00 00 [10:00:49]Write to MH i2c: E2 08 00 24 4E 80 11 00 00 00 00 00 00 EC [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 24 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [10:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:00:49]wFMCommunicate OK [10:00:49]requested_item fd.num is exist - process it [10:00:49]SAM_PROTO_GetFieldsCounters [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 00 00 [10:00:49]Write to MH i2c: E2 08 00 25 4E 80 13 00 00 00 00 00 00 EF [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 25 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 12 01 00 0E 04 04 00 C3 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 08 [10:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 12 01 00 0E 04 04 00 C3 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:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetFieldsCounters done [10:00:49]requested_item shift.num is exist - process it [10:00:49]requested_item shift.opened is exist - process it [10:00:49]req_shift_opened [10:00:49]FM_GetShiftState [10:00:49]SAM_PROTO_GetShiftState [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 01 00 [10:00:49]Write to MH i2c: E2 08 00 26 4E 80 13 01 00 00 00 00 00 F1 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 26 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [10:00:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetShiftState done [10:00:49]FM_GetShiftState done [10:00:49]req_shift_opened done [10:00:49]requested_item shift.open_date is exist - process it [10:00:49]req_shift_open_date [10:00:49]req_shift_open_date done [10:00:49]produce_requested_data done [10:00:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70149,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:00:49]process_action_free close_receipt [10:00:49]json_value_free [10:00:49]json_value_free done [10:00:49]process_json_proto returns [10:00:49]Send response to host [10:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70149,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:00:49]free response buf [10:00:49]execute_script done [10:00:49]execute_script returns [10:00:49]free content buf [10:00:49]Sock 9.Close socket [10:00:49]Sock 9.Thread stoped [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]accept exits with 7 [10:01:53]New connection [10:01:53]New thread 3067026788 created [10:01:53]Thread 3067170148 joined [10:01:53]Waiting for new connection... [10:01:53] Sock 7.Parse request [10:01:53]Sock 7.Check first char [10:01:53]Sock 7.First char is OK [10:01:53]request: POST /json_proto HTTP/1.0 [10:01:53]Method: POST [10:01:53]URL: /json_proto [10:01:53]Method is POST - this is cgi request [10:01:53]url: /json_proto [10:01:53]query_string will be loaded in cgi processing [10:01:53]execute_cgi json_proto POST (null) [10:01:53]execute_cgi path=json_proto method=POST [10:01:53]POST find Content-Length [10:01:53]Host: 172.17.50.3:8080 [10:01:53]Content-Length: 754 [10:01:53]Content-Type: application/json [10:01:53] [10:01:53]POST finish read [10:01:53]Found Content-Length = 754 [10:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:53]execute_script... [10:01: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)2885917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:53]POST & json_proto [10:01:53]process_json_proto [10:01:53]json parsed OK: [10:01:53]protocol is kg_v1.0 [10:01:53]action value=close_receipt [10:01:53]process_action close_receipt [10:01:53]cmd_close_receipt [10:01:53]MH_GetDate [10:01:53]Write to MH i2c: F0 00 00 27 4E 64 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: F0 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: F0 09 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: F0 09 00 27 4E 00 16 78 17 67 6B 98 1E 66 00 [10:01:53]GetLastDocTimeStamp 1729591250 [10:01:53]current date 1729591318 [10:01:53]FM_GetShiftState [10:01:53]SAM_PROTO_GetShiftState [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 13 01 00 [10:01:53]Write to MH i2c: E2 08 00 28 4E 80 13 01 00 00 00 00 00 F3 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]OFD Sender: No OFD packet to send [10:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0E 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0E 00 28 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E1 [10:01:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:01:53]wFMCommunicate OK [10:01:53]SAM_PROTO_GetShiftState done [10:01:53]FM_GetShiftState done [10:01:53]opened in 1729555832 [10:01:53]opened+sec_in_day 1729642232 [10:01:53]quantity*price = 0 [10:01:53]sum+1 = 1 [10:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 98 22.10.2024 10:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70150 ФПД: 106880507529798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70150&fm=106880507529798&tin=02508201610067®Number=0000000000156251&sum=0 [10:01:54]StoreToDocumentArchive [10:01:54]shift 195 fd 70150 [10:01:54]save to /storage/0195/doc_00070150 [10:01:54]save last doc name /storage/0195/doc_00070150 to /storage/kkm_last_doc_name [10:01:54]save OK [10:01:54]Clear old archive folders... [10:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:54]tlvbuf is 011D1950 [10:01:54]SAM_PROTO_ClearQueue [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 09 00 00 [10:01:54]Write to MH i2c: E2 08 00 35 4E 80 09 00 00 00 00 00 00 F5 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 35 4E 00 90 00 F7 [10:01:54]RAPDU: 90 00 [10:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_ClearQueue done [10:01:54]KKMCreateOFDPacket [10:01:54]OFDProtocolAddRootSTLVToBuf [10:01:54]FM_MakeSignedData [10:01:54]FM_MakeSignedData [10:01:54]SAM_PROTO_SignData [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 0D 01 02 [10:01:54]Write to MH i2c: E2 08 00 36 4E 80 0D 01 02 00 00 00 00 FD [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 36 4E 00 90 00 F8 [10:01:54]RAPDU: 90 00 [10:01:54]wFMCommunicate OK [10:01:54]wFMCommunicate request_size=255 [10:01:54]MH_SAM_APDU [10:01: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 58 1B 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 62 00 00 00 F4 03 04 00 16 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 12 01 00 35 04 06 00 61 [10:01:54]Write to MH i2c: E2 02 01 37 4E 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 58 1B 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 62 00 00 00 F4 03 04 00 16 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 12 01 00 35 04 06 00 61 00 00 1F [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 37 4E 00 90 00 F9 [10:01:54]RAPDU: 90 00 [10:01:54]wFMCommunicate OK [10:01:54]wFMCommunicate request_size=10 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 0D 02 02 05 35 0E AF 4A 46 [10:01:54]Write to MH i2c: E2 0D 00 38 4E 80 0D 02 02 05 00 35 0E AF 4A 46 00 00 8C [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 03 00 38 4E 00 90 00 FA [10:01:54]RAPDU: 90 00 [10:01:54]wFMCommunicate OK [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 0D 03 02 [10:01:54]Write to MH i2c: E2 08 00 39 4E 80 0D 03 02 00 00 00 00 02 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0B 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0B 00 39 4E 00 5B 03 E4 D6 E3 84 80 90 90 00 92 [10:01:54]RAPDU: 5B 03 E4 D6 E3 84 80 90 90 00 [10:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_SignData done [10:01:54]FM_MakeSignedData done [10:01:54]CreateOFDProtocolMessage [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 11 00 00 [10:01:54]Write to MH i2c: E2 08 00 3A 4E 80 11 00 00 00 00 00 00 02 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 3A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [10:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:01:55]wFMCommunicate OK [10:01:55]CreateOFDProtocolMessage done [10:01:55]OFDSenderStorePacket 70150 [10:01:55]StoreOFDPacket docnum=70150 [10:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 76 E2 07 01 AF A1 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 58 1B 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 62 00 00 00 F4 03 04 00 16 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 12 01 00 35 04 06 00 61 35 0E AF 4A 46 5B 03 E4 D6 E3 84 80 90 [10:01:55]CheckFolder [10:01:55]dirname=/storage/ofd_packets [10:01:55]CheckFolder done [10:01:55]ProducePacketName [10:01:55]name=ofd_packets/00070150 [10:01:55]NVStorageSaveData ofd_packets/00070150 [10:01:55]File name is /storage/ofd_packets/00070150 [10:01:55]Write 301 bytes [10:01:55]NVStorageSaveData done [10:01:55]OFDSenderStorePacket done [10:01:55]KKMCreateOFDPacket done [10:01:55]NVStorageSaveData kkm_last_timestamp [10:01:55]File name is /storage/kkm_last_timestamp [10:01:55]Write 4 bytes [10:01:55]NVStorageSaveData done [10:01:55]ExternCall_PrintAddStr [10:01:55]wPrintStart [10:01:55]Write to MH i2c: 01 00 00 3B 4E 89 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 3B 4E 00 00 00 00 00 FF 0F 9E [10:01:55]RasterBufferAndPrint [10:01:55]line Счет N : (1)2885917 [10:01:55]line ИНН: 02508201610067 [10:01:55]line Контрольно-Кассовый Чек [10:01:55]line ПРОДАЖА [10:01:55]line ТРК (МРК, ГНК) : 42 [10:01:55]line Товар: 2710124130 [10:01:55]line Аи-92-К-5 [10:01:55]line 7.000 * 0.00 [10:01:55]line = 0.00 [10:01:55]line НДС 12% НСП 1% [10:01:55]line > о реализуемом товаре [10:01:55]line ИТОГО: 0.00 [10:01:55]line НСП 1% : 0.00 [10:01:55]line НДС 12% : 0.00 [10:01:55]line Наличными: 0.00 [10:01:55]line Безнал.: 0.00 [10:01:55]line Место: АЗС № 85 "Партнер Нефть" [10:01:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:01:55]line СНО: Общий режим [10:01:55]line Чек 98 22.10.2024 10:01 [10:01:55]line Смена: 195 ФФД: 1.0 [10:01:55]line ЗНМ: 0300000167 [10:01:55]line РНМ: 0000000000156251 [10:01:55]line Версия ККМ: v1.0 [10:01:55]line Талоны: ТК ГПНА Online [10:01:55]line 30100970 [10:01:55]line ФМ: 0000000000963346 [10:01:55]line ФД: 70150 [10:01:55]line ФПД: 106880507529798 [10:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70150&fm=106880507529798&tin=02508201610067®Number=0000000000156251&sum=0 [10:01:55]OFD Sender: Processing packet 70150 [packets to send 18, broken 17] [10:01:55]ProducePacketName [10:01:55]name=ofd_packets/00070150 [10:01:55]OFD Sender: To server: pG, [10:01:55]CommunicateWithHost lk.salyk.kg:30040 [10:01:55]ConnectInit lk.salyk.kg [10:01:55]written 0, free lines is 4095 [10:01:55]Connected sock=10 [10:01: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 34 36 0F 01 00 00 76 E2 07 01 AF A1 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 58 1B 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 62 00 00 00 F4 03 04 00 16 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 12 01 00 35 04 06 00 61 35 0E AF 4A 46 5B 03 E4 D6 E3 84 80 90 [10:01: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 34 36 4F 00 00 00 25 BD 47 00 21 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 34 36 10 04 04 00 06 12 01 00 F4 03 04 00 B7 21 17 67 B6 04 01 00 00 2F 45 EA 9A 11 0D E1 D1 [10:01:55]CommunicateWithHost err = 0 [10:01:55]CheckOFDResponse [10:01:55]1017 (14) - 77093643461234 [10:01:55]1041 (16) - 0000000000963346 [10:01:55]1040 (4) - 70150 [10:01:55]1012 (4) - 22.10.2024 03:53 [10:01:55]1206 (1) - 0 [10:01:55]OFD Sender: Remove packet 70150 [10:01:55]ProducePacketName [10:01:55]name=ofd_packets/00070150 [10:01:55]NVStorageDeleteData [10:01:55]Write to MH i2c: 01 00 00 65 4E B3 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 65 4E 00 00 00 00 00 FB 0C C1 [10:01:55]RasterBufferAndPrint [10:01:55]line [10:01:55]line [10:01:55]line [10:01:55]line [10:01:55]line [10:01:55]written 0, free lines is 3329 [10:01:55]MH_Cut [10:01:55]Write to MH i2c: D1 01 00 6C 4E 01 8C [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: D1 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: D1 01 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: D1 01 00 6C 4E 00 8B [10:01:55]Write to MH i2c: 01 00 00 6D 4E BB [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:56]OFD Sender: No OFD packet to send [10:01:56]*** Cut start [10:01:56]*** Partial cut [10:01:56]*** CUTSNS_PIN = 1 [10:01:56]*** CUTSNS_PIN = 0 [10:01:56]*** Brake cut motor [10:01:57]Read from MH i2c: 01 [10:01:57]MH_I2C_Read... [10:01:57]*** Stop cut motor [10:01:57]*** Cut end [10:01:57]Read from MH i2c: 01 07 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: 01 07 00 6D 4E 00 00 00 00 00 FF 0F D0 [10:01:57]process_action close_receipt done [10:01:57]requested_data is exist [10:01:57]produce_requested_data [10:01:57]requested_item fm.sn is exist - process it [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 11 00 00 [10:01:57]Write to MH i2c: E2 08 00 6E 4E 80 11 00 00 00 00 00 00 36 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 6E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [10:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:01:57]wFMCommunicate OK [10:01:57]requested_item fd.num is exist - process it [10:01:57]SAM_PROTO_GetFieldsCounters [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 00 00 [10:01:57]Write to MH i2c: E2 08 00 6F 4E 80 13 00 00 00 00 00 00 39 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 6F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 12 01 00 0E 04 04 00 C3 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 56 [10:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 12 01 00 0E 04 04 00 C3 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:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetFieldsCounters done [10:01:57]requested_item shift.num is exist - process it [10:01:57]requested_item shift.opened is exist - process it [10:01:57]req_shift_opened [10:01:57]FM_GetShiftState [10:01:57]SAM_PROTO_GetShiftState [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 01 00 [10:01:57]Write to MH i2c: E2 08 00 70 4E 80 13 01 00 00 00 00 00 3B [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 70 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [10:01:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetShiftState done [10:01:57]FM_GetShiftState done [10:01:57]req_shift_opened done [10:01:57]requested_item shift.open_date is exist - process it [10:01:57]req_shift_open_date [10:01:57]req_shift_open_date done [10:01:57]produce_requested_data done [10:01:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70150,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:01:57]process_action_free close_receipt [10:01:57]json_value_free [10:01:57]json_value_free done [10:01:57]process_json_proto returns [10:01:57]Send response to host [10:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70150,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:01:57]free response buf [10:01:57]execute_script done [10:01:57]execute_script returns [10:01:57]free content buf [10:01:57]Sock 7.Close socket [10:01:57]Sock 7.Thread stoped [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:06]accept exits with 9 [10:02:06]New connection [10:02:06]New thread 3067170148 created [10:02:06]Thread 3067026788 joined [10:02:06]Waiting for new connection... [10:02:06] Sock 9.Parse request [10:02:06]Sock 9.Check first char [10:02:06]Sock 9.First char is OK [10:02:06]request: POST /json_proto HTTP/1.0 [10:02:06]Method: POST [10:02:06]URL: /json_proto [10:02:06]Method is POST - this is cgi request [10:02:06]url: /json_proto [10:02:06]query_string will be loaded in cgi processing [10:02:06]execute_cgi json_proto POST (null) [10:02:06]execute_cgi path=json_proto method=POST [10:02:06]POST find Content-Length [10:02:06]Host: 172.17.50.3:8080 [10:02:06]Content-Length: 754 [10:02:06]Content-Type: application/json [10:02:06] [10:02:06]POST finish read [10:02:06]Found Content-Length = 754 [10:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:06]execute_script... [10:02: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)2885918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:06]POST & json_proto [10:02:06]process_json_proto [10:02:06]json parsed OK: [10:02:06]protocol is kg_v1.0 [10:02:06]action value=close_receipt [10:02:06]process_action close_receipt [10:02:06]cmd_close_receipt [10:02:06]MH_GetDate [10:02:06]Write to MH i2c: F0 00 00 71 4E AE [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: F0 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: F0 09 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: F0 09 00 71 4E 00 23 78 17 67 6B 98 1E 66 57 [10:02:06]GetLastDocTimeStamp 1729591318 [10:02:06]current date 1729591331 [10:02:06]FM_GetShiftState [10:02:06]SAM_PROTO_GetShiftState [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 13 01 00 [10:02:06]Write to MH i2c: E2 08 00 72 4E 80 13 01 00 00 00 00 00 3D [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 0E 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 0E 00 72 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [10:02:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:02:06]wFMCommunicate OK [10:02:06]SAM_PROTO_GetShiftState done [10:02:06]FM_GetShiftState done [10:02:06]opened in 1729555832 [10:02:06]opened+sec_in_day 1729642232 [10:02:06]quantity*price = 0 [10:02:06]sum+1 = 1 [10:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 99 22.10.2024 10:02 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70151 ФПД: 191286604245210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70151&fm=191286604245210&tin=02508201610067®Number=0000000000156251&sum=0 [10:02:07]StoreToDocumentArchive [10:02:07]shift 195 fd 70151 [10:02:07]save to /storage/0195/doc_00070151 [10:02:07]save last doc name /storage/0195/doc_00070151 to /storage/kkm_last_doc_name [10:02:07]save OK [10:02:07]Clear old archive folders... [10:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:07]tlvbuf is 0121A560 [10:02:07]SAM_PROTO_ClearQueue [10:02:07]wFMCommunicate request_size=4 [10:02:07]MH_SAM_APDU [10:02:07]CAPDU: 80 09 00 00 [10:02:07]Write to MH i2c: E2 08 00 7F 4E 80 09 00 00 00 00 00 00 3F [10:02:07]Write i2c OK [10:02:07]MH_I2C_Read... [10:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:07]Read from MH i2c: E2 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 03 00 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 03 00 7F 4E 00 90 00 41 [10:02:07]RAPDU: 90 00 [10:02:07]wFMCommunicate OK [10:02:07]SAM_PROTO_ClearQueue done [10:02:07]KKMCreateOFDPacket [10:02:07]OFDProtocolAddRootSTLVToBuf [10:02:07]FM_MakeSignedData [10:02:07]FM_MakeSignedData [10:02:07]SAM_PROTO_SignData [10:02:07]wFMCommunicate request_size=4 [10:02:07]MH_SAM_APDU [10:02:07]CAPDU: 80 0D 01 02 [10:02:07]Write to MH i2c: E2 08 00 80 4E 80 0D 01 02 00 00 00 00 47 [10:02:07]Write i2c OK [10:02:07]MH_I2C_Read... [10:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:07]Read from MH i2c: E2 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 03 00 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 03 00 80 4E 00 90 00 42 [10:02:07]RAPDU: 90 00 [10:02:07]wFMCommunicate OK [10:02:07]wFMCommunicate request_size=255 [10:02:07]MH_SAM_APDU [10:02: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 88 13 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 63 00 00 00 F4 03 04 00 23 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 12 01 00 35 04 06 00 AD [10:02:07]Write to MH i2c: E2 02 01 81 4E 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 13 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 63 00 00 00 F4 03 04 00 23 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 12 01 00 35 04 06 00 AD 00 00 EC [10:02:07]Write i2c OK [10:02:07]MH_I2C_Read... [10:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:08]Read from MH i2c: E2 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 03 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 03 00 81 4E 00 90 00 43 [10:02:08]RAPDU: 90 00 [10:02:08]wFMCommunicate OK [10:02:08]wFMCommunicate request_size=10 [10:02:08]MH_SAM_APDU [10:02:08]CAPDU: 80 0D 02 02 05 F9 62 18 A8 DA [10:02:08]Write to MH i2c: E2 0D 00 82 4E 80 0D 02 02 05 00 F9 62 18 A8 DA 00 00 49 [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:08]Read from MH i2c: E2 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 03 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 03 00 82 4E 00 90 00 44 [10:02:08]RAPDU: 90 00 [10:02:08]wFMCommunicate OK [10:02:08]wFMCommunicate request_size=4 [10:02:08]MH_SAM_APDU [10:02:08]CAPDU: 80 0D 03 02 [10:02:08]Write to MH i2c: E2 08 00 83 4E 80 0D 03 02 00 00 00 00 4C [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:08]Read from MH i2c: E2 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 0B 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 0B 00 83 4E 00 5A 18 E1 81 73 78 7D FB 90 00 84 [10:02:08]RAPDU: 5A 18 E1 81 73 78 7D FB 90 00 [10:02:08]wFMCommunicate OK [10:02:08]SAM_PROTO_SignData done [10:02:08]FM_MakeSignedData done [10:02:08]CreateOFDProtocolMessage [10:02:08]wFMCommunicate request_size=4 [10:02:08]MH_SAM_APDU [10:02:08]CAPDU: 80 11 00 00 [10:02:08]Write to MH i2c: E2 08 00 84 4E 80 11 00 00 00 00 00 00 4C [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:08]Read from MH i2c: E2 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 17 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 17 00 84 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [10:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:08]wFMCommunicate OK [10:02:08]CreateOFDProtocolMessage done [10:02:08]OFDSenderStorePacket 70151 [10:02:08]StoreOFDPacket docnum=70151 [10:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 00 07 01 21 45 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 13 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 63 00 00 00 F4 03 04 00 23 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 12 01 00 35 04 06 00 AD F9 62 18 A8 DA 5A 18 E1 81 73 78 7D FB [10:02:08]CheckFolder [10:02:08]dirname=/storage/ofd_packets [10:02:08]CheckFolder done [10:02:08]ProducePacketName [10:02:08]name=ofd_packets/00070151 [10:02:08]NVStorageSaveData ofd_packets/00070151 [10:02:08]File name is /storage/ofd_packets/00070151 [10:02:08]Write 301 bytes [10:02:08]NVStorageSaveData done [10:02:08]OFDSenderStorePacket done [10:02:08]KKMCreateOFDPacket done [10:02:08]NVStorageSaveData kkm_last_timestamp [10:02:08]File name is /storage/kkm_last_timestamp [10:02:08]Write 4 bytes [10:02:08]NVStorageSaveData done [10:02:08]ExternCall_PrintAddStr [10:02:08]wPrintStart [10:02:08]Write to MH i2c: 01 00 00 85 4E D3 [10:02:08]OFD Sender: Processing packet 70151 [packets to send 18, broken 17] [10:02:08]ProducePacketName [10:02:08]name=ofd_packets/00070151 [10:02:08]OFD Sender: To server: pG, [10:02:08]CommunicateWithHost lk.salyk.kg:30040 [10:02:08]ConnectInit lk.salyk.kg [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: 01 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: 01 07 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: 01 07 00 85 4E 00 00 00 00 00 FF 0F E8 [10:02:08]RasterBufferAndPrint [10:02:08]line Счет N : (1)2885918 [10:02:08]line ИНН: 02508201610067 [10:02:08]line Контрольно-Кассовый Чек [10:02:08]line ПРОДАЖА [10:02:08]line ТРК (МРК, ГНК) : 22 [10:02:08]line Товар: 2710124130 [10:02:08]line Аи-92-К-5 [10:02:08]line 5.000 * 0.00 [10:02:08]line = 0.00 [10:02:08]line НДС 12% НСП 1% [10:02:08]line > о реализуемом товаре [10:02:08]line ИТОГО: 0.00 [10:02:08]line НСП 1% : 0.00 [10:02:08]line НДС 12% : 0.00 [10:02:08]line Наличными: 0.00 [10:02:08]line Безнал.: 0.00 [10:02:08]line Место: АЗС № 85 "Партнер Нефть" [10:02:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:02:08]line СНО: Общий режим [10:02:08]line Чек 99 22.10.2024 10:02 [10:02:08]line Смена: 195 ФФД: 1.0 [10:02:08]line ЗНМ: 0300000167 [10:02:08]line РНМ: 0000000000156251 [10:02:08]line Версия ККМ: v1.0 [10:02:08]line Талоны: ТК ГПНА Online [10:02:08]line 30100970 [10:02:08]line ФМ: 0000000000963346 [10:02:08]line ФД: 70151 [10:02:08]line ФПД: 191286604245210 [10:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70151&fm=191286604245210&tin=02508201610067®Number=0000000000156251&sum=0 [10:02:08]Connected sock=7 [10:02: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 34 36 0F 01 00 00 6D 00 07 01 21 45 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 13 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 63 00 00 00 F4 03 04 00 23 78 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 12 01 00 35 04 06 00 AD F9 62 18 A8 DA 5A 18 E1 81 73 78 7D FB [10:02:08]written 0, free lines is 4095 [10:02: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 34 36 4F 00 00 00 AD AA 47 00 CF 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 34 36 10 04 04 00 07 12 01 00 F4 03 04 00 C4 21 17 67 B6 04 01 00 00 6B C0 61 BF 6B EB DB 37 [10:02:08]CommunicateWithHost err = 0 [10:02:08]CheckOFDResponse [10:02:08]1017 (14) - 77093643461234 [10:02:08]1041 (16) - 0000000000963346 [10:02:08]1040 (4) - 70151 [10:02:08]1012 (4) - 22.10.2024 03:53 [10:02:08]1206 (1) - 0 [10:02:08]OFD Sender: Remove packet 70151 [10:02:08]ProducePacketName [10:02:08]name=ofd_packets/00070151 [10:02:08]NVStorageDeleteData [10:02:09]Write to MH i2c: 01 00 00 AF 4E FD [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: 01 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: 01 07 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: 01 07 00 AF 4E 00 00 00 00 00 FB 0C 0B [10:02:09]RasterBufferAndPrint [10:02:09]line [10:02:09]line [10:02:09]line [10:02:09]line [10:02:09]line [10:02:09]written 0, free lines is 3332 [10:02:09]MH_Cut [10:02:09]Write to MH i2c: D1 01 00 B6 4E 01 D6 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: D1 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: D1 01 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: D1 01 00 B6 4E 00 D5 [10:02:09]Write to MH i2c: 01 00 00 B7 4E 05 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]OFD Sender: No OFD packet to send [10:02:09]*** Cut start [10:02:09]*** Partial cut [10:02:09]*** CUTSNS_PIN = 1 [10:02:09]*** CUTSNS_PIN = 0 [10:02:10]*** Brake cut motor [10:02:10]Read from MH i2c: 01 [10:02:10]MH_I2C_Read... [10:02:10]*** Stop cut motor [10:02:10]*** Cut end [10:02:10]Read from MH i2c: 01 07 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 07 00 B7 4E 00 00 00 00 00 FF 0F 1A [10:02:10]process_action close_receipt done [10:02:10]requested_data is exist [10:02:10]produce_requested_data [10:02:10]requested_item fm.sn is exist - process it [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 11 00 00 [10:02:10]Write to MH i2c: E2 08 00 B8 4E 80 11 00 00 00 00 00 00 80 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 17 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 17 00 B8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [10:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:10]wFMCommunicate OK [10:02:10]requested_item fd.num is exist - process it [10:02:10]SAM_PROTO_GetFieldsCounters [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 13 00 00 [10:02:10]Write to MH i2c: E2 08 00 B9 4E 80 13 00 00 00 00 00 00 83 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 62 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 62 00 B9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 12 01 00 0E 04 04 00 C3 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 A4 [10:02: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 12 01 00 0E 04 04 00 C3 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:02:10]wFMCommunicate OK [10:02:10]SAM_PROTO_GetFieldsCounters done [10:02:10]requested_item shift.num is exist - process it [10:02:10]requested_item shift.opened is exist - process it [10:02:10]req_shift_opened [10:02:10]FM_GetShiftState [10:02:10]SAM_PROTO_GetShiftState [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 13 01 00 [10:02:10]Write to MH i2c: E2 08 00 BA 4E 80 13 01 00 00 00 00 00 85 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0E 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0E 00 BA 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 73 [10:02:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:02:10]wFMCommunicate OK [10:02:10]SAM_PROTO_GetShiftState done [10:02:10]FM_GetShiftState done [10:02:10]req_shift_opened done [10:02:10]requested_item shift.open_date is exist - process it [10:02:10]req_shift_open_date [10:02:10]req_shift_open_date done [10:02:10]produce_requested_data done [10:02:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70151,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:02:10]process_action_free close_receipt [10:02:10]json_value_free [10:02:10]json_value_free done [10:02:10]process_json_proto returns [10:02:10]Send response to host [10:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70151,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:02:10]free response buf [10:02:10]execute_script done [10:02:10]execute_script returns [10:02:10]free content buf [10:02:10]Sock 9.Close socket [10:02:10]Sock 9.Thread stoped [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:49]accept exits with 10 [10:06:49]New connection [10:06:49]New thread 3067026788 created [10:06:49]Thread 3067170148 joined [10:06:49]Waiting for new connection... [10:06:49] Sock 10.Parse request [10:06:49]Sock 10.Check first char [10:06:49]Sock 10.First char is OK [10:06:49]request: POST /json_proto HTTP/1.0 [10:06:49]Method: POST [10:06:49]URL: /json_proto [10:06:49]Method is POST - this is cgi request [10:06:49]url: /json_proto [10:06:49]query_string will be loaded in cgi processing [10:06:49]execute_cgi json_proto POST (null) [10:06:49]execute_cgi path=json_proto method=POST [10:06:49]POST find Content-Length [10:06:49]Host: 172.17.50.3:8080 [10:06:49]Content-Length: 678 [10:06:49]Content-Type: application/json [10:06:49] [10:06:49]POST finish read [10:06:49]Found Content-Length = 678 [10:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [10:06:49]execute_script... [10:06: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)2885919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [10:06:49]POST & json_proto [10:06:49]process_json_proto [10:06:49]json parsed OK: [10:06:49]protocol is kg_v1.0 [10:06:49]action value=close_receipt [10:06:49]process_action close_receipt [10:06:49]cmd_close_receipt [10:06:49]MH_GetDate [10:06:49]Write to MH i2c: F0 00 00 BB 4E F8 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 09 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: F0 09 00 BB 4E 00 3E 79 17 67 6B 98 1E 66 BD [10:06:49]GetLastDocTimeStamp 1729591331 [10:06:49]current date 1729591614 [10:06:49]FM_GetShiftState [10:06:49]SAM_PROTO_GetShiftState [10:06:49]wFMCommunicate request_size=4 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 13 01 00 [10:06:49]Write to MH i2c: E2 08 00 BC 4E 80 13 01 00 00 00 00 00 87 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:50]Read from MH i2c: E2 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: E2 0E 00 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: E2 0E 00 BC 4E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 75 [10:06:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:06:50]wFMCommunicate OK [10:06:50]SAM_PROTO_GetShiftState done [10:06:50]FM_GetShiftState done [10:06:50]opened in 1729555832 [10:06:50]opened+sec_in_day 1729642232 [10:06:50]quantity*price = 40068 [10:06:50]sum+1 = 40069 [10:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 100 22.10.2024 10:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70152 ФПД: 57138910905078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70152&fm=57138910905078&tin=02508201610067®Number=0000000000156251&sum=40000 [10:06:51]StoreToDocumentArchive [10:06:51]shift 195 fd 70152 [10:06:51]save to /storage/0195/doc_00070152 [10:06:51]save last doc name /storage/0195/doc_00070152 to /storage/kkm_last_doc_name [10:06:51]save OK [10:06:51]Clear old archive folders... [10:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:51]tlvbuf is 011235F0 [10:06:51]SAM_PROTO_ClearQueue [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 09 00 00 [10:06:51]Write to MH i2c: E2 08 00 C9 4E 80 09 00 00 00 00 00 00 89 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_ClearQueue done [10:06:51]KKMCreateOFDPacket [10:06:51]OFDProtocolAddRootSTLVToBuf [10:06:51]FM_MakeSignedData [10:06:51]FM_MakeSignedData [10:06:51]SAM_PROTO_SignData [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 01 02 [10:06:51]Write to MH i2c: E2 08 00 CA 4E 80 0D 01 02 00 00 00 00 91 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 CA 4E 00 90 00 8C [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=255 [10:06:51]MH_SAM_APDU [10:06: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 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 64 00 00 00 F4 03 04 00 3E 79 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 12 01 00 35 04 06 00 33 [10:06:51]Write to MH i2c: E2 02 01 CB 4E 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 64 00 00 00 F4 03 04 00 3E 79 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 12 01 00 35 04 06 00 33 00 00 73 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 CB 4E 00 90 00 8D [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=10 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 02 02 05 F7 B0 7C C2 F6 [10:06:51]Write to MH i2c: E2 0D 00 CC 4E 80 0D 02 02 05 00 F7 B0 7C C2 F6 00 00 79 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 03 00 CC 4E 00 90 00 8E [10:06:51]RAPDU: 90 00 [10:06:51]wFMCommunicate OK [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 0D 03 02 [10:06:51]Write to MH i2c: E2 08 00 CD 4E 80 0D 03 02 00 00 00 00 96 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0B 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0B 00 CD 4E 00 6C F6 CB 94 EE 9F F9 7E 90 00 5C [10:06:51]RAPDU: 6C F6 CB 94 EE 9F F9 7E 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_SignData done [10:06:51]FM_MakeSignedData done [10:06:51]CreateOFDProtocolMessage [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 11 00 00 [10:06:51]Write to MH i2c: E2 08 00 CE 4E 80 11 00 00 00 00 00 00 96 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 CE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [10:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:06:51]wFMCommunicate OK [10:06:51]CreateOFDProtocolMessage done [10:06:51]OFDSenderStorePacket 70152 [10:06:51]StoreOFDPacket docnum=70152 [10:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 99 67 07 01 FF 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 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 64 00 00 00 F4 03 04 00 3E 79 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 12 01 00 35 04 06 00 33 F7 B0 7C C2 F6 6C F6 CB 94 EE 9F F9 7E [10:06:51]CheckFolder [10:06:51]dirname=/storage/ofd_packets [10:06:51]CheckFolder done [10:06:51]ProducePacketName [10:06:51]name=ofd_packets/00070152 [10:06:51]NVStorageSaveData ofd_packets/00070152 [10:06:51]File name is /storage/ofd_packets/00070152 [10:06:51]Write 301 bytes [10:06:51]NVStorageSaveData done [10:06:51]OFDSenderStorePacket done [10:06:51]KKMCreateOFDPacket done [10:06:51]NVStorageSaveData kkm_last_timestamp [10:06:51]File name is /storage/kkm_last_timestamp [10:06:51]Write 4 bytes [10:06:51]NVStorageSaveData done [10:06:51]ExternCall_PrintAddStr [10:06:51]wPrintStart [10:06:51]Write to MH i2c: 01 00 00 CF 4E 1D [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 CF 4E 00 00 00 00 00 FF 0F 32 [10:06:51]RasterBufferAndPrint [10:06:51]line Счет N : (1)2885919 [10:06:51]line ИНН: 02508201610067 [10:06:51]line Контрольно-Кассовый Чек [10:06:51]line ПРОДАЖА [10:06:51]line ТРК (МРК, ГНК) : 13 [10:06:51]line Товар: 2710124500 [10:06:51]line Аи-95-К-5 [10:06:51]line 5.400 * 74.20 [10:06:51]line = 400.68 [10:06:51]line НДС 12% НСП 1% [10:06:51]line > о реализуемом товаре [10:06:51]line ОКРУГЛЕНИЕ: -0.68 [10:06:51]line ИТОГО: 400.00 [10:06:51]line Внесено: 400.00 [10:06:51]line СДАЧА: 0.00 [10:06:51]line НСП 1% : 3.55 [10:06:51]line НДС 12% : 42.55 [10:06:51]line Наличными: 400.00 [10:06:51]line Безнал.: 0.00 [10:06:51]line Место: АЗС № 85 "Партнер Нефть" [10:06:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:06:51]line СНО: Общий режим [10:06:51]line Чек 100 22.10.2024 10:06 [10:06:51]line Смена: 195 ФФД: 1.0 [10:06:51]line ЗНМ: 0300000167 [10:06:51]line РНМ: 0000000000156251 [10:06:51]line Версия ККМ: v1.0 [10:06:51]line ФМ: 0000000000963346 [10:06:51]line ФД: 70152 [10:06:51]line ФПД: 57138910905078 [10:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70152&fm=57138910905078&tin=02508201610067®Number=0000000000156251&sum=40000 [10:06:52]OFD Sender: Processing packet 70152 [packets to send 18, broken 17] [10:06:52]ProducePacketName [10:06:52]name=ofd_packets/00070152 [10:06:52]OFD Sender: To server: pG, [10:06:52]CommunicateWithHost lk.salyk.kg:30040 [10:06:52]ConnectInit lk.salyk.kg [10:06:52]written 0, free lines is 4095 [10:06:52]Connected sock=9 [10:06: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 34 36 0F 01 00 00 99 67 07 01 FF 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 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 64 00 00 00 F4 03 04 00 3E 79 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 12 01 00 35 04 06 00 33 F7 B0 7C C2 F6 6C F6 CB 94 EE 9F F9 7E [10:06: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 34 36 4F 00 00 00 FC AB 47 00 3F 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 34 36 10 04 04 00 08 12 01 00 F4 03 04 00 DF 22 17 67 B6 04 01 00 00 3B CE 64 C4 B6 A7 F3 03 [10:06:52]CommunicateWithHost err = 0 [10:06:52]CheckOFDResponse [10:06:52]1017 (14) - 77093643461234 [10:06:52]1041 (16) - 0000000000963346 [10:06:52]1040 (4) - 70152 [10:06:52]1012 (4) - 22.10.2024 03:58 [10:06:52]1206 (1) - 0 [10:06:52]OFD Sender: Remove packet 70152 [10:06:52]ProducePacketName [10:06:52]name=ofd_packets/00070152 [10:06:52]NVStorageDeleteData [10:06:52]Write to MH i2c: 01 00 00 FA 4E 48 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 FA 4E 00 00 00 00 00 F3 0C 4E [10:06:52]RasterBufferAndPrint [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]line [10:06:52]written 0, free lines is 3321 [10:06:52]MH_Cut [10:06:52]Write to MH i2c: D1 01 00 01 4F 01 22 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 01 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D1 01 00 01 4F 00 21 [10:06:52]Write to MH i2c: 01 00 00 02 4F 51 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]OFD Sender: No OFD packet to send [10:06:53]*** Cut start [10:06:53]*** Partial cut [10:06:53]*** CUTSNS_PIN = 1 [10:06:53]*** CUTSNS_PIN = 0 [10:06:53]*** Brake cut motor [10:06:53]Read from MH i2c: 01 [10:06:53]MH_I2C_Read... [10:06:53]*** Stop cut motor [10:06:53]*** Cut end [10:06:53]Read from MH i2c: 01 07 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 07 00 02 4F 00 00 00 00 00 FF 0F 66 [10:06:53]process_action close_receipt done [10:06:53]requested_data is exist [10:06:53]produce_requested_data [10:06:53]requested_item fm.sn is exist - process it [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 11 00 00 [10:06:53]Write to MH i2c: E2 08 00 03 4F 80 11 00 00 00 00 00 00 CC [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 17 00 03 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [10:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:06:53]wFMCommunicate OK [10:06:53]requested_item fd.num is exist - process it [10:06:53]SAM_PROTO_GetFieldsCounters [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 13 00 00 [10:06:53]Write to MH i2c: E2 08 00 04 4F 80 13 00 00 00 00 00 00 CF [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:53]Read from MH i2c: E2 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 62 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: E2 62 00 04 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 12 01 00 0E 04 04 00 C3 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 F4 [10:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 12 01 00 0E 04 04 00 C3 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 [10:06:53]wFMCommunicate OK [10:06:53]SAM_PROTO_GetFieldsCounters done [10:06:53]requested_item shift.num is exist - process it [10:06:53]requested_item shift.opened is exist - process it [10:06:53]req_shift_opened [10:06:53]FM_GetShiftState [10:06:53]SAM_PROTO_GetShiftState [10:06:53]wFMCommunicate request_size=4 [10:06:53]MH_SAM_APDU [10:06:53]CAPDU: 80 13 01 00 [10:06:53]Write to MH i2c: E2 08 00 05 4F 80 13 01 00 00 00 00 00 D1 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 05 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [10:06:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetShiftState done [10:06:54]FM_GetShiftState done [10:06:54]req_shift_opened done [10:06:54]requested_item shift.open_date is exist - process it [10:06:54]req_shift_open_date [10:06:54]req_shift_open_date done [10:06:54]produce_requested_data done [10:06:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70152,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:06:54]process_action_free close_receipt [10:06:54]json_value_free [10:06:54]json_value_free done [10:06:54]process_json_proto returns [10:06:54]Send response to host [10:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70152,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:06:54]free response buf [10:06:54]execute_script done [10:06:54]execute_script returns [10:06:54]free content buf [10:06:54]Sock 10.Close socket [10:06:54]Sock 10.Thread stoped [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:31]accept exits with 7 [10:10:31]New connection [10:10:31]New thread 3067170148 created [10:10:31]Thread 3067026788 joined [10:10:31]Waiting for new connection... [10:10:31] Sock 7.Parse request [10:10:31]Sock 7.Check first char [10:10:31]Sock 7.First char is OK [10:10:31]request: POST /json_proto HTTP/1.0 [10:10:31]Method: POST [10:10:31]URL: /json_proto [10:10:31]Method is POST - this is cgi request [10:10:31]url: /json_proto [10:10:31]query_string will be loaded in cgi processing [10:10:31]execute_cgi json_proto POST (null) [10:10:31]execute_cgi path=json_proto method=POST [10:10:31]POST find Content-Length [10:10:31]Host: 172.17.50.3:8080 [10:10:31]Content-Length: 680 [10:10:31]Content-Type: application/json [10:10:31] [10:10:31]POST finish read [10:10:31]Found Content-Length = 680 [10:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885920", "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" ] } } [10:10:31]execute_script... [10:10: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)2885920", "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" ] } } [10:10:31]POST & json_proto [10:10:31]process_json_proto [10:10:31]json parsed OK: [10:10:31]protocol is kg_v1.0 [10:10:31]action value=close_receipt [10:10:31]process_action close_receipt [10:10:31]cmd_close_receipt [10:10:31]MH_GetDate [10:10:31]Write to MH i2c: F0 00 00 06 4F 44 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 06 4F 00 1C 7A 17 67 6B 98 1E 66 E8 [10:10:31]GetLastDocTimeStamp 1729591614 [10:10:31]current date 1729591836 [10:10:31]FM_GetShiftState [10:10:31]SAM_PROTO_GetShiftState [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 13 01 00 [10:10:31]Write to MH i2c: E2 08 00 07 4F 80 13 01 00 00 00 00 00 D3 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 07 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C1 [10:10:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_GetShiftState done [10:10:31]FM_GetShiftState done [10:10:31]opened in 1729555832 [10:10:31]opened+sec_in_day 1729642232 [10:10:31]quantity*price = 100050 [10:10:31]sum+1 = 100052 [10:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 101 22.10.2024 10:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70153 ФПД: 201322825738642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101036&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70153&fm=201322825738642&tin=02508201610067®Number=0000000000156251&sum=100000 [10:10:32]StoreToDocumentArchive [10:10:32]shift 195 fd 70153 [10:10:32]save to /storage/0195/doc_00070153 [10:10:32]save last doc name /storage/0195/doc_00070153 to /storage/kkm_last_doc_name [10:10:32]save OK [10:10:32]Clear old archive folders... [10:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:32]tlvbuf is 011ADEC0 [10:10:32]SAM_PROTO_ClearQueue [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 09 00 00 [10:10:32]Write to MH i2c: E2 08 00 14 4F 80 09 00 00 00 00 00 00 D5 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 14 4F 00 90 00 D7 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_ClearQueue done [10:10:32]KKMCreateOFDPacket [10:10:32]OFDProtocolAddRootSTLVToBuf [10:10:32]FM_MakeSignedData [10:10:32]FM_MakeSignedData [10:10:32]SAM_PROTO_SignData [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 01 02 [10:10:32]Write to MH i2c: E2 08 00 15 4F 80 0D 01 02 00 00 00 00 DD [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 15 4F 00 90 00 D8 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=255 [10:10:32]MH_SAM_APDU [10:10:32]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 65 00 00 00 F4 03 04 00 1C 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 12 01 00 35 04 06 00 B7 1A 1F 83 [10:10:32]Write to MH i2c: E2 02 01 16 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 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 65 00 00 00 F4 03 04 00 1C 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 12 01 00 35 04 06 00 B7 1A 1F 83 00 00 27 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 16 4F 00 90 00 D9 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=7 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 02 02 02 69 92 [10:10:32]Write to MH i2c: E2 0A 00 17 4F 80 0D 02 02 02 00 69 92 00 00 DF [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 17 4F 00 90 00 DA [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 03 02 [10:10:32]Write to MH i2c: E2 08 00 18 4F 80 0D 03 02 00 00 00 00 E2 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 0B 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 0B 00 18 4F 00 96 F5 60 3C B4 C7 0E BD 90 00 50 [10:10:32]RAPDU: 96 F5 60 3C B4 C7 0E BD 90 00 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_SignData done [10:10:32]FM_MakeSignedData done [10:10:32]CreateOFDProtocolMessage [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 11 00 00 [10:10:32]Write to MH i2c: E2 08 00 19 4F 80 11 00 00 00 00 00 00 E2 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 17 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 17 00 19 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [10:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:32]wFMCommunicate OK [10:10:32]CreateOFDProtocolMessage done [10:10:32]OFDSenderStorePacket 70153 [10:10:32]StoreOFDPacket docnum=70153 [10:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 78 B6 04 01 D6 44 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 65 00 00 00 F4 03 04 00 1C 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 12 01 00 35 04 06 00 B7 1A 1F 83 69 92 96 F5 60 3C B4 C7 0E BD [10:10:32]CheckFolder [10:10:32]dirname=/storage/ofd_packets [10:10:32]CheckFolder done [10:10:32]ProducePacketName [10:10:32]name=ofd_packets/00070153 [10:10:32]NVStorageSaveData ofd_packets/00070153 [10:10:32]File name is /storage/ofd_packets/00070153 [10:10:32]Write 298 bytes [10:10:32]NVStorageSaveData done [10:10:32]OFDSenderStorePacket done [10:10:32]KKMCreateOFDPacket done [10:10:32]NVStorageSaveData kkm_last_timestamp [10:10:32]File name is /storage/kkm_last_timestamp [10:10:32]Write 4 bytes [10:10:32]NVStorageSaveData done [10:10:32]ExternCall_PrintAddStr [10:10:32]wPrintStart [10:10:32]Write to MH i2c: 01 00 00 1A 4F 69 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 1A 4F 00 00 00 00 00 FF 0F 7E [10:10:32]RasterBufferAndPrint [10:10:32]line Счет N : (1)2885920 [10:10:32]line ИНН: 02508201610067 [10:10:32]line Контрольно-Кассовый Чек [10:10:32]line ПРОДАЖА [10:10:32]line ТРК (МРК, ГНК) : 51 [10:10:32]line Товар: 2710194210 [10:10:32]line ДТ-К-5 [10:10:32]line 13.130 * 76.20 [10:10:32]line = 1000.51 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line ОКРУГЛЕНИЕ: -0.51 [10:10:32]line ИТОГО: 1000.00 [10:10:32]line Внесено: 1000.00 [10:10:32]line СДАЧА: 0.00 [10:10:32]line НСП 1% : 8.85 [10:10:32]line НДС 12% : 106.25 [10:10:32]line Наличными: 1000.00 [10:10:32]line Безнал.: 0.00 [10:10:32]line Место: АЗС № 85 "Партнер Нефть" [10:10:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:10:32]line СНО: Общий режим [10:10:32]line Чек 101 22.10.2024 10:10 [10:10:32]line Смена: 195 ФФД: 1.0 [10:10:32]line ЗНМ: 0300000167 [10:10:32]line РНМ: 0000000000156251 [10:10:32]line Версия ККМ: v1.0 [10:10:32]line ФМ: 0000000000963346 [10:10:32]line ФД: 70153 [10:10:33]line ФПД: 201322825738642 [10:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101036&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70153&fm=201322825738642&tin=02508201610067®Number=0000000000156251&sum=100000 [10:10:33]OFD Sender: Processing packet 70153 [packets to send 18, broken 17] [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00070153 [10:10:33]OFD Sender: To server: pG, [10:10:33]CommunicateWithHost lk.salyk.kg:30040 [10:10:33]ConnectInit lk.salyk.kg [10:10:33]written 0, free lines is 4095 [10:10:33]Connected sock=11 [10:10: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 34 36 0C 01 00 00 78 B6 04 01 D6 44 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 65 00 00 00 F4 03 04 00 1C 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 12 01 00 35 04 06 00 B7 1A 1F 83 69 92 96 F5 60 3C B4 C7 0E BD [10:10: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 34 36 4F 00 00 00 A8 CF 47 00 E7 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 34 36 10 04 04 00 09 12 01 00 F4 03 04 00 BD 23 17 67 B6 04 01 00 00 EF ED 1F E3 44 7F C4 7E [10:10:33]CommunicateWithHost err = 0 [10:10:33]CheckOFDResponse [10:10:33]1017 (14) - 77093643461234 [10:10:33]1041 (16) - 0000000000963346 [10:10:33]1040 (4) - 70153 [10:10:33]1012 (4) - 22.10.2024 04:02 [10:10:33]1206 (1) - 0 [10:10:33]OFD Sender: Remove packet 70153 [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00070153 [10:10:33]NVStorageDeleteData [10:10:33]Write to MH i2c: 01 00 00 45 4F 94 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 45 4F 00 00 00 00 00 E9 0C 90 [10:10:33]RasterBufferAndPrint [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]written 0, free lines is 3311 [10:10:33]MH_Cut [10:10:33]Write to MH i2c: D1 01 00 4C 4F 01 6D [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 4C 4F 00 6C [10:10:33]Write to MH i2c: 01 00 00 4D 4F 9C [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:34]OFD Sender: No OFD packet to send [10:10:34]*** Cut start [10:10:34]*** Partial cut [10:10:34]*** CUTSNS_PIN = 1 [10:10:34]*** CUTSNS_PIN = 0 [10:10:34]*** Brake cut motor [10:10:35]Read from MH i2c: 01 [10:10:35]MH_I2C_Read... [10:10:35]*** Stop cut motor [10:10:35]*** Cut end [10:10:35]Read from MH i2c: 01 07 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: 01 07 00 4D 4F 00 00 00 00 00 FF 0F B1 [10:10:35]process_action close_receipt done [10:10:35]requested_data is exist [10:10:35]produce_requested_data [10:10:35]requested_item fm.sn is exist - process it [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 11 00 00 [10:10:35]Write to MH i2c: E2 08 00 4E 4F 80 11 00 00 00 00 00 00 17 [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 17 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 17 00 4E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [10:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:35]wFMCommunicate OK [10:10:35]requested_item fd.num is exist - process it [10:10:35]SAM_PROTO_GetFieldsCounters [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 13 00 00 [10:10:35]Write to MH i2c: E2 08 00 4F 4F 80 13 00 00 00 00 00 00 1A [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 62 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 62 00 4F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 12 01 00 0E 04 04 00 C3 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 43 [10:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 12 01 00 0E 04 04 00 C3 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 [10:10:35]wFMCommunicate OK [10:10:35]SAM_PROTO_GetFieldsCounters done [10:10:35]requested_item shift.num is exist - process it [10:10:35]requested_item shift.opened is exist - process it [10:10:35]req_shift_opened [10:10:35]FM_GetShiftState [10:10:35]SAM_PROTO_GetShiftState [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 13 01 00 [10:10:35]Write to MH i2c: E2 08 00 50 4F 80 13 01 00 00 00 00 00 1C [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0E 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0E 00 50 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0A [10:10:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:10:35]wFMCommunicate OK [10:10:35]SAM_PROTO_GetShiftState done [10:10:35]FM_GetShiftState done [10:10:35]req_shift_opened done [10:10:35]requested_item shift.open_date is exist - process it [10:10:35]req_shift_open_date [10:10:35]req_shift_open_date done [10:10:35]produce_requested_data done [10:10:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70153,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:10:35]process_action_free close_receipt [10:10:35]json_value_free [10:10:35]json_value_free done [10:10:35]process_json_proto returns [10:10:35]Send response to host [10:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70153,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:10:35]free response buf [10:10:35]execute_script done [10:10:35]execute_script returns [10:10:35]free content buf [10:10:35]Sock 7.Close socket [10:10:35]Sock 7.Thread stoped [10:10:39]OFD Sender: No OFD packet to send [10:10:42]accept exits with 9 [10:10:42]New connection [10:10:42]New thread 3067026788 created [10:10:42]Thread 3067170148 joined [10:10:42]Waiting for new connection... [10:10:42] Sock 9.Parse request [10:10:42]Sock 9.Check first char [10:10:42]Sock 9.First char is OK [10:10:42]request: POST /json_proto HTTP/1.0 [10:10:42]Method: POST [10:10:42]URL: /json_proto [10:10:42]Method is POST - this is cgi request [10:10:42]url: /json_proto [10:10:42]query_string will be loaded in cgi processing [10:10:42]execute_cgi json_proto POST (null) [10:10:42]execute_cgi path=json_proto method=POST [10:10:42]POST find Content-Length [10:10:42]Host: 172.17.50.3:8080 [10:10:42]Content-Length: 683 [10:10:42]Content-Type: application/json [10:10:42] [10:10:42]POST finish read [10:10:42]Found Content-Length = 683 [10:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:10:42]execute_script... [10:10: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)2885922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:10:42]POST & json_proto [10:10:42]process_json_proto [10:10:42]json parsed OK: [10:10:42]protocol is kg_v1.0 [10:10:42]action value=close_receipt [10:10:42]process_action close_receipt [10:10:42]cmd_close_receipt [10:10:42]MH_GetDate [10:10:42]Write to MH i2c: F0 00 00 51 4F 8F [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 09 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 09 00 51 4F 00 27 7A 17 67 6B 98 1E 66 3E [10:10:42]GetLastDocTimeStamp 1729591836 [10:10:42]current date 1729591847 [10:10:42]FM_GetShiftState [10:10:42]SAM_PROTO_GetShiftState [10:10:42]wFMCommunicate request_size=4 [10:10:42]MH_SAM_APDU [10:10:42]CAPDU: 80 13 01 00 [10:10:42]Write to MH i2c: E2 08 00 52 4F 80 13 01 00 00 00 00 00 1E [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:42]Read from MH i2c: E2 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 0E 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 0E 00 52 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0C [10:10:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:10:42]wFMCommunicate OK [10:10:42]SAM_PROTO_GetShiftState done [10:10:42]FM_GetShiftState done [10:10:42]opened in 1729555832 [10:10:42]opened+sec_in_day 1729642232 [10:10:42]quantity*price = 200043 [10:10:42]sum+1 = 200044 [10:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 102 22.10.2024 10:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70154 ФПД: 153780418450776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101047&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70154&fm=153780418450776&tin=02508201610067®Number=0000000000156251&sum=200000 [10:10:43]StoreToDocumentArchive [10:10:43]shift 195 fd 70154 [10:10:43]save to /storage/0195/doc_00070154 [10:10:43]save last doc name /storage/0195/doc_00070154 to /storage/kkm_last_doc_name [10:10:43]save OK [10:10:43]Clear old archive folders... [10:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:43]tlvbuf is 012218B0 [10:10:43]SAM_PROTO_ClearQueue [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 09 00 00 [10:10:43]Write to MH i2c: E2 08 00 5F 4F 80 09 00 00 00 00 00 00 20 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 5F 4F 00 90 00 22 [10:10:43]RAPDU: 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_ClearQueue done [10:10:43]KKMCreateOFDPacket [10:10:43]OFDProtocolAddRootSTLVToBuf [10:10:43]FM_MakeSignedData [10:10:43]FM_MakeSignedData [10:10:43]SAM_PROTO_SignData [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 0D 01 02 [10:10:43]Write to MH i2c: E2 08 00 60 4F 80 0D 01 02 00 00 00 00 28 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 60 4F 00 90 00 23 [10:10:43]RAPDU: 90 00 [10:10:43]wFMCommunicate OK [10:10:43]wFMCommunicate request_size=255 [10:10:43]MH_SAM_APDU [10:10:43]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 66 00 00 00 F4 03 04 00 27 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 12 01 00 35 04 06 00 8B [10:10:43]Write to MH i2c: E2 02 01 61 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 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 66 00 00 00 F4 03 04 00 27 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 12 01 00 35 04 06 00 8B 00 00 49 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:44]OFD Sender: No OFD packet to send [10:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 61 4F 00 90 00 24 [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]wFMCommunicate request_size=10 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 0D 02 02 05 DC CB 37 15 58 [10:10:44]Write to MH i2c: E2 0D 00 62 4F 80 0D 02 02 05 00 DC CB 37 15 58 00 00 80 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 62 4F 00 90 00 25 [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 0D 03 02 [10:10:44]Write to MH i2c: E2 08 00 63 4F 80 0D 03 02 00 00 00 00 2D [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0B 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0B 00 63 4F 00 18 E3 4B 21 D5 92 E5 49 90 00 2A [10:10:44]RAPDU: 18 E3 4B 21 D5 92 E5 49 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_SignData done [10:10:44]FM_MakeSignedData done [10:10:44]CreateOFDProtocolMessage [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 11 00 00 [10:10:44]Write to MH i2c: E2 08 00 64 4F 80 11 00 00 00 00 00 00 2D [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 17 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 17 00 64 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [10:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:44]wFMCommunicate OK [10:10:44]CreateOFDProtocolMessage done [10:10:44]OFDSenderStorePacket 70154 [10:10:44]StoreOFDPacket docnum=70154 [10:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 FB 07 01 5A BC 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 66 00 00 00 F4 03 04 00 27 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 12 01 00 35 04 06 00 8B DC CB 37 15 58 18 E3 4B 21 D5 92 E5 49 [10:10:44]CheckFolder [10:10:44]dirname=/storage/ofd_packets [10:10:44]CheckFolder done [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00070154 [10:10:44]NVStorageSaveData ofd_packets/00070154 [10:10:44]File name is /storage/ofd_packets/00070154 [10:10:44]Write 301 bytes [10:10:44]NVStorageSaveData done [10:10:44]OFDSenderStorePacket done [10:10:44]KKMCreateOFDPacket done [10:10:44]NVStorageSaveData kkm_last_timestamp [10:10:44]File name is /storage/kkm_last_timestamp [10:10:44]Write 4 bytes [10:10:44]NVStorageSaveData done [10:10:44]ExternCall_PrintAddStr [10:10:44]wPrintStart [10:10:44]Write to MH i2c: 01 00 00 65 4F B4 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 65 4F 00 00 00 00 00 FF 0F C9 [10:10:44]RasterBufferAndPrint [10:10:44]line Счет N : (1)2885922 [10:10:44]line ИНН: 02508201610067 [10:10:44]line Контрольно-Кассовый Чек [10:10:44]line ПРОДАЖА [10:10:44]line ТРК (МРК, ГНК) : 23 [10:10:44]line Товар: 2710124500 [10:10:44]line Аи-95-К-5 [10:10:44]line 26.960 * 74.20 [10:10:44]line = 2000.43 [10:10:44]line НДС 12% НСП 1% [10:10:44]line > о реализуемом товаре [10:10:44]line ОКРУГЛЕНИЕ: -0.43 [10:10:44]line ИТОГО: 2000.00 [10:10:44]line Внесено: 2000.00 [10:10:44]line СДАЧА: 0.00 [10:10:44]line НСП 1% : 17.70 [10:10:44]line НДС 12% : 212.43 [10:10:44]line Наличными: 2000.00 [10:10:44]line Безнал.: 0.00 [10:10:44]line Место: АЗС № 85 "Партнер Нефть" [10:10:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:10:44]line СНО: Общий режим [10:10:44]line Чек 102 22.10.2024 10:10 [10:10:44]line Смена: 195 ФФД: 1.0 [10:10:44]line ЗНМ: 0300000167 [10:10:44]line РНМ: 0000000000156251 [10:10:44]line Версия ККМ: v1.0 [10:10:44]line ФМ: 0000000000963346 [10:10:44]line ФД: 70154 [10:10:44]line ФПД: 153780418450776 [10:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101047&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70154&fm=153780418450776&tin=02508201610067®Number=0000000000156251&sum=200000 [10:10:44]OFD Sender: Processing packet 70154 [packets to send 18, broken 17] [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00070154 [10:10:44]OFD Sender: To server: pG, [10:10:44]CommunicateWithHost lk.salyk.kg:30040 [10:10:44]ConnectInit lk.salyk.kg [10:10:44]written 0, free lines is 4095 [10:10:44]Connected sock=10 [10:10: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 34 36 0F 01 00 00 36 FB 07 01 5A BC 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 66 00 00 00 F4 03 04 00 27 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 12 01 00 35 04 06 00 8B DC CB 37 15 58 18 E3 4B 21 D5 92 E5 49 [10:10: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 34 36 4F 00 00 00 79 59 47 00 C7 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 34 36 10 04 04 00 0A 12 01 00 F4 03 04 00 C8 23 17 67 B6 04 01 00 00 09 DC 80 8C 30 AB 03 AD [10:10:44]CommunicateWithHost err = 0 [10:10:44]CheckOFDResponse [10:10:44]1017 (14) - 77093643461234 [10:10:44]1041 (16) - 0000000000963346 [10:10:44]1040 (4) - 70154 [10:10:44]1012 (4) - 22.10.2024 04:02 [10:10:44]1206 (1) - 0 [10:10:44]OFD Sender: Remove packet 70154 [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00070154 [10:10:44]NVStorageDeleteData [10:10:45]Write to MH i2c: 01 00 00 90 4F DF [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 90 4F 00 00 00 00 00 FB 0C ED [10:10:45]RasterBufferAndPrint [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]written 0, free lines is 3332 [10:10:45]MH_Cut [10:10:45]Write to MH i2c: D1 01 00 97 4F 01 B8 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 01 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 01 00 97 4F 00 B7 [10:10:45]Write to MH i2c: 01 00 00 98 4F E7 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]OFD Sender: No OFD packet to send [10:10:45]*** Cut start [10:10:45]*** Partial cut [10:10:45]*** CUTSNS_PIN = 1 [10:10:45]*** CUTSNS_PIN = 0 [10:10:46]*** Brake cut motor [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]*** Stop cut motor [10:10:46]*** Cut end [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 98 4F 00 00 00 00 00 FF 0F FC [10:10:46]process_action close_receipt done [10:10:46]requested_data is exist [10:10:46]produce_requested_data [10:10:46]requested_item fm.sn is exist - process it [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 11 00 00 [10:10:46]Write to MH i2c: E2 08 00 99 4F 80 11 00 00 00 00 00 00 62 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 99 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [10:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:46]wFMCommunicate OK [10:10:46]requested_item fd.num is exist - process it [10:10:46]SAM_PROTO_GetFieldsCounters [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 13 00 00 [10:10:46]Write to MH i2c: E2 08 00 9A 4F 80 13 00 00 00 00 00 00 65 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 62 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 62 00 9A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 12 01 00 0E 04 04 00 C3 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 92 [10:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 12 01 00 0E 04 04 00 C3 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 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_GetFieldsCounters done [10:10:46]requested_item shift.num is exist - process it [10:10:46]requested_item shift.opened is exist - process it [10:10:46]req_shift_opened [10:10:46]FM_GetShiftState [10:10:46]SAM_PROTO_GetShiftState [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 13 01 00 [10:10:46]Write to MH i2c: E2 08 00 9B 4F 80 13 01 00 00 00 00 00 67 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0E 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0E 00 9B 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 55 [10:10:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_GetShiftState done [10:10:46]FM_GetShiftState done [10:10:46]req_shift_opened done [10:10:46]requested_item shift.open_date is exist - process it [10:10:46]req_shift_open_date [10:10:46]req_shift_open_date done [10:10:46]produce_requested_data done [10:10:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70154,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:10:46]process_action_free close_receipt [10:10:46]json_value_free [10:10:46]json_value_free done [10:10:46]process_json_proto returns [10:10:46]Send response to host [10:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70154,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:10:46]free response buf [10:10:46]execute_script done [10:10:46]execute_script returns [10:10:46]free content buf [10:10:46]Sock 9.Close socket [10:10:46]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]accept exits with 7 [10:12:00]New connection [10:12:00]New thread 3067170148 created [10:12:00]Thread 3067026788 joined [10:12:00]Waiting for new connection... [10:12:00] Sock 7.Parse request [10:12:00]Sock 7.Check first char [10:12:00]Sock 7.First char is OK [10:12:00]request: POST /json_proto HTTP/1.0 [10:12:00]Method: POST [10:12:00]URL: /json_proto [10:12:00]Method is POST - this is cgi request [10:12:00]url: /json_proto [10:12:00]query_string will be loaded in cgi processing [10:12:00]execute_cgi json_proto POST (null) [10:12:00]execute_cgi path=json_proto method=POST [10:12:00]POST find Content-Length [10:12:00]Host: 172.17.50.3:8080 [10:12:00]Content-Length: 689 [10:12:00]Content-Type: application/json [10:12:00] [10:12:00]POST finish read [10:12:00]Found Content-Length = 689 [10:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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:12:00]execute_script... [10:12: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)2885921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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:12:00]POST & json_proto [10:12:00]process_json_proto [10:12:00]json parsed OK: [10:12:00]protocol is kg_v1.0 [10:12:00]action value=close_receipt [10:12:00]process_action close_receipt [10:12:00]cmd_close_receipt [10:12:00]MH_GetDate [10:12:00]Write to MH i2c: F0 00 00 9C 4F DA [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: F0 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: F0 09 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: F0 09 00 9C 4F 00 74 7A 17 67 6B 98 1E 66 D6 [10:12:00]GetLastDocTimeStamp 1729591847 [10:12:00]current date 1729591924 [10:12:00]FM_GetShiftState [10:12:00]SAM_PROTO_GetShiftState [10:12:00]wFMCommunicate request_size=4 [10:12:00]MH_SAM_APDU [10:12:00]CAPDU: 80 13 01 00 [10:12:00]Write to MH i2c: E2 08 00 9D 4F 80 13 01 00 00 00 00 00 69 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:00]Read from MH i2c: E2 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 0E 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 0E 00 9D 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 57 [10:12:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:12:00]wFMCommunicate OK [10:12:00]SAM_PROTO_GetShiftState done [10:12:00]FM_GetShiftState done [10:12:00]opened in 1729555832 [10:12:00]opened+sec_in_day 1729642232 [10:12:00]quantity*price = 300076 [10:12:00]sum+1 = 300077 [10:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 103 22.10.2024 10:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70155 ФПД: 149063133468080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101204&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70155&fm=149063133468080&tin=02508201610067®Number=0000000000156251&sum=300000 [10:12:01]StoreToDocumentArchive [10:12:01]shift 195 fd 70155 [10:12:01]save to /storage/0195/doc_00070155 [10:12:01]save last doc name /storage/0195/doc_00070155 to /storage/kkm_last_doc_name [10:12:01]save OK [10:12:01]Clear old archive folders... [10:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:12:01]tlvbuf is 01101510 [10:12:01]SAM_PROTO_ClearQueue [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 09 00 00 [10:12:01]Write to MH i2c: E2 08 00 AA 4F 80 09 00 00 00 00 00 00 6B [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 AA 4F 00 90 00 6D [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_ClearQueue done [10:12:01]KKMCreateOFDPacket [10:12:01]OFDProtocolAddRootSTLVToBuf [10:12:01]FM_MakeSignedData [10:12:01]FM_MakeSignedData [10:12:01]SAM_PROTO_SignData [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 01 02 [10:12:01]Write to MH i2c: E2 08 00 AB 4F 80 0D 01 02 00 00 00 00 73 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 AB 4F 00 90 00 6E [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=255 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 67 00 00 00 F4 03 04 00 74 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 12 01 [10:12:01]Write to MH i2c: E2 02 01 AC 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 67 00 00 00 F4 03 04 00 74 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 12 01 00 00 5B [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 AC 4F 00 90 00 6F [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=16 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 87 92 77 1E 95 B0 [10:12:01]Write to MH i2c: E2 13 00 AD 4F 80 0D 02 02 0B 00 00 35 04 06 00 87 92 77 1E 95 B0 00 00 BE [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 AD 4F 00 90 00 70 [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 03 02 [10:12:01]Write to MH i2c: E2 08 00 AE 4F 80 0D 03 02 00 00 00 00 78 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0B 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0B 00 AE 4F 00 63 EF 68 95 A6 44 EE CF 90 00 6F [10:12:01]RAPDU: 63 EF 68 95 A6 44 EE CF 90 00 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_SignData done [10:12:01]FM_MakeSignedData done [10:12:01]CreateOFDProtocolMessage [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 11 00 00 [10:12:01]Write to MH i2c: E2 08 00 AF 4F 80 11 00 00 00 00 00 00 78 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 AF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [10:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:12:01]wFMCommunicate OK [10:12:01]CreateOFDProtocolMessage done [10:12:01]OFDSenderStorePacket 70155 [10:12:01]StoreOFDPacket docnum=70155 [10:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 12 69 0D 01 71 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 67 00 00 00 F4 03 04 00 74 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 12 01 00 35 04 06 00 87 92 77 1E 95 B0 63 EF 68 95 A6 44 EE CF [10:12:01]CheckFolder [10:12:01]dirname=/storage/ofd_packets [10:12:01]CheckFolder done [10:12:01]ProducePacketName [10:12:01]name=ofd_packets/00070155 [10:12:01]NVStorageSaveData ofd_packets/00070155 [10:12:01]File name is /storage/ofd_packets/00070155 [10:12:01]Write 307 bytes [10:12:01]NVStorageSaveData done [10:12:01]OFDSenderStorePacket done [10:12:01]KKMCreateOFDPacket done [10:12:01]NVStorageSaveData kkm_last_timestamp [10:12:01]File name is /storage/kkm_last_timestamp [10:12:01]Write 4 bytes [10:12:01]NVStorageSaveData done [10:12:01]ExternCall_PrintAddStr [10:12:01]wPrintStart [10:12:01]Write to MH i2c: 01 00 00 B0 4F FF [10:12:01]OFD Sender: Processing packet 70155 [packets to send 18, broken 17] [10:12:01]ProducePacketName [10:12:01]name=ofd_packets/00070155 [10:12:01]OFD Sender: To server: pG, [10:12:01]CommunicateWithHost lk.salyk.kg:30040 [10:12:01]ConnectInit lk.salyk.kg [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 B0 4F 00 00 00 00 00 FF 0F 14 [10:12:01]RasterBufferAndPrint [10:12:01]line Счет N : (1)2885921 [10:12:01]line ИНН: 02508201610067 [10:12:01]line Контрольно-Кассовый Чек [10:12:01]line ПРОДАЖА [10:12:01]line ТРК (МРК, ГНК) : 31 [10:12:01]line Товар: 2710194240 [10:12:01]line D-ENERGY Дт-К-2 [10:12:01]line 38.870 * 77.20 [10:12:01]line = 3000.76 [10:12:01]line НДС 12% НСП 1% [10:12:01]line > о реализуемом товаре [10:12:01]line ОКРУГЛЕНИЕ: -0.76 [10:12:01]line ИТОГО: 3000.00 [10:12:01]line Внесено: 3000.00 [10:12:01]line СДАЧА: 0.00 [10:12:01]line НСП 1% : 26.55 [10:12:01]line НДС 12% : 318.66 [10:12:01]line Наличными: 3000.00 [10:12:01]line Безнал.: 0.00 [10:12:01]line Место: АЗС № 85 "Партнер Нефть" [10:12:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:12:01]line СНО: Общий режим [10:12:01]line Чек 103 22.10.2024 10:12 [10:12:01]line Смена: 195 ФФД: 1.0 [10:12:01]line ЗНМ: 0300000167 [10:12:01]line РНМ: 0000000000156251 [10:12:01]line Версия ККМ: v1.0 [10:12:01]line ФМ: 0000000000963346 [10:12:01]line ФД: 70155 [10:12:01]line ФПД: 149063133468080 [10:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101204&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70155&fm=149063133468080&tin=02508201610067®Number=0000000000156251&sum=300000 [10:12:02]Connected sock=10 [10:12: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 34 36 15 01 00 00 12 69 0D 01 71 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 67 00 00 00 F4 03 04 00 74 7A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 12 01 00 35 04 06 00 87 92 77 1E 95 B0 63 EF 68 95 A6 44 EE CF [10:12:02]written 0, free lines is 4095 [10:12: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 34 36 4F 00 00 00 57 FC 47 00 0A 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 34 36 10 04 04 00 0B 12 01 00 F4 03 04 00 15 24 17 67 B6 04 01 00 00 8B 08 C2 A8 4E B0 FA B4 [10:12:02]CommunicateWithHost err = 0 [10:12:02]CheckOFDResponse [10:12:02]1017 (14) - 77093643461234 [10:12:02]1041 (16) - 0000000000963346 [10:12:02]1040 (4) - 70155 [10:12:02]1012 (4) - 22.10.2024 04:03 [10:12:02]1206 (1) - 0 [10:12:02]OFD Sender: Remove packet 70155 [10:12:02]ProducePacketName [10:12:02]name=ofd_packets/00070155 [10:12:02]NVStorageDeleteData [10:12:02]Write to MH i2c: 01 00 00 DB 4F 2A [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 07 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 07 00 DB 4F 00 00 00 00 00 F8 0C 35 [10:12:02]RasterBufferAndPrint [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]written 0, free lines is 3329 [10:12:02]MH_Cut [10:12:02]Write to MH i2c: D1 01 00 E2 4F 01 03 [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 01 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 01 00 E2 4F 00 02 [10:12:02]Write to MH i2c: 01 00 00 E3 4F 32 [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]OFD Sender: No OFD packet to send [10:12:03]*** Cut start [10:12:03]*** Partial cut [10:12:03]*** CUTSNS_PIN = 1 [10:12:03]*** CUTSNS_PIN = 0 [10:12:03]*** Brake cut motor [10:12:03]Read from MH i2c: 01 [10:12:03]MH_I2C_Read... [10:12:03]*** Stop cut motor [10:12:03]*** Cut end [10:12:03]Read from MH i2c: 01 07 00 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: 01 07 00 E3 4F 00 00 00 00 00 FF 0F 47 [10:12:03]process_action close_receipt done [10:12:03]requested_data is exist [10:12:03]produce_requested_data [10:12:03]requested_item fm.sn is exist - process it [10:12:03]wFMCommunicate request_size=4 [10:12:03]MH_SAM_APDU [10:12:03]CAPDU: 80 11 00 00 [10:12:03]Write to MH i2c: E2 08 00 E4 4F 80 11 00 00 00 00 00 00 AD [10:12:03]Write i2c OK [10:12:03]MH_I2C_Read... [10:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:03]Read from MH i2c: E2 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: E2 17 00 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: E2 17 00 E4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [10:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:12:03]wFMCommunicate OK [10:12:03]requested_item fd.num is exist - process it [10:12:03]SAM_PROTO_GetFieldsCounters [10:12:03]wFMCommunicate request_size=4 [10:12:03]MH_SAM_APDU [10:12:03]CAPDU: 80 13 00 00 [10:12:03]Write to MH i2c: E2 08 00 E5 4F 80 13 00 00 00 00 00 00 B0 [10:12:03]Write i2c OK [10:12:03]MH_I2C_Read... [10:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:04]Read from MH i2c: E2 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 62 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 62 00 E5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 12 01 00 0E 04 04 00 C3 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 E1 [10:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 12 01 00 0E 04 04 00 C3 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 [10:12:04]wFMCommunicate OK [10:12:04]SAM_PROTO_GetFieldsCounters done [10:12:04]requested_item shift.num is exist - process it [10:12:04]requested_item shift.opened is exist - process it [10:12:04]req_shift_opened [10:12:04]FM_GetShiftState [10:12:04]SAM_PROTO_GetShiftState [10:12:04]wFMCommunicate request_size=4 [10:12:04]MH_SAM_APDU [10:12:04]CAPDU: 80 13 01 00 [10:12:04]Write to MH i2c: E2 08 00 E6 4F 80 13 01 00 00 00 00 00 B2 [10:12:04]Write i2c OK [10:12:04]MH_I2C_Read... [10:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:04]Read from MH i2c: E2 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 E6 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A0 [10:12:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:12:04]wFMCommunicate OK [10:12:04]SAM_PROTO_GetShiftState done [10:12:04]FM_GetShiftState done [10:12:04]req_shift_opened done [10:12:04]requested_item shift.open_date is exist - process it [10:12:04]req_shift_open_date [10:12:04]req_shift_open_date done [10:12:04]produce_requested_data done [10:12:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70155,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:12:04]process_action_free close_receipt [10:12:04]json_value_free [10:12:04]json_value_free done [10:12:04]process_json_proto returns [10:12:04]Send response to host [10:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70155,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:12:04]free response buf [10:12:04]execute_script done [10:12:04]execute_script returns [10:12:04]free content buf [10:12:04]Sock 7.Close socket [10:12:04]Sock 7.Thread stoped [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:08]accept exits with 9 [10:15:08]New connection [10:15:08]New thread 3067026788 created [10:15:08]Thread 3067170148 joined [10:15:08]Waiting for new connection... [10:15:08] Sock 9.Parse request [10:15:08]Sock 9.Check first char [10:15:08]Sock 9.First char is OK [10:15:08]request: POST /json_proto HTTP/1.0 [10:15:08]Method: POST [10:15:08]URL: /json_proto [10:15:08]Method is POST - this is cgi request [10:15:08]url: /json_proto [10:15:08]query_string will be loaded in cgi processing [10:15:08]execute_cgi json_proto POST (null) [10:15:08]execute_cgi path=json_proto method=POST [10:15:08]POST find Content-Length [10:15:08]Host: 172.17.50.3:8080 [10:15:08]Content-Length: 793 [10:15:08]Content-Type: application/json [10:15:08] [10:15:08]POST finish read [10:15:08]Found Content-Length = 793 [10:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:08]execute_script... [10:15: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)2885923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:08]POST & json_proto [10:15:08]process_json_proto [10:15:08]json parsed OK: [10:15:08]protocol is kg_v1.0 [10:15:08]action value=close_receipt [10:15:08]process_action close_receipt [10:15:08]cmd_close_receipt [10:15:08]MH_GetDate [10:15:08]Write to MH i2c: F0 00 00 E7 4F 25 [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: F0 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: F0 09 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: F0 09 00 E7 4F 00 30 7B 17 67 6B 98 1E 66 DE [10:15:08]GetLastDocTimeStamp 1729591924 [10:15:08]current date 1729592112 [10:15:08]FM_GetShiftState [10:15:08]SAM_PROTO_GetShiftState [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 13 01 00 [10:15:08]Write to MH i2c: E2 08 00 E8 4F 80 13 01 00 00 00 00 00 B4 [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 0E 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 0E 00 E8 4F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A2 [10:15:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:15:08]wFMCommunicate OK [10:15:08]SAM_PROTO_GetShiftState done [10:15:08]FM_GetShiftState done [10:15:08]opened in 1729555832 [10:15:08]opened+sec_in_day 1729642232 [10:15:08]quantity*price = 0 [10:15:08]sum+1 = 1 [10:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 104 22.10.2024 10:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 03879 ФМ: 0000000000963346 ФД: 70156 ФПД: 1998630846889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70156&fm=1998630846889&tin=02508201610067®Number=0000000000156251&sum=0 [10:15:09]StoreToDocumentArchive [10:15:09]shift 195 fd 70156 [10:15:09]save to /storage/0195/doc_00070156 [10:15:09]save last doc name /storage/0195/doc_00070156 to /storage/kkm_last_doc_name [10:15:09]save OK [10:15:09]Clear old archive folders... [10:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:09]tlvbuf is 0120E650 [10:15:09]SAM_PROTO_ClearQueue [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 09 00 00 [10:15:09]Write to MH i2c: E2 08 00 F5 4F 80 09 00 00 00 00 00 00 B6 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 F5 4F 00 90 00 B8 [10:15:09]RAPDU: 90 00 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_ClearQueue done [10:15:09]KKMCreateOFDPacket [10:15:09]OFDProtocolAddRootSTLVToBuf [10:15:09]FM_MakeSignedData [10:15:09]FM_MakeSignedData [10:15:09]SAM_PROTO_SignData [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 0D 01 02 [10:15:09]Write to MH i2c: E2 08 00 F6 4F 80 0D 01 02 00 00 00 00 BE [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 F6 4F 00 90 00 B9 [10:15:09]RAPDU: 90 00 [10:15:09]wFMCommunicate OK [10:15:09]wFMCommunicate request_size=255 [10:15:09]MH_SAM_APDU [10:15: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 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 68 00 00 00 F4 03 04 00 30 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 12 01 00 35 04 06 00 01 [10:15:09]Write to MH i2c: E2 02 01 F7 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 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 68 00 00 00 F4 03 04 00 30 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 12 01 00 35 04 06 00 01 00 00 A4 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 F7 4F 00 90 00 BA [10:15:09]RAPDU: 90 00 [10:15:09]wFMCommunicate OK [10:15:09]wFMCommunicate request_size=10 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 0D 02 02 05 D1 57 AE 81 A9 [10:15:09]Write to MH i2c: E2 0D 00 F8 4F 80 0D 02 02 05 00 D1 57 AE 81 A9 00 00 CB [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 03 00 F8 4F 00 90 00 BB [10:15:09]RAPDU: 90 00 [10:15:09]wFMCommunicate OK [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 0D 03 02 [10:15:09]Write to MH i2c: E2 08 00 F9 4F 80 0D 03 02 00 00 00 00 C3 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0B 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0B 00 F9 4F 00 C7 8E 7D 64 79 85 D7 A5 90 00 74 [10:15:09]RAPDU: C7 8E 7D 64 79 85 D7 A5 90 00 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_SignData done [10:15:09]FM_MakeSignedData done [10:15:09]CreateOFDProtocolMessage [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 11 00 00 [10:15:09]Write to MH i2c: E2 08 00 FA 4F 80 11 00 00 00 00 00 00 C3 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 17 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 17 00 FA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [10:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:09]wFMCommunicate OK [10:15:09]CreateOFDProtocolMessage done [10:15:09]OFDSenderStorePacket 70156 [10:15:09]StoreOFDPacket docnum=70156 [10:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 17 10 07 01 62 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 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 68 00 00 00 F4 03 04 00 30 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 12 01 00 35 04 06 00 01 D1 57 AE 81 A9 C7 8E 7D 64 79 85 D7 A5 [10:15:09]CheckFolder [10:15:09]dirname=/storage/ofd_packets [10:15:09]CheckFolder done [10:15:09]ProducePacketName [10:15:09]name=ofd_packets/00070156 [10:15:09]NVStorageSaveData ofd_packets/00070156 [10:15:09]File name is /storage/ofd_packets/00070156 [10:15:09]Write 301 bytes [10:15:09]NVStorageSaveData done [10:15:09]OFDSenderStorePacket done [10:15:09]KKMCreateOFDPacket done [10:15:09]NVStorageSaveData kkm_last_timestamp [10:15:09]File name is /storage/kkm_last_timestamp [10:15:09]Write 4 bytes [10:15:09]OFD Sender: Processing packet 70156 [packets to send 18, broken 17] [10:15:09]ProducePacketName [10:15:09]name=ofd_packets/00070156 [10:15:09]OFD Sender: To server: pG, [10:15:09]CommunicateWithHost lk.salyk.kg:30040 [10:15:09]ConnectInit lk.salyk.kg [10:15:09]NVStorageSaveData done [10:15:09]ExternCall_PrintAddStr [10:15:09]wPrintStart [10:15:09]Write to MH i2c: 01 00 00 FB 4F 4A [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 07 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 07 00 FB 4F 00 00 00 00 00 FF 0F 5F [10:15:09]RasterBufferAndPrint [10:15:09]line Счет N : (1)2885923 [10:15:09]line ИНН: 02508201610067 [10:15:09]line Контрольно-Кассовый Чек [10:15:09]line ПРОДАЖА [10:15:09]line ТРК (МРК, ГНК) : 42 [10:15:09]line Товар: 2710124130 [10:15:09]line Аи-92-К-5 [10:15:09]line 20.000 * 0.00 [10:15:09]line = 0.00 [10:15:09]line НДС 12% НСП 1% [10:15:09]line > о реализуемом товаре [10:15:09]line ИТОГО: 0.00 [10:15:09]line НСП 1% : 0.00 [10:15:09]line НДС 12% : 0.00 [10:15:09]line Наличными: 0.00 [10:15:09]line Безнал.: 0.00 [10:15:09]line Место: АЗС № 85 "Партнер Нефть" [10:15:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:09]line СНО: Общий режим [10:15:09]line Чек 104 22.10.2024 10:15 [10:15:09]line Смена: 195 ФФД: 1.0 [10:15:09]line ЗНМ: 0300000167 [10:15:09]line РНМ: 0000000000156251 [10:15:09]line Версия ККМ: v1.0 [10:15:09]line Талоны: Топливная Карта [10:15:09]line 03879 [10:15:09]line ФМ: 0000000000963346 [10:15:09]line ФД: 70156 [10:15:09]line ФПД: 1998630846889 [10:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70156&fm=1998630846889&tin=02508201610067®Number=0000000000156251&sum=0 [10:15:10]Connected sock=11 [10:15: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 34 36 0F 01 00 00 17 10 07 01 62 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 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 68 00 00 00 F4 03 04 00 30 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 12 01 00 35 04 06 00 01 D1 57 AE 81 A9 C7 8E 7D 64 79 85 D7 A5 [10:15:10]written 0, free lines is 4095 [10:15: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 34 36 4F 00 00 00 0F 04 47 00 1A 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 12 01 00 F4 03 04 00 D1 24 17 67 B6 04 01 00 00 AA A2 A6 9F 85 16 FC 79 [10:15:10]CommunicateWithHost err = 0 [10:15:10]CheckOFDResponse [10:15:10]1017 (14) - 77093643461234 [10:15:10]1041 (16) - 0000000000963346 [10:15:10]1040 (4) - 70156 [10:15:10]1012 (4) - 22.10.2024 04:06 [10:15:10]1206 (1) - 0 [10:15:10]OFD Sender: Remove packet 70156 [10:15:10]ProducePacketName [10:15:10]name=ofd_packets/00070156 [10:15:10]NVStorageDeleteData [10:15:10]Write to MH i2c: 01 00 00 25 50 75 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: 01 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: 01 07 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: 01 07 00 25 50 00 00 00 00 00 02 0D 8B [10:15:10]RasterBufferAndPrint [10:15:10]line [10:15:10]line [10:15:10]line [10:15:10]line [10:15:10]line [10:15:10]written 0, free lines is 3336 [10:15:10]MH_Cut [10:15:10]Write to MH i2c: D1 01 00 2C 50 01 4E [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: D1 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: D1 01 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: D1 01 00 2C 50 00 4D [10:15:10]Write to MH i2c: 01 00 00 2D 50 7D [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]OFD Sender: No OFD packet to send [10:15:11]*** Cut start [10:15:11]*** Partial cut [10:15:11]*** CUTSNS_PIN = 1 [10:15:11]*** CUTSNS_PIN = 0 [10:15:11]*** Brake cut motor [10:15:11]Read from MH i2c: 01 [10:15:11]MH_I2C_Read... [10:15:11]*** Stop cut motor [10:15:11]*** Cut end [10:15:11]Read from MH i2c: 01 07 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 07 00 2D 50 00 00 00 00 00 FF 0F 92 [10:15:11]process_action close_receipt done [10:15:11]requested_data is exist [10:15:11]produce_requested_data [10:15:11]requested_item fm.sn is exist - process it [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 11 00 00 [10:15:11]Write to MH i2c: E2 08 00 2E 50 80 11 00 00 00 00 00 00 F8 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 17 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 17 00 2E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [10:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:11]wFMCommunicate OK [10:15:11]requested_item fd.num is exist - process it [10:15:11]SAM_PROTO_GetFieldsCounters [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 13 00 00 [10:15:11]Write to MH i2c: E2 08 00 2F 50 80 13 00 00 00 00 00 00 FB [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:12]Read from MH i2c: E2 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 62 00 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 62 00 2F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 12 01 00 0E 04 04 00 C3 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 30 [10:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 12 01 00 0E 04 04 00 C3 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 [10:15:12]wFMCommunicate OK [10:15:12]SAM_PROTO_GetFieldsCounters done [10:15:12]requested_item shift.num is exist - process it [10:15:12]requested_item shift.opened is exist - process it [10:15:12]req_shift_opened [10:15:12]FM_GetShiftState [10:15:12]SAM_PROTO_GetShiftState [10:15:12]wFMCommunicate request_size=4 [10:15:12]MH_SAM_APDU [10:15:12]CAPDU: 80 13 01 00 [10:15:12]Write to MH i2c: E2 08 00 30 50 80 13 01 00 00 00 00 00 FD [10:15:12]Write i2c OK [10:15:12]MH_I2C_Read... [10:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:12]Read from MH i2c: E2 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 0E 00 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 0E 00 30 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EB [10:15:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:15:12]wFMCommunicate OK [10:15:12]SAM_PROTO_GetShiftState done [10:15:12]FM_GetShiftState done [10:15:12]req_shift_opened done [10:15:12]requested_item shift.open_date is exist - process it [10:15:12]req_shift_open_date [10:15:12]req_shift_open_date done [10:15:12]produce_requested_data done [10:15:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70156,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:15:12]process_action_free close_receipt [10:15:12]json_value_free [10:15:12]json_value_free done [10:15:12]process_json_proto returns [10:15:12]Send response to host [10:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70156,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:15:12]free response buf [10:15:12]execute_script done [10:15:12]execute_script returns [10:15:12]free content buf [10:15:12]Sock 9.Close socket [10:15:12]Sock 9.Thread stoped [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:22]accept exits with 7 [10:15:22]New connection [10:15:22]New thread 3067170148 created [10:15:22]Thread 3067026788 joined [10:15:22]Waiting for new connection... [10:15:22] Sock 7.Parse request [10:15:22]Sock 7.Check first char [10:15:22]Sock 7.First char is OK [10:15:22]request: POST /json_proto HTTP/1.0 [10:15:22]Method: POST [10:15:22]URL: /json_proto [10:15:22]Method is POST - this is cgi request [10:15:22]url: /json_proto [10:15:22]query_string will be loaded in cgi processing [10:15:22]execute_cgi json_proto POST (null) [10:15:22]execute_cgi path=json_proto method=POST [10:15:22]POST find Content-Length [10:15:22]Host: 172.17.50.3:8080 [10:15:22]Content-Length: 682 [10:15:22]Content-Type: application/json [10:15:22] [10:15:22]POST finish read [10:15:22]Found Content-Length = 682 [10:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:22]execute_script... [10:15: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)2885924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:22]POST & json_proto [10:15:22]process_json_proto [10:15:22]json parsed OK: [10:15:22]protocol is kg_v1.0 [10:15:22]action value=close_receipt [10:15:22]process_action close_receipt [10:15:22]cmd_close_receipt [10:15:22]MH_GetDate [10:15:22]Write to MH i2c: F0 00 00 31 50 70 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 31 50 00 3E 7B 17 67 6B 98 1E 66 37 [10:15:22]GetLastDocTimeStamp 1729592112 [10:15:22]current date 1729592126 [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 32 50 80 13 01 00 00 00 00 00 FF [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 32 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 ED [10:15:22]RAPDU: 09 00 01 78 ED 16 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]opened in 1729555832 [10:15:22]opened+sec_in_day 1729642232 [10:15:22]quantity*price = 50025 [10:15:22]sum+1 = 50026 [10:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 105 22.10.2024 10:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70157 ФПД: 72768690401987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70157&fm=72768690401987&tin=02508201610067®Number=0000000000156251&sum=50000 [10:15:23]StoreToDocumentArchive [10:15:23]shift 195 fd 70157 [10:15:23]save to /storage/0195/doc_00070157 [10:15:23]save last doc name /storage/0195/doc_00070157 to /storage/kkm_last_doc_name [10:15:23]save OK [10:15:23]Clear old archive folders... [10:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:15:23]tlvbuf is 0120E240 [10:15:23]SAM_PROTO_ClearQueue [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 09 00 00 [10:15:23]Write to MH i2c: E2 08 00 3F 50 80 09 00 00 00 00 00 00 01 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 3F 50 00 90 00 03 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]SAM_PROTO_ClearQueue done [10:15:23]KKMCreateOFDPacket [10:15:23]OFDProtocolAddRootSTLVToBuf [10:15:23]FM_MakeSignedData [10:15:23]FM_MakeSignedData [10:15:23]SAM_PROTO_SignData [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 01 02 [10:15:23]Write to MH i2c: E2 08 00 40 50 80 0D 01 02 00 00 00 00 09 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 40 50 00 90 00 04 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]wFMCommunicate request_size=255 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 69 00 00 00 F4 03 04 00 3E 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 12 01 00 35 04 06 00 42 2E [10:15:23]Write to MH i2c: E2 02 01 41 50 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 69 00 00 00 F4 03 04 00 3E 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 12 01 00 35 04 06 00 42 2E 00 00 3F [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]wFMCommunicate request_size=9 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 02 02 04 C7 F1 32 C3 [10:15:23]Write to MH i2c: E2 0C 00 42 50 80 0D 02 02 04 00 C7 F1 32 C3 00 00 C1 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 42 50 00 90 00 06 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 03 02 [10:15:23]Write to MH i2c: E2 08 00 43 50 80 0D 03 02 00 00 00 00 0E [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 0B 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 0B 00 43 50 00 3A 1D 94 01 95 16 C8 B5 90 00 23 [10:15:23]RAPDU: 3A 1D 94 01 95 16 C8 B5 90 00 [10:15:23]wFMCommunicate OK [10:15:23]SAM_PROTO_SignData done [10:15:23]FM_MakeSignedData done [10:15:23]CreateOFDProtocolMessage [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 11 00 00 [10:15:23]Write to MH i2c: E2 08 00 44 50 80 11 00 00 00 00 00 00 0E [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 17 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 17 00 44 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [10:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:23]wFMCommunicate OK [10:15:23]CreateOFDProtocolMessage done [10:15:23]OFDSenderStorePacket 70157 [10:15:23]StoreOFDPacket docnum=70157 [10:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 11 A6 06 01 5E D5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 69 00 00 00 F4 03 04 00 3E 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 12 01 00 35 04 06 00 42 2E C7 F1 32 C3 3A 1D 94 01 95 16 C8 B5 [10:15:23]CheckFolder [10:15:23]dirname=/storage/ofd_packets [10:15:23]CheckFolder done [10:15:23]ProducePacketName [10:15:23]name=ofd_packets/00070157 [10:15:23]NVStorageSaveData ofd_packets/00070157 [10:15:23]File name is /storage/ofd_packets/00070157 [10:15:23]Write 300 bytes [10:15:23]NVStorageSaveData done [10:15:23]OFDSenderStorePacket done [10:15:23]KKMCreateOFDPacket done [10:15:23]NVStorageSaveData kkm_last_timestamp [10:15:23]File name is /storage/kkm_last_timestamp [10:15:23]Write 4 bytes [10:15:23]NVStorageSaveData done [10:15:23]ExternCall_PrintAddStr [10:15:23]wPrintStart [10:15:23]Write to MH i2c: 01 00 00 45 50 95 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 07 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 07 00 45 50 00 00 00 00 00 FF 0F AA [10:15:23]RasterBufferAndPrint [10:15:23]line Счет N : (1)2885924 [10:15:23]line ИНН: 02508201610067 [10:15:23]line Контрольно-Кассовый Чек [10:15:23]line ПРОДАЖА [10:15:23]line ТРК (МРК, ГНК) : 71 [10:15:23]line Товар: 2711129700 [10:15:23]line ГАЗ-К-3 [10:15:23]line 12.860 * 38.90 [10:15:23]line = 500.25 [10:15:23]line НДС 12% НСП 1% [10:15:23]line > о реализуемом товаре [10:15:23]line ОКРУГЛЕНИЕ: -0.25 [10:15:23]line ИТОГО: 500.00 [10:15:23]line Внесено: 500.00 [10:15:23]line СДАЧА: 0.00 [10:15:23]line НСП 1% : 4.43 [10:15:23]line НДС 12% : 53.12 [10:15:23]line Наличными: 500.00 [10:15:23]line Безнал.: 0.00 [10:15:23]line Место: АЗС № 85 "Партнер Нефть" [10:15:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:23]line СНО: Общий режим [10:15:23]line Чек 105 22.10.2024 10:15 [10:15:23]line Смена: 195 ФФД: 1.0 [10:15:23]line ЗНМ: 0300000167 [10:15:23]line РНМ: 0000000000156251 [10:15:23]line Версия ККМ: v1.0 [10:15:23]line ФМ: 0000000000963346 [10:15:23]line ФД: 70157 [10:15:23]line ФПД: 72768690401987 [10:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70157&fm=72768690401987&tin=02508201610067®Number=0000000000156251&sum=50000 [10:15:24]OFD Sender: Processing packet 70157 [packets to send 18, broken 17] [10:15:24]ProducePacketName [10:15:24]name=ofd_packets/00070157 [10:15:24]OFD Sender: To server: pG, [10:15:24]CommunicateWithHost lk.salyk.kg:30040 [10:15:24]ConnectInit lk.salyk.kg [10:15:24]written 0, free lines is 4095 [10:15:24]Connected sock=10 [10:15: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 34 36 0E 01 00 00 11 A6 06 01 5E D5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 69 00 00 00 F4 03 04 00 3E 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 12 01 00 35 04 06 00 42 2E C7 F1 32 C3 3A 1D 94 01 95 16 C8 B5 [10:15: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 34 36 4F 00 00 00 2A 7D 47 00 C1 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 34 36 10 04 04 00 0D 12 01 00 F4 03 04 00 DF 24 17 67 B6 04 01 00 00 B8 0D 89 A7 CD 2F 57 97 [10:15:24]CommunicateWithHost err = 0 [10:15:24]CheckOFDResponse [10:15:24]1017 (14) - 77093643461234 [10:15:24]1041 (16) - 0000000000963346 [10:15:24]1040 (4) - 70157 [10:15:24]1012 (4) - 22.10.2024 04:06 [10:15:24]1206 (1) - 0 [10:15:24]OFD Sender: Remove packet 70157 [10:15:24]ProducePacketName [10:15:24]name=ofd_packets/00070157 [10:15:24]NVStorageDeleteData [10:15:24]Write to MH i2c: 01 00 00 70 50 C0 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 70 50 00 00 00 00 00 F6 0C C9 [10:15:24]RasterBufferAndPrint [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]written 0, free lines is 3328 [10:15:24]MH_Cut [10:15:24]Write to MH i2c: D1 01 00 77 50 01 99 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 01 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 01 00 77 50 00 98 [10:15:24]Write to MH i2c: 01 00 00 78 50 C8 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]OFD Sender: No OFD packet to send [10:15:25]*** Cut start [10:15:25]*** Partial cut [10:15:25]*** CUTSNS_PIN = 1 [10:15:25]*** CUTSNS_PIN = 0 [10:15:25]*** Brake cut motor [10:15:25]Read from MH i2c: 01 [10:15:25]MH_I2C_Read... [10:15:25]*** Stop cut motor [10:15:25]*** Cut end [10:15:25]Read from MH i2c: 01 07 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: 01 07 00 78 50 00 00 00 00 00 FF 0F DD [10:15:25]process_action close_receipt done [10:15:25]requested_data is exist [10:15:25]produce_requested_data [10:15:25]requested_item fm.sn is exist - process it [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 11 00 00 [10:15:25]Write to MH i2c: E2 08 00 79 50 80 11 00 00 00 00 00 00 43 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 17 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 17 00 79 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [10:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:25]wFMCommunicate OK [10:15:25]requested_item fd.num is exist - process it [10:15:25]SAM_PROTO_GetFieldsCounters [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 13 00 00 [10:15:25]Write to MH i2c: E2 08 00 7A 50 80 13 00 00 00 00 00 00 46 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 62 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 62 00 7A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 12 01 00 0E 04 04 00 C3 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 7F [10:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 12 01 00 0E 04 04 00 C3 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 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_GetFieldsCounters done [10:15:26]requested_item shift.num is exist - process it [10:15:26]requested_item shift.opened is exist - process it [10:15:26]req_shift_opened [10:15:26]FM_GetShiftState [10:15:26]SAM_PROTO_GetShiftState [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 13 01 00 [10:15:26]Write to MH i2c: E2 08 00 7B 50 80 13 01 00 00 00 00 00 48 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0E 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0E 00 7B 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [10:15:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_GetShiftState done [10:15:26]FM_GetShiftState done [10:15:26]req_shift_opened done [10:15:26]requested_item shift.open_date is exist - process it [10:15:26]req_shift_open_date [10:15:26]req_shift_open_date done [10:15:26]produce_requested_data done [10:15:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70157,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:15:26]process_action_free close_receipt [10:15:26]json_value_free [10:15:26]json_value_free done [10:15:26]process_json_proto returns [10:15:26]Send response to host [10:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70157,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:15:26]free response buf [10:15:26]execute_script done [10:15:26]execute_script returns [10:15:26]free content buf [10:15:26]Sock 7.Close socket [10:15:26]Sock 7.Thread stoped [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [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:38]accept exits with 9 [10:17:38]New connection [10:17:38]New thread 3067026788 created [10:17:38]Thread 3067170148 joined [10:17:38]Waiting for new connection... [10:17:38] Sock 9.Parse request [10:17:38]Sock 9.Check first char [10:17:38]Sock 9.First char is OK [10:17:38]request: POST /json_proto HTTP/1.0 [10:17:38]Method: POST [10:17:38]URL: /json_proto [10:17:38]Method is POST - this is cgi request [10:17:38]url: /json_proto [10:17:38]query_string will be loaded in cgi processing [10:17:38]execute_cgi json_proto POST (null) [10:17:38]execute_cgi path=json_proto method=POST [10:17:38]POST find Content-Length [10:17:38]Host: 172.17.50.3:8080 [10:17:38]Content-Length: 682 [10:17:38]Content-Type: application/json [10:17:38] [10:17:38]POST finish read [10:17:38]Found Content-Length = 682 [10:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:17:38]execute_script... [10:17: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)2885926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:17:38]POST & json_proto [10:17:38]process_json_proto [10:17:38]json parsed OK: [10:17:38]protocol is kg_v1.0 [10:17:38]action value=close_receipt [10:17:38]process_action close_receipt [10:17:38]cmd_close_receipt [10:17:38]MH_GetDate [10:17:38]Write to MH i2c: F0 00 00 7C 50 BB [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: F0 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: F0 09 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: F0 09 00 7C 50 00 C7 7B 17 67 6B 98 1E 66 0B [10:17:38]GetLastDocTimeStamp 1729592126 [10:17:38]current date 1729592263 [10:17:38]FM_GetShiftState [10:17:38]SAM_PROTO_GetShiftState [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 13 01 00 [10:17:38]Write to MH i2c: E2 08 00 7D 50 80 13 01 00 00 00 00 00 4A [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0E 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0E 00 7D 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 38 [10:17:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_GetShiftState done [10:17:38]FM_GetShiftState done [10:17:38]opened in 1729555832 [10:17:38]opened+sec_in_day 1729642232 [10:17:38]quantity*price = 50025 [10:17:38]sum+1 = 50026 [10:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 106 22.10.2024 10:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70158 ФПД: 61227429101081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70158&fm=61227429101081&tin=02508201610067®Number=0000000000156251&sum=50000 [10:17:39]StoreToDocumentArchive [10:17:39]shift 195 fd 70158 [10:17:39]save to /storage/0195/doc_00070158 [10:17:39]save last doc name /storage/0195/doc_00070158 to /storage/kkm_last_doc_name [10:17:39]save OK [10:17:39]Clear old archive folders... [10:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:17:39]tlvbuf is 0120DF00 [10:17:39]SAM_PROTO_ClearQueue [10:17:39]wFMCommunicate request_size=4 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 09 00 00 [10:17:39]Write to MH i2c: E2 08 00 8A 50 80 09 00 00 00 00 00 00 4C [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 8A 50 00 90 00 4E [10:17:39]RAPDU: 90 00 [10:17:39]wFMCommunicate OK [10:17:39]SAM_PROTO_ClearQueue done [10:17:39]KKMCreateOFDPacket [10:17:39]OFDProtocolAddRootSTLVToBuf [10:17:39]FM_MakeSignedData [10:17:39]FM_MakeSignedData [10:17:39]SAM_PROTO_SignData [10:17:39]wFMCommunicate request_size=4 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 0D 01 02 [10:17:39]Write to MH i2c: E2 08 00 8B 50 80 0D 01 02 00 00 00 00 54 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [10:17:39]RAPDU: 90 00 [10:17:39]wFMCommunicate OK [10:17:39]wFMCommunicate request_size=255 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 C7 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 12 01 00 35 04 06 00 37 AF [10:17:39]Write to MH i2c: E2 02 01 8C 50 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 C7 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 12 01 00 35 04 06 00 37 AF 00 00 8B [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [10:17:39]RAPDU: 90 00 [10:17:39]wFMCommunicate OK [10:17:39]wFMCommunicate request_size=9 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 0D 02 02 04 9F 29 7E 19 [10:17:39]Write to MH i2c: E2 0C 00 8D 50 80 0D 02 02 04 00 9F 29 7E 19 00 00 BE [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 03 00 8D 50 00 90 00 51 [10:17:39]RAPDU: 90 00 [10:17:39]wFMCommunicate OK [10:17:39]wFMCommunicate request_size=4 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 0D 03 02 [10:17:39]Write to MH i2c: E2 08 00 8E 50 80 0D 03 02 00 00 00 00 59 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 0B 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 0B 00 8E 50 00 9B D7 07 D9 B5 C5 53 6C 90 00 E5 [10:17:39]RAPDU: 9B D7 07 D9 B5 C5 53 6C 90 00 [10:17:39]wFMCommunicate OK [10:17:39]SAM_PROTO_SignData done [10:17:39]FM_MakeSignedData done [10:17:39]CreateOFDProtocolMessage [10:17:39]wFMCommunicate request_size=4 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 11 00 00 [10:17:39]Write to MH i2c: E2 08 00 8F 50 80 11 00 00 00 00 00 00 59 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:40]OFD Sender: No OFD packet to send [10:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 17 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 17 00 8F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [10:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:40]wFMCommunicate OK [10:17:40]CreateOFDProtocolMessage done [10:17:40]OFDSenderStorePacket 70158 [10:17:40]StoreOFDPacket docnum=70158 [10:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9D 40 06 01 18 4C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 C7 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 12 01 00 35 04 06 00 37 AF 9F 29 7E 19 9B D7 07 D9 B5 C5 53 6C [10:17:40]CheckFolder [10:17:40]dirname=/storage/ofd_packets [10:17:40]CheckFolder done [10:17:40]ProducePacketName [10:17:40]name=ofd_packets/00070158 [10:17:40]NVStorageSaveData ofd_packets/00070158 [10:17:40]File name is /storage/ofd_packets/00070158 [10:17:40]Write 300 bytes [10:17:40]NVStorageSaveData done [10:17:40]OFDSenderStorePacket done [10:17:40]KKMCreateOFDPacket done [10:17:40]NVStorageSaveData kkm_last_timestamp [10:17:40]File name is /storage/kkm_last_timestamp [10:17:40]Write 4 bytes [10:17:40]NVStorageSaveData done [10:17:40]ExternCall_PrintAddStr [10:17:40]wPrintStart [10:17:40]Write to MH i2c: 01 00 00 90 50 E0 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 07 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 07 00 90 50 00 00 00 00 00 FF 0F F5 [10:17:40]RasterBufferAndPrint [10:17:40]line Счет N : (1)2885926 [10:17:40]line ИНН: 02508201610067 [10:17:40]line Контрольно-Кассовый Чек [10:17:40]line ПРОДАЖА [10:17:40]line ТРК (МРК, ГНК) : 71 [10:17:40]line Товар: 2711129700 [10:17:40]line ГАЗ-К-3 [10:17:40]line 12.860 * 38.90 [10:17:40]line = 500.25 [10:17:40]line НДС 12% НСП 1% [10:17:40]line > о реализуемом товаре [10:17:40]line ОКРУГЛЕНИЕ: -0.25 [10:17:40]line ИТОГО: 500.00 [10:17:40]line Внесено: 500.00 [10:17:40]line СДАЧА: 0.00 [10:17:40]line НСП 1% : 4.43 [10:17:40]line НДС 12% : 53.12 [10:17:40]line Наличными: 500.00 [10:17:40]line Безнал.: 0.00 [10:17:40]line Место: АЗС № 85 "Партнер Нефть" [10:17:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:17:40]line СНО: Общий режим [10:17:40]line Чек 106 22.10.2024 10:17 [10:17:40]line Смена: 195 ФФД: 1.0 [10:17:40]line ЗНМ: 0300000167 [10:17:40]line РНМ: 0000000000156251 [10:17:40]line Версия ККМ: v1.0 [10:17:40]line ФМ: 0000000000963346 [10:17:40]line ФД: 70158 [10:17:40]line ФПД: 61227429101081 [10:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70158&fm=61227429101081&tin=02508201610067®Number=0000000000156251&sum=50000 [10:17:40]OFD Sender: Processing packet 70158 [packets to send 18, broken 17] [10:17:40]ProducePacketName [10:17:40]name=ofd_packets/00070158 [10:17:40]OFD Sender: To server: pG, [10:17:40]CommunicateWithHost lk.salyk.kg:30040 [10:17:40]ConnectInit lk.salyk.kg [10:17:40]written 0, free lines is 4095 [10:17:40]Connected sock=11 [10:17: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 34 36 0E 01 00 00 9D 40 06 01 18 4C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 C7 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 12 01 00 35 04 06 00 37 AF 9F 29 7E 19 9B D7 07 D9 B5 C5 53 6C [10:17: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 34 36 4F 00 00 00 B9 6A 47 00 07 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 12 01 00 F4 03 04 00 68 25 17 67 B6 04 01 00 00 E6 E8 EA 95 6C 05 C1 C5 [10:17:40]CommunicateWithHost err = 0 [10:17:40]CheckOFDResponse [10:17:40]1017 (14) - 77093643461234 [10:17:40]1041 (16) - 0000000000963346 [10:17:40]1040 (4) - 70158 [10:17:40]1012 (4) - 22.10.2024 04:09 [10:17:40]1206 (1) - 0 [10:17:40]OFD Sender: Remove packet 70158 [10:17:40]ProducePacketName [10:17:40]name=ofd_packets/00070158 [10:17:40]NVStorageDeleteData [10:17:40]Write to MH i2c: 01 00 00 BB 50 0B [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 07 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 07 00 BB 50 00 00 00 00 00 E4 0C 02 [10:17:40]RasterBufferAndPrint [10:17:40]line [10:17:40]line [10:17:40]line [10:17:40]line [10:17:40]line [10:17:40]written 0, free lines is 3306 [10:17:40]MH_Cut [10:17:40]Write to MH i2c: D1 01 00 C2 50 01 E4 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: D1 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: D1 01 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: D1 01 00 C2 50 00 E3 [10:17:40]Write to MH i2c: 01 00 00 C3 50 13 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:41]OFD Sender: No OFD packet to send [10:17:41]*** Cut start [10:17:41]*** Partial cut [10:17:41]*** CUTSNS_PIN = 1 [10:17:41]*** CUTSNS_PIN = 0 [10:17:41]*** Brake cut motor [10:17:42]Read from MH i2c: 01 [10:17:42]MH_I2C_Read... [10:17:42]*** Stop cut motor [10:17:42]*** Cut end [10:17:42]Read from MH i2c: 01 07 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 C3 50 00 00 00 00 00 FF 0F 28 [10:17:42]process_action close_receipt done [10:17:42]requested_data is exist [10:17:42]produce_requested_data [10:17:42]requested_item fm.sn is exist - process it [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 11 00 00 [10:17:42]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 17 00 [10:17:42]MH_I2C_Read... [10:17:42]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 34 36 90 00 E0 [10:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:42]wFMCommunicate OK [10:17:42]requested_item fd.num is exist - process it [10:17:42]SAM_PROTO_GetFieldsCounters [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 13 00 00 [10:17:42]Write to MH i2c: E2 08 00 C5 50 80 13 00 00 00 00 00 00 91 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 62 00 [10:17:42]MH_I2C_Read... [10:17:42]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 12 01 00 0E 04 04 00 C3 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 CE [10:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 12 01 00 0E 04 04 00 C3 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 [10:17:42]wFMCommunicate OK [10:17:42]SAM_PROTO_GetFieldsCounters done [10:17:42]requested_item shift.num is exist - process it [10:17:42]requested_item shift.opened is exist - process it [10:17:42]req_shift_opened [10:17:42]FM_GetShiftState [10:17:42]SAM_PROTO_GetShiftState [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 13 01 00 [10:17:42]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 81 [10:17:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:17:42]wFMCommunicate OK [10:17:42]SAM_PROTO_GetShiftState done [10:17:42]FM_GetShiftState done [10:17:42]req_shift_opened done [10:17:42]requested_item shift.open_date is exist - process it [10:17:42]req_shift_open_date [10:17:42]req_shift_open_date done [10:17:42]produce_requested_data done [10:17:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70158,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:17:42]process_action_free close_receipt [10:17:42]json_value_free [10:17:42]json_value_free done [10:17:42]process_json_proto returns [10:17:42]Send response to host [10:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70158,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:17:42]free response buf [10:17:42]execute_script done [10:17:42]execute_script returns [10:17:42]free content buf [10:17:42]Sock 9.Close socket [10:17:42]Sock 9.Thread stoped [10:17:42]accept exits with 7 [10:17:42]New connection [10:17:42]New thread 3067170148 created [10:17:42]Thread 3067026788 joined [10:17:42]Waiting for new connection... [10:17:42] Sock 7.Parse request [10:17:42]Sock 7.Check first char [10:17:42]Sock 7.First char is OK [10:17:42]request: POST /json_proto HTTP/1.0 [10:17:42]Method: POST [10:17:42]URL: /json_proto [10:17:42]Method is POST - this is cgi request [10:17:42]url: /json_proto [10:17:42]query_string will be loaded in cgi processing [10:17:42]execute_cgi json_proto POST (null) [10:17:42]execute_cgi path=json_proto method=POST [10:17:42]POST find Content-Length [10:17:42]Host: 172.17.50.3:8080 [10:17:42]Content-Length: 752 [10:17:42]Content-Type: application/json [10:17:42] [10:17:42]POST finish read [10:17:42]Found Content-Length = 752 [10:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885925", "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" : 0.00, "quantity" : 60.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\u000A30146684", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:42]execute_script... [10: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 : (1)2885925", "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" : 0.00, "quantity" : 60.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\u000A30146684", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:42]POST & json_proto [10:17:42]process_json_proto [10:17:42]json parsed OK: [10:17:42]protocol is kg_v1.0 [10:17:42]action value=close_receipt [10:17:42]process_action close_receipt [10:17:42]cmd_close_receipt [10:17:42]MH_GetDate [10:17:42]Write to MH i2c: F0 00 00 C7 50 06 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 09 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 09 00 C7 50 00 CB 7B 17 67 6B 98 1E 66 5A [10:17:42]GetLastDocTimeStamp 1729592263 [10:17:42]current date 1729592267 [10:17:42]FM_GetShiftState [10:17:42]SAM_PROTO_GetShiftState [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 13 01 00 [10:17:42]Write to MH i2c: E2 08 00 C8 50 80 13 01 00 00 00 00 00 95 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 C8 50 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 83 [10:17:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:17:42]wFMCommunicate OK [10:17:42]SAM_PROTO_GetShiftState done [10:17:42]FM_GetShiftState done [10:17:42]opened in 1729555832 [10:17:42]opened+sec_in_day 1729642232 [10:17:42]quantity*price = 0 [10:17:42]sum+1 = 1 [10:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 107 22.10.2024 10:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30146684 ФМ: 0000000000963346 ФД: 70159 ФПД: 159166827463088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70159&fm=159166827463088&tin=02508201610067®Number=0000000000156251&sum=0 [10:17:43]StoreToDocumentArchive [10:17:43]shift 195 fd 70159 [10:17:43]save to /storage/0195/doc_00070159 [10:17:43]save last doc name /storage/0195/doc_00070159 to /storage/kkm_last_doc_name [10:17:43]save OK [10:17:43]Clear old archive folders... [10:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:43]tlvbuf is 01198290 [10:17:43]SAM_PROTO_ClearQueue [10:17:43]wFMCommunicate request_size=4 [10:17:43]MH_SAM_APDU [10:17:43]CAPDU: 80 09 00 00 [10:17:43]Write to MH i2c: E2 08 00 D5 50 80 09 00 00 00 00 00 00 97 [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_ClearQueue done [10:17:44]KKMCreateOFDPacket [10:17:44]OFDProtocolAddRootSTLVToBuf [10:17:44]FM_MakeSignedData [10:17:44]FM_MakeSignedData [10:17:44]SAM_PROTO_SignData [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 01 02 [10:17:44]Write to MH i2c: E2 08 00 D6 50 80 0D 01 02 00 00 00 00 9F [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=255 [10:17:44]MH_SAM_APDU [10:17:44]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 60 EA 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 6B 00 00 00 F4 03 04 00 CB 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 12 01 00 35 04 06 00 90 C2 EA 36 [10:17:44]Write to MH i2c: E2 02 01 D7 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 6B 00 00 00 F4 03 04 00 CB 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 12 01 00 35 04 06 00 90 C2 EA 36 00 00 C6 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=7 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 02 02 02 01 B0 [10:17:44]Write to MH i2c: E2 0A 00 D8 50 80 0D 02 02 02 00 01 B0 00 00 57 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D8 50 00 90 00 9C [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 03 02 [10:17:44]Write to MH i2c: E2 08 00 D9 50 80 0D 03 02 00 00 00 00 A4 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0B 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0B 00 D9 50 00 BE 70 8E 71 7F D0 73 86 90 00 1A [10:17:44]RAPDU: BE 70 8E 71 7F D0 73 86 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_SignData done [10:17:44]FM_MakeSignedData done [10:17:44]CreateOFDProtocolMessage [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 11 00 00 [10:17:44]Write to MH i2c: E2 08 00 DA 50 80 11 00 00 00 00 00 00 A4 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 17 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 17 00 DA 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [10:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:44]wFMCommunicate OK [10:17:44]CreateOFDProtocolMessage done [10:17:44]OFDSenderStorePacket 70159 [10:17:44]StoreOFDPacket docnum=70159 [10:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 93 01 04 01 74 30 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 60 EA 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 6B 00 00 00 F4 03 04 00 CB 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 12 01 00 35 04 06 00 90 C2 EA 36 01 B0 BE 70 8E 71 7F D0 73 86 [10:17:44]CheckFolder [10:17:44]dirname=/storage/ofd_packets [10:17:44]CheckFolder done [10:17:44]ProducePacketName [10:17:44]name=ofd_packets/00070159 [10:17:44]NVStorageSaveData ofd_packets/00070159 [10:17:44]File name is /storage/ofd_packets/00070159 [10:17:44]Write 298 bytes [10:17:44]NVStorageSaveData done [10:17:44]OFDSenderStorePacket done [10:17:44]KKMCreateOFDPacket done [10:17:44]NVStorageSaveData kkm_last_timestamp [10:17:44]File name is /storage/kkm_last_timestamp [10:17:44]Write 4 bytes [10:17:44]NVStorageSaveData done [10:17:44]ExternCall_PrintAddStr [10:17:44]wPrintStart [10:17:44]Write to MH i2c: 01 00 00 DB 50 2B [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 DB 50 00 00 00 00 00 FF 0F 40 [10:17:44]RasterBufferAndPrint [10:17:44]line Счет N : (1)2885925 [10:17:44]line ИНН: 02508201610067 [10:17:44]line Контрольно-Кассовый Чек [10:17:44]line ПРОДАЖА [10:17:44]line ТРК (МРК, ГНК) : 51 [10:17:44]line Товар: 2710194210 [10:17:44]line ДТ-К-5 [10:17:44]line 60.000 * 0.00 [10:17:44]line = 0.00 [10:17:44]line НДС 12% НСП 1% [10:17:44]line > о реализуемом товаре [10:17:44]line ИТОГО: 0.00 [10:17:44]line НСП 1% : 0.00 [10:17:44]line НДС 12% : 0.00 [10:17:44]line Наличными: 0.00 [10:17:44]line Безнал.: 0.00 [10:17:44]line Место: АЗС № 85 "Партнер Нефть" [10:17:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:17:44]line СНО: Общий режим [10:17:44]line Чек 107 22.10.2024 10:17 [10:17:44]line Смена: 195 ФФД: 1.0 [10:17:44]line ЗНМ: 0300000167 [10:17:44]line РНМ: 0000000000156251 [10:17:44]line Версия ККМ: v1.0 [10:17:44]line Талоны: ТК ГПНА Online [10:17:44]line 30146684 [10:17:44]line ФМ: 0000000000963346 [10:17:44]line ФД: 70159 [10:17:44]line ФПД: 159166827463088 [10:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70159&fm=159166827463088&tin=02508201610067®Number=0000000000156251&sum=0 [10:17:45]OFD Sender: Processing packet 70159 [packets to send 18, broken 17] [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00070159 [10:17:45]OFD Sender: To server: pG, [10:17:45]CommunicateWithHost lk.salyk.kg:30040 [10:17:45]ConnectInit lk.salyk.kg [10:17:45]written 0, free lines is 4095 [10:17:45]Connected sock=10 [10:17: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 34 36 0C 01 00 00 93 01 04 01 74 30 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 60 EA 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 6B 00 00 00 F4 03 04 00 CB 7B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 12 01 00 35 04 06 00 90 C2 EA 36 01 B0 BE 70 8E 71 7F D0 73 86 [10:17: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 34 36 4F 00 00 00 E4 83 47 00 8C 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 12 01 00 F4 03 04 00 6D 25 17 67 B6 04 01 00 00 1A 3C FD FB 7A 61 AE D3 [10:17:45]CommunicateWithHost err = 0 [10:17:45]CheckOFDResponse [10:17:45]1017 (14) - 77093643461234 [10:17:45]1041 (16) - 0000000000963346 [10:17:45]1040 (4) - 70159 [10:17:45]1012 (4) - 22.10.2024 04:09 [10:17:45]1206 (1) - 0 [10:17:45]OFD Sender: Remove packet 70159 [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00070159 [10:17:45]NVStorageDeleteData [10:17:45]Write to MH i2c: 01 00 00 05 51 56 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 05 51 00 00 00 00 00 04 0D 6E [10:17:45]RasterBufferAndPrint [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]written 0, free lines is 3342 [10:17:45]MH_Cut [10:17:45]Write to MH i2c: D1 01 00 0C 51 01 2F [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 01 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 01 00 0C 51 00 2E [10:17:45]Write to MH i2c: 01 00 00 0D 51 5E [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:46]OFD Sender: No OFD packet to send [10:17:46]*** Cut start [10:17:46]*** Partial cut [10:17:46]*** CUTSNS_PIN = 1 [10:17:46]*** CUTSNS_PIN = 0 [10:17:46]*** Brake cut motor [10:17:46]Read from MH i2c: 01 [10:17:47]MH_I2C_Read... [10:17:47]*** Stop cut motor [10:17:47]*** Cut end [10:17:47]Read from MH i2c: 01 07 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: 01 07 00 0D 51 00 00 00 00 00 FF 0F 73 [10:17:47]process_action close_receipt done [10:17:47]requested_data is exist [10:17:47]produce_requested_data [10:17:47]requested_item fm.sn is exist - process it [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 11 00 00 [10:17:47]Write to MH i2c: E2 08 00 0E 51 80 11 00 00 00 00 00 00 D9 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 0E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [10:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:47]wFMCommunicate OK [10:17:47]requested_item fd.num is exist - process it [10:17:47]SAM_PROTO_GetFieldsCounters [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 00 00 [10:17:47]Write to MH i2c: E2 08 00 0F 51 80 13 00 00 00 00 00 00 DC [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 0F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 12 01 00 0E 04 04 00 C3 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 1D [10:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 12 01 00 0E 04 04 00 C3 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 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetFieldsCounters done [10:17:47]requested_item shift.num is exist - process it [10:17:47]requested_item shift.opened is exist - process it [10:17:47]req_shift_opened [10:17:47]FM_GetShiftState [10:17:47]SAM_PROTO_GetShiftState [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 01 00 [10:17:47]Write to MH i2c: E2 08 00 10 51 80 13 01 00 00 00 00 00 DE [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 10 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CC [10:17:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetShiftState done [10:17:47]FM_GetShiftState done [10:17:47]req_shift_opened done [10:17:47]requested_item shift.open_date is exist - process it [10:17:47]req_shift_open_date [10:17:47]req_shift_open_date done [10:17:47]produce_requested_data done [10:17:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70159,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:17:47]process_action_free close_receipt [10:17:47]json_value_free [10:17:47]json_value_free done [10:17:47]process_json_proto returns [10:17:47]Send response to host [10:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70159,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:17:47]free response buf [10:17:47]execute_script done [10:17:47]execute_script returns [10:17:47]free content buf [10:17:47]Sock 7.Close socket [10:17:47]Sock 7.Thread stoped [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:42]accept exits with 9 [10:19:42]New connection [10:19:42]New thread 3067026788 created [10:19:42]Thread 3067170148 joined [10:19:42]Waiting for new connection... [10:19:42] Sock 9.Parse request [10:19:42]Sock 9.Check first char [10:19:42]Sock 9.First char is OK [10:19:42]request: POST /json_proto HTTP/1.0 [10:19:42]Method: POST [10:19:42]URL: /json_proto [10:19:42]Method is POST - this is cgi request [10:19:42]url: /json_proto [10:19:42]query_string will be loaded in cgi processing [10:19:42]execute_cgi json_proto POST (null) [10:19:42]execute_cgi path=json_proto method=POST [10:19:42]POST find Content-Length [10:19:42]Host: 172.17.50.3:8080 [10:19:42]Content-Length: 678 [10:19:42]Content-Type: application/json [10:19:42] [10:19:42]POST finish read [10:19:42]Found Content-Length = 678 [10:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:19:42]execute_script... [10: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 : (1)2885927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:19:42]POST & json_proto [10:19:42]process_json_proto [10:19:42]json parsed OK: [10:19:42]protocol is kg_v1.0 [10:19:42]action value=close_receipt [10:19:42]process_action close_receipt [10:19:42]cmd_close_receipt [10:19:42]MH_GetDate [10:19:42]Write to MH i2c: F0 00 00 11 51 51 [10:19:42]Write i2c OK [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 09 00 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 09 00 11 51 00 43 7C 17 67 6B 98 1E 66 1E [10:19:42]GetLastDocTimeStamp 1729592267 [10:19:42]current date 1729592387 [10:19:42]FM_GetShiftState [10:19:42]SAM_PROTO_GetShiftState [10:19:42]wFMCommunicate request_size=4 [10:19:42]MH_SAM_APDU [10:19:42]CAPDU: 80 13 01 00 [10:19:42]Write to MH i2c: E2 08 00 12 51 80 13 01 00 00 00 00 00 E0 [10:19:42]Write i2c OK [10:19:42]MH_I2C_Read... [10:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:42]Read from MH i2c: E2 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: E2 0E 00 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: E2 0E 00 12 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CE [10:19:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:19:42]wFMCommunicate OK [10:19:42]SAM_PROTO_GetShiftState done [10:19:42]FM_GetShiftState done [10:19:42]opened in 1729555832 [10:19:42]opened+sec_in_day 1729642232 [10:19:42]quantity*price = 30038 [10:19:42]sum+1 = 30039 [10:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 108 22.10.2024 10:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70160 ФПД: 169564817085942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70160&fm=169564817085942&tin=02508201610067®Number=0000000000156251&sum=30000 [10:19:43]StoreToDocumentArchive [10:19:43]shift 195 fd 70160 [10:19:43]save to /storage/0195/doc_00070160 [10:19:43]save last doc name /storage/0195/doc_00070160 to /storage/kkm_last_doc_name [10:19:43]save OK [10:19:43]Clear old archive folders... [10:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:43]tlvbuf is 01144F60 [10:19:43]SAM_PROTO_ClearQueue [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 09 00 00 [10:19:43]Write to MH i2c: E2 08 00 1F 51 80 09 00 00 00 00 00 00 E2 [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [10:19:43]RAPDU: 90 00 [10:19:43]wFMCommunicate OK [10:19:43]SAM_PROTO_ClearQueue done [10:19:43]KKMCreateOFDPacket [10:19:43]OFDProtocolAddRootSTLVToBuf [10:19:43]FM_MakeSignedData [10:19:43]FM_MakeSignedData [10:19:43]SAM_PROTO_SignData [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 0D 01 02 [10:19:43]Write to MH i2c: E2 08 00 20 51 80 0D 01 02 00 00 00 00 EA [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [10:19:43]RAPDU: 90 00 [10:19:43]wFMCommunicate OK [10:19:43]wFMCommunicate request_size=255 [10:19:43]MH_SAM_APDU [10:19:43]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 6C 00 00 00 F4 03 04 00 43 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 12 01 00 35 04 06 00 9A [10:19:43]Write to MH i2c: E2 02 01 21 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 6C 00 00 00 F4 03 04 00 43 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 12 01 00 35 04 06 00 9A 00 00 90 [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [10:19:43]RAPDU: 90 00 [10:19:43]wFMCommunicate OK [10:19:43]wFMCommunicate request_size=10 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 0D 02 02 05 37 E2 B0 55 F6 [10:19:43]Write to MH i2c: E2 0D 00 22 51 80 0D 02 02 05 00 37 E2 B0 55 F6 00 00 0B [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 22 51 00 90 00 E7 [10:19:44]RAPDU: 90 00 [10:19:44]wFMCommunicate OK [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 0D 03 02 [10:19:44]Write to MH i2c: E2 08 00 23 51 80 0D 03 02 00 00 00 00 EF [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0B 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0B 00 23 51 00 83 DC DF 7B 2A B0 6F DF 90 00 D1 [10:19:44]RAPDU: 83 DC DF 7B 2A B0 6F DF 90 00 [10:19:44]wFMCommunicate OK [10:19:44]SAM_PROTO_SignData done [10:19:44]FM_MakeSignedData done [10:19:44]CreateOFDProtocolMessage [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 11 00 00 [10:19:44]Write to MH i2c: E2 08 00 24 51 80 11 00 00 00 00 00 00 EF [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 17 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 17 00 24 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [10:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:19:44]wFMCommunicate OK [10:19:44]CreateOFDProtocolMessage done [10:19:44]OFDSenderStorePacket 70160 [10:19:44]StoreOFDPacket docnum=70160 [10:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 FF 07 01 C1 67 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 6C 00 00 00 F4 03 04 00 43 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 12 01 00 35 04 06 00 9A 37 E2 B0 55 F6 83 DC DF 7B 2A B0 6F DF [10:19:44]CheckFolder [10:19:44]dirname=/storage/ofd_packets [10:19:44]CheckFolder done [10:19:44]ProducePacketName [10:19:44]name=ofd_packets/00070160 [10:19:44]NVStorageSaveData ofd_packets/00070160 [10:19:44]File name is /storage/ofd_packets/00070160 [10:19:44]Write 301 bytes [10:19:44]NVStorageSaveData done [10:19:44]OFDSenderStorePacket done [10:19:44]KKMCreateOFDPacket done [10:19:44]NVStorageSaveData kkm_last_timestamp [10:19:44]File name is /storage/kkm_last_timestamp [10:19:44]Write 4 bytes [10:19:44]NVStorageSaveData done [10:19:44]ExternCall_PrintAddStr [10:19:44]wPrintStart [10:19:44]Write to MH i2c: 01 00 00 25 51 76 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 25 51 00 00 00 00 00 FF 0F 8B [10:19:44]RasterBufferAndPrint [10:19:44]line Счет N : (1)2885927 [10:19:44]line ИНН: 02508201610067 [10:19:44]line Контрольно-Кассовый Чек [10:19:44]line ПРОДАЖА [10:19:44]line ТРК (МРК, ГНК) : 42 [10:19:44]line Товар: 2710124130 [10:19:44]line Аи-92-К-5 [10:19:44]line 4.490 * 66.90 [10:19:44]line = 300.38 [10:19:44]line НДС 12% НСП 1% [10:19:44]line > о реализуемом товаре [10:19:44]line ОКРУГЛЕНИЕ: -0.38 [10:19:44]line ИТОГО: 300.00 [10:19:44]line Внесено: 300.00 [10:19:44]line СДАЧА: 0.00 [10:19:44]line НСП 1% : 2.66 [10:19:44]line НДС 12% : 31.90 [10:19:44]line Наличными: 300.00 [10:19:44]line Безнал.: 0.00 [10:19:44]line Место: АЗС № 85 "Партнер Нефть" [10:19:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:19:44]line СНО: Общий режим [10:19:44]line Чек 108 22.10.2024 10:19 [10:19:44]line Смена: 195 ФФД: 1.0 [10:19:44]line ЗНМ: 0300000167 [10:19:44]line РНМ: 0000000000156251 [10:19:44]line Версия ККМ: v1.0 [10:19:44]line ФМ: 0000000000963346 [10:19:44]line ФД: 70160 [10:19:44]line ФПД: 169564817085942 [10:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70160&fm=169564817085942&tin=02508201610067®Number=0000000000156251&sum=30000 [10:19:44]OFD Sender: Processing packet 70160 [packets to send 18, broken 17] [10:19:44]ProducePacketName [10:19:44]name=ofd_packets/00070160 [10:19:44]OFD Sender: To server: pG, [10:19:44]CommunicateWithHost lk.salyk.kg:30040 [10:19:44]ConnectInit lk.salyk.kg [10:19:44]written 0, free lines is 4095 [10:19:44]Connected sock=10 [10:19: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 34 36 0F 01 00 00 91 FF 07 01 C1 67 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 6C 00 00 00 F4 03 04 00 43 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 12 01 00 35 04 06 00 9A 37 E2 B0 55 F6 83 DC DF 7B 2A B0 6F DF [10:19: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 34 36 4F 00 00 00 9D 2D 47 00 6F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 12 01 00 F4 03 04 00 E4 25 17 67 B6 04 01 00 00 7A 67 D1 77 27 01 55 DC [10:19:44]CommunicateWithHost err = 0 [10:19:44]CheckOFDResponse [10:19:44]1017 (14) - 77093643461234 [10:19:44]1041 (16) - 0000000000963346 [10:19:44]1040 (4) - 70160 [10:19:44]1012 (4) - 22.10.2024 04:11 [10:19:44]1206 (1) - 0 [10:19:44]OFD Sender: Remove packet 70160 [10:19:44]ProducePacketName [10:19:44]name=ofd_packets/00070160 [10:19:44]NVStorageDeleteData [10:19:44]Write to MH i2c: 01 00 00 50 51 A1 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 50 51 00 00 00 00 00 FE 0C B2 [10:19:44]RasterBufferAndPrint [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]written 0, free lines is 3335 [10:19:44]MH_Cut [10:19:44]Write to MH i2c: D1 01 00 57 51 01 7A [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 01 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 01 00 57 51 00 79 [10:19:44]Write to MH i2c: 01 00 00 58 51 A9 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:45]OFD Sender: No OFD packet to send [10:19:45]*** Cut start [10:19:45]*** Partial cut [10:19:45]*** CUTSNS_PIN = 1 [10:19:45]*** CUTSNS_PIN = 0 [10:19:45]*** Brake cut motor [10:19:46]Read from MH i2c: 01 [10:19:46]MH_I2C_Read... [10:19:46]*** Stop cut motor [10:19:46]*** Cut end [10:19:46]Read from MH i2c: 01 07 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 07 00 58 51 00 00 00 00 00 FF 0F BE [10:19:46]process_action close_receipt done [10:19:46]requested_data is exist [10:19:46]produce_requested_data [10:19:46]requested_item fm.sn is exist - process it [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 11 00 00 [10:19:46]Write to MH i2c: E2 08 00 59 51 80 11 00 00 00 00 00 00 24 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 17 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 17 00 59 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [10:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:19:46]wFMCommunicate OK [10:19:46]requested_item fd.num is exist - process it [10:19:46]SAM_PROTO_GetFieldsCounters [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 13 00 00 [10:19:46]Write to MH i2c: E2 08 00 5A 51 80 13 00 00 00 00 00 00 27 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 62 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 62 00 5A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 12 01 00 0E 04 04 00 C3 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 6C [10:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 12 01 00 0E 04 04 00 C3 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 [10:19:46]wFMCommunicate OK [10:19:46]SAM_PROTO_GetFieldsCounters done [10:19:46]requested_item shift.num is exist - process it [10:19:46]requested_item shift.opened is exist - process it [10:19:46]req_shift_opened [10:19:46]FM_GetShiftState [10:19:46]SAM_PROTO_GetShiftState [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 13 01 00 [10:19:46]Write to MH i2c: E2 08 00 5B 51 80 13 01 00 00 00 00 00 29 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 0E 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 0E 00 5B 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 17 [10:19:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:19:46]wFMCommunicate OK [10:19:46]SAM_PROTO_GetShiftState done [10:19:46]FM_GetShiftState done [10:19:46]req_shift_opened done [10:19:46]requested_item shift.open_date is exist - process it [10:19:46]req_shift_open_date [10:19:46]req_shift_open_date done [10:19:46]produce_requested_data done [10:19:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70160,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:19:46]process_action_free close_receipt [10:19:46]json_value_free [10:19:46]json_value_free done [10:19:46]process_json_proto returns [10:19:46]Send response to host [10:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70160,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:19:46]free response buf [10:19:46]execute_script done [10:19:46]execute_script returns [10:19:46]free content buf [10:19:46]Sock 9.Close socket [10:19:46]Sock 9.Thread stoped [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:37]accept exits with 7 [10:20:37]New connection [10:20:37]New thread 3067170148 created [10:20:37]Thread 3067026788 joined [10:20:37]Waiting for new connection... [10:20:37] Sock 7.Parse request [10:20:37]Sock 7.Check first char [10:20:37]Sock 7.First char is OK [10:20:37]request: POST /json_proto HTTP/1.0 [10:20:37]Method: POST [10:20:37]URL: /json_proto [10:20:37]Method is POST - this is cgi request [10:20:37]url: /json_proto [10:20:37]query_string will be loaded in cgi processing [10:20:37]execute_cgi json_proto POST (null) [10:20:37]execute_cgi path=json_proto method=POST [10:20:37]POST find Content-Length [10:20:37]Host: 172.17.50.3:8080 [10:20:37]Content-Length: 683 [10:20:37]Content-Type: application/json [10:20:37] [10:20:37]POST finish read [10:20:37]Found Content-Length = 683 [10:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:20:37]execute_script... [10:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:20:37]POST & json_proto [10:20:37]process_json_proto [10:20:37]json parsed OK: [10:20:37]protocol is kg_v1.0 [10:20:37]action value=close_receipt [10:20:37]process_action close_receipt [10:20:37]cmd_close_receipt [10:20:37]MH_GetDate [10:20:37]Write to MH i2c: F0 00 00 5C 51 9C [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 09 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 09 00 5C 51 00 7A 7C 17 67 6B 98 1E 66 A0 [10:20:37]GetLastDocTimeStamp 1729592387 [10:20:37]current date 1729592442 [10:20:37]FM_GetShiftState [10:20:37]SAM_PROTO_GetShiftState [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 13 01 00 [10:20:37]Write to MH i2c: E2 08 00 5D 51 80 13 01 00 00 00 00 00 2B [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 5D 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 19 [10:20:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetShiftState done [10:20:37]FM_GetShiftState done [10:20:37]opened in 1729555832 [10:20:37]opened+sec_in_day 1729642232 [10:20:37]quantity*price = 100015 [10:20:37]sum+1 = 100017 [10:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 109 22.10.2024 10:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70161 ФПД: 55234033282168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70161&fm=55234033282168&tin=02508201610067®Number=0000000000156251&sum=100000 [10:20:38]StoreToDocumentArchive [10:20:38]shift 195 fd 70161 [10:20:38]save to /storage/0195/doc_00070161 [10:20:38]save last doc name /storage/0195/doc_00070161 to /storage/kkm_last_doc_name [10:20:38]save OK [10:20:38]Clear old archive folders... [10:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:38]tlvbuf is 0111D850 [10:20:38]SAM_PROTO_ClearQueue [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 09 00 00 [10:20:38]Write to MH i2c: E2 08 00 6A 51 80 09 00 00 00 00 00 00 2D [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 6A 51 00 90 00 2F [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]SAM_PROTO_ClearQueue done [10:20:38]KKMCreateOFDPacket [10:20:38]OFDProtocolAddRootSTLVToBuf [10:20:38]FM_MakeSignedData [10:20:38]FM_MakeSignedData [10:20:38]SAM_PROTO_SignData [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 01 02 [10:20:38]Write to MH i2c: E2 08 00 6B 51 80 0D 01 02 00 00 00 00 35 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 6B 51 00 90 00 30 [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=255 [10:20:38]MH_SAM_APDU [10:20: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 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 6D 00 00 00 F4 03 04 00 7A 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 12 01 00 35 04 06 00 32 [10:20:38]Write to MH i2c: E2 02 01 6C 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 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 6D 00 00 00 F4 03 04 00 7A 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 12 01 00 35 04 06 00 32 00 00 B2 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 03 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 03 00 6C 51 00 90 00 31 [10:20:39]RAPDU: 90 00 [10:20:39]wFMCommunicate OK [10:20:39]wFMCommunicate request_size=10 [10:20:39]MH_SAM_APDU [10:20:39]CAPDU: 80 0D 02 02 05 3C 2C EE EC 78 [10:20:39]Write to MH i2c: E2 0D 00 6D 51 80 0D 02 02 05 00 3C 2C EE EC 78 00 00 FC [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 03 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 03 00 6D 51 00 90 00 32 [10:20:39]RAPDU: 90 00 [10:20:39]wFMCommunicate OK [10:20:39]wFMCommunicate request_size=4 [10:20:39]MH_SAM_APDU [10:20:39]CAPDU: 80 0D 03 02 [10:20:39]Write to MH i2c: E2 08 00 6E 51 80 0D 03 02 00 00 00 00 3A [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 0B 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 0B 00 6E 51 00 6B 01 4E B6 CE C3 88 D5 90 00 99 [10:20:39]RAPDU: 6B 01 4E B6 CE C3 88 D5 90 00 [10:20:39]wFMCommunicate OK [10:20:39]SAM_PROTO_SignData done [10:20:39]FM_MakeSignedData done [10:20:39]CreateOFDProtocolMessage [10:20:39]wFMCommunicate request_size=4 [10:20:39]MH_SAM_APDU [10:20:39]CAPDU: 80 11 00 00 [10:20:39]Write to MH i2c: E2 08 00 6F 51 80 11 00 00 00 00 00 00 3A [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 17 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 17 00 6F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [10:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:20:39]wFMCommunicate OK [10:20:39]CreateOFDProtocolMessage done [10:20:39]OFDSenderStorePacket 70161 [10:20:39]StoreOFDPacket docnum=70161 [10:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AC EF 07 01 9A 0D 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 6D 00 00 00 F4 03 04 00 7A 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 12 01 00 35 04 06 00 32 3C 2C EE EC 78 6B 01 4E B6 CE C3 88 D5 [10:20:39]CheckFolder [10:20:39]dirname=/storage/ofd_packets [10:20:39]CheckFolder done [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00070161 [10:20:39]NVStorageSaveData ofd_packets/00070161 [10:20:39]File name is /storage/ofd_packets/00070161 [10:20:39]Write 301 bytes [10:20:39]NVStorageSaveData done [10:20:39]OFDSenderStorePacket done [10:20:39]KKMCreateOFDPacket done [10:20:39]NVStorageSaveData kkm_last_timestamp [10:20:39]File name is /storage/kkm_last_timestamp [10:20:39]Write 4 bytes [10:20:39]NVStorageSaveData done [10:20:39]ExternCall_PrintAddStr [10:20:39]wPrintStart [10:20:39]Write to MH i2c: 01 00 00 70 51 C1 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 70 51 00 00 00 00 00 FF 0F D6 [10:20:39]RasterBufferAndPrint [10:20:39]line Счет N : (1)2885928 [10:20:39]line ИНН: 02508201610067 [10:20:39]line Контрольно-Кассовый Чек [10:20:39]line ПРОДАЖА [10:20:39]line ТРК (МРК, ГНК) : 12 [10:20:39]line Товар: 2710124130 [10:20:39]line Аи-92-К-5 [10:20:39]line 14.950 * 66.90 [10:20:39]line = 1000.16 [10:20:39]line НДС 12% НСП 1% [10:20:39]line > о реализуемом товаре [10:20:39]line ОКРУГЛЕНИЕ: -0.16 [10:20:39]line ИТОГО: 1000.00 [10:20:39]line Внесено: 1000.00 [10:20:39]line СДАЧА: 0.00 [10:20:39]line НСП 1% : 8.85 [10:20:39]line НДС 12% : 106.21 [10:20:39]line Наличными: 1000.00 [10:20:39]line Безнал.: 0.00 [10:20:39]line Место: АЗС № 85 "Партнер Нефть" [10:20:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:20:39]line СНО: Общий режим [10:20:39]line Чек 109 22.10.2024 10:20 [10:20:39]line Смена: 195 ФФД: 1.0 [10:20:39]line ЗНМ: 0300000167 [10:20:39]line РНМ: 0000000000156251 [10:20:39]line Версия ККМ: v1.0 [10:20:39]line ФМ: 0000000000963346 [10:20:39]line ФД: 70161 [10:20:39]line ФПД: 55234033282168 [10:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70161&fm=55234033282168&tin=02508201610067®Number=0000000000156251&sum=100000 [10:20:39]OFD Sender: Processing packet 70161 [packets to send 18, broken 17] [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00070161 [10:20:39]OFD Sender: To server: pG, [10:20:39]CommunicateWithHost lk.salyk.kg:30040 [10:20:39]ConnectInit lk.salyk.kg [10:20:39]written 0, free lines is 4095 [10:20:39]Connected sock=10 [10:20: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 34 36 0F 01 00 00 AC EF 07 01 9A 0D 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 6D 00 00 00 F4 03 04 00 7A 7C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 12 01 00 35 04 06 00 32 3C 2C EE EC 78 6B 01 4E B6 CE C3 88 D5 [10:20: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 34 36 4F 00 00 00 EC 95 47 00 3B 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 34 36 10 04 04 00 11 12 01 00 F4 03 04 00 1B 26 17 67 B6 04 01 00 00 31 21 52 43 DA 00 B0 2D [10:20:39]CommunicateWithHost err = 0 [10:20:39]CheckOFDResponse [10:20:39]1017 (14) - 77093643461234 [10:20:39]1041 (16) - 0000000000963346 [10:20:39]1040 (4) - 70161 [10:20:39]1012 (4) - 22.10.2024 04:12 [10:20:39]1206 (1) - 0 [10:20:39]OFD Sender: Remove packet 70161 [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00070161 [10:20:39]NVStorageDeleteData [10:20:39]Write to MH i2c: 01 00 00 9B 51 EC [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 9B 51 00 00 00 00 00 F8 0C F7 [10:20:39]RasterBufferAndPrint [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]written 0, free lines is 3327 [10:20:39]MH_Cut [10:20:39]Write to MH i2c: D1 01 00 A2 51 01 C5 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 A2 51 00 C4 [10:20:39]Write to MH i2c: 01 00 00 A3 51 F4 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:40]OFD Sender: No OFD packet to send [10:20:40]*** Cut start [10:20:40]*** Partial cut [10:20:40]*** CUTSNS_PIN = 1 [10:20:40]*** CUTSNS_PIN = 0 [10:20:40]*** Brake cut motor [10:20:41]Read from MH i2c: 01 [10:20:41]MH_I2C_Read... [10:20:41]*** Stop cut motor [10:20:41]*** Cut end [10:20:41]Read from MH i2c: 01 07 00 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: 01 07 00 A3 51 00 00 00 00 00 FF 0F 09 [10:20:41]process_action close_receipt done [10:20:41]requested_data is exist [10:20:41]produce_requested_data [10:20:41]requested_item fm.sn is exist - process it [10:20:41]wFMCommunicate request_size=4 [10:20:41]MH_SAM_APDU [10:20:41]CAPDU: 80 11 00 00 [10:20:41]Write to MH i2c: E2 08 00 A4 51 80 11 00 00 00 00 00 00 6F [10:20:41]Write i2c OK [10:20:41]MH_I2C_Read... [10:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:41]Read from MH i2c: E2 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 17 00 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 17 00 A4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [10:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:20:41]wFMCommunicate OK [10:20:41]requested_item fd.num is exist - process it [10:20:41]SAM_PROTO_GetFieldsCounters [10:20:41]wFMCommunicate request_size=4 [10:20:41]MH_SAM_APDU [10:20:41]CAPDU: 80 13 00 00 [10:20:41]Write to MH i2c: E2 08 00 A5 51 80 13 00 00 00 00 00 00 72 [10:20:41]Write i2c OK [10:20:41]MH_I2C_Read... [10:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:41]Read from MH i2c: E2 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 62 00 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 62 00 A5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 12 01 00 0E 04 04 00 C3 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 BB [10:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 12 01 00 0E 04 04 00 C3 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 [10:20:41]wFMCommunicate OK [10:20:41]SAM_PROTO_GetFieldsCounters done [10:20:41]requested_item shift.num is exist - process it [10:20:41]requested_item shift.opened is exist - process it [10:20:41]req_shift_opened [10:20:41]FM_GetShiftState [10:20:41]SAM_PROTO_GetShiftState [10:20:41]wFMCommunicate request_size=4 [10:20:41]MH_SAM_APDU [10:20:41]CAPDU: 80 13 01 00 [10:20:41]Write to MH i2c: E2 08 00 A6 51 80 13 01 00 00 00 00 00 74 [10:20:41]Write i2c OK [10:20:41]MH_I2C_Read... [10:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:41]Read from MH i2c: E2 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 0E 00 [10:20:41]MH_I2C_Read... [10:20:41]Read from MH i2c: E2 0E 00 A6 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 62 [10:20:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:20:41]wFMCommunicate OK [10:20:41]SAM_PROTO_GetShiftState done [10:20:41]FM_GetShiftState done [10:20:41]req_shift_opened done [10:20:41]requested_item shift.open_date is exist - process it [10:20:41]req_shift_open_date [10:20:41]req_shift_open_date done [10:20:41]produce_requested_data done [10:20:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70161,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:20:41]process_action_free close_receipt [10:20:41]json_value_free [10:20:41]json_value_free done [10:20:41]process_json_proto returns [10:20:41]Send response to host [10:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70161,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:20:41]free response buf [10:20:41]execute_script done [10:20:41]execute_script returns [10:20:41]free content buf [10:20:41]Sock 7.Close socket [10:20:41]Sock 7.Thread stoped [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]ConnectInit Can't connect to host [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:16]accept exits with 9 [10:26:16]New connection [10:26:16]New thread 3067026788 created [10:26:16]Thread 3067170148 joined [10:26:16]Waiting for new connection... [10:26:16] Sock 9.Parse request [10:26:16]Sock 9.Check first char [10:26:16]Sock 9.First char is OK [10:26:16]request: POST /json_proto HTTP/1.0 [10:26:16]Method: POST [10:26:16]URL: /json_proto [10:26:16]Method is POST - this is cgi request [10:26:16]url: /json_proto [10:26:16]query_string will be loaded in cgi processing [10:26:16]execute_cgi json_proto POST (null) [10:26:16]execute_cgi path=json_proto method=POST [10:26:16]POST find Content-Length [10:26:16]Host: 172.17.50.3:8080 [10:26:16]Content-Length: 679 [10:26:16]Content-Type: application/json [10:26:16] [10:26:16]POST finish read [10:26:16]Found Content-Length = 679 [10:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:26:16]execute_script... [10: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)2885929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:26:16]POST & json_proto [10:26:16]process_json_proto [10:26:16]json parsed OK: [10:26:16]protocol is kg_v1.0 [10:26:16]action value=close_receipt [10:26:16]process_action close_receipt [10:26:16]cmd_close_receipt [10:26:16]MH_GetDate [10:26:16]Write to MH i2c: F0 00 00 A7 51 E7 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 09 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: F0 09 00 A7 51 00 CD 7D 17 67 6B 98 1E 66 3F [10:26:16]GetLastDocTimeStamp 1729592442 [10:26:16]current date 1729592781 [10:26:16]FM_GetShiftState [10:26:16]SAM_PROTO_GetShiftState [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 13 01 00 [10:26:16]Write to MH i2c: E2 08 00 A8 51 80 13 01 00 00 00 00 00 76 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 A8 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 64 [10:26:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:26:16]wFMCommunicate OK [10:26:16]SAM_PROTO_GetShiftState done [10:26:16]FM_GetShiftState done [10:26:16]opened in 1729555832 [10:26:16]opened+sec_in_day 1729642232 [10:26:16]quantity*price = 80012 [10:26:16]sum+1 = 80013 [10:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 110 22.10.2024 10:26 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70162 ФПД: 72440361234718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102621&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70162&fm=72440361234718&tin=02508201610067®Number=0000000000156251&sum=80000 [10:26:17]StoreToDocumentArchive [10:26:17]shift 195 fd 70162 [10:26:17]save to /storage/0195/doc_00070162 [10:26:17]save last doc name /storage/0195/doc_00070162 to /storage/kkm_last_doc_name [10:26:17]save OK [10:26:17]Clear old archive folders... [10:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:17]tlvbuf is 011EB180 [10:26:17]SAM_PROTO_ClearQueue [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 09 00 00 [10:26:17]Write to MH i2c: E2 08 00 B5 51 80 09 00 00 00 00 00 00 78 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 B5 51 00 90 00 7A [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_ClearQueue done [10:26:18]KKMCreateOFDPacket [10:26:18]OFDProtocolAddRootSTLVToBuf [10:26:18]FM_MakeSignedData [10:26:18]FM_MakeSignedData [10:26:18]SAM_PROTO_SignData [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 01 02 [10:26:18]Write to MH i2c: E2 08 00 B6 51 80 0D 01 02 00 00 00 00 80 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 B6 51 00 90 00 7B [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=255 [10:26:18]MH_SAM_APDU [10:26: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 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 6E 00 00 00 F4 03 04 00 CD 7D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 12 01 00 35 04 06 00 41 [10:26:18]Write to MH i2c: E2 02 01 B7 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 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 6E 00 00 00 F4 03 04 00 CD 7D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 12 01 00 35 04 06 00 41 00 00 54 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=10 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 02 02 05 E2 55 FF B1 1E [10:26:18]Write to MH i2c: E2 0D 00 B8 51 80 0D 02 02 05 00 E2 55 FF B1 1E 00 00 92 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 03 02 [10:26:18]Write to MH i2c: E2 08 00 B9 51 80 0D 03 02 00 00 00 00 85 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 B9 51 00 2D 83 E6 18 89 34 AD 15 90 00 B3 [10:26:18]RAPDU: 2D 83 E6 18 89 34 AD 15 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_SignData done [10:26:18]FM_MakeSignedData done [10:26:18]CreateOFDProtocolMessage [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 11 00 00 [10:26:18]Write to MH i2c: E2 08 00 BA 51 80 11 00 00 00 00 00 00 85 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 BA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [10:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:18]wFMCommunicate OK [10:26:18]CreateOFDProtocolMessage done [10:26:18]OFDSenderStorePacket 70162 [10:26:18]StoreOFDPacket docnum=70162 [10:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3C E6 07 01 D6 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 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 6E 00 00 00 F4 03 04 00 CD 7D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 12 01 00 35 04 06 00 41 E2 55 FF B1 1E 2D 83 E6 18 89 34 AD 15 [10:26:18]CheckFolder [10:26:18]dirname=/storage/ofd_packets [10:26:18]CheckFolder done [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00070162 [10:26:18]NVStorageSaveData ofd_packets/00070162 [10:26:18]File name is /storage/ofd_packets/00070162 [10:26:18]Write 301 bytes [10:26:18]NVStorageSaveData done [10:26:18]OFDSenderStorePacket done [10:26:18]KKMCreateOFDPacket done [10:26:18]NVStorageSaveData kkm_last_timestamp [10:26:18]File name is /storage/kkm_last_timestamp [10:26:18]Write 4 bytes [10:26:18]NVStorageSaveData done [10:26:18]ExternCall_PrintAddStr [10:26:18]wPrintStart [10:26:18]Write to MH i2c: 01 00 00 BB 51 0C [10:26:18]OFD Sender: Processing packet 70162 [packets to send 18, broken 17] [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00070162 [10:26:18]OFD Sender: To server: pG, [10:26:18]CommunicateWithHost lk.salyk.kg:30040 [10:26:18]ConnectInit lk.salyk.kg [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 BB 51 00 00 00 00 00 FF 0F 21 [10:26:18]RasterBufferAndPrint [10:26:18]line Счет N : (1)2885929 [10:26:18]line ИНН: 02508201610067 [10:26:18]line Контрольно-Кассовый Чек [10:26:18]line ПРОДАЖА [10:26:18]line ТРК (МРК, ГНК) : 12 [10:26:18]line Товар: 2710124130 [10:26:18]line Аи-92-К-5 [10:26:18]line 11.960 * 66.90 [10:26:18]line = 800.12 [10:26:18]line НДС 12% НСП 1% [10:26:18]line > о реализуемом товаре [10:26:18]line ОКРУГЛЕНИЕ: -0.12 [10:26:18]line ИТОГО: 800.00 [10:26:18]line Внесено: 800.00 [10:26:18]line СДАЧА: 0.00 [10:26:18]line НСП 1% : 7.08 [10:26:18]line НДС 12% : 84.97 [10:26:18]line Наличными: 800.00 [10:26:18]line Безнал.: 0.00 [10:26:18]line Место: АЗС № 85 "Партнер Нефть" [10:26:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:26:18]line СНО: Общий режим [10:26:18]line Чек 110 22.10.2024 10:26 [10:26:18]line Смена: 195 ФФД: 1.0 [10:26:18]line ЗНМ: 0300000167 [10:26:18]line РНМ: 0000000000156251 [10:26:18]line Версия ККМ: v1.0 [10:26:18]line ФМ: 0000000000963346 [10:26:18]line ФД: 70162 [10:26:18]line ФПД: 72440361234718 [10:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102621&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70162&fm=72440361234718&tin=02508201610067®Number=0000000000156251&sum=80000 [10:26:18]Connected sock=10 [10: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 34 36 0F 01 00 00 3C E6 07 01 D6 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 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 6E 00 00 00 F4 03 04 00 CD 7D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 12 01 00 35 04 06 00 41 E2 55 FF B1 1E 2D 83 E6 18 89 34 AD 15 [10:26:18]written 0, free lines is 4095 [10:26: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 34 36 4F 00 00 00 8D 23 47 00 07 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 34 36 10 04 04 00 12 12 01 00 F4 03 04 00 6E 27 17 67 B6 04 01 00 00 94 29 6C 65 8D 05 1B EE [10:26:19]CommunicateWithHost err = 0 [10:26:19]CheckOFDResponse [10:26:19]1017 (14) - 77093643461234 [10:26:19]1041 (16) - 0000000000963346 [10:26:19]1040 (4) - 70162 [10:26:19]1012 (4) - 22.10.2024 04:17 [10:26:19]1206 (1) - 0 [10:26:19]OFD Sender: Remove packet 70162 [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00070162 [10:26:19]NVStorageDeleteData [10:26:19]Write to MH i2c: 01 00 00 E6 51 37 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 E6 51 00 00 00 00 00 F3 0C 3D [10:26:19]RasterBufferAndPrint [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]written 0, free lines is 3321 [10:26:19]MH_Cut [10:26:19]Write to MH i2c: D1 01 00 ED 51 01 10 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 01 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 01 00 ED 51 00 0F [10:26:19]Write to MH i2c: 01 00 00 EE 51 3F [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]OFD Sender: No OFD packet to send [10:26:20]*** Cut start [10:26:20]*** Partial cut [10:26:20]*** CUTSNS_PIN = 1 [10:26:20]*** CUTSNS_PIN = 0 [10:26:20]*** Brake cut motor [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]*** Stop cut motor [10:26:20]*** Cut end [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 EE 51 00 00 00 00 00 FF 0F 54 [10:26:20]process_action close_receipt done [10:26:20]requested_data is exist [10:26:20]produce_requested_data [10:26:20]requested_item fm.sn is exist - process it [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 11 00 00 [10:26:20]Write to MH i2c: E2 08 00 EF 51 80 11 00 00 00 00 00 00 BA [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 EF 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [10:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:20]wFMCommunicate OK [10:26:20]requested_item fd.num is exist - process it [10:26:20]SAM_PROTO_GetFieldsCounters [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 00 00 [10:26:20]Write to MH i2c: E2 08 00 F0 51 80 13 00 00 00 00 00 00 BD [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 F0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 12 01 00 0E 04 04 00 C3 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 0A [10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 12 01 00 0E 04 04 00 C3 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 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetFieldsCounters done [10:26:20]requested_item shift.num is exist - process it [10:26:20]requested_item shift.opened is exist - process it [10:26:20]req_shift_opened [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 F1 51 80 13 01 00 00 00 00 00 BF [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 F1 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AD [10:26:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]req_shift_opened done [10:26:20]requested_item shift.open_date is exist - process it [10:26:20]req_shift_open_date [10:26:20]req_shift_open_date done [10:26:20]produce_requested_data done [10:26:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70162,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:26:20]process_action_free close_receipt [10:26:20]json_value_free [10:26:20]json_value_free done [10:26:20]process_json_proto returns [10:26:20]Send response to host [10:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70162,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:26:20]free response buf [10:26:20]execute_script done [10:26:20]execute_script returns [10:26:20]free content buf [10:26:20]Sock 9.Close socket [10:26:20]Sock 9.Thread stoped [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]accept exits with 7 [10:28:59]New connection [10:28:59]New thread 3067170148 created [10:28:59]Thread 3067026788 joined [10:28:59]Waiting for new connection... [10:28:59] Sock 7.Parse request [10:28:59]Sock 7.Check first char [10:28:59]Sock 7.First char is OK [10:28:59]request: POST /json_proto HTTP/1.0 [10:28:59]Method: POST [10:28:59]URL: /json_proto [10:28:59]Method is POST - this is cgi request [10:28:59]url: /json_proto [10:28:59]query_string will be loaded in cgi processing [10:28:59]execute_cgi json_proto POST (null) [10:28:59]execute_cgi path=json_proto method=POST [10:28:59]POST find Content-Length [10:28:59]Host: 172.17.50.3:8080 [10:28:59]Content-Length: 678 [10:28:59]Content-Type: application/json [10:28:59] [10:28:59]POST finish read [10:28:59]Found Content-Length = 678 [10:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:28:59]execute_script... [10: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)2885930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:28:59]POST & json_proto [10:28:59]process_json_proto [10:28:59]json parsed OK: [10:28:59]protocol is kg_v1.0 [10:28:59]action value=close_receipt [10:28:59]process_action close_receipt [10:28:59]cmd_close_receipt [10:28:59]MH_GetDate [10:28:59]Write to MH i2c: F0 00 00 F2 51 32 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 09 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 09 00 F2 51 00 70 7E 17 67 6B 98 1E 66 2E [10:28:59]GetLastDocTimeStamp 1729592781 [10:28:59]current date 1729592944 [10:28:59]FM_GetShiftState [10:28:59]SAM_PROTO_GetShiftState [10:28:59]wFMCommunicate request_size=4 [10:28:59]MH_SAM_APDU [10:28:59]CAPDU: 80 13 01 00 [10:28:59]Write to MH i2c: E2 08 00 F3 51 80 13 01 00 00 00 00 00 C1 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:59]Read from MH i2c: E2 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 0E 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 0E 00 F3 51 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AF [10:28:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:28:59]wFMCommunicate OK [10:28:59]SAM_PROTO_GetShiftState done [10:28:59]FM_GetShiftState done [10:28:59]opened in 1729555832 [10:28:59]opened+sec_in_day 1729642232 [10:28:59]quantity*price = 25020 [10:28:59]sum+1 = 25022 [10:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 111 22.10.2024 10:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70163 ФПД: 138815270735797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70163&fm=138815270735797&tin=02508201610067®Number=0000000000156251&sum=25000 [10:29:00]StoreToDocumentArchive [10:29:00]shift 195 fd 70163 [10:29:00]save to /storage/0195/doc_00070163 [10:29:00]save last doc name /storage/0195/doc_00070163 to /storage/kkm_last_doc_name [10:29:00]save OK [10:29:00]Clear old archive folders... [10:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:00]tlvbuf is 0114F0F0 [10:29:00]SAM_PROTO_ClearQueue [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 09 00 00 [10:29:00]Write to MH i2c: E2 08 00 00 52 80 09 00 00 00 00 00 00 C4 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 00 52 00 90 00 C6 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]SAM_PROTO_ClearQueue done [10:29:00]KKMCreateOFDPacket [10:29:00]OFDProtocolAddRootSTLVToBuf [10:29:00]FM_MakeSignedData [10:29:00]FM_MakeSignedData [10:29:00]SAM_PROTO_SignData [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 01 02 [10:29:00]Write to MH i2c: E2 08 00 01 52 80 0D 01 02 00 00 00 00 CC [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=255 [10:29:00]MH_SAM_APDU [10:29: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 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 6F 00 00 00 F4 03 04 00 70 7E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 12 01 00 35 04 06 00 7E [10:29:00]Write to MH i2c: E2 02 01 02 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 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 6F 00 00 00 F4 03 04 00 70 7E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 12 01 00 35 04 06 00 7E 00 00 70 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=10 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 02 02 05 40 72 E6 CF B5 [10:29:00]Write to MH i2c: E2 0D 00 03 52 80 0D 02 02 05 00 40 72 E6 CF B5 00 00 F5 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 03 52 00 90 00 C9 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 03 02 [10:29:00]Write to MH i2c: E2 08 00 04 52 80 0D 03 02 00 00 00 00 D1 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 0B 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 0B 00 04 52 00 08 D4 02 47 95 6B EE A8 90 00 8D [10:29:01]RAPDU: 08 D4 02 47 95 6B EE A8 90 00 [10:29:01]wFMCommunicate OK [10:29:01]SAM_PROTO_SignData done [10:29:01]FM_MakeSignedData done [10:29:01]CreateOFDProtocolMessage [10:29:01]wFMCommunicate request_size=4 [10:29:01]MH_SAM_APDU [10:29:01]CAPDU: 80 11 00 00 [10:29:01]Write to MH i2c: E2 08 00 05 52 80 11 00 00 00 00 00 00 D1 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 17 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 17 00 05 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [10:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:29:01]wFMCommunicate OK [10:29:01]CreateOFDProtocolMessage done [10:29:01]OFDSenderStorePacket 70163 [10:29:01]StoreOFDPacket docnum=70163 [10:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E 47 07 01 C3 62 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 6F 00 00 00 F4 03 04 00 70 7E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 12 01 00 35 04 06 00 7E 40 72 E6 CF B5 08 D4 02 47 95 6B EE A8 [10:29:01]CheckFolder [10:29:01]dirname=/storage/ofd_packets [10:29:01]CheckFolder done [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00070163 [10:29:01]NVStorageSaveData ofd_packets/00070163 [10:29:01]File name is /storage/ofd_packets/00070163 [10:29:01]Write 301 bytes [10:29:01]NVStorageSaveData done [10:29:01]OFDSenderStorePacket done [10:29:01]KKMCreateOFDPacket done [10:29:01]NVStorageSaveData kkm_last_timestamp [10:29:01]File name is /storage/kkm_last_timestamp [10:29:01]Write 4 bytes [10:29:01]NVStorageSaveData done [10:29:01]ExternCall_PrintAddStr [10:29:01]wPrintStart [10:29:01]Write to MH i2c: 01 00 00 06 52 58 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 06 52 00 00 00 00 00 FF 0F 6D [10:29:01]RasterBufferAndPrint [10:29:01]line Счет N : (1)2885930 [10:29:01]line ИНН: 02508201610067 [10:29:01]line Контрольно-Кассовый Чек [10:29:01]line ПРОДАЖА [10:29:01]line ТРК (МРК, ГНК) : 22 [10:29:01]line Товар: 2710124130 [10:29:01]line Аи-92-К-5 [10:29:01]line 3.740 * 66.90 [10:29:01]line = 250.21 [10:29:01]line НДС 12% НСП 1% [10:29:01]line > о реализуемом товаре [10:29:01]line ОКРУГЛЕНИЕ: -0.21 [10:29:01]line ИТОГО: 250.00 [10:29:01]line Внесено: 250.00 [10:29:01]line СДАЧА: 0.00 [10:29:01]line НСП 1% : 2.21 [10:29:01]line НДС 12% : 26.57 [10:29:01]line Наличными: 250.00 [10:29:01]line Безнал.: 0.00 [10:29:01]line Место: АЗС № 85 "Партнер Нефть" [10:29:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:29:01]line СНО: Общий режим [10:29:01]line Чек 111 22.10.2024 10:29 [10:29:01]line Смена: 195 ФФД: 1.0 [10:29:01]line ЗНМ: 0300000167 [10:29:01]line РНМ: 0000000000156251 [10:29:01]line Версия ККМ: v1.0 [10:29:01]line ФМ: 0000000000963346 [10:29:01]line ФД: 70163 [10:29:01]line ФПД: 138815270735797 [10:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70163&fm=138815270735797&tin=02508201610067®Number=0000000000156251&sum=25000 [10:29:01]OFD Sender: Processing packet 70163 [packets to send 18, broken 17] [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00070163 [10:29:01]OFD Sender: To server: pG, [10:29:01]CommunicateWithHost lk.salyk.kg:30040 [10:29:01]ConnectInit lk.salyk.kg [10:29:01]written 0, free lines is 4095 [10:29:01]Connected sock=10 [10: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 34 36 0F 01 00 00 5E 47 07 01 C3 62 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 6F 00 00 00 F4 03 04 00 70 7E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 12 01 00 35 04 06 00 7E 40 72 E6 CF B5 08 D4 02 47 95 6B EE A8 [10:29: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 34 36 4F 00 00 00 6D C9 47 00 BB 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 34 36 10 04 04 00 13 12 01 00 F4 03 04 00 11 28 17 67 B6 04 01 00 00 79 0C F2 51 42 A6 EE 5F [10:29:01]CommunicateWithHost err = 0 [10:29:01]CheckOFDResponse [10:29:01]1017 (14) - 77093643461234 [10:29:01]1041 (16) - 0000000000963346 [10:29:01]1040 (4) - 70163 [10:29:01]1012 (4) - 22.10.2024 04:20 [10:29:01]1206 (1) - 0 [10:29:01]OFD Sender: Remove packet 70163 [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00070163 [10:29:01]NVStorageDeleteData [10:29:01]Write to MH i2c: 01 00 00 31 52 83 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 31 52 00 00 00 00 00 EB 0C 81 [10:29:01]RasterBufferAndPrint [10:29:01]line [10:29:01]line [10:29:01]line [10:29:01]line [10:29:01]line [10:29:01]written 0, free lines is 3313 [10:29:01]MH_Cut [10:29:01]Write to MH i2c: D1 01 00 38 52 01 5C [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: D1 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: D1 01 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: D1 01 00 38 52 00 5B [10:29:01]Write to MH i2c: 01 00 00 39 52 8B [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:02]OFD Sender: No OFD packet to send [10:29:02]*** Cut start [10:29:02]*** Partial cut [10:29:02]*** CUTSNS_PIN = 1 [10:29:02]*** CUTSNS_PIN = 0 [10:29:02]*** Brake cut motor [10:29:03]Read from MH i2c: 01 [10:29:03]MH_I2C_Read... [10:29:03]*** Stop cut motor [10:29:03]*** Cut end [10:29:03]Read from MH i2c: 01 07 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: 01 07 00 39 52 00 00 00 00 00 FF 0F A0 [10:29:03]process_action close_receipt done [10:29:03]requested_data is exist [10:29:03]produce_requested_data [10:29:03]requested_item fm.sn is exist - process it [10:29:03]wFMCommunicate request_size=4 [10:29:03]MH_SAM_APDU [10:29:03]CAPDU: 80 11 00 00 [10:29:03]Write to MH i2c: E2 08 00 3A 52 80 11 00 00 00 00 00 00 06 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:03]Read from MH i2c: E2 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 17 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 17 00 3A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [10:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:29:03]wFMCommunicate OK [10:29:03]requested_item fd.num is exist - process it [10:29:03]SAM_PROTO_GetFieldsCounters [10:29:03]wFMCommunicate request_size=4 [10:29:03]MH_SAM_APDU [10:29:03]CAPDU: 80 13 00 00 [10:29:03]Write to MH i2c: E2 08 00 3B 52 80 13 00 00 00 00 00 00 09 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:03]Read from MH i2c: E2 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 62 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 62 00 3B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 12 01 00 0E 04 04 00 C3 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 5A [10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 12 01 00 0E 04 04 00 C3 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 [10:29:03]wFMCommunicate OK [10:29:03]SAM_PROTO_GetFieldsCounters done [10:29:03]requested_item shift.num is exist - process it [10:29:03]requested_item shift.opened is exist - process it [10:29:03]req_shift_opened [10:29:03]FM_GetShiftState [10:29:03]SAM_PROTO_GetShiftState [10:29:03]wFMCommunicate request_size=4 [10:29:03]MH_SAM_APDU [10:29:03]CAPDU: 80 13 01 00 [10:29:03]Write to MH i2c: E2 08 00 3C 52 80 13 01 00 00 00 00 00 0B [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:03]Read from MH i2c: E2 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 0E 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 0E 00 3C 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [10:29:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:29:03]wFMCommunicate OK [10:29:03]SAM_PROTO_GetShiftState done [10:29:03]FM_GetShiftState done [10:29:03]req_shift_opened done [10:29:03]requested_item shift.open_date is exist - process it [10:29:03]req_shift_open_date [10:29:03]req_shift_open_date done [10:29:03]produce_requested_data done [10:29:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70163,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:29:03]process_action_free close_receipt [10:29:03]json_value_free [10:29:03]json_value_free done [10:29:03]process_json_proto returns [10:29:03]Send response to host [10:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70163,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:29:03]free response buf [10:29:03]execute_script done [10:29:03]execute_script returns [10:29:03]free content buf [10:29:03]Sock 7.Close socket [10:29:03]Sock 7.Thread stoped [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:45]accept exits with 9 [10:32:45]New connection [10:32:45]New thread 3067026788 created [10:32:45]Thread 3067170148 joined [10:32:45]Waiting for new connection... [10:32:45] Sock 9.Parse request [10:32:45]Sock 9.Check first char [10:32:45]Sock 9.First char is OK [10:32:45]request: POST /json_proto HTTP/1.0 [10:32:45]Method: POST [10:32:45]URL: /json_proto [10:32:45]Method is POST - this is cgi request [10:32:45]url: /json_proto [10:32:45]query_string will be loaded in cgi processing [10:32:45]execute_cgi json_proto POST (null) [10:32:45]execute_cgi path=json_proto method=POST [10:32:45]POST find Content-Length [10:32:45]Host: 172.17.50.3:8080 [10:32:45]Content-Length: 680 [10:32:45]Content-Type: application/json [10:32:45] [10:32:45]POST finish read [10:32:45]Found Content-Length = 680 [10:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885931", "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" ] } } [10:32:45]execute_script... [10: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)2885931", "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" ] } } [10:32:45]POST & json_proto [10:32:45]process_json_proto [10:32:45]json parsed OK: [10:32:45]protocol is kg_v1.0 [10:32:45]action value=close_receipt [10:32:45]process_action close_receipt [10:32:45]cmd_close_receipt [10:32:45]MH_GetDate [10:32:45]Write to MH i2c: F0 00 00 3D 52 7E [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 09 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 09 00 3D 52 00 52 7F 17 67 6B 98 1E 66 5D [10:32:45]GetLastDocTimeStamp 1729592944 [10:32:45]current date 1729593170 [10:32:45]FM_GetShiftState [10:32:45]SAM_PROTO_GetShiftState [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 13 01 00 [10:32:45]Write to MH i2c: E2 08 00 3E 52 80 13 01 00 00 00 00 00 0D [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 3E 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [10:32:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_GetShiftState done [10:32:45]FM_GetShiftState done [10:32:45]opened in 1729555832 [10:32:45]opened+sec_in_day 1729642232 [10:32:45]quantity*price = 100050 [10:32:45]sum+1 = 100052 [10:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 112 22.10.2024 10:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70164 ФПД: 146311667001327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70164&fm=146311667001327&tin=02508201610067®Number=0000000000156251&sum=100000 [10:32:46]StoreToDocumentArchive [10:32:46]shift 195 fd 70164 [10:32:46]save to /storage/0195/doc_00070164 [10:32:46]save last doc name /storage/0195/doc_00070164 to /storage/kkm_last_doc_name [10:32:46]save OK [10:32:46]Clear old archive folders... [10:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:46]tlvbuf is 01208D20 [10:32:46]SAM_PROTO_ClearQueue [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 09 00 00 [10:32:46]Write to MH i2c: E2 08 00 4B 52 80 09 00 00 00 00 00 00 0F [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 4B 52 00 90 00 11 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_ClearQueue done [10:32:46]KKMCreateOFDPacket [10:32:46]OFDProtocolAddRootSTLVToBuf [10:32:46]FM_MakeSignedData [10:32:46]FM_MakeSignedData [10:32:46]SAM_PROTO_SignData [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 01 02 [10:32:46]Write to MH i2c: E2 08 00 4C 52 80 0D 01 02 00 00 00 00 17 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 4C 52 00 90 00 12 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=255 [10:32:46]MH_SAM_APDU [10: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 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 70 00 00 00 F4 03 04 00 52 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 12 01 00 35 04 06 00 85 11 D6 F0 [10:32:46]Write to MH i2c: E2 02 01 4D 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 70 00 00 00 F4 03 04 00 52 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 12 01 00 35 04 06 00 85 11 D6 F0 00 00 9B [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 4D 52 00 90 00 13 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=7 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 02 02 02 27 EF [10:32:46]Write to MH i2c: E2 0A 00 4E 52 80 0D 02 02 02 00 27 EF 00 00 34 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 4E 52 00 90 00 14 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 03 02 [10:32:46]Write to MH i2c: E2 08 00 4F 52 80 0D 03 02 00 00 00 00 1C [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 0B 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 0B 00 4F 52 00 6C E1 DA 51 7A 54 46 72 90 00 1B [10:32:47]RAPDU: 6C E1 DA 51 7A 54 46 72 90 00 [10:32:47]wFMCommunicate OK [10:32:47]SAM_PROTO_SignData done [10:32:47]FM_MakeSignedData done [10:32:47]CreateOFDProtocolMessage [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 11 00 00 [10:32:47]Write to MH i2c: E2 08 00 50 52 80 11 00 00 00 00 00 00 1C [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 50 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [10:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:47]wFMCommunicate OK [10:32:47]CreateOFDProtocolMessage done [10:32:47]OFDSenderStorePacket 70164 [10:32:47]StoreOFDPacket docnum=70164 [10:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1E AD 04 01 A3 AA 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 70 00 00 00 F4 03 04 00 52 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 12 01 00 35 04 06 00 85 11 D6 F0 27 EF 6C E1 DA 51 7A 54 46 72 [10:32:47]CheckFolder [10:32:47]dirname=/storage/ofd_packets [10:32:47]CheckFolder done [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00070164 [10:32:47]NVStorageSaveData ofd_packets/00070164 [10:32:47]File name is /storage/ofd_packets/00070164 [10:32:47]Write 298 bytes [10:32:47]NVStorageSaveData done [10:32:47]OFDSenderStorePacket done [10:32:47]KKMCreateOFDPacket done [10:32:47]NVStorageSaveData kkm_last_timestamp [10:32:47]File name is /storage/kkm_last_timestamp [10:32:47]Write 4 bytes [10:32:47]NVStorageSaveData done [10:32:47]ExternCall_PrintAddStr [10:32:47]wPrintStart [10:32:47]Write to MH i2c: 01 00 00 51 52 A3 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 51 52 00 00 00 00 00 FF 0F B8 [10:32:47]RasterBufferAndPrint [10:32:47]line Счет N : (1)2885931 [10:32:47]line ИНН: 02508201610067 [10:32:47]line Контрольно-Кассовый Чек [10:32:47]line ПРОДАЖА [10:32:47]line ТРК (МРК, ГНК) : 51 [10:32:47]line Товар: 2710194210 [10:32:47]line ДТ-К-5 [10:32:47]line 13.130 * 76.20 [10:32:47]line = 1000.51 [10:32:47]line НДС 12% НСП 1% [10:32:47]line > о реализуемом товаре [10:32:47]line ОКРУГЛЕНИЕ: -0.51 [10:32:47]line ИТОГО: 1000.00 [10:32:47]line Внесено: 1000.00 [10:32:47]line СДАЧА: 0.00 [10:32:47]line НСП 1% : 8.85 [10:32:47]line НДС 12% : 106.25 [10:32:47]line Наличными: 1000.00 [10:32:47]line Безнал.: 0.00 [10:32:47]line Место: АЗС № 85 "Партнер Нефть" [10:32:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:32:47]line СНО: Общий режим [10:32:47]line Чек 112 22.10.2024 10:32 [10:32:47]line Смена: 195 ФФД: 1.0 [10:32:47]line ЗНМ: 0300000167 [10:32:47]line РНМ: 0000000000156251 [10:32:47]line Версия ККМ: v1.0 [10:32:47]line ФМ: 0000000000963346 [10:32:47]line ФД: 70164 [10:32:47]line ФПД: 146311667001327 [10:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70164&fm=146311667001327&tin=02508201610067®Number=0000000000156251&sum=100000 [10:32:47]written 0, free lines is 4095 [10:32:47]OFD Sender: Processing packet 70164 [packets to send 18, broken 17] [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00070164 [10:32:47]OFD Sender: To server: pG, [10:32:47]CommunicateWithHost lk.salyk.kg:30040 [10:32:47]ConnectInit lk.salyk.kg [10:32:47]Connected sock=10 [10: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 34 36 0C 01 00 00 1E AD 04 01 A3 AA 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 70 00 00 00 F4 03 04 00 52 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 12 01 00 35 04 06 00 85 11 D6 F0 27 EF 6C E1 DA 51 7A 54 46 72 [10: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 34 36 4F 00 00 00 3A 8A 47 00 34 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 34 36 10 04 04 00 14 12 01 00 F4 03 04 00 F3 28 17 67 B6 04 01 00 00 5E 45 4B F0 D5 F4 BD 81 [10:32:47]CommunicateWithHost err = 0 [10:32:47]CheckOFDResponse [10:32:47]1017 (14) - 77093643461234 [10:32:47]1041 (16) - 0000000000963346 [10:32:47]1040 (4) - 70164 [10:32:47]1012 (4) - 22.10.2024 04:24 [10:32:47]1206 (1) - 0 [10:32:47]OFD Sender: Remove packet 70164 [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00070164 [10:32:47]NVStorageDeleteData [10:32:47]Write to MH i2c: 01 00 00 7C 52 CE [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 7C 52 00 00 00 00 00 ED 0C CE [10:32:47]RasterBufferAndPrint [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]written 0, free lines is 3318 [10:32:47]MH_Cut [10:32:47]Write to MH i2c: D1 01 00 83 52 01 A7 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 83 52 00 A6 [10:32:47]Write to MH i2c: 01 00 00 84 52 D6 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]OFD Sender: No OFD packet to send [10:32:48]*** Cut start [10:32:48]*** Partial cut [10:32:48]*** CUTSNS_PIN = 1 [10:32:48]*** CUTSNS_PIN = 0 [10:32:48]*** Brake cut motor [10:32:48]Read from MH i2c: 01 [10:32:48]MH_I2C_Read... [10:32:48]*** Stop cut motor [10:32:48]*** Cut end [10:32:48]Read from MH i2c: 01 07 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 07 00 84 52 00 00 00 00 00 FF 0F EB [10:32:48]process_action close_receipt done [10:32:48]requested_data is exist [10:32:48]produce_requested_data [10:32:48]requested_item fm.sn is exist - process it [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 11 00 00 [10:32:48]Write to MH i2c: E2 08 00 85 52 80 11 00 00 00 00 00 00 51 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 85 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [10:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:48]wFMCommunicate OK [10:32:48]requested_item fd.num is exist - process it [10:32:48]SAM_PROTO_GetFieldsCounters [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 00 00 [10:32:48]Write to MH i2c: E2 08 00 86 52 80 13 00 00 00 00 00 00 54 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:49]Read from MH i2c: E2 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 62 00 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 62 00 86 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 12 01 00 0E 04 04 00 C3 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 A9 [10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 12 01 00 0E 04 04 00 C3 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 [10:32:49]wFMCommunicate OK [10:32:49]SAM_PROTO_GetFieldsCounters done [10:32:49]requested_item shift.num is exist - process it [10:32:49]requested_item shift.opened is exist - process it [10:32:49]req_shift_opened [10:32:49]FM_GetShiftState [10:32:49]SAM_PROTO_GetShiftState [10:32:49]wFMCommunicate request_size=4 [10:32:49]MH_SAM_APDU [10:32:49]CAPDU: 80 13 01 00 [10:32:49]Write to MH i2c: E2 08 00 87 52 80 13 01 00 00 00 00 00 56 [10:32:49]Write i2c OK [10:32:49]MH_I2C_Read... [10:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:49]Read from MH i2c: E2 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 87 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [10:32:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:32:49]wFMCommunicate OK [10:32:49]SAM_PROTO_GetShiftState done [10:32:49]FM_GetShiftState done [10:32:49]req_shift_opened done [10:32:49]requested_item shift.open_date is exist - process it [10:32:49]req_shift_open_date [10:32:49]req_shift_open_date done [10:32:49]produce_requested_data done [10:32:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70164,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:32:49]process_action_free close_receipt [10:32:49]json_value_free [10:32:49]json_value_free done [10:32:49]process_json_proto returns [10:32:49]Send response to host [10:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70164,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:32:49]free response buf [10:32:49]execute_script done [10:32:49]execute_script returns [10:32:49]free content buf [10:32:49]Sock 9.Close socket [10:32:49]Sock 9.Thread stoped [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]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:05]accept exits with 7 [10:34:05]New connection [10:34:05]New thread 3067170148 created [10:34:05]Thread 3067026788 joined [10:34:05]Waiting for new connection... [10:34:05] Sock 7.Parse request [10:34:05]Sock 7.Check first char [10:34:05]Sock 7.First char is OK [10:34:05]request: POST /json_proto HTTP/1.0 [10:34:05]Method: POST [10:34:05]URL: /json_proto [10:34:05]Method is POST - this is cgi request [10:34:05]url: /json_proto [10:34:05]query_string will be loaded in cgi processing [10:34:05]execute_cgi json_proto POST (null) [10:34:05]execute_cgi path=json_proto method=POST [10:34:05]POST find Content-Length [10:34:05]Host: 172.17.50.3:8080 [10:34:05]Content-Length: 752 [10:34:05]Content-Type: application/json [10:34:05] [10:34:05]POST finish read [10:34:05]Found Content-Length = 752 [10:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:05]execute_script... [10:34:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:05]POST & json_proto [10:34:05]process_json_proto [10:34:05]json parsed OK: [10:34:05]protocol is kg_v1.0 [10:34:05]action value=close_receipt [10:34:05]process_action close_receipt [10:34:05]cmd_close_receipt [10:34:05]MH_GetDate [10:34:05]Write to MH i2c: F0 00 00 88 52 C9 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: F0 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: F0 09 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: F0 09 00 88 52 00 A2 7F 17 67 6B 98 1E 66 F8 [10:34:05]GetLastDocTimeStamp 1729593170 [10:34:05]current date 1729593250 [10:34:05]FM_GetShiftState [10:34:05]SAM_PROTO_GetShiftState [10:34:05]wFMCommunicate request_size=4 [10:34:05]MH_SAM_APDU [10:34:05]CAPDU: 80 13 01 00 [10:34:05]Write to MH i2c: E2 08 00 89 52 80 13 01 00 00 00 00 00 58 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:05]Read from MH i2c: E2 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 0E 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 0E 00 89 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [10:34:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:34:05]wFMCommunicate OK [10:34:05]SAM_PROTO_GetShiftState done [10:34:05]FM_GetShiftState done [10:34:05]opened in 1729555832 [10:34:05]opened+sec_in_day 1729642232 [10:34:05]quantity*price = 0 [10:34:05]sum+1 = 1 [10:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 113 22.10.2024 10:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100988 ФМ: 0000000000963346 ФД: 70165 ФПД: 181365987856968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70165&fm=181365987856968&tin=02508201610067®Number=0000000000156251&sum=0 [10:34:06]StoreToDocumentArchive [10:34:06]shift 195 fd 70165 [10:34:06]save to /storage/0195/doc_00070165 [10:34:06]save last doc name /storage/0195/doc_00070165 to /storage/kkm_last_doc_name [10:34:06]save OK [10:34:06]Clear old archive folders... [10:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:34:06]tlvbuf is 01154E10 [10:34:06]SAM_PROTO_ClearQueue [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 09 00 00 [10:34:06]Write to MH i2c: E2 08 00 96 52 80 09 00 00 00 00 00 00 5A [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 96 52 00 90 00 5C [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_ClearQueue done [10:34:06]KKMCreateOFDPacket [10:34:06]OFDProtocolAddRootSTLVToBuf [10:34:06]FM_MakeSignedData [10:34:06]FM_MakeSignedData [10:34:06]SAM_PROTO_SignData [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 01 02 [10:34:06]Write to MH i2c: E2 08 00 97 52 80 0D 01 02 00 00 00 00 62 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 97 52 00 90 00 5D [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=255 [10:34:06]MH_SAM_APDU [10:34: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 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 71 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 12 01 00 35 04 06 00 A4 F3 8F 47 [10:34:06]Write to MH i2c: E2 02 01 98 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 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 71 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 12 01 00 35 04 06 00 A4 F3 8F 47 00 00 8F [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 98 52 00 90 00 5E [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=7 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 02 02 02 D2 48 [10:34:06]Write to MH i2c: E2 0A 00 99 52 80 0D 02 02 02 00 D2 48 00 00 83 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 99 52 00 90 00 5F [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 03 02 [10:34:06]Write to MH i2c: E2 08 00 9A 52 80 0D 03 02 00 00 00 00 67 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 0B 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 0B 00 9A 52 00 81 AA 03 C3 43 43 11 CA 90 00 BA [10:34:07]RAPDU: 81 AA 03 C3 43 43 11 CA 90 00 [10:34:07]wFMCommunicate OK [10:34:07]SAM_PROTO_SignData done [10:34:07]FM_MakeSignedData done [10:34:07]CreateOFDProtocolMessage [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 11 00 00 [10:34:07]Write to MH i2c: E2 08 00 9B 52 80 11 00 00 00 00 00 00 67 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 17 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 17 00 9B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [10:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:34:07]wFMCommunicate OK [10:34:07]CreateOFDProtocolMessage done [10:34:07]OFDSenderStorePacket 70165 [10:34:07]StoreOFDPacket docnum=70165 [10:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 97 18 04 01 CE E6 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 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 71 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 12 01 00 35 04 06 00 A4 F3 8F 47 D2 48 81 AA 03 C3 43 43 11 CA [10:34:07]CheckFolder [10:34:07]dirname=/storage/ofd_packets [10:34:07]CheckFolder done [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00070165 [10:34:07]NVStorageSaveData ofd_packets/00070165 [10:34:07]File name is /storage/ofd_packets/00070165 [10:34:07]Write 298 bytes [10:34:07]NVStorageSaveData done [10:34:07]OFDSenderStorePacket done [10:34:07]KKMCreateOFDPacket done [10:34:07]NVStorageSaveData kkm_last_timestamp [10:34:07]File name is /storage/kkm_last_timestamp [10:34:07]Write 4 bytes [10:34:07]NVStorageSaveData done [10:34:07]ExternCall_PrintAddStr [10:34:07]wPrintStart [10:34:07]Write to MH i2c: 01 00 00 9C 52 EE [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 9C 52 00 00 00 00 00 FF 0F 03 [10:34:07]RasterBufferAndPrint [10:34:07]line Счет N : (1)2885932 [10:34:07]line ИНН: 02508201610067 [10:34:07]line Контрольно-Кассовый Чек [10:34:07]line ПРОДАЖА [10:34:07]line ТРК (МРК, ГНК) : 61 [10:34:07]line Товар: 2710194210 [10:34:07]line ДТ-К-5 [10:34:07]line 20.000 * 0.00 [10:34:07]line = 0.00 [10:34:07]line НДС 12% НСП 1% [10:34:07]line > о реализуемом товаре [10:34:07]line ИТОГО: 0.00 [10:34:07]line НСП 1% : 0.00 [10:34:07]line НДС 12% : 0.00 [10:34:07]line Наличными: 0.00 [10:34:07]line Безнал.: 0.00 [10:34:07]line Место: АЗС № 85 "Партнер Нефть" [10:34:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:34:07]line СНО: Общий режим [10:34:07]line Чек 113 22.10.2024 10:34 [10:34:07]line Смена: 195 ФФД: 1.0 [10:34:07]line ЗНМ: 0300000167 [10:34:07]line РНМ: 0000000000156251 [10:34:07]line Версия ККМ: v1.0 [10:34:07]line Талоны: ТК ГПНА Online [10:34:07]line 30100988 [10:34:07]line ФМ: 0000000000963346 [10:34:07]line ФД: 70165 [10:34:07]line ФПД: 181365987856968 [10:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70165&fm=181365987856968&tin=02508201610067®Number=0000000000156251&sum=0 [10:34:07]OFD Sender: Processing packet 70165 [packets to send 18, broken 17] [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00070165 [10:34:07]OFD Sender: To server: pG, [10:34:07]CommunicateWithHost lk.salyk.kg:30040 [10:34:07]ConnectInit lk.salyk.kg [10:34:07]written 0, free lines is 4095 [10:34:07]Connected sock=10 [10:34: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 34 36 0C 01 00 00 97 18 04 01 CE E6 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 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 71 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 12 01 00 35 04 06 00 A4 F3 8F 47 D2 48 81 AA 03 C3 43 43 11 CA [10:34: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 34 36 4F 00 00 00 36 B3 47 00 88 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 12 01 00 F4 03 04 00 43 29 17 67 B6 04 01 00 00 58 05 44 F2 DB 06 F0 FE [10:34:07]CommunicateWithHost err = 0 [10:34:07]CheckOFDResponse [10:34:07]1017 (14) - 77093643461234 [10:34:07]1041 (16) - 0000000000963346 [10:34:07]1040 (4) - 70165 [10:34:07]1012 (4) - 22.10.2024 04:25 [10:34:07]1206 (1) - 0 [10:34:07]OFD Sender: Remove packet 70165 [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00070165 [10:34:07]NVStorageDeleteData [10:34:07]Write to MH i2c: 01 00 00 C6 52 18 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 C6 52 00 00 00 00 00 FD 0C 28 [10:34:07]RasterBufferAndPrint [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]written 0, free lines is 3331 [10:34:07]MH_Cut [10:34:07]Write to MH i2c: D1 01 00 CD 52 01 F1 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 CD 52 00 F0 [10:34:07]Write to MH i2c: 01 00 00 CE 52 20 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:08]OFD Sender: No OFD packet to send [10:34:08]*** Cut start [10:34:08]*** Partial cut [10:34:08]*** CUTSNS_PIN = 1 [10:34:08]*** CUTSNS_PIN = 0 [10:34:08]*** Brake cut motor [10:34:09]Read from MH i2c: 01 [10:34:09]MH_I2C_Read... [10:34:09]*** Stop cut motor [10:34:09]*** Cut end [10:34:09]Read from MH i2c: 01 07 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: 01 07 00 CE 52 00 00 00 00 00 FF 0F 35 [10:34:09]process_action close_receipt done [10:34:09]requested_data is exist [10:34:09]produce_requested_data [10:34:09]requested_item fm.sn is exist - process it [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 11 00 00 [10:34:09]Write to MH i2c: E2 08 00 CF 52 80 11 00 00 00 00 00 00 9B [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 17 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 17 00 CF 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [10:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:34:09]wFMCommunicate OK [10:34:09]requested_item fd.num is exist - process it [10:34:09]SAM_PROTO_GetFieldsCounters [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 13 00 00 [10:34:09]Write to MH i2c: E2 08 00 D0 52 80 13 00 00 00 00 00 00 9E [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 D0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 12 01 00 0E 04 04 00 C3 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 F7 [10:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 12 01 00 0E 04 04 00 C3 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 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetFieldsCounters done [10:34:09]requested_item shift.num is exist - process it [10:34:09]requested_item shift.opened is exist - process it [10:34:09]req_shift_opened [10:34:09]FM_GetShiftState [10:34:09]SAM_PROTO_GetShiftState [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 13 01 00 [10:34:09]Write to MH i2c: E2 08 00 D1 52 80 13 01 00 00 00 00 00 A0 [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 D1 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8E [10:34:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetShiftState done [10:34:09]FM_GetShiftState done [10:34:09]req_shift_opened done [10:34:09]requested_item shift.open_date is exist - process it [10:34:09]req_shift_open_date [10:34:09]req_shift_open_date done [10:34:09]produce_requested_data done [10:34:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70165,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:34:09]process_action_free close_receipt [10:34:09]json_value_free [10:34:09]json_value_free done [10:34:09]process_json_proto returns [10:34:09]Send response to host [10:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70165,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:34:09]free response buf [10:34:09]execute_script done [10:34:09]execute_script returns [10:34:09]free content buf [10:34:09]Sock 7.Close socket [10:34:09]Sock 7.Thread stoped [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:52]accept exits with 9 [10:34:52]New connection [10:34:52]New thread 3067026788 created [10:34:52]Thread 3067170148 joined [10:34:52]Waiting for new connection... [10:34:52] Sock 9.Parse request [10:34:52]Sock 9.Check first char [10:34:52]Sock 9.First char is OK [10:34:52]request: POST /json_proto HTTP/1.0 [10:34:52]Method: POST [10:34:52]URL: /json_proto [10:34:52]Method is POST - this is cgi request [10:34:52]url: /json_proto [10:34:52]query_string will be loaded in cgi processing [10:34:52]execute_cgi json_proto POST (null) [10:34:52]execute_cgi path=json_proto method=POST [10:34:52]POST find Content-Length [10:34:52]Host: 172.17.50.3:8080 [10:34:52]Content-Length: 801 [10:34:52]Content-Type: application/json [10:34:52] [10:34:52]POST finish read [10:34:52]Found Content-Length = 801 [10:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581907", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:52]execute_script... [10:34: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)2885933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581907", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:52]POST & json_proto [10:34:52]process_json_proto [10:34:52]json parsed OK: [10:34:52]protocol is kg_v1.0 [10:34:52]action value=close_receipt [10:34:52]process_action close_receipt [10:34:52]cmd_close_receipt [10:34:52]MH_GetDate [10:34:52]Write to MH i2c: F0 00 00 D2 52 13 [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 09 00 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 09 00 D2 52 00 D1 7F 17 67 6B 98 1E 66 71 [10:34:52]GetLastDocTimeStamp 1729593250 [10:34:52]current date 1729593297 [10:34:52]FM_GetShiftState [10:34:52]SAM_PROTO_GetShiftState [10:34:52]wFMCommunicate request_size=4 [10:34:52]MH_SAM_APDU [10:34:52]CAPDU: 80 13 01 00 [10:34:52]Write to MH i2c: E2 08 00 D3 52 80 13 01 00 00 00 00 00 A2 [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:52]Read from MH i2c: E2 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 D3 52 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 90 [10:34:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:34:52]wFMCommunicate OK [10:34:52]SAM_PROTO_GetShiftState done [10:34:52]FM_GetShiftState done [10:34:52]opened in 1729555832 [10:34:52]opened+sec_in_day 1729642232 [10:34:52]quantity*price = 0 [10:34:52]sum+1 = 1 [10:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 114 22.10.2024 10:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4581907 ФМ: 0000000000963346 ФД: 70166 ФПД: 129500665854603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70166&fm=129500665854603&tin=02508201610067®Number=0000000000156251&sum=0 [10:34:53]StoreToDocumentArchive [10:34:53]shift 195 fd 70166 [10:34:53]save to /storage/0195/doc_00070166 [10:34:53]save last doc name /storage/0195/doc_00070166 to /storage/kkm_last_doc_name [10:34:53]save OK [10:34:53]Clear old archive folders... [10:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:53]tlvbuf is 01144FB0 [10:34:53]SAM_PROTO_ClearQueue [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 09 00 00 [10:34:53]Write to MH i2c: E2 08 00 E0 52 80 09 00 00 00 00 00 00 A4 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 E0 52 00 90 00 A6 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_ClearQueue done [10:34:53]KKMCreateOFDPacket [10:34:53]OFDProtocolAddRootSTLVToBuf [10:34:53]FM_MakeSignedData [10:34:53]FM_MakeSignedData [10:34:53]SAM_PROTO_SignData [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 01 02 [10:34:53]Write to MH i2c: E2 08 00 E1 52 80 0D 01 02 00 00 00 00 AC [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 E1 52 00 90 00 A7 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=255 [10:34:53]MH_SAM_APDU [10:34: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 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 72 00 00 00 F4 03 04 00 D1 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 12 01 00 35 04 06 00 75 [10:34:53]Write to MH i2c: E2 02 01 E2 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 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 72 00 00 00 F4 03 04 00 D1 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 12 01 00 35 04 06 00 75 00 00 BF [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 E2 52 00 90 00 A8 [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]wFMCommunicate request_size=10 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 02 02 05 C7 B9 2F BA 8B [10:34:54]Write to MH i2c: E2 0D 00 E3 52 80 0D 02 02 05 00 C7 B9 2F BA 8B 00 00 AD [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 E3 52 00 90 00 A9 [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 03 02 [10:34:54]Write to MH i2c: E2 08 00 E4 52 80 0D 03 02 00 00 00 00 B1 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0B 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0B 00 E4 52 00 97 B4 09 0E A6 55 21 F2 90 00 22 [10:34:54]RAPDU: 97 B4 09 0E A6 55 21 F2 90 00 [10:34:54]wFMCommunicate OK [10:34:54]SAM_PROTO_SignData done [10:34:54]FM_MakeSignedData done [10:34:54]CreateOFDProtocolMessage [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 11 00 00 [10:34:54]Write to MH i2c: E2 08 00 E5 52 80 11 00 00 00 00 00 00 B1 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 17 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 17 00 E5 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [10:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:34:54]wFMCommunicate OK [10:34:54]CreateOFDProtocolMessage done [10:34:54]OFDSenderStorePacket 70166 [10:34:54]StoreOFDPacket docnum=70166 [10:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 15 07 01 45 AF 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 72 00 00 00 F4 03 04 00 D1 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 12 01 00 35 04 06 00 75 C7 B9 2F BA 8B 97 B4 09 0E A6 55 21 F2 [10:34:54]CheckFolder [10:34:54]dirname=/storage/ofd_packets [10:34:54]CheckFolder done [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00070166 [10:34:54]NVStorageSaveData ofd_packets/00070166 [10:34:54]File name is /storage/ofd_packets/00070166 [10:34:54]Write 301 bytes [10:34:54]NVStorageSaveData done [10:34:54]OFDSenderStorePacket done [10:34:54]KKMCreateOFDPacket done [10:34:54]NVStorageSaveData kkm_last_timestamp [10:34:54]File name is /storage/kkm_last_timestamp [10:34:54]Write 4 bytes [10:34:54]NVStorageSaveData done [10:34:54]ExternCall_PrintAddStr [10:34:54]wPrintStart [10:34:54]Write to MH i2c: 01 00 00 E6 52 38 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 E6 52 00 00 00 00 00 FF 0F 4D [10:34:54]RasterBufferAndPrint [10:34:54]line Счет N : (1)2885933 [10:34:54]line ИНН: 02508201610067 [10:34:54]line Контрольно-Кассовый Чек [10:34:54]line ПРОДАЖА [10:34:54]line ТРК (МРК, ГНК) : 42 [10:34:54]line Товар: 2710124130 [10:34:54]line Аи-92-К-5 [10:34:54]line 20.000 * 0.00 [10:34:54]line = 0.00 [10:34:54]line НДС 12% НСП 1% [10:34:54]line > о реализуемом товаре [10:34:54]line ИТОГО: 0.00 [10:34:54]line НСП 1% : 0.00 [10:34:54]line НДС 12% : 0.00 [10:34:54]line Наличными: 0.00 [10:34:54]line Безнал.: 0.00 [10:34:54]line Место: АЗС № 85 "Партнер Нефть" [10:34:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:34:54]line СНО: Общий режим [10:34:54]line Чек 114 22.10.2024 10:34 [10:34:54]line Смена: 195 ФФД: 1.0 [10:34:54]line ЗНМ: 0300000167 [10:34:54]line РНМ: 0000000000156251 [10:34:54]line Версия ККМ: v1.0 [10:34:54]line Талоны: Топливные Талоны [10:34:54]line 4581907 [10:34:54]line ФМ: 0000000000963346 [10:34:54]line ФД: 70166 [10:34:54]line ФПД: 129500665854603 [10:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70166&fm=129500665854603&tin=02508201610067®Number=0000000000156251&sum=0 [10:34:54]OFD Sender: Processing packet 70166 [packets to send 18, broken 17] [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00070166 [10:34:54]OFD Sender: To server: pG, [10:34:54]CommunicateWithHost lk.salyk.kg:30040 [10:34:54]ConnectInit lk.salyk.kg [10:34:54]written 0, free lines is 4095 [10:34:55]Write to MH i2c: 01 00 00 10 53 63 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 10 53 00 00 00 00 00 F6 0C 6C [10:34:55]RasterBufferAndPrint [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]written 0, free lines is 3324 [10:34:55]MH_Cut [10:34:55]Write to MH i2c: D1 01 00 17 53 01 3C [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 01 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 01 00 17 53 00 3B [10:34:55]Write to MH i2c: 01 00 00 18 53 6B [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** Cut start [10:34:55]*** Partial cut [10:34:55]*** CUTSNS_PIN = 1 [10:34:55]*** CUTSNS_PIN = 0 [10:34:55]*** Brake cut motor [10:34:56]Read from MH i2c: 01 [10:34:56]MH_I2C_Read... [10:34:56]*** Stop cut motor [10:34:56]*** Cut end [10:34:56]Read from MH i2c: 01 07 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 18 53 00 00 00 00 00 FF 0F 80 [10:34:56]process_action close_receipt done [10:34:56]requested_data is exist [10:34:56]produce_requested_data [10:34:56]requested_item fm.sn is exist - process it [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 11 00 00 [10:34:56]Write to MH i2c: E2 08 00 19 53 80 11 00 00 00 00 00 00 E6 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 19 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [10:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:34:56]wFMCommunicate OK [10:34:56]requested_item fd.num is exist - process it [10:34:56]SAM_PROTO_GetFieldsCounters [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 00 00 [10:34:56]Write to MH i2c: E2 08 00 1A 53 80 13 00 00 00 00 00 00 E9 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 62 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 62 00 1A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 12 01 00 0E 04 04 00 C3 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 46 [10:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 12 01 00 0E 04 04 00 C3 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 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetFieldsCounters done [10:34:56]requested_item shift.num is exist - process it [10:34:56]requested_item shift.opened is exist - process it [10:34:56]req_shift_opened [10:34:56]FM_GetShiftState [10:34:56]SAM_PROTO_GetShiftState [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 01 00 [10:34:56]Write to MH i2c: E2 08 00 1B 53 80 13 01 00 00 00 00 00 EB [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 1B 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D9 [10:34:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetShiftState done [10:34:56]FM_GetShiftState done [10:34:56]req_shift_opened done [10:34:56]requested_item shift.open_date is exist - process it [10:34:56]req_shift_open_date [10:34:56]req_shift_open_date done [10:34:56]produce_requested_data done [10:34:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70166,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:34:56]process_action_free close_receipt [10:34:56]json_value_free [10:34:56]json_value_free done [10:34:56]process_json_proto returns [10:34:56]Send response to host [10:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70166,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:34:56]free response buf [10:34:56]execute_script done [10:34:56]execute_script returns [10:34:56]free content buf [10:34:56]Sock 9.Close socket [10:34:56]Sock 9.Thread stoped [10:35:58]accept exits with 7 [10:35:58]New connection [10:35:58]New thread 3067170148 created [10:35:58]Thread 3067026788 joined [10:35:58]Waiting for new connection... [10:35:58] Sock 7.Parse request [10:35:58]Sock 7.Check first char [10:35:58]Sock 7.First char is OK [10:35:58]request: POST /json_proto HTTP/1.0 [10:35:58]Method: POST [10:35:58]URL: /json_proto [10:35:58]Method is POST - this is cgi request [10:35:58]url: /json_proto [10:35:58]query_string will be loaded in cgi processing [10:35:58]execute_cgi json_proto POST (null) [10:35:58]execute_cgi path=json_proto method=POST [10:35:58]POST find Content-Length [10:35:58]Host: 172.17.50.3:8080 [10:35:58]Content-Length: 683 [10:35:58]Content-Type: application/json [10:35:58] [10:35:58]POST finish read [10:35:58]Found Content-Length = 683 [10:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:35:58]execute_script... [10:35: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)2885934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:35:58]POST & json_proto [10:35:58]process_json_proto [10:35:58]json parsed OK: [10:35:58]protocol is kg_v1.0 [10:35:58]action value=close_receipt [10:35:58]process_action close_receipt [10:35:58]cmd_close_receipt [10:35:58]MH_GetDate [10:35:58]Write to MH i2c: F0 00 00 1C 53 5E [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 09 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 09 00 1C 53 00 13 80 17 67 6B 98 1E 66 FF [10:35:58]GetLastDocTimeStamp 1729593297 [10:35:58]current date 1729593363 [10:35:58]FM_GetShiftState [10:35:58]SAM_PROTO_GetShiftState [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 01 00 [10:35:58]Write to MH i2c: E2 08 00 1D 53 80 13 01 00 00 00 00 00 ED [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 1D 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DB [10:35:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetShiftState done [10:35:58]FM_GetShiftState done [10:35:58]opened in 1729555832 [10:35:58]opened+sec_in_day 1729642232 [10:35:58]quantity*price = 100021 [10:35:58]sum+1 = 100023 [10:35:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 115 22.10.2024 10:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70167 ФПД: 236105916014830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103603&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70167&fm=236105916014830&tin=02508201610067®Number=0000000000156251&sum=100000 [10:35:59]StoreToDocumentArchive [10:35:59]shift 195 fd 70167 [10:35:59]save to /storage/0195/doc_00070167 [10:35:59]save last doc name /storage/0195/doc_00070167 to /storage/kkm_last_doc_name [10:35:59]save OK [10:35:59]Clear old archive folders... [10:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:59]tlvbuf is 0111FF00 [10:35:59]SAM_PROTO_ClearQueue [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 09 00 00 [10:35:59]Write to MH i2c: E2 08 00 2A 53 80 09 00 00 00 00 00 00 EF [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 2A 53 00 90 00 F1 [10:35:59]RAPDU: 90 00 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_ClearQueue done [10:35:59]KKMCreateOFDPacket [10:35:59]OFDProtocolAddRootSTLVToBuf [10:35:59]FM_MakeSignedData [10:35:59]FM_MakeSignedData [10:35:59]SAM_PROTO_SignData [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 0D 01 02 [10:35:59]Write to MH i2c: E2 08 00 2B 53 80 0D 01 02 00 00 00 00 F7 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 2B 53 00 90 00 F2 [10:35:59]RAPDU: 90 00 [10:35:59]wFMCommunicate OK [10:35:59]wFMCommunicate request_size=255 [10:35:59]MH_SAM_APDU [10:35: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 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 73 00 00 00 F4 03 04 00 13 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 12 01 00 35 04 06 00 D6 [10:35:59]Write to MH i2c: E2 02 01 2C 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 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 73 00 00 00 F4 03 04 00 13 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 12 01 00 35 04 06 00 D6 00 00 E4 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 2C 53 00 90 00 F3 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=10 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 02 02 05 BC B1 40 E0 EE [10:36:00]Write to MH i2c: E2 0D 00 2D 53 80 0D 02 02 05 00 BC B1 40 E0 EE 00 00 7F [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 2D 53 00 90 00 F4 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 03 02 [10:36:00]Write to MH i2c: E2 08 00 2E 53 80 0D 03 02 00 00 00 00 FC [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 0B 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 0B 00 2E 53 00 24 AE CC 01 F8 19 12 C6 90 00 85 [10:36:00]RAPDU: 24 AE CC 01 F8 19 12 C6 90 00 [10:36:00]wFMCommunicate OK [10:36:00]SAM_PROTO_SignData done [10:36:00]FM_MakeSignedData done [10:36:00]CreateOFDProtocolMessage [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 11 00 00 [10:36:00]Write to MH i2c: E2 08 00 2F 53 80 11 00 00 00 00 00 00 FC [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 17 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 17 00 2F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [10:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:00]wFMCommunicate OK [10:36:00]CreateOFDProtocolMessage done [10:36:00]OFDSenderStorePacket 70167 [10:36:00]StoreOFDPacket docnum=70167 [10:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 D9 07 01 EF F6 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 73 00 00 00 F4 03 04 00 13 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 12 01 00 35 04 06 00 D6 BC B1 40 E0 EE 24 AE CC 01 F8 19 12 C6 [10:36:00]CheckFolder [10:36:00]dirname=/storage/ofd_packets [10:36:00]CheckFolder done [10:36:00]ProducePacketName [10:36:00]name=ofd_packets/00070167 [10:36:00]NVStorageSaveData ofd_packets/00070167 [10:36:00]File name is /storage/ofd_packets/00070167 [10:36:00]Write 301 bytes [10:36:00]NVStorageSaveData done [10:36:00]OFDSenderStorePacket done [10:36:00]KKMCreateOFDPacket done [10:36:00]NVStorageSaveData kkm_last_timestamp [10:36:00]File name is /storage/kkm_last_timestamp [10:36:00]Write 4 bytes [10:36:00]NVStorageSaveData done [10:36:00]ExternCall_PrintAddStr [10:36:00]wPrintStart [10:36:00]Write to MH i2c: 01 00 00 30 53 83 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 30 53 00 00 00 00 00 FF 0F 98 [10:36:00]RasterBufferAndPrint [10:36:00]line Счет N : (1)2885934 [10:36:00]line ИНН: 02508201610067 [10:36:00]line Контрольно-Кассовый Чек [10:36:00]line ПРОДАЖА [10:36:00]line ТРК (МРК, ГНК) : 23 [10:36:00]line Товар: 2710124500 [10:36:00]line Аи-95-К-5 [10:36:00]line 13.480 * 74.20 [10:36:00]line = 1000.22 [10:36:00]line НДС 12% НСП 1% [10:36:00]line > о реализуемом товаре [10:36:00]line ОКРУГЛЕНИЕ: -0.22 [10:36:00]line ИТОГО: 1000.00 [10:36:00]line Внесено: 1000.00 [10:36:00]line СДАЧА: 0.00 [10:36:00]line НСП 1% : 8.85 [10:36:00]line НДС 12% : 106.22 [10:36:00]line Наличными: 1000.00 [10:36:00]line Безнал.: 0.00 [10:36:00]line Место: АЗС № 85 "Партнер Нефть" [10:36:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:36:00]line СНО: Общий режим [10:36:00]line Чек 115 22.10.2024 10:36 [10:36:00]line Смена: 195 ФФД: 1.0 [10:36:00]line ЗНМ: 0300000167 [10:36:00]line РНМ: 0000000000156251 [10:36:00]line Версия ККМ: v1.0 [10:36:00]line ФМ: 0000000000963346 [10:36:00]line ФД: 70167 [10:36:00]line ФПД: 236105916014830 [10:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103603&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70167&fm=236105916014830&tin=02508201610067®Number=0000000000156251&sum=100000 [10:36:00]written 0, free lines is 4095 [10:36:00]Write to MH i2c: 01 00 00 5B 53 AE [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 5B 53 00 00 00 00 00 ED 0C AE [10:36:00]RasterBufferAndPrint [10:36:00]line [10:36:00]line [10:36:00]line [10:36:00]line [10:36:00]line [10:36:00]written 0, free lines is 3315 [10:36:00]MH_Cut [10:36:00]Write to MH i2c: D1 01 00 62 53 01 87 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: D1 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: D1 01 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: D1 01 00 62 53 00 86 [10:36:00]Write to MH i2c: 01 00 00 63 53 B6 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:01]*** Cut start [10:36:01]*** Partial cut [10:36:01]*** CUTSNS_PIN = 1 [10:36:01]*** CUTSNS_PIN = 0 [10:36:01]*** Brake cut motor [10:36:02]Read from MH i2c: 01 [10:36:02]MH_I2C_Read... [10:36:02]*** Stop cut motor [10:36:02]*** Cut end [10:36:02]Read from MH i2c: 01 07 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: 01 07 00 63 53 00 00 00 00 00 FF 0F CB [10:36:02]process_action close_receipt done [10:36:02]requested_data is exist [10:36:02]produce_requested_data [10:36:02]requested_item fm.sn is exist - process it [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 11 00 00 [10:36:02]Write to MH i2c: E2 08 00 64 53 80 11 00 00 00 00 00 00 31 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 17 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 17 00 64 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [10:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:02]wFMCommunicate OK [10:36:02]requested_item fd.num is exist - process it [10:36:02]SAM_PROTO_GetFieldsCounters [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 13 00 00 [10:36:02]Write to MH i2c: E2 08 00 65 53 80 13 00 00 00 00 00 00 34 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 62 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 62 00 65 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 12 01 00 0E 04 04 00 C3 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 95 [10:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 12 01 00 0E 04 04 00 C3 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 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_GetFieldsCounters done [10:36:02]requested_item shift.num is exist - process it [10:36:02]requested_item shift.opened is exist - process it [10:36:02]req_shift_opened [10:36:02]FM_GetShiftState [10:36:02]SAM_PROTO_GetShiftState [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 13 01 00 [10:36:02]Write to MH i2c: E2 08 00 66 53 80 13 01 00 00 00 00 00 36 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 0E 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 0E 00 66 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 24 [10:36:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_GetShiftState done [10:36:02]FM_GetShiftState done [10:36:02]req_shift_opened done [10:36:02]requested_item shift.open_date is exist - process it [10:36:02]req_shift_open_date [10:36:02]req_shift_open_date done [10:36:02]produce_requested_data done [10:36:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70167,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:36:02]process_action_free close_receipt [10:36:02]json_value_free [10:36:02]json_value_free done [10:36:02]process_json_proto returns [10:36:02]Send response to host [10:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70167,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:36:02]free response buf [10:36:02]execute_script done [10:36:02]execute_script returns [10:36:02]free content buf [10:36:02]Sock 7.Close socket [10:36:02]Sock 7.Thread stoped [10:36:41]accept exits with 9 [10:36:41]New connection [10:36:41]New thread 3067026788 created [10:36:41]Thread 3067170148 joined [10:36:41]Waiting for new connection... [10:36:41] Sock 9.Parse request [10:36:41]Sock 9.Check first char [10:36:41]Sock 9.First char is OK [10:36:41]request: POST /json_proto HTTP/1.0 [10:36:41]Method: POST [10:36:41]URL: /json_proto [10:36:41]Method is POST - this is cgi request [10:36:41]url: /json_proto [10:36:41]query_string will be loaded in cgi processing [10:36:41]execute_cgi json_proto POST (null) [10:36:41]execute_cgi path=json_proto method=POST [10:36:41]POST find Content-Length [10:36:41]Host: 172.17.50.3:8080 [10:36:41]Content-Length: 755 [10:36:41]Content-Type: application/json [10:36:41] [10:36:41]POST finish read [10:36:41]Found Content-Length = 755 [10:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:41]execute_script... [10:36: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)2885935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:41]POST & json_proto [10:36:41]process_json_proto [10:36:41]json parsed OK: [10:36:41]protocol is kg_v1.0 [10:36:41]action value=close_receipt [10:36:41]process_action close_receipt [10:36:41]cmd_close_receipt [10:36:41]MH_GetDate [10:36:41]Write to MH i2c: F0 00 00 67 53 A9 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: F0 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: F0 09 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: F0 09 00 67 53 00 3E 80 17 67 6B 98 1E 66 75 [10:36:41]GetLastDocTimeStamp 1729593363 [10:36:41]current date 1729593406 [10:36:41]FM_GetShiftState [10:36:41]SAM_PROTO_GetShiftState [10:36:41]wFMCommunicate request_size=4 [10:36:41]MH_SAM_APDU [10:36:41]CAPDU: 80 13 01 00 [10:36:41]Write to MH i2c: E2 08 00 68 53 80 13 01 00 00 00 00 00 38 [10:36:41]Write i2c OK [10:36:41]MH_I2C_Read... [10:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:41]Read from MH i2c: E2 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 0E 00 [10:36:41]MH_I2C_Read... [10:36:41]Read from MH i2c: E2 0E 00 68 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 26 [10:36:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:36:41]wFMCommunicate OK [10:36:41]SAM_PROTO_GetShiftState done [10:36:41]FM_GetShiftState done [10:36:41]opened in 1729555832 [10:36:41]opened+sec_in_day 1729642232 [10:36:41]quantity*price = 0 [10:36:41]sum+1 = 1 [10:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 116 22.10.2024 10:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70168 ФПД: 234387380251574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70168&fm=234387380251574&tin=02508201610067®Number=0000000000156251&sum=0 [10:36:42]StoreToDocumentArchive [10:36:42]shift 195 fd 70168 [10:36:42]save to /storage/0195/doc_00070168 [10:36:42]save last doc name /storage/0195/doc_00070168 to /storage/kkm_last_doc_name [10:36:42]save OK [10:36:42]Clear old archive folders... [10:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:42]tlvbuf is 01155700 [10:36:42]SAM_PROTO_ClearQueue [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 09 00 00 [10:36:42]Write to MH i2c: E2 08 00 75 53 80 09 00 00 00 00 00 00 3A [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 75 53 00 90 00 3C [10:36:42]RAPDU: 90 00 [10:36:42]wFMCommunicate OK [10:36:42]SAM_PROTO_ClearQueue done [10:36:42]KKMCreateOFDPacket [10:36:42]OFDProtocolAddRootSTLVToBuf [10:36:42]FM_MakeSignedData [10:36:42]FM_MakeSignedData [10:36:42]SAM_PROTO_SignData [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 0D 01 02 [10:36:42]Write to MH i2c: E2 08 00 76 53 80 0D 01 02 00 00 00 00 42 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 76 53 00 90 00 3D [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=255 [10:36:43]MH_SAM_APDU [10:36:43]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 74 00 00 00 F4 03 04 00 3E 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 12 01 00 35 04 06 00 D5 [10:36:43]Write to MH i2c: E2 02 01 77 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 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 74 00 00 00 F4 03 04 00 3E 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 12 01 00 35 04 06 00 D5 00 00 F0 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 77 53 00 90 00 3E [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=10 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 0D 02 02 05 2C 90 8A 2B B6 [10:36:43]Write to MH i2c: E2 0D 00 78 53 80 0D 02 02 05 00 2C 90 8A 2B B6 00 00 76 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 78 53 00 90 00 3F [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 0D 03 02 [10:36:43]Write to MH i2c: E2 08 00 79 53 80 0D 03 02 00 00 00 00 47 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 0B 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 0B 00 79 53 00 1F 2E 0D B3 FB 1E DC 16 90 00 60 [10:36:43]RAPDU: 1F 2E 0D B3 FB 1E DC 16 90 00 [10:36:43]wFMCommunicate OK [10:36:43]SAM_PROTO_SignData done [10:36:43]FM_MakeSignedData done [10:36:43]CreateOFDProtocolMessage [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 11 00 00 [10:36:43]Write to MH i2c: E2 08 00 7A 53 80 11 00 00 00 00 00 00 47 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 17 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 17 00 7A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [10:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:43]wFMCommunicate OK [10:36:43]CreateOFDProtocolMessage done [10:36:43]OFDSenderStorePacket 70168 [10:36:43]StoreOFDPacket docnum=70168 [10:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DE 97 07 01 A0 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 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 74 00 00 00 F4 03 04 00 3E 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 12 01 00 35 04 06 00 D5 2C 90 8A 2B B6 1F 2E 0D B3 FB 1E DC 16 [10:36:43]CheckFolder [10:36:43]dirname=/storage/ofd_packets [10:36:43]CheckFolder done [10:36:43]ProducePacketName [10:36:43]name=ofd_packets/00070168 [10:36:43]NVStorageSaveData ofd_packets/00070168 [10:36:43]File name is /storage/ofd_packets/00070168 [10:36:43]Write 301 bytes [10:36:43]NVStorageSaveData done [10:36:43]OFDSenderStorePacket done [10:36:43]KKMCreateOFDPacket done [10:36:43]NVStorageSaveData kkm_last_timestamp [10:36:43]File name is /storage/kkm_last_timestamp [10:36:43]Write 4 bytes [10:36:43]NVStorageSaveData done [10:36:43]ExternCall_PrintAddStr [10:36:43]wPrintStart [10:36:43]Write to MH i2c: 01 00 00 7B 53 CE [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 7B 53 00 00 00 00 00 FF 0F E3 [10:36:43]RasterBufferAndPrint [10:36:43]line Счет N : (1)2885935 [10:36:43]line ИНН: 02508201610067 [10:36:43]line Контрольно-Кассовый Чек [10:36:43]line ПРОДАЖА [10:36:43]line ТРК (МРК, ГНК) : 32 [10:36:43]line Товар: 2710124130 [10:36:43]line Аи-92-К-5 [10:36:43]line 10.000 * 0.00 [10:36:43]line = 0.00 [10:36:43]line НДС 12% НСП 1% [10:36:43]line > о реализуемом товаре [10:36:43]line ИТОГО: 0.00 [10:36:43]line НСП 1% : 0.00 [10:36:43]line НДС 12% : 0.00 [10:36:43]line Наличными: 0.00 [10:36:43]line Безнал.: 0.00 [10:36:43]line Место: АЗС № 85 "Партнер Нефть" [10:36:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:36:43]line СНО: Общий режим [10:36:43]line Чек 116 22.10.2024 10:36 [10:36:43]line Смена: 195 ФФД: 1.0 [10:36:43]line ЗНМ: 0300000167 [10:36:43]line РНМ: 0000000000156251 [10:36:43]line Версия ККМ: v1.0 [10:36:43]line Талоны: ТК ГПНА Online [10:36:43]line 30100970 [10:36:43]line ФМ: 0000000000963346 [10:36:43]line ФД: 70168 [10:36:43]line ФПД: 234387380251574 [10:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70168&fm=234387380251574&tin=02508201610067®Number=0000000000156251&sum=0 [10:36:43]written 0, free lines is 4095 [10:36:44]Write to MH i2c: 01 00 00 A5 53 F8 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 A5 53 00 00 00 00 00 F4 0C FF [10:36:44]RasterBufferAndPrint [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]written 0, free lines is 3322 [10:36:44]MH_Cut [10:36:44]Write to MH i2c: D1 01 00 AC 53 01 D1 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 01 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 01 00 AC 53 00 D0 [10:36:44]Write to MH i2c: 01 00 00 AD 53 00 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** Cut start [10:36:44]*** Partial cut [10:36:44]*** CUTSNS_PIN = 1 [10:36:44]*** CUTSNS_PIN = 0 [10:36:45]*** Brake cut motor [10:36:45]Read from MH i2c: 01 [10:36:45]MH_I2C_Read... [10:36:45]*** Stop cut motor [10:36:45]*** Cut end [10:36:45]Read from MH i2c: 01 07 00 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: 01 07 00 AD 53 00 00 00 00 00 FF 0F 15 [10:36:45]process_action close_receipt done [10:36:45]requested_data is exist [10:36:45]produce_requested_data [10:36:45]requested_item fm.sn is exist - process it [10:36:45]wFMCommunicate request_size=4 [10:36:45]MH_SAM_APDU [10:36:45]CAPDU: 80 11 00 00 [10:36:45]Write to MH i2c: E2 08 00 AE 53 80 11 00 00 00 00 00 00 7B [10:36:45]Write i2c OK [10:36:45]MH_I2C_Read... [10:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:45]Read from MH i2c: E2 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 17 00 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 17 00 AE 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [10:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:45]wFMCommunicate OK [10:36:45]requested_item fd.num is exist - process it [10:36:45]SAM_PROTO_GetFieldsCounters [10:36:45]wFMCommunicate request_size=4 [10:36:45]MH_SAM_APDU [10:36:45]CAPDU: 80 13 00 00 [10:36:45]Write to MH i2c: E2 08 00 AF 53 80 13 00 00 00 00 00 00 7E [10:36:45]Write i2c OK [10:36:45]MH_I2C_Read... [10:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:45]Read from MH i2c: E2 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 62 00 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 62 00 AF 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 12 01 00 0E 04 04 00 C3 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 E3 [10:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 12 01 00 0E 04 04 00 C3 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 [10:36:45]wFMCommunicate OK [10:36:45]SAM_PROTO_GetFieldsCounters done [10:36:45]requested_item shift.num is exist - process it [10:36:45]requested_item shift.opened is exist - process it [10:36:45]req_shift_opened [10:36:45]FM_GetShiftState [10:36:45]SAM_PROTO_GetShiftState [10:36:45]wFMCommunicate request_size=4 [10:36:45]MH_SAM_APDU [10:36:45]CAPDU: 80 13 01 00 [10:36:45]Write to MH i2c: E2 08 00 B0 53 80 13 01 00 00 00 00 00 80 [10:36:45]Write i2c OK [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 [10:36:45]MH_I2C_Read... [10:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:45]Read from MH i2c: E2 0E 00 [10:36:45]MH_I2C_Read... [10:36:45]Read from MH i2c: E2 0E 00 B0 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6E [10:36:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:36:45]wFMCommunicate OK [10:36:45]SAM_PROTO_GetShiftState done [10:36:45]FM_GetShiftState done [10:36:45]req_shift_opened done [10:36:45]requested_item shift.open_date is exist - process it [10:36:45]req_shift_open_date [10:36:45]req_shift_open_date done [10:36:45]produce_requested_data done [10:36:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70168,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:36:45]process_action_free close_receipt [10:36:45]json_value_free [10:36:45]json_value_free done [10:36:45]process_json_proto returns [10:36:45]Send response to host [10:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70168,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:36:45]free response buf [10:36:45]execute_script done [10:36:45]execute_script returns [10:36:45]free content buf [10:36:45]Sock 9.Close socket [10:36:45]Sock 9.Thread stoped [10:37:08]ConnectInit Can't connect to host [10:37:08]CommunicateWithHost connect error [10:37:08]CommunicateWithHost err = -1 [10:37:08]OFD Sender: Server communicate error [10:37:08]OFD Sender: Processing packet 70166 [packets to send 20, broken 17] [10:37:08]ProducePacketName [10:37:08]name=ofd_packets/00070166 [10:37:08]OFD Sender: To server: pG, [10:37:08]CommunicateWithHost lk.salyk.kg:30040 [10:37:08]ConnectInit lk.salyk.kg [10:37:08]Connected sock=9 [10:37: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 34 36 0F 01 00 00 18 15 07 01 45 AF 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 72 00 00 00 F4 03 04 00 D1 7F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 12 01 00 35 04 06 00 75 C7 B9 2F BA 8B 97 B4 09 0E A6 55 21 F2 [10:37: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 34 36 4F 00 00 00 FB 11 47 00 88 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 34 36 10 04 04 00 16 12 01 00 F4 03 04 00 F8 29 17 67 B6 04 01 00 00 F8 1B BD AD 95 39 D3 5D [10:37:08]CommunicateWithHost err = 0 [10:37:08]CheckOFDResponse [10:37:08]1017 (14) - 77093643461234 [10:37:08]1041 (16) - 0000000000963346 [10:37:08]1040 (4) - 70166 [10:37:08]1012 (4) - 22.10.2024 04:28 [10:37:08]1206 (1) - 0 [10:37:08]OFD Sender: Remove packet 70166 [10:37:08]ProducePacketName [10:37:08]name=ofd_packets/00070166 [10:37:08]NVStorageDeleteData [10:37:09]OFD Sender: Processing packet 70167 [packets to send 19, broken 17] [10:37:09]ProducePacketName [10:37:09]name=ofd_packets/00070167 [10:37:09]OFD Sender: To server: pG, [10:37:09]CommunicateWithHost lk.salyk.kg:30040 [10:37:09]ConnectInit lk.salyk.kg [10:37:09]Connected sock=9 [10:37: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 34 36 0F 01 00 00 95 D9 07 01 EF F6 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 73 00 00 00 F4 03 04 00 13 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 12 01 00 35 04 06 00 D6 BC B1 40 E0 EE 24 AE CC 01 F8 19 12 C6 [10:37: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 34 36 4F 00 00 00 C7 CC 47 00 FE 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 34 36 10 04 04 00 17 12 01 00 F4 03 04 00 F9 29 17 67 B6 04 01 00 00 1A B4 CB F0 C8 CA 8C 4E [10:37:09]CommunicateWithHost err = 0 [10:37:09]CheckOFDResponse [10:37:09]1017 (14) - 77093643461234 [10:37:09]1041 (16) - 0000000000963346 [10:37:09]1040 (4) - 70167 [10:37:09]1012 (4) - 22.10.2024 04:28 [10:37:09]1206 (1) - 0 [10:37:09]OFD Sender: Remove packet 70167 [10:37:09]ProducePacketName [10:37:09]name=ofd_packets/00070167 [10:37:09]NVStorageDeleteData [10:37:10]OFD Sender: Processing packet 70168 [packets to send 18, broken 17] [10:37:10]ProducePacketName [10:37:10]name=ofd_packets/00070168 [10:37:10]OFD Sender: To server: pG, [10:37:10]CommunicateWithHost lk.salyk.kg:30040 [10:37:10]ConnectInit lk.salyk.kg [10:37:10]Connected sock=9 [10:37: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 34 36 0F 01 00 00 DE 97 07 01 A0 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 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 74 00 00 00 F4 03 04 00 3E 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 12 01 00 35 04 06 00 D5 2C 90 8A 2B B6 1F 2E 0D B3 FB 1E DC 16 [10:37: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 34 36 4F 00 00 00 F9 08 47 00 6C 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 34 36 10 04 04 00 18 12 01 00 F4 03 04 00 FA 29 17 67 B6 04 01 00 00 84 15 15 94 E8 90 89 02 [10:37:10]CommunicateWithHost err = 0 [10:37:10]CheckOFDResponse [10:37:10]1017 (14) - 77093643461234 [10:37:10]1041 (16) - 0000000000963346 [10:37:10]1040 (4) - 70168 [10:37:10]1012 (4) - 22.10.2024 04:28 [10:37:10]1206 (1) - 0 [10:37:10]OFD Sender: Remove packet 70168 [10:37:10]ProducePacketName [10:37:10]name=ofd_packets/00070168 [10:37:10]NVStorageDeleteData [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:27]accept exits with 7 [10:38:27]New connection [10:38:27]New thread 3067170148 created [10:38:27]Thread 3067026788 joined [10:38:27]Waiting for new connection... [10:38:27] Sock 7.Parse request [10:38:27]Sock 7.Check first char [10:38:27]Sock 7.First char is OK [10:38:27]request: POST /json_proto HTTP/1.0 [10:38:27]Method: POST [10:38:27]URL: /json_proto [10:38:27]Method is POST - this is cgi request [10:38:27]url: /json_proto [10:38:27]query_string will be loaded in cgi processing [10:38:27]execute_cgi json_proto POST (null) [10:38:27]execute_cgi path=json_proto method=POST [10:38:27]POST find Content-Length [10:38:27]Host: 172.17.50.3:8080 [10:38:27]Content-Length: 754 [10:38:27]Content-Type: application/json [10:38:27] [10:38:27]POST finish read [10:38:27]Found Content-Length = 754 [10:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:27]execute_script... [10: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)2885936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:27]POST & json_proto [10:38:27]process_json_proto [10:38:27]json parsed OK: [10:38:27]protocol is kg_v1.0 [10:38:27]action value=close_receipt [10:38:27]process_action close_receipt [10:38:27]cmd_close_receipt [10:38:27]MH_GetDate [10:38:27]Write to MH i2c: F0 00 00 B1 53 F3 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: F0 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: F0 09 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: F0 09 00 B1 53 00 A8 80 17 67 6B 98 1E 66 29 [10:38:27]GetLastDocTimeStamp 1729593406 [10:38:27]current date 1729593512 [10:38:27]FM_GetShiftState [10:38:27]SAM_PROTO_GetShiftState [10:38:27]wFMCommunicate request_size=4 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 13 01 00 [10:38:27]Write to MH i2c: E2 08 00 B2 53 80 13 01 00 00 00 00 00 82 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 0E 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 0E 00 B2 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 70 [10:38:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:38:27]wFMCommunicate OK [10:38:27]SAM_PROTO_GetShiftState done [10:38:27]FM_GetShiftState done [10:38:27]opened in 1729555832 [10:38:27]opened+sec_in_day 1729642232 [10:38:27]quantity*price = 0 [10:38:27]sum+1 = 1 [10:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 117 22.10.2024 10:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70169 ФПД: 3615881782061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70169&fm=3615881782061&tin=02508201610067®Number=0000000000156251&sum=0 [10:38:28]StoreToDocumentArchive [10:38:28]shift 195 fd 70169 [10:38:28]save to /storage/0195/doc_00070169 [10:38:28]save last doc name /storage/0195/doc_00070169 to /storage/kkm_last_doc_name [10:38:28]save OK [10:38:28]Clear old archive folders... [10:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:28]tlvbuf is 011449A0 [10:38:28]SAM_PROTO_ClearQueue [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 09 00 00 [10:38:28]Write to MH i2c: E2 08 00 BF 53 80 09 00 00 00 00 00 00 84 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 BF 53 00 90 00 86 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_ClearQueue done [10:38:28]KKMCreateOFDPacket [10:38:28]OFDProtocolAddRootSTLVToBuf [10:38:28]FM_MakeSignedData [10:38:28]FM_MakeSignedData [10:38:28]SAM_PROTO_SignData [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 0D 01 02 [10:38:28]Write to MH i2c: E2 08 00 C0 53 80 0D 01 02 00 00 00 00 8C [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 C0 53 00 90 00 87 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]wFMCommunicate request_size=255 [10:38:28]MH_SAM_APDU [10: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 88 13 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 75 00 00 00 F4 03 04 00 A8 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 12 01 00 35 04 06 00 03 [10:38:28]Write to MH i2c: E2 02 01 C1 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 88 13 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 75 00 00 00 F4 03 04 00 A8 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 12 01 00 35 04 06 00 03 00 00 38 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 C1 53 00 90 00 88 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=10 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 02 02 05 49 E3 59 63 2D [10:38:29]Write to MH i2c: E2 0D 00 C2 53 80 0D 02 02 05 00 49 E3 59 63 2D 00 00 AE [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 C2 53 00 90 00 89 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 03 02 [10:38:29]Write to MH i2c: E2 08 00 C3 53 80 0D 03 02 00 00 00 00 91 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0B 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0B 00 C3 53 00 E6 18 7B 60 0F D3 0A 58 90 00 AF [10:38:29]RAPDU: E6 18 7B 60 0F D3 0A 58 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_SignData done [10:38:29]FM_MakeSignedData done [10:38:29]CreateOFDProtocolMessage [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 11 00 00 [10:38:29]Write to MH i2c: E2 08 00 C4 53 80 11 00 00 00 00 00 00 91 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 C4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [10:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:38:29]wFMCommunicate OK [10:38:29]CreateOFDProtocolMessage done [10:38:29]OFDSenderStorePacket 70169 [10:38:29]StoreOFDPacket docnum=70169 [10:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA 5C 07 01 02 97 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 13 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 75 00 00 00 F4 03 04 00 A8 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 12 01 00 35 04 06 00 03 49 E3 59 63 2D E6 18 7B 60 0F D3 0A 58 [10:38:29]CheckFolder [10:38:29]dirname=/storage/ofd_packets [10:38:29]CheckFolder done [10:38:29]ProducePacketName [10:38:29]name=ofd_packets/00070169 [10:38:29]NVStorageSaveData ofd_packets/00070169 [10:38:29]File name is /storage/ofd_packets/00070169 [10:38:29]Write 301 bytes [10:38:29]NVStorageSaveData done [10:38:29]OFDSenderStorePacket done [10:38:29]KKMCreateOFDPacket done [10:38:29]NVStorageSaveData kkm_last_timestamp [10:38:29]File name is /storage/kkm_last_timestamp [10:38:29]Write 4 bytes [10:38:29]NVStorageSaveData done [10:38:29]ExternCall_PrintAddStr [10:38:29]wPrintStart [10:38:29]Write to MH i2c: 01 00 00 C5 53 18 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 C5 53 00 00 00 00 00 FF 0F 2D [10:38:29]RasterBufferAndPrint [10:38:29]line Счет N : (1)2885936 [10:38:29]line ИНН: 02508201610067 [10:38:29]line Контрольно-Кассовый Чек [10:38:29]line ПРОДАЖА [10:38:29]line ТРК (МРК, ГНК) : 12 [10:38:29]line Товар: 2710124130 [10:38:29]line Аи-92-К-5 [10:38:29]line 5.000 * 0.00 [10:38:29]line = 0.00 [10:38:29]line НДС 12% НСП 1% [10:38:29]line > о реализуемом товаре [10:38:29]line ИТОГО: 0.00 [10:38:29]line НСП 1% : 0.00 [10:38:29]line НДС 12% : 0.00 [10:38:29]line Наличными: 0.00 [10:38:29]line Безнал.: 0.00 [10:38:29]line Место: АЗС № 85 "Партнер Нефть" [10:38:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:38:29]line СНО: Общий режим [10:38:29]line Чек 117 22.10.2024 10:38 [10:38:29]line Смена: 195 ФФД: 1.0 [10:38:29]line ЗНМ: 0300000167 [10:38:29]line РНМ: 0000000000156251 [10:38:29]line Версия ККМ: v1.0 [10:38:29]line Талоны: ТК ГПНА Online [10:38:29]line 30100970 [10:38:29]line ФМ: 0000000000963346 [10:38:29]line ФД: 70169 [10:38:29]line ФПД: 3615881782061 [10:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70169&fm=3615881782061&tin=02508201610067®Number=0000000000156251&sum=0 [10:38:29]OFD Sender: Processing packet 70169 [packets to send 18, broken 17] [10:38:29]ProducePacketName [10:38:29]name=ofd_packets/00070169 [10:38:29]OFD Sender: To server: pG, [10:38:29]CommunicateWithHost lk.salyk.kg:30040 [10:38:29]ConnectInit lk.salyk.kg [10:38:29]written 0, free lines is 4095 [10:38:29]Connected sock=10 [10: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 34 36 0F 01 00 00 EA 5C 07 01 02 97 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 13 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 75 00 00 00 F4 03 04 00 A8 80 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 12 01 00 35 04 06 00 03 49 E3 59 63 2D E6 18 7B 60 0F D3 0A 58 [10:38: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 34 36 4F 00 00 00 B3 4D 47 00 2D A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 12 01 00 F4 03 04 00 49 2A 17 67 B6 04 01 00 00 0D 99 AA B3 F8 AB BA DA [10:38:30]CommunicateWithHost err = 0 [10:38:30]CheckOFDResponse [10:38:30]1017 (14) - 77093643461234 [10:38:30]1041 (16) - 0000000000963346 [10:38:30]1040 (4) - 70169 [10:38:30]1012 (4) - 22.10.2024 04:30 [10:38:30]1206 (1) - 0 [10:38:30]OFD Sender: Remove packet 70169 [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00070169 [10:38:30]NVStorageDeleteData [10:38:30]Write to MH i2c: 01 00 00 EF 53 42 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 EF 53 00 00 00 00 00 0B 0D 61 [10:38:30]RasterBufferAndPrint [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]written 0, free lines is 3345 [10:38:30]MH_Cut [10:38:30]Write to MH i2c: D1 01 00 F6 53 01 1B [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 F6 53 00 1A [10:38:30]Write to MH i2c: 01 00 00 F7 53 4A [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]OFD Sender: No OFD packet to send [10:38:30]*** Cut start [10:38:30]*** Partial cut [10:38:30]*** CUTSNS_PIN = 1 [10:38:30]*** CUTSNS_PIN = 0 [10:38:31]*** Brake cut motor [10:38:31]Read from MH i2c: 01 [10:38:31]MH_I2C_Read... [10:38:31]*** Stop cut motor [10:38:31]*** Cut end [10:38:31]Read from MH i2c: 01 07 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 F7 53 00 00 00 00 00 FF 0F 5F [10:38:31]process_action close_receipt done [10:38:31]requested_data is exist [10:38:31]produce_requested_data [10:38:31]requested_item fm.sn is exist - process it [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 11 00 00 [10:38:31]Write to MH i2c: E2 08 00 F8 53 80 11 00 00 00 00 00 00 C5 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 17 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 17 00 F8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [10:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:38:31]wFMCommunicate OK [10:38:31]requested_item fd.num is exist - process it [10:38:31]SAM_PROTO_GetFieldsCounters [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 13 00 00 [10:38:31]Write to MH i2c: E2 08 00 F9 53 80 13 00 00 00 00 00 00 C8 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 62 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 62 00 F9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 12 01 00 0E 04 04 00 C3 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 31 [10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 12 01 00 0E 04 04 00 C3 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 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_GetFieldsCounters done [10:38:31]requested_item shift.num is exist - process it [10:38:31]requested_item shift.opened is exist - process it [10:38:31]req_shift_opened [10:38:31]FM_GetShiftState [10:38:31]SAM_PROTO_GetShiftState [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 13 01 00 [10:38:31]Write to MH i2c: E2 08 00 FA 53 80 13 01 00 00 00 00 00 CA [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 FA 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B8 [10:38:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_GetShiftState done [10:38:31]FM_GetShiftState done [10:38:31]req_shift_opened done [10:38:31]requested_item shift.open_date is exist - process it [10:38:31]req_shift_open_date [10:38:31]req_shift_open_date done [10:38:31]produce_requested_data done [10:38:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70169,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:38:31]process_action_free close_receipt [10:38:31]json_value_free [10:38:31]json_value_free done [10:38:31]process_json_proto returns [10:38:31]Send response to host [10:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70169,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:38:31]free response buf [10:38:31]execute_script done [10:38:31]execute_script returns [10:38:31]free content buf [10:38:31]Sock 7.Close socket [10:38:31]Sock 7.Thread stoped [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:21]accept exits with 9 [10:40:21]New connection [10:40:21]New thread 3067026788 created [10:40:21]Thread 3067170148 joined [10:40:21]Waiting for new connection... [10:40:21] Sock 9.Parse request [10:40:21]Sock 9.Check first char [10:40:21]Sock 9.First char is OK [10:40:21]request: POST /json_proto HTTP/1.0 [10:40:21]Method: POST [10:40:21]URL: /json_proto [10:40:21]Method is POST - this is cgi request [10:40:21]url: /json_proto [10:40:21]query_string will be loaded in cgi processing [10:40:21]execute_cgi json_proto POST (null) [10:40:21]execute_cgi path=json_proto method=POST [10:40:21]POST find Content-Length [10:40:21]Host: 172.17.50.3:8080 [10:40:21]Content-Length: 678 [10:40:21]Content-Type: application/json [10:40:21] [10:40:21]POST finish read [10:40:21]Found Content-Length = 678 [10:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:40:21]execute_script... [10:40: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)2885937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:40:21]POST & json_proto [10:40:21]process_json_proto [10:40:21]json parsed OK: [10:40:21]protocol is kg_v1.0 [10:40:21]action value=close_receipt [10:40:21]process_action close_receipt [10:40:21]cmd_close_receipt [10:40:21]MH_GetDate [10:40:21]Write to MH i2c: F0 00 00 FB 53 3D [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 09 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 09 00 FB 53 00 1A 81 17 67 6B 98 1E 66 E6 [10:40:21]GetLastDocTimeStamp 1729593512 [10:40:21]current date 1729593626 [10:40:21]FM_GetShiftState [10:40:21]SAM_PROTO_GetShiftState [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 01 00 [10:40:21]Write to MH i2c: E2 08 00 FC 53 80 13 01 00 00 00 00 00 CC [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 FC 53 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BA [10:40:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetShiftState done [10:40:21]FM_GetShiftState done [10:40:21]opened in 1729555832 [10:40:21]opened+sec_in_day 1729642232 [10:40:21]quantity*price = 50010 [10:40:21]sum+1 = 50012 [10:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре [10:40:23]line ОКРУГЛЕНИЕ: -0.11 [10:40:23]line ИТОГО: 500.00 [10:40:23]line Внесено: 500.00 [10:40:23]line СДАЧА: 0.00 [10:40:23]line НСП 1% : 4.43 [10:40:23]line НДС 12% : 53.11 [10:40:23]line Наличными: 500.00 [10:40:23]line Безнал.: 0.00 [10:40:23]line Место: АЗС № 85 "Партнер Нефть" [10:40:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:40:23]line СНО: Общий режим [10:40:23]line Чек 118 22.10.2024 10:40 [10:40:23]line Смена: 195 ФФД: 1.0 [10:40:23]line ЗНМ: 0300000167 [10:40:23]line РНМ: 0000000000156251 [10:40:23]line Версия ККМ: v1.0 [10:40:23]line ФМ: 0000000000963346 [10:40:23]line ФД: 70170 [10:40:23]line ФПД: 126816551103623 [10:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70170&fm=126816551103623&tin=02508201610067®Number=0000000000156251&sum=50000 [10:40:23]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:40:23]ProducePacketName [10:40:23]name=ofd_packets/00070170 [10:40:23]OFD Sender: To server: pG, [10:40:23]CommunicateWithHost lk.salyk.kg:30040 [10:40:23]ConnectInit lk.salyk.kg [10:40:23]written 0, free lines is 4095 [10:40:23]Write to MH i2c: 01 00 00 3A 54 8E [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 3A 54 00 00 00 00 00 E4 0C 85 [10:40:23]RasterBufferAndPrint [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]written 0, free lines is 3306 [10:40:23]MH_Cut [10:40:23]Write to MH i2c: D1 01 00 41 54 01 67 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 41 54 00 66 [10:40:23]Write to MH i2c: 01 00 00 42 54 96 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:24]*** Cut start [10:40:24]*** Partial cut [10:40:24]*** CUTSNS_PIN = 1 [10:40:24]*** CUTSNS_PIN = 0 [10:40:24]*** Brake cut motor [10:40:25]Read from MH i2c: 01 [10:40:25]MH_I2C_Read... [10:40:25]*** Stop cut motor [10:40:25]*** Cut end [10:40:25]Read from MH i2c: 01 07 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: 01 07 00 42 54 00 00 00 00 00 FF 0F AB [10:40:25]process_action close_receipt done [10:40:25]requested_data is exist [10:40:25]produce_requested_data [10:40:25]requested_item fm.sn is exist - process it [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 11 00 00 [10:40:25]Write to MH i2c: E2 08 00 43 54 80 11 00 00 00 00 00 00 11 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 17 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 17 00 43 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [10:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:40:25]wFMCommunicate OK [10:40:25]requested_item fd.num is exist - process it [10:40:25]SAM_PROTO_GetFieldsCounters [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 00 00 [10:40:25]Write to MH i2c: E2 08 00 44 54 80 13 00 00 00 00 00 00 14 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 44 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 12 01 00 0E 04 04 00 C3 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 81 [10:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 12 01 00 0E 04 04 00 C3 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 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetFieldsCounters done [10:40:25]requested_item shift.num is exist - process it [10:40:25]requested_item shift.opened is exist - process it [10:40:25]req_shift_opened [10:40:25]FM_GetShiftState [10:40:25]SAM_PROTO_GetShiftState [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 01 00 [10:40:25]Write to MH i2c: E2 08 00 45 54 80 13 01 00 00 00 00 00 16 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 0E 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 0E 00 45 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 04 [10:40:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetShiftState done [10:40:25]FM_GetShiftState done [10:40:25]req_shift_opened done [10:40:25]requested_item shift.open_date is exist - process it [10:40:25]req_shift_open_date [10:40:25]req_shift_open_date done [10:40:25]produce_requested_data done [10:40:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70170,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:40:25]process_action_free close_receipt [10:40:25]json_value_free [10:40:25]json_value_free done [10:40:25]process_json_proto returns [10:40:25]Send response to host [10:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70170,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:40:25]free response buf [10:40:25]execute_script done [10:40:25]execute_script returns [10:40:25]free content buf [10:40:25]Sock 9.Close socket [10:40:25]Sock 9.Thread stoped [10:40:28]ConnectInit Can't take IP for lk.salyk.kg [10:40:28]CommunicateWithHost connect error [10:40:28]CommunicateWithHost err = -1 [10:40:28]OFD Sender: Server communicate error [10:40:33]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:40:33]ProducePacketName [10:40:33]name=ofd_packets/00070170 [10:40:33]OFD Sender: To server: pG, [10:40:33]CommunicateWithHost lk.salyk.kg:30040 [10:40:33]ConnectInit lk.salyk.kg [10:40:38]ConnectInit Can't take IP for lk.salyk.kg [10:40:38]CommunicateWithHost connect error [10:40:38]CommunicateWithHost err = -1 [10:40:38]OFD Sender: Server communicate error [10:40:43]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:40:43]ProducePacketName [10:40:43]name=ofd_packets/00070170 [10:40:43]OFD Sender: To server: pG, [10:40:43]CommunicateWithHost lk.salyk.kg:30040 [10:40:43]ConnectInit lk.salyk.kg [10:40:48]ConnectInit Can't take IP for lk.salyk.kg [10:40:48]CommunicateWithHost connect error [10:40:48]CommunicateWithHost err = -1 [10:40:48]OFD Sender: Server communicate error [10:40:53]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:40:53]ProducePacketName [10:40:53]name=ofd_packets/00070170 [10:40:53]OFD Sender: To server: pG, [10:40:53]CommunicateWithHost lk.salyk.kg:30040 [10:40:53]ConnectInit lk.salyk.kg [10:40:58]ConnectInit Can't take IP for lk.salyk.kg [10:40:58]CommunicateWithHost connect error [10:40:58]CommunicateWithHost err = -1 [10:40:58]OFD Sender: Server communicate error [10:41:03]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:41:03]ProducePacketName [10:41:03]name=ofd_packets/00070170 [10:41:03]OFD Sender: To server: pG, [10:41:03]CommunicateWithHost lk.salyk.kg:30040 [10:41:03]ConnectInit lk.salyk.kg [10:41:08]ConnectInit Can't take IP for lk.salyk.kg [10:41:08]CommunicateWithHost connect error [10:41:08]CommunicateWithHost err = -1 [10:41:08]OFD Sender: Server communicate error [10:41:13]OFD Sender: Processing packet 70170 [packets to send 18, broken 17] [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00070170 [10:41:13]OFD Sender: To server: pG, [10:41:13]CommunicateWithHost lk.salyk.kg:30040 [10:41:13]ConnectInit lk.salyk.kg [10:41:13]Connected sock=9 [10:41: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 34 36 0F 01 00 00 BA 44 07 01 C2 F7 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 76 00 00 00 F4 03 04 00 1A 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 12 01 00 35 04 06 00 73 56 C7 7A EC 87 88 FD FF 90 96 2F 27 0E [10:41: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 34 36 4F 00 00 00 8E 8A 47 00 8A 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 34 36 10 04 04 00 1A 12 01 00 F4 03 04 00 ED 2A 17 67 B6 04 01 00 00 49 51 A7 DD 52 3D 06 D5 [10:41:14]CommunicateWithHost err = 0 [10:41:14]CheckOFDResponse [10:41:14]1017 (14) - 77093643461234 [10:41:14]1041 (16) - 0000000000963346 [10:41:14]1040 (4) - 70170 [10:41:14]1012 (4) - 22.10.2024 04:32 [10:41:14]1206 (1) - 0 [10:41:14]OFD Sender: Remove packet 70170 [10:41:14]ProducePacketName [10:41:14]name=ofd_packets/00070170 [10:41:14]NVStorageDeleteData [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:36]recv_with_timeout no data received [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:17]accept exits with 10 [10:43:17]New connection [10:43:17]New thread 3067170148 created [10:43:17]Thread 3067026788 joined [10:43:17]Waiting for new connection... [10:43:17] Sock 10.Parse request [10:43:17]Sock 10.Check first char [10:43:17]Sock 10.First char is OK [10:43:17]request: POST /json_proto HTTP/1.0 [10:43:17]Method: POST [10:43:17]URL: /json_proto [10:43:17]Method is POST - this is cgi request [10:43:17]url: /json_proto [10:43:17]query_string will be loaded in cgi processing [10:43:17]execute_cgi json_proto POST (null) [10:43:17]execute_cgi path=json_proto method=POST [10:43:17]POST find Content-Length [10:43:17]Host: 172.17.50.3:8080 [10:43:17]Content-Length: 770 [10:43:17]Content-Type: application/json [10:43:17] [10:43:17]POST finish read [10:43:17]Found Content-Length = 770 [10:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:17]execute_script... [10:43: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)2885938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:17]POST & json_proto [10:43:17]process_json_proto [10:43:17]json parsed OK: [10:43:17]protocol is kg_v1.0 [10:43:17]action value=close_receipt [10:43:17]process_action close_receipt [10:43:17]cmd_close_receipt [10:43:17]MH_GetDate [10:43:17]Write to MH i2c: F0 00 00 46 54 89 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: F0 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: F0 09 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: F0 09 00 46 54 00 CA 81 17 67 6B 98 1E 66 E2 [10:43:17]GetLastDocTimeStamp 1729593626 [10:43:17]current date 1729593802 [10:43:17]FM_GetShiftState [10:43:17]SAM_PROTO_GetShiftState [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 13 01 00 [10:43:17]Write to MH i2c: E2 08 00 47 54 80 13 01 00 00 00 00 00 18 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0E 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0E 00 47 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 06 [10:43:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:43:17]wFMCommunicate OK [10:43:17]SAM_PROTO_GetShiftState done [10:43:17]FM_GetShiftState done [10:43:17]opened in 1729555832 [10:43:17]opened+sec_in_day 1729642232 [10:43:17]quantity*price = 300064 [10:43:17]sum+1 = 300066 [10:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 119 22.10.2024 10:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70171 ФПД: 241354296991224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104322&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70171&fm=241354296991224&tin=02508201610067®Number=0000000000156251&sum=300065 [10:43:19]StoreToDocumentArchive [10:43:19]shift 195 fd 70171 [10:43:19]save to /storage/0195/doc_00070171 [10:43:19]save last doc name /storage/0195/doc_00070171 to /storage/kkm_last_doc_name [10:43:19]save OK [10:43:19]Clear old archive folders... [10:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:19]tlvbuf is 01133AD0 [10:43:19]SAM_PROTO_ClearQueue [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 09 00 00 [10:43:19]Write to MH i2c: E2 08 00 54 54 80 09 00 00 00 00 00 00 1A [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 54 54 00 90 00 1C [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]SAM_PROTO_ClearQueue done [10:43:19]KKMCreateOFDPacket [10:43:19]OFDProtocolAddRootSTLVToBuf [10:43:19]FM_MakeSignedData [10:43:19]FM_MakeSignedData [10:43:19]SAM_PROTO_SignData [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 01 02 [10:43:19]Write to MH i2c: E2 08 00 55 54 80 0D 01 02 00 00 00 00 22 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 55 54 00 90 00 1D [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=255 [10:43:19]MH_SAM_APDU [10:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 CA 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 12 01 00 35 04 06 00 DB [10:43:19]Write to MH i2c: E2 02 01 56 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 CA 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 12 01 00 35 04 06 00 DB 00 00 6C [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 56 54 00 90 00 1E [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=10 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 02 02 05 82 AD 23 1D F8 [10:43:19]Write to MH i2c: E2 0D 00 57 54 80 0D 02 02 05 00 82 AD 23 1D F8 00 00 96 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 57 54 00 90 00 1F [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 03 02 [10:43:19]Write to MH i2c: E2 08 00 58 54 80 0D 03 02 00 00 00 00 27 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0B 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0B 00 58 54 00 C5 8E E8 31 4B 35 1A 10 90 00 3E [10:43:19]RAPDU: C5 8E E8 31 4B 35 1A 10 90 00 [10:43:19]wFMCommunicate OK [10:43:19]SAM_PROTO_SignData done [10:43:19]FM_MakeSignedData done [10:43:19]CreateOFDProtocolMessage [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 11 00 00 [10:43:19]Write to MH i2c: E2 08 00 59 54 80 11 00 00 00 00 00 00 27 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 59 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [10:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:43:19]wFMCommunicate OK [10:43:19]CreateOFDProtocolMessage done [10:43:19]OFDSenderStorePacket 70171 [10:43:19]StoreOFDPacket docnum=70171 [10:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 33 07 01 20 69 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 CA 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 12 01 00 35 04 06 00 DB 82 AD 23 1D F8 C5 8E E8 31 4B 35 1A 10 [10:43:19]CheckFolder [10:43:19]dirname=/storage/ofd_packets [10:43:19]CheckFolder done [10:43:19]ProducePacketName [10:43:19]name=ofd_packets/00070171 [10:43:19]NVStorageSaveData ofd_packets/00070171 [10:43:19]File name is /storage/ofd_packets/00070171 [10:43:19]Write 301 bytes [10:43:19]NVStorageSaveData done [10:43:19]OFDSenderStorePacket done [10:43:19]KKMCreateOFDPacket done [10:43:19]NVStorageSaveData kkm_last_timestamp [10:43:19]File name is /storage/kkm_last_timestamp [10:43:19]Write 4 bytes [10:43:19]NVStorageSaveData done [10:43:19]ExternCall_PrintAddStr [10:43:19]wPrintStart [10:43:19]Write to MH i2c: 01 00 00 5A 54 AE [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 07 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 07 00 5A 54 00 00 00 00 00 FF 0F C3 [10:43:19]RasterBufferAndPrint [10:43:19]line Счет N : (1)2885938 [10:43:19]line ИНН: 02508201610067 [10:43:19]line Контрольно-Кассовый Чек [10:43:19]line ПРОДАЖА [10:43:19]line ТРК (МРК, ГНК) : 33 [10:43:19]line Товар: 2710124500 [10:43:19]line Аи-95-К-5 [10:43:19]line 40.440 * 74.20 [10:43:19]line = 3000.65 [10:43:19]line НДС 12% НСП 1% [10:43:19]line > о реализуемом товаре [10:43:19]line ИТОГО: 3000.65 [10:43:19]line НСП 1% : 26.55 [10:43:19]line НДС 12% : 318.65 [10:43:19]line Наличными: 0.00 [10:43:19]line Безнал.: 3000.65 [10:43:19]line Место: АЗС № 85 "Партнер Нефть" [10:43:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:43:19]line СНО: Общий режим [10:43:19]line Чек 119 22.10.2024 10:43 [10:43:19]line Смена: 195 ФФД: 1.0 [10:43:19]line ЗНМ: 0300000167 [10:43:19]line РНМ: 0000000000156251 [10:43:19]line Версия ККМ: v1.0 [10:43:19]line Платежная система: Mbank [10:43:19]line ФМ: 0000000000963346 [10:43:19]line ФД: 70171 [10:43:19]line ФПД: 241354296991224 [10:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104322&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70171&fm=241354296991224&tin=02508201610067®Number=0000000000156251&sum=300065 [10:43:19]OFD Sender: Processing packet 70171 [packets to send 18, broken 17] [10:43:19]ProducePacketName [10:43:19]name=ofd_packets/00070171 [10:43:19]OFD Sender: To server: pG, [10:43:19]CommunicateWithHost lk.salyk.kg:30040 [10:43:19]ConnectInit lk.salyk.kg [10:43:19]written 0, free lines is 4095 [10:43:20]Connected sock=9 [10:43: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 34 36 0F 01 00 00 32 33 07 01 20 69 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 CA 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 12 01 00 35 04 06 00 DB 82 AD 23 1D F8 C5 8E E8 31 4B 35 1A 10 [10:43: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 34 36 4F 00 00 00 44 89 47 00 DC 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 34 36 10 04 04 00 1B 12 01 00 F4 03 04 00 6B 2B 17 67 B6 04 01 00 00 52 73 E8 3D 2F 5A FB 1F [10:43:20]CommunicateWithHost err = 0 [10:43:20]CheckOFDResponse [10:43:20]1017 (14) - 77093643461234 [10:43:20]1041 (16) - 0000000000963346 [10:43:20]1040 (4) - 70171 [10:43:20]1012 (4) - 22.10.2024 04:34 [10:43:20]1206 (1) - 0 [10:43:20]OFD Sender: Remove packet 70171 [10:43:20]ProducePacketName [10:43:20]name=ofd_packets/00070171 [10:43:20]NVStorageDeleteData [10:43:20]Write to MH i2c: 01 00 00 83 54 D7 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 07 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 07 00 83 54 00 00 00 00 00 23 0D 0E [10:43:20]RasterBufferAndPrint [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]written 0, free lines is 3369 [10:43:20]MH_Cut [10:43:20]Write to MH i2c: D1 01 00 8A 54 01 B0 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 01 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 01 00 8A 54 00 AF [10:43:20]Write to MH i2c: 01 00 00 8B 54 DF [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]OFD Sender: No OFD packet to send [10:43:21]*** Cut start [10:43:21]*** Partial cut [10:43:21]*** CUTSNS_PIN = 1 [10:43:21]*** CUTSNS_PIN = 0 [10:43:21]*** Brake cut motor [10:43:21]Read from MH i2c: 01 [10:43:21]MH_I2C_Read... [10:43:21]*** Stop cut motor [10:43:21]*** Cut end [10:43:21]Read from MH i2c: 01 07 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 8B 54 00 00 00 00 00 FF 0F F4 [10:43:21]process_action close_receipt done [10:43:21]requested_data is exist [10:43:21]produce_requested_data [10:43:21]requested_item fm.sn is exist - process it [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 11 00 00 [10:43:21]Write to MH i2c: E2 08 00 8C 54 80 11 00 00 00 00 00 00 5A [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 17 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 17 00 8C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [10:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:43:21]wFMCommunicate OK [10:43:21]requested_item fd.num is exist - process it [10:43:21]SAM_PROTO_GetFieldsCounters [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 13 00 00 [10:43:21]Write to MH i2c: E2 08 00 8D 54 80 13 00 00 00 00 00 00 5D [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 62 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 62 00 8D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 12 01 00 0E 04 04 00 C3 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 CE [10:43: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 12 01 00 0E 04 04 00 C3 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 [10:43:21]wFMCommunicate OK [10:43:21]SAM_PROTO_GetFieldsCounters done [10:43:21]requested_item shift.num is exist - process it [10:43:21]requested_item shift.opened is exist - process it [10:43:21]req_shift_opened [10:43:21]FM_GetShiftState [10:43:21]SAM_PROTO_GetShiftState [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 13 01 00 [10:43:21]Write to MH i2c: E2 08 00 8E 54 80 13 01 00 00 00 00 00 5F [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 0E 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 0E 00 8E 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4D [10:43:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:43:21]wFMCommunicate OK [10:43:21]SAM_PROTO_GetShiftState done [10:43:21]FM_GetShiftState done [10:43:21]req_shift_opened done [10:43:21]requested_item shift.open_date is exist - process it [10:43:21]req_shift_open_date [10:43:21]req_shift_open_date done [10:43:21]produce_requested_data done [10:43:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70171,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:43:21]process_action_free close_receipt [10:43:21]json_value_free [10:43:21]json_value_free done [10:43:21]process_json_proto returns [10:43:21]Send response to host [10:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70171,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:43:21]free response buf [10:43:21]execute_script done [10:43:21]execute_script returns [10:43:21]free content buf [10:43:21]Sock 10.Close socket [10:43:21]Sock 10.Thread stoped [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:32]accept exits with 7 [10:43:32]New connection [10:43:32]New thread 3067026788 created [10:43:32]Thread 3067170148 joined [10:43:32]Waiting for new connection... [10:43:32] Sock 7.Parse request [10:43:32]Sock 7.Check first char [10:43:32]Sock 7.First char is OK [10:43:32]request: POST /json_proto HTTP/1.0 [10:43:32]Method: POST [10:43:32]URL: /json_proto [10:43:32]Method is POST - this is cgi request [10:43:32]url: /json_proto [10:43:32]query_string will be loaded in cgi processing [10:43:32]execute_cgi json_proto POST (null) [10:43:32]execute_cgi path=json_proto method=POST [10:43:32]POST find Content-Length [10:43:32]Host: 172.17.50.3:8080 [10:43:32]Content-Length: 978 [10:43:32]Content-Type: application/json [10:43:32] [10:43:32]POST finish read [10:43:32]Found Content-Length = 978 [10:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885939", "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" : 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 85\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" ] } } [10:43:32]execute_script... [10:43: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)2885939", "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" : 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 85\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" ] } } [10:43:32]POST & json_proto [10:43:32]process_json_proto [10:43:32]json parsed OK: [10:43:32]protocol is kg_v1.0 [10:43:32]action value=close_receipt [10:43:32]process_action close_receipt [10:43:32]cmd_close_receipt [10:43:32]MH_GetDate [10:43:32]Write to MH i2c: F0 00 00 8F 54 D2 [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 09 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 09 00 8F 54 00 D9 81 17 67 6B 98 1E 66 3A [10:43:32]GetLastDocTimeStamp 1729593802 [10:43:32]current date 1729593817 [10:43:32]FM_GetShiftState [10:43:32]SAM_PROTO_GetShiftState [10:43:32]wFMCommunicate request_size=4 [10:43:32]MH_SAM_APDU [10:43:32]CAPDU: 80 13 01 00 [10:43:32]Write to MH i2c: E2 08 00 90 54 80 13 01 00 00 00 00 00 61 [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:32]Read from MH i2c: E2 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 90 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4F [10:43:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:43:32]wFMCommunicate OK [10:43:32]SAM_PROTO_GetShiftState done [10:43:32]FM_GetShiftState done [10:43:32]opened in 1729555832 [10:43:32]opened+sec_in_day 1729642232 [10:43:32]quantity*price = 500004 [10:43:32]sum+1 = 500006 [10:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 120 22.10.2024 10:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70172 ФПД: 115086576401263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70172&fm=115086576401263&tin=02508201610067®Number=0000000000156251&sum=500000 [10:43:33]StoreToDocumentArchive [10:43:33]shift 195 fd 70172 [10:43:33]save to /storage/0195/doc_00070172 [10:43:33]save last doc name /storage/0195/doc_00070172 to /storage/kkm_last_doc_name [10:43:33]save OK [10:43:33]Clear old archive folders... [10:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:43:33]tlvbuf is 01142680 [10:43:33]SAM_PROTO_ClearQueue [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 09 00 00 [10:43:33]Write to MH i2c: E2 08 00 9D 54 80 09 00 00 00 00 00 00 63 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 9D 54 00 90 00 65 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_ClearQueue done [10:43:33]KKMCreateOFDPacket [10:43:33]OFDProtocolAddRootSTLVToBuf [10:43:33]FM_MakeSignedData [10:43:33]FM_MakeSignedData [10:43:33]SAM_PROTO_SignData [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 01 02 [10:43:33]Write to MH i2c: E2 08 00 9E 54 80 0D 01 02 00 00 00 00 6B [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 9E 54 00 90 00 66 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=255 [10:43:33]MH_SAM_APDU [10:43:33]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 78 00 00 00 F4 03 04 00 D9 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 12 01 00 35 04 06 00 68 AB AE 81 [10:43:33]Write to MH i2c: E2 02 01 9F 54 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 78 00 00 00 F4 03 04 00 D9 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 12 01 00 35 04 06 00 68 AB AE 81 00 00 71 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 03 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 03 00 9F 54 00 90 00 67 [10:43:34]RAPDU: 90 00 [10:43:34]wFMCommunicate OK [10:43:34]wFMCommunicate request_size=7 [10:43:34]MH_SAM_APDU [10:43:34]CAPDU: 80 0D 02 02 02 3B 6F [10:43:34]Write to MH i2c: E2 0A 00 A0 54 80 0D 02 02 02 00 3B 6F 00 00 1C [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 03 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 03 00 A0 54 00 90 00 68 [10:43:34]RAPDU: 90 00 [10:43:34]wFMCommunicate OK [10:43:34]wFMCommunicate request_size=4 [10:43:34]MH_SAM_APDU [10:43:34]CAPDU: 80 0D 03 02 [10:43:34]Write to MH i2c: E2 08 00 A1 54 80 0D 03 02 00 00 00 00 70 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0B 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0B 00 A1 54 00 98 46 8A 0C 8D 0F 0F D9 90 00 69 [10:43:34]RAPDU: 98 46 8A 0C 8D 0F 0F D9 90 00 [10:43:34]wFMCommunicate OK [10:43:34]SAM_PROTO_SignData done [10:43:34]FM_MakeSignedData done [10:43:34]CreateOFDProtocolMessage [10:43:34]wFMCommunicate request_size=4 [10:43:34]MH_SAM_APDU [10:43:34]CAPDU: 80 11 00 00 [10:43:34]Write to MH i2c: E2 08 00 A2 54 80 11 00 00 00 00 00 00 70 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 17 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 17 00 A2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [10:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:43:34]wFMCommunicate OK [10:43:34]CreateOFDProtocolMessage done [10:43:34]OFDSenderStorePacket 70172 [10:43:34]StoreOFDPacket docnum=70172 [10:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 00 E5 04 01 B8 7D 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 78 00 00 00 F4 03 04 00 D9 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 12 01 00 35 04 06 00 68 AB AE 81 3B 6F 98 46 8A 0C 8D 0F 0F D9 [10:43:34]CheckFolder [10:43:34]dirname=/storage/ofd_packets [10:43:34]CheckFolder done [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00070172 [10:43:34]NVStorageSaveData ofd_packets/00070172 [10:43:34]File name is /storage/ofd_packets/00070172 [10:43:34]Write 298 bytes [10:43:34]NVStorageSaveData done [10:43:34]OFDSenderStorePacket done [10:43:34]KKMCreateOFDPacket done [10:43:34]NVStorageSaveData kkm_last_timestamp [10:43:34]File name is /storage/kkm_last_timestamp [10:43:34]Write 4 bytes [10:43:34]NVStorageSaveData done [10:43:34]ExternCall_PrintAddStr [10:43:34]wPrintStart [10:43:34]Write to MH i2c: 01 00 00 A3 54 F7 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 A3 54 00 00 00 00 00 FF 0F 0C [10:43:34]RasterBufferAndPrint [10:43:34]line Счет N : (1)2885939 [10:43:34]line ИНН: 02508201610067 [10:43:34]line Контрольно-Кассовый Чек [10:43:34]line ПРОДАЖА [10:43:34]line ТРК (МРК, ГНК) : 51 [10:43:34]line Товар: 2710194210 [10:43:34]line ДТ-К-5 [10:43:34]line 66.490 * 75.20 [10:43:34]line = 5000.05 [10:43:34]line НДС 12% НСП 1% [10:43:34]line > о реализуемом товаре [10:43:34]line ОКРУГЛЕНИЕ: -0.05 [10:43:34]line ИТОГО: 5000.00 [10:43:34]line Внесено: 5000.00 [10:43:34]line СДАЧА: 0.00 [10:43:34]line НСП 1% : 44.25 [10:43:34]line НДС 12% : 530.98 [10:43:34]line Наличными: 5000.00 [10:43:34]line Безнал.: 0.00 [10:43:34]line Место: АЗС № 85 "Партнер Нефть" [10:43:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:43:34]line СНО: Общий режим [10:43:34]line Чек 120 22.10.2024 10:43 [10:43:34]line Смена: 195 ФФД: 1.0 [10:43:34]line ЗНМ: 0300000167 [10:43:34]line РНМ: 0000000000156251 [10:43:34]line Версия ККМ: v1.0 [10:43:34]line [10:43:34]line Дисконтная программа [10:43:34]line ДТ [10:43:34]line номер 85 [10:43:34]line сэкономлено 66.49 сом [10:43:34]line ФМ: 0000000000963346 [10:43:34]line ФД: 70172 [10:43:34]line ФПД: 115086576401263 [10:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70172&fm=115086576401263&tin=02508201610067®Number=0000000000156251&sum=500000 [10:43:34]OFD Sender: Processing packet 70172 [packets to send 18, broken 17] [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00070172 [10:43:34]OFD Sender: To server: pG, [10:43:34]CommunicateWithHost lk.salyk.kg:30040 [10:43:34]ConnectInit lk.salyk.kg [10:43:34]written 0, free lines is 4095 [10:43:34]Connected sock=10 [10:43: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 34 36 0C 01 00 00 00 E5 04 01 B8 7D 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 78 00 00 00 F4 03 04 00 D9 81 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 12 01 00 35 04 06 00 68 AB AE 81 3B 6F 98 46 8A 0C 8D 0F 0F D9 [10:43: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 34 36 4F 00 00 00 FD AA 47 00 2C 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 12 01 00 F4 03 04 00 7A 2B 17 67 B6 04 01 00 00 ED E1 89 23 34 5F EE D7 [10:43:34]CommunicateWithHost err = 0 [10:43:34]CheckOFDResponse [10:43:34]1017 (14) - 77093643461234 [10:43:34]1041 (16) - 0000000000963346 [10:43:34]1040 (4) - 70172 [10:43:34]1012 (4) - 22.10.2024 04:35 [10:43:34]1206 (1) - 0 [10:43:34]OFD Sender: Remove packet 70172 [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00070172 [10:43:34]NVStorageDeleteData [10:43:35]Write to MH i2c: 01 00 00 D3 54 27 [10:43:35]Write i2c OK [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: 01 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: 01 07 00 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: 01 07 00 D3 54 00 00 00 00 00 96 0C D0 [10:43:35]RasterBufferAndPrint [10:43:35]line [10:43:35]line [10:43:35]line [10:43:35]line [10:43:35]line [10:43:35]written 0, free lines is 3228 [10:43:35]MH_Cut [10:43:35]Write to MH i2c: D1 01 00 DA 54 01 00 [10:43:35]Write i2c OK [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: D1 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: D1 01 00 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: D1 01 00 DA 54 00 FF [10:43:35]Write to MH i2c: 01 00 00 DB 54 2F [10:43:35]Write i2c OK [10:43:35]MH_I2C_Read... [10:43:35]OFD Sender: No OFD packet to send [10:43:35]*** Cut start [10:43:35]*** Partial cut [10:43:35]*** CUTSNS_PIN = 1 [10:43:35]*** CUTSNS_PIN = 0 [10:43:36]*** Brake cut motor [10:43:36]Read from MH i2c: 01 [10:43:36]MH_I2C_Read... [10:43:36]*** Stop cut motor [10:43:36]*** Cut end [10:43:36]Read from MH i2c: 01 07 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: 01 07 00 DB 54 00 00 00 00 00 FF 0F 44 [10:43:36]process_action close_receipt done [10:43:36]requested_data is exist [10:43:36]produce_requested_data [10:43:36]requested_item fm.sn is exist - process it [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 11 00 00 [10:43:36]Write to MH i2c: E2 08 00 DC 54 80 11 00 00 00 00 00 00 AA [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 17 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 17 00 DC 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [10:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:43:36]wFMCommunicate OK [10:43:36]requested_item fd.num is exist - process it [10:43:36]SAM_PROTO_GetFieldsCounters [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 13 00 00 [10:43:36]Write to MH i2c: E2 08 00 DD 54 80 13 00 00 00 00 00 00 AD [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 62 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 62 00 DD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 12 01 00 0E 04 04 00 C3 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 22 [10:43: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 12 01 00 0E 04 04 00 C3 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 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_GetFieldsCounters done [10:43:36]requested_item shift.num is exist - process it [10:43:36]requested_item shift.opened is exist - process it [10:43:36]req_shift_opened [10:43:36]FM_GetShiftState [10:43:36]SAM_PROTO_GetShiftState [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 13 01 00 [10:43:36]Write to MH i2c: E2 08 00 DE 54 80 13 01 00 00 00 00 00 AF [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 DE 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9D [10:43:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_GetShiftState done [10:43:36]FM_GetShiftState done [10:43:36]req_shift_opened done [10:43:36]requested_item shift.open_date is exist - process it [10:43:36]req_shift_open_date [10:43:36]req_shift_open_date done [10:43:36]produce_requested_data done [10:43:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70172,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:43:36]process_action_free close_receipt [10:43:36]json_value_free [10:43:36]json_value_free done [10:43:36]process_json_proto returns [10:43:36]Send response to host [10:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70172,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:43:36]free response buf [10:43:36]execute_script done [10:43:36]execute_script returns [10:43:36]free content buf [10:43:36]Sock 7.Close socket [10:43:36]Sock 7.Thread stoped [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:53]accept exits with 9 [10:45:53]New connection [10:45:53]New thread 3067170148 created [10:45:53]Thread 3067026788 joined [10:45:53]Waiting for new connection... [10:45:53] Sock 9.Parse request [10:45:53]Sock 9.Check first char [10:45:53]Sock 9.First char is OK [10:45:53]request: POST /json_proto HTTP/1.0 [10:45:53]Method: POST [10:45:53]URL: /json_proto [10:45:53]Method is POST - this is cgi request [10:45:53]url: /json_proto [10:45:53]query_string will be loaded in cgi processing [10:45:53]execute_cgi json_proto POST (null) [10:45:53]execute_cgi path=json_proto method=POST [10:45:53]POST find Content-Length [10:45:53]Host: 172.17.50.3:8080 [10:45:53]Content-Length: 683 [10:45:53]Content-Type: application/json [10:45:53] [10:45:53]POST finish read [10:45:53]Found Content-Length = 683 [10:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:45:53]execute_script... [10:45: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)2885941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:45:53]POST & json_proto [10:45:53]process_json_proto [10:45:53]json parsed OK: [10:45:53]protocol is kg_v1.0 [10:45:53]action value=close_receipt [10:45:53]process_action close_receipt [10:45:53]cmd_close_receipt [10:45:53]MH_GetDate [10:45:53]Write to MH i2c: F0 00 00 DF 54 22 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 09 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 09 00 DF 54 00 66 82 17 67 6B 98 1E 66 18 [10:45:53]GetLastDocTimeStamp 1729593817 [10:45:53]current date 1729593958 [10:45:53]FM_GetShiftState [10:45:53]SAM_PROTO_GetShiftState [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 13 01 00 [10:45:53]Write to MH i2c: E2 08 00 E0 54 80 13 01 00 00 00 00 00 B1 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0E 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0E 00 E0 54 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9F [10:45:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:45:53]wFMCommunicate OK [10:45:53]SAM_PROTO_GetShiftState done [10:45:53]FM_GetShiftState done [10:45:53]opened in 1729555832 [10:45:53]opened+sec_in_day 1729642232 [10:45:53]quantity*price = 100021 [10:45:53]sum+1 = 100023 [10:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 121 22.10.2024 10:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70173 ФПД: 229693540125871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70173&fm=229693540125871&tin=02508201610067®Number=0000000000156251&sum=100000 [10:45:54]StoreToDocumentArchive [10:45:54]shift 195 fd 70173 [10:45:54]save to /storage/0195/doc_00070173 [10:45:54]save last doc name /storage/0195/doc_00070173 to /storage/kkm_last_doc_name [10:45:54]save OK [10:45:54]Clear old archive folders... [10:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:54]tlvbuf is 01123870 [10:45:54]SAM_PROTO_ClearQueue [10:45:54]wFMCommunicate request_size=4 [10:45:54]MH_SAM_APDU [10:45:54]CAPDU: 80 09 00 00 [10:45:54]Write to MH i2c: E2 08 00 ED 54 80 09 00 00 00 00 00 00 B3 [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:54]Read from MH i2c: E2 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 03 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 03 00 ED 54 00 90 00 B5 [10:45:54]RAPDU: 90 00 [10:45:54]wFMCommunicate OK [10:45:54]SAM_PROTO_ClearQueue done [10:45:54]KKMCreateOFDPacket [10:45:54]OFDProtocolAddRootSTLVToBuf [10:45:54]FM_MakeSignedData [10:45:54]FM_MakeSignedData [10:45:54]SAM_PROTO_SignData [10:45:54]wFMCommunicate request_size=4 [10:45:54]MH_SAM_APDU [10:45:54]CAPDU: 80 0D 01 02 [10:45:54]Write to MH i2c: E2 08 00 EE 54 80 0D 01 02 00 00 00 00 BB [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:54]Read from MH i2c: E2 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 03 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 03 00 EE 54 00 90 00 B6 [10:45:54]RAPDU: 90 00 [10:45:54]wFMCommunicate OK [10:45:54]wFMCommunicate request_size=255 [10:45:54]MH_SAM_APDU [10:45: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 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 79 00 00 00 F4 03 04 00 66 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 12 01 00 35 04 06 00 D0 [10:45:54]Write to MH i2c: E2 02 01 EF 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 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 79 00 00 00 F4 03 04 00 66 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 12 01 00 35 04 06 00 D0 00 00 03 [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 EF 54 00 90 00 B7 [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]wFMCommunicate request_size=10 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 0D 02 02 05 E7 B1 DD CC AF [10:45:55]Write to MH i2c: E2 0D 00 F0 54 80 0D 02 02 05 00 E7 B1 DD CC AF 00 00 B8 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 F0 54 00 90 00 B8 [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 0D 03 02 [10:45:55]Write to MH i2c: E2 08 00 F1 54 80 0D 03 02 00 00 00 00 C0 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0B 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0B 00 F1 54 00 6D 34 39 38 EB 53 62 C7 90 00 3A [10:45:55]RAPDU: 6D 34 39 38 EB 53 62 C7 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_SignData done [10:45:55]FM_MakeSignedData done [10:45:55]CreateOFDProtocolMessage [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 11 00 00 [10:45:55]Write to MH i2c: E2 08 00 F2 54 80 11 00 00 00 00 00 00 C0 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 17 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 17 00 F2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [10:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:45:55]wFMCommunicate OK [10:45:55]CreateOFDProtocolMessage done [10:45:55]OFDSenderStorePacket 70173 [10:45:55]StoreOFDPacket docnum=70173 [10:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 08 07 01 14 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 66 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 12 01 00 35 04 06 00 D0 E7 B1 DD CC AF 6D 34 39 38 EB 53 62 C7 [10:45:55]CheckFolder [10:45:55]dirname=/storage/ofd_packets [10:45:55]CheckFolder done [10:45:55]ProducePacketName [10:45:55]name=ofd_packets/00070173 [10:45:55]NVStorageSaveData ofd_packets/00070173 [10:45:55]File name is /storage/ofd_packets/00070173 [10:45:55]Write 301 bytes [10:45:55]NVStorageSaveData done [10:45:55]OFDSenderStorePacket done [10:45:55]KKMCreateOFDPacket done [10:45:55]NVStorageSaveData kkm_last_timestamp [10:45:55]File name is /storage/kkm_last_timestamp [10:45:55]Write 4 bytes [10:45:55]NVStorageSaveData done [10:45:55]ExternCall_PrintAddStr [10:45:55]wPrintStart [10:45:55]Write to MH i2c: 01 00 00 F3 54 47 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 F3 54 00 00 00 00 00 FF 0F 5C [10:45:55]RasterBufferAndPrint [10:45:55]line Счет N : (1)2885941 [10:45:55]line ИНН: 02508201610067 [10:45:55]line Контрольно-Кассовый Чек [10:45:55]line ПРОДАЖА [10:45:55]line ТРК (МРК, ГНК) : 23 [10:45:55]line Товар: 2710124500 [10:45:55]line Аи-95-К-5 [10:45:55]line 13.480 * 74.20 [10:45:55]line = 1000.22 [10:45:55]line НДС 12% НСП 1% [10:45:55]line > о реализуемом товаре [10:45:55]line ОКРУГЛЕНИЕ: -0.22 [10:45:55]line ИТОГО: 1000.00 [10:45:55]line Внесено: 1000.00 [10:45:55]line СДАЧА: 0.00 [10:45:55]line НСП 1% : 8.85 [10:45:55]line НДС 12% : 106.22 [10:45:55]line Наличными: 1000.00 [10:45:55]line Безнал.: 0.00 [10:45:55]line Место: АЗС № 85 "Партнер Нефть" [10:45:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:45:55]line СНО: Общий режим [10:45:55]line Чек 121 22.10.2024 10:45 [10:45:55]line Смена: 195 ФФД: 1.0 [10:45:55]line ЗНМ: 0300000167 [10:45:55]line РНМ: 0000000000156251 [10:45:55]line Версия ККМ: v1.0 [10:45:55]line ФМ: 0000000000963346 [10:45:55]line ФД: 70173 [10:45:55]line ФПД: 229693540125871 [10:45:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70173&fm=229693540125871&tin=02508201610067®Number=0000000000156251&sum=100000 [10:45:55]OFD Sender: Processing packet 70173 [packets to send 18, broken 17] [10:45:55]ProducePacketName [10:45:55]name=ofd_packets/00070173 [10:45:55]OFD Sender: To server: pG, [10:45:55]CommunicateWithHost lk.salyk.kg:30040 [10:45:55]ConnectInit lk.salyk.kg [10:45:55]written 0, free lines is 4095 [10:45:55]Connected sock=10 [10:45: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 34 36 0F 01 00 00 60 08 07 01 14 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 66 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 12 01 00 35 04 06 00 D0 E7 B1 DD CC AF 6D 34 39 38 EB 53 62 C7 [10:45: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 34 36 4F 00 00 00 AD 6C 47 00 97 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 34 36 10 04 04 00 1D 12 01 00 F4 03 04 00 07 2C 17 67 B6 04 01 00 00 56 EC FE C8 4D 3E F2 24 [10:45:56]CommunicateWithHost err = 0 [10:45:56]CheckOFDResponse [10:45:56]1017 (14) - 77093643461234 [10:45:56]1041 (16) - 0000000000963346 [10:45:56]1040 (4) - 70173 [10:45:56]1012 (4) - 22.10.2024 04:37 [10:45:56]1206 (1) - 0 [10:45:56]OFD Sender: Remove packet 70173 [10:45:56]ProducePacketName [10:45:56]name=ofd_packets/00070173 [10:45:56]NVStorageDeleteData [10:45:56]Write to MH i2c: 01 00 00 1E 55 73 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 1E 55 00 00 00 00 00 F2 0C 78 [10:45:56]RasterBufferAndPrint [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]written 0, free lines is 3323 [10:45:56]MH_Cut [10:45:56]Write to MH i2c: D1 01 00 25 55 01 4C [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 01 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 01 00 25 55 00 4B [10:45:56]Write to MH i2c: 01 00 00 26 55 7B [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]OFD Sender: No OFD packet to send [10:45:56]*** Cut start [10:45:56]*** Partial cut [10:45:56]*** CUTSNS_PIN = 1 [10:45:56]*** CUTSNS_PIN = 0 [10:45:57]*** Brake cut motor [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]*** Stop cut motor [10:45:57]*** Cut end [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 26 55 00 00 00 00 00 FF 0F 90 [10:45:57]process_action close_receipt done [10:45:57]requested_data is exist [10:45:57]produce_requested_data [10:45:57]requested_item fm.sn is exist - process it [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 11 00 00 [10:45:57]Write to MH i2c: E2 08 00 27 55 80 11 00 00 00 00 00 00 F6 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 27 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [10:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:45:57]wFMCommunicate OK [10:45:57]requested_item fd.num is exist - process it [10:45:57]SAM_PROTO_GetFieldsCounters [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 13 00 00 [10:45:57]Write to MH i2c: E2 08 00 28 55 80 13 00 00 00 00 00 00 F9 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 62 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 62 00 28 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 12 01 00 0E 04 04 00 C3 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 72 [10:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 12 01 00 0E 04 04 00 C3 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 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_GetFieldsCounters done [10:45:57]requested_item shift.num is exist - process it [10:45:57]requested_item shift.opened is exist - process it [10:45:57]req_shift_opened [10:45:57]FM_GetShiftState [10:45:57]SAM_PROTO_GetShiftState [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 13 01 00 [10:45:57]Write to MH i2c: E2 08 00 29 55 80 13 01 00 00 00 00 00 FB [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0E 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0E 00 29 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E9 [10:45:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_GetShiftState done [10:45:57]FM_GetShiftState done [10:45:57]req_shift_opened done [10:45:57]requested_item shift.open_date is exist - process it [10:45:57]req_shift_open_date [10:45:57]req_shift_open_date done [10:45:57]produce_requested_data done [10:45:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70173,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:45:57]process_action_free close_receipt [10:45:57]json_value_free [10:45:57]json_value_free done [10:45:57]process_json_proto returns [10:45:57]Send response to host [10:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70173,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:45:57]free response buf [10:45:57]execute_script done [10:45:57]execute_script returns [10:45:57]free content buf [10:45:57]Sock 9.Close socket [10:45:57]Sock 9.Thread stoped [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:32]accept exits with 7 [10:47:32]New connection [10:47:32]New thread 3067026788 created [10:47:32]Thread 3067170148 joined [10:47:32]Waiting for new connection... [10:47:32] Sock 7.Parse request [10:47:32]Sock 7.Check first char [10:47:32]Sock 7.First char is OK [10:47:32]request: POST /json_proto HTTP/1.0 [10:47:32]Method: POST [10:47:32]URL: /json_proto [10:47:32]Method is POST - this is cgi request [10:47:32]url: /json_proto [10:47:32]query_string will be loaded in cgi processing [10:47:32]execute_cgi json_proto POST (null) [10:47:32]execute_cgi path=json_proto method=POST [10:47:32]POST find Content-Length [10:47:32]Host: 172.17.50.3:8080 [10:47:32]Content-Length: 767 [10:47:32]Content-Type: application/json [10:47:32] [10:47:32]POST finish read [10:47:32]Found Content-Length = 767 [10:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:32]execute_script... [10:47: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)2885942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:32]POST & json_proto [10:47:32]process_json_proto [10:47:32]json parsed OK: [10:47:32]protocol is kg_v1.0 [10:47:32]action value=close_receipt [10:47:32]process_action close_receipt [10:47:32]cmd_close_receipt [10:47:32]MH_GetDate [10:47:32]Write to MH i2c: F0 00 00 2A 55 6E [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: F0 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: F0 09 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: F0 09 00 2A 55 00 C9 82 17 67 6B 98 1E 66 C7 [10:47:32]GetLastDocTimeStamp 1729593958 [10:47:32]current date 1729594057 [10:47:32]FM_GetShiftState [10:47:32]SAM_PROTO_GetShiftState [10:47:32]wFMCommunicate request_size=4 [10:47:32]MH_SAM_APDU [10:47:32]CAPDU: 80 13 01 00 [10:47:32]Write to MH i2c: E2 08 00 2B 55 80 13 01 00 00 00 00 00 FD [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:32]Read from MH i2c: E2 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 0E 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 0E 00 2B 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EB [10:47:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:32]wFMCommunicate OK [10:47:32]SAM_PROTO_GetShiftState done [10:47:32]FM_GetShiftState done [10:47:32]opened in 1729555832 [10:47:32]opened+sec_in_day 1729642232 [10:47:32]quantity*price = 200025 [10:47:32]sum+1 = 200026 [10:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 122 22.10.2024 10:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70174 ФПД: 248355064017526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70174&fm=248355064017526&tin=02508201610067®Number=0000000000156251&sum=200025 [10:47:33]StoreToDocumentArchive [10:47:33]shift 195 fd 70174 [10:47:33]save to /storage/0195/doc_00070174 [10:47:33]save last doc name /storage/0195/doc_00070174 to /storage/kkm_last_doc_name [10:47:33]save OK [10:47:33]Clear old archive folders... [10:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:47:33]tlvbuf is 01142500 [10:47:33]SAM_PROTO_ClearQueue [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 09 00 00 [10:47:33]Write to MH i2c: E2 08 00 38 55 80 09 00 00 00 00 00 00 FF [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 38 55 00 90 00 01 [10:47:33]RAPDU: 90 00 [10:47:33]wFMCommunicate OK [10:47:33]SAM_PROTO_ClearQueue done [10:47:33]KKMCreateOFDPacket [10:47:33]OFDProtocolAddRootSTLVToBuf [10:47:33]FM_MakeSignedData [10:47:33]FM_MakeSignedData [10:47:33]SAM_PROTO_SignData [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 0D 01 02 [10:47:33]Write to MH i2c: E2 08 00 39 55 80 0D 01 02 00 00 00 00 07 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 39 55 00 90 00 02 [10:47:33]RAPDU: 90 00 [10:47:33]wFMCommunicate OK [10:47:33]wFMCommunicate request_size=255 [10:47:33]MH_SAM_APDU [10:47:33]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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C9 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 12 01 00 35 04 06 00 E1 E0 AB 5E [10:47:33]Write to MH i2c: E2 02 01 3A 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C9 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 12 01 00 35 04 06 00 E1 E0 AB 5E 00 00 A7 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 3A 55 00 90 00 03 [10:47:33]RAPDU: 90 00 [10:47:33]wFMCommunicate OK [10:47:33]wFMCommunicate request_size=7 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 0D 02 02 02 72 76 [10:47:33]Write to MH i2c: E2 0A 00 3B 55 80 0D 02 02 02 00 72 76 00 00 F6 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 03 00 3B 55 00 90 00 04 [10:47:33]RAPDU: 90 00 [10:47:33]wFMCommunicate OK [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 0D 03 02 [10:47:33]Write to MH i2c: E2 08 00 3C 55 80 0D 03 02 00 00 00 00 0C [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 0B 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 0B 00 3C 55 00 E2 7F 1B AF 26 8D B9 E6 90 00 8A [10:47:33]RAPDU: E2 7F 1B AF 26 8D B9 E6 90 00 [10:47:33]wFMCommunicate OK [10:47:33]SAM_PROTO_SignData done [10:47:33]FM_MakeSignedData done [10:47:33]CreateOFDProtocolMessage [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 11 00 00 [10:47:33]Write to MH i2c: E2 08 00 3D 55 80 11 00 00 00 00 00 00 0C [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 17 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 17 00 3D 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [10:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:33]wFMCommunicate OK [10:47:33]CreateOFDProtocolMessage done [10:47:33]OFDSenderStorePacket 70174 [10:47:33]StoreOFDPacket docnum=70174 [10:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 08 96 04 01 ED B7 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C9 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 12 01 00 35 04 06 00 E1 E0 AB 5E 72 76 E2 7F 1B AF 26 8D B9 E6 [10:47:33]CheckFolder [10:47:33]dirname=/storage/ofd_packets [10:47:33]CheckFolder done [10:47:33]ProducePacketName [10:47:33]name=ofd_packets/00070174 [10:47:33]NVStorageSaveData ofd_packets/00070174 [10:47:33]File name is /storage/ofd_packets/00070174 [10:47:33]Write 298 bytes [10:47:33]NVStorageSaveData done [10:47:33]OFDSenderStorePacket done [10:47:33]KKMCreateOFDPacket done [10:47:33]NVStorageSaveData kkm_last_timestamp [10:47:33]File name is /storage/kkm_last_timestamp [10:47:33]OFD Sender: Processing packet 70174 [packets to send 18, broken 17] [10:47:33]ProducePacketName [10:47:33]name=ofd_packets/00070174 [10:47:33]OFD Sender: To server: pG, [10:47:33]CommunicateWithHost lk.salyk.kg:30040 [10:47:33]ConnectInit lk.salyk.kg [10:47:33]Write 4 bytes [10:47:33]NVStorageSaveData done [10:47:33]ExternCall_PrintAddStr [10:47:33]wPrintStart [10:47:33]Write to MH i2c: 01 00 00 3E 55 93 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: 01 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: 01 07 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: 01 07 00 3E 55 00 00 00 00 00 FF 0F A8 [10:47:33]RasterBufferAndPrint [10:47:33]line Счет N : (1)2885942 [10:47:33]line ИНН: 02508201610067 [10:47:33]line Контрольно-Кассовый Чек [10:47:33]line ПРОДАЖА [10:47:33]line ТРК (МРК, ГНК) : 61 [10:47:33]line Товар: 2710194210 [10:47:33]line ДТ-К-5 [10:47:33]line 26.250 * 76.20 [10:47:33]line = 2000.25 [10:47:33]line НДС 12% НСП 1% [10:47:33]line > о реализуемом товаре [10:47:33]line ИТОГО: 2000.25 [10:47:33]line НСП 1% : 17.70 [10:47:33]line НДС 12% : 212.42 [10:47:33]line Наличными: 0.00 [10:47:33]line Безнал.: 2000.25 [10:47:33]line Место: АЗС № 85 "Партнер Нефть" [10:47:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:47:33]line СНО: Общий режим [10:47:33]line Чек 122 22.10.2024 10:47 [10:47:33]line Смена: 195 ФФД: 1.0 [10:47:33]line ЗНМ: 0300000167 [10:47:33]line РНМ: 0000000000156251 [10:47:33]line Версия ККМ: v1.0 [10:47:33]line Платежная система: Mbank [10:47:34]line ФМ: 0000000000963346 [10:47:34]line ФД: 70174 [10:47:34]line ФПД: 248355064017526 [10:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70174&fm=248355064017526&tin=02508201610067®Number=0000000000156251&sum=200025 [10:47:34]Connected sock=11 [10:47: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 34 36 0C 01 00 00 08 96 04 01 ED B7 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C9 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 12 01 00 35 04 06 00 E1 E0 AB 5E 72 76 E2 7F 1B AF 26 8D B9 E6 [10:47:34]written 0, free lines is 4095 [10:47: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 34 36 4F 00 00 00 71 7F 47 00 3F 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 34 36 10 04 04 00 1E 12 01 00 F4 03 04 00 6A 2C 17 67 B6 04 01 00 00 22 54 25 DD 64 D9 09 2C [10:47:34]CommunicateWithHost err = 0 [10:47:34]CheckOFDResponse [10:47:34]1017 (14) - 77093643461234 [10:47:34]1041 (16) - 0000000000963346 [10:47:34]1040 (4) - 70174 [10:47:34]1012 (4) - 22.10.2024 04:39 [10:47:34]1206 (1) - 0 [10:47:34]OFD Sender: Remove packet 70174 [10:47:34]ProducePacketName [10:47:34]name=ofd_packets/00070174 [10:47:34]NVStorageDeleteData [10:47:34]Write to MH i2c: 01 00 00 67 55 BC [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: 01 [10:47:34]MH_I2C_Read... [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 67 55 00 00 00 00 00 16 0D E6 [10:47:34]RasterBufferAndPrint [10:47:34]line [10:47:34]line [10:47:34]line [10:47:34]line [10:47:34]line [10:47:34]written 0, free lines is 3360 [10:47:34]MH_Cut [10:47:34]Write to MH i2c: D1 01 00 6E 55 01 95 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: D1 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: D1 01 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: D1 01 00 6E 55 00 94 [10:47:34]Write to MH i2c: 01 00 00 6F 55 C4 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]OFD Sender: No OFD packet to send [10:47:35]*** Cut start [10:47:35]*** Partial cut [10:47:35]*** CUTSNS_PIN = 1 [10:47:35]*** CUTSNS_PIN = 0 [10:47:35]*** Brake cut motor [10:47:35]Read from MH i2c: 01 [10:47:35]MH_I2C_Read... [10:47:35]*** Stop cut motor [10:47:35]*** Cut end [10:47:35]Read from MH i2c: 01 07 00 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: 01 07 00 6F 55 00 00 00 00 00 FF 0F D9 [10:47:35]process_action close_receipt done [10:47:35]requested_data is exist [10:47:35]produce_requested_data [10:47:35]requested_item fm.sn is exist - process it [10:47:35]wFMCommunicate request_size=4 [10:47:35]MH_SAM_APDU [10:47:35]CAPDU: 80 11 00 00 [10:47:35]Write to MH i2c: E2 08 00 70 55 80 11 00 00 00 00 00 00 3F [10:47:35]Write i2c OK [10:47:35]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:36]Read from MH i2c: E2 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 17 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 17 00 70 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [10:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:36]wFMCommunicate OK [10:47:36]requested_item fd.num is exist - process it [10:47:36]SAM_PROTO_GetFieldsCounters [10:47:36]wFMCommunicate request_size=4 [10:47:36]MH_SAM_APDU [10:47:36]CAPDU: 80 13 00 00 [10:47:36]Write to MH i2c: E2 08 00 71 55 80 13 00 00 00 00 00 00 42 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:36]Read from MH i2c: E2 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 62 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 62 00 71 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 12 01 00 0E 04 04 00 C3 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 BF [10:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 12 01 00 0E 04 04 00 C3 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 [10:47:36]wFMCommunicate OK [10:47:36]SAM_PROTO_GetFieldsCounters done [10:47:36]requested_item shift.num is exist - process it [10:47:36]requested_item shift.opened is exist - process it [10:47:36]req_shift_opened [10:47:36]FM_GetShiftState [10:47:36]SAM_PROTO_GetShiftState [10:47:36]wFMCommunicate request_size=4 [10:47:36]MH_SAM_APDU [10:47:36]CAPDU: 80 13 01 00 [10:47:36]Write to MH i2c: E2 08 00 72 55 80 13 01 00 00 00 00 00 44 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:36]Read from MH i2c: E2 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 72 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 32 [10:47:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:36]wFMCommunicate OK [10:47:36]SAM_PROTO_GetShiftState done [10:47:36]FM_GetShiftState done [10:47:36]req_shift_opened done [10:47:36]requested_item shift.open_date is exist - process it [10:47:36]req_shift_open_date [10:47:36]req_shift_open_date done [10:47:36]produce_requested_data done [10:47:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70174,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:47:36]process_action_free close_receipt [10:47:36]json_value_free [10:47:36]json_value_free done [10:47:36]process_json_proto returns [10:47:36]Send response to host [10:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70174,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:47:36]free response buf [10:47:36]execute_script done [10:47:36]execute_script returns [10:47:36]free content buf [10:47:36]Sock 7.Close socket [10:47:36]Sock 7.Thread stoped [10:47:39]OFD Sender: No OFD packet to send [10:47:41]accept exits with 9 [10:47:41]New connection [10:47:41]New thread 3067170148 created [10:47:41]Thread 3067026788 joined [10:47:41]Waiting for new connection... [10:47:41] Sock 9.Parse request [10:47:41]Sock 9.Check first char [10:47:41]Sock 9.First char is OK [10:47:41]request: POST /json_proto HTTP/1.0 [10:47:41]Method: POST [10:47:41]URL: /json_proto [10:47:41]Method is POST - this is cgi request [10:47:41]url: /json_proto [10:47:41]query_string will be loaded in cgi processing [10:47:41]execute_cgi json_proto POST (null) [10:47:41]execute_cgi path=json_proto method=POST [10:47:41]POST find Content-Length [10:47:41]Host: 172.17.50.3:8080 [10:47:41]Content-Length: 686 [10:47:41]Content-Type: application/json [10:47:41] [10:47:41]POST finish read [10:47:41]Found Content-Length = 686 [10:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:47:41]execute_script... [10:47: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)2885940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [10:47:41]POST & json_proto [10:47:41]process_json_proto [10:47:41]json parsed OK: [10:47:41]protocol is kg_v1.0 [10:47:41]action value=close_receipt [10:47:41]process_action close_receipt [10:47:41]cmd_close_receipt [10:47:41]MH_GetDate [10:47:41]Write to MH i2c: F0 00 00 73 55 B7 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: F0 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: F0 09 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: F0 09 00 73 55 00 D2 82 17 67 6B 98 1E 66 19 [10:47:41]GetLastDocTimeStamp 1729594057 [10:47:41]current date 1729594066 [10:47:41]FM_GetShiftState [10:47:41]SAM_PROTO_GetShiftState [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 13 01 00 [10:47:41]Write to MH i2c: E2 08 00 74 55 80 13 01 00 00 00 00 00 46 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 0E 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 0E 00 74 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [10:47:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:41]wFMCommunicate OK [10:47:41]SAM_PROTO_GetShiftState done [10:47:41]FM_GetShiftState done [10:47:41]opened in 1729555832 [10:47:41]opened+sec_in_day 1729642232 [10:47:41]quantity*price = 200023 [10:47:41]sum+1 = 200025 [10:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 123 22.10.2024 10:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70175 ФПД: 12824410786389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70175&fm=12824410786389&tin=02508201610067®Number=0000000000156251&sum=200000 [10:47:43]StoreToDocumentArchive [10:47:43]shift 195 fd 70175 [10:47:43]save to /storage/0195/doc_00070175 [10:47:43]save last doc name /storage/0195/doc_00070175 to /storage/kkm_last_doc_name [10:47:43]save OK [10:47:43]Clear old archive folders... [10:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:47:43]tlvbuf is 0118A160 [10:47:43]SAM_PROTO_ClearQueue [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 09 00 00 [10:47:43]Write to MH i2c: E2 08 00 81 55 80 09 00 00 00 00 00 00 48 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 81 55 00 90 00 4A [10:47:43]RAPDU: 90 00 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_ClearQueue done [10:47:43]KKMCreateOFDPacket [10:47:43]OFDProtocolAddRootSTLVToBuf [10:47:43]FM_MakeSignedData [10:47:43]FM_MakeSignedData [10:47:43]SAM_PROTO_SignData [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 0D 01 02 [10:47:43]Write to MH i2c: E2 08 00 82 55 80 0D 01 02 00 00 00 00 50 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 82 55 00 90 00 4B [10:47:43]RAPDU: 90 00 [10:47:43]wFMCommunicate OK [10:47:43]wFMCommunicate request_size=255 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 7B 00 00 00 F4 03 04 00 D2 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 12 01 00 35 04 06 00 0B A9 [10:47:43]Write to MH i2c: E2 02 01 83 55 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 7B 00 00 00 F4 03 04 00 D2 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 12 01 00 35 04 06 00 0B A9 00 00 20 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 83 55 00 90 00 4C [10:47:43]RAPDU: 90 00 [10:47:43]wFMCommunicate OK [10:47:43]wFMCommunicate request_size=9 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 0D 02 02 04 EA 73 0A 55 [10:47:43]Write to MH i2c: E2 0C 00 84 55 80 0D 02 02 04 00 EA 73 0A 55 00 00 17 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 03 00 84 55 00 90 00 4D [10:47:43]RAPDU: 90 00 [10:47:43]wFMCommunicate OK [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 0D 03 02 [10:47:43]Write to MH i2c: E2 08 00 85 55 80 0D 03 02 00 00 00 00 55 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0B 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0B 00 85 55 00 D8 89 A8 B2 DF BD FF BD 90 00 69 [10:47:43]RAPDU: D8 89 A8 B2 DF BD FF BD 90 00 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_SignData done [10:47:43]FM_MakeSignedData done [10:47:43]CreateOFDProtocolMessage [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 11 00 00 [10:47:43]Write to MH i2c: E2 08 00 86 55 80 11 00 00 00 00 00 00 55 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 17 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 17 00 86 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [10:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:43]wFMCommunicate OK [10:47:43]CreateOFDProtocolMessage done [10:47:43]OFDSenderStorePacket 70175 [10:47:43]StoreOFDPacket docnum=70175 [10:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 20 EA 06 01 03 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 7B 00 00 00 F4 03 04 00 D2 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 12 01 00 35 04 06 00 0B A9 EA 73 0A 55 D8 89 A8 B2 DF BD FF BD [10:47:43]CheckFolder [10:47:43]dirname=/storage/ofd_packets [10:47:43]CheckFolder done [10:47:43]ProducePacketName [10:47:43]name=ofd_packets/00070175 [10:47:43]NVStorageSaveData ofd_packets/00070175 [10:47:43]File name is /storage/ofd_packets/00070175 [10:47:43]Write 300 bytes [10:47:43]NVStorageSaveData done [10:47:43]OFDSenderStorePacket done [10:47:43]KKMCreateOFDPacket done [10:47:43]NVStorageSaveData kkm_last_timestamp [10:47:43]File name is /storage/kkm_last_timestamp [10:47:43]Write 4 bytes [10:47:43]NVStorageSaveData done [10:47:43]ExternCall_PrintAddStr [10:47:43]wPrintStart [10:47:43]Write to MH i2c: 01 00 00 87 55 DC [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: 01 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: 01 07 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: 01 07 00 87 55 00 00 00 00 00 FF 0F F1 [10:47:43]RasterBufferAndPrint [10:47:43]line Счет N : (1)2885940 [10:47:43]line ИНН: 02508201610067 [10:47:43]line Контрольно-Кассовый Чек [10:47:43]line ПРОДАЖА [10:47:43]line ТРК (МРК, ГНК) : 71 [10:47:43]line Товар: 2711129700 [10:47:43]line ГАЗ-К-3 [10:47:43]line 51.420 * 38.90 [10:47:43]line = 2000.24 [10:47:43]line НДС 12% НСП 1% [10:47:43]line > о реализуемом товаре [10:47:43]line ОКРУГЛЕНИЕ: -0.24 [10:47:43]line ИТОГО: 2000.00 [10:47:43]line Внесено: 2000.00 [10:47:43]line СДАЧА: 0.00 [10:47:43]line НСП 1% : 17.70 [10:47:43]line НДС 12% : 212.41 [10:47:43]line Наличными: 2000.00 [10:47:43]line Безнал.: 0.00 [10:47:43]line Место: АЗС № 85 "Партнер Нефть" [10:47:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:47:43]line СНО: Общий режим [10:47:43]line Чек 123 22.10.2024 10:47 [10:47:43]line Смена: 195 ФФД: 1.0 [10:47:43]line ЗНМ: 0300000167 [10:47:43]line РНМ: 0000000000156251 [10:47:43]line Версия ККМ: v1.0 [10:47:43]line ФМ: 0000000000963346 [10:47:43]line ФД: 70175 [10:47:43]line ФПД: 12824410786389 [10:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70175&fm=12824410786389&tin=02508201610067®Number=0000000000156251&sum=200000 [10:47:43]written 0, free lines is 4095 [10:47:43]OFD Sender: Processing packet 70175 [packets to send 18, broken 17] [10:47:43]ProducePacketName [10:47:43]name=ofd_packets/00070175 [10:47:43]OFD Sender: To server: pG, [10:47:43]CommunicateWithHost lk.salyk.kg:30040 [10:47:43]ConnectInit lk.salyk.kg [10:47:43]Connected sock=10 [10:47: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 34 36 0E 01 00 00 20 EA 06 01 03 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 7B 00 00 00 F4 03 04 00 D2 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 12 01 00 35 04 06 00 0B A9 EA 73 0A 55 D8 89 A8 B2 DF BD FF BD [10:47: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 34 36 4F 00 00 00 F1 41 47 00 E5 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 34 36 10 04 04 00 1F 12 01 00 F4 03 04 00 73 2C 17 67 B6 04 01 00 00 5F 1F 1F 94 B0 D4 36 0A [10:47:44]CommunicateWithHost err = 0 [10:47:44]CheckOFDResponse [10:47:44]1017 (14) - 77093643461234 [10:47:44]1041 (16) - 0000000000963346 [10:47:44]1040 (4) - 70175 [10:47:44]1012 (4) - 22.10.2024 04:39 [10:47:44]1206 (1) - 0 [10:47:44]OFD Sender: Remove packet 70175 [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00070175 [10:47:44]NVStorageDeleteData [10:47:44]Write to MH i2c: 01 00 00 B2 55 07 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 B2 55 00 00 00 00 00 27 0D 42 [10:47:44]RasterBufferAndPrint [10:47:44]line [10:47:44]line [10:47:44]line [10:47:44]line [10:47:44]line [10:47:44]written 0, free lines is 3379 [10:47:44]MH_Cut [10:47:44]Write to MH i2c: D1 01 00 B9 55 01 E0 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: D1 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: D1 01 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: D1 01 00 B9 55 00 DF [10:47:44]Write to MH i2c: 01 00 00 BA 55 0F [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]OFD Sender: No OFD packet to send [10:47:44]*** Cut start [10:47:44]*** Partial cut [10:47:44]*** CUTSNS_PIN = 1 [10:47:44]*** CUTSNS_PIN = 0 [10:47:45]*** Brake cut motor [10:47:45]Read from MH i2c: 01 [10:47:45]MH_I2C_Read... [10:47:45]*** Stop cut motor [10:47:45]*** Cut end [10:47:45]Read from MH i2c: 01 07 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 07 00 BA 55 00 00 00 00 00 FF 0F 24 [10:47:45]process_action close_receipt done [10:47:45]requested_data is exist [10:47:45]produce_requested_data [10:47:45]requested_item fm.sn is exist - process it [10:47:45]wFMCommunicate request_size=4 [10:47:45]MH_SAM_APDU [10:47:45]CAPDU: 80 11 00 00 [10:47:45]Write to MH i2c: E2 08 00 BB 55 80 11 00 00 00 00 00 00 8A [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:45]Read from MH i2c: E2 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 17 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 17 00 BB 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [10:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:45]wFMCommunicate OK [10:47:45]requested_item fd.num is exist - process it [10:47:45]SAM_PROTO_GetFieldsCounters [10:47:45]wFMCommunicate request_size=4 [10:47:45]MH_SAM_APDU [10:47:45]CAPDU: 80 13 00 00 [10:47:45]Write to MH i2c: E2 08 00 BC 55 80 13 00 00 00 00 00 00 8D [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:45]Read from MH i2c: E2 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 62 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 62 00 BC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 12 01 00 0E 04 04 00 C3 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 0E [10:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 12 01 00 0E 04 04 00 C3 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 [10:47:45]wFMCommunicate OK [10:47:45]SAM_PROTO_GetFieldsCounters done [10:47:45]requested_item shift.num is exist - process it [10:47:45]requested_item shift.opened is exist - process it [10:47:45]req_shift_opened [10:47:45]FM_GetShiftState [10:47:45]SAM_PROTO_GetShiftState [10:47:45]wFMCommunicate request_size=4 [10:47:45]MH_SAM_APDU [10:47:45]CAPDU: 80 13 01 00 [10:47:45]Write to MH i2c: E2 08 00 BD 55 80 13 01 00 00 00 00 00 8F [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 [10:47:45]MH_I2C_Read... [10:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:45]Read from MH i2c: E2 0E 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: E2 0E 00 BD 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [10:47:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:45]wFMCommunicate OK [10:47:45]SAM_PROTO_GetShiftState done [10:47:45]FM_GetShiftState done [10:47:45]req_shift_opened done [10:47:45]requested_item shift.open_date is exist - process it [10:47:45]req_shift_open_date [10:47:45]req_shift_open_date done [10:47:45]produce_requested_data done [10:47:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70175,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:47:45]process_action_free close_receipt [10:47:45]json_value_free [10:47:45]json_value_free done [10:47:45]process_json_proto returns [10:47:45]Send response to host [10:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70175,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:47:45]free response buf [10:47:45]execute_script done [10:47:45]execute_script returns [10:47:45]free content buf [10:47:45]Sock 9.Close socket [10:47:45]Sock 9.Thread stoped [10:47:49]OFD Sender: No OFD packet to send [10:47:50]accept exits with 7 [10:47:50]New connection [10:47:50]New thread 3067026788 created [10:47:50]Thread 3067170148 joined [10:47:50]Waiting for new connection... [10:47:50] Sock 7.Parse request [10:47:50]Sock 7.Check first char [10:47:50]Sock 7.First char is OK [10:47:50]request: POST /json_proto HTTP/1.0 [10:47:50]Method: POST [10:47:50]URL: /json_proto [10:47:50]Method is POST - this is cgi request [10:47:50]url: /json_proto [10:47:50]query_string will be loaded in cgi processing [10:47:50]execute_cgi json_proto POST (null) [10:47:50]execute_cgi path=json_proto method=POST [10:47:50]POST find Content-Length [10:47:50]Host: 172.17.50.3:8080 [10:47:50]Content-Length: 678 [10:47:50]Content-Type: application/json [10:47:50] [10:47:50]POST finish read [10:47:50]Found Content-Length = 678 [10:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:50]execute_script... [10:47: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)2885943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:50]POST & json_proto [10:47:50]process_json_proto [10:47:50]json parsed OK: [10:47:50]protocol is kg_v1.0 [10:47:50]action value=close_receipt [10:47:50]process_action close_receipt [10:47:50]cmd_close_receipt [10:47:50]MH_GetDate [10:47:50]Write to MH i2c: F0 00 00 BE 55 02 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: F0 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: F0 09 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: F0 09 00 BE 55 00 DB 82 17 67 6B 98 1E 66 6D [10:47:50]GetLastDocTimeStamp 1729594066 [10:47:50]current date 1729594075 [10:47:50]FM_GetShiftState [10:47:50]SAM_PROTO_GetShiftState [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 13 01 00 [10:47:50]Write to MH i2c: E2 08 00 BF 55 80 13 01 00 00 00 00 00 91 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0E 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0E 00 BF 55 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7F [10:47:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:50]wFMCommunicate OK [10:47:50]SAM_PROTO_GetShiftState done [10:47:50]FM_GetShiftState done [10:47:50]opened in 1729555832 [10:47:50]opened+sec_in_day 1729642232 [10:47:50]quantity*price = 50041 [10:47:50]sum+1 = 50042 [10:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 124 22.10.2024 10:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70176 ФПД: 98862371900821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70176&fm=98862371900821&tin=02508201610067®Number=0000000000156251&sum=50000 [10:47:51]StoreToDocumentArchive [10:47:51]shift 195 fd 70176 [10:47:51]save to /storage/0195/doc_00070176 [10:47:51]save last doc name /storage/0195/doc_00070176 to /storage/kkm_last_doc_name [10:47:51]save OK [10:47:51]Clear old archive folders... [10:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:51]tlvbuf is 011DB470 [10:47:51]SAM_PROTO_ClearQueue [10:47:51]wFMCommunicate request_size=4 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 09 00 00 [10:47:51]Write to MH i2c: E2 08 00 CC 55 80 09 00 00 00 00 00 00 93 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 CC 55 00 90 00 95 [10:47:51]RAPDU: 90 00 [10:47:51]wFMCommunicate OK [10:47:51]SAM_PROTO_ClearQueue done [10:47:51]KKMCreateOFDPacket [10:47:51]OFDProtocolAddRootSTLVToBuf [10:47:51]FM_MakeSignedData [10:47:51]FM_MakeSignedData [10:47:51]SAM_PROTO_SignData [10:47:51]wFMCommunicate request_size=4 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 0D 01 02 [10:47:51]Write to MH i2c: E2 08 00 CD 55 80 0D 01 02 00 00 00 00 9B [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 CD 55 00 90 00 96 [10:47:51]RAPDU: 90 00 [10:47:51]wFMCommunicate OK [10:47:51]wFMCommunicate request_size=255 [10:47:51]MH_SAM_APDU [10:47: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 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 7C 00 00 00 F4 03 04 00 DB 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 12 01 00 35 04 06 00 59 [10:47:51]Write to MH i2c: E2 02 01 CE 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 7C 00 00 00 F4 03 04 00 DB 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 12 01 00 35 04 06 00 59 00 00 CA [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 CE 55 00 90 00 97 [10:47:51]RAPDU: 90 00 [10:47:51]wFMCommunicate OK [10:47:51]wFMCommunicate request_size=10 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 0D 02 02 05 EA 30 8F 0D 95 [10:47:51]Write to MH i2c: E2 0D 00 CF 55 80 0D 02 02 05 00 EA 30 8F 0D 95 00 00 F3 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 03 00 CF 55 00 90 00 98 [10:47:51]RAPDU: 90 00 [10:47:51]wFMCommunicate OK [10:47:51]wFMCommunicate request_size=4 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 0D 03 02 [10:47:51]Write to MH i2c: E2 08 00 D0 55 80 0D 03 02 00 00 00 00 A0 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 0B 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 0B 00 D0 55 00 83 1C 37 A3 C4 44 81 3E 90 00 E1 [10:47:51]RAPDU: 83 1C 37 A3 C4 44 81 3E 90 00 [10:47:51]wFMCommunicate OK [10:47:51]SAM_PROTO_SignData done [10:47:51]FM_MakeSignedData done [10:47:51]CreateOFDProtocolMessage [10:47:51]wFMCommunicate request_size=4 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 11 00 00 [10:47:51]Write to MH i2c: E2 08 00 D1 55 80 11 00 00 00 00 00 00 A0 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 17 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 17 00 D1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [10:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:51]wFMCommunicate OK [10:47:51]CreateOFDProtocolMessage done [10:47:51]OFDSenderStorePacket 70176 [10:47:51]StoreOFDPacket docnum=70176 [10:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 22 80 07 01 AF 67 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 7C 00 00 00 F4 03 04 00 DB 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 12 01 00 35 04 06 00 59 EA 30 8F 0D 95 83 1C 37 A3 C4 44 81 3E [10:47:51]CheckFolder [10:47:51]dirname=/storage/ofd_packets [10:47:51]CheckFolder done [10:47:51]ProducePacketName [10:47:51]name=ofd_packets/00070176 [10:47:51]NVStorageSaveData ofd_packets/00070176 [10:47:51]File name is /storage/ofd_packets/00070176 [10:47:51]Write 301 bytes [10:47:51]NVStorageSaveData done [10:47:51]OFDSenderStorePacket done [10:47:51]KKMCreateOFDPacket done [10:47:51]NVStorageSaveData kkm_last_timestamp [10:47:51]File name is /storage/kkm_last_timestamp [10:47:51]Write 4 bytes [10:47:51]NVStorageSaveData done [10:47:51]ExternCall_PrintAddStr [10:47:51]wPrintStart [10:47:51]Write to MH i2c: 01 00 00 D2 55 27 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 07 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 07 00 D2 55 00 00 00 00 00 FF 0F 3C [10:47:51]RasterBufferAndPrint [10:47:51]line Счет N : (1)2885943 [10:47:51]line ИНН: 02508201610067 [10:47:51]line Контрольно-Кассовый Чек [10:47:51]line ПРОДАЖА [10:47:51]line ТРК (МРК, ГНК) : 42 [10:47:51]line Товар: 2710124130 [10:47:51]line Аи-92-К-5 [10:47:51]line 7.480 * 66.90 [10:47:51]line = 500.41 [10:47:51]line НДС 12% НСП 1% [10:47:51]line > о реализуемом товаре [10:47:51]line ОКРУГЛЕНИЕ: -0.41 [10:47:51]line ИТОГО: 500.00 [10:47:51]line Внесено: 500.00 [10:47:51]line СДАЧА: 0.00 [10:47:51]line НСП 1% : 4.43 [10:47:51]line НДС 12% : 53.14 [10:47:51]line Наличными: 500.00 [10:47:51]line Безнал.: 0.00 [10:47:51]line Место: АЗС № 85 "Партнер Нефть" [10:47:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:47:51]line СНО: Общий режим [10:47:51]line Чек 124 22.10.2024 10:47 [10:47:51]line Смена: 195 ФФД: 1.0 [10:47:51]line ЗНМ: 0300000167 [10:47:51]line РНМ: 0000000000156251 [10:47:51]line Версия ККМ: v1.0 [10:47:51]line ФМ: 0000000000963346 [10:47:51]line ФД: 70176 [10:47:51]line ФПД: 98862371900821 [10:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70176&fm=98862371900821&tin=02508201610067®Number=0000000000156251&sum=50000 [10:47:52]OFD Sender: Processing packet 70176 [packets to send 18, broken 17] [10:47:52]ProducePacketName [10:47:52]name=ofd_packets/00070176 [10:47:52]OFD Sender: To server: pG, [10:47:52]CommunicateWithHost lk.salyk.kg:30040 [10:47:52]ConnectInit lk.salyk.kg [10:47:52]written 0, free lines is 4095 [10:47:52]Connected sock=10 [10:47: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 34 36 0F 01 00 00 22 80 07 01 AF 67 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 7C 00 00 00 F4 03 04 00 DB 82 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 12 01 00 35 04 06 00 59 EA 30 8F 0D 95 83 1C 37 A3 C4 44 81 3E [10:47: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 34 36 4F 00 00 00 7C 0C 47 00 A0 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 12 01 00 F4 03 04 00 7C 2C 17 67 B6 04 01 00 00 47 AC 6E 7C A0 07 97 F4 [10:47:52]CommunicateWithHost err = 0 [10:47:52]CheckOFDResponse [10:47:52]1017 (14) - 77093643461234 [10:47:52]1041 (16) - 0000000000963346 [10:47:52]1040 (4) - 70176 [10:47:52]1012 (4) - 22.10.2024 04:39 [10:47:52]1206 (1) - 0 [10:47:52]OFD Sender: Remove packet 70176 [10:47:52]ProducePacketName [10:47:52]name=ofd_packets/00070176 [10:47:52]NVStorageDeleteData [10:47:52]Write to MH i2c: 01 00 00 FD 55 52 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: 01 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: 01 07 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: 01 07 00 FD 55 00 00 00 00 00 03 0D 69 [10:47:52]RasterBufferAndPrint [10:47:52]line [10:47:52]line [10:47:52]line [10:47:52]line [10:47:52]line [10:47:52]written 0, free lines is 3349 [10:47:52]MH_Cut [10:47:52]Write to MH i2c: D1 01 00 04 56 01 2C [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: D1 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: D1 01 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: D1 01 00 04 56 00 2B [10:47:52]Write to MH i2c: 01 00 00 05 56 5B [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:53]OFD Sender: No OFD packet to send [10:47:53]*** Cut start [10:47:53]*** Partial cut [10:47:53]*** CUTSNS_PIN = 1 [10:47:53]*** CUTSNS_PIN = 0 [10:47:53]*** Brake cut motor [10:47:53]Read from MH i2c: 01 [10:47:53]MH_I2C_Read... [10:47:53]*** Stop cut motor [10:47:53]*** Cut end [10:47:53]Read from MH i2c: 01 07 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: 01 07 00 05 56 00 00 00 00 00 FF 0F 70 [10:47:53]process_action close_receipt done [10:47:53]requested_data is exist [10:47:53]produce_requested_data [10:47:53]requested_item fm.sn is exist - process it [10:47:53]wFMCommunicate request_size=4 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 11 00 00 [10:47:53]Write to MH i2c: E2 08 00 06 56 80 11 00 00 00 00 00 00 D6 [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 17 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 17 00 06 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [10:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:53]wFMCommunicate OK [10:47:53]requested_item fd.num is exist - process it [10:47:53]SAM_PROTO_GetFieldsCounters [10:47:53]wFMCommunicate request_size=4 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 13 00 00 [10:47:53]Write to MH i2c: E2 08 00 07 56 80 13 00 00 00 00 00 00 D9 [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:54]Read from MH i2c: E2 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: E2 62 00 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: E2 62 00 07 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 12 01 00 0E 04 04 00 C3 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 5E [10:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 12 01 00 0E 04 04 00 C3 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 [10:47:54]wFMCommunicate OK [10:47:54]SAM_PROTO_GetFieldsCounters done [10:47:54]requested_item shift.num is exist - process it [10:47:54]requested_item shift.opened is exist - process it [10:47:54]req_shift_opened [10:47:54]FM_GetShiftState [10:47:54]SAM_PROTO_GetShiftState [10:47:54]wFMCommunicate request_size=4 [10:47:54]MH_SAM_APDU [10:47:54]CAPDU: 80 13 01 00 [10:47:54]Write to MH i2c: E2 08 00 08 56 80 13 01 00 00 00 00 00 DB [10:47:54]Write i2c OK [10:47:54]MH_I2C_Read... [10:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:54]Read from MH i2c: E2 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: E2 0E 00 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: E2 0E 00 08 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [10:47:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:47:54]wFMCommunicate OK [10:47:54]SAM_PROTO_GetShiftState done [10:47:54]FM_GetShiftState done [10:47:54]req_shift_opened done [10:47:54]requested_item shift.open_date is exist - process it [10:47:54]req_shift_open_date [10:47:54]req_shift_open_date done [10:47:54]produce_requested_data done [10:47:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70176,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:47:54]process_action_free close_receipt [10:47:54]json_value_free [10:47:54]json_value_free done [10:47:54]process_json_proto returns [10:47:54]Send response to host [10:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70176,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:47:54]free response buf [10:47:54]execute_script done [10:47:54]execute_script returns [10:47:54]free content buf [10:47:54]Sock 7.Close socket [10:47:54]Sock 7.Thread stoped [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:49]accept exits with 9 [10:49:49]New connection [10:49:49]New thread 3067170148 created [10:49:49]Thread 3067026788 joined [10:49:49]Waiting for new connection... [10:49:49] Sock 9.Parse request [10:49:49]Sock 9.Check first char [10:49:49]Sock 9.First char is OK [10:49:49]request: POST /json_proto HTTP/1.0 [10:49:49]Method: POST [10:49:49]URL: /json_proto [10:49:49]Method is POST - this is cgi request [10:49:49]url: /json_proto [10:49:49]query_string will be loaded in cgi processing [10:49:49]execute_cgi json_proto POST (null) [10:49:49]execute_cgi path=json_proto method=POST [10:49:49]POST find Content-Length [10:49:49]Host: 172.17.50.3:8080 [10:49:49]Content-Length: 752 [10:49:49]Content-Type: application/json [10:49:49] [10:49:49]POST finish read [10:49:49]Found Content-Length = 752 [10:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885944", "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" : 0.00, "quantity" : 40.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\u000A30138269", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:49]execute_script... [10:49: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)2885944", "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" : 0.00, "quantity" : 40.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\u000A30138269", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:49]POST & json_proto [10:49:49]process_json_proto [10:49:49]json parsed OK: [10:49:49]protocol is kg_v1.0 [10:49:49]action value=close_receipt [10:49:49]process_action close_receipt [10:49:49]cmd_close_receipt [10:49:49]MH_GetDate [10:49:49]Write to MH i2c: F0 00 00 09 56 4E [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 09 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 09 00 09 56 00 52 83 17 67 6B 98 1E 66 31 [10:49:49]GetLastDocTimeStamp 1729594075 [10:49:49]current date 1729594194 [10:49:49]FM_GetShiftState [10:49:49]SAM_PROTO_GetShiftState [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 13 01 00 [10:49:49]Write to MH i2c: E2 08 00 0A 56 80 13 01 00 00 00 00 00 DD [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0E 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0E 00 0A 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CB [10:49:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_GetShiftState done [10:49:49]FM_GetShiftState done [10:49:49]opened in 1729555832 [10:49:49]opened+sec_in_day 1729642232 [10:49:49]quantity*price = 0 [10:49:49]sum+1 = 1 [10:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 125 22.10.2024 10:49 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138269 ФМ: 0000000000963346 ФД: 70177 ФПД: 118858012705282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104954&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70177&fm=118858012705282&tin=02508201610067®Number=0000000000156251&sum=0 [10:49:50]StoreToDocumentArchive [10:49:50]shift 195 fd 70177 [10:49:50]save to /storage/0195/doc_00070177 [10:49:50]save last doc name /storage/0195/doc_00070177 to /storage/kkm_last_doc_name [10:49:50]save OK [10:49:50]Clear old archive folders... [10:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:49:50]tlvbuf is 0118F8D0 [10:49:50]SAM_PROTO_ClearQueue [10:49:50]wFMCommunicate request_size=4 [10:49:50]MH_SAM_APDU [10:49:50]CAPDU: 80 09 00 00 [10:49:50]Write to MH i2c: E2 08 00 17 56 80 09 00 00 00 00 00 00 DF [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 17 56 00 90 00 E1 [10:49:50]RAPDU: 90 00 [10:49:50]wFMCommunicate OK [10:49:50]SAM_PROTO_ClearQueue done [10:49:50]KKMCreateOFDPacket [10:49:50]OFDProtocolAddRootSTLVToBuf [10:49:50]FM_MakeSignedData [10:49:50]FM_MakeSignedData [10:49:50]SAM_PROTO_SignData [10:49:50]wFMCommunicate request_size=4 [10:49:50]MH_SAM_APDU [10:49:50]CAPDU: 80 0D 01 02 [10:49:50]Write to MH i2c: E2 08 00 18 56 80 0D 01 02 00 00 00 00 E7 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 18 56 00 90 00 E2 [10:49:50]RAPDU: 90 00 [10:49:50]wFMCommunicate OK [10:49:50]wFMCommunicate request_size=255 [10:49:50]MH_SAM_APDU [10:49: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 40 9C 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 7D 00 00 00 F4 03 04 00 52 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 12 01 00 35 04 06 00 6C 19 C9 A0 [10:49:50]Write to MH i2c: E2 02 01 19 56 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 40 9C 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 7D 00 00 00 F4 03 04 00 52 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 12 01 00 35 04 06 00 6C 19 C9 A0 00 00 CF [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 19 56 00 90 00 E3 [10:49:50]RAPDU: 90 00 [10:49:50]wFMCommunicate OK [10:49:50]wFMCommunicate request_size=7 [10:49:50]MH_SAM_APDU [10:49:50]CAPDU: 80 0D 02 02 02 42 02 [10:49:50]Write to MH i2c: E2 0A 00 1A 56 80 0D 02 02 02 00 42 02 00 00 32 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 03 00 1A 56 00 90 00 E4 [10:49:50]RAPDU: 90 00 [10:49:50]wFMCommunicate OK [10:49:50]wFMCommunicate request_size=4 [10:49:50]MH_SAM_APDU [10:49:50]CAPDU: 80 0D 03 02 [10:49:50]Write to MH i2c: E2 08 00 1B 56 80 0D 03 02 00 00 00 00 EC [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0B 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0B 00 1B 56 00 3F 0B AA 0A 5B 8C 79 41 90 00 8C [10:49:51]RAPDU: 3F 0B AA 0A 5B 8C 79 41 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_SignData done [10:49:51]FM_MakeSignedData done [10:49:51]CreateOFDProtocolMessage [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 1C 56 80 11 00 00 00 00 00 00 EC [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 1C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:51]wFMCommunicate OK [10:49:51]CreateOFDProtocolMessage done [10:49:51]OFDSenderStorePacket 70177 [10:49:51]StoreOFDPacket docnum=70177 [10:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9A E5 04 01 E9 2E 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 40 9C 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 7D 00 00 00 F4 03 04 00 52 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 12 01 00 35 04 06 00 6C 19 C9 A0 42 02 3F 0B AA 0A 5B 8C 79 41 [10:49:51]CheckFolder [10:49:51]dirname=/storage/ofd_packets [10:49:51]CheckFolder done [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00070177 [10:49:51]NVStorageSaveData ofd_packets/00070177 [10:49:51]File name is /storage/ofd_packets/00070177 [10:49:51]Write 298 bytes [10:49:51]NVStorageSaveData done [10:49:51]OFDSenderStorePacket done [10:49:51]KKMCreateOFDPacket done [10:49:51]NVStorageSaveData kkm_last_timestamp [10:49:51]File name is /storage/kkm_last_timestamp [10:49:51]Write 4 bytes [10:49:51]NVStorageSaveData done [10:49:51]ExternCall_PrintAddStr [10:49:51]wPrintStart [10:49:51]Write to MH i2c: 01 00 00 1D 56 73 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 1D 56 00 00 00 00 00 FF 0F 88 [10:49:51]RasterBufferAndPrint [10:49:51]line Счет N : (1)2885944 [10:49:51]line ИНН: 02508201610067 [10:49:51]line Контрольно-Кассовый Чек [10:49:51]line ПРОДАЖА [10:49:51]line ТРК (МРК, ГНК) : 51 [10:49:51]line Товар: 2710194210 [10:49:51]line ДТ-К-5 [10:49:51]line 40.000 * 0.00 [10:49:51]line = 0.00 [10:49:51]line НДС 12% НСП 1% [10:49:51]line > о реализуемом товаре [10:49:51]line ИТОГО: 0.00 [10:49:51]line НСП 1% : 0.00 [10:49:51]line НДС 12% : 0.00 [10:49:51]line Наличными: 0.00 [10:49:51]line Безнал.: 0.00 [10:49:51]line Место: АЗС № 85 "Партнер Нефть" [10:49:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:49:51]line СНО: Общий режим [10:49:51]line Чек 125 22.10.2024 10:49 [10:49:51]line Смена: 195 ФФД: 1.0 [10:49:51]line ЗНМ: 0300000167 [10:49:51]line РНМ: 0000000000156251 [10:49:51]line Версия ККМ: v1.0 [10:49:51]line Талоны: ТК ГПНА Online [10:49:51]line 30138269 [10:49:51]line ФМ: 0000000000963346 [10:49:51]line ФД: 70177 [10:49:51]line ФПД: 118858012705282 [10:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104954&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70177&fm=118858012705282&tin=02508201610067®Number=0000000000156251&sum=0 [10:49:51]OFD Sender: Processing packet 70177 [packets to send 18, broken 17] [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00070177 [10:49:51]OFD Sender: To server: pG, [10:49:51]CommunicateWithHost lk.salyk.kg:30040 [10:49:51]ConnectInit lk.salyk.kg [10:49:51]written 0, free lines is 4095 [10:49:51]Connected sock=10 [10:49: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 34 36 0C 01 00 00 9A E5 04 01 E9 2E 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 40 9C 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 7D 00 00 00 F4 03 04 00 52 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 12 01 00 35 04 06 00 6C 19 C9 A0 42 02 3F 0B AA 0A 5B 8C 79 41 [10:49: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 34 36 4F 00 00 00 2B 37 47 00 C1 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 12 01 00 F4 03 04 00 F3 2C 17 67 B6 04 01 00 00 AA 5F E3 59 8F E0 F5 BD [10:49:51]CommunicateWithHost err = 0 [10:49:51]CheckOFDResponse [10:49:51]1017 (14) - 77093643461234 [10:49:51]1041 (16) - 0000000000963346 [10:49:51]1040 (4) - 70177 [10:49:51]1012 (4) - 22.10.2024 04:41 [10:49:51]1206 (1) - 0 [10:49:51]OFD Sender: Remove packet 70177 [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00070177 [10:49:51]NVStorageDeleteData [10:49:51]Write to MH i2c: 01 00 00 47 56 9D [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 47 56 00 00 00 00 00 0B 0D BC [10:49:51]RasterBufferAndPrint [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]written 0, free lines is 3345 [10:49:51]MH_Cut [10:49:51]Write to MH i2c: D1 01 00 4E 56 01 76 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 01 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 01 00 4E 56 00 75 [10:49:51]Write to MH i2c: 01 00 00 4F 56 A5 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:52]OFD Sender: No OFD packet to send [10:49:52]*** Cut start [10:49:52]*** Partial cut [10:49:52]*** CUTSNS_PIN = 1 [10:49:52]*** CUTSNS_PIN = 0 [10:49:52]*** Brake cut motor [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]*** Stop cut motor [10:49:53]*** Cut end [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 4F 56 00 00 00 00 00 FF 0F BA [10:49:53]process_action close_receipt done [10:49:53]requested_data is exist [10:49:53]produce_requested_data [10:49:53]requested_item fm.sn is exist - process it [10:49:53]wFMCommunicate request_size=4 [10:49:53]MH_SAM_APDU [10:49:53]CAPDU: 80 11 00 00 [10:49:53]Write to MH i2c: E2 08 00 50 56 80 11 00 00 00 00 00 00 20 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:53]Read from MH i2c: E2 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 50 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [10:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:53]wFMCommunicate OK [10:49:53]requested_item fd.num is exist - process it [10:49:53]SAM_PROTO_GetFieldsCounters [10:49:53]wFMCommunicate request_size=4 [10:49:53]MH_SAM_APDU [10:49:53]CAPDU: 80 13 00 00 [10:49:53]Write to MH i2c: E2 08 00 51 56 80 13 00 00 00 00 00 00 23 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:53]Read from MH i2c: E2 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 62 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 62 00 51 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 12 01 00 0E 04 04 00 C3 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 AC [10:49: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 12 01 00 0E 04 04 00 C3 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 [10:49:53]wFMCommunicate OK [10:49:53]SAM_PROTO_GetFieldsCounters done [10:49:53]requested_item shift.num is exist - process it [10:49:53]requested_item shift.opened is exist - process it [10:49:53]req_shift_opened [10:49:53]FM_GetShiftState [10:49:53]SAM_PROTO_GetShiftState [10:49:53]wFMCommunicate request_size=4 [10:49:53]MH_SAM_APDU [10:49:53]CAPDU: 80 13 01 00 [10:49:53]Write to MH i2c: E2 08 00 52 56 80 13 01 00 00 00 00 00 25 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:53]Read from MH i2c: E2 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 0E 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 0E 00 52 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 13 [10:49:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:49:53]wFMCommunicate OK [10:49:53]SAM_PROTO_GetShiftState done [10:49:53]FM_GetShiftState done [10:49:53]req_shift_opened done [10:49:53]requested_item shift.open_date is exist - process it [10:49:53]req_shift_open_date [10:49:53]req_shift_open_date done [10:49:53]produce_requested_data done [10:49:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70177,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:49:53]process_action_free close_receipt [10:49:53]json_value_free [10:49:53]json_value_free done [10:49:53]process_json_proto returns [10:49:53]Send response to host [10:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70177,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:49:53]free response buf [10:49:53]execute_script done [10:49:53]execute_script returns [10:49:53]free content buf [10:49:53]Sock 9.Close socket [10:49:53]Sock 9.Thread stoped [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [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:43]accept exits with 7 [10:50:43]New connection [10:50:43]New thread 3067026788 created [10:50:43]Thread 3067170148 joined [10:50:43]Waiting for new connection... [10:50:43] Sock 7.Parse request [10:50:43]Sock 7.Check first char [10:50:43]Sock 7.First char is OK [10:50:43]request: POST /json_proto HTTP/1.0 [10:50:43]Method: POST [10:50:43]URL: /json_proto [10:50:43]Method is POST - this is cgi request [10:50:43]url: /json_proto [10:50:43]query_string will be loaded in cgi processing [10:50:43]execute_cgi json_proto POST (null) [10:50:43]execute_cgi path=json_proto method=POST [10:50:43]POST find Content-Length [10:50:43]Host: 172.17.50.3:8080 [10:50:43]Content-Length: 771 [10:50:43]Content-Type: application/json [10:50:43] [10:50:43]POST finish read [10:50:43]Found Content-Length = 771 [10:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.710, "sum" : 650.02, "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" : 650.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]execute_script... [10:50: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)2885945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.710, "sum" : 650.02, "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" : 650.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]POST & json_proto [10:50:43]process_json_proto [10:50:43]json parsed OK: [10:50:43]protocol is kg_v1.0 [10:50:43]action value=close_receipt [10:50:43]process_action close_receipt [10:50:43]cmd_close_receipt [10:50:43]MH_GetDate [10:50:43]Write to MH i2c: F0 00 00 53 56 98 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 09 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 09 00 53 56 00 88 83 17 67 6B 98 1E 66 B1 [10:50:43]GetLastDocTimeStamp 1729594194 [10:50:43]current date 1729594248 [10:50:43]FM_GetShiftState [10:50:43]SAM_PROTO_GetShiftState [10:50:43]wFMCommunicate request_size=4 [10:50:43]MH_SAM_APDU [10:50:43]CAPDU: 80 13 01 00 [10:50:43]Write to MH i2c: E2 08 00 54 56 80 13 01 00 00 00 00 00 27 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:43]Read from MH i2c: E2 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 54 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 15 [10:50:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:50:43]wFMCommunicate OK [10:50:43]SAM_PROTO_GetShiftState done [10:50:43]FM_GetShiftState done [10:50:43]opened in 1729555832 [10:50:43]opened+sec_in_day 1729642232 [10:50:43]quantity*price = 65001 [10:50:43]sum+1 = 65003 [10:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.02 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 0.00 Безнал.: 650.02 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 126 22.10.2024 10:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70178 ФПД: 273610871262377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70178&fm=273610871262377&tin=02508201610067®Number=0000000000156251&sum=65002 [10:50:44]StoreToDocumentArchive [10:50:44]shift 195 fd 70178 [10:50:44]save to /storage/0195/doc_00070178 [10:50:44]save last doc name /storage/0195/doc_00070178 to /storage/kkm_last_doc_name [10:50:44]save OK [10:50:44]Clear old archive folders... [10:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:50:44]tlvbuf is 0128ADF0 [10:50:44]SAM_PROTO_ClearQueue [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 09 00 00 [10:50:44]Write to MH i2c: E2 08 00 61 56 80 09 00 00 00 00 00 00 29 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 61 56 00 90 00 2B [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]SAM_PROTO_ClearQueue done [10:50:44]KKMCreateOFDPacket [10:50:44]OFDProtocolAddRootSTLVToBuf [10:50:44]FM_MakeSignedData [10:50:44]FM_MakeSignedData [10:50:44]SAM_PROTO_SignData [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 01 02 [10:50:44]Write to MH i2c: E2 08 00 62 56 80 0D 01 02 00 00 00 00 31 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 62 56 00 90 00 2C [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]wFMCommunicate request_size=255 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 88 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 12 01 00 35 04 06 00 F8 D8 [10:50:44]Write to MH i2c: E2 02 01 63 56 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 88 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 12 01 00 35 04 06 00 F8 D8 00 00 81 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 63 56 00 90 00 2D [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]wFMCommunicate request_size=9 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 02 02 04 FE C9 CC A9 [10:50:44]Write to MH i2c: E2 0C 00 64 56 80 0D 02 02 04 00 FE C9 CC A9 00 00 78 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 64 56 00 90 00 2E [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 03 02 [10:50:44]Write to MH i2c: E2 08 00 65 56 80 0D 03 02 00 00 00 00 36 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 65 56 00 DA 13 7C 96 95 EE 38 5F 90 00 50 [10:50:45]RAPDU: DA 13 7C 96 95 EE 38 5F 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_SignData done [10:50:45]FM_MakeSignedData done [10:50:45]CreateOFDProtocolMessage [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 11 00 00 [10:50:45]Write to MH i2c: E2 08 00 66 56 80 11 00 00 00 00 00 00 36 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 66 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [10:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:50:45]wFMCommunicate OK [10:50:45]CreateOFDProtocolMessage done [10:50:45]OFDSenderStorePacket 70178 [10:50:45]StoreOFDPacket docnum=70178 [10:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 38 6D 06 01 30 E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 88 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 12 01 00 35 04 06 00 F8 D8 FE C9 CC A9 DA 13 7C 96 95 EE 38 5F [10:50:45]CheckFolder [10:50:45]dirname=/storage/ofd_packets [10:50:45]CheckFolder done [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00070178 [10:50:45]NVStorageSaveData ofd_packets/00070178 [10:50:45]File name is /storage/ofd_packets/00070178 [10:50:45]Write 300 bytes [10:50:45]NVStorageSaveData done [10:50:45]OFDSenderStorePacket done [10:50:45]KKMCreateOFDPacket done [10:50:45]NVStorageSaveData kkm_last_timestamp [10:50:45]File name is /storage/kkm_last_timestamp [10:50:45]Write 4 bytes [10:50:45]NVStorageSaveData done [10:50:45]ExternCall_PrintAddStr [10:50:45]wPrintStart [10:50:45]Write to MH i2c: 01 00 00 67 56 BD [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 67 56 00 00 00 00 00 FF 0F D2 [10:50:45]RasterBufferAndPrint [10:50:45]line Счет N : (1)2885945 [10:50:45]line ИНН: 02508201610067 [10:50:45]line Контрольно-Кассовый Чек [10:50:45]line ПРОДАЖА [10:50:45]line ТРК (МРК, ГНК) : 71 [10:50:45]line Товар: 2711129700 [10:50:45]line ГАЗ-К-3 [10:50:45]line 16.710 * 38.90 [10:50:45]line = 650.02 [10:50:45]line НДС 12% НСП 1% [10:50:45]line > о реализуемом товаре [10:50:45]line ИТОГО: 650.02 [10:50:45]line НСП 1% : 5.75 [10:50:45]line НДС 12% : 69.03 [10:50:45]line Наличными: 0.00 [10:50:45]line Безнал.: 650.02 [10:50:45]line Место: АЗС № 85 "Партнер Нефть" [10:50:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:50:45]line СНО: Общий режим [10:50:45]line Чек 126 22.10.2024 10:50 [10:50:45]line Смена: 195 ФФД: 1.0 [10:50:45]line ЗНМ: 0300000167 [10:50:45]line РНМ: 0000000000156251 [10:50:45]line Версия ККМ: v1.0 [10:50:45]line Платежная система: Mbank [10:50:45]line ФМ: 0000000000963346 [10:50:45]line ФД: 70178 [10:50:45]line ФПД: 273610871262377 [10:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70178&fm=273610871262377&tin=02508201610067®Number=0000000000156251&sum=65002 [10:50:45]OFD Sender: Processing packet 70178 [packets to send 18, broken 17] [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00070178 [10:50:45]OFD Sender: To server: pG, [10:50:45]CommunicateWithHost lk.salyk.kg:30040 [10:50:45]ConnectInit lk.salyk.kg [10:50:45]written 0, free lines is 4095 [10:50:45]Connected sock=10 [10:50: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 34 36 0E 01 00 00 38 6D 06 01 30 E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 88 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 12 01 00 35 04 06 00 F8 D8 FE C9 CC A9 DA 13 7C 96 95 EE 38 5F [10:50: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 34 36 4F 00 00 00 C4 12 47 00 34 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 34 36 10 04 04 00 22 12 01 00 F4 03 04 00 29 2D 17 67 B6 04 01 00 00 0B 2B BC 48 93 AF 6E D6 [10:50:45]CommunicateWithHost err = 0 [10:50:45]CheckOFDResponse [10:50:45]1017 (14) - 77093643461234 [10:50:45]1041 (16) - 0000000000963346 [10:50:45]1040 (4) - 70178 [10:50:45]1012 (4) - 22.10.2024 04:42 [10:50:45]1206 (1) - 0 [10:50:45]OFD Sender: Remove packet 70178 [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00070178 [10:50:45]NVStorageDeleteData [10:50:45]Write to MH i2c: 01 00 00 90 56 E6 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 90 56 00 00 00 00 00 1D 0D 17 [10:50:45]RasterBufferAndPrint [10:50:45]line [10:50:45]line [10:50:45]line [10:50:45]line [10:50:45]line [10:50:45]written 0, free lines is 3366 [10:50:45]MH_Cut [10:50:45]Write to MH i2c: D1 01 00 97 56 01 BF [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: D1 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: D1 01 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: D1 01 00 97 56 00 BE [10:50:45]Write to MH i2c: 01 00 00 98 56 EE [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:46]OFD Sender: No OFD packet to send [10:50:46]*** Cut start [10:50:46]*** Partial cut [10:50:46]*** CUTSNS_PIN = 1 [10:50:46]*** CUTSNS_PIN = 0 [10:50:46]*** Brake cut motor [10:50:47]Read from MH i2c: 01 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 07 00 [10:50:47]MH_I2C_Read... [10:50:47]*** Stop cut motor [10:50:47]*** Cut end [10:50:47]Read from MH i2c: 01 07 00 98 56 00 00 00 00 00 FF 0F 03 [10:50:47]process_action close_receipt done [10:50:47]requested_data is exist [10:50:47]produce_requested_data [10:50:47]requested_item fm.sn is exist - process it [10:50:47]wFMCommunicate request_size=4 [10:50:47]MH_SAM_APDU [10:50:47]CAPDU: 80 11 00 00 [10:50:47]Write to MH i2c: E2 08 00 99 56 80 11 00 00 00 00 00 00 69 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:47]Read from MH i2c: E2 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 17 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 17 00 99 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [10:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:50:47]wFMCommunicate OK [10:50:47]requested_item fd.num is exist - process it [10:50:47]SAM_PROTO_GetFieldsCounters [10:50:47]wFMCommunicate request_size=4 [10:50:47]MH_SAM_APDU [10:50:47]CAPDU: 80 13 00 00 [10:50:47]Write to MH i2c: E2 08 00 9A 56 80 13 00 00 00 00 00 00 6C [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:47]Read from MH i2c: E2 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 62 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 62 00 9A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 12 01 00 0E 04 04 00 C3 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 F9 [10:50: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 12 01 00 0E 04 04 00 C3 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 [10:50:47]wFMCommunicate OK [10:50:47]SAM_PROTO_GetFieldsCounters done [10:50:47]requested_item shift.num is exist - process it [10:50:47]requested_item shift.opened is exist - process it [10:50:47]req_shift_opened [10:50:47]FM_GetShiftState [10:50:47]SAM_PROTO_GetShiftState [10:50:47]wFMCommunicate request_size=4 [10:50:47]MH_SAM_APDU [10:50:47]CAPDU: 80 13 01 00 [10:50:47]Write to MH i2c: E2 08 00 9B 56 80 13 01 00 00 00 00 00 6E [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:47]Read from MH i2c: E2 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 9B 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5C [10:50:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:50:47]wFMCommunicate OK [10:50:47]SAM_PROTO_GetShiftState done [10:50:47]FM_GetShiftState done [10:50:47]req_shift_opened done [10:50:47]requested_item shift.open_date is exist - process it [10:50:47]req_shift_open_date [10:50:47]req_shift_open_date done [10:50:47]produce_requested_data done [10:50:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70178,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:50:47]process_action_free close_receipt [10:50:47]json_value_free [10:50:47]json_value_free done [10:50:47]process_json_proto returns [10:50:47]Send response to host [10:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70178,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:50:47]free response buf [10:50:47]execute_script done [10:50:47]execute_script returns [10:50:47]free content buf [10:50:47]Sock 7.Close socket [10:50:47]Sock 7.Thread stoped [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:17]accept exits with 9 [10:51:17]New connection [10:51:17]New thread 3067170148 created [10:51:17]Thread 3067026788 joined [10:51:17]Waiting for new connection... [10:51:17] Sock 9.Parse request [10:51:17]Sock 9.Check first char [10:51:17]Sock 9.First char is OK [10:51:17]request: POST /json_proto HTTP/1.0 [10:51:17]Method: POST [10:51:17]URL: /json_proto [10:51:17]Method is POST - this is cgi request [10:51:17]url: /json_proto [10:51:17]query_string will be loaded in cgi processing [10:51:17]execute_cgi json_proto POST (null) [10:51:17]execute_cgi path=json_proto method=POST [10:51:17]POST find Content-Length [10:51:17]Host: 172.17.50.3:8080 [10:51:17]Content-Length: 681 [10:51:17]Content-Type: application/json [10:51:17] [10:51:17]POST finish read [10:51:17]Found Content-Length = 681 [10:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "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" ] } } [10:51:17]execute_script... [10:51: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)2885947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "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" ] } } [10:51:17]POST & json_proto [10:51:17]process_json_proto [10:51:17]json parsed OK: [10:51:17]protocol is kg_v1.0 [10:51:17]action value=close_receipt [10:51:17]process_action close_receipt [10:51:17]cmd_close_receipt [10:51:17]MH_GetDate [10:51:17]Write to MH i2c: F0 00 00 9C 56 E1 [10:51:17]Write i2c OK [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: F0 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: F0 09 00 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: F0 09 00 9C 56 00 AA 83 17 67 6B 98 1E 66 1C [10:51:17]GetLastDocTimeStamp 1729594248 [10:51:17]current date 1729594282 [10:51:17]FM_GetShiftState [10:51:17]SAM_PROTO_GetShiftState [10:51:17]wFMCommunicate request_size=4 [10:51:17]MH_SAM_APDU [10:51:17]CAPDU: 80 13 01 00 [10:51:17]Write to MH i2c: E2 08 00 9D 56 80 13 01 00 00 00 00 00 70 [10:51:17]Write i2c OK [10:51:17]MH_I2C_Read... [10:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:17]Read from MH i2c: E2 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: E2 0E 00 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: E2 0E 00 9D 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5E [10:51:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:51:17]wFMCommunicate OK [10:51:17]SAM_PROTO_GetShiftState done [10:51:17]FM_GetShiftState done [10:51:17]opened in 1729555832 [10:51:17]opened+sec_in_day 1729642232 [10:51:17]quantity*price = 20033 [10:51:17]sum+1 = 20035 [10:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 127 22.10.2024 10:51 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70179 ФПД: 213904961179296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105122&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70179&fm=213904961179296&tin=02508201610067®Number=0000000000156251&sum=20000 [10:51:18]StoreToDocumentArchive [10:51:18]shift 195 fd 70179 [10:51:18]save to /storage/0195/doc_00070179 [10:51:18]save last doc name /storage/0195/doc_00070179 to /storage/kkm_last_doc_name [10:51:18]save OK [10:51:18]Clear old archive folders... [10:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:51:18]tlvbuf is 011CD780 [10:51:18]SAM_PROTO_ClearQueue [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 09 00 00 [10:51:18]Write to MH i2c: E2 08 00 AA 56 80 09 00 00 00 00 00 00 72 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 AA 56 00 90 00 74 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_ClearQueue done [10:51:18]KKMCreateOFDPacket [10:51:18]OFDProtocolAddRootSTLVToBuf [10:51:18]FM_MakeSignedData [10:51:18]FM_MakeSignedData [10:51:18]SAM_PROTO_SignData [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 01 02 [10:51:18]Write to MH i2c: E2 08 00 AB 56 80 0D 01 02 00 00 00 00 7A [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 AB 56 00 90 00 75 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=255 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 7F 00 00 00 F4 03 04 00 AA 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 12 01 00 35 04 06 00 C2 8B [10:51:18]Write to MH i2c: E2 02 01 AC 56 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 7F 00 00 00 F4 03 04 00 AA 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 12 01 00 35 04 06 00 C2 8B 00 00 83 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 AC 56 00 90 00 76 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=9 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 02 02 04 A1 3A 0E A0 [10:51:18]Write to MH i2c: E2 0C 00 AD 56 80 0D 02 02 04 00 A1 3A 0E A0 00 00 0E [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 03 00 AD 56 00 90 00 77 [10:51:18]RAPDU: 90 00 [10:51:18]wFMCommunicate OK [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 0D 03 02 [10:51:18]Write to MH i2c: E2 08 00 AE 56 80 0D 03 02 00 00 00 00 7F [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0B 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0B 00 AE 56 00 31 F4 A3 3F E0 F0 13 35 90 00 9F [10:51:18]RAPDU: 31 F4 A3 3F E0 F0 13 35 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_SignData done [10:51:18]FM_MakeSignedData done [10:51:18]CreateOFDProtocolMessage [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 11 00 00 [10:51:18]Write to MH i2c: E2 08 00 AF 56 80 11 00 00 00 00 00 00 7F [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 AF 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [10:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:51:18]wFMCommunicate OK [10:51:18]CreateOFDProtocolMessage done [10:51:18]OFDSenderStorePacket 70179 [10:51:18]StoreOFDPacket docnum=70179 [10:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CF 12 06 01 48 B8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 7F 00 00 00 F4 03 04 00 AA 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 12 01 00 35 04 06 00 C2 8B A1 3A 0E A0 31 F4 A3 3F E0 F0 13 35 [10:51:18]CheckFolder [10:51:18]dirname=/storage/ofd_packets [10:51:18]CheckFolder done [10:51:18]ProducePacketName [10:51:18]name=ofd_packets/00070179 [10:51:18]NVStorageSaveData ofd_packets/00070179 [10:51:18]File name is /storage/ofd_packets/00070179 [10:51:18]Write 300 bytes [10:51:18]NVStorageSaveData done [10:51:18]OFDSenderStorePacket done [10:51:18]KKMCreateOFDPacket done [10:51:18]NVStorageSaveData kkm_last_timestamp [10:51:18]File name is /storage/kkm_last_timestamp [10:51:18]Write 4 bytes [10:51:18]NVStorageSaveData done [10:51:18]ExternCall_PrintAddStr [10:51:18]wPrintStart [10:51:18]Write to MH i2c: 01 00 00 B0 56 06 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: 01 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: 01 07 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: 01 07 00 B0 56 00 00 00 00 00 FF 0F 1B [10:51:18]RasterBufferAndPrint [10:51:18]line Счет N : (1)2885947 [10:51:18]line ИНН: 02508201610067 [10:51:18]line Контрольно-Кассовый Чек [10:51:18]line ПРОДАЖА [10:51:18]line ТРК (МРК, ГНК) : 71 [10:51:18]line Товар: 2711129700 [10:51:18]line ГАЗ-К-3 [10:51:18]line 5.150 * 38.90 [10:51:18]line = 200.34 [10:51:18]line НДС 12% НСП 1% [10:51:18]line > о реализуемом товаре [10:51:18]line ОКРУГЛЕНИЕ: -0.34 [10:51:18]line ИТОГО: 200.00 [10:51:18]line Внесено: 200.00 [10:51:18]line СДАЧА: 0.00 [10:51:18]line НСП 1% : 1.77 [10:51:18]line НДС 12% : 21.27 [10:51:18]line Наличными: 200.00 [10:51:18]line Безнал.: 0.00 [10:51:18]line Место: АЗС № 85 "Партнер Нефть" [10:51:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:51:18]line СНО: Общий режим [10:51:18]line Чек 127 22.10.2024 10:51 [10:51:18]line Смена: 195 ФФД: 1.0 [10:51:18]line ЗНМ: 0300000167 [10:51:18]line РНМ: 0000000000156251 [10:51:18]line Версия ККМ: v1.0 [10:51:18]line ФМ: 0000000000963346 [10:51:18]line ФД: 70179 [10:51:18]line ФПД: 213904961179296 [10:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105122&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70179&fm=213904961179296&tin=02508201610067®Number=0000000000156251&sum=20000 [10:51:19]OFD Sender: Processing packet 70179 [packets to send 18, broken 17] [10:51:19]ProducePacketName [10:51:19]name=ofd_packets/00070179 [10:51:19]OFD Sender: To server: pG, [10:51:19]CommunicateWithHost lk.salyk.kg:30040 [10:51:19]ConnectInit lk.salyk.kg [10:51:19]written 0, free lines is 4095 [10:51:19]Connected sock=10 [10:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CF 12 06 01 48 B8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 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 7F 00 00 00 F4 03 04 00 AA 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 12 01 00 35 04 06 00 C2 8B A1 3A 0E A0 31 F4 A3 3F E0 F0 13 35 [10:51: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 34 36 4F 00 00 00 7A BB 47 00 7A 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 34 36 10 04 04 00 23 12 01 00 F4 03 04 00 4B 2D 17 67 B6 04 01 00 00 49 F2 DA 6A 8F ED 90 E1 [10:51:19]CommunicateWithHost err = 0 [10:51:19]CheckOFDResponse [10:51:19]1017 (14) - 77093643461234 [10:51:19]1041 (16) - 0000000000963346 [10:51:19]1040 (4) - 70179 [10:51:19]1012 (4) - 22.10.2024 04:42 [10:51:19]1206 (1) - 0 [10:51:19]OFD Sender: Remove packet 70179 [10:51:19]ProducePacketName [10:51:19]name=ofd_packets/00070179 [10:51:19]NVStorageDeleteData [10:51:19]Write to MH i2c: 01 00 00 DB 56 31 [10:51:19]Write i2c OK [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: 01 07 00 DB 56 00 00 00 00 00 E4 0C 28 [10:51:19]RasterBufferAndPrint [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]line [10:51:19]written 0, free lines is 3306 [10:51:19]MH_Cut [10:51:19]Write to MH i2c: D1 01 00 E2 56 01 0A [10:51:19]Write i2c OK [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: D1 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: D1 01 00 [10:51:19]MH_I2C_Read... [10:51:19]Read from MH i2c: D1 01 00 E2 56 00 09 [10:51:19]Write to MH i2c: 01 00 00 E3 56 39 [10:51:19]Write i2c OK [10:51:19]MH_I2C_Read... [10:51:20]OFD Sender: No OFD packet to send [10:51:20]*** Cut start [10:51:20]*** Partial cut [10:51:20]*** CUTSNS_PIN = 1 [10:51:20]*** CUTSNS_PIN = 0 [10:51:20]*** Brake cut motor [10:51:21]Read from MH i2c: 01 [10:51:21]MH_I2C_Read... [10:51:21]*** Stop cut motor [10:51:21]*** Cut end [10:51:21]Read from MH i2c: 01 07 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: 01 07 00 E3 56 00 00 00 00 00 FF 0F 4E [10:51:21]process_action close_receipt done [10:51:21]requested_data is exist [10:51:21]produce_requested_data [10:51:21]requested_item fm.sn is exist - process it [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 11 00 00 [10:51:21]Write to MH i2c: E2 08 00 E4 56 80 11 00 00 00 00 00 00 B4 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 17 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 17 00 E4 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [10:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:51:21]wFMCommunicate OK [10:51:21]requested_item fd.num is exist - process it [10:51:21]SAM_PROTO_GetFieldsCounters [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 13 00 00 [10:51:21]Write to MH i2c: E2 08 00 E5 56 80 13 00 00 00 00 00 00 B7 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 62 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 62 00 E5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 12 01 00 0E 04 04 00 C3 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 48 [10:51: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 12 01 00 0E 04 04 00 C3 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 [10:51:21]wFMCommunicate OK [10:51:21]SAM_PROTO_GetFieldsCounters done [10:51:21]requested_item shift.num is exist - process it [10:51:21]requested_item shift.opened is exist - process it [10:51:21]req_shift_opened [10:51:21]FM_GetShiftState [10:51:21]SAM_PROTO_GetShiftState [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 13 01 00 [10:51:21]Write to MH i2c: E2 08 00 E6 56 80 13 01 00 00 00 00 00 B9 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 E6 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A7 [10:51:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:51:21]wFMCommunicate OK [10:51:21]SAM_PROTO_GetShiftState done [10:51:21]FM_GetShiftState done [10:51:21]req_shift_opened done [10:51:21]requested_item shift.open_date is exist - process it [10:51:21]req_shift_open_date [10:51:21]req_shift_open_date done [10:51:21]produce_requested_data done [10:51:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70179,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:51:21]process_action_free close_receipt [10:51:21]json_value_free [10:51:21]json_value_free done [10:51:21]process_json_proto returns [10:51:21]Send response to host [10:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70179,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:51:21]free response buf [10:51:21]execute_script done [10:51:21]execute_script returns [10:51:21]free content buf [10:51:21]Sock 9.Close socket [10:51:21]Sock 9.Thread stoped [10:51:25]OFD Sender: No OFD packet to send [10:51:25]accept exits with 7 [10:51:25]New connection [10:51:25]New thread 3067026788 created [10:51:25]Thread 3067170148 joined [10:51:25]Waiting for new connection... [10:51:25] Sock 7.Parse request [10:51:25]Sock 7.Check first char [10:51:25]Sock 7.First char is OK [10:51:25]request: POST /json_proto HTTP/1.0 [10:51:25]Method: POST [10:51:25]URL: /json_proto [10:51:25]Method is POST - this is cgi request [10:51:25]url: /json_proto [10:51:25]query_string will be loaded in cgi processing [10:51:25]execute_cgi json_proto POST (null) [10:51:25]execute_cgi path=json_proto method=POST [10:51:25]POST find Content-Length [10:51:25]Host: 172.17.50.3:8080 [10:51:25]Content-Length: 793 [10:51:25]Content-Type: application/json [10:51:25] [10:51:25]POST finish read [10:51:25]Found Content-Length = 793 [10:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 31.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\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:25]execute_script... [10:51: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)2885946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 31.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\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:25]POST & json_proto [10:51:25]process_json_proto [10:51:25]json parsed OK: [10:51:25]protocol is kg_v1.0 [10:51:25]action value=close_receipt [10:51:25]process_action close_receipt [10:51:25]cmd_close_receipt [10:51:25]MH_GetDate [10:51:25]Write to MH i2c: F0 00 00 E7 56 2C [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 E7 56 00 B2 83 17 67 6B 98 1E 66 6F [10:51:25]GetLastDocTimeStamp 1729594282 [10:51:25]current date 1729594290 [10:51:25]FM_GetShiftState [10:51:25]SAM_PROTO_GetShiftState [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 01 00 [10:51:25]Write to MH i2c: E2 08 00 E8 56 80 13 01 00 00 00 00 00 BB [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 E8 56 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [10:51:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetShiftState done [10:51:25]FM_GetShiftState done [10:51:25]opened in 1729555832 [10:51:25]opened+sec_in_day 1729642232 [10:51:25]quantity*price = 0 [10:51:25]sum+1 = 1 [10:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 128 22.10.2024 10:51 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 74592 ФМ: 0000000000963346 ФД: 70180 ФПД: 211510459455106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70180&fm=211510459455106&tin=02508201610067®Number=0000000000156251&sum=0 [10:51:26]StoreToDocumentArchive [10:51:26]shift 195 fd 70180 [10:51:26]save to /storage/0195/doc_00070180 [10:51:26]save last doc name /storage/0195/doc_00070180 to /storage/kkm_last_doc_name [10:51:26]save OK [10:51:26]Clear old archive folders... [10:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:26]tlvbuf is 0111D3C0 [10:51:26]SAM_PROTO_ClearQueue [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 09 00 00 [10:51:26]Write to MH i2c: E2 08 00 F5 56 80 09 00 00 00 00 00 00 BD [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 F5 56 00 90 00 BF [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]SAM_PROTO_ClearQueue done [10:51:26]KKMCreateOFDPacket [10:51:26]OFDProtocolAddRootSTLVToBuf [10:51:26]FM_MakeSignedData [10:51:26]FM_MakeSignedData [10:51:26]SAM_PROTO_SignData [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 0D 01 02 [10:51:26]Write to MH i2c: E2 08 00 F6 56 80 0D 01 02 00 00 00 00 C5 [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 F6 56 00 90 00 C0 [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]wFMCommunicate request_size=255 [10:51:26]MH_SAM_APDU [10:51: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 18 79 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 80 00 00 00 F4 03 04 00 B2 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 12 01 00 35 04 06 00 C0 [10:51:26]Write to MH i2c: E2 02 01 F7 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 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 79 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 80 00 00 00 F4 03 04 00 B2 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 12 01 00 35 04 06 00 C0 00 00 4B [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 F7 56 00 90 00 C1 [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]wFMCommunicate request_size=10 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 0D 02 02 05 5E 1D CD 56 82 [10:51:26]Write to MH i2c: E2 0D 00 F8 56 80 0D 02 02 05 00 5E 1D CD 56 82 00 00 F2 [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 F8 56 00 90 00 C2 [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 0D 03 02 [10:51:26]Write to MH i2c: E2 08 00 F9 56 80 0D 03 02 00 00 00 00 CA [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 F9 56 00 1D BA CC 3D 2E 5F 89 C9 90 00 8A [10:51:27]RAPDU: 1D BA CC 3D 2E 5F 89 C9 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_SignData done [10:51:27]FM_MakeSignedData done [10:51:27]CreateOFDProtocolMessage [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 11 00 00 [10:51:27]Write to MH i2c: E2 08 00 FA 56 80 11 00 00 00 00 00 00 CA [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 FA 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [10:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:51:27]wFMCommunicate OK [10:51:27]CreateOFDProtocolMessage done [10:51:27]OFDSenderStorePacket 70180 [10:51:27]StoreOFDPacket docnum=70180 [10:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 18 07 01 2B 48 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 79 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 80 00 00 00 F4 03 04 00 B2 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 12 01 00 35 04 06 00 C0 5E 1D CD 56 82 1D BA CC 3D 2E 5F 89 C9 [10:51:27]CheckFolder [10:51:27]dirname=/storage/ofd_packets [10:51:27]CheckFolder done [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00070180 [10:51:27]NVStorageSaveData ofd_packets/00070180 [10:51:27]File name is /storage/ofd_packets/00070180 [10:51:27]Write 301 bytes [10:51:27]NVStorageSaveData done [10:51:27]OFDSenderStorePacket done [10:51:27]KKMCreateOFDPacket done [10:51:27]NVStorageSaveData kkm_last_timestamp [10:51:27]File name is /storage/kkm_last_timestamp [10:51:27]Write 4 bytes [10:51:27]NVStorageSaveData done [10:51:27]ExternCall_PrintAddStr [10:51:27]wPrintStart [10:51:27]Write to MH i2c: 01 00 00 FB 56 51 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 FB 56 00 00 00 00 00 FF 0F 66 [10:51:27]RasterBufferAndPrint [10:51:27]line Счет N : (1)2885946 [10:51:27]line ИНН: 02508201610067 [10:51:27]line Контрольно-Кассовый Чек [10:51:27]line ПРОДАЖА [10:51:27]line ТРК (МРК, ГНК) : 23 [10:51:27]line Товар: 2710124500 [10:51:27]line Аи-95-К-5 [10:51:27]line 31.000 * 0.00 [10:51:27]line = 0.00 [10:51:27]line НДС 12% НСП 1% [10:51:27]line > о реализуемом товаре [10:51:27]line ИТОГО: 0.00 [10:51:27]line НСП 1% : 0.00 [10:51:27]line НДС 12% : 0.00 [10:51:27]line Наличными: 0.00 [10:51:27]line Безнал.: 0.00 [10:51:27]line Место: АЗС № 85 "Партнер Нефть" [10:51:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:51:27]line СНО: Общий режим [10:51:27]line Чек 128 22.10.2024 10:51 [10:51:27]line Смена: 195 ФФД: 1.0 [10:51:27]line ЗНМ: 0300000167 [10:51:27]line РНМ: 0000000000156251 [10:51:27]line Версия ККМ: v1.0 [10:51:27]line Талоны: Топливная Карта [10:51:27]line 74592 [10:51:27]line ФМ: 0000000000963346 [10:51:27]line ФД: 70180 [10:51:27]line ФПД: 211510459455106 [10:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70180&fm=211510459455106&tin=02508201610067®Number=0000000000156251&sum=0 [10:51:27]written 0, free lines is 4095 [10:51:27]OFD Sender: Processing packet 70180 [packets to send 18, broken 17] [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00070180 [10:51:27]OFD Sender: To server: pG, [10:51:27]CommunicateWithHost lk.salyk.kg:30040 [10:51:27]ConnectInit lk.salyk.kg [10:51:27]Connected sock=10 [10:51: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 34 36 0F 01 00 00 19 18 07 01 2B 48 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 79 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 80 00 00 00 F4 03 04 00 B2 83 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 12 01 00 35 04 06 00 C0 5E 1D CD 56 82 1D BA CC 3D 2E 5F 89 C9 [10:51: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 34 36 4F 00 00 00 EC F6 47 00 51 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 34 36 10 04 04 00 24 12 01 00 F4 03 04 00 53 2D 17 67 B6 04 01 00 00 D9 AC 4E C3 54 54 34 07 [10:51:27]CommunicateWithHost err = 0 [10:51:27]CheckOFDResponse [10:51:27]1017 (14) - 77093643461234 [10:51:27]1041 (16) - 0000000000963346 [10:51:27]1040 (4) - 70180 [10:51:27]1012 (4) - 22.10.2024 04:42 [10:51:27]1206 (1) - 0 [10:51:27]OFD Sender: Remove packet 70180 [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00070180 [10:51:27]NVStorageDeleteData [10:51:27]Write to MH i2c: 01 00 00 25 57 7C [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 25 57 00 00 00 00 00 01 0D 91 [10:51:27]RasterBufferAndPrint [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]written 0, free lines is 3343 [10:51:27]MH_Cut [10:51:27]Write to MH i2c: D1 01 00 2C 57 01 55 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: D1 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: D1 01 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: D1 01 00 2C 57 00 54 [10:51:27]Write to MH i2c: 01 00 00 2D 57 84 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]OFD Sender: No OFD packet to send [10:51:28]*** Cut start [10:51:28]*** Partial cut [10:51:28]*** CUTSNS_PIN = 1 [10:51:28]*** CUTSNS_PIN = 0 [10:51:28]*** Brake cut motor [10:51:28]Read from MH i2c: 01 [10:51:28]MH_I2C_Read... [10:51:28]*** Stop cut motor [10:51:28]*** Cut end [10:51:28]Read from MH i2c: 01 07 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: 01 07 00 2D 57 00 00 00 00 00 FF 0F 99 [10:51:28]process_action close_receipt done [10:51:28]requested_data is exist [10:51:28]produce_requested_data [10:51:28]requested_item fm.sn is exist - process it [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 11 00 00 [10:51:28]Write to MH i2c: E2 08 00 2E 57 80 11 00 00 00 00 00 00 FF [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 17 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 17 00 2E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [10:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:51:28]wFMCommunicate OK [10:51:28]requested_item fd.num is exist - process it [10:51:28]SAM_PROTO_GetFieldsCounters [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 13 00 00 [10:51:28]Write to MH i2c: E2 08 00 2F 57 80 13 00 00 00 00 00 00 02 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 62 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 62 00 2F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 12 01 00 0E 04 04 00 C3 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 97 [10:51: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 12 01 00 0E 04 04 00 C3 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 [10:51:29]wFMCommunicate OK [10:51:29]SAM_PROTO_GetFieldsCounters done [10:51:29]requested_item shift.num is exist - process it [10:51:29]requested_item shift.opened is exist - process it [10:51:29]req_shift_opened [10:51:29]FM_GetShiftState [10:51:29]SAM_PROTO_GetShiftState [10:51:29]wFMCommunicate request_size=4 [10:51:29]MH_SAM_APDU [10:51:29]CAPDU: 80 13 01 00 [10:51:29]Write to MH i2c: E2 08 00 30 57 80 13 01 00 00 00 00 00 04 [10:51:29]Write i2c OK [10:51:29]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 0E 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 0E 00 30 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F2 [10:51:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:51:29]wFMCommunicate OK [10:51:29]SAM_PROTO_GetShiftState done [10:51:29]FM_GetShiftState done [10:51:29]req_shift_opened done [10:51:29]requested_item shift.open_date is exist - process it [10:51:29]req_shift_open_date [10:51:29]req_shift_open_date done [10:51:29]produce_requested_data done [10:51:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70180,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:51:29]process_action_free close_receipt [10:51:29]json_value_free [10:51:29]json_value_free done [10:51:29]process_json_proto returns [10:51:29]Send response to host [10:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70180,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:51:29]free response buf [10:51:29]execute_script done [10:51:29]execute_script returns [10:51:29]free content buf [10:51:29]Sock 7.Close socket [10:51:29]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:22]accept exits with 9 [10:53:22]New connection [10:53:22]New thread 3067170148 created [10:53:22]Thread 3067026788 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.50.3:8080 [10:53:22]Content-Length: 755 [10:53:22]Content-Type: application/json [10:53:22] [10:53:22]POST finish read [10:53:22]Found Content-Length = 755 [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)2885949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A30035531", "payments": [ { "type": 1, "sum" : 0.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)2885949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A30035531", "payments": [ { "type": 1, "sum" : 0.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 31 57 77 [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 31 57 00 27 84 17 67 6B 98 1E 66 30 [10:53:22]GetLastDocTimeStamp 1729594290 [10:53:22]current date 1729594407 [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 32 57 80 13 01 00 00 00 00 00 06 [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 32 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F4 [10:53:22]RAPDU: 09 00 01 78 ED 16 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 1729555832 [10:53:22]opened+sec_in_day 1729642232 [10:53:22]quantity*price = 0 [10:53:22]sum+1 = 1 [10:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 129 22.10.2024 10:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30035531 ФМ: 0000000000963346 ФД: 70181 ФПД: 152088239965168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70181&fm=152088239965168&tin=02508201610067®Number=0000000000156251&sum=0 [10:53:23]StoreToDocumentArchive [10:53:23]shift 195 fd 70181 [10:53:23]save to /storage/0195/doc_00070181 [10:53:23]save last doc name /storage/0195/doc_00070181 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 0120E710 [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 3F 57 80 09 00 00 00 00 00 00 08 [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 3F 57 00 90 00 0A [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 40 57 80 0D 01 02 00 00 00 00 10 [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 40 57 00 90 00 0B [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 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 81 00 00 00 F4 03 04 00 27 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 12 01 00 35 04 06 00 8A [10:53:23]Write to MH i2c: E2 02 01 41 57 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 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 81 00 00 00 F4 03 04 00 27 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 12 01 00 35 04 06 00 8A 00 00 E3 [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 41 57 00 90 00 0C [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 52 CD 84 83 F0 [10:53:23]Write to MH i2c: E2 0D 00 42 57 80 0D 02 02 05 00 52 CD 84 83 F0 00 00 33 [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 42 57 00 90 00 0D [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 43 57 80 0D 03 02 00 00 00 00 15 [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 43 57 00 3A BE 32 7A 0A F9 02 A8 90 00 67 [10:53:23]RAPDU: 3A BE 32 7A 0A F9 02 A8 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 44 57 80 11 00 00 00 00 00 00 15 [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 44 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [10:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:53:23]wFMCommunicate OK [10:53:23]CreateOFDProtocolMessage done [10:53:23]OFDSenderStorePacket 70181 [10:53:23]StoreOFDPacket docnum=70181 [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 34 36 0F 01 00 00 E4 9D 07 01 8F AF 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 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 81 00 00 00 F4 03 04 00 27 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 12 01 00 35 04 06 00 8A 52 CD 84 83 F0 3A BE 32 7A 0A F9 02 A8 [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/00070181 [10:53:23]NVStorageSaveData ofd_packets/00070181 [10:53:23]File name is /storage/ofd_packets/00070181 [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]OFD Sender: Processing packet 70181 [packets to send 18, broken 17] [10:53:23]ProducePacketName [10:53:23]name=ofd_packets/00070181 [10:53:23]OFD Sender: To server: pG, [10:53:23]CommunicateWithHost lk.salyk.kg:30040 [10:53:23]ConnectInit lk.salyk.kg [10:53:23]ExternCall_PrintAddStr [10:53:23]wPrintStart [10:53:23]Write to MH i2c: 01 00 00 45 57 9C [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 45 57 00 00 00 00 00 FF 0F B1 [10:53:23]RasterBufferAndPrint [10:53:23]line Счет N : (1)2885949 [10:53:23]line ИНН: 02508201610067 [10:53:23]line Контрольно-Кассовый Чек [10:53:23]line ПРОДАЖА [10:53:23]line ТРК (МРК, ГНК) : 32 [10:53:23]line Товар: 2710124130 [10:53:23]line Аи-92-К-5 [10:53:23]line 14.950 * 0.00 [10:53:23]line = 0.00 [10:53:23]line НДС 12% НСП 1% [10:53:23]line > о реализуемом товаре [10:53:23]line ИТОГО: 0.00 [10:53:23]line НСП 1% : 0.00 [10:53:23]line НДС 12% : 0.00 [10:53:23]line Наличными: 0.00 [10:53:23]line Безнал.: 0.00 [10:53:23]line Место: АЗС № 85 "Партнер Нефть" [10:53:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:53:23]line СНО: Общий режим [10:53:23]line Чек 129 22.10.2024 10:53 [10:53:23]line Смена: 195 ФФД: 1.0 [10:53:23]line ЗНМ: 0300000167 [10:53:23]line РНМ: 0000000000156251 [10:53:23]line Версия ККМ: v1.0 [10:53:23]line Талоны: ТК ГПНА Online [10:53:23]line 30035531 [10:53:23]line ФМ: 0000000000963346 [10:53:23]line ФД: 70181 [10:53:23]line ФПД: 152088239965168 [10:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70181&fm=152088239965168&tin=02508201610067®Number=0000000000156251&sum=0 [10:53:24]Connected sock=11 [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 34 36 0F 01 00 00 E4 9D 07 01 8F AF 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 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 81 00 00 00 F4 03 04 00 27 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 12 01 00 35 04 06 00 8A 52 CD 84 83 F0 3A BE 32 7A 0A F9 02 A8 [10:53:24]written 0, free lines is 4095 [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 34 36 4F 00 00 00 46 D7 47 00 13 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 34 36 10 04 04 00 25 12 01 00 F4 03 04 00 C8 2D 17 67 B6 04 01 00 00 51 8F 65 5F 80 28 3E 1B [10:53:24]CommunicateWithHost err = 0 [10:53:24]CheckOFDResponse [10:53:24]1017 (14) - 77093643461234 [10:53:24]1041 (16) - 0000000000963346 [10:53:24]1040 (4) - 70181 [10:53:24]1012 (4) - 22.10.2024 04:44 [10:53:24]1206 (1) - 0 [10:53:24]OFD Sender: Remove packet 70181 [10:53:24]ProducePacketName [10:53:24]name=ofd_packets/00070181 [10:53:24]NVStorageDeleteData [10:53:24]Write to MH i2c: 01 00 00 6F 57 C6 [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 6F 57 00 00 00 00 00 EF 0C C8 [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 3320 [10:53:24]MH_Cut [10:53:24]Write to MH i2c: D1 01 00 76 57 01 9F [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 76 57 00 9E [10:53:24]Write to MH i2c: 01 00 00 77 57 CE [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:24]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:25]Read from MH i2c: 01 [10:53:25]MH_I2C_Read... [10:53:25]*** Stop cut motor [10:53:25]*** Cut end [10:53:25]Read from MH i2c: 01 07 00 [10:53:25]MH_I2C_Read... [10:53:25]Read from MH i2c: 01 07 00 77 57 00 00 00 00 00 FF 0F E3 [10:53:25]process_action close_receipt done [10:53:25]requested_data is exist [10:53:25]produce_requested_data [10:53:25]requested_item fm.sn is exist - process it [10:53:25]wFMCommunicate request_size=4 [10:53:25]MH_SAM_APDU [10:53:25]CAPDU: 80 11 00 00 [10:53:25]Write to MH i2c: E2 08 00 78 57 80 11 00 00 00 00 00 00 49 [10:53:25]Write i2c OK [10:53:25]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 78 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [10:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 79 57 80 13 00 00 00 00 00 00 4C [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 79 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 12 01 00 0E 04 04 00 C3 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 E5 [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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 12 01 00 0E 04 04 00 C3 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 [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 7A 57 80 13 01 00 00 00 00 00 4E [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 7A 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3C [10:53:26]RAPDU: 09 00 01 78 ED 16 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":"0000000000963346","fd.num":70181,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [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":"0000000000963346","fd.num":70181,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [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:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:46]accept exits with 7 [10:53:46]New connection [10:53:46]New thread 3067026788 created [10:53:46]Thread 3067170148 joined [10:53:46]Waiting for new connection... [10:53:46] Sock 7.Parse request [10:53:46]Sock 7.Check first char [10:53:46]Sock 7.First char is OK [10:53:46]request: POST /json_proto HTTP/1.0 [10:53:46]Method: POST [10:53:46]URL: /json_proto [10:53:46]Method is POST - this is cgi request [10:53:46]url: /json_proto [10:53:46]query_string will be loaded in cgi processing [10:53:46]execute_cgi json_proto POST (null) [10:53:46]execute_cgi path=json_proto method=POST [10:53:46]POST find Content-Length [10:53:46]Host: 172.17.50.3:8080 [10:53:46]Content-Length: 678 [10:53:46]Content-Type: application/json [10:53:46] [10:53:46]POST finish read [10:53:46]Found Content-Length = 678 [10:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:53:46]execute_script... [10:53: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)2885950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:53:46]POST & json_proto [10:53:46]process_json_proto [10:53:46]json parsed OK: [10:53:46]protocol is kg_v1.0 [10:53:46]action value=close_receipt [10:53:46]process_action close_receipt [10:53:46]cmd_close_receipt [10:53:46]MH_GetDate [10:53:46]Write to MH i2c: F0 00 00 7B 57 C1 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 09 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 09 00 7B 57 00 3F 84 17 67 6B 98 1E 66 92 [10:53:46]GetLastDocTimeStamp 1729594407 [10:53:46]current date 1729594431 [10:53:46]FM_GetShiftState [10:53:46]SAM_PROTO_GetShiftState [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 01 00 [10:53:46]Write to MH i2c: E2 08 00 7C 57 80 13 01 00 00 00 00 00 50 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 7C 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3E [10:53:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetShiftState done [10:53:46]FM_GetShiftState done [10:53:46]opened in 1729555832 [10:53:46]opened+sec_in_day 1729642232 [10:53:46]quantity*price = 50041 [10:53:46]sum+1 = 50042 [10:53: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 130 22.10.2024 10:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70182 ФПД: 127429605716019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105351&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70182&fm=127429605716019&tin=02508201610067®Number=0000000000156251&sum=50000 [10:53:47]StoreToDocumentArchive [10:53:47]shift 195 fd 70182 [10:53:47]save to /storage/0195/doc_00070182 [10:53:47]save last doc name /storage/0195/doc_00070182 to /storage/kkm_last_doc_name [10:53:47]save OK [10:53:47]Clear old archive folders... [10:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:47]tlvbuf is 01145250 [10:53:47]SAM_PROTO_ClearQueue [10:53:47]wFMCommunicate request_size=4 [10:53:47]MH_SAM_APDU [10:53:47]CAPDU: 80 09 00 00 [10:53:47]Write to MH i2c: E2 08 00 89 57 80 09 00 00 00 00 00 00 52 [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 89 57 00 90 00 54 [10:53:47]RAPDU: 90 00 [10:53:47]wFMCommunicate OK [10:53:47]SAM_PROTO_ClearQueue done [10:53:47]KKMCreateOFDPacket [10:53:47]OFDProtocolAddRootSTLVToBuf [10:53:47]FM_MakeSignedData [10:53:47]FM_MakeSignedData [10:53:47]SAM_PROTO_SignData [10:53:47]wFMCommunicate request_size=4 [10:53:47]MH_SAM_APDU [10:53:47]CAPDU: 80 0D 01 02 [10:53:47]Write to MH i2c: E2 08 00 8A 57 80 0D 01 02 00 00 00 00 5A [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 8A 57 00 90 00 55 [10:53:47]RAPDU: 90 00 [10:53:47]wFMCommunicate OK [10:53:47]wFMCommunicate request_size=255 [10:53:47]MH_SAM_APDU [10:53: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 82 00 00 00 F4 03 04 00 3F 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 12 01 00 35 04 06 00 73 [10:53:47]Write to MH i2c: E2 02 01 8B 57 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 82 00 00 00 F4 03 04 00 3F 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 12 01 00 35 04 06 00 73 00 00 15 [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 8B 57 00 90 00 56 [10:53:47]RAPDU: 90 00 [10:53:47]wFMCommunicate OK [10:53:47]wFMCommunicate request_size=10 [10:53:47]MH_SAM_APDU [10:53:47]CAPDU: 80 0D 02 02 05 E5 84 61 F0 33 [10:53:47]Write to MH i2c: E2 0D 00 8C 57 80 0D 02 02 05 00 E5 84 61 F0 33 00 00 54 [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 03 00 8C 57 00 90 00 57 [10:53:47]RAPDU: 90 00 [10:53:47]wFMCommunicate OK [10:53:47]wFMCommunicate request_size=4 [10:53:47]MH_SAM_APDU [10:53:47]CAPDU: 80 0D 03 02 [10:53:47]Write to MH i2c: E2 08 00 8D 57 80 0D 03 02 00 00 00 00 5F [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 0B 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 0B 00 8D 57 00 25 7F FB DA 88 F6 13 7B 90 00 E5 [10:53:47]RAPDU: 25 7F FB DA 88 F6 13 7B 90 00 [10:53:47]wFMCommunicate OK [10:53:47]SAM_PROTO_SignData done [10:53:47]FM_MakeSignedData done [10:53:47]CreateOFDProtocolMessage [10:53:47]wFMCommunicate request_size=4 [10:53:47]MH_SAM_APDU [10:53:47]CAPDU: 80 11 00 00 [10:53:47]Write to MH i2c: E2 08 00 8E 57 80 11 00 00 00 00 00 00 5F [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:47]Read from MH i2c: E2 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 17 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: E2 17 00 8E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [10:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:53:47]wFMCommunicate OK [10:53:47]CreateOFDProtocolMessage done [10:53:47]OFDSenderStorePacket 70182 [10:53:47]StoreOFDPacket docnum=70182 [10:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 80 07 01 1A 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 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 82 00 00 00 F4 03 04 00 3F 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 12 01 00 35 04 06 00 73 E5 84 61 F0 33 25 7F FB DA 88 F6 13 7B [10:53:47]CheckFolder [10:53:47]dirname=/storage/ofd_packets [10:53:47]CheckFolder done [10:53:47]ProducePacketName [10:53:47]name=ofd_packets/00070182 [10:53:47]NVStorageSaveData ofd_packets/00070182 [10:53:47]File name is /storage/ofd_packets/00070182 [10:53:47]Write 301 bytes [10:53:47]NVStorageSaveData done [10:53:47]OFDSenderStorePacket done [10:53:47]KKMCreateOFDPacket done [10:53:47]NVStorageSaveData kkm_last_timestamp [10:53:47]File name is /storage/kkm_last_timestamp [10:53:47]Write 4 bytes [10:53:47]NVStorageSaveData done [10:53:47]ExternCall_PrintAddStr [10:53:47]wPrintStart [10:53:47]Write to MH i2c: 01 00 00 8F 57 E6 [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 07 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 07 00 8F 57 00 00 00 00 00 FF 0F FB [10:53:47]RasterBufferAndPrint [10:53:47]line Счет N : (1)2885950 [10:53:47]line ИНН: 02508201610067 [10:53:47]line Контрольно-Кассовый Чек [10:53:47]line ПРОДАЖА [10:53:47]line ТРК (МРК, ГНК) : 42 [10:53:47]line Товар: 2710124130 [10:53:47]line Аи-92-К-5 [10:53:47]line 7.480 * 66.90 [10:53:47]line = 500.41 [10:53:47]line НДС 12% НСП 1% [10:53:47]line > о реализуемом товаре [10:53:47]line ОКРУГЛЕНИЕ: -0.41 [10:53:47]line ИТОГО: 500.00 [10:53:47]line Внесено: 500.00 [10:53:47]line СДАЧА: 0.00 [10:53:47]line НСП 1% : 4.43 [10:53:47]line НДС 12% : 53.14 [10:53:47]line Наличными: 500.00 [10:53:47]line Безнал.: 0.00 [10:53:47]line Место: АЗС № 85 "Партнер Нефть" [10:53:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:53:47]line СНО: Общий режим [10:53:47]line Чек 130 22.10.2024 10:53 [10:53:47]line Смена: 195 ФФД: 1.0 [10:53:47]line ЗНМ: 0300000167 [10:53:47]line РНМ: 0000000000156251 [10:53:47]line Версия ККМ: v1.0 [10:53:47]line ФМ: 0000000000963346 [10:53:47]line ФД: 70182 [10:53:47]line ФПД: 127429605716019 [10:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105351&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70182&fm=127429605716019&tin=02508201610067®Number=0000000000156251&sum=50000 [10:53:48]OFD Sender: Processing packet 70182 [packets to send 18, broken 17] [10:53:48]ProducePacketName [10:53:48]name=ofd_packets/00070182 [10:53:48]OFD Sender: To server: pG, [10:53:48]CommunicateWithHost lk.salyk.kg:30040 [10:53:48]ConnectInit lk.salyk.kg [10:53:48]written 0, free lines is 4095 [10:53:48]Connected sock=10 [10:53: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 34 36 0F 01 00 00 00 80 07 01 1A 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 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 82 00 00 00 F4 03 04 00 3F 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 12 01 00 35 04 06 00 73 E5 84 61 F0 33 25 7F FB DA 88 F6 13 7B [10:53: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 34 36 4F 00 00 00 03 A4 47 00 86 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 34 36 10 04 04 00 26 12 01 00 F4 03 04 00 E0 2D 17 67 B6 04 01 00 00 16 C0 E2 B6 FE 9A 47 2E [10:53:48]CommunicateWithHost err = 0 [10:53:48]CheckOFDResponse [10:53:48]1017 (14) - 77093643461234 [10:53:48]1041 (16) - 0000000000963346 [10:53:48]1040 (4) - 70182 [10:53:48]1012 (4) - 22.10.2024 04:45 [10:53:48]1206 (1) - 0 [10:53:48]OFD Sender: Remove packet 70182 [10:53:48]ProducePacketName [10:53:48]name=ofd_packets/00070182 [10:53:48]NVStorageDeleteData [10:53:48]Write to MH i2c: 01 00 00 BA 57 11 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 BA 57 00 00 00 00 00 E8 0C 0C [10:53:48]RasterBufferAndPrint [10:53:48]line [10:53:48]line [10:53:48]line [10:53:48]line [10:53:48]line [10:53:48]written 0, free lines is 3310 [10:53:48]MH_Cut [10:53:48]Write to MH i2c: D1 01 00 C1 57 01 EA [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: D1 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: D1 01 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: D1 01 00 C1 57 00 E9 [10:53:48]Write to MH i2c: 01 00 00 C2 57 19 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:49]OFD Sender: No OFD packet to send [10:53:49]*** Cut start [10:53:49]*** Partial cut [10:53:49]*** CUTSNS_PIN = 1 [10:53:49]*** CUTSNS_PIN = 0 [10:53:49]*** Brake cut motor [10:53:50]Read from MH i2c: 01 [10:53:50]MH_I2C_Read... [10:53:50]*** Stop cut motor [10:53:50]*** Cut end [10:53:50]Read from MH i2c: 01 07 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: 01 07 00 C2 57 00 00 00 00 00 FF 0F 2E [10:53:50]process_action close_receipt done [10:53:50]requested_data is exist [10:53:50]produce_requested_data [10:53:50]requested_item fm.sn is exist - process it [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 11 00 00 [10:53:50]Write to MH i2c: E2 08 00 C3 57 80 11 00 00 00 00 00 00 94 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 17 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 17 00 C3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [10:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:53:50]wFMCommunicate OK [10:53:50]requested_item fd.num is exist - process it [10:53:50]SAM_PROTO_GetFieldsCounters [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 13 00 00 [10:53:50]Write to MH i2c: E2 08 00 C4 57 80 13 00 00 00 00 00 00 97 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 62 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 62 00 C4 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 12 01 00 0E 04 04 00 C3 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 34 [10:53: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 12 01 00 0E 04 04 00 C3 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 [10:53:50]wFMCommunicate OK [10:53:50]SAM_PROTO_GetFieldsCounters done [10:53:50]requested_item shift.num is exist - process it [10:53:50]requested_item shift.opened is exist - process it [10:53:50]req_shift_opened [10:53:50]FM_GetShiftState [10:53:50]SAM_PROTO_GetShiftState [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 13 01 00 [10:53:50]Write to MH i2c: E2 08 00 C5 57 80 13 01 00 00 00 00 00 99 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 0E 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 0E 00 C5 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 87 [10:53:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:53:50]wFMCommunicate OK [10:53:50]SAM_PROTO_GetShiftState done [10:53:50]FM_GetShiftState done [10:53:50]req_shift_opened done [10:53:50]requested_item shift.open_date is exist - process it [10:53:50]req_shift_open_date [10:53:50]req_shift_open_date done [10:53:50]produce_requested_data done [10:53:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70182,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:53:50]process_action_free close_receipt [10:53:50]json_value_free [10:53:50]json_value_free done [10:53:50]process_json_proto returns [10:53:50]Send response to host [10:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70182,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:53:50]free response buf [10:53:50]execute_script done [10:53:50]execute_script returns [10:53:50]free content buf [10:53:50]Sock 7.Close socket [10:53:50]Sock 7.Thread stoped [10:53:54]OFD Sender: No OFD packet to send [10:53:58]accept exits with 9 [10:53:58]New connection [10:53:58]New thread 3067170148 created [10:53:58]Thread 3067026788 joined [10:53:58]Waiting for new connection... [10:53:58] Sock 9.Parse request [10:53:58]Sock 9.Check first char [10:53:58]Sock 9.First char is OK [10:53:58]request: POST /json_proto HTTP/1.0 [10:53:58]Method: POST [10:53:58]URL: /json_proto [10:53:58]Method is POST - this is cgi request [10:53:58]url: /json_proto [10:53:58]query_string will be loaded in cgi processing [10:53:58]execute_cgi json_proto POST (null) [10:53:58]execute_cgi path=json_proto method=POST [10:53:58]POST find Content-Length [10:53:58]Host: 172.17.50.3:8080 [10:53:58]Content-Length: 678 [10:53:58]Content-Type: application/json [10:53:58] [10:53:58]POST finish read [10:53:58]Found Content-Length = 678 [10:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:53:58]execute_script... [10:53: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)2885951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:53:58]POST & json_proto [10:53:58]process_json_proto [10:53:58]json parsed OK: [10:53:58]protocol is kg_v1.0 [10:53:58]action value=close_receipt [10:53:58]process_action close_receipt [10:53:58]cmd_close_receipt [10:53:58]MH_GetDate [10:53:58]Write to MH i2c: F0 00 00 C6 57 0C [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 09 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 09 00 C6 57 00 4B 84 17 67 6B 98 1E 66 E9 [10:53:58]GetLastDocTimeStamp 1729594431 [10:53:58]current date 1729594443 [10:53:58]FM_GetShiftState [10:53:58]SAM_PROTO_GetShiftState [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 13 01 00 [10:53:58]Write to MH i2c: E2 08 00 C7 57 80 13 01 00 00 00 00 00 9B [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 C7 57 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 89 [10:53:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:53:58]wFMCommunicate OK [10:53:58]SAM_PROTO_GetShiftState done [10:53:58]FM_GetShiftState done [10:53:58]opened in 1729555832 [10:53:58]opened+sec_in_day 1729642232 [10:53:58]quantity*price = 50041 [10:53:58]sum+1 = 50042 [10:53: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 131 22.10.2024 10:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70183 ФПД: 241368321802570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70183&fm=241368321802570&tin=02508201610067®Number=0000000000156251&sum=50000 [10:53:59]StoreToDocumentArchive [10:53:59]shift 195 fd 70183 [10:53:59]save to /storage/0195/doc_00070183 [10:53:59]save last doc name /storage/0195/doc_00070183 to /storage/kkm_last_doc_name [10:53:59]save OK [10:53:59]Clear old archive folders... [10:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:59]tlvbuf is 01142360 [10:53:59]SAM_PROTO_ClearQueue [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 09 00 00 [10:53:59]Write to MH i2c: E2 08 00 D4 57 80 09 00 00 00 00 00 00 9D [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 D4 57 00 90 00 9F [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]SAM_PROTO_ClearQueue done [10:53:59]KKMCreateOFDPacket [10:53:59]OFDProtocolAddRootSTLVToBuf [10:53:59]FM_MakeSignedData [10:53:59]FM_MakeSignedData [10:53:59]SAM_PROTO_SignData [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 01 02 [10:53:59]Write to MH i2c: E2 08 00 D5 57 80 0D 01 02 00 00 00 00 A5 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 D5 57 00 90 00 A0 [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]wFMCommunicate request_size=255 [10:53:59]MH_SAM_APDU [10:53: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 83 00 00 00 F4 03 04 00 4B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 12 01 00 35 04 06 00 DB [10:53:59]Write to MH i2c: E2 02 01 D6 57 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 83 00 00 00 F4 03 04 00 4B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 12 01 00 35 04 06 00 DB 00 00 D6 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 D6 57 00 90 00 A1 [10:54:00]RAPDU: 90 00 [10:54:00]wFMCommunicate OK [10:54:00]wFMCommunicate request_size=10 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 0D 02 02 05 85 F1 14 C1 4A [10:54:00]Write to MH i2c: E2 0D 00 D7 57 80 0D 02 02 05 00 85 F1 14 C1 4A 00 00 47 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 D7 57 00 90 00 A2 [10:54:00]RAPDU: 90 00 [10:54:00]wFMCommunicate OK [10:54:00]wFMCommunicate request_size=4 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 0D 03 02 [10:54:00]Write to MH i2c: E2 08 00 D8 57 80 0D 03 02 00 00 00 00 AA [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0B 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0B 00 D8 57 00 46 A0 A2 F3 5F 88 31 91 90 00 CF [10:54:00]RAPDU: 46 A0 A2 F3 5F 88 31 91 90 00 [10:54:00]wFMCommunicate OK [10:54:00]SAM_PROTO_SignData done [10:54:00]FM_MakeSignedData done [10:54:00]CreateOFDProtocolMessage [10:54:00]wFMCommunicate request_size=4 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 11 00 00 [10:54:00]Write to MH i2c: E2 08 00 D9 57 80 11 00 00 00 00 00 00 AA [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 17 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 17 00 D9 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [10:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:00]wFMCommunicate OK [10:54:00]CreateOFDProtocolMessage done [10:54:00]OFDSenderStorePacket 70183 [10:54:00]StoreOFDPacket docnum=70183 [10:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D 6F 07 01 B0 AE 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 83 00 00 00 F4 03 04 00 4B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 12 01 00 35 04 06 00 DB 85 F1 14 C1 4A 46 A0 A2 F3 5F 88 31 91 [10:54:00]CheckFolder [10:54:00]dirname=/storage/ofd_packets [10:54:00]CheckFolder done [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00070183 [10:54:00]NVStorageSaveData ofd_packets/00070183 [10:54:00]File name is /storage/ofd_packets/00070183 [10:54:00]Write 301 bytes [10:54:00]NVStorageSaveData done [10:54:00]OFDSenderStorePacket done [10:54:00]KKMCreateOFDPacket done [10:54:00]NVStorageSaveData kkm_last_timestamp [10:54:00]File name is /storage/kkm_last_timestamp [10:54:00]Write 4 bytes [10:54:00]NVStorageSaveData done [10:54:00]ExternCall_PrintAddStr [10:54:00]wPrintStart [10:54:00]Write to MH i2c: 01 00 00 DA 57 31 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 DA 57 00 00 00 00 00 FF 0F 46 [10:54:00]RasterBufferAndPrint [10:54:00]line Счет N : (1)2885951 [10:54:00]line ИНН: 02508201610067 [10:54:00]line Контрольно-Кассовый Чек [10:54:00]line ПРОДАЖА [10:54:00]line ТРК (МРК, ГНК) : 22 [10:54:00]line Товар: 2710124130 [10:54:00]line Аи-92-К-5 [10:54:00]line 7.480 * 66.90 [10:54:00]line = 500.41 [10:54:00]line НДС 12% НСП 1% [10:54:00]line > о реализуемом товаре [10:54:00]line ОКРУГЛЕНИЕ: -0.41 [10:54:00]line ИТОГО: 500.00 [10:54:00]line Внесено: 500.00 [10:54:00]line СДАЧА: 0.00 [10:54:00]line НСП 1% : 4.43 [10:54:00]line НДС 12% : 53.14 [10:54:00]line Наличными: 500.00 [10:54:00]line Безнал.: 0.00 [10:54:00]line Место: АЗС № 85 "Партнер Нефть" [10:54:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:54:00]line СНО: Общий режим [10:54:00]line Чек 131 22.10.2024 10:54 [10:54:00]line Смена: 195 ФФД: 1.0 [10:54:00]line ЗНМ: 0300000167 [10:54:00]line РНМ: 0000000000156251 [10:54:00]line Версия ККМ: v1.0 [10:54:00]line ФМ: 0000000000963346 [10:54:00]line ФД: 70183 [10:54:00]line ФПД: 241368321802570 [10:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70183&fm=241368321802570&tin=02508201610067®Number=0000000000156251&sum=50000 [10:54:00]OFD Sender: Processing packet 70183 [packets to send 18, broken 17] [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00070183 [10:54:00]OFD Sender: To server: pG, [10:54:00]CommunicateWithHost lk.salyk.kg:30040 [10:54:00]ConnectInit lk.salyk.kg [10:54:00]written 0, free lines is 4095 [10:54:00]Connected sock=10 [10:54: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 34 36 0F 01 00 00 9D 6F 07 01 B0 AE 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 83 00 00 00 F4 03 04 00 4B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 12 01 00 35 04 06 00 DB 85 F1 14 C1 4A 46 A0 A2 F3 5F 88 31 91 [10:54: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 34 36 4F 00 00 00 6F 75 47 00 4E 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 34 36 10 04 04 00 27 12 01 00 F4 03 04 00 EC 2D 17 67 B6 04 01 00 00 09 49 A2 C8 2B 28 54 48 [10:54:01]CommunicateWithHost err = 0 [10:54:01]CheckOFDResponse [10:54:01]1017 (14) - 77093643461234 [10:54:01]1041 (16) - 0000000000963346 [10:54:01]1040 (4) - 70183 [10:54:01]1012 (4) - 22.10.2024 04:45 [10:54:01]1206 (1) - 0 [10:54:01]OFD Sender: Remove packet 70183 [10:54:01]ProducePacketName [10:54:01]name=ofd_packets/00070183 [10:54:01]NVStorageDeleteData [10:54:01]Write to MH i2c: 01 00 00 05 58 5D [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 05 58 00 00 00 00 00 EF 0C 5F [10:54:01]RasterBufferAndPrint [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]written 0, free lines is 3320 [10:54:01]MH_Cut [10:54:01]Write to MH i2c: D1 01 00 0C 58 01 36 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: D1 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: D1 01 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: D1 01 00 0C 58 00 35 [10:54:01]Write to MH i2c: 01 00 00 0D 58 65 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]OFD Sender: No OFD packet to send [10:54:01]*** Cut start [10:54:01]*** Partial cut [10:54:01]*** CUTSNS_PIN = 1 [10:54:01]*** CUTSNS_PIN = 0 [10:54:02]*** Brake cut motor [10:54:02]Read from MH i2c: 01 [10:54:02]MH_I2C_Read... [10:54:02]*** Stop cut motor [10:54:02]*** Cut end [10:54:02]Read from MH i2c: 01 07 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 0D 58 00 00 00 00 00 FF 0F 7A [10:54:02]process_action close_receipt done [10:54:02]requested_data is exist [10:54:02]produce_requested_data [10:54:02]requested_item fm.sn is exist - process it [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 11 00 00 [10:54:02]Write to MH i2c: E2 08 00 0E 58 80 11 00 00 00 00 00 00 E0 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 17 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 17 00 0E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [10:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:02]wFMCommunicate OK [10:54:02]requested_item fd.num is exist - process it [10:54:02]SAM_PROTO_GetFieldsCounters [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 13 00 00 [10:54:02]Write to MH i2c: E2 08 00 0F 58 80 13 00 00 00 00 00 00 E3 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 62 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 62 00 0F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 12 01 00 0E 04 04 00 C3 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 84 [10:54: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 12 01 00 0E 04 04 00 C3 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 [10:54:02]wFMCommunicate OK [10:54:02]SAM_PROTO_GetFieldsCounters done [10:54:02]requested_item shift.num is exist - process it [10:54:02]requested_item shift.opened is exist - process it [10:54:02]req_shift_opened [10:54:02]FM_GetShiftState [10:54:02]SAM_PROTO_GetShiftState [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 13 01 00 [10:54:02]Write to MH i2c: E2 08 00 10 58 80 13 01 00 00 00 00 00 E5 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 0E 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 0E 00 10 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D3 [10:54:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:54:02]wFMCommunicate OK [10:54:02]SAM_PROTO_GetShiftState done [10:54:02]FM_GetShiftState done [10:54:02]req_shift_opened done [10:54:02]requested_item shift.open_date is exist - process it [10:54:02]req_shift_open_date [10:54:02]req_shift_open_date done [10:54:02]produce_requested_data done [10:54:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70183,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:54:02]process_action_free close_receipt [10:54:02]json_value_free [10:54:02]json_value_free done [10:54:02]process_json_proto returns [10:54:02]Send response to host [10:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70183,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:54:02]free response buf [10:54:02]execute_script done [10:54:02]execute_script returns [10:54:02]free content buf [10:54:02]Sock 9.Close socket [10:54:02]Sock 9.Thread stoped [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:46]accept exits with 7 [10:54:46]New connection [10:54:46]New thread 3067026788 created [10:54:46]Thread 3067170148 joined [10:54:46]Waiting for new connection... [10:54:46] Sock 7.Parse request [10:54:46]Sock 7.Check first char [10:54:46]Sock 7.First char is OK [10:54:46]request: POST /json_proto HTTP/1.0 [10:54:46]Method: POST [10:54:46]URL: /json_proto [10:54:46]Method is POST - this is cgi request [10:54:46]url: /json_proto [10:54:46]query_string will be loaded in cgi processing [10:54:46]execute_cgi json_proto POST (null) [10:54:46]execute_cgi path=json_proto method=POST [10:54:46]POST find Content-Length [10:54:46]Host: 172.17.50.3:8080 [10:54:46]Content-Length: 791 [10:54:46]Content-Type: application/json [10:54:46] [10:54:46]POST finish read [10:54:46]Found Content-Length = 791 [10:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:46]execute_script... [10:54: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)2885948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:46]POST & json_proto [10:54:46]process_json_proto [10:54:46]json parsed OK: [10:54:46]protocol is kg_v1.0 [10:54:46]action value=close_receipt [10:54:46]process_action close_receipt [10:54:46]cmd_close_receipt [10:54:46]MH_GetDate [10:54:46]Write to MH i2c: F0 00 00 11 58 58 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 09 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: F0 09 00 11 58 00 7B 84 17 67 6B 98 1E 66 65 [10:54:46]GetLastDocTimeStamp 1729594443 [10:54:46]current date 1729594491 [10:54:46]FM_GetShiftState [10:54:46]SAM_PROTO_GetShiftState [10:54:46]wFMCommunicate request_size=4 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 13 01 00 [10:54:46]Write to MH i2c: E2 08 00 12 58 80 13 01 00 00 00 00 00 E7 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 0E 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 0E 00 12 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D5 [10:54:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:54:46]wFMCommunicate OK [10:54:46]SAM_PROTO_GetShiftState done [10:54:46]FM_GetShiftState done [10:54:46]opened in 1729555832 [10:54:46]opened+sec_in_day 1729642232 [10:54:46]quantity*price = 0 [10:54:46]sum+1 = 1 [10:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 132 22.10.2024 10:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 70184 ФПД: 273397454501467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70184&fm=273397454501467&tin=02508201610067®Number=0000000000156251&sum=0 [10:54:47]StoreToDocumentArchive [10:54:47]shift 195 fd 70184 [10:54:47]save to /storage/0195/doc_00070184 [10:54:47]save last doc name /storage/0195/doc_00070184 to /storage/kkm_last_doc_name [10:54:47]save OK [10:54:47]Clear old archive folders... [10:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:47]tlvbuf is 01101660 [10:54:47]SAM_PROTO_ClearQueue [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 09 00 00 [10:54:47]Write to MH i2c: E2 08 00 1F 58 80 09 00 00 00 00 00 00 E9 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 03 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 03 00 1F 58 00 90 00 EB [10:54:47]RAPDU: 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_ClearQueue done [10:54:47]KKMCreateOFDPacket [10:54:47]OFDProtocolAddRootSTLVToBuf [10:54:47]FM_MakeSignedData [10:54:47]FM_MakeSignedData [10:54:47]SAM_PROTO_SignData [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 0D 01 02 [10:54:47]Write to MH i2c: E2 08 00 20 58 80 0D 01 02 00 00 00 00 F1 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 20 58 00 90 00 EC [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=255 [10:54:48]MH_SAM_APDU [10:54: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 A0 86 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 84 00 00 00 F4 03 04 00 7B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 12 01 00 35 04 06 00 F8 A7 4E 28 [10:54:48]Write to MH i2c: E2 02 01 21 58 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 A0 86 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 84 00 00 00 F4 03 04 00 7B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 12 01 00 35 04 06 00 F8 A7 4E 28 00 00 83 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 21 58 00 90 00 ED [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=7 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 02 02 02 76 5B [10:54:48]Write to MH i2c: E2 0A 00 22 58 80 0D 02 02 02 00 76 5B 00 00 C9 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 22 58 00 90 00 EE [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 0D 03 02 [10:54:48]Write to MH i2c: E2 08 00 23 58 80 0D 03 02 00 00 00 00 F6 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 0B 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 0B 00 23 58 00 30 CF AB 0A 62 97 60 68 90 00 6C [10:54:48]RAPDU: 30 CF AB 0A 62 97 60 68 90 00 [10:54:48]wFMCommunicate OK [10:54:48]SAM_PROTO_SignData done [10:54:48]FM_MakeSignedData done [10:54:48]CreateOFDProtocolMessage [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 11 00 00 [10:54:48]Write to MH i2c: E2 08 00 24 58 80 11 00 00 00 00 00 00 F6 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 24 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [10:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:48]wFMCommunicate OK [10:54:48]CreateOFDProtocolMessage done [10:54:48]OFDSenderStorePacket 70184 [10:54:48]StoreOFDPacket docnum=70184 [10:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9F 2C 04 01 8F CD 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 A0 86 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 84 00 00 00 F4 03 04 00 7B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 12 01 00 35 04 06 00 F8 A7 4E 28 76 5B 30 CF AB 0A 62 97 60 68 [10:54:48]CheckFolder [10:54:48]dirname=/storage/ofd_packets [10:54:48]CheckFolder done [10:54:48]ProducePacketName [10:54:48]name=ofd_packets/00070184 [10:54:48]NVStorageSaveData ofd_packets/00070184 [10:54:48]File name is /storage/ofd_packets/00070184 [10:54:48]Write 298 bytes [10:54:48]NVStorageSaveData done [10:54:48]OFDSenderStorePacket done [10:54:48]KKMCreateOFDPacket done [10:54:48]NVStorageSaveData kkm_last_timestamp [10:54:48]File name is /storage/kkm_last_timestamp [10:54:48]Write 4 bytes [10:54:48]NVStorageSaveData done [10:54:48]ExternCall_PrintAddStr [10:54:48]wPrintStart [10:54:48]Write to MH i2c: 01 00 00 25 58 7D [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 25 58 00 00 00 00 00 FF 0F 92 [10:54:48]RasterBufferAndPrint [10:54:48]line Счет N : (1)2885948 [10:54:48]line ИНН: 02508201610067 [10:54:48]line Контрольно-Кассовый Чек [10:54:48]line ПРОДАЖА [10:54:48]line ТРК (МРК, ГНК) : 61 [10:54:48]line Товар: 2710194210 [10:54:48]line ДТ-К-5 [10:54:48]line 100.000 * 0.00 [10:54:48]line = 0.00 [10:54:48]line НДС 12% НСП 1% [10:54:48]line > о реализуемом товаре [10:54:48]line ИТОГО: 0.00 [10:54:48]line НСП 1% : 0.00 [10:54:48]line НДС 12% : 0.00 [10:54:48]line Наличными: 0.00 [10:54:48]line Безнал.: 0.00 [10:54:48]line Место: АЗС № 85 "Партнер Нефть" [10:54:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:54:48]line СНО: Общий режим [10:54:48]line Чек 132 22.10.2024 10:54 [10:54:48]line Смена: 195 ФФД: 1.0 [10:54:48]line ЗНМ: 0300000167 [10:54:48]line РНМ: 0000000000156251 [10:54:48]line Версия ККМ: v1.0 [10:54:48]line Талоны: Топливная Карта [10:54:48]line 31095 [10:54:48]line ФМ: 0000000000963346 [10:54:48]line ФД: 70184 [10:54:48]line ФПД: 273397454501467 [10:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70184&fm=273397454501467&tin=02508201610067®Number=0000000000156251&sum=0 [10:54:48]OFD Sender: Processing packet 70184 [packets to send 18, broken 17] [10:54:48]ProducePacketName [10:54:48]name=ofd_packets/00070184 [10:54:48]OFD Sender: To server: pG, [10:54:48]CommunicateWithHost lk.salyk.kg:30040 [10:54:48]ConnectInit lk.salyk.kg [10:54:48]written 0, free lines is 4095 [10:54:48]Connected sock=10 [10:54: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 34 36 0C 01 00 00 9F 2C 04 01 8F CD 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 A0 86 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 84 00 00 00 F4 03 04 00 7B 84 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 12 01 00 35 04 06 00 F8 A7 4E 28 76 5B 30 CF AB 0A 62 97 60 68 [10:54: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 34 36 4F 00 00 00 55 A2 47 00 A0 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 34 36 10 04 04 00 28 12 01 00 F4 03 04 00 1C 2E 17 67 B6 04 01 00 00 75 B1 CB F2 A4 65 CF AA [10:54:49]CommunicateWithHost err = 0 [10:54:49]CheckOFDResponse [10:54:49]1017 (14) - 77093643461234 [10:54:49]1041 (16) - 0000000000963346 [10:54:49]1040 (4) - 70184 [10:54:49]1012 (4) - 22.10.2024 04:46 [10:54:49]1206 (1) - 0 [10:54:49]OFD Sender: Remove packet 70184 [10:54:49]ProducePacketName [10:54:49]name=ofd_packets/00070184 [10:54:49]NVStorageDeleteData [10:54:49]Write to MH i2c: 01 00 00 4F 58 A7 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 4F 58 00 00 00 00 00 FE 0C B8 [10:54:49]RasterBufferAndPrint [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]line [10:54:49]written 0, free lines is 3332 [10:54:49]MH_Cut [10:54:49]Write to MH i2c: D1 01 00 56 58 01 80 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 01 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: D1 01 00 56 58 00 7F [10:54:49]Write to MH i2c: 01 00 00 57 58 AF [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]OFD Sender: No OFD packet to send [10:54:49]*** Cut start [10:54:49]*** Partial cut [10:54:49]*** CUTSNS_PIN = 1 [10:54:49]*** CUTSNS_PIN = 0 [10:54:50]*** Brake cut motor [10:54:50]Read from MH i2c: 01 [10:54:50]MH_I2C_Read... [10:54:50]*** Stop cut motor [10:54:50]*** Cut end [10:54:50]Read from MH i2c: 01 07 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 57 58 00 00 00 00 00 FF 0F C4 [10:54:50]process_action close_receipt done [10:54:50]requested_data is exist [10:54:50]produce_requested_data [10:54:50]requested_item fm.sn is exist - process it [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 11 00 00 [10:54:50]Write to MH i2c: E2 08 00 58 58 80 11 00 00 00 00 00 00 2A [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 17 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 17 00 58 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [10:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:50]wFMCommunicate OK [10:54:50]requested_item fd.num is exist - process it [10:54:50]SAM_PROTO_GetFieldsCounters [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 13 00 00 [10:54:50]Write to MH i2c: E2 08 00 59 58 80 13 00 00 00 00 00 00 2D [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 62 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 62 00 59 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 12 01 00 0E 04 04 00 C3 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 D2 [10:54: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 12 01 00 0E 04 04 00 C3 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 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_GetFieldsCounters done [10:54:50]requested_item shift.num is exist - process it [10:54:50]requested_item shift.opened is exist - process it [10:54:50]req_shift_opened [10:54:50]FM_GetShiftState [10:54:50]SAM_PROTO_GetShiftState [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 13 01 00 [10:54:50]Write to MH i2c: E2 08 00 5A 58 80 13 01 00 00 00 00 00 2F [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 5A 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1D [10:54:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_GetShiftState done [10:54:50]FM_GetShiftState done [10:54:50]req_shift_opened done [10:54:50]requested_item shift.open_date is exist - process it [10:54:50]req_shift_open_date [10:54:50]req_shift_open_date done [10:54:50]produce_requested_data done [10:54:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70184,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [10:54:50]process_action_free close_receipt [10:54:50]json_value_free [10:54:50]json_value_free done [10:54:50]process_json_proto returns [10:54:50]Send response to host [10:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70184,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [10:54:50]free response buf [10:54:50]execute_script done [10:54:50]execute_script returns [10:54:50]free content buf [10:54:50]Sock 7.Close socket [10:54:50]Sock 7.Thread stoped [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]accept exits with 9 [11:00:14]New connection [11:00:14]New thread 3067170148 created [11:00:14]Thread 3067026788 joined [11:00:14]Waiting for new connection... [11:00:14] Sock 9.Parse request [11:00:14]Sock 9.Check first char [11:00:14]Sock 9.First char is OK [11:00:14]request: POST /json_proto HTTP/1.0 [11:00:14]Method: POST [11:00:14]URL: /json_proto [11:00:14]Method is POST - this is cgi request [11:00:14]url: /json_proto [11:00:14]query_string will be loaded in cgi processing [11:00:14]execute_cgi json_proto POST (null) [11:00:14]execute_cgi path=json_proto method=POST [11:00:14]POST find Content-Length [11:00:14]Host: 172.17.50.3:8080 [11:00:14]Content-Length: 689 [11:00:14]Content-Type: application/json [11:00:14] [11:00:14]POST finish read [11:00:14]Found Content-Length = 689 [11:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:00:14]execute_script... [11:00: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)2885952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:00:14]POST & json_proto [11:00:14]process_json_proto [11:00:14]json parsed OK: [11:00:14]protocol is kg_v1.0 [11:00:14]action value=close_receipt [11:00:14]process_action close_receipt [11:00:14]cmd_close_receipt [11:00:14]MH_GetDate [11:00:14]Write to MH i2c: F0 00 00 5B 58 A2 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 09 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 09 00 5B 58 00 C3 85 17 67 6B 98 1E 66 F8 [11:00:14]GetLastDocTimeStamp 1729594491 [11:00:14]current date 1729594819 [11:00:14]FM_GetShiftState [11:00:14]SAM_PROTO_GetShiftState [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 13 01 00 [11:00:14]Write to MH i2c: E2 08 00 5C 58 80 13 01 00 00 00 00 00 31 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0E 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0E 00 5C 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1F [11:00:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_GetShiftState done [11:00:14]FM_GetShiftState done [11:00:14]opened in 1729555832 [11:00:14]opened+sec_in_day 1729642232 [11:00:14]quantity*price = 150076 [11:00:14]sum+1 = 150078 [11:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 133 22.10.2024 11:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70185 ФПД: 39192247408384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70185&fm=39192247408384&tin=02508201610067®Number=0000000000156251&sum=150000 [11:00:15]StoreToDocumentArchive [11:00:15]shift 195 fd 70185 [11:00:15]save to /storage/0195/doc_00070185 [11:00:15]save last doc name /storage/0195/doc_00070185 to /storage/kkm_last_doc_name [11:00:15]save OK [11:00:15]Clear old archive folders... [11:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:00:15]tlvbuf is 011235E0 [11:00:15]SAM_PROTO_ClearQueue [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 09 00 00 [11:00:15]Write to MH i2c: E2 08 00 69 58 80 09 00 00 00 00 00 00 33 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 69 58 00 90 00 35 [11:00:15]RAPDU: 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_ClearQueue done [11:00:15]KKMCreateOFDPacket [11:00:15]OFDProtocolAddRootSTLVToBuf [11:00:15]FM_MakeSignedData [11:00:15]FM_MakeSignedData [11:00:15]SAM_PROTO_SignData [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 0D 01 02 [11:00:15]Write to MH i2c: E2 08 00 6A 58 80 0D 01 02 00 00 00 00 3B [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 6A 58 00 90 00 36 [11:00:16]RAPDU: 90 00 [11:00:16]wFMCommunicate OK [11:00:16]wFMCommunicate request_size=255 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 85 00 00 00 F4 03 04 00 C3 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 12 01 [11:00:16]Write to MH i2c: E2 02 01 6B 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 85 00 00 00 F4 03 04 00 C3 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 12 01 00 00 29 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 6B 58 00 90 00 37 [11:00:16]RAPDU: 90 00 [11:00:16]wFMCommunicate OK [11:00:16]wFMCommunicate request_size=16 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 A5 27 FC 17 00 [11:00:16]Write to MH i2c: E2 13 00 6C 58 80 0D 02 02 0B 00 00 35 04 06 00 23 A5 27 FC 17 00 00 00 95 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 03 00 6C 58 00 90 00 38 [11:00:16]RAPDU: 90 00 [11:00:16]wFMCommunicate OK [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 0D 03 02 [11:00:16]Write to MH i2c: E2 08 00 6D 58 80 0D 03 02 00 00 00 00 40 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0B 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0B 00 6D 58 00 B9 FA 6F BA F7 C2 F0 BE 90 00 84 [11:00:16]RAPDU: B9 FA 6F BA F7 C2 F0 BE 90 00 [11:00:16]wFMCommunicate OK [11:00:16]SAM_PROTO_SignData done [11:00:16]FM_MakeSignedData done [11:00:16]CreateOFDProtocolMessage [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 11 00 00 [11:00:16]Write to MH i2c: E2 08 00 6E 58 80 11 00 00 00 00 00 00 40 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 6E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [11:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:00:16]wFMCommunicate OK [11:00:16]CreateOFDProtocolMessage done [11:00:16]OFDSenderStorePacket 70185 [11:00:16]StoreOFDPacket docnum=70185 [11:00:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 77 11 0D 01 B9 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 85 00 00 00 F4 03 04 00 C3 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 12 01 00 35 04 06 00 23 A5 27 FC 17 00 B9 FA 6F BA F7 C2 F0 BE [11:00:16]CheckFolder [11:00:16]dirname=/storage/ofd_packets [11:00:16]CheckFolder done [11:00:16]ProducePacketName [11:00:16]name=ofd_packets/00070185 [11:00:16]NVStorageSaveData ofd_packets/00070185 [11:00:16]File name is /storage/ofd_packets/00070185 [11:00:16]Write 307 bytes [11:00:16]NVStorageSaveData done [11:00:16]OFDSenderStorePacket done [11:00:16]KKMCreateOFDPacket done [11:00:16]NVStorageSaveData kkm_last_timestamp [11:00:16]File name is /storage/kkm_last_timestamp [11:00:16]Write 4 bytes [11:00:16]NVStorageSaveData done [11:00:16]ExternCall_PrintAddStr [11:00:16]wPrintStart [11:00:16]Write to MH i2c: 01 00 00 6F 58 C7 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 6F 58 00 00 00 00 00 FF 0F DC [11:00:16]RasterBufferAndPrint [11:00:16]line Счет N : (1)2885952 [11:00:16]line ИНН: 02508201610067 [11:00:16]line Контрольно-Кассовый Чек [11:00:16]line ПРОДАЖА [11:00:16]line ТРК (МРК, ГНК) : 41 [11:00:16]line Товар: 2710194240 [11:00:16]line D-ENERGY Дт-К-2 [11:00:16]line 19.440 * 77.20 [11:00:16]line = 1500.77 [11:00:16]line НДС 12% НСП 1% [11:00:16]line > о реализуемом товаре [11:00:16]line ОКРУГЛЕНИЕ: -0.77 [11:00:16]line ИТОГО: 1500.00 [11:00:16]line Внесено: 1500.00 [11:00:16]line СДАЧА: 0.00 [11:00:16]line НСП 1% : 13.28 [11:00:16]line НДС 12% : 159.37 [11:00:16]line Наличными: 1500.00 [11:00:16]line Безнал.: 0.00 [11:00:16]line Место: АЗС № 85 "Партнер Нефть" [11:00:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:00:16]line СНО: Общий режим [11:00:16]line Чек 133 22.10.2024 11:00 [11:00:16]line Смена: 195 ФФД: 1.0 [11:00:16]line ЗНМ: 0300000167 [11:00:16]line РНМ: 0000000000156251 [11:00:16]line Версия ККМ: v1.0 [11:00:16]line ФМ: 0000000000963346 [11:00:16]line ФД: 70185 [11:00:16]line ФПД: 39192247408384 [11:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70185&fm=39192247408384&tin=02508201610067®Number=0000000000156251&sum=150000 [11:00:16]OFD Sender: Processing packet 70185 [packets to send 18, broken 17] [11:00:16]ProducePacketName [11:00:16]name=ofd_packets/00070185 [11:00:16]OFD Sender: To server: pG, [11:00:16]CommunicateWithHost lk.salyk.kg:30040 [11:00:16]ConnectInit lk.salyk.kg [11:00:16]written 0, free lines is 4095 [11:00:16]Connected sock=10 [11:00: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 34 36 15 01 00 00 77 11 0D 01 B9 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 85 00 00 00 F4 03 04 00 C3 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 12 01 00 35 04 06 00 23 A5 27 FC 17 00 B9 FA 6F BA F7 C2 F0 BE [11:00: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 34 36 4F 00 00 00 2F 82 47 00 7B 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 34 36 10 04 04 00 29 12 01 00 F4 03 04 00 64 2F 17 67 B6 04 01 00 00 7D 61 A6 F9 B4 7F 18 7E [11:00:17]CommunicateWithHost err = 0 [11:00:17]CheckOFDResponse [11:00:17]1017 (14) - 77093643461234 [11:00:17]1041 (16) - 0000000000963346 [11:00:17]1040 (4) - 70185 [11:00:17]1012 (4) - 22.10.2024 04:51 [11:00:17]1206 (1) - 0 [11:00:17]OFD Sender: Remove packet 70185 [11:00:17]ProducePacketName [11:00:17]name=ofd_packets/00070185 [11:00:17]NVStorageDeleteData [11:00:17]Write to MH i2c: 01 00 00 9A 58 F2 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 07 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 07 00 9A 58 00 00 00 00 00 EF 0C F4 [11:00:17]RasterBufferAndPrint [11:00:17]line [11:00:17]line [11:00:17]line [11:00:17]line [11:00:17]line [11:00:17]written 0, free lines is 3320 [11:00:17]MH_Cut [11:00:17]Write to MH i2c: D1 01 00 A1 58 01 CB [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: D1 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: D1 01 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: D1 01 00 A1 58 00 CA [11:00:17]Write to MH i2c: 01 00 00 A2 58 FA [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]OFD Sender: No OFD packet to send [11:00:17]*** Cut start [11:00:17]*** Partial cut [11:00:17]*** CUTSNS_PIN = 1 [11:00:17]*** CUTSNS_PIN = 0 [11:00:18]*** Brake cut motor [11:00:18]Read from MH i2c: 01 [11:00:18]MH_I2C_Read... [11:00:18]*** Stop cut motor [11:00:18]*** Cut end [11:00:18]Read from MH i2c: 01 07 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: 01 07 00 A2 58 00 00 00 00 00 FF 0F 0F [11:00:18]process_action close_receipt done [11:00:18]requested_data is exist [11:00:18]produce_requested_data [11:00:18]requested_item fm.sn is exist - process it [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 11 00 00 [11:00:18]Write to MH i2c: E2 08 00 A3 58 80 11 00 00 00 00 00 00 75 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 17 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 17 00 A3 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [11:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:00:18]wFMCommunicate OK [11:00:18]requested_item fd.num is exist - process it [11:00:18]SAM_PROTO_GetFieldsCounters [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 00 00 [11:00:18]Write to MH i2c: E2 08 00 A4 58 80 13 00 00 00 00 00 00 78 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 62 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 62 00 A4 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 12 01 00 0E 04 04 00 C3 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 21 [11:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 12 01 00 0E 04 04 00 C3 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 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_GetFieldsCounters done [11:00:18]requested_item shift.num is exist - process it [11:00:18]requested_item shift.opened is exist - process it [11:00:18]req_shift_opened [11:00:18]FM_GetShiftState [11:00:18]SAM_PROTO_GetShiftState [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 01 00 [11:00:18]Write to MH i2c: E2 08 00 A5 58 80 13 01 00 00 00 00 00 7A [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:18]Read from MH i2c: E2 0E 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 0E 00 A5 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 68 [11:00:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_GetShiftState done [11:00:18]FM_GetShiftState done [11:00:18]req_shift_opened done [11:00:18]requested_item shift.open_date is exist - process it [11:00:18]req_shift_open_date [11:00:18]req_shift_open_date done [11:00:18]produce_requested_data done [11:00:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70185,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:00:18]process_action_free close_receipt [11:00:18]json_value_free [11:00:18]json_value_free done [11:00:18]process_json_proto returns [11:00:18]Send response to host [11:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70185,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:00:18]free response buf [11:00:18]execute_script done [11:00:18]execute_script returns [11:00:18]free content buf [11:00:18]Sock 9.Close socket [11:00:18]Sock 9.Thread stoped [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]accept exits with 7 [11:00:52]New connection [11:00:52]New thread 3067026788 created [11:00:52]Thread 3067170148 joined [11:00:52]Waiting for new connection... [11:00:52] Sock 7.Parse request [11:00:52]Sock 7.Check first char [11:00:52]Sock 7.First char is OK [11:00:52]request: POST /json_proto HTTP/1.0 [11:00:52]Method: POST [11:00:52]URL: /json_proto [11:00:52]Method is POST - this is cgi request [11:00:52]url: /json_proto [11:00:52]query_string will be loaded in cgi processing [11:00:52]execute_cgi json_proto POST (null) [11:00:52]execute_cgi path=json_proto method=POST [11:00:52]POST find Content-Length [11:00:52]Host: 172.17.50.3:8080 [11:00:52]Content-Length: 801 [11:00:52]Content-Type: application/json [11:00:52] [11:00:52]POST finish read [11:00:52]Found Content-Length = 801 [11:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u000A4107726", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:52]execute_script... [11:00: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)2885953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u000A4107726", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:52]POST & json_proto [11:00:52]process_json_proto [11:00:52]json parsed OK: [11:00:52]protocol is kg_v1.0 [11:00:52]action value=close_receipt [11:00:52]process_action close_receipt [11:00:52]cmd_close_receipt [11:00:52]MH_GetDate [11:00:52]Write to MH i2c: F0 00 00 A6 58 ED [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: F0 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: F0 09 00 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: F0 09 00 A6 58 00 E9 85 17 67 6B 98 1E 66 69 [11:00:52]GetLastDocTimeStamp 1729594819 [11:00:52]current date 1729594857 [11:00:52]FM_GetShiftState [11:00:52]SAM_PROTO_GetShiftState [11:00:52]wFMCommunicate request_size=4 [11:00:52]MH_SAM_APDU [11:00:52]CAPDU: 80 13 01 00 [11:00:52]Write to MH i2c: E2 08 00 A7 58 80 13 01 00 00 00 00 00 7C [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:52]Read from MH i2c: E2 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: E2 0E 00 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: E2 0E 00 A7 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6A [11:00:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:00:52]wFMCommunicate OK [11:00:52]SAM_PROTO_GetShiftState done [11:00:52]FM_GetShiftState done [11:00:52]opened in 1729555832 [11:00:52]opened+sec_in_day 1729642232 [11:00:52]quantity*price = 0 [11:00:52]sum+1 = 1 [11:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 134 22.10.2024 11:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4107726 ФМ: 0000000000963346 ФД: 70186 ФПД: 25571181949914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70186&fm=25571181949914&tin=02508201610067®Number=0000000000156251&sum=0 [11:00:53]StoreToDocumentArchive [11:00:53]shift 195 fd 70186 [11:00:53]save to /storage/0195/doc_00070186 [11:00:53]save last doc name /storage/0195/doc_00070186 to /storage/kkm_last_doc_name [11:00:53]save OK [11:00:53]Clear old archive folders... [11:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:53]tlvbuf is 01208650 [11:00:53]SAM_PROTO_ClearQueue [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 09 00 00 [11:00:53]Write to MH i2c: E2 08 00 B4 58 80 09 00 00 00 00 00 00 7E [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 B4 58 00 90 00 80 [11:00:53]RAPDU: 90 00 [11:00:53]wFMCommunicate OK [11:00:53]SAM_PROTO_ClearQueue done [11:00:53]KKMCreateOFDPacket [11:00:53]OFDProtocolAddRootSTLVToBuf [11:00:53]FM_MakeSignedData [11:00:53]FM_MakeSignedData [11:00:53]SAM_PROTO_SignData [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 0D 01 02 [11:00:53]Write to MH i2c: E2 08 00 B5 58 80 0D 01 02 00 00 00 00 86 [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 B5 58 00 90 00 81 [11:00:53]RAPDU: 90 00 [11:00:53]wFMCommunicate OK [11:00:53]wFMCommunicate request_size=255 [11:00:53]MH_SAM_APDU [11:00: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 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 86 00 00 00 F4 03 04 00 E9 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 12 01 00 35 04 06 00 17 [11:00:53]Write to MH i2c: E2 02 01 B6 58 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 86 00 00 00 F4 03 04 00 E9 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 12 01 00 35 04 06 00 17 00 00 4A [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 B6 58 00 90 00 82 [11:00:53]RAPDU: 90 00 [11:00:53]wFMCommunicate OK [11:00:53]wFMCommunicate request_size=10 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 0D 02 02 05 41 C1 37 73 DA [11:00:53]Write to MH i2c: E2 0D 00 B7 58 80 0D 02 02 05 00 41 C1 37 73 DA 00 00 19 [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 03 00 B7 58 00 90 00 83 [11:00:53]RAPDU: 90 00 [11:00:53]wFMCommunicate OK [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 0D 03 02 [11:00:53]Write to MH i2c: E2 08 00 B8 58 80 0D 03 02 00 00 00 00 8B [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0B 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0B 00 B8 58 00 57 E2 E9 E0 C8 8C A8 70 90 00 FA [11:00:53]RAPDU: 57 E2 E9 E0 C8 8C A8 70 90 00 [11:00:53]wFMCommunicate OK [11:00:53]SAM_PROTO_SignData done [11:00:53]FM_MakeSignedData done [11:00:53]CreateOFDProtocolMessage [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 11 00 00 [11:00:53]Write to MH i2c: E2 08 00 B9 58 80 11 00 00 00 00 00 00 8B [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 17 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 17 00 B9 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [11:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:00:54]wFMCommunicate OK [11:00:54]CreateOFDProtocolMessage done [11:00:54]OFDSenderStorePacket 70186 [11:00:54]StoreOFDPacket docnum=70186 [11:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D9 4E 07 01 78 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 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 86 00 00 00 F4 03 04 00 E9 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 12 01 00 35 04 06 00 17 41 C1 37 73 DA 57 E2 E9 E0 C8 8C A8 70 [11:00:54]CheckFolder [11:00:54]dirname=/storage/ofd_packets [11:00:54]CheckFolder done [11:00:54]ProducePacketName [11:00:54]name=ofd_packets/00070186 [11:00:54]NVStorageSaveData ofd_packets/00070186 [11:00:54]File name is /storage/ofd_packets/00070186 [11:00:54]Write 301 bytes [11:00:54]NVStorageSaveData done [11:00:54]OFDSenderStorePacket done [11:00:54]KKMCreateOFDPacket done [11:00:54]NVStorageSaveData kkm_last_timestamp [11:00:54]File name is /storage/kkm_last_timestamp [11:00:54]Write 4 bytes [11:00:54]NVStorageSaveData done [11:00:54]ExternCall_PrintAddStr [11:00:54]wPrintStart [11:00:54]Write to MH i2c: 01 00 00 BA 58 12 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 BA 58 00 00 00 00 00 FF 0F 27 [11:00:54]RasterBufferAndPrint [11:00:54]line Счет N : (1)2885953 [11:00:54]line ИНН: 02508201610067 [11:00:54]line Контрольно-Кассовый Чек [11:00:54]line ПРОДАЖА [11:00:54]line ТРК (МРК, ГНК) : 22 [11:00:54]line Товар: 2710124130 [11:00:54]line Аи-92-К-5 [11:00:54]line 10.000 * 0.00 [11:00:54]line = 0.00 [11:00:54]line НДС 12% НСП 1% [11:00:54]line > о реализуемом товаре [11:00:54]line ИТОГО: 0.00 [11:00:54]line НСП 1% : 0.00 [11:00:54]line НДС 12% : 0.00 [11:00:54]line Наличными: 0.00 [11:00:54]line Безнал.: 0.00 [11:00:54]line Место: АЗС № 85 "Партнер Нефть" [11:00:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:00:54]line СНО: Общий режим [11:00:54]line Чек 134 22.10.2024 11:00 [11:00:54]line Смена: 195 ФФД: 1.0 [11:00:54]line ЗНМ: 0300000167 [11:00:54]line РНМ: 0000000000156251 [11:00:54]line Версия ККМ: v1.0 [11:00:54]line Талоны: Топливные Талоны [11:00:54]line 4107726 [11:00:54]line ФМ: 0000000000963346 [11:00:54]line ФД: 70186 [11:00:54]line ФПД: 25571181949914 [11:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70186&fm=25571181949914&tin=02508201610067®Number=0000000000156251&sum=0 [11:00:54]OFD Sender: Processing packet 70186 [packets to send 18, broken 17] [11:00:54]ProducePacketName [11:00:54]name=ofd_packets/00070186 [11:00:54]OFD Sender: To server: pG, [11:00:54]CommunicateWithHost lk.salyk.kg:30040 [11:00:54]ConnectInit lk.salyk.kg [11:00:54]written 0, free lines is 4095 [11:00:54]Connected sock=10 [11:00: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 34 36 0F 01 00 00 D9 4E 07 01 78 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 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 86 00 00 00 F4 03 04 00 E9 85 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 12 01 00 35 04 06 00 17 41 C1 37 73 DA 57 E2 E9 E0 C8 8C A8 70 [11:00: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 34 36 4F 00 00 00 72 04 47 00 81 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 12 01 00 F4 03 04 00 8A 2F 17 67 B6 04 01 00 00 63 28 0C B8 F7 4D E9 0E [11:00:54]CommunicateWithHost err = 0 [11:00:54]CheckOFDResponse [11:00:54]1017 (14) - 77093643461234 [11:00:54]1041 (16) - 0000000000963346 [11:00:54]1040 (4) - 70186 [11:00:54]1012 (4) - 22.10.2024 04:52 [11:00:54]1206 (1) - 0 [11:00:54]OFD Sender: Remove packet 70186 [11:00:54]ProducePacketName [11:00:54]name=ofd_packets/00070186 [11:00:54]NVStorageDeleteData [11:00:54]Write to MH i2c: 01 00 00 E4 58 3C [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: 01 07 00 E4 58 00 00 00 00 00 F6 0C 45 [11:00:54]RasterBufferAndPrint [11:00:54]line [11:00:54]line [11:00:54]line [11:00:54]line [11:00:54]line [11:00:54]written 0, free lines is 3324 [11:00:54]MH_Cut [11:00:54]Write to MH i2c: D1 01 00 EB 58 01 15 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: D1 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: D1 01 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: D1 01 00 EB 58 00 14 [11:00:54]Write to MH i2c: 01 00 00 EC 58 44 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:55]OFD Sender: No OFD packet to send [11:00:55]*** Cut start [11:00:55]*** Partial cut [11:00:55]*** CUTSNS_PIN = 1 [11:00:55]*** CUTSNS_PIN = 0 [11:00:55]*** Brake cut motor [11:00:56]Read from MH i2c: 01 [11:00:56]MH_I2C_Read... [11:00:56]*** Stop cut motor [11:00:56]*** Cut end [11:00:56]Read from MH i2c: 01 07 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 EC 58 00 00 00 00 00 FF 0F 59 [11:00:56]process_action close_receipt done [11:00:56]requested_data is exist [11:00:56]produce_requested_data [11:00:56]requested_item fm.sn is exist - process it [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 11 00 00 [11:00:56]Write to MH i2c: E2 08 00 ED 58 80 11 00 00 00 00 00 00 BF [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 ED 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [11:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:00:56]wFMCommunicate OK [11:00:56]requested_item fd.num is exist - process it [11:00:56]SAM_PROTO_GetFieldsCounters [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 13 00 00 [11:00:56]Write to MH i2c: E2 08 00 EE 58 80 13 00 00 00 00 00 00 C2 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 62 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 62 00 EE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 12 01 00 0E 04 04 00 C3 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 6F [11:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 12 01 00 0E 04 04 00 C3 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 [11:00:56]wFMCommunicate OK [11:00:56]SAM_PROTO_GetFieldsCounters done [11:00:56]requested_item shift.num is exist - process it [11:00:56]requested_item shift.opened is exist - process it [11:00:56]req_shift_opened [11:00:56]FM_GetShiftState [11:00:56]SAM_PROTO_GetShiftState [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 13 01 00 [11:00:56]Write to MH i2c: E2 08 00 EF 58 80 13 01 00 00 00 00 00 C4 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0E 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0E 00 EF 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B2 [11:00:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:00:56]wFMCommunicate OK [11:00:56]SAM_PROTO_GetShiftState done [11:00:56]FM_GetShiftState done [11:00:56]req_shift_opened done [11:00:56]requested_item shift.open_date is exist - process it [11:00:56]req_shift_open_date [11:00:56]req_shift_open_date done [11:00:56]produce_requested_data done [11:00:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70186,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:00:56]process_action_free close_receipt [11:00:56]json_value_free [11:00:56]json_value_free done [11:00:56]process_json_proto returns [11:00:56]Send response to host [11:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70186,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:00:56]free response buf [11:00:56]execute_script done [11:00:56]execute_script returns [11:00:56]free content buf [11:00:56]Sock 7.Close socket [11:00:56]Sock 7.Thread stoped [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:39]accept exits with 9 [11:08:39]New connection [11:08:39]New thread 3067170148 created [11:08:39]Thread 3067026788 joined [11:08:39]Waiting for new connection... [11:08:39] Sock 9.Parse request [11:08:39]Sock 9.Check first char [11:08:39]Sock 9.First char is OK [11:08:39]request: POST /json_proto HTTP/1.0 [11:08:39]Method: POST [11:08:39]URL: /json_proto [11:08:39]Method is POST - this is cgi request [11:08:39]url: /json_proto [11:08:39]query_string will be loaded in cgi processing [11:08:39]execute_cgi json_proto POST (null) [11:08:39]execute_cgi path=json_proto method=POST [11:08:39]POST find Content-Length [11:08:39]Host: 172.17.50.3:8080 [11:08:39]Content-Length: 755 [11:08:39]Content-Type: application/json [11:08:39] [11:08:39]POST finish read [11:08:39]Found Content-Length = 755 [11:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:39]execute_script... [11:08: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)2885954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:39]POST & json_proto [11:08:39]process_json_proto [11:08:39]json parsed OK: [11:08:39]protocol is kg_v1.0 [11:08:39]action value=close_receipt [11:08:39]process_action close_receipt [11:08:39]cmd_close_receipt [11:08:39]MH_GetDate [11:08:39]Write to MH i2c: F0 00 00 F0 58 37 [11:08:39]Write i2c OK [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: F0 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: F0 09 00 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: F0 09 00 F0 58 00 BC 87 17 67 6B 98 1E 66 88 [11:08:39]GetLastDocTimeStamp 1729594857 [11:08:39]current date 1729595324 [11:08:39]FM_GetShiftState [11:08:39]SAM_PROTO_GetShiftState [11:08:39]wFMCommunicate request_size=4 [11:08:39]MH_SAM_APDU [11:08:39]CAPDU: 80 13 01 00 [11:08:39]Write to MH i2c: E2 08 00 F1 58 80 13 01 00 00 00 00 00 C6 [11:08:39]Write i2c OK [11:08:39]MH_I2C_Read... [11:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:39]Read from MH i2c: E2 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 0E 00 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 0E 00 F1 58 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B4 [11:08:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:08:39]wFMCommunicate OK [11:08:39]SAM_PROTO_GetShiftState done [11:08:39]FM_GetShiftState done [11:08:39]opened in 1729555832 [11:08:39]opened+sec_in_day 1729642232 [11:08:39]quantity*price = 0 [11:08:39]sum+1 = 1 [11:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 135 22.10.2024 11:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70187 ФПД: 32446510268268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110844&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70187&fm=32446510268268&tin=02508201610067®Number=0000000000156251&sum=0 [11:08:40]StoreToDocumentArchive [11:08:40]shift 195 fd 70187 [11:08:40]save to /storage/0195/doc_00070187 [11:08:40]save last doc name /storage/0195/doc_00070187 to /storage/kkm_last_doc_name [11:08:40]save OK [11:08:40]Clear old archive folders... [11:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:40]tlvbuf is 01123A10 [11:08:40]SAM_PROTO_ClearQueue [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 09 00 00 [11:08:40]Write to MH i2c: E2 08 00 FE 58 80 09 00 00 00 00 00 00 C8 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 FE 58 00 90 00 CA [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_ClearQueue done [11:08:40]KKMCreateOFDPacket [11:08:40]OFDProtocolAddRootSTLVToBuf [11:08:40]FM_MakeSignedData [11:08:40]FM_MakeSignedData [11:08:40]SAM_PROTO_SignData [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 01 02 [11:08:40]Write to MH i2c: E2 08 00 FF 58 80 0D 01 02 00 00 00 00 D0 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 FF 58 00 90 00 CB [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=255 [11:08:40]MH_SAM_APDU [11:08: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 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 87 00 00 00 F4 03 04 00 BC 87 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 12 01 00 35 04 06 00 1D [11:08:40]Write to MH i2c: E2 02 01 00 59 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 87 00 00 00 F4 03 04 00 BC 87 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 12 01 00 35 04 06 00 1D 00 00 A9 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:41]Read from MH i2c: E2 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 03 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 03 00 00 59 00 90 00 CD [11:08:41]RAPDU: 90 00 [11:08:41]wFMCommunicate OK [11:08:41]wFMCommunicate request_size=10 [11:08:41]MH_SAM_APDU [11:08:41]CAPDU: 80 0D 02 02 05 82 8A B7 FF 6C [11:08:41]Write to MH i2c: E2 0D 00 01 59 80 0D 02 02 05 00 82 8A B7 FF 6C 00 00 0C [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:41]Read from MH i2c: E2 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 03 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 03 00 01 59 00 90 00 CE [11:08:41]RAPDU: 90 00 [11:08:41]wFMCommunicate OK [11:08:41]wFMCommunicate request_size=4 [11:08:41]MH_SAM_APDU [11:08:41]CAPDU: 80 0D 03 02 [11:08:41]Write to MH i2c: E2 08 00 02 59 80 0D 03 02 00 00 00 00 D6 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:41]Read from MH i2c: E2 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 0B 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 0B 00 02 59 00 83 0A D1 BF EF 0F 72 BF 90 00 23 [11:08:41]RAPDU: 83 0A D1 BF EF 0F 72 BF 90 00 [11:08:41]wFMCommunicate OK [11:08:41]SAM_PROTO_SignData done [11:08:41]FM_MakeSignedData done [11:08:41]CreateOFDProtocolMessage [11:08:41]wFMCommunicate request_size=4 [11:08:41]MH_SAM_APDU [11:08:41]CAPDU: 80 11 00 00 [11:08:41]Write to MH i2c: E2 08 00 03 59 80 11 00 00 00 00 00 00 D6 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:41]Read from MH i2c: E2 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 17 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: E2 17 00 03 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [11:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:08:41]wFMCommunicate OK [11:08:41]CreateOFDProtocolMessage done [11:08:41]OFDSenderStorePacket 70187 [11:08:41]StoreOFDPacket docnum=70187 [11:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B0 D4 07 01 4B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 87 00 00 00 F4 03 04 00 BC 87 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 12 01 00 35 04 06 00 1D 82 8A B7 FF 6C 83 0A D1 BF EF 0F 72 BF [11:08:41]CheckFolder [11:08:41]dirname=/storage/ofd_packets [11:08:41]CheckFolder done [11:08:41]ProducePacketName [11:08:41]name=ofd_packets/00070187 [11:08:41]NVStorageSaveData ofd_packets/00070187 [11:08:41]File name is /storage/ofd_packets/00070187 [11:08:41]Write 301 bytes [11:08:41]NVStorageSaveData done [11:08:41]OFDSenderStorePacket done [11:08:41]KKMCreateOFDPacket done [11:08:41]NVStorageSaveData kkm_last_timestamp [11:08:41]File name is /storage/kkm_last_timestamp [11:08:41]Write 4 bytes [11:08:41]NVStorageSaveData done [11:08:41]ExternCall_PrintAddStr [11:08:41]wPrintStart [11:08:41]Write to MH i2c: 01 00 00 04 59 5D [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 04 59 00 00 00 00 00 FF 0F 72 [11:08:41]RasterBufferAndPrint [11:08:41]line Счет N : (1)2885954 [11:08:41]line ИНН: 02508201610067 [11:08:41]line Контрольно-Кассовый Чек [11:08:41]line ПРОДАЖА [11:08:41]line ТРК (МРК, ГНК) : 42 [11:08:41]line Товар: 2710124130 [11:08:41]line Аи-92-К-5 [11:08:41]line 20.000 * 0.00 [11:08:41]line = 0.00 [11:08:41]line НДС 12% НСП 1% [11:08:41]line > о реализуемом товаре [11:08:41]line ИТОГО: 0.00 [11:08:41]line НСП 1% : 0.00 [11:08:41]line НДС 12% : 0.00 [11:08:41]line Наличными: 0.00 [11:08:41]line Безнал.: 0.00 [11:08:41]line Место: АЗС № 85 "Партнер Нефть" [11:08:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:08:41]line СНО: Общий режим [11:08:41]line Чек 135 22.10.2024 11:08 [11:08:41]line Смена: 195 ФФД: 1.0 [11:08:41]line ЗНМ: 0300000167 [11:08:41]line РНМ: 0000000000156251 [11:08:41]line Версия ККМ: v1.0 [11:08:41]line Талоны: ТК ГПНА Online [11:08:41]line 30100970 [11:08:41]line ФМ: 0000000000963346 [11:08:41]line ФД: 70187 [11:08:41]line ФПД: 32446510268268 [11:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110844&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70187&fm=32446510268268&tin=02508201610067®Number=0000000000156251&sum=0 [11:08:41]OFD Sender: Processing packet 70187 [packets to send 18, broken 17] [11:08:41]ProducePacketName [11:08:41]name=ofd_packets/00070187 [11:08:41]OFD Sender: To server: pG, [11:08:41]CommunicateWithHost lk.salyk.kg:30040 [11:08:41]ConnectInit lk.salyk.kg [11:08:41]written 0, free lines is 4095 [11:08:41]Connected sock=10 [11:08: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 34 36 0F 01 00 00 B0 D4 07 01 4B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 87 00 00 00 F4 03 04 00 BC 87 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 12 01 00 35 04 06 00 1D 82 8A B7 FF 6C 83 0A D1 BF EF 0F 72 BF [11:08: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 34 36 4F 00 00 00 AA 38 47 00 47 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 34 36 10 04 04 00 2B 12 01 00 F4 03 04 00 5D 31 17 67 B6 04 01 00 00 C9 E4 C0 E6 7A C8 AB 56 [11:08:42]CommunicateWithHost err = 0 [11:08:42]CheckOFDResponse [11:08:42]1017 (14) - 77093643461234 [11:08:42]1041 (16) - 0000000000963346 [11:08:42]1040 (4) - 70187 [11:08:42]1012 (4) - 22.10.2024 05:00 [11:08:42]1206 (1) - 0 [11:08:42]OFD Sender: Remove packet 70187 [11:08:42]ProducePacketName [11:08:42]name=ofd_packets/00070187 [11:08:42]NVStorageDeleteData [11:08:42]Write to MH i2c: 01 00 00 2E 59 87 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: 01 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: 01 07 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: 01 07 00 2E 59 00 00 00 00 00 EE 0C 88 [11:08:42]RasterBufferAndPrint [11:08:42]line [11:08:42]line [11:08:42]line [11:08:42]line [11:08:42]line [11:08:42]written 0, free lines is 3318 [11:08:42]MH_Cut [11:08:42]Write to MH i2c: D1 01 00 35 59 01 60 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: D1 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: D1 01 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: D1 01 00 35 59 00 5F [11:08:42]Write to MH i2c: 01 00 00 36 59 8F [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]OFD Sender: No OFD packet to send [11:08:42]*** Cut start [11:08:42]*** Partial cut [11:08:42]*** CUTSNS_PIN = 1 [11:08:42]*** CUTSNS_PIN = 0 [11:08:43]*** Brake cut motor [11:08:43]Read from MH i2c: 01 [11:08:43]MH_I2C_Read... [11:08:43]*** Stop cut motor [11:08:43]*** Cut end [11:08:43]Read from MH i2c: 01 07 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: 01 07 00 36 59 00 00 00 00 00 FF 0F A4 [11:08:43]process_action close_receipt done [11:08:43]requested_data is exist [11:08:43]produce_requested_data [11:08:43]requested_item fm.sn is exist - process it [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 11 00 00 [11:08:43]Write to MH i2c: E2 08 00 37 59 80 11 00 00 00 00 00 00 0A [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 17 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 17 00 37 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [11:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:08:43]wFMCommunicate OK [11:08:43]requested_item fd.num is exist - process it [11:08:43]SAM_PROTO_GetFieldsCounters [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 13 00 00 [11:08:43]Write to MH i2c: E2 08 00 38 59 80 13 00 00 00 00 00 00 0D [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 62 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 62 00 38 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 12 01 00 0E 04 04 00 C3 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 BE [11:08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 12 01 00 0E 04 04 00 C3 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 [11:08:43]wFMCommunicate OK [11:08:43]SAM_PROTO_GetFieldsCounters done [11:08:43]requested_item shift.num is exist - process it [11:08:43]requested_item shift.opened is exist - process it [11:08:43]req_shift_opened [11:08:43]FM_GetShiftState [11:08:43]SAM_PROTO_GetShiftState [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 13 01 00 [11:08:43]Write to MH i2c: E2 08 00 39 59 80 13 01 00 00 00 00 00 0F [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 0E 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 0E 00 39 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [11:08:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:08:43]wFMCommunicate OK [11:08:43]SAM_PROTO_GetShiftState done [11:08:43]FM_GetShiftState done [11:08:43]req_shift_opened done [11:08:43]requested_item shift.open_date is exist - process it [11:08:43]req_shift_open_date [11:08:43]req_shift_open_date done [11:08:43]produce_requested_data done [11:08:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70187,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:08:43]process_action_free close_receipt [11:08:43]json_value_free [11:08:43]json_value_free done [11:08:43]process_json_proto returns [11:08:43]Send response to host [11:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70187,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:08:43]free response buf [11:08:43]execute_script done [11:08:43]execute_script returns [11:08:43]free content buf [11:08:43]Sock 9.Close socket [11:08:43]Sock 9.Thread stoped [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]accept exits with 7 [11:09:57]New connection [11:09:57]New thread 3067026788 created [11:09:57]Thread 3067170148 joined [11:09:57]Waiting for new connection... [11:09:57] Sock 7.Parse request [11:09:57]Sock 7.Check first char [11:09:57]Sock 7.First char is OK [11:09:57]request: POST /json_proto HTTP/1.0 [11:09:57]Method: POST [11:09:57]URL: /json_proto [11:09:57]Method is POST - this is cgi request [11:09:57]url: /json_proto [11:09:57]query_string will be loaded in cgi processing [11:09:57]execute_cgi json_proto POST (null) [11:09:57]execute_cgi path=json_proto method=POST [11:09:57]POST find Content-Length [11:09:57]Host: 172.17.50.3:8080 [11:09:57]Content-Length: 678 [11:09:57]Content-Type: application/json [11:09:57] [11:09:57]POST finish read [11:09:57]Found Content-Length = 678 [11:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:09:57]execute_script... [11:09: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)2885955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:09:57]POST & json_proto [11:09:57]process_json_proto [11:09:57]json parsed OK: [11:09:57]protocol is kg_v1.0 [11:09:57]action value=close_receipt [11:09:57]process_action close_receipt [11:09:57]cmd_close_receipt [11:09:57]MH_GetDate [11:09:57]Write to MH i2c: F0 00 00 3A 59 82 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: F0 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: F0 09 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: F0 09 00 3A 59 00 0A 88 17 67 6B 98 1E 66 22 [11:09:57]GetLastDocTimeStamp 1729595324 [11:09:57]current date 1729595402 [11:09:57]FM_GetShiftState [11:09:57]SAM_PROTO_GetShiftState [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 13 01 00 [11:09:57]Write to MH i2c: E2 08 00 3B 59 80 13 01 00 00 00 00 00 11 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 0E 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 0E 00 3B 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FF [11:09:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:09:57]wFMCommunicate OK [11:09:57]SAM_PROTO_GetShiftState done [11:09:57]FM_GetShiftState done [11:09:57]opened in 1729555832 [11:09:57]opened+sec_in_day 1729642232 [11:09:57]quantity*price = 50041 [11:09:57]sum+1 = 50042 [11:09: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 136 22.10.2024 11:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70188 ФПД: 143173042751088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111002&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70188&fm=143173042751088&tin=02508201610067®Number=0000000000156251&sum=50000 [11:09:58]StoreToDocumentArchive [11:09:58]shift 195 fd 70188 [11:09:58]save to /storage/0195/doc_00070188 [11:09:58]save last doc name /storage/0195/doc_00070188 to /storage/kkm_last_doc_name [11:09:58]save OK [11:09:58]Clear old archive folders... [11:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:58]tlvbuf is 011A8760 [11:09:58]SAM_PROTO_ClearQueue [11:09:58]wFMCommunicate request_size=4 [11:09:58]MH_SAM_APDU [11:09:58]CAPDU: 80 09 00 00 [11:09:58]Write to MH i2c: E2 08 00 48 59 80 09 00 00 00 00 00 00 13 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 48 59 00 90 00 15 [11:09:58]RAPDU: 90 00 [11:09:58]wFMCommunicate OK [11:09:58]SAM_PROTO_ClearQueue done [11:09:58]KKMCreateOFDPacket [11:09:58]OFDProtocolAddRootSTLVToBuf [11:09:58]FM_MakeSignedData [11:09:58]FM_MakeSignedData [11:09:58]SAM_PROTO_SignData [11:09:58]wFMCommunicate request_size=4 [11:09:58]MH_SAM_APDU [11:09:58]CAPDU: 80 0D 01 02 [11:09:58]Write to MH i2c: E2 08 00 49 59 80 0D 01 02 00 00 00 00 1B [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 49 59 00 90 00 16 [11:09:58]RAPDU: 90 00 [11:09:58]wFMCommunicate OK [11:09:58]wFMCommunicate request_size=255 [11:09:58]MH_SAM_APDU [11:09: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 88 00 00 00 F4 03 04 00 0A 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 12 01 00 35 04 06 00 82 [11:09:58]Write to MH i2c: E2 02 01 4A 59 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 88 00 00 00 F4 03 04 00 0A 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 12 01 00 35 04 06 00 82 00 00 C0 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 4A 59 00 90 00 17 [11:09:58]RAPDU: 90 00 [11:09:58]wFMCommunicate OK [11:09:58]wFMCommunicate request_size=10 [11:09:58]MH_SAM_APDU [11:09:58]CAPDU: 80 0D 02 02 05 37 12 5A C6 70 [11:09:58]Write to MH i2c: E2 0D 00 4B 59 80 0D 02 02 05 00 37 12 5A C6 70 00 00 01 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 03 00 4B 59 00 90 00 18 [11:09:58]RAPDU: 90 00 [11:09:58]wFMCommunicate OK [11:09:58]wFMCommunicate request_size=4 [11:09:58]MH_SAM_APDU [11:09:58]CAPDU: 80 0D 03 02 [11:09:58]Write to MH i2c: E2 08 00 4C 59 80 0D 03 02 00 00 00 00 20 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 0B 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 0B 00 4C 59 00 8D 02 50 C5 77 D3 6C 27 90 00 A2 [11:09:58]RAPDU: 8D 02 50 C5 77 D3 6C 27 90 00 [11:09:58]wFMCommunicate OK [11:09:58]SAM_PROTO_SignData done [11:09:58]FM_MakeSignedData done [11:09:58]CreateOFDProtocolMessage [11:09:58]wFMCommunicate request_size=4 [11:09:58]MH_SAM_APDU [11:09:58]CAPDU: 80 11 00 00 [11:09:58]Write to MH i2c: E2 08 00 4D 59 80 11 00 00 00 00 00 00 20 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 17 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 17 00 4D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [11:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:09:58]wFMCommunicate OK [11:09:58]CreateOFDProtocolMessage done [11:09:58]OFDSenderStorePacket 70188 [11:09:58]StoreOFDPacket docnum=70188 [11:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E F5 07 01 FE 45 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 88 00 00 00 F4 03 04 00 0A 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 12 01 00 35 04 06 00 82 37 12 5A C6 70 8D 02 50 C5 77 D3 6C 27 [11:09:58]CheckFolder [11:09:58]dirname=/storage/ofd_packets [11:09:58]CheckFolder done [11:09:58]ProducePacketName [11:09:58]name=ofd_packets/00070188 [11:09:58]NVStorageSaveData ofd_packets/00070188 [11:09:58]File name is /storage/ofd_packets/00070188 [11:09:58]Write 301 bytes [11:09:58]NVStorageSaveData done [11:09:58]OFDSenderStorePacket done [11:09:58]KKMCreateOFDPacket done [11:09:58]NVStorageSaveData kkm_last_timestamp [11:09:58]File name is /storage/kkm_last_timestamp [11:09:58]Write 4 bytes [11:09:58]NVStorageSaveData done [11:09:58]ExternCall_PrintAddStr [11:09:58]wPrintStart [11:09:58]Write to MH i2c: 01 00 00 4E 59 A7 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 4E 59 00 00 00 00 00 FF 0F BC [11:09:58]RasterBufferAndPrint [11:09:58]line Счет N : (1)2885955 [11:09:58]line ИНН: 02508201610067 [11:09:58]line Контрольно-Кассовый Чек [11:09:58]line ПРОДАЖА [11:09:58]line ТРК (МРК, ГНК) : 32 [11:09:58]line Товар: 2710124130 [11:09:58]line Аи-92-К-5 [11:09:58]line 7.480 * 66.90 [11:09:58]line = 500.41 [11:09:58]line НДС 12% НСП 1% [11:09:58]line > о реализуемом товаре [11:09:58]line ОКРУГЛЕНИЕ: -0.41 [11:09:58]line ИТОГО: 500.00 [11:09:58]line Внесено: 500.00 [11:09:58]line СДАЧА: 0.00 [11:09:58]line НСП 1% : 4.43 [11:09:58]line НДС 12% : 53.14 [11:09:58]line Наличными: 500.00 [11:09:58]line Безнал.: 0.00 [11:09:58]line Место: АЗС № 85 "Партнер Нефть" [11:09:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:09:58]line СНО: Общий режим [11:09:58]line Чек 136 22.10.2024 11:10 [11:09:58]line Смена: 195 ФФД: 1.0 [11:09:58]line ЗНМ: 0300000167 [11:09:58]line РНМ: 0000000000156251 [11:09:58]line Версия ККМ: v1.0 [11:09:58]line ФМ: 0000000000963346 [11:09:58]line ФД: 70188 [11:09:58]line ФПД: 143173042751088 [11:09:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111002&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70188&fm=143173042751088&tin=02508201610067®Number=0000000000156251&sum=50000 [11:09:59]OFD Sender: Processing packet 70188 [packets to send 18, broken 17] [11:09:59]ProducePacketName [11:09:59]name=ofd_packets/00070188 [11:09:59]OFD Sender: To server: pG, [11:09:59]CommunicateWithHost lk.salyk.kg:30040 [11:09:59]ConnectInit lk.salyk.kg [11:09:59]written 0, free lines is 4095 [11:09:59]Connected sock=10 [11:09: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 34 36 0F 01 00 00 5E F5 07 01 FE 45 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 88 00 00 00 F4 03 04 00 0A 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 12 01 00 35 04 06 00 82 37 12 5A C6 70 8D 02 50 C5 77 D3 6C 27 [11:09: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 34 36 4F 00 00 00 8A 8E 47 00 69 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 34 36 10 04 04 00 2C 12 01 00 F4 03 04 00 AB 31 17 67 B6 04 01 00 00 21 9B DB DE CF 6D 5F 00 [11:09:59]CommunicateWithHost err = 0 [11:09:59]CheckOFDResponse [11:09:59]1017 (14) - 77093643461234 [11:09:59]1041 (16) - 0000000000963346 [11:09:59]1040 (4) - 70188 [11:09:59]1012 (4) - 22.10.2024 05:01 [11:09:59]1206 (1) - 0 [11:09:59]OFD Sender: Remove packet 70188 [11:09:59]ProducePacketName [11:09:59]name=ofd_packets/00070188 [11:09:59]NVStorageDeleteData [11:09:59]Write to MH i2c: 01 00 00 79 59 D2 [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 79 59 00 00 00 00 00 E0 0C C5 [11:09:59]RasterBufferAndPrint [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]written 0, free lines is 3302 [11:09:59]MH_Cut [11:09:59]Write to MH i2c: D1 01 00 80 59 01 AB [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: D1 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: D1 01 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: D1 01 00 80 59 00 AA [11:09:59]Write to MH i2c: 01 00 00 81 59 DA [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:10:00]OFD Sender: No OFD packet to send [11:10:00]*** Cut start [11:10:00]*** Partial cut [11:10:00]*** CUTSNS_PIN = 1 [11:10:00]*** CUTSNS_PIN = 0 [11:10:00]*** Brake cut motor [11:10:01]Read from MH i2c: 01 [11:10:01]MH_I2C_Read... [11:10:01]*** Stop cut motor [11:10:01]*** Cut end [11:10:01]Read from MH i2c: 01 07 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: 01 07 00 81 59 00 00 00 00 00 FF 0F EF [11:10:01]process_action close_receipt done [11:10:01]requested_data is exist [11:10:01]produce_requested_data [11:10:01]requested_item fm.sn is exist - process it [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 11 00 00 [11:10:01]Write to MH i2c: E2 08 00 82 59 80 11 00 00 00 00 00 00 55 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 17 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 17 00 82 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [11:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:10:01]wFMCommunicate OK [11:10:01]requested_item fd.num is exist - process it [11:10:01]SAM_PROTO_GetFieldsCounters [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 13 00 00 [11:10:01]Write to MH i2c: E2 08 00 83 59 80 13 00 00 00 00 00 00 58 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 62 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 62 00 83 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 12 01 00 0E 04 04 00 C3 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 0D [11:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 12 01 00 0E 04 04 00 C3 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 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_GetFieldsCounters done [11:10:01]requested_item shift.num is exist - process it [11:10:01]requested_item shift.opened is exist - process it [11:10:01]req_shift_opened [11:10:01]FM_GetShiftState [11:10:01]SAM_PROTO_GetShiftState [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 13 01 00 [11:10:01]Write to MH i2c: E2 08 00 84 59 80 13 01 00 00 00 00 00 5A [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 84 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [11:10:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_GetShiftState done [11:10:01]FM_GetShiftState done [11:10:01]req_shift_opened done [11:10:01]requested_item shift.open_date is exist - process it [11:10:01]req_shift_open_date [11:10:01]req_shift_open_date done [11:10:01]produce_requested_data done [11:10:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70188,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:10:01]process_action_free close_receipt [11:10:01]json_value_free [11:10:01]json_value_free done [11:10:01]process_json_proto returns [11:10:01]Send response to host [11:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70188,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:10:01]free response buf [11:10:01]execute_script done [11:10:01]execute_script returns [11:10:01]free content buf [11:10:01]Sock 7.Close socket [11:10:01]Sock 7.Thread stoped [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:44]accept exits with 9 [11:10:44]New connection [11:10:44]New thread 3067170148 created [11:10:44]Thread 3067026788 joined [11:10:44]Waiting for new connection... [11:10:44] Sock 9.Parse request [11:10:44]Sock 9.Check first char [11:10:44]Sock 9.First char is OK [11:10:44]request: POST /json_proto HTTP/1.0 [11:10:44]Method: POST [11:10:44]URL: /json_proto [11:10:44]Method is POST - this is cgi request [11:10:44]url: /json_proto [11:10:44]query_string will be loaded in cgi processing [11:10:44]execute_cgi json_proto POST (null) [11:10:44]execute_cgi path=json_proto method=POST [11:10:44]POST find Content-Length [11:10:44]Host: 172.17.50.3:8080 [11:10:44]Content-Length: 683 [11:10:44]Content-Type: application/json [11:10:44] [11:10:44]POST finish read [11:10:44]Found Content-Length = 683 [11:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:44]execute_script... [11:10: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)2885956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:44]POST & json_proto [11:10:44]process_json_proto [11:10:44]json parsed OK: [11:10:44]protocol is kg_v1.0 [11:10:44]action value=close_receipt [11:10:44]process_action close_receipt [11:10:44]cmd_close_receipt [11:10:44]MH_GetDate [11:10:44]Write to MH i2c: F0 00 00 85 59 CD [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: F0 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: F0 09 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: F0 09 00 85 59 00 39 88 17 67 6B 98 1E 66 9C [11:10:44]GetLastDocTimeStamp 1729595402 [11:10:44]current date 1729595449 [11:10:44]FM_GetShiftState [11:10:44]SAM_PROTO_GetShiftState [11:10:44]wFMCommunicate request_size=4 [11:10:44]MH_SAM_APDU [11:10:44]CAPDU: 80 13 01 00 [11:10:44]Write to MH i2c: E2 08 00 86 59 80 13 01 00 00 00 00 00 5C [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0E 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0E 00 86 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4A [11:10:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:10:44]wFMCommunicate OK [11:10:44]SAM_PROTO_GetShiftState done [11:10:44]FM_GetShiftState done [11:10:44]opened in 1729555832 [11:10:44]opened+sec_in_day 1729642232 [11:10:44]quantity*price = 140015 [11:10:44]sum+1 = 140016 [11:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 137 22.10.2024 11:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70189 ФПД: 24921001522947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70189&fm=24921001522947&tin=02508201610067®Number=0000000000156251&sum=140000 [11:10:46]StoreToDocumentArchive [11:10:46]shift 195 fd 70189 [11:10:46]save to /storage/0195/doc_00070189 [11:10:46]save last doc name /storage/0195/doc_00070189 to /storage/kkm_last_doc_name [11:10:46]save OK [11:10:46]Clear old archive folders... [11:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:46]tlvbuf is 01114A50 [11:10:46]SAM_PROTO_ClearQueue [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 09 00 00 [11:10:46]Write to MH i2c: E2 08 00 93 59 80 09 00 00 00 00 00 00 5E [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 93 59 00 90 00 60 [11:10:46]RAPDU: 90 00 [11:10:46]wFMCommunicate OK [11:10:46]SAM_PROTO_ClearQueue done [11:10:46]KKMCreateOFDPacket [11:10:46]OFDProtocolAddRootSTLVToBuf [11:10:46]FM_MakeSignedData [11:10:46]FM_MakeSignedData [11:10:46]SAM_PROTO_SignData [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 0D 01 02 [11:10:46]Write to MH i2c: E2 08 00 94 59 80 0D 01 02 00 00 00 00 66 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 94 59 00 90 00 61 [11:10:46]RAPDU: 90 00 [11:10:46]wFMCommunicate OK [11:10:46]wFMCommunicate request_size=255 [11:10:46]MH_SAM_APDU [11:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 39 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 12 01 00 35 04 06 00 16 [11:10:46]Write to MH i2c: E2 02 01 95 59 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 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 39 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 12 01 00 35 04 06 00 16 00 00 AB [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 95 59 00 90 00 62 [11:10:46]RAPDU: 90 00 [11:10:46]wFMCommunicate OK [11:10:46]wFMCommunicate request_size=10 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 0D 02 02 05 AA 5F 71 77 03 [11:10:46]Write to MH i2c: E2 0D 00 96 59 80 0D 02 02 05 00 AA 5F 71 77 03 00 00 67 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 03 00 96 59 00 90 00 63 [11:10:46]RAPDU: 90 00 [11:10:46]wFMCommunicate OK [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 0D 03 02 [11:10:46]Write to MH i2c: E2 08 00 97 59 80 0D 03 02 00 00 00 00 6B [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 0B 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 0B 00 97 59 00 10 5B BE 07 03 3D 41 5F 90 00 7C [11:10:46]RAPDU: 10 5B BE 07 03 3D 41 5F 90 00 [11:10:46]wFMCommunicate OK [11:10:46]SAM_PROTO_SignData done [11:10:46]FM_MakeSignedData done [11:10:46]CreateOFDProtocolMessage [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 11 00 00 [11:10:46]Write to MH i2c: E2 08 00 98 59 80 11 00 00 00 00 00 00 6B [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 17 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 17 00 98 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [11:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:10:46]wFMCommunicate OK [11:10:46]CreateOFDProtocolMessage done [11:10:46]OFDSenderStorePacket 70189 [11:10:46]StoreOFDPacket docnum=70189 [11:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 08 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 39 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 12 01 00 35 04 06 00 16 AA 5F 71 77 03 10 5B BE 07 03 3D 41 5F [11:10:46]CheckFolder [11:10:46]dirname=/storage/ofd_packets [11:10:46]CheckFolder done [11:10:46]ProducePacketName [11:10:46]name=ofd_packets/00070189 [11:10:46]NVStorageSaveData ofd_packets/00070189 [11:10:46]File name is /storage/ofd_packets/00070189 [11:10:46]Write 301 bytes [11:10:46]NVStorageSaveData done [11:10:46]OFDSenderStorePacket done [11:10:46]KKMCreateOFDPacket done [11:10:46]NVStorageSaveData kkm_last_timestamp [11:10:46]File name is /storage/kkm_last_timestamp [11:10:46]Write 4 bytes [11:10:46]NVStorageSaveData done [11:10:46]ExternCall_PrintAddStr [11:10:46]wPrintStart [11:10:46]Write to MH i2c: 01 00 00 99 59 F2 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 99 59 00 00 00 00 00 FF 0F 07 [11:10:46]RasterBufferAndPrint [11:10:46]line Счет N : (1)2885956 [11:10:46]line ИНН: 02508201610067 [11:10:46]line Контрольно-Кассовый Чек [11:10:46]line ПРОДАЖА [11:10:46]line ТРК (МРК, ГНК) : 23 [11:10:46]line Товар: 2710124500 [11:10:46]line Аи-95-К-5 [11:10:46]line 18.870 * 74.20 [11:10:46]line = 1400.15 [11:10:46]line НДС 12% НСП 1% [11:10:46]line > о реализуемом товаре [11:10:46]line ОКРУГЛЕНИЕ: -0.15 [11:10:46]line ИТОГО: 1400.00 [11:10:46]line Внесено: 1400.00 [11:10:46]line СДАЧА: 0.00 [11:10:46]line НСП 1% : 12.39 [11:10:46]line НДС 12% : 148.69 [11:10:46]line Наличными: 1400.00 [11:10:46]line Безнал.: 0.00 [11:10:46]line Место: АЗС № 85 "Партнер Нефть" [11:10:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:10:46]line СНО: Общий режим [11:10:46]line Чек 137 22.10.2024 11:10 [11:10:46]line Смена: 195 ФФД: 1.0 [11:10:46]line ЗНМ: 0300000167 [11:10:46]line РНМ: 0000000000156251 [11:10:46]line Версия ККМ: v1.0 [11:10:46]line ФМ: 0000000000963346 [11:10:46]line ФД: 70189 [11:10:46]line ФПД: 24921001522947 [11:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70189&fm=24921001522947&tin=02508201610067®Number=0000000000156251&sum=140000 [11:10:46]OFD Sender: Processing packet 70189 [packets to send 18, broken 17] [11:10:46]ProducePacketName [11:10:46]name=ofd_packets/00070189 [11:10:46]OFD Sender: To server: pG, [11:10:46]CommunicateWithHost lk.salyk.kg:30040 [11:10:46]ConnectInit lk.salyk.kg [11:10:46]written 0, free lines is 4095 [11:10:46]Connected sock=10 [11:10: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 34 36 0F 01 00 00 F0 08 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 39 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 12 01 00 35 04 06 00 16 AA 5F 71 77 03 10 5B BE 07 03 3D 41 5F [11:10: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 34 36 4F 00 00 00 6E A9 47 00 A2 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 34 36 10 04 04 00 2D 12 01 00 F4 03 04 00 DA 31 17 67 B6 04 01 00 00 A0 B7 98 84 CB 80 3F CE [11:10:47]CommunicateWithHost err = 0 [11:10:47]CheckOFDResponse [11:10:47]1017 (14) - 77093643461234 [11:10:47]1041 (16) - 0000000000963346 [11:10:47]1040 (4) - 70189 [11:10:47]1012 (4) - 22.10.2024 05:02 [11:10:47]1206 (1) - 0 [11:10:47]OFD Sender: Remove packet 70189 [11:10:47]ProducePacketName [11:10:47]name=ofd_packets/00070189 [11:10:47]NVStorageDeleteData [11:10:47]Write to MH i2c: 01 00 00 C4 59 1D [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: 01 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: 01 07 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: 01 07 00 C4 59 00 00 00 00 00 E8 0C 18 [11:10:47]RasterBufferAndPrint [11:10:47]line [11:10:47]line [11:10:47]line [11:10:47]line [11:10:47]line [11:10:47]written 0, free lines is 3310 [11:10:47]MH_Cut [11:10:47]Write to MH i2c: D1 01 00 CB 59 01 F6 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: D1 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: D1 01 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: D1 01 00 CB 59 00 F5 [11:10:47]Write to MH i2c: 01 00 00 CC 59 25 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]OFD Sender: No OFD packet to send [11:10:48]*** Cut start [11:10:48]*** Partial cut [11:10:48]*** CUTSNS_PIN = 1 [11:10:48]*** CUTSNS_PIN = 0 [11:10:48]*** Brake cut motor [11:10:48]Read from MH i2c: 01 [11:10:48]MH_I2C_Read... [11:10:48]*** Stop cut motor [11:10:48]*** Cut end [11:10:48]Read from MH i2c: 01 07 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 07 00 CC 59 00 00 00 00 00 FF 0F 3A [11:10:48]process_action close_receipt done [11:10:48]requested_data is exist [11:10:48]produce_requested_data [11:10:48]requested_item fm.sn is exist - process it [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 11 00 00 [11:10:48]Write to MH i2c: E2 08 00 CD 59 80 11 00 00 00 00 00 00 A0 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 CD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [11:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:10:48]wFMCommunicate OK [11:10:48]requested_item fd.num is exist - process it [11:10:48]SAM_PROTO_GetFieldsCounters [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 13 00 00 [11:10:48]Write to MH i2c: E2 08 00 CE 59 80 13 00 00 00 00 00 00 A3 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 62 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 62 00 CE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 12 01 00 0E 04 04 00 C3 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 5C [11:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 12 01 00 0E 04 04 00 C3 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 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_GetFieldsCounters done [11:10:48]requested_item shift.num is exist - process it [11:10:48]requested_item shift.opened is exist - process it [11:10:48]req_shift_opened [11:10:48]FM_GetShiftState [11:10:48]SAM_PROTO_GetShiftState [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 13 01 00 [11:10:48]Write to MH i2c: E2 08 00 CF 59 80 13 01 00 00 00 00 00 A5 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 CF 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [11:10:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_GetShiftState done [11:10:48]FM_GetShiftState done [11:10:48]req_shift_opened done [11:10:48]requested_item shift.open_date is exist - process it [11:10:48]req_shift_open_date [11:10:48]req_shift_open_date done [11:10:48]produce_requested_data done [11:10:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70189,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:10:48]process_action_free close_receipt [11:10:48]json_value_free [11:10:48]json_value_free done [11:10:48]process_json_proto returns [11:10:48]Send response to host [11:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70189,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:10:48]free response buf [11:10:48]execute_script done [11:10:48]execute_script returns [11:10:48]free content buf [11:10:48]Sock 9.Close socket [11:10:48]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:53]accept exits with 7 [11:13:53]New connection [11:13:53]New thread 3067026788 created [11:13:53]Thread 3067170148 joined [11:13:53]Waiting for new connection... [11:13:53] Sock 7.Parse request [11:13:53]Sock 7.Check first char [11:13:53]Sock 7.First char is OK [11:13:53]request: POST /json_proto HTTP/1.0 [11:13:53]Method: POST [11:13:53]URL: /json_proto [11:13:53]Method is POST - this is cgi request [11:13:53]url: /json_proto [11:13:53]query_string will be loaded in cgi processing [11:13:53]execute_cgi json_proto POST (null) [11:13:53]execute_cgi path=json_proto method=POST [11:13:53]POST find Content-Length [11:13:53]Host: 172.17.50.3:8080 [11:13:53]Content-Length: 755 [11:13:53]Content-Type: application/json [11:13:53] [11:13:53]POST finish read [11:13:53]Found Content-Length = 755 [11:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u000A30096608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:53]execute_script... [11:13: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)2885958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u000A30096608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:53]POST & json_proto [11:13:53]process_json_proto [11:13:53]json parsed OK: [11:13:53]protocol is kg_v1.0 [11:13:53]action value=close_receipt [11:13:53]process_action close_receipt [11:13:53]cmd_close_receipt [11:13:53]MH_GetDate [11:13:53]Write to MH i2c: F0 00 00 D0 59 18 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 09 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 09 00 D0 59 00 F6 88 17 67 6B 98 1E 66 A4 [11:13:53]GetLastDocTimeStamp 1729595449 [11:13:53]current date 1729595638 [11:13:53]FM_GetShiftState [11:13:53]SAM_PROTO_GetShiftState [11:13:53]wFMCommunicate request_size=4 [11:13:53]MH_SAM_APDU [11:13:53]CAPDU: 80 13 01 00 [11:13:53]Write to MH i2c: E2 08 00 D1 59 80 13 01 00 00 00 00 00 A7 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:53]Read from MH i2c: E2 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 D1 59 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [11:13:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:13:53]wFMCommunicate OK [11:13:53]SAM_PROTO_GetShiftState done [11:13:53]FM_GetShiftState done [11:13:53]opened in 1729555832 [11:13:53]opened+sec_in_day 1729642232 [11:13:53]quantity*price = 0 [11:13:53]sum+1 = 1 [11:13:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 138 22.10.2024 11:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30096608 ФМ: 0000000000963346 ФД: 70190 ФПД: 263650413123877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70190&fm=263650413123877&tin=02508201610067®Number=0000000000156251&sum=0 [11:13:55]StoreToDocumentArchive [11:13:55]shift 195 fd 70190 [11:13:55]save to /storage/0195/doc_00070190 [11:13:55]save last doc name /storage/0195/doc_00070190 to /storage/kkm_last_doc_name [11:13:55]save OK [11:13:55]Clear old archive folders... [11:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:55]tlvbuf is 01144920 [11:13:55]SAM_PROTO_ClearQueue [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 09 00 00 [11:13:55]Write to MH i2c: E2 08 00 DE 59 80 09 00 00 00 00 00 00 A9 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 DE 59 00 90 00 AB [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_ClearQueue done [11:13:55]KKMCreateOFDPacket [11:13:55]OFDProtocolAddRootSTLVToBuf [11:13:55]FM_MakeSignedData [11:13:55]FM_MakeSignedData [11:13:55]SAM_PROTO_SignData [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 01 02 [11:13:55]Write to MH i2c: E2 08 00 DF 59 80 0D 01 02 00 00 00 00 B1 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 DF 59 00 90 00 AC [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=255 [11:13:55]MH_SAM_APDU [11:13: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 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 8A 00 00 00 F4 03 04 00 F6 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 12 01 00 35 04 06 00 EF [11:13:55]Write to MH i2c: E2 02 01 E0 59 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 8A 00 00 00 F4 03 04 00 F6 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 12 01 00 35 04 06 00 EF 00 00 9C [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 E0 59 00 90 00 AD [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=10 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 02 02 05 C9 E5 38 19 25 [11:13:55]Write to MH i2c: E2 0D 00 E1 59 80 0D 02 02 05 00 C9 E5 38 19 25 00 00 E2 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 E1 59 00 90 00 AE [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 03 02 [11:13:55]Write to MH i2c: E2 08 00 E2 59 80 0D 03 02 00 00 00 00 B6 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0B 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0B 00 E2 59 00 18 99 CE AB 23 47 54 6E 90 00 0D [11:13:55]RAPDU: 18 99 CE AB 23 47 54 6E 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_SignData done [11:13:55]FM_MakeSignedData done [11:13:55]CreateOFDProtocolMessage [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 11 00 00 [11:13:55]Write to MH i2c: E2 08 00 E3 59 80 11 00 00 00 00 00 00 B6 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 E3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [11:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:55]wFMCommunicate OK [11:13:55]CreateOFDProtocolMessage done [11:13:55]OFDSenderStorePacket 70190 [11:13:55]StoreOFDPacket docnum=70190 [11:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0E 8B 07 01 4D 66 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 8A 00 00 00 F4 03 04 00 F6 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 12 01 00 35 04 06 00 EF C9 E5 38 19 25 18 99 CE AB 23 47 54 6E [11:13:55]CheckFolder [11:13:55]dirname=/storage/ofd_packets [11:13:55]CheckFolder done [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00070190 [11:13:55]NVStorageSaveData ofd_packets/00070190 [11:13:55]File name is /storage/ofd_packets/00070190 [11:13:55]Write 301 bytes [11:13:55]NVStorageSaveData done [11:13:55]OFDSenderStorePacket done [11:13:55]KKMCreateOFDPacket done [11:13:55]NVStorageSaveData kkm_last_timestamp [11:13:55]File name is /storage/kkm_last_timestamp [11:13:55]Write 4 bytes [11:13:55]NVStorageSaveData done [11:13:55]OFD Sender: Processing packet 70190 [packets to send 18, broken 17] [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00070190 [11:13:55]OFD Sender: To server: pG, [11:13:55]CommunicateWithHost lk.salyk.kg:30040 [11:13:55]ConnectInit lk.salyk.kg [11:13:55]ExternCall_PrintAddStr [11:13:55]wPrintStart [11:13:55]Write to MH i2c: 01 00 00 E4 59 3D [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 E4 59 00 00 00 00 00 FF 0F 52 [11:13:55]RasterBufferAndPrint [11:13:55]line Счет N : (1)2885958 [11:13:55]line ИНН: 02508201610067 [11:13:55]line Контрольно-Кассовый Чек [11:13:55]line ПРОДАЖА [11:13:55]line ТРК (МРК, ГНК) : 22 [11:13:55]line Товар: 2710124130 [11:13:55]line Аи-92-К-5 [11:13:55]line 20.000 * 0.00 [11:13:55]line = 0.00 [11:13:55]line НДС 12% НСП 1% [11:13:55]line > о реализуемом товаре [11:13:55]line ИТОГО: 0.00 [11:13:55]line НСП 1% : 0.00 [11:13:55]line НДС 12% : 0.00 [11:13:55]line Наличными: 0.00 [11:13:55]line Безнал.: 0.00 [11:13:55]line Место: АЗС № 85 "Партнер Нефть" [11:13:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:13:55]line СНО: Общий режим [11:13:55]line Чек 138 22.10.2024 11:13 [11:13:55]line Смена: 195 ФФД: 1.0 [11:13:55]line ЗНМ: 0300000167 [11:13:55]line РНМ: 0000000000156251 [11:13:55]line Версия ККМ: v1.0 [11:13:55]line Талоны: ТК ГПНА Online [11:13:55]line 30096608 [11:13:55]line ФМ: 0000000000963346 [11:13:55]line ФД: 70190 [11:13:55]line ФПД: 263650413123877 [11:13:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70190&fm=263650413123877&tin=02508201610067®Number=0000000000156251&sum=0 [11:13:55]Connected sock=11 [11:13: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 34 36 0F 01 00 00 0E 8B 07 01 4D 66 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 8A 00 00 00 F4 03 04 00 F6 88 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 12 01 00 35 04 06 00 EF C9 E5 38 19 25 18 99 CE AB 23 47 54 6E [11:13:55]written 0, free lines is 4095 [11:13: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 34 36 4F 00 00 00 29 C3 47 00 B6 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 12 01 00 F4 03 04 00 97 32 17 67 B6 04 01 00 00 BA 5D 9E 2B 23 97 AE 66 [11:13:56]CommunicateWithHost err = 0 [11:13:56]CheckOFDResponse [11:13:56]1017 (14) - 77093643461234 [11:13:56]1041 (16) - 0000000000963346 [11:13:56]1040 (4) - 70190 [11:13:56]1012 (4) - 22.10.2024 05:05 [11:13:56]1206 (1) - 0 [11:13:56]OFD Sender: Remove packet 70190 [11:13:56]ProducePacketName [11:13:56]name=ofd_packets/00070190 [11:13:56]NVStorageDeleteData [11:13:56]Write to MH i2c: 01 00 00 0E 5A 68 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 0E 5A 00 00 00 00 00 F8 0C 73 [11:13:56]RasterBufferAndPrint [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]written 0, free lines is 3326 [11:13:56]MH_Cut [11:13:56]Write to MH i2c: D1 01 00 15 5A 01 41 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 01 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 01 00 15 5A 00 40 [11:13:56]Write to MH i2c: 01 00 00 16 5A 70 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]OFD Sender: No OFD packet to send [11:13:57]*** Cut start [11:13:57]*** Partial cut [11:13:57]*** CUTSNS_PIN = 1 [11:13:57]*** CUTSNS_PIN = 0 [11:13:57]*** Brake cut motor [11:13:57]Read from MH i2c: 01 [11:13:57]MH_I2C_Read... [11:13:57]*** Stop cut motor [11:13:57]*** Cut end [11:13:57]Read from MH i2c: 01 07 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: 01 07 00 16 5A 00 00 00 00 00 FF 0F 85 [11:13:57]process_action close_receipt done [11:13:57]requested_data is exist [11:13:57]produce_requested_data [11:13:57]requested_item fm.sn is exist - process it [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 11 00 00 [11:13:57]Write to MH i2c: E2 08 00 17 5A 80 11 00 00 00 00 00 00 EB [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 17 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 17 00 17 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [11:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:57]wFMCommunicate OK [11:13:57]requested_item fd.num is exist - process it [11:13:57]SAM_PROTO_GetFieldsCounters [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 00 00 [11:13:57]Write to MH i2c: E2 08 00 18 5A 80 13 00 00 00 00 00 00 EE [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 18 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 12 01 00 0E 04 04 00 C3 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 AB [11:13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 12 01 00 0E 04 04 00 C3 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 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetFieldsCounters done [11:13:57]requested_item shift.num is exist - process it [11:13:57]requested_item shift.opened is exist - process it [11:13:57]req_shift_opened [11:13:57]FM_GetShiftState [11:13:57]SAM_PROTO_GetShiftState [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 01 00 [11:13:57]Write to MH i2c: E2 08 00 19 5A 80 13 01 00 00 00 00 00 F0 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 19 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DE [11:13:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetShiftState done [11:13:57]FM_GetShiftState done [11:13:57]req_shift_opened done [11:13:57]requested_item shift.open_date is exist - process it [11:13:57]req_shift_open_date [11:13:57]req_shift_open_date done [11:13:57]produce_requested_data done [11:13:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70190,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:13:57]process_action_free close_receipt [11:13:57]json_value_free [11:13:57]json_value_free done [11:13:57]process_json_proto returns [11:13:57]Send response to host [11:13:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70190,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:13:57]free response buf [11:13:57]execute_script done [11:13:57]execute_script returns [11:13:57]free content buf [11:13:57]Sock 7.Close socket [11:13:57]Sock 7.Thread stoped [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:22]accept exits with 9 [11:15:22]New connection [11:15:22]New thread 3067170148 created [11:15:22]Thread 3067026788 joined [11:15:22]Waiting for new connection... [11:15:22] Sock 9.Parse request [11:15:22]Sock 9.Check first char [11:15:22]Sock 9.First char is OK [11:15:22]request: POST /json_proto HTTP/1.0 [11:15:22]Method: POST [11:15:22]URL: /json_proto [11:15:22]Method is POST - this is cgi request [11:15:22]url: /json_proto [11:15:22]query_string will be loaded in cgi processing [11:15:22]execute_cgi json_proto POST (null) [11:15:22]execute_cgi path=json_proto method=POST [11:15:22]POST find Content-Length [11:15:22]Host: 172.17.50.3:8080 [11:15:22]Content-Length: 770 [11:15:22]Content-Type: application/json [11:15:22] [11:15:22]POST finish read [11:15:22]Found Content-Length = 770 [11:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:22]execute_script... [11:15: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)2885959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:22]POST & json_proto [11:15:22]process_json_proto [11:15:22]json parsed OK: [11:15:22]protocol is kg_v1.0 [11:15:22]action value=close_receipt [11:15:22]process_action close_receipt [11:15:22]cmd_close_receipt [11:15:22]MH_GetDate [11:15:22]Write to MH i2c: F0 00 00 1A 5A 63 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: F0 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: F0 09 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: F0 09 00 1A 5A 00 4F 89 17 67 6B 98 1E 66 49 [11:15:22]GetLastDocTimeStamp 1729595638 [11:15:22]current date 1729595727 [11:15:22]FM_GetShiftState [11:15:22]SAM_PROTO_GetShiftState [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 13 01 00 [11:15:22]Write to MH i2c: E2 08 00 1B 5A 80 13 01 00 00 00 00 00 F2 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 0E 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 0E 00 1B 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E0 [11:15:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:15:22]wFMCommunicate OK [11:15:22]SAM_PROTO_GetShiftState done [11:15:22]FM_GetShiftState done [11:15:22]opened in 1729555832 [11:15:22]opened+sec_in_day 1729642232 [11:15:22]quantity*price = 100021 [11:15:22]sum+1 = 100023 [11:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 139 22.10.2024 11:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70191 ФПД: 239753975839475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70191&fm=239753975839475&tin=02508201610067®Number=0000000000156251&sum=100022 [11:15:23]StoreToDocumentArchive [11:15:23]shift 195 fd 70191 [11:15:23]save to /storage/0195/doc_00070191 [11:15:23]save last doc name /storage/0195/doc_00070191 to /storage/kkm_last_doc_name [11:15:23]save OK [11:15:23]Clear old archive folders... [11:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:23]tlvbuf is 0120DF00 [11:15:23]SAM_PROTO_ClearQueue [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 09 00 00 [11:15:23]Write to MH i2c: E2 08 00 28 5A 80 09 00 00 00 00 00 00 F4 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 28 5A 00 90 00 F6 [11:15:23]RAPDU: 90 00 [11:15:23]wFMCommunicate OK [11:15:23]SAM_PROTO_ClearQueue done [11:15:23]KKMCreateOFDPacket [11:15:23]OFDProtocolAddRootSTLVToBuf [11:15:23]FM_MakeSignedData [11:15:23]FM_MakeSignedData [11:15:23]SAM_PROTO_SignData [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 0D 01 02 [11:15:23]Write to MH i2c: E2 08 00 29 5A 80 0D 01 02 00 00 00 00 FC [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 29 5A 00 90 00 F7 [11:15:23]RAPDU: 90 00 [11:15:23]wFMCommunicate OK [11:15:23]wFMCommunicate request_size=255 [11:15:23]MH_SAM_APDU [11:15: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 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 8B 00 00 00 F4 03 04 00 4F 89 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 12 01 00 35 04 06 00 DA [11:15:23]Write to MH i2c: E2 02 01 2A 5A 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 8B 00 00 00 F4 03 04 00 4F 89 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 12 01 00 35 04 06 00 DA 00 00 8E [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 2A 5A 00 90 00 F8 [11:15:24]RAPDU: 90 00 [11:15:24]wFMCommunicate OK [11:15:24]wFMCommunicate request_size=10 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 0D 02 02 05 0E 12 90 3A F3 [11:15:24]Write to MH i2c: E2 0D 00 2B 5A 80 0D 02 02 05 00 0E 12 90 3A F3 00 00 E6 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 2B 5A 00 90 00 F9 [11:15:24]RAPDU: 90 00 [11:15:24]wFMCommunicate OK [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 0D 03 02 [11:15:24]Write to MH i2c: E2 08 00 2C 5A 80 0D 03 02 00 00 00 00 01 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 0B 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 0B 00 2C 5A 00 84 D5 1D A1 C7 AF 1D 36 90 00 E2 [11:15:24]RAPDU: 84 D5 1D A1 C7 AF 1D 36 90 00 [11:15:24]wFMCommunicate OK [11:15:24]SAM_PROTO_SignData done [11:15:24]FM_MakeSignedData done [11:15:24]CreateOFDProtocolMessage [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 11 00 00 [11:15:24]Write to MH i2c: E2 08 00 2D 5A 80 11 00 00 00 00 00 00 01 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 17 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 17 00 2D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [11:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:15:24]wFMCommunicate OK [11:15:24]CreateOFDProtocolMessage done [11:15:24]OFDSenderStorePacket 70191 [11:15:24]StoreOFDPacket docnum=70191 [11:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 01 09 07 01 80 D9 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 8B 00 00 00 F4 03 04 00 4F 89 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 12 01 00 35 04 06 00 DA 0E 12 90 3A F3 84 D5 1D A1 C7 AF 1D 36 [11:15:24]CheckFolder [11:15:24]dirname=/storage/ofd_packets [11:15:24]CheckFolder done [11:15:24]ProducePacketName [11:15:24]name=ofd_packets/00070191 [11:15:24]NVStorageSaveData ofd_packets/00070191 [11:15:24]File name is /storage/ofd_packets/00070191 [11:15:24]Write 301 bytes [11:15:24]NVStorageSaveData done [11:15:24]OFDSenderStorePacket done [11:15:24]KKMCreateOFDPacket done [11:15:24]NVStorageSaveData kkm_last_timestamp [11:15:24]File name is /storage/kkm_last_timestamp [11:15:24]Write 4 bytes [11:15:24]NVStorageSaveData done [11:15:24]ExternCall_PrintAddStr [11:15:24]wPrintStart [11:15:24]Write to MH i2c: 01 00 00 2E 5A 88 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 2E 5A 00 00 00 00 00 FF 0F 9D [11:15:24]RasterBufferAndPrint [11:15:24]line Счет N : (1)2885959 [11:15:24]line ИНН: 02508201610067 [11:15:24]line Контрольно-Кассовый Чек [11:15:24]line ПРОДАЖА [11:15:24]line ТРК (МРК, ГНК) : 43 [11:15:24]line Товар: 2710124500 [11:15:24]line Аи-95-К-5 [11:15:24]line 13.480 * 74.20 [11:15:24]line = 1000.22 [11:15:24]line НДС 12% НСП 1% [11:15:24]line > о реализуемом товаре [11:15:24]line ИТОГО: 1000.22 [11:15:24]line НСП 1% : 8.85 [11:15:24]line НДС 12% : 106.22 [11:15:24]line Наличными: 0.00 [11:15:24]line Безнал.: 1000.22 [11:15:24]line Место: АЗС № 85 "Партнер Нефть" [11:15:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:15:24]line СНО: Общий режим [11:15:24]line Чек 139 22.10.2024 11:15 [11:15:24]line Смена: 195 ФФД: 1.0 [11:15:24]line ЗНМ: 0300000167 [11:15:24]line РНМ: 0000000000156251 [11:15:24]line Версия ККМ: v1.0 [11:15:24]line Платежная система: Mbank [11:15:24]line ФМ: 0000000000963346 [11:15:24]line ФД: 70191 [11:15:24]line ФПД: 239753975839475 [11:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70191&fm=239753975839475&tin=02508201610067®Number=0000000000156251&sum=100022 [11:15:24]OFD Sender: Processing packet 70191 [packets to send 18, broken 17] [11:15:24]ProducePacketName [11:15:24]name=ofd_packets/00070191 [11:15:24]OFD Sender: To server: pG, [11:15:24]CommunicateWithHost lk.salyk.kg:30040 [11:15:24]ConnectInit lk.salyk.kg [11:15:24]written 0, free lines is 4095 [11:15:24]Connected sock=10 [11:15: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 34 36 0F 01 00 00 01 09 07 01 80 D9 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 8B 00 00 00 F4 03 04 00 4F 89 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 12 01 00 35 04 06 00 DA 0E 12 90 3A F3 84 D5 1D A1 C7 AF 1D 36 [11:15: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 34 36 4F 00 00 00 89 B2 47 00 BA 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 34 36 10 04 04 00 2F 12 01 00 F4 03 04 00 F0 32 17 67 B6 04 01 00 00 28 D3 36 90 4E 84 12 F1 [11:15:24]CommunicateWithHost err = 0 [11:15:24]CheckOFDResponse [11:15:24]1017 (14) - 77093643461234 [11:15:24]1041 (16) - 0000000000963346 [11:15:24]1040 (4) - 70191 [11:15:24]1012 (4) - 22.10.2024 05:06 [11:15:24]1206 (1) - 0 [11:15:24]OFD Sender: Remove packet 70191 [11:15:24]ProducePacketName [11:15:24]name=ofd_packets/00070191 [11:15:24]NVStorageDeleteData [11:15:24]Write to MH i2c: 01 00 00 57 5A B1 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 57 5A 00 00 00 00 00 0F 0D D4 [11:15:24]RasterBufferAndPrint [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]written 0, free lines is 3349 [11:15:24]MH_Cut [11:15:24]Write to MH i2c: D1 01 00 5E 5A 01 8A [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 01 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 01 00 5E 5A 00 89 [11:15:24]Write to MH i2c: 01 00 00 5F 5A B9 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:25]OFD Sender: No OFD packet to send [11:15:25]*** Cut start [11:15:25]*** Partial cut [11:15:25]*** CUTSNS_PIN = 1 [11:15:25]*** CUTSNS_PIN = 0 [11:15:25]*** Brake cut motor [11:15:26]Read from MH i2c: 01 [11:15:26]MH_I2C_Read... [11:15:26]*** Stop cut motor [11:15:26]*** Cut end [11:15:26]Read from MH i2c: 01 07 00 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: 01 07 00 5F 5A 00 00 00 00 00 FF 0F CE [11:15:26]process_action close_receipt done [11:15:26]requested_data is exist [11:15:26]produce_requested_data [11:15:26]requested_item fm.sn is exist - process it [11:15:26]wFMCommunicate request_size=4 [11:15:26]MH_SAM_APDU [11:15:26]CAPDU: 80 11 00 00 [11:15:26]Write to MH i2c: E2 08 00 60 5A 80 11 00 00 00 00 00 00 34 [11:15:26]Write i2c OK [11:15:26]MH_I2C_Read... [11:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:26]Read from MH i2c: E2 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 17 00 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 17 00 60 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [11:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:15:26]wFMCommunicate OK [11:15:26]requested_item fd.num is exist - process it [11:15:26]SAM_PROTO_GetFieldsCounters [11:15:26]wFMCommunicate request_size=4 [11:15:26]MH_SAM_APDU [11:15:26]CAPDU: 80 13 00 00 [11:15:26]Write to MH i2c: E2 08 00 61 5A 80 13 00 00 00 00 00 00 37 [11:15:26]Write i2c OK [11:15:26]MH_I2C_Read... [11:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:26]Read from MH i2c: E2 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 62 00 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 62 00 61 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 12 01 00 0E 04 04 00 C3 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 F8 [11:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 12 01 00 0E 04 04 00 C3 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 [11:15:26]wFMCommunicate OK [11:15:26]SAM_PROTO_GetFieldsCounters done [11:15:26]requested_item shift.num is exist - process it [11:15:26]requested_item shift.opened is exist - process it [11:15:26]req_shift_opened [11:15:26]FM_GetShiftState [11:15:26]SAM_PROTO_GetShiftState [11:15:26]wFMCommunicate request_size=4 [11:15:26]MH_SAM_APDU [11:15:26]CAPDU: 80 13 01 00 [11:15:26]Write to MH i2c: E2 08 00 62 5A 80 13 01 00 00 00 00 00 39 [11:15:26]Write i2c OK [11:15:26]MH_I2C_Read... [11:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:26]Read from MH i2c: E2 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 0E 00 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 0E 00 62 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 27 [11:15:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:15:26]wFMCommunicate OK [11:15:26]SAM_PROTO_GetShiftState done [11:15:26]FM_GetShiftState done [11:15:26]req_shift_opened done [11:15:26]requested_item shift.open_date is exist - process it [11:15:26]req_shift_open_date [11:15:26]req_shift_open_date done [11:15:26]produce_requested_data done [11:15:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70191,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:15:26]process_action_free close_receipt [11:15:26]json_value_free [11:15:26]json_value_free done [11:15:26]process_json_proto returns [11:15:26]Send response to host [11:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70191,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:15:26]free response buf [11:15:26]execute_script done [11:15:26]execute_script returns [11:15:26]free content buf [11:15:26]Sock 9.Close socket [11:15:26]Sock 9.Thread stoped [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:37]accept exits with 7 [11:18:37]New connection [11:18:37]New thread 3067026788 created [11:18:37]Thread 3067170148 joined [11:18:37]Waiting for new connection... [11:18:37] Sock 7.Parse request [11:18:37]Sock 7.Check first char [11:18:37]Sock 7.First char is OK [11:18:37]request: POST /json_proto HTTP/1.0 [11:18:37]Method: POST [11:18:37]URL: /json_proto [11:18:37]Method is POST - this is cgi request [11:18:37]url: /json_proto [11:18:37]query_string will be loaded in cgi processing [11:18:37]execute_cgi json_proto POST (null) [11:18:37]execute_cgi path=json_proto method=POST [11:18:37]POST find Content-Length [11:18:37]Host: 172.17.50.3:8080 [11:18:37]Content-Length: 683 [11:18:37]Content-Type: application/json [11:18:37] [11:18:37]POST finish read [11:18:37]Found Content-Length = 683 [11:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [11:18:37]execute_script... [11:18: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)2885960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [11:18:37]POST & json_proto [11:18:37]process_json_proto [11:18:37]json parsed OK: [11:18:37]protocol is kg_v1.0 [11:18:37]action value=close_receipt [11:18:37]process_action close_receipt [11:18:37]cmd_close_receipt [11:18:37]MH_GetDate [11:18:37]Write to MH i2c: F0 00 00 63 5A AC [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 63 5A 00 12 8A 17 67 6B 98 1E 66 56 [11:18:37]GetLastDocTimeStamp 1729595727 [11:18:37]current date 1729595922 [11:18:37]FM_GetShiftState [11:18:37]SAM_PROTO_GetShiftState [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 13 01 00 [11:18:37]Write to MH i2c: E2 08 00 64 5A 80 13 01 00 00 00 00 00 3B [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 64 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [11:18:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_GetShiftState done [11:18:37]FM_GetShiftState done [11:18:37]opened in 1729555832 [11:18:37]opened+sec_in_day 1729642232 [11:18:37]quantity*price = 250054 [11:18:37]sum+1 = 250055 [11:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 140 22.10.2024 11:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70192 ФПД: 278362625129615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111842&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70192&fm=278362625129615&tin=02508201610067®Number=0000000000156251&sum=250000 [11:18:38]StoreToDocumentArchive [11:18:38]shift 195 fd 70192 [11:18:38]save to /storage/0195/doc_00070192 [11:18:38]save last doc name /storage/0195/doc_00070192 to /storage/kkm_last_doc_name [11:18:38]save OK [11:18:38]Clear old archive folders... [11:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:38]tlvbuf is 0128ACC0 [11:18:38]SAM_PROTO_ClearQueue [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 09 00 00 [11:18:38]Write to MH i2c: E2 08 00 71 5A 80 09 00 00 00 00 00 00 3D [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 71 5A 00 90 00 3F [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_ClearQueue done [11:18:38]KKMCreateOFDPacket [11:18:38]OFDProtocolAddRootSTLVToBuf [11:18:38]FM_MakeSignedData [11:18:38]FM_MakeSignedData [11:18:38]SAM_PROTO_SignData [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 01 02 [11:18:38]Write to MH i2c: E2 08 00 72 5A 80 0D 01 02 00 00 00 00 45 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 72 5A 00 90 00 40 [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]wFMCommunicate request_size=255 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 8C 00 00 00 F4 03 04 00 12 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 12 01 00 35 04 06 00 FD [11:18:38]Write to MH i2c: E2 02 01 73 5A 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 8C 00 00 00 F4 03 04 00 12 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 12 01 00 35 04 06 00 FD 00 00 62 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 73 5A 00 90 00 41 [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]wFMCommunicate request_size=10 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 02 02 05 2B 59 63 BC 8F [11:18:38]Write to MH i2c: E2 0D 00 74 5A 80 0D 02 02 05 00 2B 59 63 BC 8F 00 00 84 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 74 5A 00 90 00 42 [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 03 02 [11:18:38]Write to MH i2c: E2 08 00 75 5A 80 0D 03 02 00 00 00 00 4A [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0B 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0B 00 75 5A 00 20 9C 13 FD 14 2F 13 42 90 00 AF [11:18:38]RAPDU: 20 9C 13 FD 14 2F 13 42 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_SignData done [11:18:38]FM_MakeSignedData done [11:18:38]CreateOFDProtocolMessage [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 11 00 00 [11:18:38]Write to MH i2c: E2 08 00 76 5A 80 11 00 00 00 00 00 00 4A [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 17 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 17 00 76 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [11:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:38]wFMCommunicate OK [11:18:38]CreateOFDProtocolMessage done [11:18:38]OFDSenderStorePacket 70192 [11:18:38]StoreOFDPacket docnum=70192 [11:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E9 E1 07 01 8E D6 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 8C 00 00 00 F4 03 04 00 12 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 12 01 00 35 04 06 00 FD 2B 59 63 BC 8F 20 9C 13 FD 14 2F 13 42 [11:18:38]CheckFolder [11:18:38]dirname=/storage/ofd_packets [11:18:38]CheckFolder done [11:18:38]ProducePacketName [11:18:38]name=ofd_packets/00070192 [11:18:38]NVStorageSaveData ofd_packets/00070192 [11:18:38]File name is /storage/ofd_packets/00070192 [11:18:38]Write 301 bytes [11:18:38]NVStorageSaveData done [11:18:38]OFDSenderStorePacket done [11:18:38]KKMCreateOFDPacket done [11:18:38]NVStorageSaveData kkm_last_timestamp [11:18:38]File name is /storage/kkm_last_timestamp [11:18:38]Write 4 bytes [11:18:38]NVStorageSaveData done [11:18:38]ExternCall_PrintAddStr [11:18:38]wPrintStart [11:18:38]Write to MH i2c: 01 00 00 77 5A D1 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 77 5A 00 00 00 00 00 FF 0F E6 [11:18:38]RasterBufferAndPrint [11:18:38]line Счет N : (1)2885960 [11:18:38]line ИНН: 02508201610067 [11:18:38]line Контрольно-Кассовый Чек [11:18:38]line ПРОДАЖА [11:18:38]line ТРК (МРК, ГНК) : 13 [11:18:38]line Товар: 2710124500 [11:18:38]line Аи-95-К-5 [11:18:38]line 33.700 * 74.20 [11:18:38]line = 2500.54 [11:18:38]line НДС 12% НСП 1% [11:18:38]line > о реализуемом товаре [11:18:38]line ОКРУГЛЕНИЕ: -0.54 [11:18:38]line ИТОГО: 2500.00 [11:18:38]line Внесено: 2500.00 [11:18:38]line СДАЧА: 0.00 [11:18:38]line НСП 1% : 22.13 [11:18:38]line НДС 12% : 265.54 [11:18:38]line Наличными: 2500.00 [11:18:38]line Безнал.: 0.00 [11:18:38]line Место: АЗС № 85 "Партнер Нефть" [11:18:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:18:38]line СНО: Общий режим [11:18:38]line Чек 140 22.10.2024 11:18 [11:18:38]line Смена: 195 ФФД: 1.0 [11:18:38]line ЗНМ: 0300000167 [11:18:38]line РНМ: 0000000000156251 [11:18:38]line Версия ККМ: v1.0 [11:18:38]line ФМ: 0000000000963346 [11:18:38]line ФД: 70192 [11:18:38]line ФПД: 278362625129615 [11:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111842&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70192&fm=278362625129615&tin=02508201610067®Number=0000000000156251&sum=250000 [11:18:39]OFD Sender: Processing packet 70192 [packets to send 18, broken 17] [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00070192 [11:18:39]OFD Sender: To server: pG, [11:18:39]CommunicateWithHost lk.salyk.kg:30040 [11:18:39]ConnectInit lk.salyk.kg [11:18:39]written 0, free lines is 4095 [11:18:39]Connected sock=10 [11:18: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 34 36 0F 01 00 00 E9 E1 07 01 8E D6 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 8C 00 00 00 F4 03 04 00 12 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 12 01 00 35 04 06 00 FD 2B 59 63 BC 8F 20 9C 13 FD 14 2F 13 42 [11:18: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 34 36 4F 00 00 00 1E AE 47 00 70 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 12 01 00 F4 03 04 00 B3 33 17 67 B6 04 01 00 00 0D 47 FD E4 AC A2 4D 95 [11:18:39]CommunicateWithHost err = 0 [11:18:39]CheckOFDResponse [11:18:39]1017 (14) - 77093643461234 [11:18:39]1041 (16) - 0000000000963346 [11:18:39]1040 (4) - 70192 [11:18:39]1012 (4) - 22.10.2024 05:10 [11:18:39]1206 (1) - 0 [11:18:39]OFD Sender: Remove packet 70192 [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00070192 [11:18:39]NVStorageDeleteData [11:18:39]Write to MH i2c: 01 00 00 A2 5A FC [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 A2 5A 00 00 00 00 00 F5 0C 04 [11:18:39]RasterBufferAndPrint [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]written 0, free lines is 3326 [11:18:39]MH_Cut [11:18:39]Write to MH i2c: D1 01 00 A9 5A 01 D5 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 A9 5A 00 D4 [11:18:39]Write to MH i2c: 01 00 00 AA 5A 04 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]OFD Sender: No OFD packet to send [11:18:40]*** Cut start [11:18:40]*** Partial cut [11:18:40]*** CUTSNS_PIN = 1 [11:18:40]*** CUTSNS_PIN = 0 [11:18:40]*** Brake cut motor [11:18:40]Read from MH i2c: 01 [11:18:40]MH_I2C_Read... [11:18:40]*** Stop cut motor [11:18:40]*** Cut end [11:18:40]Read from MH i2c: 01 07 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: 01 07 00 AA 5A 00 00 00 00 00 FF 0F 19 [11:18:40]process_action close_receipt done [11:18:40]requested_data is exist [11:18:40]produce_requested_data [11:18:40]requested_item fm.sn is exist - process it [11:18:40]wFMCommunicate request_size=4 [11:18:40]MH_SAM_APDU [11:18:40]CAPDU: 80 11 00 00 [11:18:40]Write to MH i2c: E2 08 00 AB 5A 80 11 00 00 00 00 00 00 7F [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:40]Read from MH i2c: E2 [11:18:40]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 AB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [11:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:41]wFMCommunicate OK [11:18:41]requested_item fd.num is exist - process it [11:18:41]SAM_PROTO_GetFieldsCounters [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 00 00 [11:18:41]Write to MH i2c: E2 08 00 AC 5A 80 13 00 00 00 00 00 00 82 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 AC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 12 01 00 0E 04 04 00 C3 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 47 [11:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 12 01 00 0E 04 04 00 C3 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 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetFieldsCounters done [11:18:41]requested_item shift.num is exist - process it [11:18:41]requested_item shift.opened is exist - process it [11:18:41]req_shift_opened [11:18:41]FM_GetShiftState [11:18:41]SAM_PROTO_GetShiftState [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 01 00 [11:18:41]Write to MH i2c: E2 08 00 AD 5A 80 13 01 00 00 00 00 00 84 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 AD 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 72 [11:18:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetShiftState done [11:18:41]FM_GetShiftState done [11:18:41]req_shift_opened done [11:18:41]requested_item shift.open_date is exist - process it [11:18:41]req_shift_open_date [11:18:41]req_shift_open_date done [11:18:41]produce_requested_data done [11:18:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70192,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:18:41]process_action_free close_receipt [11:18:41]json_value_free [11:18:41]json_value_free done [11:18:41]process_json_proto returns [11:18:41]Send response to host [11:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70192,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:18:41]free response buf [11:18:41]execute_script done [11:18:41]execute_script returns [11:18:41]free content buf [11:18:41]Sock 7.Close socket [11:18:41]Sock 7.Thread stoped [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:08]accept exits with 9 [11:19:08]New connection [11:19:08]New thread 3067170148 created [11:19:08]Thread 3067026788 joined [11:19:08]Waiting for new connection... [11:19:08] Sock 9.Parse request [11:19:08]Sock 9.Check first char [11:19:08]Sock 9.First char is OK [11:19:08]request: POST /json_proto HTTP/1.0 [11:19:08]Method: POST [11:19:08]URL: /json_proto [11:19:08]Method is POST - this is cgi request [11:19:08]url: /json_proto [11:19:08]query_string will be loaded in cgi processing [11:19:08]execute_cgi json_proto POST (null) [11:19:08]execute_cgi path=json_proto method=POST [11:19:08]POST find Content-Length [11:19:08]Host: 172.17.50.3:8080 [11:19:08]Content-Length: 683 [11:19:08]Content-Type: application/json [11:19:08] [11:19:08]POST finish read [11:19:08]Found Content-Length = 683 [11:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [11:19:08]execute_script... [11:19: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)2885962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [11:19:08]POST & json_proto [11:19:08]process_json_proto [11:19:08]json parsed OK: [11:19:08]protocol is kg_v1.0 [11:19:08]action value=close_receipt [11:19:08]process_action close_receipt [11:19:08]cmd_close_receipt [11:19:08]MH_GetDate [11:19:08]Write to MH i2c: F0 00 00 AE 5A F7 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 AE 5A 00 31 8A 17 67 6B 98 1E 66 C0 [11:19:08]GetLastDocTimeStamp 1729595922 [11:19:08]current date 1729595953 [11:19:08]FM_GetShiftState [11:19:08]SAM_PROTO_GetShiftState [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 13 01 00 [11:19:08]Write to MH i2c: E2 08 00 AF 5A 80 13 01 00 00 00 00 00 86 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 AF 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 74 [11:19:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_GetShiftState done [11:19:08]FM_GetShiftState done [11:19:08]opened in 1729555832 [11:19:08]opened+sec_in_day 1729642232 [11:19:08]quantity*price = 100015 [11:19:08]sum+1 = 100017 [11:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 141 22.10.2024 11:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70193 ФПД: 189658332805182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70193&fm=189658332805182&tin=02508201610067®Number=0000000000156251&sum=100000 [11:19:09]StoreToDocumentArchive [11:19:09]shift 195 fd 70193 [11:19:09]save to /storage/0195/doc_00070193 [11:19:09]save last doc name /storage/0195/doc_00070193 to /storage/kkm_last_doc_name [11:19:09]save OK [11:19:09]Clear old archive folders... [11:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:09]tlvbuf is 011F6E80 [11:19:09]SAM_PROTO_ClearQueue [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 09 00 00 [11:19:09]Write to MH i2c: E2 08 00 BC 5A 80 09 00 00 00 00 00 00 88 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 BC 5A 00 90 00 8A [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_ClearQueue done [11:19:09]KKMCreateOFDPacket [11:19:09]OFDProtocolAddRootSTLVToBuf [11:19:09]FM_MakeSignedData [11:19:09]FM_MakeSignedData [11:19:09]SAM_PROTO_SignData [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 01 02 [11:19:09]Write to MH i2c: E2 08 00 BD 5A 80 0D 01 02 00 00 00 00 90 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 BD 5A 00 90 00 8B [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=255 [11:19:09]MH_SAM_APDU [11:19: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 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 8D 00 00 00 F4 03 04 00 31 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 12 01 00 35 04 06 00 AC [11:19:09]Write to MH i2c: E2 02 01 BE 5A 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 8D 00 00 00 F4 03 04 00 31 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 12 01 00 35 04 06 00 AC 00 00 8C [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 BE 5A 00 90 00 8C [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=10 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 02 02 05 7E 45 8E 38 3E [11:19:09]Write to MH i2c: E2 0D 00 BF 5A 80 0D 02 02 05 00 7E 45 8E 38 3E 00 00 64 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 BF 5A 00 90 00 8D [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 03 02 [11:19:09]Write to MH i2c: E2 08 00 C0 5A 80 0D 03 02 00 00 00 00 95 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0B 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0B 00 C0 5A 00 7C A2 DC 89 AF 96 50 DE 90 00 8C [11:19:09]RAPDU: 7C A2 DC 89 AF 96 50 DE 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_SignData done [11:19:09]FM_MakeSignedData done [11:19:09]CreateOFDProtocolMessage [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 11 00 00 [11:19:09]Write to MH i2c: E2 08 00 C1 5A 80 11 00 00 00 00 00 00 95 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 17 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 17 00 C1 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [11:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:09]wFMCommunicate OK [11:19:09]CreateOFDProtocolMessage done [11:19:09]OFDSenderStorePacket 70193 [11:19:09]StoreOFDPacket docnum=70193 [11:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AF 04 07 01 17 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 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 8D 00 00 00 F4 03 04 00 31 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 12 01 00 35 04 06 00 AC 7E 45 8E 38 3E 7C A2 DC 89 AF 96 50 DE [11:19:09]CheckFolder [11:19:09]dirname=/storage/ofd_packets [11:19:09]CheckFolder done [11:19:09]ProducePacketName [11:19:09]name=ofd_packets/00070193 [11:19:09]NVStorageSaveData ofd_packets/00070193 [11:19:09]File name is /storage/ofd_packets/00070193 [11:19:09]Write 301 bytes [11:19:09]NVStorageSaveData done [11:19:09]OFDSenderStorePacket done [11:19:09]KKMCreateOFDPacket done [11:19:09]NVStorageSaveData kkm_last_timestamp [11:19:09]File name is /storage/kkm_last_timestamp [11:19:09]Write 4 bytes [11:19:09]NVStorageSaveData done [11:19:09]ExternCall_PrintAddStr [11:19:09]wPrintStart [11:19:09]Write to MH i2c: 01 00 00 C2 5A 1C [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 07 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 07 00 C2 5A 00 00 00 00 00 FF 0F 31 [11:19:09]RasterBufferAndPrint [11:19:09]line Счет N : (1)2885962 [11:19:09]line ИНН: 02508201610067 [11:19:09]line Контрольно-Кассовый Чек [11:19:09]line ПРОДАЖА [11:19:09]line ТРК (МРК, ГНК) : 32 [11:19:09]line Товар: 2710124130 [11:19:09]line Аи-92-К-5 [11:19:09]line 14.950 * 66.90 [11:19:09]line = 1000.16 [11:19:09]line НДС 12% НСП 1% [11:19:09]line > о реализуемом товаре [11:19:09]line ОКРУГЛЕНИЕ: -0.16 [11:19:09]line ИТОГО: 1000.00 [11:19:09]line Внесено: 1000.00 [11:19:09]line СДАЧА: 0.00 [11:19:09]line НСП 1% : 8.85 [11:19:09]line НДС 12% : 106.21 [11:19:09]line Наличными: 1000.00 [11:19:09]line Безнал.: 0.00 [11:19:09]line Место: АЗС № 85 "Партнер Нефть" [11:19:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:19:09]line СНО: Общий режим [11:19:09]line Чек 141 22.10.2024 11:19 [11:19:09]line Смена: 195 ФФД: 1.0 [11:19:09]line ЗНМ: 0300000167 [11:19:09]line РНМ: 0000000000156251 [11:19:09]line Версия ККМ: v1.0 [11:19:09]line ФМ: 0000000000963346 [11:19:09]line ФД: 70193 [11:19:09]line ФПД: 189658332805182 [11:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70193&fm=189658332805182&tin=02508201610067®Number=0000000000156251&sum=100000 [11:19:10]OFD Sender: Processing packet 70193 [packets to send 18, broken 17] [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00070193 [11:19:10]OFD Sender: To server: pG, [11:19:10]CommunicateWithHost lk.salyk.kg:30040 [11:19:10]ConnectInit lk.salyk.kg [11:19:10]written 0, free lines is 4095 [11:19:10]Connected sock=10 [11:19: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 34 36 0F 01 00 00 AF 04 07 01 17 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 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 8D 00 00 00 F4 03 04 00 31 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 12 01 00 35 04 06 00 AC 7E 45 8E 38 3E 7C A2 DC 89 AF 96 50 DE [11:19: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 34 36 4F 00 00 00 3E 33 47 00 F0 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 12 01 00 F4 03 04 00 D2 33 17 67 B6 04 01 00 00 8F 59 CF B8 24 32 EC 44 [11:19:10]CommunicateWithHost err = 0 [11:19:10]CheckOFDResponse [11:19:10]1017 (14) - 77093643461234 [11:19:10]1041 (16) - 0000000000963346 [11:19:10]1040 (4) - 70193 [11:19:10]1012 (4) - 22.10.2024 05:10 [11:19:10]1206 (1) - 0 [11:19:10]OFD Sender: Remove packet 70193 [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00070193 [11:19:10]NVStorageDeleteData [11:19:10]Write to MH i2c: 01 00 00 ED 5A 47 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 ED 5A 00 00 00 00 00 E3 0C 3D [11:19:10]RasterBufferAndPrint [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]written 0, free lines is 3308 [11:19:10]MH_Cut [11:19:10]Write to MH i2c: D1 01 00 F4 5A 01 20 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 F4 5A 00 1F [11:19:10]Write to MH i2c: 01 00 00 F5 5A 4F [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]OFD Sender: No OFD packet to send [11:19:11]*** Cut start [11:19:11]*** Partial cut [11:19:11]*** CUTSNS_PIN = 1 [11:19:11]*** CUTSNS_PIN = 0 [11:19:11]*** Brake cut motor [11:19:11]Read from MH i2c: 01 [11:19:11]MH_I2C_Read... [11:19:11]*** Stop cut motor [11:19:11]Read from MH i2c: *** Cut end [11:19:11]01 07 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: 01 07 00 F5 5A 00 00 00 00 00 FF 0F 64 [11:19:11]process_action close_receipt done [11:19:11]requested_data is exist [11:19:11]produce_requested_data [11:19:11]requested_item fm.sn is exist - process it [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 11 00 00 [11:19:11]Write to MH i2c: E2 08 00 F6 5A 80 11 00 00 00 00 00 00 CA [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 F6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [11:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:11]wFMCommunicate OK [11:19:11]requested_item fd.num is exist - process it [11:19:11]SAM_PROTO_GetFieldsCounters [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 13 00 00 [11:19:11]Write to MH i2c: E2 08 00 F7 5A 80 13 00 00 00 00 00 00 CD [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 62 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 62 00 F7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 12 01 00 0E 04 04 00 C3 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 96 [11:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 12 01 00 0E 04 04 00 C3 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 [11:19:11]wFMCommunicate OK [11:19:11]SAM_PROTO_GetFieldsCounters done [11:19:11]requested_item shift.num is exist - process it [11:19:11]requested_item shift.opened is exist - process it [11:19:12]req_shift_opened [11:19:12]FM_GetShiftState [11:19:12]SAM_PROTO_GetShiftState [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 01 00 [11:19:12]Write to MH i2c: E2 08 00 F8 5A 80 13 01 00 00 00 00 00 CF [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 F8 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [11:19:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetShiftState done [11:19:12]FM_GetShiftState done [11:19:12]req_shift_opened done [11:19:12]requested_item shift.open_date is exist - process it [11:19:12]req_shift_open_date [11:19:12]req_shift_open_date done [11:19:12]produce_requested_data done [11:19:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70193,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:19:12]process_action_free close_receipt [11:19:12]json_value_free [11:19:12]json_value_free done [11:19:12]process_json_proto returns [11:19:12]Send response to host [11:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70193,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:19:12]free response buf [11:19:12]execute_script done [11:19:12]execute_script returns [11:19:12]free content buf [11:19:12]Sock 9.Close socket [11:19:12]Sock 9.Thread stoped [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:33]accept exits with 7 [11:20:33]New connection [11:20:33]New thread 3067026788 created [11:20:33]Thread 3067170148 joined [11:20:33]Waiting for new connection... [11:20:33] Sock 7.Parse request [11:20:33]Sock 7.Check first char [11:20:33]Sock 7.First char is OK [11:20:33]request: POST /json_proto HTTP/1.0 [11:20:33]Method: POST [11:20:33]URL: /json_proto [11:20:33]Method is POST - this is cgi request [11:20:33]url: /json_proto [11:20:33]query_string will be loaded in cgi processing [11:20:33]execute_cgi json_proto POST (null) [11:20:33]execute_cgi path=json_proto method=POST [11:20:33]POST find Content-Length [11:20:33]Host: 172.17.50.3:8080 [11:20:33]Content-Length: 689 [11:20:33]Content-Type: application/json [11:20:33] [11:20:33]POST finish read [11:20:33]Found Content-Length = 689 [11:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:20:33]execute_script... [11:20: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)2885963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:20:33]POST & json_proto [11:20:33]process_json_proto [11:20:33]json parsed OK: [11:20:33]protocol is kg_v1.0 [11:20:33]action value=close_receipt [11:20:33]process_action close_receipt [11:20:33]cmd_close_receipt [11:20:33]MH_GetDate [11:20:33]Write to MH i2c: F0 00 00 F9 5A 42 [11:20:33]Write i2c OK [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: F0 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: F0 09 00 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: F0 09 00 F9 5A 00 86 8A 17 67 6B 98 1E 66 60 [11:20:33]GetLastDocTimeStamp 1729595953 [11:20:33]current date 1729596038 [11:20:33]FM_GetShiftState [11:20:33]SAM_PROTO_GetShiftState [11:20:33]wFMCommunicate request_size=4 [11:20:33]MH_SAM_APDU [11:20:33]CAPDU: 80 13 01 00 [11:20:33]Write to MH i2c: E2 08 00 FA 5A 80 13 01 00 00 00 00 00 D1 [11:20:33]Write i2c OK [11:20:33]MH_I2C_Read... [11:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:33]Read from MH i2c: E2 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 0E 00 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 0E 00 FA 5A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [11:20:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:20:33]wFMCommunicate OK [11:20:33]SAM_PROTO_GetShiftState done [11:20:33]FM_GetShiftState done [11:20:33]opened in 1729555832 [11:20:33]opened+sec_in_day 1729642232 [11:20:33]quantity*price = 400050 [11:20:33]sum+1 = 400051 [11:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 142 22.10.2024 11:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70194 ФПД: 90588900986661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112039&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70194&fm=90588900986661&tin=02508201610067®Number=0000000000156251&sum=400000 [11:20:35]StoreToDocumentArchive [11:20:35]shift 195 fd 70194 [11:20:35]save to /storage/0195/doc_00070194 [11:20:35]save last doc name /storage/0195/doc_00070194 to /storage/kkm_last_doc_name [11:20:35]save OK [11:20:35]Clear old archive folders... [11:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:20:35]tlvbuf is 0128B480 [11:20:35]SAM_PROTO_ClearQueue [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 09 00 00 [11:20:35]Write to MH i2c: E2 08 00 07 5B 80 09 00 00 00 00 00 00 D4 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 07 5B 00 90 00 D6 [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_ClearQueue done [11:20:35]KKMCreateOFDPacket [11:20:35]OFDProtocolAddRootSTLVToBuf [11:20:35]FM_MakeSignedData [11:20:35]FM_MakeSignedData [11:20:35]SAM_PROTO_SignData [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 01 02 [11:20:35]Write to MH i2c: E2 08 00 08 5B 80 0D 01 02 00 00 00 00 DC [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 08 5B 00 90 00 D7 [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=255 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 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 F3 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 8E 00 00 00 F4 03 04 00 87 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 12 01 [11:20:35]Write to MH i2c: E2 02 01 09 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 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 F3 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 8E 00 00 00 F4 03 04 00 87 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 12 01 00 00 78 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 09 5B 00 90 00 D8 [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=16 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 63 DF 43 8F 25 [11:20:35]Write to MH i2c: E2 13 00 0A 5B 80 0D 02 02 0B 00 00 35 04 06 00 52 63 DF 43 8F 25 00 00 BF [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 03 00 0A 5B 00 90 00 D9 [11:20:35]RAPDU: 90 00 [11:20:35]wFMCommunicate OK [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 0D 03 02 [11:20:35]Write to MH i2c: E2 08 00 0B 5B 80 0D 03 02 00 00 00 00 E1 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0B 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0B 00 0B 5B 00 B9 15 7C A1 7E 79 C2 09 90 00 8F [11:20:35]RAPDU: B9 15 7C A1 7E 79 C2 09 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_SignData done [11:20:35]FM_MakeSignedData done [11:20:35]CreateOFDProtocolMessage [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 11 00 00 [11:20:35]Write to MH i2c: E2 08 00 0C 5B 80 11 00 00 00 00 00 00 E1 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 17 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 17 00 0C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [11:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:35]wFMCommunicate OK [11:20:35]CreateOFDProtocolMessage done [11:20:35]OFDSenderStorePacket 70194 [11:20:35]StoreOFDPacket docnum=70194 [11:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D1 09 0D 01 AD 7C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 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 F3 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 8E 00 00 00 F4 03 04 00 87 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 12 01 00 35 04 06 00 52 63 DF 43 8F 25 B9 15 7C A1 7E 79 C2 09 [11:20:35]CheckFolder [11:20:35]dirname=/storage/ofd_packets [11:20:35]CheckFolder done [11:20:35]ProducePacketName [11:20:35]name=ofd_packets/00070194 [11:20:35]NVStorageSaveData ofd_packets/00070194 [11:20:35]File name is /storage/ofd_packets/00070194 [11:20:35]Write 307 bytes [11:20:35]NVStorageSaveData done [11:20:35]OFDSenderStorePacket done [11:20:35]KKMCreateOFDPacket done [11:20:35]NVStorageSaveData kkm_last_timestamp [11:20:35]File name is /storage/kkm_last_timestamp [11:20:35]Write 4 bytes [11:20:35]NVStorageSaveData done [11:20:35]ExternCall_PrintAddStr [11:20:35]wPrintStart [11:20:35]Write to MH i2c: 01 00 00 0D 5B 68 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 0D 5B 00 00 00 00 00 FF 0F 7D [11:20:35]RasterBufferAndPrint [11:20:35]line Счет N : (1)2885963 [11:20:35]line ИНН: 02508201610067 [11:20:35]line Контрольно-Кассовый Чек [11:20:35]line ПРОДАЖА [11:20:35]line ТРК (МРК, ГНК) : 31 [11:20:35]line Товар: 2710194240 [11:20:35]line D-ENERGY Дт-К-2 [11:20:35]line 51.820 * 77.20 [11:20:35]line = 4000.50 [11:20:35]line НДС 12% НСП 1% [11:20:35]line > о реализуемом товаре [11:20:35]line ОКРУГЛЕНИЕ: -0.50 [11:20:35]line ИТОГО: 4000.00 [11:20:35]line Внесено: 4000.00 [11:20:35]line СДАЧА: 0.00 [11:20:35]line НСП 1% : 35.40 [11:20:35]line НДС 12% : 424.83 [11:20:35]line Наличными: 4000.00 [11:20:35]line Безнал.: 0.00 [11:20:35]line Место: АЗС № 85 "Партнер Нефть" [11:20:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:20:35]line СНО: Общий режим [11:20:35]line Чек 142 22.10.2024 11:20 [11:20:35]line Смена: 195 ФФД: 1.0 [11:20:35]line ЗНМ: 0300000167 [11:20:35]line РНМ: 0000000000156251 [11:20:35]line Версия ККМ: v1.0 [11:20:35]line ФМ: 0000000000963346 [11:20:35]line ФД: 70194 [11:20:35]line ФПД: 90588900986661 [11:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112039&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70194&fm=90588900986661&tin=02508201610067®Number=0000000000156251&sum=400000 [11:20:35]OFD Sender: Processing packet 70194 [packets to send 18, broken 17] [11:20:35]ProducePacketName [11:20:35]name=ofd_packets/00070194 [11:20:35]OFD Sender: To server: pG, [11:20:35]CommunicateWithHost lk.salyk.kg:30040 [11:20:35]ConnectInit lk.salyk.kg [11:20:35]written 0, free lines is 4095 [11:20:36]Connected sock=10 [11:20: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 34 36 15 01 00 00 D1 09 0D 01 AD 7C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 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 F3 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 8E 00 00 00 F4 03 04 00 87 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 12 01 00 35 04 06 00 52 63 DF 43 8F 25 B9 15 7C A1 7E 79 C2 09 [11:20: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 34 36 4F 00 00 00 F4 17 47 00 30 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 34 36 10 04 04 00 32 12 01 00 F4 03 04 00 27 34 17 67 B6 04 01 00 00 30 75 A7 6D 6D 11 4E 6C [11:20:36]CommunicateWithHost err = 0 [11:20:36]CheckOFDResponse [11:20:36]1017 (14) - 77093643461234 [11:20:36]1041 (16) - 0000000000963346 [11:20:36]1040 (4) - 70194 [11:20:36]1012 (4) - 22.10.2024 05:12 [11:20:36]1206 (1) - 0 [11:20:36]OFD Sender: Remove packet 70194 [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00070194 [11:20:36]NVStorageDeleteData [11:20:36]Write to MH i2c: 01 00 00 38 5B 93 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 38 5B 00 00 00 00 00 F7 0C 9D [11:20:36]RasterBufferAndPrint [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]line [11:20:36]written 0, free lines is 3329 [11:20:36]MH_Cut [11:20:36]Write to MH i2c: D1 01 00 3F 5B 01 6C [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 01 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: D1 01 00 3F 5B 00 6B [11:20:36]Write to MH i2c: 01 00 00 40 5B 9B [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]OFD Sender: No OFD packet to send [11:20:37]*** Cut start [11:20:37]*** Partial cut [11:20:37]*** CUTSNS_PIN = 1 [11:20:37]*** CUTSNS_PIN = 0 [11:20:37]*** Brake cut motor [11:20:37]Read from MH i2c: 01 [11:20:37]MH_I2C_Read... [11:20:37]*** Stop cut motor [11:20:37]*** Cut end [11:20:37]Read from MH i2c: 01 07 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 40 5B 00 00 00 00 00 FF 0F B0 [11:20:37]process_action close_receipt done [11:20:37]requested_data is exist [11:20:37]produce_requested_data [11:20:37]requested_item fm.sn is exist - process it [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 11 00 00 [11:20:37]Write to MH i2c: E2 08 00 41 5B 80 11 00 00 00 00 00 00 16 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 17 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 17 00 41 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [11:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:37]wFMCommunicate OK [11:20:37]requested_item fd.num is exist - process it [11:20:37]SAM_PROTO_GetFieldsCounters [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 13 00 00 [11:20:37]Write to MH i2c: E2 08 00 42 5B 80 13 00 00 00 00 00 00 19 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 42 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 12 01 00 0E 04 04 00 C3 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 E6 [11:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 12 01 00 0E 04 04 00 C3 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 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetFieldsCounters done [11:20:37]requested_item shift.num is exist - process it [11:20:37]requested_item shift.opened is exist - process it [11:20:37]req_shift_opened [11:20:37]FM_GetShiftState [11:20:37]SAM_PROTO_GetShiftState [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 13 01 00 [11:20:37]Write to MH i2c: E2 08 00 43 5B 80 13 01 00 00 00 00 00 1B [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 43 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 09 [11:20:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetShiftState done [11:20:37]FM_GetShiftState done [11:20:37]req_shift_opened done [11:20:37]requested_item shift.open_date is exist - process it [11:20:37]req_shift_open_date [11:20:37]req_shift_open_date done [11:20:37]produce_requested_data done [11:20:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70194,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:20:37]process_action_free close_receipt [11:20:37]json_value_free [11:20:37]json_value_free done [11:20:37]process_json_proto returns [11:20:37]Send response to host [11:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70194,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:20:37]free response buf [11:20:37]execute_script done [11:20:37]execute_script returns [11:20:37]free content buf [11:20:37]Sock 7.Close socket [11:20:37]Sock 7.Thread stoped [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:29]accept exits with 9 [11:22:29]New connection [11:22:29]New thread 3067170148 created [11:22:29]Thread 3067026788 joined [11:22:29]Waiting for new connection... [11:22:29] Sock 9.Parse request [11:22:29]Sock 9.Check first char [11:22:29]Sock 9.First char is OK [11:22:29]request: POST /json_proto HTTP/1.0 [11:22:29]Method: POST [11:22:29]URL: /json_proto [11:22:29]Method is POST - this is cgi request [11:22:29]url: /json_proto [11:22:29]query_string will be loaded in cgi processing [11:22:29]execute_cgi json_proto POST (null) [11:22:29]execute_cgi path=json_proto method=POST [11:22:29]POST find Content-Length [11:22:29]Host: 172.17.50.3:8080 [11:22:29]Content-Length: 770 [11:22:29]Content-Type: application/json [11:22:29] [11:22:29]POST finish read [11:22:29]Found Content-Length = 770 [11:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:29]execute_script... [11:22:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:29]POST & json_proto [11:22:29]process_json_proto [11:22:29]json parsed OK: [11:22:29]protocol is kg_v1.0 [11:22:29]action value=close_receipt [11:22:29]process_action close_receipt [11:22:29]cmd_close_receipt [11:22:29]MH_GetDate [11:22:29]Write to MH i2c: F0 00 00 44 5B 8E [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: F0 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: F0 09 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: F0 09 00 44 5B 00 FA 8A 17 67 6B 98 1E 66 20 [11:22:29]GetLastDocTimeStamp 1729596039 [11:22:29]current date 1729596154 [11:22:29]FM_GetShiftState [11:22:29]SAM_PROTO_GetShiftState [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 13 01 00 [11:22:29]Write to MH i2c: E2 08 00 45 5B 80 13 01 00 00 00 00 00 1D [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0E 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0E 00 45 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0B [11:22:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_GetShiftState done [11:22:29]FM_GetShiftState done [11:22:29]opened in 1729555832 [11:22:29]opened+sec_in_day 1729642232 [11:22:29]quantity*price = 300064 [11:22:29]sum+1 = 300066 [11:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 143 22.10.2024 11:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70195 ФПД: 45811306083673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70195&fm=45811306083673&tin=02508201610067®Number=0000000000156251&sum=300065 [11:22:30]StoreToDocumentArchive [11:22:30]shift 195 fd 70195 [11:22:30]save to /storage/0195/doc_00070195 [11:22:30]save last doc name /storage/0195/doc_00070195 to /storage/kkm_last_doc_name [11:22:30]save OK [11:22:30]Clear old archive folders... [11:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:30]tlvbuf is 01154DD0 [11:22:30]SAM_PROTO_ClearQueue [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 09 00 00 [11:22:30]Write to MH i2c: E2 08 00 52 5B 80 09 00 00 00 00 00 00 1F [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 52 5B 00 90 00 21 [11:22:30]RAPDU: 90 00 [11:22:30]wFMCommunicate OK [11:22:30]SAM_PROTO_ClearQueue done [11:22:30]KKMCreateOFDPacket [11:22:30]OFDProtocolAddRootSTLVToBuf [11:22:30]FM_MakeSignedData [11:22:30]FM_MakeSignedData [11:22:30]SAM_PROTO_SignData [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 0D 01 02 [11:22:30]Write to MH i2c: E2 08 00 53 5B 80 0D 01 02 00 00 00 00 27 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 53 5B 00 90 00 22 [11:22:30]RAPDU: 90 00 [11:22:30]wFMCommunicate OK [11:22:30]wFMCommunicate request_size=255 [11:22:30]MH_SAM_APDU [11:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 FA 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 12 01 00 35 04 06 00 29 [11:22:30]Write to MH i2c: E2 02 01 54 5B 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 FA 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 12 01 00 35 04 06 00 29 00 00 28 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [11:22:30]RAPDU: 90 00 [11:22:30]wFMCommunicate OK [11:22:30]wFMCommunicate request_size=10 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 0D 02 02 05 AA 46 A0 35 59 [11:22:30]Write to MH i2c: E2 0D 00 55 5B 80 0D 02 02 05 00 AA 46 A0 35 59 00 00 52 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [11:22:30]RAPDU: 90 00 [11:22:30]wFMCommunicate OK [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 0D 03 02 [11:22:30]Write to MH i2c: E2 08 00 56 5B 80 0D 03 02 00 00 00 00 2C [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0B 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0B 00 56 5B 00 01 A5 33 42 04 F7 4C 8A 90 00 19 [11:22:31]RAPDU: 01 A5 33 42 04 F7 4C 8A 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_SignData done [11:22:31]FM_MakeSignedData done [11:22:31]CreateOFDProtocolMessage [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 11 00 00 [11:22:31]Write to MH i2c: E2 08 00 57 5B 80 11 00 00 00 00 00 00 2C [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 17 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 17 00 57 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [11:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:22:31]wFMCommunicate OK [11:22:31]CreateOFDProtocolMessage done [11:22:31]OFDSenderStorePacket 70195 [11:22:31]StoreOFDPacket docnum=70195 [11:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E8 26 07 01 BD 27 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 FA 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 12 01 00 35 04 06 00 29 AA 46 A0 35 59 01 A5 33 42 04 F7 4C 8A [11:22:31]CheckFolder [11:22:31]dirname=/storage/ofd_packets [11:22:31]CheckFolder done [11:22:31]ProducePacketName [11:22:31]name=ofd_packets/00070195 [11:22:31]NVStorageSaveData ofd_packets/00070195 [11:22:31]File name is /storage/ofd_packets/00070195 [11:22:31]Write 301 bytes [11:22:31]NVStorageSaveData done [11:22:31]OFDSenderStorePacket done [11:22:31]KKMCreateOFDPacket done [11:22:31]NVStorageSaveData kkm_last_timestamp [11:22:31]File name is /storage/kkm_last_timestamp [11:22:31]Write 4 bytes [11:22:31]NVStorageSaveData done [11:22:31]ExternCall_PrintAddStr [11:22:31]wPrintStart [11:22:31]Write to MH i2c: 01 00 00 58 5B B3 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 07 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 07 00 58 5B 00 00 00 00 00 FF 0F C8 [11:22:31]RasterBufferAndPrint [11:22:31]line Счет N : (1)2885964 [11:22:31]line ИНН: 02508201610067 [11:22:31]line Контрольно-Кассовый Чек [11:22:31]line ПРОДАЖА [11:22:31]line ТРК (МРК, ГНК) : 23 [11:22:31]line Товар: 2710124500 [11:22:31]line Аи-95-К-5 [11:22:31]line 40.440 * 74.20 [11:22:31]line = 3000.65 [11:22:31]line НДС 12% НСП 1% [11:22:31]line > о реализуемом товаре [11:22:31]line ИТОГО: 3000.65 [11:22:31]line НСП 1% : 26.55 [11:22:31]line НДС 12% : 318.65 [11:22:31]line Наличными: 0.00 [11:22:31]line Безнал.: 3000.65 [11:22:31]line Место: АЗС № 85 "Партнер Нефть" [11:22:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:22:31]line СНО: Общий режим [11:22:31]line Чек 143 22.10.2024 11:22 [11:22:31]line Смена: 195 ФФД: 1.0 [11:22:31]line ЗНМ: 0300000167 [11:22:31]line РНМ: 0000000000156251 [11:22:31]line Версия ККМ: v1.0 [11:22:31]line Платежная система: Mbank [11:22:31]line ФМ: 0000000000963346 [11:22:31]line ФД: 70195 [11:22:31]line ФПД: 45811306083673 [11:22:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70195&fm=45811306083673&tin=02508201610067®Number=0000000000156251&sum=300065 [11:22:31]OFD Sender: Processing packet 70195 [packets to send 18, broken 17] [11:22:31]ProducePacketName [11:22:31]name=ofd_packets/00070195 [11:22:31]OFD Sender: To server: pG, [11:22:31]CommunicateWithHost lk.salyk.kg:30040 [11:22:31]ConnectInit lk.salyk.kg [11:22:31]written 0, free lines is 4095 [11:22:31]Connected sock=10 [11:22: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 34 36 0F 01 00 00 E8 26 07 01 BD 27 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 FA 8A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 12 01 00 35 04 06 00 29 AA 46 A0 35 59 01 A5 33 42 04 F7 4C 8A [11:22: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 34 36 4F 00 00 00 C0 D3 47 00 1E 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 34 36 10 04 04 00 33 12 01 00 F4 03 04 00 9B 34 17 67 B6 04 01 00 00 D3 27 5A 59 29 75 35 4D [11:22:31]CommunicateWithHost err = 0 [11:22:31]CheckOFDResponse [11:22:31]1017 (14) - 77093643461234 [11:22:31]1041 (16) - 0000000000963346 [11:22:31]1040 (4) - 70195 [11:22:31]1012 (4) - 22.10.2024 05:14 [11:22:31]1206 (1) - 0 [11:22:31]OFD Sender: Remove packet 70195 [11:22:31]ProducePacketName [11:22:31]name=ofd_packets/00070195 [11:22:31]NVStorageDeleteData [11:22:31]Write to MH i2c: 01 00 00 81 5B DC [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 07 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: 01 07 00 81 5B 00 00 00 00 00 19 0D 09 [11:22:31]RasterBufferAndPrint [11:22:31]line [11:22:31]line [11:22:31]line [11:22:31]line [11:22:31]line [11:22:31]written 0, free lines is 3362 [11:22:31]MH_Cut [11:22:31]Write to MH i2c: D1 01 00 88 5B 01 B5 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: D1 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: D1 01 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: D1 01 00 88 5B 00 B4 [11:22:31]Write to MH i2c: 01 00 00 89 5B E4 [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:32]OFD Sender: No OFD packet to send [11:22:32]*** Cut start [11:22:32]*** Partial cut [11:22:32]*** CUTSNS_PIN = 1 [11:22:32]*** CUTSNS_PIN = 0 [11:22:32]*** Brake cut motor [11:22:33]Read from MH i2c: 01 [11:22:33]MH_I2C_Read... [11:22:33]*** Stop cut motor [11:22:33]*** Cut end [11:22:33]Read from MH i2c: 01 07 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 89 5B 00 00 00 00 00 FF 0F F9 [11:22:33]process_action close_receipt done [11:22:33]requested_data is exist [11:22:33]produce_requested_data [11:22:33]requested_item fm.sn is exist - process it [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 11 00 00 [11:22:33]Write to MH i2c: E2 08 00 8A 5B 80 11 00 00 00 00 00 00 5F [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 8A 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [11:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:22:33]wFMCommunicate OK [11:22:33]requested_item fd.num is exist - process it [11:22:33]SAM_PROTO_GetFieldsCounters [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 13 00 00 [11:22:33]Write to MH i2c: E2 08 00 8B 5B 80 13 00 00 00 00 00 00 62 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 62 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 62 00 8B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 12 01 00 0E 04 04 00 C3 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 33 [11:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 12 01 00 0E 04 04 00 C3 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 [11:22:33]wFMCommunicate OK [11:22:33]SAM_PROTO_GetFieldsCounters done [11:22:33]requested_item shift.num is exist - process it [11:22:33]requested_item shift.opened is exist - process it [11:22:33]req_shift_opened [11:22:33]FM_GetShiftState [11:22:33]SAM_PROTO_GetShiftState [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 13 01 00 [11:22:33]Write to MH i2c: E2 08 00 8C 5B 80 13 01 00 00 00 00 00 64 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0E 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0E 00 8C 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 52 [11:22:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:22:33]wFMCommunicate OK [11:22:33]SAM_PROTO_GetShiftState done [11:22:33]FM_GetShiftState done [11:22:33]req_shift_opened done [11:22:33]requested_item shift.open_date is exist - process it [11:22:33]req_shift_open_date [11:22:33]req_shift_open_date done [11:22:33]produce_requested_data done [11:22:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70195,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:22:33]process_action_free close_receipt [11:22:33]json_value_free [11:22:33]json_value_free done [11:22:33]process_json_proto returns [11:22:33]Send response to host [11:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70195,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:22:33]free response buf [11:22:33]execute_script done [11:22:33]execute_script returns [11:22:33]free content buf [11:22:33]Sock 9.Close socket [11:22:33]Sock 9.Thread stoped [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:44]accept exits with 7 [11:23:44]New connection [11:23:44]New thread 3067026788 created [11:23:44]Thread 3067170148 joined [11:23:44]Waiting for new connection... [11:23:44] Sock 7.Parse request [11:23:44]Sock 7.Check first char [11:23:44]Sock 7.First char is OK [11:23:44]request: POST /json_proto HTTP/1.0 [11:23:44]Method: POST [11:23:44]URL: /json_proto [11:23:44]Method is POST - this is cgi request [11:23:44]url: /json_proto [11:23:44]query_string will be loaded in cgi processing [11:23:44]execute_cgi json_proto POST (null) [11:23:44]execute_cgi path=json_proto method=POST [11:23:44]POST find Content-Length [11:23:44]Host: 172.17.50.3:8080 [11:23:44]Content-Length: 768 [11:23:44]Content-Type: application/json [11:23:44] [11:23:44]POST finish read [11:23:44]Found Content-Length = 768 [11:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.000, "sum" : 9144.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" : 9144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:44]execute_script... [11:23: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)2885961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.000, "sum" : 9144.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" : 9144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:44]POST & json_proto [11:23:44]process_json_proto [11:23:44]json parsed OK: [11:23:44]protocol is kg_v1.0 [11:23:44]action value=close_receipt [11:23:44]process_action close_receipt [11:23:44]cmd_close_receipt [11:23:44]MH_GetDate [11:23:44]Write to MH i2c: F0 00 00 8D 5B D7 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: F0 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: F0 09 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: F0 09 00 8D 5B 00 45 8B 17 67 6B 98 1E 66 B5 [11:23:44]GetLastDocTimeStamp 1729596154 [11:23:44]current date 1729596229 [11:23:44]FM_GetShiftState [11:23:44]SAM_PROTO_GetShiftState [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 13 01 00 [11:23:44]Write to MH i2c: E2 08 00 8E 5B 80 13 01 00 00 00 00 00 66 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 0E 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 0E 00 8E 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 54 [11:23:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:23:44]wFMCommunicate OK [11:23:44]SAM_PROTO_GetShiftState done [11:23:44]FM_GetShiftState done [11:23:44]opened in 1729555832 [11:23:44]opened+sec_in_day 1729642232 [11:23:44]quantity*price = 914400 [11:23:44]sum+1 = 914401 [11:23:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9144.00 НСП 1% : 80.92 НДС 12% : 971.04 Наличными: 0.00 Безнал.: 9144.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 144 22.10.2024 11:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70196 ФПД: 226518665818386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70196&fm=226518665818386&tin=02508201610067®Number=0000000000156251&sum=914400 [11:23:45]StoreToDocumentArchive [11:23:45]shift 195 fd 70196 [11:23:45]save to /storage/0195/doc_00070196 [11:23:45]save last doc name /storage/0195/doc_00070196 to /storage/kkm_last_doc_name [11:23:45]save OK [11:23:45]Clear old archive folders... [11:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:23:45]tlvbuf is 011D70A0 [11:23:45]SAM_PROTO_ClearQueue [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 09 00 00 [11:23:45]Write to MH i2c: E2 08 00 9B 5B 80 09 00 00 00 00 00 00 68 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 9B 5B 00 90 00 6A [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_ClearQueue done [11:23:45]KKMCreateOFDPacket [11:23:45]OFDProtocolAddRootSTLVToBuf [11:23:45]FM_MakeSignedData [11:23:45]FM_MakeSignedData [11:23:45]SAM_PROTO_SignData [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 0D 01 02 [11:23:45]Write to MH i2c: E2 08 00 9C 5B 80 0D 01 02 00 00 00 00 70 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 9C 5B 00 90 00 6B [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]wFMCommunicate request_size=255 [11:23:45]MH_SAM_APDU [11:23: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 C0 D4 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 F3 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F3 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 7B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 F3 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 45 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 12 01 00 35 04 06 00 CE 04 7C 9C [11:23:45]Write to MH i2c: E2 02 01 9D 5B 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 C0 D4 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 F3 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F3 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 7B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 F3 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 45 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 12 01 00 35 04 06 00 CE 04 7C 9C 00 00 36 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 9D 5B 00 90 00 6C [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]wFMCommunicate request_size=7 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 0D 02 02 02 71 12 [11:23:45]Write to MH i2c: E2 0A 00 9E 5B 80 0D 02 02 02 00 71 12 00 00 FA [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 0D 03 02 [11:23:45]Write to MH i2c: E2 08 00 9F 5B 80 0D 03 02 00 00 00 00 75 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0B 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0B 00 9F 5B 00 C7 F4 9C C5 7C 06 1C 76 90 00 A6 [11:23:45]RAPDU: C7 F4 9C C5 7C 06 1C 76 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_SignData done [11:23:45]FM_MakeSignedData done [11:23:45]CreateOFDProtocolMessage [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 11 00 00 [11:23:45]Write to MH i2c: E2 08 00 A0 5B 80 11 00 00 00 00 00 00 75 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 17 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 17 00 A0 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [11:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:46]wFMCommunicate OK [11:23:46]CreateOFDProtocolMessage done [11:23:46]OFDSenderStorePacket 70196 [11:23:46]StoreOFDPacket docnum=70196 [11:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 04 F9 04 01 C3 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 C0 D4 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 F3 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F3 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 7B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 F3 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 45 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 12 01 00 35 04 06 00 CE 04 7C 9C 71 12 C7 F4 9C C5 7C 06 1C 76 [11:23:46]CheckFolder [11:23:46]dirname=/storage/ofd_packets [11:23:46]CheckFolder done [11:23:46]ProducePacketName [11:23:46]name=ofd_packets/00070196 [11:23:46]NVStorageSaveData ofd_packets/00070196 [11:23:46]File name is /storage/ofd_packets/00070196 [11:23:46]Write 298 bytes [11:23:46]NVStorageSaveData done [11:23:46]OFDSenderStorePacket done [11:23:46]KKMCreateOFDPacket done [11:23:46]NVStorageSaveData kkm_last_timestamp [11:23:46]File name is /storage/kkm_last_timestamp [11:23:46]Write 4 bytes [11:23:46]NVStorageSaveData done [11:23:46]ExternCall_PrintAddStr [11:23:46]wPrintStart [11:23:46]Write to MH i2c: 01 00 00 A1 5B FC [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 A1 5B 00 00 00 00 00 FF 0F 11 [11:23:46]RasterBufferAndPrint [11:23:46]line Счет N : (1)2885961 [11:23:46]line ИНН: 02508201610067 [11:23:46]line Контрольно-Кассовый Чек [11:23:46]line ПРОДАЖА [11:23:46]line ТРК (МРК, ГНК) : 61 [11:23:46]line Товар: 2710194210 [11:23:46]line ДТ-К-5 [11:23:46]line 120.000 * 76.20 [11:23:46]line = 9144.00 [11:23:46]line НДС 12% НСП 1% [11:23:46]line > о реализуемом товаре [11:23:46]line ИТОГО: 9144.00 [11:23:46]line НСП 1% : 80.92 [11:23:46]line НДС 12% : 971.04 [11:23:46]line Наличными: 0.00 [11:23:46]line Безнал.: 9144.00 [11:23:46]line Место: АЗС № 85 "Партнер Нефть" [11:23:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:23:46]line СНО: Общий режим [11:23:46]line Чек 144 22.10.2024 11:23 [11:23:46]line Смена: 195 ФФД: 1.0 [11:23:46]line ЗНМ: 0300000167 [11:23:46]line РНМ: 0000000000156251 [11:23:46]line Версия ККМ: v1.0 [11:23:46]line Платежная система: Mbank [11:23:46]line ФМ: 0000000000963346 [11:23:46]line ФД: 70196 [11:23:46]line ФПД: 226518665818386 [11:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70196&fm=226518665818386&tin=02508201610067®Number=0000000000156251&sum=914400 [11:23:46]OFD Sender: Processing packet 70196 [packets to send 18, broken 17] [11:23:46]ProducePacketName [11:23:46]name=ofd_packets/00070196 [11:23:46]OFD Sender: To server: pG, [11:23:46]CommunicateWithHost lk.salyk.kg:30040 [11:23:46]ConnectInit lk.salyk.kg [11:23:46]written 0, free lines is 4095 [11:23:46]Connected sock=10 [11:23: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 34 36 0C 01 00 00 04 F9 04 01 C3 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 C0 D4 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 F3 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F3 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 7B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 F3 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 45 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 12 01 00 35 04 06 00 CE 04 7C 9C 71 12 C7 F4 9C C5 7C 06 1C 76 [11:23: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 34 36 4F 00 00 00 C4 66 47 00 C1 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 34 36 10 04 04 00 34 12 01 00 F4 03 04 00 E6 34 17 67 B6 04 01 00 00 0B 12 32 23 98 E4 52 55 [11:23:46]CommunicateWithHost err = 0 [11:23:46]CheckOFDResponse [11:23:46]1017 (14) - 77093643461234 [11:23:46]1041 (16) - 0000000000963346 [11:23:46]1040 (4) - 70196 [11:23:46]1012 (4) - 22.10.2024 05:15 [11:23:46]1206 (1) - 0 [11:23:46]OFD Sender: Remove packet 70196 [11:23:46]ProducePacketName [11:23:46]name=ofd_packets/00070196 [11:23:46]NVStorageDeleteData [11:23:46]Write to MH i2c: 01 00 00 CA 5B 25 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 CA 5B 00 00 00 00 00 09 0D 42 [11:23:46]RasterBufferAndPrint [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]written 0, free lines is 3346 [11:23:46]MH_Cut [11:23:46]Write to MH i2c: D1 01 00 D1 5B 01 FE [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: D1 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: D1 01 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: D1 01 00 D1 5B 00 FD [11:23:46]Write to MH i2c: 01 00 00 D2 5B 2D [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:47]OFD Sender: No OFD packet to send [11:23:47]*** Cut start [11:23:47]*** Partial cut [11:23:47]*** CUTSNS_PIN = 1 [11:23:47]*** CUTSNS_PIN = 0 [11:23:47]*** Brake cut motor [11:23:48]Read from MH i2c: 01 [11:23:48]MH_I2C_Read... [11:23:48]*** Stop cut motor [11:23:48]*** Cut end [11:23:48]Read from MH i2c: 01 07 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 D2 5B 00 00 00 00 00 FF 0F 42 [11:23:48]process_action close_receipt done [11:23:48]requested_data is exist [11:23:48]produce_requested_data [11:23:48]requested_item fm.sn is exist - process it [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 11 00 00 [11:23:48]Write to MH i2c: E2 08 00 D3 5B 80 11 00 00 00 00 00 00 A8 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 D3 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [11:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:48]wFMCommunicate OK [11:23:48]requested_item fd.num is exist - process it [11:23:48]SAM_PROTO_GetFieldsCounters [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 13 00 00 [11:23:48]Write to MH i2c: E2 08 00 D4 5B 80 13 00 00 00 00 00 00 AB [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 62 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 62 00 D4 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 12 01 00 0E 04 04 00 C3 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 80 [11:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 12 01 00 0E 04 04 00 C3 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 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_GetFieldsCounters done [11:23:48]requested_item shift.num is exist - process it [11:23:48]requested_item shift.opened is exist - process it [11:23:48]req_shift_opened [11:23:48]FM_GetShiftState [11:23:48]SAM_PROTO_GetShiftState [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 13 01 00 [11:23:48]Write to MH i2c: E2 08 00 D5 5B 80 13 01 00 00 00 00 00 AD [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 D5 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9B [11:23:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_GetShiftState done [11:23:48]FM_GetShiftState done [11:23:48]req_shift_opened done [11:23:48]requested_item shift.open_date is exist - process it [11:23:48]req_shift_open_date [11:23:48]req_shift_open_date done [11:23:48]produce_requested_data done [11:23:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70196,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:23:48]process_action_free close_receipt [11:23:48]json_value_free [11:23:48]json_value_free done [11:23:48]process_json_proto returns [11:23:48]Send response to host [11:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70196,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:23:48]free response buf [11:23:48]execute_script done [11:23:48]execute_script returns [11:23:48]free content buf [11:23:48]Sock 7.Close socket [11:23:48]Sock 7.Thread stoped [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:24:57]accept exits with 9 [11:24:57]New connection [11:24:57]New thread 3067170148 created [11:24:57]Thread 3067026788 joined [11:24:57]Waiting for new connection... [11:24:57] Sock 9.Parse request [11:24:57]Sock 9.Check first char [11:24:57]Sock 9.First char is OK [11:24:57]request: POST /json_proto HTTP/1.0 [11:24:57]Method: POST [11:24:57]URL: /json_proto [11:24:57]Method is POST - this is cgi request [11:24:57]url: /json_proto [11:24:57]query_string will be loaded in cgi processing [11:24:57]execute_cgi json_proto POST (null) [11:24:57]execute_cgi path=json_proto method=POST [11:24:57]POST find Content-Length [11:24:57]Host: 172.17.50.3:8080 [11:24:57]Content-Length: 689 [11:24:57]Content-Type: application/json [11:24:57] [11:24:57]POST finish read [11:24:57]Found Content-Length = 689 [11:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:24:57]execute_script... [11:24: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)2885966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:24:57]POST & json_proto [11:24:57]process_json_proto [11:24:57]json parsed OK: [11:24:57]protocol is kg_v1.0 [11:24:57]action value=close_receipt [11:24:57]process_action close_receipt [11:24:57]cmd_close_receipt [11:24:57]MH_GetDate [11:24:57]Write to MH i2c: F0 00 00 D6 5B 20 [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 09 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 09 00 D6 5B 00 8E 8B 17 67 6B 98 1E 66 47 [11:24:57]GetLastDocTimeStamp 1729596229 [11:24:57]current date 1729596302 [11:24:57]FM_GetShiftState [11:24:57]SAM_PROTO_GetShiftState [11:24:57]wFMCommunicate request_size=4 [11:24:57]MH_SAM_APDU [11:24:57]CAPDU: 80 13 01 00 [11:24:57]Write to MH i2c: E2 08 00 D7 5B 80 13 01 00 00 00 00 00 AF [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0E 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0E 00 D7 5B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9D [11:24:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:24:57]wFMCommunicate OK [11:24:57]SAM_PROTO_GetShiftState done [11:24:57]FM_GetShiftState done [11:24:57]opened in 1729555832 [11:24:57]opened+sec_in_day 1729642232 [11:24:57]quantity*price = 100051 [11:24:57]sum+1 = 100052 [11:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 145 22.10.2024 11:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70197 ФПД: 134676646884201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70197&fm=134676646884201&tin=02508201610067®Number=0000000000156251&sum=100000 [11:24:58]StoreToDocumentArchive [11:24:58]shift 195 fd 70197 [11:24:58]save to /storage/0195/doc_00070197 [11:24:58]save last doc name /storage/0195/doc_00070197 to /storage/kkm_last_doc_name [11:24:58]save OK [11:24:58]Clear old archive folders... [11:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:24:58]tlvbuf is 011F6EC0 [11:24:58]SAM_PROTO_ClearQueue [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 09 00 00 [11:24:58]Write to MH i2c: E2 08 00 E4 5B 80 09 00 00 00 00 00 00 B1 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 E4 5B 00 90 00 B3 [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_ClearQueue done [11:24:58]KKMCreateOFDPacket [11:24:58]OFDProtocolAddRootSTLVToBuf [11:24:58]FM_MakeSignedData [11:24:58]FM_MakeSignedData [11:24:58]SAM_PROTO_SignData [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 0D 01 02 [11:24:58]Write to MH i2c: E2 08 00 E5 5B 80 0D 01 02 00 00 00 00 B9 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 E5 5B 00 90 00 B4 [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]wFMCommunicate request_size=255 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 91 00 00 00 F4 03 04 00 8E 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 12 01 [11:24:58]Write to MH i2c: E2 02 01 E6 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 91 00 00 00 F4 03 04 00 8E 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 12 01 00 00 3E [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 E6 5B 00 90 00 B5 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=16 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7A 7C D9 B2 73 69 [11:24:59]Write to MH i2c: E2 13 00 E7 5B 80 0D 02 02 0B 00 00 35 04 06 00 7A 7C D9 B2 73 69 00 00 6E [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 E7 5B 00 90 00 B6 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 03 02 [11:24:59]Write to MH i2c: E2 08 00 E8 5B 80 0D 03 02 00 00 00 00 BE [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 E8 5B 00 1B 90 8A E8 64 5A 8D CD 90 00 F4 [11:24:59]RAPDU: 1B 90 8A E8 64 5A 8D CD 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_SignData done [11:24:59]FM_MakeSignedData done [11:24:59]CreateOFDProtocolMessage [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 11 00 00 [11:24:59]Write to MH i2c: E2 08 00 E9 5B 80 11 00 00 00 00 00 00 BE [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 E9 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [11:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:24:59]wFMCommunicate OK [11:24:59]CreateOFDProtocolMessage done [11:24:59]OFDSenderStorePacket 70197 [11:24:59]StoreOFDPacket docnum=70197 [11:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4A 02 0D 01 C3 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 91 00 00 00 F4 03 04 00 8E 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 12 01 00 35 04 06 00 7A 7C D9 B2 73 69 1B 90 8A E8 64 5A 8D CD [11:24:59]CheckFolder [11:24:59]dirname=/storage/ofd_packets [11:24:59]CheckFolder done [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00070197 [11:24:59]NVStorageSaveData ofd_packets/00070197 [11:24:59]File name is /storage/ofd_packets/00070197 [11:24:59]Write 307 bytes [11:24:59]NVStorageSaveData done [11:24:59]OFDSenderStorePacket done [11:24:59]KKMCreateOFDPacket done [11:24:59]NVStorageSaveData kkm_last_timestamp [11:24:59]File name is /storage/kkm_last_timestamp [11:24:59]Write 4 bytes [11:24:59]NVStorageSaveData done [11:24:59]ExternCall_PrintAddStr [11:24:59]wPrintStart [11:24:59]Write to MH i2c: 01 00 00 EA 5B 45 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 EA 5B 00 00 00 00 00 FF 0F 5A [11:24:59]RasterBufferAndPrint [11:24:59]line Счет N : (1)2885966 [11:24:59]line ИНН: 02508201610067 [11:24:59]line Контрольно-Кассовый Чек [11:24:59]line ПРОДАЖА [11:24:59]line ТРК (МРК, ГНК) : 41 [11:24:59]line Товар: 2710194240 [11:24:59]line D-ENERGY Дт-К-2 [11:24:59]line 12.960 * 77.20 [11:24:59]line = 1000.51 [11:24:59]line НДС 12% НСП 1% [11:24:59]line > о реализуемом товаре [11:24:59]line ОКРУГЛЕНИЕ: -0.51 [11:24:59]line ИТОГО: 1000.00 [11:24:59]line Внесено: 1000.00 [11:24:59]line СДАЧА: 0.00 [11:24:59]line НСП 1% : 8.85 [11:24:59]line НДС 12% : 106.25 [11:24:59]line Наличными: 1000.00 [11:24:59]line Безнал.: 0.00 [11:24:59]line Место: АЗС № 85 "Партнер Нефть" [11:24:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:24:59]line СНО: Общий режим [11:24:59]line Чек 145 22.10.2024 11:25 [11:24:59]line Смена: 195 ФФД: 1.0 [11:24:59]line ЗНМ: 0300000167 [11:24:59]line РНМ: 0000000000156251 [11:24:59]line Версия ККМ: v1.0 [11:24:59]line ФМ: 0000000000963346 [11:24:59]line ФД: 70197 [11:24:59]line ФПД: 134676646884201 [11:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70197&fm=134676646884201&tin=02508201610067®Number=0000000000156251&sum=100000 [11:24:59]OFD Sender: Processing packet 70197 [packets to send 18, broken 17] [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00070197 [11:24:59]OFD Sender: To server: pG, [11:24:59]CommunicateWithHost lk.salyk.kg:30040 [11:24:59]ConnectInit lk.salyk.kg [11:24:59]written 0, free lines is 4095 [11:24:59]Connected sock=10 [11:24: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 34 36 15 01 00 00 4A 02 0D 01 C3 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 91 00 00 00 F4 03 04 00 8E 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 12 01 00 35 04 06 00 7A 7C D9 B2 73 69 1B 90 8A E8 64 5A 8D CD [11:24: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 34 36 4F 00 00 00 AF 29 47 00 DC 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 12 01 00 F4 03 04 00 2F 35 17 67 B6 04 01 00 00 6A 86 FF 9C A8 50 2C 3B [11:24:59]CommunicateWithHost err = 0 [11:24:59]CheckOFDResponse [11:24:59]1017 (14) - 77093643461234 [11:24:59]1041 (16) - 0000000000963346 [11:24:59]1040 (4) - 70197 [11:24:59]1012 (4) - 22.10.2024 05:16 [11:24:59]1206 (1) - 0 [11:24:59]OFD Sender: Remove packet 70197 [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00070197 [11:24:59]NVStorageDeleteData [11:25:00]Write to MH i2c: 01 00 00 15 5C 71 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 15 5C 00 00 00 00 00 EE 0C 72 [11:25:00]RasterBufferAndPrint [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]written 0, free lines is 3316 [11:25:00]MH_Cut [11:25:00]Write to MH i2c: D1 01 00 1C 5C 01 4A [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 1C 5C 00 49 [11:25:00]Write to MH i2c: 01 00 00 1D 5C 79 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]OFD Sender: No OFD packet to send [11:25:00]*** Cut start [11:25:00]*** Partial cut [11:25:00]*** CUTSNS_PIN = 1 [11:25:00]*** CUTSNS_PIN = 0 [11:25:01]*** Brake cut motor [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]*** Stop cut motor [11:25:01]*** Cut end [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 1D 5C 00 00 00 00 00 FF 0F 8E [11:25:01]process_action close_receipt done [11:25:01]requested_data is exist [11:25:01]produce_requested_data [11:25:01]requested_item fm.sn is exist - process it [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 11 00 00 [11:25:01]Write to MH i2c: E2 08 00 1E 5C 80 11 00 00 00 00 00 00 F4 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 1E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [11:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:01]wFMCommunicate OK [11:25:01]requested_item fd.num is exist - process it [11:25:01]SAM_PROTO_GetFieldsCounters [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 13 00 00 [11:25:01]Write to MH i2c: E2 08 00 1F 5C 80 13 00 00 00 00 00 00 F7 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 62 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 62 00 1F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 12 01 00 0E 04 04 00 C3 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 D0 [11:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 12 01 00 0E 04 04 00 C3 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 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_GetFieldsCounters done [11:25:01]requested_item shift.num is exist - process it [11:25:01]requested_item shift.opened is exist - process it [11:25:01]req_shift_opened [11:25:01]FM_GetShiftState [11:25:01]SAM_PROTO_GetShiftState [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 13 01 00 [11:25:01]Write to MH i2c: E2 08 00 20 5C 80 13 01 00 00 00 00 00 F9 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 20 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E7 [11:25:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_GetShiftState done [11:25:01]FM_GetShiftState done [11:25:01]req_shift_opened done [11:25:01]requested_item shift.open_date is exist - process it [11:25:01]req_shift_open_date [11:25:01]req_shift_open_date done [11:25:01]produce_requested_data done [11:25:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70197,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:25:01]process_action_free close_receipt [11:25:01]json_value_free [11:25:01]json_value_free done [11:25:01]process_json_proto returns [11:25:01]Send response to host [11:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70197,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:25:01]free response buf [11:25:01]execute_script done [11:25:01]execute_script returns [11:25:01]free content buf [11:25:01]Sock 9.Close socket [11:25:01]Sock 9.Thread stoped [11:25:05]OFD Sender: No OFD packet to send [11:25:05]accept exits with 7 [11:25:05]New connection [11:25:05]New thread 3067026788 created [11:25:05]Thread 3067170148 joined [11:25:05]Waiting for new connection... [11:25:05] Sock 7.Parse request [11:25:05]Sock 7.Check first char [11:25:05]Sock 7.First char is OK [11:25:05]request: POST /json_proto HTTP/1.0 [11:25:05]Method: POST [11:25:05]URL: /json_proto [11:25:05]Method is POST - this is cgi request [11:25:05]url: /json_proto [11:25:05]query_string will be loaded in cgi processing [11:25:05]execute_cgi json_proto POST (null) [11:25:05]execute_cgi path=json_proto method=POST [11:25:05]POST find Content-Length [11:25:05]Host: 172.17.50.3:8080 [11:25:05]Content-Length: 776 [11:25:05]Content-Type: application/json [11:25:05] [11:25:05]POST finish read [11:25:05]Found Content-Length = 776 [11:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:05]execute_script... [11:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:05]POST & json_proto [11:25:05]process_json_proto [11:25:05]json parsed OK: [11:25:05]protocol is kg_v1.0 [11:25:05]action value=close_receipt [11:25:05]process_action close_receipt [11:25:05]cmd_close_receipt [11:25:05]MH_GetDate [11:25:05]Write to MH i2c: F0 00 00 21 5C 6C [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: F0 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: F0 09 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: F0 09 00 21 5C 00 96 8B 17 67 6B 98 1E 66 9B [11:25:05]GetLastDocTimeStamp 1729596302 [11:25:05]current date 1729596310 [11:25:05]FM_GetShiftState [11:25:05]SAM_PROTO_GetShiftState [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 13 01 00 [11:25:05]Write to MH i2c: E2 08 00 22 5C 80 13 01 00 00 00 00 00 FB [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0E 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0E 00 22 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E9 [11:25:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:25:05]wFMCommunicate OK [11:25:05]SAM_PROTO_GetShiftState done [11:25:05]FM_GetShiftState done [11:25:05]opened in 1729555832 [11:25:05]opened+sec_in_day 1729642232 [11:25:05]quantity*price = 200025 [11:25:05]sum+1 = 200026 [11:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 146 22.10.2024 11:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70198 ФПД: 97302618870149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112510&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70198&fm=97302618870149&tin=02508201610067®Number=0000000000156251&sum=200025 [11:25:07]StoreToDocumentArchive [11:25:07]shift 195 fd 70198 [11:25:07]save to /storage/0195/doc_00070198 [11:25:07]save last doc name /storage/0195/doc_00070198 to /storage/kkm_last_doc_name [11:25:07]save OK [11:25:07]Clear old archive folders... [11:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:25:07]tlvbuf is 013082F0 [11:25:07]SAM_PROTO_ClearQueue [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 09 00 00 [11:25:07]Write to MH i2c: E2 08 00 2F 5C 80 09 00 00 00 00 00 00 FD [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 2F 5C 00 90 00 FF [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]SAM_PROTO_ClearQueue done [11:25:07]KKMCreateOFDPacket [11:25:07]OFDProtocolAddRootSTLVToBuf [11:25:07]FM_MakeSignedData [11:25:07]FM_MakeSignedData [11:25:07]SAM_PROTO_SignData [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 0D 01 02 [11:25:07]Write to MH i2c: E2 08 00 30 5C 80 0D 01 02 00 00 00 00 05 [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 30 5C 00 90 00 00 [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]wFMCommunicate request_size=255 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 12 01 [11:25:07]Write to MH i2c: E2 02 01 31 5C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 12 01 00 00 0A [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 31 5C 00 90 00 01 [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]wFMCommunicate request_size=16 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 7F 08 08 91 85 [11:25:07]Write to MH i2c: E2 13 00 32 5C 80 0D 02 02 0B 00 00 35 04 06 00 58 7F 08 08 91 85 00 00 5A [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 03 00 32 5C 00 90 00 02 [11:25:07]RAPDU: 90 00 [11:25:07]wFMCommunicate OK [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 0D 03 02 [11:25:07]Write to MH i2c: E2 08 00 33 5C 80 0D 03 02 00 00 00 00 0A [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 0B 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 0B 00 33 5C 00 3A 51 67 0E 0D 35 F5 93 90 00 D5 [11:25:07]RAPDU: 3A 51 67 0E 0D 35 F5 93 90 00 [11:25:07]wFMCommunicate OK [11:25:07]SAM_PROTO_SignData done [11:25:07]FM_MakeSignedData done [11:25:07]CreateOFDProtocolMessage [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 11 00 00 [11:25:07]Write to MH i2c: E2 08 00 34 5C 80 11 00 00 00 00 00 00 0A [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:07]Read from MH i2c: E2 17 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 17 00 34 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [11:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:07]wFMCommunicate OK [11:25:07]CreateOFDProtocolMessage done [11:25:07]OFDSenderStorePacket 70198 [11:25:07]StoreOFDPacket docnum=70198 [11:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 40 F8 0D 01 28 CE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 12 01 00 35 04 06 00 58 7F 08 08 91 85 3A 51 67 0E 0D 35 F5 93 [11:25:07]CheckFolder [11:25:07]dirname=/storage/ofd_packets [11:25:07]CheckFolder done [11:25:07]ProducePacketName [11:25:07]name=ofd_packets/00070198 [11:25:07]NVStorageSaveData ofd_packets/00070198 [11:25:07]File name is /storage/ofd_packets/00070198 [11:25:07]Write 307 bytes [11:25:07]NVStorageSaveData done [11:25:07]OFDSenderStorePacket done [11:25:07]KKMCreateOFDPacket done [11:25:07]NVStorageSaveData kkm_last_timestamp [11:25:07]File name is /storage/kkm_last_timestamp [11:25:07]Write 4 bytes [11:25:07]NVStorageSaveData done [11:25:07]ExternCall_PrintAddStr [11:25:07]wPrintStart [11:25:07]Write to MH i2c: 01 00 00 35 5C 91 [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: 01 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: 01 07 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: 01 07 00 35 5C 00 00 00 00 00 FF 0F A6 [11:25:07]RasterBufferAndPrint [11:25:07]line Счет N : (1)2885965 [11:25:07]line ИНН: 02508201610067 [11:25:07]line Контрольно-Кассовый Чек [11:25:07]line ПРОДАЖА [11:25:07]line ТРК (МРК, ГНК) : 11 [11:25:07]line Товар: 2710194240 [11:25:07]line D-ENERGY Дт-К-2 [11:25:07]line 25.910 * 77.20 [11:25:07]line = 2000.25 [11:25:07]line НДС 12% НСП 1% [11:25:07]line > о реализуемом товаре [11:25:07]line ИТОГО: 2000.25 [11:25:07]line НСП 1% : 17.70 [11:25:07]line НДС 12% : 212.42 [11:25:07]line Наличными: 0.00 [11:25:07]line Безнал.: 2000.25 [11:25:07]line Место: АЗС № 85 "Партнер Нефть" [11:25:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:07]line СНО: Общий режим [11:25:07]line Чек 146 22.10.2024 11:25 [11:25:07]line Смена: 195 ФФД: 1.0 [11:25:07]line ЗНМ: 0300000167 [11:25:07]line РНМ: 0000000000156251 [11:25:07]line Версия ККМ: v1.0 [11:25:07]line Платежная система: Mbank [11:25:07]line ФМ: 0000000000963346 [11:25:07]line ФД: 70198 [11:25:07]line ФПД: 97302618870149 [11:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112510&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70198&fm=97302618870149&tin=02508201610067®Number=0000000000156251&sum=200025 [11:25:07]written 0, free lines is 4095 [11:25:07]OFD Sender: Processing packet 70198 [packets to send 18, broken 17] [11:25:07]ProducePacketName [11:25:07]name=ofd_packets/00070198 [11:25:07]OFD Sender: To server: pG, [11:25:07]CommunicateWithHost lk.salyk.kg:30040 [11:25:07]ConnectInit lk.salyk.kg [11:25:08]Connected sock=10 [11:25: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 34 36 15 01 00 00 40 F8 0D 01 28 CE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 12 01 00 35 04 06 00 58 7F 08 08 91 85 3A 51 67 0E 0D 35 F5 93 [11:25:08]Write to MH i2c: 01 00 00 5E 5C BA [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 07 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: 01 07 00 5E 5C 00 00 00 00 00 21 0D EF [11:25:08]RasterBufferAndPrint [11:25:08]line [11:25:08]line [11:25:08]line [11:25:08]line [11:25:08]line [11:25:08]written 0, free lines is 3373 [11:25:08]MH_Cut [11:25:08]Write to MH i2c: D1 01 00 65 5C 01 93 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: D1 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: D1 01 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: D1 01 00 65 5C 00 92 [11:25:08]Write to MH i2c: 01 00 00 66 5C C2 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25: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 34 36 4F 00 00 00 A6 F8 47 00 45 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 34 36 10 04 04 00 36 12 01 00 F4 03 04 00 37 35 17 67 B6 04 01 00 00 37 6E 03 73 A9 82 EE 3D [11:25:08]CommunicateWithHost err = 0 [11:25:08]CheckOFDResponse [11:25:08]1017 (14) - 77093643461234 [11:25:08]1041 (16) - 0000000000963346 [11:25:08]1040 (4) - 70198 [11:25:08]1012 (4) - 22.10.2024 05:16 [11:25:08]1206 (1) - 0 [11:25:08]OFD Sender: Remove packet 70198 [11:25:08]ProducePacketName [11:25:08]name=ofd_packets/00070198 [11:25:08]NVStorageDeleteData [11:25:08]*** Cut start [11:25:08]*** Partial cut [11:25:08]*** CUTSNS_PIN = 1 [11:25:08]OFD Sender: No OFD packet to send [11:25:08]*** CUTSNS_PIN = 0 [11:25:09]*** Brake cut motor [11:25:09]Read from MH i2c: 01 [11:25:09]MH_I2C_Read... [11:25:09]*** Stop cut motor [11:25:09]*** Cut end [11:25:09]Read from MH i2c: 01 07 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 07 00 66 5C 00 00 00 00 00 FF 0F D7 [11:25:09]process_action close_receipt done [11:25:09]requested_data is exist [11:25:09]produce_requested_data [11:25:09]requested_item fm.sn is exist - process it [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 11 00 00 [11:25:09]Write to MH i2c: E2 08 00 67 5C 80 11 00 00 00 00 00 00 3D [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 17 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 17 00 67 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [11:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:09]wFMCommunicate OK [11:25:09]requested_item fd.num is exist - process it [11:25:09]SAM_PROTO_GetFieldsCounters [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 13 00 00 [11:25:09]Write to MH i2c: E2 08 00 68 5C 80 13 00 00 00 00 00 00 40 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 62 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 62 00 68 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 12 01 00 0E 04 04 00 C3 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 1D [11:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 12 01 00 0E 04 04 00 C3 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 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_GetFieldsCounters done [11:25:09]requested_item shift.num is exist - process it [11:25:09]requested_item shift.opened is exist - process it [11:25:09]req_shift_opened [11:25:09]FM_GetShiftState [11:25:09]SAM_PROTO_GetShiftState [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 13 01 00 [11:25:09]Write to MH i2c: E2 08 00 69 5C 80 13 01 00 00 00 00 00 42 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 69 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 30 [11:25:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_GetShiftState done [11:25:09]FM_GetShiftState done [11:25:09]req_shift_opened done [11:25:09]requested_item shift.open_date is exist - process it [11:25:09]req_shift_open_date [11:25:09]req_shift_open_date done [11:25:09]produce_requested_data done [11:25:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70198,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:25:09]process_action_free close_receipt [11:25:09]json_value_free [11:25:09]json_value_free done [11:25:09]process_json_proto returns [11:25:09]Send response to host [11:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70198,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:25:09]free response buf [11:25:09]execute_script done [11:25:09]execute_script returns [11:25:09]free content buf [11:25:09]Sock 7.Close socket [11:25:09]Sock 7.Thread stoped [11:25:13]OFD Sender: No OFD packet to send [11:25:17]accept exits with 9 [11:25:17]New connection [11:25:17]New thread 3067170148 created [11:25:17]Thread 3067026788 joined [11:25:17]Waiting for new connection... [11:25:17] Sock 9.Parse request [11:25:17]Sock 9.Check first char [11:25:17]Sock 9.First char is OK [11:25:17]request: POST /json_proto HTTP/1.0 [11:25:17]Method: POST [11:25:17]URL: /json_proto [11:25:17]Method is POST - this is cgi request [11:25:17]url: /json_proto [11:25:17]query_string will be loaded in cgi processing [11:25:17]execute_cgi json_proto POST (null) [11:25:17]execute_cgi path=json_proto method=POST [11:25:17]POST find Content-Length [11:25:17]Host: 172.17.50.3:8080 [11:25:17]Content-Length: 680 [11:25:17]Content-Type: application/json [11:25:17] [11:25:17]POST finish read [11:25:17]Found Content-Length = 680 [11:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885967", "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" ] } } [11:25:17]execute_script... [11:25: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)2885967", "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" ] } } [11:25:17]POST & json_proto [11:25:17]process_json_proto [11:25:17]json parsed OK: [11:25:17]protocol is kg_v1.0 [11:25:17]action value=close_receipt [11:25:17]process_action close_receipt [11:25:17]cmd_close_receipt [11:25:17]MH_GetDate [11:25:17]Write to MH i2c: F0 00 00 6A 5C B5 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 09 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 09 00 6A 5C 00 A2 8B 17 67 6B 98 1E 66 F0 [11:25:17]GetLastDocTimeStamp 1729596310 [11:25:17]current date 1729596322 [11:25:17]FM_GetShiftState [11:25:17]SAM_PROTO_GetShiftState [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 13 01 00 [11:25:17]Write to MH i2c: E2 08 00 6B 5C 80 13 01 00 00 00 00 00 44 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0E 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0E 00 6B 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 32 [11:25:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_GetShiftState done [11:25:17]FM_GetShiftState done [11:25:17]opened in 1729555832 [11:25:17]opened+sec_in_day 1729642232 [11:25:17]quantity*price = 100050 [11:25:17]sum+1 = 100052 [11:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 147 22.10.2024 11:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70199 ФПД: 200386082960319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70199&fm=200386082960319&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:18]StoreToDocumentArchive [11:25:18]shift 195 fd 70199 [11:25:18]save to /storage/0195/doc_00070199 [11:25:18]save last doc name /storage/0195/doc_00070199 to /storage/kkm_last_doc_name [11:25:18]save OK [11:25:18]Clear old archive folders... [11:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:18]tlvbuf is 012DB5A0 [11:25:18]SAM_PROTO_ClearQueue [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 09 00 00 [11:25:18]Write to MH i2c: E2 08 00 78 5C 80 09 00 00 00 00 00 00 46 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 78 5C 00 90 00 48 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_ClearQueue done [11:25:18]KKMCreateOFDPacket [11:25:18]OFDProtocolAddRootSTLVToBuf [11:25:18]FM_MakeSignedData [11:25:18]FM_MakeSignedData [11:25:18]SAM_PROTO_SignData [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 0D 01 02 [11:25:18]Write to MH i2c: E2 08 00 79 5C 80 0D 01 02 00 00 00 00 4E [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 79 5C 00 90 00 49 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]wFMCommunicate request_size=255 [11:25:18]MH_SAM_APDU [11:25:18]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 93 00 00 00 F4 03 04 00 A2 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 12 01 00 35 04 06 00 B6 40 05 4A [11:25:18]Write to MH i2c: E2 02 01 7A 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 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 93 00 00 00 F4 03 04 00 A2 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 12 01 00 35 04 06 00 B6 40 05 4A 00 00 5D [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]OFD Sender: No OFD packet to send [11:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 7A 5C 00 90 00 4A [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]wFMCommunicate request_size=7 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 02 02 02 F3 BF [11:25:19]Write to MH i2c: E2 0A 00 7B 5C 80 0D 02 02 02 00 F3 BF 00 00 07 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 7B 5C 00 90 00 4B [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 03 02 [11:25:19]Write to MH i2c: E2 08 00 7C 5C 80 0D 03 02 00 00 00 00 53 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0B 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0B 00 7C 5C 00 E2 53 21 0F 01 30 FC 23 90 00 09 [11:25:19]RAPDU: E2 53 21 0F 01 30 FC 23 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_SignData done [11:25:19]FM_MakeSignedData done [11:25:19]CreateOFDProtocolMessage [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 11 00 00 [11:25:19]Write to MH i2c: E2 08 00 7D 5C 80 11 00 00 00 00 00 00 53 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 7D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [11:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:19]wFMCommunicate OK [11:25:19]CreateOFDProtocolMessage done [11:25:19]OFDSenderStorePacket 70199 [11:25:19]StoreOFDPacket docnum=70199 [11:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 7B 04 01 33 A7 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 93 00 00 00 F4 03 04 00 A2 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 12 01 00 35 04 06 00 B6 40 05 4A F3 BF E2 53 21 0F 01 30 FC 23 [11:25:19]CheckFolder [11:25:19]dirname=/storage/ofd_packets [11:25:19]CheckFolder done [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00070199 [11:25:19]NVStorageSaveData ofd_packets/00070199 [11:25:19]File name is /storage/ofd_packets/00070199 [11:25:19]Write 298 bytes [11:25:19]NVStorageSaveData done [11:25:19]OFDSenderStorePacket done [11:25:19]KKMCreateOFDPacket done [11:25:19]NVStorageSaveData kkm_last_timestamp [11:25:19]File name is /storage/kkm_last_timestamp [11:25:19]Write 4 bytes [11:25:19]NVStorageSaveData done [11:25:19]ExternCall_PrintAddStr [11:25:19]wPrintStart [11:25:19]Write to MH i2c: 01 00 00 7E 5C DA [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 7E 5C 00 00 00 00 00 FF 0F EF [11:25:19]RasterBufferAndPrint [11:25:19]line Счет N : (1)2885967 [11:25:19]line ИНН: 02508201610067 [11:25:19]line Контрольно-Кассовый Чек [11:25:19]line ПРОДАЖА [11:25:19]line ТРК (МРК, ГНК) : 51 [11:25:19]line Товар: 2710194210 [11:25:19]line ДТ-К-5 [11:25:19]line 13.130 * 76.20 [11:25:19]line = 1000.51 [11:25:19]line НДС 12% НСП 1% [11:25:19]line > о реализуемом товаре [11:25:19]line ОКРУГЛЕНИЕ: -0.51 [11:25:19]line ИТОГО: 1000.00 [11:25:19]line Внесено: 1000.00 [11:25:19]line СДАЧА: 0.00 [11:25:19]line НСП 1% : 8.85 [11:25:19]line НДС 12% : 106.25 [11:25:19]line Наличными: 1000.00 [11:25:19]line Безнал.: 0.00 [11:25:19]line Место: АЗС № 85 "Партнер Нефть" [11:25:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:19]line СНО: Общий режим [11:25:19]line Чек 147 22.10.2024 11:25 [11:25:19]line Смена: 195 ФФД: 1.0 [11:25:19]line ЗНМ: 0300000167 [11:25:19]line РНМ: 0000000000156251 [11:25:19]line Версия ККМ: v1.0 [11:25:19]line ФМ: 0000000000963346 [11:25:19]line ФД: 70199 [11:25:19]line ФПД: 200386082960319 [11:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70199&fm=200386082960319&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:19]written 0, free lines is 4095 [11:25:19]OFD Sender: Processing packet 70199 [packets to send 18, broken 17] [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00070199 [11:25:19]OFD Sender: To server: pG, [11:25:19]CommunicateWithHost lk.salyk.kg:30040 [11:25:19]ConnectInit lk.salyk.kg [11:25:19]Connected sock=10 [11:25: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 34 36 0C 01 00 00 FB 7B 04 01 33 A7 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 93 00 00 00 F4 03 04 00 A2 8B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 12 01 00 35 04 06 00 B6 40 05 4A F3 BF E2 53 21 0F 01 30 FC 23 [11:25: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 34 36 4F 00 00 00 C1 FA 47 00 11 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 34 36 10 04 04 00 37 12 01 00 F4 03 04 00 43 35 17 67 B6 04 01 00 00 EC 5C 9B 74 BF 43 46 81 [11:25:19]CommunicateWithHost err = 0 [11:25:19]CheckOFDResponse [11:25:19]1017 (14) - 77093643461234 [11:25:19]1041 (16) - 0000000000963346 [11:25:19]1040 (4) - 70199 [11:25:19]1012 (4) - 22.10.2024 05:16 [11:25:19]1206 (1) - 0 [11:25:19]OFD Sender: Remove packet 70199 [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00070199 [11:25:19]NVStorageDeleteData [11:25:19]Write to MH i2c: 01 00 00 A9 5C 05 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 A9 5C 00 00 00 00 00 F7 0C 0F [11:25:19]RasterBufferAndPrint [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]written 0, free lines is 3334 [11:25:19]MH_Cut [11:25:19]Write to MH i2c: D1 01 00 B0 5C 01 DE [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 01 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 01 00 B0 5C 00 DD [11:25:19]Write to MH i2c: 01 00 00 B1 5C 0D [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:20]OFD Sender: No OFD packet to send [11:25:20]*** Cut start [11:25:20]*** Partial cut [11:25:20]*** CUTSNS_PIN = 1 [11:25:20]*** CUTSNS_PIN = 0 [11:25:20]*** Brake cut motor [11:25:20]Read from MH i2c: 01 [11:25:20]MH_I2C_Read... [11:25:20]*** Stop cut motor [11:25:20]*** Cut end [11:25:20]Read from MH i2c: 01 07 00 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: 01 07 00 B1 5C 00 00 00 00 00 FF 0F 22 [11:25:21]process_action close_receipt done [11:25:21]requested_data is exist [11:25:21]produce_requested_data [11:25:21]requested_item fm.sn is exist - process it [11:25:21]wFMCommunicate request_size=4 [11:25:21]MH_SAM_APDU [11:25:21]CAPDU: 80 11 00 00 [11:25:21]Write to MH i2c: E2 08 00 B2 5C 80 11 00 00 00 00 00 00 88 [11:25:21]Write i2c OK [11:25:21]MH_I2C_Read... [11:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:21]Read from MH i2c: E2 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 17 00 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 17 00 B2 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [11:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:21]wFMCommunicate OK [11:25:21]requested_item fd.num is exist - process it [11:25:21]SAM_PROTO_GetFieldsCounters [11:25:21]wFMCommunicate request_size=4 [11:25:21]MH_SAM_APDU [11:25:21]CAPDU: 80 13 00 00 [11:25:21]Write to MH i2c: E2 08 00 B3 5C 80 13 00 00 00 00 00 00 8B [11:25:21]Write i2c OK [11:25:21]MH_I2C_Read... [11:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:21]Read from MH i2c: E2 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 62 00 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 62 00 B3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 12 01 00 0E 04 04 00 C3 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 6C [11:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 12 01 00 0E 04 04 00 C3 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 [11:25:21]wFMCommunicate OK [11:25:21]SAM_PROTO_GetFieldsCounters done [11:25:21]requested_item shift.num is exist - process it [11:25:21]requested_item shift.opened is exist - process it [11:25:21]req_shift_opened [11:25:21]FM_GetShiftState [11:25:21]SAM_PROTO_GetShiftState [11:25:21]wFMCommunicate request_size=4 [11:25:21]MH_SAM_APDU [11:25:21]CAPDU: 80 13 01 00 [11:25:21]Write to MH i2c: E2 08 00 B4 5C 80 13 01 00 00 00 00 00 8D [11:25:21]Write i2c OK [11:25:21]MH_I2C_Read... [11:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:21]Read from MH i2c: E2 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 0E 00 [11:25:21]MH_I2C_Read... [11:25:21]Read from MH i2c: E2 0E 00 B4 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7B [11:25:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:25:21]wFMCommunicate OK [11:25:21]SAM_PROTO_GetShiftState done [11:25:21]FM_GetShiftState done [11:25:21]req_shift_opened done [11:25:21]requested_item shift.open_date is exist - process it [11:25:21]req_shift_open_date [11:25:21]req_shift_open_date done [11:25:21]produce_requested_data done [11:25:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70199,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:25:21]process_action_free close_receipt [11:25:21]json_value_free [11:25:21]json_value_free done [11:25:21]process_json_proto returns [11:25:21]Send response to host [11:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70199,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:25:21]free response buf [11:25:21]execute_script done [11:25:21]execute_script returns [11:25:21]free content buf [11:25:21]Sock 9.Close socket [11:25:21]Sock 9.Thread stoped [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:02]accept exits with 7 [11:29:02]New connection [11:29:02]New thread 3067026788 created [11:29:02]Thread 3067170148 joined [11:29:02]Waiting for new connection... [11:29:02] Sock 7.Parse request [11:29:02]Sock 7.Check first char [11:29:02]Sock 7.First char is OK [11:29:02]request: POST /json_proto HTTP/1.0 [11:29:02]Method: POST [11:29:02]URL: /json_proto [11:29:02]Method is POST - this is cgi request [11:29:02]url: /json_proto [11:29:02]query_string will be loaded in cgi processing [11:29:02]execute_cgi json_proto POST (null) [11:29:02]execute_cgi path=json_proto method=POST [11:29:02]POST find Content-Length [11:29:02]Host: 172.17.50.3:8080 [11:29:02]Content-Length: 675 [11:29:02]Content-Type: application/json [11:29:02] [11:29:02]POST finish read [11:29:02]Found Content-Length = 675 [11:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885968", "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" : 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:29:02]execute_script... [11:29: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)2885968", "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" : 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:29:02]POST & json_proto [11:29:02]process_json_proto [11:29:02]json parsed OK: [11:29:02]protocol is kg_v1.0 [11:29:02]action value=close_receipt [11:29:02]process_action close_receipt [11:29:02]cmd_close_receipt [11:29:02]MH_GetDate [11:29:02]Write to MH i2c: F0 00 00 B5 5C 00 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 B5 5C 00 83 8C 17 67 6B 98 1E 66 1D [11:29:02]GetLastDocTimeStamp 1729596322 [11:29:02]current date 1729596547 [11:29:02]FM_GetShiftState [11:29:02]SAM_PROTO_GetShiftState [11:29:02]wFMCommunicate request_size=4 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 13 01 00 [11:29:02]Write to MH i2c: E2 08 00 B6 5C 80 13 01 00 00 00 00 00 8F [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 B6 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [11:29:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:29:02]wFMCommunicate OK [11:29:02]SAM_PROTO_GetShiftState done [11:29:02]FM_GetShiftState done [11:29:02]opened in 1729555832 [11:29:02]opened+sec_in_day 1729642232 [11:29:02]quantity*price = 50063 [11:29:02]sum+1 = 50064 [11:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 148 22.10.2024 11:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70200 ФПД: 57036756178538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70200&fm=57036756178538&tin=02508201610067®Number=0000000000156251&sum=50000 [11:29:04]StoreToDocumentArchive [11:29:04]shift 195 fd 70200 [11:29:04]save to /storage/0195/doc_00070200 [11:29:04]save last doc name /storage/0195/doc_00070200 to /storage/kkm_last_doc_name [11:29:04]save OK [11:29:04]Clear old archive folders... [11:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:04]tlvbuf is 01208BE0 [11:29:04]SAM_PROTO_ClearQueue [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 09 00 00 [11:29:04]Write to MH i2c: E2 08 00 C3 5C 80 09 00 00 00 00 00 00 91 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C3 5C 00 90 00 93 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_ClearQueue done [11:29:04]KKMCreateOFDPacket [11:29:04]OFDProtocolAddRootSTLVToBuf [11:29:04]FM_MakeSignedData [11:29:04]FM_MakeSignedData [11:29:04]SAM_PROTO_SignData [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 01 02 [11:29:04]Write to MH i2c: E2 08 00 C4 5C 80 0D 01 02 00 00 00 00 99 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C4 5C 00 90 00 94 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=255 [11:29:04]MH_SAM_APDU [11:29:04]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 94 00 00 00 F4 03 04 00 84 8C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 12 01 00 35 04 06 00 33 DF E7 97 [11:29:04]Write to MH i2c: E2 02 01 C5 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 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 94 00 00 00 F4 03 04 00 84 8C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 12 01 00 35 04 06 00 33 DF E7 97 00 00 60 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C5 5C 00 90 00 95 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=7 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 02 56 6A [11:29:04]Write to MH i2c: E2 0A 00 C6 5C 80 0D 02 02 02 00 56 6A 00 00 60 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C6 5C 00 90 00 96 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 03 02 [11:29:04]Write to MH i2c: E2 08 00 C7 5C 80 0D 03 02 00 00 00 00 9E [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 C7 5C 00 2E 7D 3D F4 D6 C9 24 E6 90 00 24 [11:29:04]RAPDU: 2E 7D 3D F4 D6 C9 24 E6 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_SignData done [11:29:04]FM_MakeSignedData done [11:29:04]CreateOFDProtocolMessage [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 11 00 00 [11:29:04]Write to MH i2c: E2 08 00 C8 5C 80 11 00 00 00 00 00 00 9E [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 C8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [11:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:04]wFMCommunicate OK [11:29:04]CreateOFDProtocolMessage done [11:29:04]OFDSenderStorePacket 70200 [11:29:04]StoreOFDPacket docnum=70200 [11:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 93 07 04 01 88 6C 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 94 00 00 00 F4 03 04 00 84 8C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 12 01 00 35 04 06 00 33 DF E7 97 56 6A 2E 7D 3D F4 D6 C9 24 E6 [11:29:04]CheckFolder [11:29:04]dirname=/storage/ofd_packets [11:29:04]CheckFolder done [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00070200 [11:29:04]NVStorageSaveData ofd_packets/00070200 [11:29:04]File name is /storage/ofd_packets/00070200 [11:29:04]Write 298 bytes [11:29:04]NVStorageSaveData done [11:29:04]OFDSenderStorePacket done [11:29:04]KKMCreateOFDPacket done [11:29:04]NVStorageSaveData kkm_last_timestamp [11:29:04]File name is /storage/kkm_last_timestamp [11:29:04]Write 4 bytes [11:29:04]NVStorageSaveData done [11:29:04]ExternCall_PrintAddStr [11:29:04]wPrintStart [11:29:04]Write to MH i2c: 01 00 00 C9 5C 25 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 C9 5C 00 00 00 00 00 FF 0F 3A [11:29:04]RasterBufferAndPrint [11:29:04]line Счет N : (1)2885968 [11:29:04]line ИНН: 02508201610067 [11:29:04]line Контрольно-Кассовый Чек [11:29:04]line ПРОДАЖА [11:29:04]line ТРК (МРК, ГНК) : 51 [11:29:04]line Товар: 2710194210 [11:29:04]line ДТ-К-5 [11:29:04]line 6.570 * 76.20 [11:29:04]line = 500.63 [11:29:04]line НДС 12% НСП 1% [11:29:04]line > о реализуемом товаре [11:29:04]line ОКРУГЛЕНИЕ: -0.63 [11:29:04]line ИТОГО: 500.00 [11:29:04]line Внесено: 500.00 [11:29:04]line СДАЧА: 0.00 [11:29:04]line НСП 1% : 4.43 [11:29:04]line НДС 12% : 53.16 [11:29:04]line Наличными: 500.00 [11:29:04]line Безнал.: 0.00 [11:29:04]line Место: АЗС № 85 "Партнер Нефть" [11:29:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:29:04]line СНО: Общий режим [11:29:04]line Чек 148 22.10.2024 11:29 [11:29:04]line Смена: 195 ФФД: 1.0 [11:29:04]line ЗНМ: 0300000167 [11:29:04]line РНМ: 0000000000156251 [11:29:04]line Версия ККМ: v1.0 [11:29:04]line ФМ: 0000000000963346 [11:29:04]line ФД: 70200 [11:29:04]line ФПД: 57036756178538 [11:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70200&fm=57036756178538&tin=02508201610067®Number=0000000000156251&sum=50000 [11:29:04]OFD Sender: Processing packet 70200 [packets to send 18, broken 17] [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00070200 [11:29:04]OFD Sender: To server: pG, [11:29:04]CommunicateWithHost lk.salyk.kg:30040 [11:29:04]ConnectInit lk.salyk.kg [11:29:04]written 0, free lines is 4095 [11:29:04]Connected sock=10 [11:29: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 34 36 0C 01 00 00 93 07 04 01 88 6C 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 94 00 00 00 F4 03 04 00 84 8C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 12 01 00 35 04 06 00 33 DF E7 97 56 6A 2E 7D 3D F4 D6 C9 24 E6 [11:29: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 34 36 4F 00 00 00 F7 C5 47 00 84 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 34 36 10 04 04 00 38 12 01 00 F4 03 04 00 24 36 17 67 B6 04 01 00 00 35 C3 F2 74 8F 72 59 1B [11:29:05]CommunicateWithHost err = 0 [11:29:05]CheckOFDResponse [11:29:05]1017 (14) - 77093643461234 [11:29:05]1041 (16) - 0000000000963346 [11:29:05]1040 (4) - 70200 [11:29:05]1012 (4) - 22.10.2024 05:20 [11:29:05]1206 (1) - 0 [11:29:05]OFD Sender: Remove packet 70200 [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00070200 [11:29:05]NVStorageDeleteData [11:29:05]Write to MH i2c: 01 00 00 F4 5C 50 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 F4 5C 00 00 00 00 00 E8 0C 4B [11:29:05]RasterBufferAndPrint [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]written 0, free lines is 3310 [11:29:05]MH_Cut [11:29:05]Write to MH i2c: D1 01 00 FB 5C 01 29 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 FB 5C 00 28 [11:29:05]Write to MH i2c: 01 00 00 FC 5C 58 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]OFD Sender: No OFD packet to send [11:29:06]*** Cut start [11:29:06]*** Partial cut [11:29:06]*** CUTSNS_PIN = 1 [11:29:06]*** CUTSNS_PIN = 0 [11:29:06]*** Brake cut motor [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]*** Stop cut motor [11:29:06]*** Cut end [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 FC 5C 00 00 00 00 00 FF 0F 6D [11:29:06]process_action close_receipt done [11:29:06]requested_data is exist [11:29:06]produce_requested_data [11:29:06]requested_item fm.sn is exist - process it [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 11 00 00 [11:29:06]Write to MH i2c: E2 08 00 FD 5C 80 11 00 00 00 00 00 00 D3 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 FD 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [11:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:06]wFMCommunicate OK [11:29:06]requested_item fd.num is exist - process it [11:29:06]SAM_PROTO_GetFieldsCounters [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 00 00 [11:29:06]Write to MH i2c: E2 08 00 FE 5C 80 13 00 00 00 00 00 00 D6 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 FE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 12 01 00 0E 04 04 00 C3 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 BB [11:29: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 12 01 00 0E 04 04 00 C3 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 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetFieldsCounters done [11:29:06]requested_item shift.num is exist - process it [11:29:06]requested_item shift.opened is exist - process it [11:29:06]req_shift_opened [11:29:06]FM_GetShiftState [11:29:06]SAM_PROTO_GetShiftState [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 01 00 [11:29:06]Write to MH i2c: E2 08 00 FF 5C 80 13 01 00 00 00 00 00 D8 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 FF 5C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C6 [11:29:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetShiftState done [11:29:06]FM_GetShiftState done [11:29:06]req_shift_opened done [11:29:06]requested_item shift.open_date is exist - process it [11:29:06]req_shift_open_date [11:29:06]req_shift_open_date done [11:29:06]produce_requested_data done [11:29:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70200,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:29:06]process_action_free close_receipt [11:29:06]json_value_free [11:29:06]json_value_free done [11:29:06]process_json_proto returns [11:29:06]Send response to host [11:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70200,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:29:06]free response buf [11:29:06]execute_script done [11:29:06]execute_script returns [11:29:06]free content buf [11:29:06]Sock 7.Close socket [11:29:06]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [11:31:27]accept exits with 9 [11:31:27]New connection [11:31:27]New thread 3067170148 created [11:31:27]Thread 3067026788 joined [11:31:27]Waiting for new connection... [11:31:27] Sock 9.Parse request [11:31:27]Sock 9.Check first char [11:31:27]Sock 9.First char is OK [11:31:27]request: POST /json_proto HTTP/1.0 [11:31:27]Method: POST [11:31:27]URL: /json_proto [11:31:27]Method is POST - this is cgi request [11:31:27]url: /json_proto [11:31:27]query_string will be loaded in cgi processing [11:31:27]execute_cgi json_proto POST (null) [11:31:27]execute_cgi path=json_proto method=POST [11:31:27]POST find Content-Length [11:31:27]Host: 172.17.50.3:8080 [11:31:27]Content-Length: 776 [11:31:27]Content-Type: application/json [11:31:27] [11:31:27]POST finish read [11:31:27]Found Content-Length = 776 [11:31:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:27]execute_script... [11:31: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)2885969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:27]POST & json_proto [11:31:27]process_json_proto [11:31:27]json parsed OK: [11:31:27]protocol is kg_v1.0 [11:31:27]action value=close_receipt [11:31:27]process_action close_receipt [11:31:27]cmd_close_receipt [11:31:27]MH_GetDate [11:31:27]Write to MH i2c: F0 00 00 00 5D 4C [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: F0 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: F0 09 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: F0 09 00 00 5D 00 14 8D 17 67 6B 98 1E 66 FB [11:31:27]GetLastDocTimeStamp 1729596548 [11:31:27]current date 1729596692 [11:31:27]FM_GetShiftState [11:31:27]SAM_PROTO_GetShiftState [11:31:27]wFMCommunicate request_size=4 [11:31:27]MH_SAM_APDU [11:31:27]CAPDU: 80 13 01 00 [11:31:27]Write to MH i2c: E2 08 00 01 5D 80 13 01 00 00 00 00 00 DB [11:31:27]Write i2c OK [11:31:27]MH_I2C_Read... [11:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:27]Read from MH i2c: E2 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 0E 00 [11:31:27]MH_I2C_Read... [11:31:27]Read from MH i2c: E2 0E 00 01 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [11:31:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:31:27]wFMCommunicate OK [11:31:27]SAM_PROTO_GetShiftState done [11:31:27]FM_GetShiftState done [11:31:27]opened in 1729555832 [11:31:27]opened+sec_in_day 1729642232 [11:31:27]quantity*price = 120046 [11:31:27]sum+1 = 120047 [11:31:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.46 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.46 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 149 22.10.2024 11:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70201 ФПД: 112583089802669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113132&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70201&fm=112583089802669&tin=02508201610067®Number=0000000000156251&sum=120046 [11:31:28]StoreToDocumentArchive [11:31:28]shift 195 fd 70201 [11:31:28]save to /storage/0195/doc_00070201 [11:31:28]save last doc name /storage/0195/doc_00070201 to /storage/kkm_last_doc_name [11:31:28]save OK [11:31:28]Clear old archive folders... [11:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:31:28]tlvbuf is 011018D0 [11:31:28]SAM_PROTO_ClearQueue [11:31:28]wFMCommunicate request_size=4 [11:31:28]MH_SAM_APDU [11:31:28]CAPDU: 80 09 00 00 [11:31:28]Write to MH i2c: E2 08 00 0E 5D 80 09 00 00 00 00 00 00 DD [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:28]Read from MH i2c: E2 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: E2 03 00 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: E2 03 00 0E 5D 00 90 00 DF [11:31:28]RAPDU: 90 00 [11:31:28]wFMCommunicate OK [11:31:28]SAM_PROTO_ClearQueue done [11:31:28]KKMCreateOFDPacket [11:31:28]OFDProtocolAddRootSTLVToBuf [11:31:28]FM_MakeSignedData [11:31:28]FM_MakeSignedData [11:31:28]SAM_PROTO_SignData [11:31:28]wFMCommunicate request_size=4 [11:31:28]MH_SAM_APDU [11:31:28]CAPDU: 80 0D 01 02 [11:31:28]Write to MH i2c: E2 08 00 0F 5D 80 0D 01 02 00 00 00 00 E5 [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 0F 5D 00 90 00 E0 [11:31:29]RAPDU: 90 00 [11:31:29]wFMCommunicate OK [11:31:29]wFMCommunicate request_size=255 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE 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 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 14 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 12 01 [11:31:29]Write to MH i2c: E2 02 01 10 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE 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 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 14 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 12 01 00 00 C8 [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 10 5D 00 90 00 E1 [11:31:29]RAPDU: 90 00 [11:31:29]wFMCommunicate OK [11:31:29]wFMCommunicate request_size=16 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 64 CB 13 4D AD [11:31:29]Write to MH i2c: E2 13 00 11 5D 80 0D 02 02 0B 00 00 35 04 06 00 66 64 CB 13 4D AD 00 00 DF [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 11 5D 00 90 00 E2 [11:31:29]RAPDU: 90 00 [11:31:29]wFMCommunicate OK [11:31:29]wFMCommunicate request_size=4 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 0D 03 02 [11:31:29]Write to MH i2c: E2 08 00 12 5D 80 0D 03 02 00 00 00 00 EA [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 0B 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 0B 00 12 5D 00 10 18 85 55 03 B7 DB AF 90 00 31 [11:31:29]RAPDU: 10 18 85 55 03 B7 DB AF 90 00 [11:31:29]wFMCommunicate OK [11:31:29]SAM_PROTO_SignData done [11:31:29]FM_MakeSignedData done [11:31:29]CreateOFDProtocolMessage [11:31:29]wFMCommunicate request_size=4 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 11 00 00 [11:31:29]Write to MH i2c: E2 08 00 13 5D 80 11 00 00 00 00 00 00 EA [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 17 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 17 00 13 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [11:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:29]wFMCommunicate OK [11:31:29]CreateOFDProtocolMessage done [11:31:29]OFDSenderStorePacket 70201 [11:31:29]StoreOFDPacket docnum=70201 [11:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 35 D4 0D 01 FC 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE 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 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 14 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 12 01 00 35 04 06 00 66 64 CB 13 4D AD 10 18 85 55 03 B7 DB AF [11:31:29]CheckFolder [11:31:29]dirname=/storage/ofd_packets [11:31:29]CheckFolder done [11:31:29]ProducePacketName [11:31:29]name=ofd_packets/00070201 [11:31:29]NVStorageSaveData ofd_packets/00070201 [11:31:29]File name is /storage/ofd_packets/00070201 [11:31:29]Write 307 bytes [11:31:29]NVStorageSaveData done [11:31:29]OFDSenderStorePacket done [11:31:29]KKMCreateOFDPacket done [11:31:29]NVStorageSaveData kkm_last_timestamp [11:31:29]File name is /storage/kkm_last_timestamp [11:31:29]Write 4 bytes [11:31:29]NVStorageSaveData done [11:31:29]ExternCall_PrintAddStr [11:31:29]wPrintStart [11:31:29]Write to MH i2c: 01 00 00 14 5D 71 [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: 01 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: 01 07 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: 01 07 00 14 5D 00 00 00 00 00 FF 0F 86 [11:31:29]RasterBufferAndPrint [11:31:29]line Счет N : (1)2885969 [11:31:29]line ИНН: 02508201610067 [11:31:29]line Контрольно-Кассовый Чек [11:31:29]line ПРОДАЖА [11:31:29]line ТРК (МРК, ГНК) : 31 [11:31:29]line Товар: 2710194240 [11:31:29]line D-ENERGY Дт-К-2 [11:31:29]line 15.550 * 77.20 [11:31:29]line = 1200.46 [11:31:29]line НДС 12% НСП 1% [11:31:29]line > о реализуемом товаре [11:31:29]line ИТОГО: 1200.46 [11:31:29]line НСП 1% : 10.62 [11:31:29]line НДС 12% : 127.48 [11:31:29]line Наличными: 0.00 [11:31:29]line Безнал.: 1200.46 [11:31:29]line Место: АЗС № 85 "Партнер Нефть" [11:31:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:31:29]line СНО: Общий режим [11:31:29]line Чек 149 22.10.2024 11:31 [11:31:29]line Смена: 195 ФФД: 1.0 [11:31:29]line ЗНМ: 0300000167 [11:31:29]line РНМ: 0000000000156251 [11:31:29]line Версия ККМ: v1.0 [11:31:29]line Платежная система: Mbank [11:31:29]line ФМ: 0000000000963346 [11:31:29]line ФД: 70201 [11:31:29]line ФПД: 112583089802669 [11:31:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113132&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70201&fm=112583089802669&tin=02508201610067®Number=0000000000156251&sum=120046 [11:31:29]OFD Sender: Processing packet 70201 [packets to send 18, broken 17] [11:31:29]ProducePacketName [11:31:29]name=ofd_packets/00070201 [11:31:29]OFD Sender: To server: pG, [11:31:29]CommunicateWithHost lk.salyk.kg:30040 [11:31:29]ConnectInit lk.salyk.kg [11:31:29]written 0, free lines is 4095 [11:31:29]Connected sock=10 [11:31: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 34 36 15 01 00 00 35 D4 0D 01 FC 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE 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 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 14 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 12 01 00 35 04 06 00 66 64 CB 13 4D AD 10 18 85 55 03 B7 DB AF [11:31: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 34 36 4F 00 00 00 AB 69 47 00 A6 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 34 36 10 04 04 00 39 12 01 00 F4 03 04 00 B5 36 17 67 B6 04 01 00 00 5D 6A CD EE 83 A8 1B 62 [11:31:30]CommunicateWithHost err = 0 [11:31:30]CheckOFDResponse [11:31:30]1017 (14) - 77093643461234 [11:31:30]1041 (16) - 0000000000963346 [11:31:30]1040 (4) - 70201 [11:31:30]1012 (4) - 22.10.2024 05:23 [11:31:30]1206 (1) - 0 [11:31:30]OFD Sender: Remove packet 70201 [11:31:30]ProducePacketName [11:31:30]name=ofd_packets/00070201 [11:31:30]NVStorageDeleteData [11:31:30]Write to MH i2c: 01 00 00 3D 5D 9A [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 07 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 07 00 3D 5D 00 00 00 00 00 34 0D E2 [11:31:30]RasterBufferAndPrint [11:31:30]line [11:31:30]line [11:31:30]line [11:31:30]line [11:31:30]line [11:31:30]written 0, free lines is 3387 [11:31:30]MH_Cut [11:31:30]Write to MH i2c: D1 01 00 44 5D 01 73 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: D1 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: D1 01 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: D1 01 00 44 5D 00 72 [11:31:30]Write to MH i2c: 01 00 00 45 5D A2 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]OFD Sender: No OFD packet to send [11:31:30]*** Cut start [11:31:30]*** Partial cut [11:31:30]*** CUTSNS_PIN = 1 [11:31:30]*** CUTSNS_PIN = 0 [11:31:31]*** Brake cut motor [11:31:31]Read from MH i2c: 01 [11:31:31]MH_I2C_Read... [11:31:31]*** Stop cut motor [11:31:31]*** Cut end [11:31:31]Read from MH i2c: 01 07 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: 01 07 00 45 5D 00 00 00 00 00 FF 0F B7 [11:31:31]process_action close_receipt done [11:31:31]requested_data is exist [11:31:31]produce_requested_data [11:31:31]requested_item fm.sn is exist - process it [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 11 00 00 [11:31:31]Write to MH i2c: E2 08 00 46 5D 80 11 00 00 00 00 00 00 1D [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 17 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 17 00 46 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [11:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:31]wFMCommunicate OK [11:31:31]requested_item fd.num is exist - process it [11:31:31]SAM_PROTO_GetFieldsCounters [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 13 00 00 [11:31:31]Write to MH i2c: E2 08 00 47 5D 80 13 00 00 00 00 00 00 20 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 62 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 62 00 47 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 12 01 00 0E 04 04 00 C3 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 09 [11:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 12 01 00 0E 04 04 00 C3 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 [11:31:31]wFMCommunicate OK [11:31:31]SAM_PROTO_GetFieldsCounters done [11:31:31]requested_item shift.num is exist - process it [11:31:31]requested_item shift.opened is exist - process it [11:31:31]req_shift_opened [11:31:31]FM_GetShiftState [11:31:31]SAM_PROTO_GetShiftState [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 13 01 00 [11:31:31]Write to MH i2c: E2 08 00 48 5D 80 13 01 00 00 00 00 00 22 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0E 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0E 00 48 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 10 [11:31:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:31:31]wFMCommunicate OK [11:31:31]SAM_PROTO_GetShiftState done [11:31:31]FM_GetShiftState done [11:31:31]req_shift_opened done [11:31:31]requested_item shift.open_date is exist - process it [11:31:31]req_shift_open_date [11:31:31]req_shift_open_date done [11:31:31]produce_requested_data done [11:31:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70201,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:31:31]process_action_free close_receipt [11:31:31]json_value_free [11:31:31]json_value_free done [11:31:31]process_json_proto returns [11:31:31]Send response to host [11:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70201,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:31:31]free response buf [11:31:31]execute_script done [11:31:31]execute_script returns [11:31:31]free content buf [11:31:31]Sock 9.Close socket [11:31:31]Sock 9.Thread stoped [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:52]accept exits with 7 [11:32:52]New connection [11:32:52]New thread 3067026788 created [11:32:52]Thread 3067170148 joined [11:32:52]Waiting for new connection... [11:32:52] Sock 7.Parse request [11:32:52]Sock 7.Check first char [11:32:52]Sock 7.First char is OK [11:32:52]request: POST /json_proto HTTP/1.0 [11:32:52]Method: POST [11:32:52]URL: /json_proto [11:32:52]Method is POST - this is cgi request [11:32:52]url: /json_proto [11:32:52]query_string will be loaded in cgi processing [11:32:52]execute_cgi json_proto POST (null) [11:32:52]execute_cgi path=json_proto method=POST [11:32:52]POST find Content-Length [11:32:52]Host: 172.17.50.3:8080 [11:32:52]Content-Length: 683 [11:32:52]Content-Type: application/json [11:32:52] [11:32:52]POST finish read [11:32:52]Found Content-Length = 683 [11:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [11:32:52]execute_script... [11:32: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)2885970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [11:32:52]POST & json_proto [11:32:52]process_json_proto [11:32:52]json parsed OK: [11:32:52]protocol is kg_v1.0 [11:32:52]action value=close_receipt [11:32:52]process_action close_receipt [11:32:52]cmd_close_receipt [11:32:52]MH_GetDate [11:32:52]Write to MH i2c: F0 00 00 49 5D 95 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: F0 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: F0 09 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: F0 09 00 49 5D 00 69 8D 17 67 6B 98 1E 66 99 [11:32:52]GetLastDocTimeStamp 1729596692 [11:32:52]current date 1729596777 [11:32:52]FM_GetShiftState [11:32:52]SAM_PROTO_GetShiftState [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 13 01 00 [11:32:52]Write to MH i2c: E2 08 00 4A 5D 80 13 01 00 00 00 00 00 24 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 0E 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 0E 00 4A 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 12 [11:32:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:32:52]wFMCommunicate OK [11:32:52]SAM_PROTO_GetShiftState done [11:32:52]FM_GetShiftState done [11:32:52]opened in 1729555832 [11:32:52]opened+sec_in_day 1729642232 [11:32:52]quantity*price = 100015 [11:32:52]sum+1 = 100017 [11:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 150 22.10.2024 11:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70202 ФПД: 272195182965027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70202&fm=272195182965027&tin=02508201610067®Number=0000000000156251&sum=100000 [11:32:53]StoreToDocumentArchive [11:32:53]shift 195 fd 70202 [11:32:53]save to /storage/0195/doc_00070202 [11:32:53]save last doc name /storage/0195/doc_00070202 to /storage/kkm_last_doc_name [11:32:53]save OK [11:32:53]Clear old archive folders... [11:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:53]tlvbuf is 011D7940 [11:32:53]SAM_PROTO_ClearQueue [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 09 00 00 [11:32:53]Write to MH i2c: E2 08 00 57 5D 80 09 00 00 00 00 00 00 26 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 57 5D 00 90 00 28 [11:32:53]RAPDU: 90 00 [11:32:53]wFMCommunicate OK [11:32:53]SAM_PROTO_ClearQueue done [11:32:53]KKMCreateOFDPacket [11:32:53]OFDProtocolAddRootSTLVToBuf [11:32:53]FM_MakeSignedData [11:32:53]FM_MakeSignedData [11:32:53]SAM_PROTO_SignData [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 0D 01 02 [11:32:53]Write to MH i2c: E2 08 00 58 5D 80 0D 01 02 00 00 00 00 2E [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 58 5D 00 90 00 29 [11:32:53]RAPDU: 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=255 [11:32:53]MH_SAM_APDU [11:32: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 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 96 00 00 00 F4 03 04 00 69 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 12 01 00 35 04 06 00 F7 [11:32:53]Write to MH i2c: E2 02 01 59 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 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 96 00 00 00 F4 03 04 00 69 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 12 01 00 35 04 06 00 F7 00 00 C2 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 03 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 03 00 59 5D 00 90 00 2A [11:32:54]RAPDU: 90 00 [11:32:54]wFMCommunicate OK [11:32:54]wFMCommunicate request_size=10 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 0D 02 02 05 8F 61 30 B1 23 [11:32:54]Write to MH i2c: E2 0D 00 5A 5D 80 0D 02 02 05 00 8F 61 30 B1 23 00 00 2F [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 03 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 03 00 5A 5D 00 90 00 2B [11:32:54]RAPDU: 90 00 [11:32:54]wFMCommunicate OK [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 0D 03 02 [11:32:54]Write to MH i2c: E2 08 00 5B 5D 80 0D 03 02 00 00 00 00 33 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 0B 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 0B 00 5B 5D 00 E4 D7 0D 30 FA 28 95 7D 90 00 60 [11:32:54]RAPDU: E4 D7 0D 30 FA 28 95 7D 90 00 [11:32:54]wFMCommunicate OK [11:32:54]SAM_PROTO_SignData done [11:32:54]FM_MakeSignedData done [11:32:54]CreateOFDProtocolMessage [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 11 00 00 [11:32:54]Write to MH i2c: E2 08 00 5C 5D 80 11 00 00 00 00 00 00 33 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 17 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 17 00 5C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [11:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:54]wFMCommunicate OK [11:32:54]CreateOFDProtocolMessage done [11:32:54]OFDSenderStorePacket 70202 [11:32:54]StoreOFDPacket docnum=70202 [11:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A 9E 07 01 4E 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 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 96 00 00 00 F4 03 04 00 69 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 12 01 00 35 04 06 00 F7 8F 61 30 B1 23 E4 D7 0D 30 FA 28 95 7D [11:32:54]CheckFolder [11:32:54]dirname=/storage/ofd_packets [11:32:54]CheckFolder done [11:32:54]ProducePacketName [11:32:54]name=ofd_packets/00070202 [11:32:54]NVStorageSaveData ofd_packets/00070202 [11:32:54]File name is /storage/ofd_packets/00070202 [11:32:54]Write 301 bytes [11:32:54]NVStorageSaveData done [11:32:54]OFDSenderStorePacket done [11:32:54]KKMCreateOFDPacket done [11:32:54]NVStorageSaveData kkm_last_timestamp [11:32:54]File name is /storage/kkm_last_timestamp [11:32:54]Write 4 bytes [11:32:54]NVStorageSaveData done [11:32:54]ExternCall_PrintAddStr [11:32:54]wPrintStart [11:32:54]Write to MH i2c: 01 00 00 5D 5D BA [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 07 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 07 00 5D 5D 00 00 00 00 00 FF 0F CF [11:32:54]RasterBufferAndPrint [11:32:54]line Счет N : (1)2885970 [11:32:54]line ИНН: 02508201610067 [11:32:54]line Контрольно-Кассовый Чек [11:32:54]line ПРОДАЖА [11:32:54]line ТРК (МРК, ГНК) : 12 [11:32:54]line Товар: 2710124130 [11:32:54]line Аи-92-К-5 [11:32:54]line 14.950 * 66.90 [11:32:54]line = 1000.16 [11:32:54]line НДС 12% НСП 1% [11:32:54]line > о реализуемом товаре [11:32:54]line ОКРУГЛЕНИЕ: -0.16 [11:32:54]line ИТОГО: 1000.00 [11:32:54]line Внесено: 1000.00 [11:32:54]line СДАЧА: 0.00 [11:32:54]line НСП 1% : 8.85 [11:32:54]line НДС 12% : 106.21 [11:32:54]line Наличными: 1000.00 [11:32:54]line Безнал.: 0.00 [11:32:54]line Место: АЗС № 85 "Партнер Нефть" [11:32:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:32:54]line СНО: Общий режим [11:32:54]line Чек 150 22.10.2024 11:32 [11:32:54]line Смена: 195 ФФД: 1.0 [11:32:54]line ЗНМ: 0300000167 [11:32:54]line РНМ: 0000000000156251 [11:32:54]line Версия ККМ: v1.0 [11:32:54]line ФМ: 0000000000963346 [11:32:54]line ФД: 70202 [11:32:54]line ФПД: 272195182965027 [11:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70202&fm=272195182965027&tin=02508201610067®Number=0000000000156251&sum=100000 [11:32:54]OFD Sender: Processing packet 70202 [packets to send 18, broken 17] [11:32:54]ProducePacketName [11:32:54]name=ofd_packets/00070202 [11:32:54]OFD Sender: To server: pG, [11:32:54]CommunicateWithHost lk.salyk.kg:30040 [11:32:54]ConnectInit lk.salyk.kg [11:32:54]written 0, free lines is 4095 [11:32:54]Connected sock=9 [11:32: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 34 36 0F 01 00 00 3A 9E 07 01 4E 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 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 96 00 00 00 F4 03 04 00 69 8D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 12 01 00 35 04 06 00 F7 8F 61 30 B1 23 E4 D7 0D 30 FA 28 95 7D [11:32: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 34 36 4F 00 00 00 5D 41 47 00 B2 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 34 36 10 04 04 00 3A 12 01 00 F4 03 04 00 0A 37 17 67 B6 04 01 00 00 1F 6F A9 2A 91 CF D3 EC [11:32:54]CommunicateWithHost err = 0 [11:32:54]CheckOFDResponse [11:32:54]1017 (14) - 77093643461234 [11:32:54]1041 (16) - 0000000000963346 [11:32:54]1040 (4) - 70202 [11:32:54]1012 (4) - 22.10.2024 05:24 [11:32:54]1206 (1) - 0 [11:32:54]OFD Sender: Remove packet 70202 [11:32:54]ProducePacketName [11:32:54]name=ofd_packets/00070202 [11:32:54]NVStorageDeleteData [11:32:55]Write to MH i2c: 01 00 00 88 5D E5 [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: 01 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: 01 07 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: 01 07 00 88 5D 00 00 00 00 00 E6 0C DE [11:32:55]RasterBufferAndPrint [11:32:55]line [11:32:55]line [11:32:55]line [11:32:55]line [11:32:55]line [11:32:55]written 0, free lines is 3311 [11:32:55]MH_Cut [11:32:55]Write to MH i2c: D1 01 00 8F 5D 01 BE [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: D1 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: D1 01 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: D1 01 00 8F 5D 00 BD [11:32:55]Write to MH i2c: 01 00 00 90 5D ED [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]OFD Sender: No OFD packet to send [11:32:55]*** Cut start [11:32:55]*** Partial cut [11:32:55]*** CUTSNS_PIN = 1 [11:32:55]*** CUTSNS_PIN = 0 [11:32:56]*** Brake cut motor [11:32:56]Read from MH i2c: 01 [11:32:56]MH_I2C_Read... [11:32:56]*** Stop cut motor [11:32:56]*** Cut end [11:32:56]Read from MH i2c: 01 07 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: 01 07 00 90 5D 00 00 00 00 00 FF 0F 02 [11:32:56]process_action close_receipt done [11:32:56]requested_data is exist [11:32:56]produce_requested_data [11:32:56]requested_item fm.sn is exist - process it [11:32:56]wFMCommunicate request_size=4 [11:32:56]MH_SAM_APDU [11:32:56]CAPDU: 80 11 00 00 [11:32:56]Write to MH i2c: E2 08 00 91 5D 80 11 00 00 00 00 00 00 68 [11:32:56]Write i2c OK [11:32:56]MH_I2C_Read... [11:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:56]Read from MH i2c: E2 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 17 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 17 00 91 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [11:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:56]wFMCommunicate OK [11:32:56]requested_item fd.num is exist - process it [11:32:56]SAM_PROTO_GetFieldsCounters [11:32:56]wFMCommunicate request_size=4 [11:32:56]MH_SAM_APDU [11:32:56]CAPDU: 80 13 00 00 [11:32:56]Write to MH i2c: E2 08 00 92 5D 80 13 00 00 00 00 00 00 6B [11:32:56]Write i2c OK [11:32:56]MH_I2C_Read... [11:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:56]Read from MH i2c: E2 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 62 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 62 00 92 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 12 01 00 0E 04 04 00 C3 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 58 [11:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 12 01 00 0E 04 04 00 C3 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 [11:32:56]wFMCommunicate OK [11:32:56]SAM_PROTO_GetFieldsCounters done [11:32:56]requested_item shift.num is exist - process it [11:32:56]requested_item shift.opened is exist - process it [11:32:56]req_shift_opened [11:32:56]FM_GetShiftState [11:32:56]SAM_PROTO_GetShiftState [11:32:56]wFMCommunicate request_size=4 [11:32:56]MH_SAM_APDU [11:32:56]CAPDU: 80 13 01 00 [11:32:56]Write to MH i2c: E2 08 00 93 5D 80 13 01 00 00 00 00 00 6D [11:32:56]Write i2c OK [11:32:56]MH_I2C_Read... [11:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:56]Read from MH i2c: E2 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 0E 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 0E 00 93 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5B [11:32:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:32:56]wFMCommunicate OK [11:32:56]SAM_PROTO_GetShiftState done [11:32:56]FM_GetShiftState done [11:32:56]req_shift_opened done [11:32:56]requested_item shift.open_date is exist - process it [11:32:56]req_shift_open_date [11:32:56]req_shift_open_date done [11:32:56]produce_requested_data done [11:32:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70202,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:32:56]process_action_free close_receipt [11:32:56]json_value_free [11:32:56]json_value_free done [11:32:56]process_json_proto returns [11:32:56]Send response to host [11:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70202,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:32:56]free response buf [11:32:56]execute_script done [11:32:56]execute_script returns [11:32:56]free content buf [11:32:56]Sock 7.Close socket [11:32:56]Sock 7.Thread stoped [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:25]accept exits with 10 [11:36:25]New connection [11:36:25]New thread 3067170148 created [11:36:25]Thread 3067026788 joined [11:36:25]Waiting for new connection... [11:36:25] Sock 10.Parse request [11:36:25]Sock 10.Check first char [11:36:25]Sock 10.First char is OK [11:36:25]request: POST /json_proto HTTP/1.0 [11:36:25]Method: POST [11:36:25]URL: /json_proto [11:36:25]Method is POST - this is cgi request [11:36:25]url: /json_proto [11:36:25]query_string will be loaded in cgi processing [11:36:25]execute_cgi json_proto POST (null) [11:36:25]execute_cgi path=json_proto method=POST [11:36:25]POST find Content-Length [11:36:25]Host: 172.17.50.3:8080 [11:36:25]Content-Length: 680 [11:36:25]Content-Type: application/json [11:36:25] [11:36:25]POST finish read [11:36:25]Found Content-Length = 680 [11:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885971", "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" ] } } [11:36:25]execute_script... [11:36: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)2885971", "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" ] } } [11:36:25]POST & json_proto [11:36:25]process_json_proto [11:36:25]json parsed OK: [11:36:25]protocol is kg_v1.0 [11:36:25]action value=close_receipt [11:36:25]process_action close_receipt [11:36:25]cmd_close_receipt [11:36:25]MH_GetDate [11:36:25]Write to MH i2c: F0 00 00 94 5D E0 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 09 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 09 00 94 5D 00 3F 8E 17 67 6B 98 1E 66 BB [11:36:25]GetLastDocTimeStamp 1729596777 [11:36:25]current date 1729596991 [11:36:25]FM_GetShiftState [11:36:25]SAM_PROTO_GetShiftState [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 13 01 00 [11:36:25]Write to MH i2c: E2 08 00 95 5D 80 13 01 00 00 00 00 00 6F [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0E 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0E 00 95 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [11:36:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:36:25]wFMCommunicate OK [11:36:25]SAM_PROTO_GetShiftState done [11:36:25]FM_GetShiftState done [11:36:25]opened in 1729555832 [11:36:25]opened+sec_in_day 1729642232 [11:36:25]quantity*price = 100050 [11:36:25]sum+1 = 100052 [11:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 151 22.10.2024 11:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70203 ФПД: 218074903432166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70203&fm=218074903432166&tin=02508201610067®Number=0000000000156251&sum=100000 [11:36:27]StoreToDocumentArchive [11:36:27]shift 195 fd 70203 [11:36:27]save to /storage/0195/doc_00070203 [11:36:27]save last doc name /storage/0195/doc_00070203 to /storage/kkm_last_doc_name [11:36:27]save OK [11:36:27]Clear old archive folders... [11:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:27]tlvbuf is 0120E7A0 [11:36:27]SAM_PROTO_ClearQueue [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 09 00 00 [11:36:27]Write to MH i2c: E2 08 00 A2 5D 80 09 00 00 00 00 00 00 71 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 A2 5D 00 90 00 73 [11:36:27]RAPDU: 90 00 [11:36:27]wFMCommunicate OK [11:36:27]SAM_PROTO_ClearQueue done [11:36:27]KKMCreateOFDPacket [11:36:27]OFDProtocolAddRootSTLVToBuf [11:36:27]FM_MakeSignedData [11:36:27]FM_MakeSignedData [11:36:27]SAM_PROTO_SignData [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 0D 01 02 [11:36:27]Write to MH i2c: E2 08 00 A3 5D 80 0D 01 02 00 00 00 00 79 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 A3 5D 00 90 00 74 [11:36:27]RAPDU: 90 00 [11:36:27]wFMCommunicate OK [11:36:27]wFMCommunicate request_size=255 [11:36:27]MH_SAM_APDU [11:36: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 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 97 00 00 00 F4 03 04 00 3F 8E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 12 01 00 35 04 06 00 C6 56 85 27 [11:36:27]Write to MH i2c: E2 02 01 A4 5D 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 97 00 00 00 F4 03 04 00 3F 8E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 12 01 00 35 04 06 00 C6 56 85 27 00 00 B3 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 A4 5D 00 90 00 75 [11:36:27]RAPDU: 90 00 [11:36:27]wFMCommunicate OK [11:36:27]wFMCommunicate request_size=7 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 0D 02 02 02 4B E6 [11:36:27]Write to MH i2c: E2 0A 00 A5 5D 80 0D 02 02 02 00 4B E6 00 00 B1 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 A5 5D 00 90 00 76 [11:36:27]RAPDU: 90 00 [11:36:27]wFMCommunicate OK [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 0D 03 02 [11:36:27]Write to MH i2c: E2 08 00 A6 5D 80 0D 03 02 00 00 00 00 7E [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0B 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0B 00 A6 5D 00 AD E5 30 B5 CF C7 1D 71 90 00 1A [11:36:27]RAPDU: AD E5 30 B5 CF C7 1D 71 90 00 [11:36:27]wFMCommunicate OK [11:36:27]SAM_PROTO_SignData done [11:36:27]FM_MakeSignedData done [11:36:27]CreateOFDProtocolMessage [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 11 00 00 [11:36:27]Write to MH i2c: E2 08 00 A7 5D 80 11 00 00 00 00 00 00 7E [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 17 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 17 00 A7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [11:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:36:27]wFMCommunicate OK [11:36:27]CreateOFDProtocolMessage done [11:36:27]OFDSenderStorePacket 70203 [11:36:27]StoreOFDPacket docnum=70203 [11:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 60 15 04 01 44 EA 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 97 00 00 00 F4 03 04 00 3F 8E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 12 01 00 35 04 06 00 C6 56 85 27 4B E6 AD E5 30 B5 CF C7 1D 71 [11:36:27]CheckFolder [11:36:27]dirname=/storage/ofd_packets [11:36:27]CheckFolder done [11:36:27]ProducePacketName [11:36:27]name=ofd_packets/00070203 [11:36:27]NVStorageSaveData ofd_packets/00070203 [11:36:27]File name is /storage/ofd_packets/00070203 [11:36:27]Write 298 bytes [11:36:27]NVStorageSaveData done [11:36:27]OFDSenderStorePacket done [11:36:27]KKMCreateOFDPacket done [11:36:27]NVStorageSaveData kkm_last_timestamp [11:36:27]File name is /storage/kkm_last_timestamp [11:36:27]Write 4 bytes [11:36:27]NVStorageSaveData done [11:36:27]ExternCall_PrintAddStr [11:36:27]wPrintStart [11:36:27]Write to MH i2c: 01 00 00 A8 5D 05 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 A8 5D 00 00 00 00 00 FF 0F 1A [11:36:27]RasterBufferAndPrint [11:36:27]line Счет N : (1)2885971 [11:36:27]line ИНН: 02508201610067 [11:36:27]line Контрольно-Кассовый Чек [11:36:27]line ПРОДАЖА [11:36:27]line ТРК (МРК, ГНК) : 51 [11:36:27]line Товар: 2710194210 [11:36:27]line ДТ-К-5 [11:36:27]line 13.130 * 76.20 [11:36:27]line = 1000.51 [11:36:27]line НДС 12% НСП 1% [11:36:27]line > о реализуемом товаре [11:36:27]line ОКРУГЛЕНИЕ: -0.51 [11:36:27]line ИТОГО: 1000.00 [11:36:27]line Внесено: 1000.00 [11:36:27]line СДАЧА: 0.00 [11:36:27]line НСП 1% : 8.85 [11:36:27]line НДС 12% : 106.25 [11:36:27]line Наличными: 1000.00 [11:36:27]line Безнал.: 0.00 [11:36:27]line Место: АЗС № 85 "Партнер Нефть" [11:36:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:36:27]line СНО: Общий режим [11:36:27]line Чек 151 22.10.2024 11:36 [11:36:27]line Смена: 195 ФФД: 1.0 [11:36:27]line ЗНМ: 0300000167 [11:36:27]line РНМ: 0000000000156251 [11:36:27]line Версия ККМ: v1.0 [11:36:27]line ФМ: 0000000000963346 [11:36:27]line ФД: 70203 [11:36:27]line ФПД: 218074903432166 [11:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70203&fm=218074903432166&tin=02508201610067®Number=0000000000156251&sum=100000 [11:36:27]OFD Sender: Processing packet 70203 [packets to send 18, broken 17] [11:36:27]ProducePacketName [11:36:27]name=ofd_packets/00070203 [11:36:27]OFD Sender: To server: pG, [11:36:27]CommunicateWithHost lk.salyk.kg:30040 [11:36:27]ConnectInit lk.salyk.kg [11:36:27]written 0, free lines is 4095 [11:36:28]Connected sock=9 [11:36: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 34 36 0C 01 00 00 60 15 04 01 44 EA 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 97 00 00 00 F4 03 04 00 3F 8E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 12 01 00 35 04 06 00 C6 56 85 27 4B E6 AD E5 30 B5 CF C7 1D 71 [11:36: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 34 36 4F 00 00 00 1F 8B 47 00 01 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 12 01 00 F4 03 04 00 DF 37 17 67 B6 04 01 00 00 CE F0 B2 4A E4 F9 45 B6 [11:36:28]CommunicateWithHost err = 0 [11:36:28]CheckOFDResponse [11:36:28]1017 (14) - 77093643461234 [11:36:28]1041 (16) - 0000000000963346 [11:36:28]1040 (4) - 70203 [11:36:28]1012 (4) - 22.10.2024 05:27 [11:36:28]1206 (1) - 0 [11:36:28]OFD Sender: Remove packet 70203 [11:36:28]ProducePacketName [11:36:28]name=ofd_packets/00070203 [11:36:28]NVStorageDeleteData [11:36:28]Write to MH i2c: 01 00 00 D3 5D 30 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 07 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 07 00 D3 5D 00 00 00 00 00 E7 0C 2A [11:36:28]RasterBufferAndPrint [11:36:28]line [11:36:28]line [11:36:28]line [11:36:28]line [11:36:28]line [11:36:28]written 0, free lines is 3312 [11:36:28]MH_Cut [11:36:28]Write to MH i2c: D1 01 00 DA 5D 01 09 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: D1 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: D1 01 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: D1 01 00 DA 5D 00 08 [11:36:28]Write to MH i2c: 01 00 00 DB 5D 38 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]OFD Sender: No OFD packet to send [11:36:29]*** Cut start [11:36:29]*** Partial cut [11:36:29]*** CUTSNS_PIN = 1 [11:36:29]*** CUTSNS_PIN = 0 [11:36:29]*** Brake cut motor [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]*** Stop cut motor [11:36:29]*** Cut end [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 DB 5D 00 00 00 00 00 FF 0F 4D [11:36:29]process_action close_receipt done [11:36:29]requested_data is exist [11:36:29]produce_requested_data [11:36:29]requested_item fm.sn is exist - process it [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 DC 5D 80 11 00 00 00 00 00 00 B3 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 DC 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:36:29]wFMCommunicate OK [11:36:29]requested_item fd.num is exist - process it [11:36:29]SAM_PROTO_GetFieldsCounters [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 00 00 [11:36:29]Write to MH i2c: E2 08 00 DD 5D 80 13 00 00 00 00 00 00 B6 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 DD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 12 01 00 0E 04 04 00 C3 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 A7 [11:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 12 01 00 0E 04 04 00 C3 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 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetFieldsCounters done [11:36:29]requested_item shift.num is exist - process it [11:36:29]requested_item shift.opened is exist - process it [11:36:29]req_shift_opened [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 DE 5D 80 13 01 00 00 00 00 00 B8 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 DE 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A6 [11:36:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]req_shift_opened done [11:36:29]requested_item shift.open_date is exist - process it [11:36:29]req_shift_open_date [11:36:29]req_shift_open_date done [11:36:29]produce_requested_data done [11:36:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70203,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:36:29]process_action_free close_receipt [11:36:29]json_value_free [11:36:29]json_value_free done [11:36:29]process_json_proto returns [11:36:29]Send response to host [11:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70203,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:36:29]free response buf [11:36:29]execute_script done [11:36:29]execute_script returns [11:36:29]free content buf [11:36:29]Sock 10.Close socket [11:36:29]Sock 10.Thread stoped [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:55]accept exits with 7 [11:42:55]New connection [11:42:55]New thread 3067026788 created [11:42:55]Thread 3067170148 joined [11:42:55]Waiting for new connection... [11:42:55] Sock 7.Parse request [11:42:55]Sock 7.Check first char [11:42:55]Sock 7.First char is OK [11:42:55]request: POST /json_proto HTTP/1.0 [11:42:55]Method: POST [11:42:55]URL: /json_proto [11:42:55]Method is POST - this is cgi request [11:42:55]url: /json_proto [11:42:55]query_string will be loaded in cgi processing [11:42:55]execute_cgi json_proto POST (null) [11:42:55]execute_cgi path=json_proto method=POST [11:42:55]POST find Content-Length [11:42:55]Host: 172.17.50.3:8080 [11:42:55]Content-Length: 686 [11:42:55]Content-Type: application/json [11:42:55] [11:42:55]POST finish read [11:42:55]Found Content-Length = 686 [11:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 77.130, "sum" : 3000.36, "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" ] } } [11:42:55]execute_script... [11:42: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)2885972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 77.130, "sum" : 3000.36, "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" ] } } [11:42:55]POST & json_proto [11:42:55]process_json_proto [11:42:55]json parsed OK: [11:42:55]protocol is kg_v1.0 [11:42:55]action value=close_receipt [11:42:55]process_action close_receipt [11:42:55]cmd_close_receipt [11:42:55]MH_GetDate [11:42:55]Write to MH i2c: F0 00 00 DF 5D 2B [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: F0 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: F0 09 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: F0 09 00 DF 5D 00 C4 8F 17 67 6B 98 1E 66 8C [11:42:55]GetLastDocTimeStamp 1729596991 [11:42:55]current date 1729597380 [11:42:55]FM_GetShiftState [11:42:55]SAM_PROTO_GetShiftState [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 13 01 00 [11:42:55]Write to MH i2c: E2 08 00 E0 5D 80 13 01 00 00 00 00 00 BA [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0E 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0E 00 E0 5D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A8 [11:42:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:42:55]wFMCommunicate OK [11:42:55]SAM_PROTO_GetShiftState done [11:42:55]FM_GetShiftState done [11:42:55]opened in 1729555832 [11:42:55]opened+sec_in_day 1729642232 [11:42:55]quantity*price = 300035 [11:42:55]sum+1 = 300037 [11:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 152 22.10.2024 11:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70204 ФПД: 189693777064045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70204&fm=189693777064045&tin=02508201610067®Number=0000000000156251&sum=300000 [11:42:56]StoreToDocumentArchive [11:42:56]shift 195 fd 70204 [11:42:56]save to /storage/0195/doc_00070204 [11:42:56]save last doc name /storage/0195/doc_00070204 to /storage/kkm_last_doc_name [11:42:56]save OK [11:42:56]Clear old archive folders... [11:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:42:56]tlvbuf is 01145200 [11:42:56]SAM_PROTO_ClearQueue [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 09 00 00 [11:42:56]Write to MH i2c: E2 08 00 ED 5D 80 09 00 00 00 00 00 00 BC [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 03 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 03 00 ED 5D 00 90 00 BE [11:42:56]RAPDU: 90 00 [11:42:56]wFMCommunicate OK [11:42:56]SAM_PROTO_ClearQueue done [11:42:56]KKMCreateOFDPacket [11:42:56]OFDProtocolAddRootSTLVToBuf [11:42:56]FM_MakeSignedData [11:42:56]FM_MakeSignedData [11:42:56]SAM_PROTO_SignData [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 0D 01 02 [11:42:56]Write to MH i2c: E2 08 00 EE 5D 80 0D 01 02 00 00 00 00 C4 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 03 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 03 00 EE 5D 00 90 00 BF [11:42:56]RAPDU: 90 00 [11:42:56]wFMCommunicate OK [11:42:56]wFMCommunicate request_size=255 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 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 76 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 98 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 12 01 00 35 04 06 00 AC 86 [11:42:56]Write to MH i2c: E2 02 01 EF 5D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 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 76 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 98 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 12 01 00 35 04 06 00 AC 86 00 00 C1 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 EF 5D 00 90 00 C0 [11:42:57]RAPDU: 90 00 [11:42:57]wFMCommunicate OK [11:42:57]wFMCommunicate request_size=9 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 0D 02 02 04 86 32 B0 6D [11:42:57]Write to MH i2c: E2 0C 00 F0 5D 80 0D 02 02 04 00 86 32 B0 6D 00 00 A4 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 F0 5D 00 90 00 C1 [11:42:57]RAPDU: 90 00 [11:42:57]wFMCommunicate OK [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 0D 03 02 [11:42:57]Write to MH i2c: E2 08 00 F1 5D 80 0D 03 02 00 00 00 00 C9 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0B 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0B 00 F1 5D 00 BB E0 96 61 09 9B 2A B5 90 00 DF [11:42:57]RAPDU: BB E0 96 61 09 9B 2A B5 90 00 [11:42:57]wFMCommunicate OK [11:42:57]SAM_PROTO_SignData done [11:42:57]FM_MakeSignedData done [11:42:57]CreateOFDProtocolMessage [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 11 00 00 [11:42:57]Write to MH i2c: E2 08 00 F2 5D 80 11 00 00 00 00 00 00 C9 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 17 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 17 00 F2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [11:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:57]wFMCommunicate OK [11:42:57]CreateOFDProtocolMessage done [11:42:57]OFDSenderStorePacket 70204 [11:42:57]StoreOFDPacket docnum=70204 [11:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1E 90 06 01 F0 56 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 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 76 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 98 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 12 01 00 35 04 06 00 AC 86 86 32 B0 6D BB E0 96 61 09 9B 2A B5 [11:42:57]CheckFolder [11:42:57]dirname=/storage/ofd_packets [11:42:57]CheckFolder done [11:42:57]ProducePacketName [11:42:57]name=ofd_packets/00070204 [11:42:57]NVStorageSaveData ofd_packets/00070204 [11:42:57]File name is /storage/ofd_packets/00070204 [11:42:57]Write 300 bytes [11:42:57]NVStorageSaveData done [11:42:57]OFDSenderStorePacket done [11:42:57]KKMCreateOFDPacket done [11:42:57]NVStorageSaveData kkm_last_timestamp [11:42:57]File name is /storage/kkm_last_timestamp [11:42:57]Write 4 bytes [11:42:57]NVStorageSaveData done [11:42:57]ExternCall_PrintAddStr [11:42:57]wPrintStart [11:42:57]Write to MH i2c: 01 00 00 F3 5D 50 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: 01 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: 01 07 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: 01 07 00 F3 5D 00 00 00 00 00 FF 0F 65 [11:42:57]RasterBufferAndPrint [11:42:57]line Счет N : (1)2885972 [11:42:57]line ИНН: 02508201610067 [11:42:57]line Контрольно-Кассовый Чек [11:42:57]line ПРОДАЖА [11:42:57]line ТРК (МРК, ГНК) : 71 [11:42:57]line Товар: 2711129700 [11:42:57]line ГАЗ-К-3 [11:42:57]line 77.130 * 38.90 [11:42:57]line = 3000.36 [11:42:57]line НДС 12% НСП 1% [11:42:57]line > о реализуемом товаре [11:42:57]line ОКРУГЛЕНИЕ: -0.36 [11:42:57]line ИТОГО: 3000.00 [11:42:57]line Внесено: 3000.00 [11:42:57]line СДАЧА: 0.00 [11:42:57]line НСП 1% : 26.55 [11:42:57]line НДС 12% : 318.62 [11:42:57]line Наличными: 3000.00 [11:42:57]line Безнал.: 0.00 [11:42:57]line Место: АЗС № 85 "Партнер Нефть" [11:42:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:42:57]line СНО: Общий режим [11:42:57]line Чек 152 22.10.2024 11:43 [11:42:57]line Смена: 195 ФФД: 1.0 [11:42:57]line ЗНМ: 0300000167 [11:42:57]line РНМ: 0000000000156251 [11:42:57]line Версия ККМ: v1.0 [11:42:57]line ФМ: 0000000000963346 [11:42:57]line ФД: 70204 [11:42:57]line ФПД: 189693777064045 [11:42:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70204&fm=189693777064045&tin=02508201610067®Number=0000000000156251&sum=300000 [11:42:57]OFD Sender: Processing packet 70204 [packets to send 18, broken 17] [11:42:57]ProducePacketName [11:42:57]name=ofd_packets/00070204 [11:42:57]OFD Sender: To server: pG, [11:42:57]CommunicateWithHost lk.salyk.kg:30040 [11:42:57]ConnectInit lk.salyk.kg [11:42:57]written 0, free lines is 4095 [11:42:57]Connected sock=10 [11:42: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 34 36 0E 01 00 00 1E 90 06 01 F0 56 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 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 76 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 98 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 12 01 00 35 04 06 00 AC 86 86 32 B0 6D BB E0 96 61 09 9B 2A B5 [11:42: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 34 36 4F 00 00 00 2D C4 47 00 A1 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 34 36 10 04 04 00 3C 12 01 00 F4 03 04 00 65 39 17 67 B6 04 01 00 00 39 F1 5A 0B 2E 42 0B 8C [11:42:58]CommunicateWithHost err = 0 [11:42:58]CheckOFDResponse [11:42:58]1017 (14) - 77093643461234 [11:42:58]1041 (16) - 0000000000963346 [11:42:58]1040 (4) - 70204 [11:42:58]1012 (4) - 22.10.2024 05:34 [11:42:58]1206 (1) - 0 [11:42:58]OFD Sender: Remove packet 70204 [11:42:58]ProducePacketName [11:42:58]name=ofd_packets/00070204 [11:42:58]NVStorageDeleteData [11:42:58]Write to MH i2c: 01 00 00 1E 5E 7C [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 1E 5E 00 00 00 00 00 E6 0C 75 [11:42:58]RasterBufferAndPrint [11:42:58]line [11:42:58]line [11:42:58]line [11:42:58]line [11:42:58]line [11:42:58]written 0, free lines is 3311 [11:42:58]MH_Cut [11:42:58]Write to MH i2c: D1 01 00 25 5E 01 55 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: D1 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: D1 01 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: D1 01 00 25 5E 00 54 [11:42:58]Write to MH i2c: 01 00 00 26 5E 84 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]OFD Sender: No OFD packet to send [11:42:58]*** Cut start [11:42:58]*** Partial cut [11:42:58]*** CUTSNS_PIN = 1 [11:42:58]*** CUTSNS_PIN = 0 [11:42:59]*** Brake cut motor [11:42:59]*** Stop cut motor [11:42:59]*** Cut end [11:42:59]Read from MH i2c: 01 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 26 5E 00 00 00 00 00 FF 0F 99 [11:42:59]process_action close_receipt done [11:42:59]requested_data is exist [11:42:59]produce_requested_data [11:42:59]requested_item fm.sn is exist - process it [11:42:59]wFMCommunicate request_size=4 [11:42:59]MH_SAM_APDU [11:42:59]CAPDU: 80 11 00 00 [11:42:59]Write to MH i2c: E2 08 00 27 5E 80 11 00 00 00 00 00 00 FF [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:59]Read from MH i2c: E2 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 17 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 17 00 27 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [11:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:59]wFMCommunicate OK [11:42:59]requested_item fd.num is exist - process it [11:42:59]SAM_PROTO_GetFieldsCounters [11:42:59]wFMCommunicate request_size=4 [11:42:59]MH_SAM_APDU [11:42:59]CAPDU: 80 13 00 00 [11:42:59]Write to MH i2c: E2 08 00 28 5E 80 13 00 00 00 00 00 00 02 [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:59]Read from MH i2c: E2 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 62 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 62 00 28 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 12 01 00 0E 04 04 00 C3 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 F7 [11:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 12 01 00 0E 04 04 00 C3 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 [11:42:59]wFMCommunicate OK [11:42:59]SAM_PROTO_GetFieldsCounters done [11:42:59]requested_item shift.num is exist - process it [11:42:59]requested_item shift.opened is exist - process it [11:42:59]req_shift_opened [11:42:59]FM_GetShiftState [11:42:59]SAM_PROTO_GetShiftState [11:42:59]wFMCommunicate request_size=4 [11:42:59]MH_SAM_APDU [11:42:59]CAPDU: 80 13 01 00 [11:42:59]Write to MH i2c: E2 08 00 29 5E 80 13 01 00 00 00 00 00 04 [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:59]Read from MH i2c: E2 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 0E 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: E2 0E 00 29 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F2 [11:42:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:42:59]wFMCommunicate OK [11:42:59]SAM_PROTO_GetShiftState done [11:42:59]FM_GetShiftState done [11:42:59]req_shift_opened done [11:42:59]requested_item shift.open_date is exist - process it [11:42:59]req_shift_open_date [11:42:59]req_shift_open_date done [11:42:59]produce_requested_data done [11:42:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70204,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:42:59]process_action_free close_receipt [11:42:59]json_value_free [11:42:59]json_value_free done [11:42:59]process_json_proto returns [11:42:59]Send response to host [11:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70204,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:42:59]free response buf [11:42:59]execute_script done [11:42:59]execute_script returns [11:42:59]free content buf [11:42:59]Sock 7.Close socket [11:42:59]Sock 7.Thread stoped [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:43]accept exits with 9 [11:43:43]New connection [11:43:43]New thread 3067170148 created [11:43:43]Thread 3067026788 joined [11:43:43]Waiting for new connection... [11:43:43] Sock 9.Parse request [11:43:43]Sock 9.Check first char [11:43:43]Sock 9.First char is OK [11:43:43]request: POST /json_proto HTTP/1.0 [11:43:43]Method: POST [11:43:43]URL: /json_proto [11:43:43]Method is POST - this is cgi request [11:43:43]url: /json_proto [11:43:43]query_string will be loaded in cgi processing [11:43:43]execute_cgi json_proto POST (null) [11:43:43]execute_cgi path=json_proto method=POST [11:43:43]POST find Content-Length [11:43:43]Host: 172.17.50.3:8080 [11:43:43]Content-Length: 675 [11:43:43]Content-Type: application/json [11:43:43] [11:43:43]POST finish read [11:43:43]Found Content-Length = 675 [11:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.140, "sum" : 5.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 5.00, "payments": [ { "type": 0, "sum" : 5.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:43]execute_script... [11:43: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)2885973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.140, "sum" : 5.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 5.00, "payments": [ { "type": 0, "sum" : 5.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:43]POST & json_proto [11:43:43]process_json_proto [11:43:43]json parsed OK: [11:43:43]protocol is kg_v1.0 [11:43:43]action value=close_receipt [11:43:43]process_action close_receipt [11:43:43]cmd_close_receipt [11:43:43]MH_GetDate [11:43:43]Write to MH i2c: F0 00 00 2A 5E 77 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: F0 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: F0 09 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: F0 09 00 2A 5E 00 F4 8F 17 67 6B 98 1E 66 08 [11:43:43]GetLastDocTimeStamp 1729597380 [11:43:43]current date 1729597428 [11:43:43]FM_GetShiftState [11:43:43]SAM_PROTO_GetShiftState [11:43:43]wFMCommunicate request_size=4 [11:43:43]MH_SAM_APDU [11:43:43]CAPDU: 80 13 01 00 [11:43:43]Write to MH i2c: E2 08 00 2B 5E 80 13 01 00 00 00 00 00 06 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:43]Read from MH i2c: E2 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 2B 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F4 [11:43:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:43:43]wFMCommunicate OK [11:43:43]SAM_PROTO_GetShiftState done [11:43:43]FM_GetShiftState done [11:43:43]opened in 1729555832 [11:43:43]opened+sec_in_day 1729642232 [11:43:43]quantity*price = 544 [11:43:43]sum+1 = 546 [11:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 5.00 Внесено: 500.00 СДАЧА: 495.00 НСП 1% : 0.05 НДС 12% : 0.58 Наличными: 5.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 153 22.10.2024 11:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70205 ФПД: 232259125104790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114348&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70205&fm=232259125104790&tin=02508201610067®Number=0000000000156251&sum=500 [11:43:44]StoreToDocumentArchive [11:43:44]shift 195 fd 70205 [11:43:44]save to /storage/0195/doc_00070205 [11:43:44]save last doc name /storage/0195/doc_00070205 to /storage/kkm_last_doc_name [11:43:44]save OK [11:43:44]Clear old archive folders... [11:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:43:44]tlvbuf is 011556B0 [11:43:44]SAM_PROTO_ClearQueue [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 09 00 00 [11:43:44]Write to MH i2c: E2 08 00 38 5E 80 09 00 00 00 00 00 00 08 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 38 5E 00 90 00 0A [11:43:44]RAPDU: 90 00 [11:43:44]wFMCommunicate OK [11:43:44]SAM_PROTO_ClearQueue done [11:43:44]KKMCreateOFDPacket [11:43:44]OFDProtocolAddRootSTLVToBuf [11:43:44]FM_MakeSignedData [11:43:44]FM_MakeSignedData [11:43:44]SAM_PROTO_SignData [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 0D 01 02 [11:43:44]Write to MH i2c: E2 08 00 39 5E 80 0D 01 02 00 00 00 00 10 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 39 5E 00 90 00 0B [11:43:45]RAPDU: 90 00 [11:43:45]wFMCommunicate OK [11:43:45]wFMCommunicate request_size=255 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 21 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 00 00 00 00 00 07 04 06 00 F4 01 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 F4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 12 01 00 35 04 06 00 D3 3D [11:43:45]Write to MH i2c: E2 02 01 3A 5E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 21 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 00 00 00 00 00 07 04 06 00 F4 01 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 F4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 12 01 00 35 04 06 00 D3 3D 00 00 98 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 03 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 03 00 3A 5E 00 90 00 0C [11:43:45]RAPDU: 90 00 [11:43:45]wFMCommunicate OK [11:43:45]wFMCommunicate request_size=9 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 0D 02 02 04 0A A5 D0 96 [11:43:45]Write to MH i2c: E2 0C 00 3B 5E 80 0D 02 02 04 00 0A A5 D0 96 00 00 30 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 03 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 03 00 3B 5E 00 90 00 0D [11:43:45]RAPDU: 90 00 [11:43:45]wFMCommunicate OK [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 0D 03 02 [11:43:45]Write to MH i2c: E2 08 00 3C 5E 80 0D 03 02 00 00 00 00 15 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0B 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0B 00 3C 5E 00 79 AB 1A 3C 53 84 99 A4 90 00 A4 [11:43:45]RAPDU: 79 AB 1A 3C 53 84 99 A4 90 00 [11:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_SignData done [11:43:45]FM_MakeSignedData done [11:43:45]CreateOFDProtocolMessage [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 11 00 00 [11:43:45]Write to MH i2c: E2 08 00 3D 5E 80 11 00 00 00 00 00 00 15 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 3D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [11:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:45]wFMCommunicate OK [11:43:45]CreateOFDProtocolMessage done [11:43:45]OFDSenderStorePacket 70205 [11:43:45]StoreOFDPacket docnum=70205 [11:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9B DF 06 01 BF 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 21 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 00 00 00 00 00 07 04 06 00 F4 01 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 F4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 12 01 00 35 04 06 00 D3 3D 0A A5 D0 96 79 AB 1A 3C 53 84 99 A4 [11:43:45]CheckFolder [11:43:45]dirname=/storage/ofd_packets [11:43:45]CheckFolder done [11:43:45]ProducePacketName [11:43:45]name=ofd_packets/00070205 [11:43:45]NVStorageSaveData ofd_packets/00070205 [11:43:45]File name is /storage/ofd_packets/00070205 [11:43:45]Write 300 bytes [11:43:45]NVStorageSaveData done [11:43:45]OFDSenderStorePacket done [11:43:45]KKMCreateOFDPacket done [11:43:45]NVStorageSaveData kkm_last_timestamp [11:43:45]File name is /storage/kkm_last_timestamp [11:43:45]Write 4 bytes [11:43:45]NVStorageSaveData done [11:43:45]ExternCall_PrintAddStr [11:43:45]wPrintStart [11:43:45]Write to MH i2c: 01 00 00 3E 5E 9C [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 3E 5E 00 00 00 00 00 FF 0F B1 [11:43:45]RasterBufferAndPrint [11:43:45]line Счет N : (1)2885973 [11:43:45]line ИНН: 02508201610067 [11:43:45]line Контрольно-Кассовый Чек [11:43:45]line ПРОДАЖА [11:43:45]line ТРК (МРК, ГНК) : 71 [11:43:45]line Товар: 2711129700 [11:43:45]line ГАЗ-К-3 [11:43:45]line 0.140 * 38.90 [11:43:45]line = 5.45 [11:43:45]line НДС 12% НСП 1% [11:43:45]line > о реализуемом товаре [11:43:45]line ОКРУГЛЕНИЕ: -0.45 [11:43:45]line ИТОГО: 5.00 [11:43:45]line Внесено: 500.00 [11:43:45]line СДАЧА: 495.00 [11:43:45]line НСП 1% : 0.05 [11:43:45]line НДС 12% : 0.58 [11:43:45]line Наличными: 5.00 [11:43:45]line Безнал.: 0.00 [11:43:45]line Место: АЗС № 85 "Партнер Нефть" [11:43:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:43:45]line СНО: Общий режим [11:43:45]line Чек 153 22.10.2024 11:43 [11:43:45]line Смена: 195 ФФД: 1.0 [11:43:45]line ЗНМ: 0300000167 [11:43:45]line РНМ: 0000000000156251 [11:43:45]line Версия ККМ: v1.0 [11:43:45]line ФМ: 0000000000963346 [11:43:45]line ФД: 70205 [11:43:45]line ФПД: 232259125104790 [11:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114348&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70205&fm=232259125104790&tin=02508201610067®Number=0000000000156251&sum=500 [11:43:45]OFD Sender: Processing packet 70205 [packets to send 18, broken 17] [11:43:45]ProducePacketName [11:43:45]name=ofd_packets/00070205 [11:43:45]OFD Sender: To server: pG, [11:43:45]CommunicateWithHost lk.salyk.kg:30040 [11:43:45]ConnectInit lk.salyk.kg [11:43:45]written 0, free lines is 4095 [11:43:45]Connected sock=10 [11: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 34 36 0E 01 00 00 9B DF 06 01 BF 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 21 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 00 00 00 00 00 07 04 06 00 F4 01 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 F4 8F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 12 01 00 35 04 06 00 D3 3D 0A A5 D0 96 79 AB 1A 3C 53 84 99 A4 [11:43: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 34 36 4F 00 00 00 CA 49 47 00 55 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 12 01 00 F4 03 04 00 95 39 17 67 B6 04 01 00 00 67 CD 5E B7 C2 E5 21 36 [11:43:46]CommunicateWithHost err = 0 [11:43:46]CheckOFDResponse [11:43:46]1017 (14) - 77093643461234 [11:43:46]1041 (16) - 0000000000963346 [11:43:46]1040 (4) - 70205 [11:43:46]1012 (4) - 22.10.2024 05:35 [11:43:46]1206 (1) - 0 [11:43:46]OFD Sender: Remove packet 70205 [11:43:46]ProducePacketName [11:43:46]name=ofd_packets/00070205 [11:43:46]NVStorageDeleteData [11:43:46]Write to MH i2c: 01 00 00 69 5E C7 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: 01 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: 01 07 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: 01 07 00 69 5E 00 00 00 00 00 D5 0C AF [11:43:46]RasterBufferAndPrint [11:43:46]line [11:43:46]line [11:43:46]line [11:43:46]line [11:43:46]line [11:43:46]written 0, free lines is 3294 [11:43:46]MH_Cut [11:43:46]Write to MH i2c: D1 01 00 70 5E 01 A0 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: D1 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: D1 01 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: D1 01 00 70 5E 00 9F [11:43:46]Write to MH i2c: 01 00 00 71 5E CF [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]OFD Sender: No OFD packet to send [11:43:46]*** Cut start [11:43:46]*** Partial cut [11:43:46]*** CUTSNS_PIN = 1 [11:43:46]*** CUTSNS_PIN = 0 [11:43:47]*** Brake cut motor [11:43:47]Read from MH i2c: 01 [11:43:47]MH_I2C_Read... [11:43:47]*** Stop cut motor [11:43:47]*** Cut end [11:43:47]Read from MH i2c: 01 07 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: 01 07 00 71 5E 00 00 00 00 00 FF 0F E4 [11:43:47]process_action close_receipt done [11:43:47]requested_data is exist [11:43:47]produce_requested_data [11:43:47]requested_item fm.sn is exist - process it [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 11 00 00 [11:43:47]Write to MH i2c: E2 08 00 72 5E 80 11 00 00 00 00 00 00 4A [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 17 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 17 00 72 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [11:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:47]wFMCommunicate OK [11:43:47]requested_item fd.num is exist - process it [11:43:47]SAM_PROTO_GetFieldsCounters [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 13 00 00 [11:43:47]Write to MH i2c: E2 08 00 73 5E 80 13 00 00 00 00 00 00 4D [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 62 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 12 01 00 0E 04 04 00 C3 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 46 [11: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 12 01 00 0E 04 04 00 C3 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 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_GetFieldsCounters done [11:43:47]requested_item shift.num is exist - process it [11:43:47]requested_item shift.opened is exist - process it [11:43:47]req_shift_opened [11:43:47]FM_GetShiftState [11:43:47]SAM_PROTO_GetShiftState [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 13 01 00 [11:43:47]Write to MH i2c: E2 08 00 74 5E 80 13 01 00 00 00 00 00 4F [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0E 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0E 00 74 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3D [11:43:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_GetShiftState done [11:43:47]FM_GetShiftState done [11:43:47]req_shift_opened done [11:43:47]requested_item shift.open_date is exist - process it [11:43:47]req_shift_open_date [11:43:47]req_shift_open_date done [11:43:47]produce_requested_data done [11:43:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70205,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:43:47]process_action_free close_receipt [11:43:47]json_value_free [11:43:47]json_value_free done [11:43:47]process_json_proto returns [11:43:47]Send response to host [11:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70205,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:43:47]free response buf [11:43:47]execute_script done [11:43:47]execute_script returns [11:43:47]free content buf [11:43:47]Sock 9.Close socket [11:43:47]Sock 9.Thread stoped [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:18]accept exits with 7 [11:45:18]New connection [11:45:18]New thread 3067026788 created [11:45:18]Thread 3067170148 joined [11:45:18]Waiting for new connection... [11:45:18] Sock 7.Parse request [11:45:18]Sock 7.Check first char [11:45:18]Sock 7.First char is OK [11:45:18]request: POST /json_proto HTTP/1.0 [11:45:18]Method: POST [11:45:18]URL: /json_proto [11:45:18]Method is POST - this is cgi request [11:45:18]url: /json_proto [11:45:18]query_string will be loaded in cgi processing [11:45:18]execute_cgi json_proto POST (null) [11:45:18]execute_cgi path=json_proto method=POST [11:45:18]POST find Content-Length [11:45:18]Host: 172.17.50.3:8080 [11:45:18]Content-Length: 678 [11:45:18]Content-Type: application/json [11:45:18] [11:45:18]POST finish read [11:45:18]Found Content-Length = 678 [11:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [11:45:18]execute_script... [11:45: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)2885974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [11:45:18]POST & json_proto [11:45:18]process_json_proto [11:45:18]json parsed OK: [11:45:18]protocol is kg_v1.0 [11:45:18]action value=close_receipt [11:45:18]process_action close_receipt [11:45:18]cmd_close_receipt [11:45:18]MH_GetDate [11:45:18]Write to MH i2c: F0 00 00 75 5E C2 [11:45:18]Write i2c OK [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 09 00 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 09 00 75 5E 00 53 90 17 67 6B 98 1E 66 B3 [11:45:18]GetLastDocTimeStamp 1729597428 [11:45:18]current date 1729597523 [11:45:18]FM_GetShiftState [11:45:18]SAM_PROTO_GetShiftState [11:45:18]wFMCommunicate request_size=4 [11:45:18]MH_SAM_APDU [11:45:18]CAPDU: 80 13 01 00 [11:45:18]Write to MH i2c: E2 08 00 76 5E 80 13 01 00 00 00 00 00 51 [11:45:18]Write i2c OK [11:45:18]MH_I2C_Read... [11:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:18]Read from MH i2c: E2 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: E2 0E 00 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: E2 0E 00 76 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3F [11:45:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:45:18]wFMCommunicate OK [11:45:18]SAM_PROTO_GetShiftState done [11:45:18]FM_GetShiftState done [11:45:18]opened in 1729555832 [11:45:18]opened+sec_in_day 1729642232 [11:45:18]quantity*price = 60009 [11:45:18]sum+1 = 60010 [11:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 154 22.10.2024 11:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70206 ФПД: 152467974378666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114523&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70206&fm=152467974378666&tin=02508201610067®Number=0000000000156251&sum=60000 [11:45:19]StoreToDocumentArchive [11:45:19]shift 195 fd 70206 [11:45:19]save to /storage/0195/doc_00070206 [11:45:19]save last doc name /storage/0195/doc_00070206 to /storage/kkm_last_doc_name [11:45:19]save OK [11:45:19]Clear old archive folders... [11:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:19]tlvbuf is 011D7970 [11:45:19]SAM_PROTO_ClearQueue [11:45:19]wFMCommunicate request_size=4 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 09 00 00 [11:45:19]Write to MH i2c: E2 08 00 83 5E 80 09 00 00 00 00 00 00 53 [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 83 5E 00 90 00 55 [11:45:19]RAPDU: 90 00 [11:45:19]wFMCommunicate OK [11:45:19]SAM_PROTO_ClearQueue done [11:45:19]KKMCreateOFDPacket [11:45:19]OFDProtocolAddRootSTLVToBuf [11:45:19]FM_MakeSignedData [11:45:19]FM_MakeSignedData [11:45:19]SAM_PROTO_SignData [11:45:19]wFMCommunicate request_size=4 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 0D 01 02 [11:45:19]Write to MH i2c: E2 08 00 84 5E 80 0D 01 02 00 00 00 00 5B [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 84 5E 00 90 00 56 [11:45:19]RAPDU: 90 00 [11:45:19]wFMCommunicate OK [11:45:19]wFMCommunicate request_size=255 [11:45:19]MH_SAM_APDU [11:45: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 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 9A 00 00 00 F4 03 04 00 53 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 12 01 00 35 04 06 00 8A [11:45:19]Write to MH i2c: E2 02 01 85 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 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 9A 00 00 00 F4 03 04 00 53 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 12 01 00 35 04 06 00 8A 00 00 5A [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 85 5E 00 90 00 57 [11:45:19]RAPDU: 90 00 [11:45:19]wFMCommunicate OK [11:45:19]wFMCommunicate request_size=10 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 0D 02 02 05 AB 37 73 D4 AA [11:45:19]Write to MH i2c: E2 0D 00 86 5E 80 0D 02 02 05 00 AB 37 73 D4 AA 00 00 3B [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 03 00 86 5E 00 90 00 58 [11:45:19]RAPDU: 90 00 [11:45:19]wFMCommunicate OK [11:45:19]wFMCommunicate request_size=4 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 0D 03 02 [11:45:19]Write to MH i2c: E2 08 00 87 5E 80 0D 03 02 00 00 00 00 60 [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 0B 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 0B 00 87 5E 00 72 79 E9 45 2E 11 C9 63 90 00 E5 [11:45:19]RAPDU: 72 79 E9 45 2E 11 C9 63 90 00 [11:45:19]wFMCommunicate OK [11:45:19]SAM_PROTO_SignData done [11:45:19]FM_MakeSignedData done [11:45:19]CreateOFDProtocolMessage [11:45:19]wFMCommunicate request_size=4 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 11 00 00 [11:45:19]Write to MH i2c: E2 08 00 88 5E 80 11 00 00 00 00 00 00 60 [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 17 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 17 00 88 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [11:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:45:19]wFMCommunicate OK [11:45:19]CreateOFDProtocolMessage done [11:45:19]OFDSenderStorePacket 70206 [11:45:19]StoreOFDPacket docnum=70206 [11:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 46 11 07 01 30 44 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 9A 00 00 00 F4 03 04 00 53 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 12 01 00 35 04 06 00 8A AB 37 73 D4 AA 72 79 E9 45 2E 11 C9 63 [11:45:19]CheckFolder [11:45:19]dirname=/storage/ofd_packets [11:45:19]CheckFolder done [11:45:19]ProducePacketName [11:45:19]name=ofd_packets/00070206 [11:45:19]NVStorageSaveData ofd_packets/00070206 [11:45:19]File name is /storage/ofd_packets/00070206 [11:45:19]Write 301 bytes [11:45:19]NVStorageSaveData done [11:45:19]OFDSenderStorePacket done [11:45:19]KKMCreateOFDPacket done [11:45:19]NVStorageSaveData kkm_last_timestamp [11:45:19]File name is /storage/kkm_last_timestamp [11:45:19]Write 4 bytes [11:45:19]NVStorageSaveData done [11:45:19]ExternCall_PrintAddStr [11:45:19]wPrintStart [11:45:19]Write to MH i2c: 01 00 00 89 5E E7 [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: 01 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: 01 07 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: 01 07 00 89 5E 00 00 00 00 00 FF 0F FC [11:45:19]RasterBufferAndPrint [11:45:19]line Счет N : (1)2885974 [11:45:19]line ИНН: 02508201610067 [11:45:19]line Контрольно-Кассовый Чек [11:45:19]line ПРОДАЖА [11:45:19]line ТРК (МРК, ГНК) : 12 [11:45:19]line Товар: 2710124130 [11:45:19]line Аи-92-К-5 [11:45:19]line 8.970 * 66.90 [11:45:19]line = 600.09 [11:45:19]line НДС 12% НСП 1% [11:45:19]line > о реализуемом товаре [11:45:19]line ОКРУГЛЕНИЕ: -0.09 [11:45:19]line ИТОГО: 600.00 [11:45:19]line Внесено: 600.00 [11:45:19]line СДАЧА: 0.00 [11:45:19]line НСП 1% : 5.31 [11:45:19]line НДС 12% : 63.73 [11:45:19]line Наличными: 600.00 [11:45:19]line Безнал.: 0.00 [11:45:19]line Место: АЗС № 85 "Партнер Нефть" [11:45:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:45:19]line СНО: Общий режим [11:45:19]line Чек 154 22.10.2024 11:45 [11:45:19]line Смена: 195 ФФД: 1.0 [11:45:19]line ЗНМ: 0300000167 [11:45:19]line РНМ: 0000000000156251 [11:45:19]line Версия ККМ: v1.0 [11:45:19]line ФМ: 0000000000963346 [11:45:19]line ФД: 70206 [11:45:19]line ФПД: 152467974378666 [11:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114523&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70206&fm=152467974378666&tin=02508201610067®Number=0000000000156251&sum=60000 [11:45:20]OFD Sender: Processing packet 70206 [packets to send 18, broken 17] [11:45:20]ProducePacketName [11:45:20]name=ofd_packets/00070206 [11:45:20]OFD Sender: To server: pG, [11:45:20]CommunicateWithHost lk.salyk.kg:30040 [11:45:20]ConnectInit lk.salyk.kg [11:45:20]written 0, free lines is 4095 [11:45:20]Connected sock=10 [11:45: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 34 36 0F 01 00 00 46 11 07 01 30 44 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 9A 00 00 00 F4 03 04 00 53 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 12 01 00 35 04 06 00 8A AB 37 73 D4 AA 72 79 E9 45 2E 11 C9 63 [11:45: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 34 36 4F 00 00 00 13 3F 47 00 D5 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 12 01 00 F4 03 04 00 F4 39 17 67 B6 04 01 00 00 4F E5 C4 77 93 7A F9 B8 [11:45:20]CommunicateWithHost err = 0 [11:45:20]CheckOFDResponse [11:45:20]1017 (14) - 77093643461234 [11:45:20]1041 (16) - 0000000000963346 [11:45:20]1040 (4) - 70206 [11:45:20]1012 (4) - 22.10.2024 05:36 [11:45:20]1206 (1) - 0 [11:45:20]OFD Sender: Remove packet 70206 [11:45:20]ProducePacketName [11:45:20]name=ofd_packets/00070206 [11:45:20]NVStorageDeleteData [11:45:20]Write to MH i2c: 01 00 00 B4 5E 12 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 07 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 07 00 B4 5E 00 00 00 00 00 E4 0C 09 [11:45:20]RasterBufferAndPrint [11:45:20]line [11:45:20]line [11:45:20]line [11:45:20]line [11:45:20]line [11:45:20]written 0, free lines is 3306 [11:45:20]MH_Cut [11:45:20]Write to MH i2c: D1 01 00 BB 5E 01 EB [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: D1 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: D1 01 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: D1 01 00 BB 5E 00 EA [11:45:20]Write to MH i2c: 01 00 00 BC 5E 1A [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:21]OFD Sender: No OFD packet to send [11:45:21]*** Cut start [11:45:21]*** Partial cut [11:45:21]*** CUTSNS_PIN = 1 [11:45:21]*** CUTSNS_PIN = 0 [11:45:21]*** Brake cut motor [11:45:22]Read from MH i2c: 01 [11:45:22]MH_I2C_Read... [11:45:22]*** Stop cut motor [11:45:22]*** Cut end [11:45:22]Read from MH i2c: 01 07 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: 01 07 00 BC 5E 00 00 00 00 00 FF 0F 2F [11:45:22]process_action close_receipt done [11:45:22]requested_data is exist [11:45:22]produce_requested_data [11:45:22]requested_item fm.sn is exist - process it [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 11 00 00 [11:45:22]Write to MH i2c: E2 08 00 BD 5E 80 11 00 00 00 00 00 00 95 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 BD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [11:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:45:22]wFMCommunicate OK [11:45:22]requested_item fd.num is exist - process it [11:45:22]SAM_PROTO_GetFieldsCounters [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 13 00 00 [11:45:22]Write to MH i2c: E2 08 00 BE 5E 80 13 00 00 00 00 00 00 98 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 62 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 62 00 BE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 12 01 00 0E 04 04 00 C3 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 95 [11:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 12 01 00 0E 04 04 00 C3 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 [11:45:22]wFMCommunicate OK [11:45:22]SAM_PROTO_GetFieldsCounters done [11:45:22]requested_item shift.num is exist - process it [11:45:22]requested_item shift.opened is exist - process it [11:45:22]req_shift_opened [11:45:22]FM_GetShiftState [11:45:22]SAM_PROTO_GetShiftState [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 13 01 00 [11:45:22]Write to MH i2c: E2 08 00 BF 5E 80 13 01 00 00 00 00 00 9A [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0E 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0E 00 BF 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 88 [11:45:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:45:22]wFMCommunicate OK [11:45:22]SAM_PROTO_GetShiftState done [11:45:22]FM_GetShiftState done [11:45:22]req_shift_opened done [11:45:22]requested_item shift.open_date is exist - process it [11:45:22]req_shift_open_date [11:45:22]req_shift_open_date done [11:45:22]produce_requested_data done [11:45:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70206,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:45:22]process_action_free close_receipt [11:45:22]json_value_free [11:45:22]json_value_free done [11:45:22]process_json_proto returns [11:45:22]Send response to host [11:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70206,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:45:22]free response buf [11:45:22]execute_script done [11:45:22]execute_script returns [11:45:22]free content buf [11:45:22]Sock 7.Close socket [11:45:22]Sock 7.Thread stoped [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:34]accept exits with 9 [11:46:34]New connection [11:46:34]New thread 3067170148 created [11:46:34]Thread 3067026788 joined [11:46:34]Waiting for new connection... [11:46:34] Sock 9.Parse request [11:46:34]Sock 9.Check first char [11:46:34]Sock 9.First char is OK [11:46:34]request: POST /json_proto HTTP/1.0 [11:46:34]Method: POST [11:46:34]URL: /json_proto [11:46:34]Method is POST - this is cgi request [11:46:34]url: /json_proto [11:46:34]query_string will be loaded in cgi processing [11:46:34]execute_cgi json_proto POST (null) [11:46:34]execute_cgi path=json_proto method=POST [11:46:34]POST find Content-Length [11:46:34]Host: 172.17.50.3:8080 [11:46:34]Content-Length: 643 [11:46:34]Content-Type: application/json [11:46:34] [11:46:34]POST finish read [11:46:34]Found Content-Length = 643 [11:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:34]execute_script... [11: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 : (1)2885977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:34]POST & json_proto [11:46:34]process_json_proto [11:46:34]json parsed OK: [11:46:34]protocol is kg_v1.0 [11:46:34]action value=close_receipt [11:46:34]process_action close_receipt [11:46:34]cmd_close_receipt [11:46:34]MH_GetDate [11:46:34]Write to MH i2c: F0 00 00 C0 5E 0D [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: F0 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: F0 09 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: F0 09 00 C0 5E 00 9F 90 17 67 6B 98 1E 66 4A [11:46:34]GetLastDocTimeStamp 1729597523 [11:46:34]current date 1729597599 [11:46:34]FM_GetShiftState [11:46:34]SAM_PROTO_GetShiftState [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 13 01 00 [11:46:34]Write to MH i2c: E2 08 00 C1 5E 80 13 01 00 00 00 00 00 9C [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0E 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0E 00 C1 5E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8A [11:46:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:46:34]wFMCommunicate OK [11:46:34]SAM_PROTO_GetShiftState done [11:46:34]FM_GetShiftState done [11:46:34]opened in 1729555832 [11:46:34]opened+sec_in_day 1729642232 [11:46:34]quantity*price = 371000 [11:46:34]sum+1 = 371001 [11:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3710.00 НСП 1% : 32.83 НДС 12% : 393.98 Наличными: 3710.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 155 22.10.2024 11:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70207 ФПД: 84910689621517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70207&fm=84910689621517&tin=02508201610067®Number=0000000000156251&sum=371000 [11:46:35]StoreToDocumentArchive [11:46:35]shift 195 fd 70207 [11:46:35]save to /storage/0195/doc_00070207 [11:46:35]save last doc name /storage/0195/doc_00070207 to /storage/kkm_last_doc_name [11:46:35]save OK [11:46:35]Clear old archive folders... [11:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:35]tlvbuf is 011D7650 [11:46:35]SAM_PROTO_ClearQueue [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 09 00 00 [11:46:35]Write to MH i2c: E2 08 00 CE 5E 80 09 00 00 00 00 00 00 9E [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 CE 5E 00 90 00 A0 [11:46:35]RAPDU: 90 00 [11:46:35]wFMCommunicate OK [11:46:35]SAM_PROTO_ClearQueue done [11:46:35]KKMCreateOFDPacket [11:46:35]OFDProtocolAddRootSTLVToBuf [11:46:35]FM_MakeSignedData [11:46:35]FM_MakeSignedData [11:46:35]SAM_PROTO_SignData [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 0D 01 02 [11:46:35]Write to MH i2c: E2 08 00 CF 5E 80 0D 01 02 00 00 00 00 A6 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 CF 5E 00 90 00 A1 [11:46:35]RAPDU: 90 00 [11:46:35]wFMCommunicate OK [11:46:35]wFMCommunicate request_size=255 [11:46:35]MH_SAM_APDU [11:46:35]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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 9F 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 12 01 00 35 04 06 00 4D [11:46:35]Write to MH i2c: E2 02 01 D0 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 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 9F 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 12 01 00 35 04 06 00 4D 00 00 93 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 D0 5E 00 90 00 A2 [11:46:35]RAPDU: 90 00 [11:46:35]wFMCommunicate OK [11:46:35]wFMCommunicate request_size=10 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 0D 02 02 05 39 CF 7E 16 0D [11:46:35]Write to MH i2c: E2 0D 00 D1 5E 80 0D 02 02 05 00 39 CF 7E 16 0D 00 00 5C [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 03 00 D1 5E 00 90 00 A3 [11:46:35]RAPDU: 90 00 [11:46:35]wFMCommunicate OK [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 0D 03 02 [11:46:35]Write to MH i2c: E2 08 00 D2 5E 80 0D 03 02 00 00 00 00 AB [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 0B 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 0B 00 D2 5E 00 28 B2 0C 74 B7 55 9C F0 90 00 9E [11:46:35]RAPDU: 28 B2 0C 74 B7 55 9C F0 90 00 [11:46:35]wFMCommunicate OK [11:46:35]SAM_PROTO_SignData done [11:46:35]FM_MakeSignedData done [11:46:35]CreateOFDProtocolMessage [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 11 00 00 [11:46:35]Write to MH i2c: E2 08 00 D3 5E 80 11 00 00 00 00 00 00 AB [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 D3 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [11:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:35]wFMCommunicate OK [11:46:35]CreateOFDProtocolMessage done [11:46:35]OFDSenderStorePacket 70207 [11:46:35]StoreOFDPacket docnum=70207 [11:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 30 07 01 0A 4A 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 9F 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 12 01 00 35 04 06 00 4D 39 CF 7E 16 0D 28 B2 0C 74 B7 55 9C F0 [11:46:35]CheckFolder [11:46:35]dirname=/storage/ofd_packets [11:46:35]CheckFolder done [11:46:35]ProducePacketName [11:46:35]name=ofd_packets/00070207 [11:46:35]NVStorageSaveData ofd_packets/00070207 [11:46:35]File name is /storage/ofd_packets/00070207 [11:46:35]Write 301 bytes [11:46:35]NVStorageSaveData done [11:46:35]OFDSenderStorePacket done [11:46:35]KKMCreateOFDPacket done [11:46:35]NVStorageSaveData kkm_last_timestamp [11:46:35]File name is /storage/kkm_last_timestamp [11:46:35]Write 4 bytes [11:46:35]NVStorageSaveData done [11:46:35]ExternCall_PrintAddStr [11:46:35]wPrintStart [11:46:35]Write to MH i2c: 01 00 00 D4 5E 32 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 D4 5E 00 00 00 00 00 FF 0F 47 [11:46:35]RasterBufferAndPrint [11:46:35]line Счет N : (1)2885977 [11:46:35]line ИНН: 02508201610067 [11:46:35]line Контрольно-Кассовый Чек [11:46:35]line ПРОДАЖА [11:46:35]line ТРК (МРК, ГНК) : 33 [11:46:35]line Товар: 2710124500 [11:46:35]line Аи-95-К-5 [11:46:35]line 50.000 * 74.20 [11:46:35]line = 3710.00 [11:46:35]line НДС 12% НСП 1% [11:46:35]line > о реализуемом товаре [11:46:35]line ИТОГО: 3710.00 [11:46:35]line НСП 1% : 32.83 [11:46:35]line НДС 12% : 393.98 [11:46:35]line Наличными: 3710.00 [11:46:35]line Безнал.: 0.00 [11:46:35]line Место: АЗС № 85 "Партнер Нефть" [11:46:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:35]line СНО: Общий режим [11:46:35]line Чек 155 22.10.2024 11:46 [11:46:35]line Смена: 195 ФФД: 1.0 [11:46:35]line ЗНМ: 0300000167 [11:46:35]line РНМ: 0000000000156251 [11:46:35]line Версия ККМ: v1.0 [11:46:35]line ФМ: 0000000000963346 [11:46:35]line ФД: 70207 [11:46:35]line ФПД: 84910689621517 [11:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70207&fm=84910689621517&tin=02508201610067®Number=0000000000156251&sum=371000 [11:46:36]OFD Sender: Processing packet 70207 [packets to send 18, broken 17] [11:46:36]ProducePacketName [11:46:36]name=ofd_packets/00070207 [11:46:36]OFD Sender: To server: pG, [11:46:36]CommunicateWithHost lk.salyk.kg:30040 [11:46:36]ConnectInit lk.salyk.kg [11:46:36]written 0, free lines is 4095 [11:46:36]Connected sock=10 [11:46: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 34 36 0F 01 00 00 1A 30 07 01 0A 4A 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 9F 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 12 01 00 35 04 06 00 4D 39 CF 7E 16 0D 28 B2 0C 74 B7 55 9C F0 [11:46: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 34 36 4F 00 00 00 9F BA 47 00 72 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 34 36 10 04 04 00 3F 12 01 00 F4 03 04 00 40 3A 17 67 B6 04 01 00 00 70 B0 6A DF 5A 8A 4B 84 [11:46:36]CommunicateWithHost err = 0 [11:46:36]CheckOFDResponse [11:46:36]1017 (14) - 77093643461234 [11:46:36]1041 (16) - 0000000000963346 [11:46:36]1040 (4) - 70207 [11:46:36]1012 (4) - 22.10.2024 05:38 [11:46:36]1206 (1) - 0 [11:46:36]OFD Sender: Remove packet 70207 [11:46:36]ProducePacketName [11:46:36]name=ofd_packets/00070207 [11:46:36]NVStorageDeleteData [11:46:36]Write to MH i2c: 01 00 00 FC 5E 5A [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: 01 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: 01 07 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: 01 07 00 FC 5E 00 00 00 00 00 2A 0D 98 [11:46:36]RasterBufferAndPrint [11:46:36]line [11:46:36]line [11:46:36]line [11:46:36]line [11:46:36]line [11:46:36]written 0, free lines is 3376 [11:46:36]MH_Cut [11:46:36]Write to MH i2c: D1 01 00 03 5F 01 34 [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: D1 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: D1 01 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: D1 01 00 03 5F 00 33 [11:46:36]Write to MH i2c: 01 00 00 04 5F 63 [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]OFD Sender: No OFD packet to send [11:46:37]*** Cut start [11:46:37]*** Partial cut [11:46:37]*** CUTSNS_PIN = 1 [11:46:37]*** CUTSNS_PIN = 0 [11:46:37]*** Brake cut motor [11:46:37]Read from MH i2c: 01 [11:46:37]MH_I2C_Read... [11:46:37]*** Stop cut motor [11:46:37]*** Cut end [11:46:37]Read from MH i2c: 01 07 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: 01 07 00 04 5F 00 00 00 00 00 FF 0F 78 [11:46:37]process_action close_receipt done [11:46:37]requested_data is exist [11:46:37]produce_requested_data [11:46:37]requested_item fm.sn is exist - process it [11:46:37]wFMCommunicate request_size=4 [11:46:37]MH_SAM_APDU [11:46:37]CAPDU: 80 11 00 00 [11:46:37]Write to MH i2c: E2 08 00 05 5F 80 11 00 00 00 00 00 00 DE [11:46:37]Write i2c OK [11:46:37]MH_I2C_Read... [11:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:37]Read from MH i2c: E2 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 17 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 17 00 05 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [11:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:37]wFMCommunicate OK [11:46:37]requested_item fd.num is exist - process it [11:46:37]SAM_PROTO_GetFieldsCounters [11:46:37]wFMCommunicate request_size=4 [11:46:37]MH_SAM_APDU [11:46:37]CAPDU: 80 13 00 00 [11:46:37]Write to MH i2c: E2 08 00 06 5F 80 13 00 00 00 00 00 00 E1 [11:46:37]Write i2c OK [11:46:37]MH_I2C_Read... [11:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:38]Read from MH i2c: E2 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 62 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 62 00 06 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 12 01 00 0E 04 04 00 C3 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 E2 [11:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 12 01 00 0E 04 04 00 C3 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 [11:46:38]wFMCommunicate OK [11:46:38]SAM_PROTO_GetFieldsCounters done [11:46:38]requested_item shift.num is exist - process it [11:46:38]requested_item shift.opened is exist - process it [11:46:38]req_shift_opened [11:46:38]FM_GetShiftState [11:46:38]SAM_PROTO_GetShiftState [11:46:38]wFMCommunicate request_size=4 [11:46:38]MH_SAM_APDU [11:46:38]CAPDU: 80 13 01 00 [11:46:38]Write to MH i2c: E2 08 00 07 5F 80 13 01 00 00 00 00 00 E3 [11:46:38]Write i2c OK [11:46:38]MH_I2C_Read... [11:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:38]Read from MH i2c: E2 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 07 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D1 [11:46:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:46:38]wFMCommunicate OK [11:46:38]SAM_PROTO_GetShiftState done [11:46:38]FM_GetShiftState done [11:46:38]req_shift_opened done [11:46:38]requested_item shift.open_date is exist - process it [11:46:38]req_shift_open_date [11:46:38]req_shift_open_date done [11:46:38]produce_requested_data done [11:46:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70207,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:46:38]process_action_free close_receipt [11:46:38]json_value_free [11:46:38]json_value_free done [11:46:38]process_json_proto returns [11:46:38]Send response to host [11:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70207,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:46:38]free response buf [11:46:38]execute_script done [11:46:38]execute_script returns [11:46:38]free content buf [11:46:38]Sock 9.Close socket [11:46:38]Sock 9.Thread stoped [11:46:39]accept exits with 7 [11:46:39]New connection [11:46:39]New thread 3067026788 created [11:46:39]Thread 3067170148 joined [11:46:39]Waiting for new connection... [11:46:39] Sock 7.Parse request [11:46:39]Sock 7.Check first char [11:46:39]Sock 7.First char is OK [11:46:39]request: POST /json_proto HTTP/1.0 [11:46:39]Method: POST [11:46:39]URL: /json_proto [11:46:39]Method is POST - this is cgi request [11:46:39]url: /json_proto [11:46:39]query_string will be loaded in cgi processing [11:46:39]execute_cgi json_proto POST (null) [11:46:39]execute_cgi path=json_proto method=POST [11:46:39]POST find Content-Length [11:46:39]Host: 172.17.50.3:8080 [11:46:39]Content-Length: 678 [11:46:39]Content-Type: application/json [11:46:39] [11:46:39]POST finish read [11:46:39]Found Content-Length = 678 [11:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [11:46:39]execute_script... [11:46: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)2885975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [11:46:39]POST & json_proto [11:46:39]process_json_proto [11:46:39]json parsed OK: [11:46:39]protocol is kg_v1.0 [11:46:39]action value=close_receipt [11:46:39]process_action close_receipt [11:46:39]cmd_close_receipt [11:46:39]MH_GetDate [11:46:39]Write to MH i2c: F0 00 00 08 5F 56 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: F0 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: F0 09 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: F0 09 00 08 5F 00 A4 90 17 67 6B 98 1E 66 98 [11:46:39]GetLastDocTimeStamp 1729597599 [11:46:39]current date 1729597604 [11:46:39]FM_GetShiftState [11:46:39]SAM_PROTO_GetShiftState [11:46:39]wFMCommunicate request_size=4 [11:46:39]MH_SAM_APDU [11:46:39]CAPDU: 80 13 01 00 [11:46:39]Write to MH i2c: E2 08 00 09 5F 80 13 01 00 00 00 00 00 E5 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:39]Read from MH i2c: E2 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 0E 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 0E 00 09 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D3 [11:46:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:46:39]wFMCommunicate OK [11:46:39]SAM_PROTO_GetShiftState done [11:46:39]FM_GetShiftState done [11:46:39]opened in 1729555832 [11:46:39]opened+sec_in_day 1729642232 [11:46:39]quantity*price = 60009 [11:46:39]sum+1 = 60010 [11:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 156 22.10.2024 11:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70208 ФПД: 88954195724373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70208&fm=88954195724373&tin=02508201610067®Number=0000000000156251&sum=60000 [11:46:40]StoreToDocumentArchive [11:46:40]shift 195 fd 70208 [11:46:40]save to /storage/0195/doc_00070208 [11:46:40]save last doc name /storage/0195/doc_00070208 to /storage/kkm_last_doc_name [11:46:40]save OK [11:46:40]Clear old archive folders... [11:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:40]tlvbuf is 012B19A0 [11:46:40]SAM_PROTO_ClearQueue [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 09 00 00 [11:46:40]Write to MH i2c: E2 08 00 16 5F 80 09 00 00 00 00 00 00 E7 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 16 5F 00 90 00 E9 [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]SAM_PROTO_ClearQueue done [11:46:40]KKMCreateOFDPacket [11:46:40]OFDProtocolAddRootSTLVToBuf [11:46:40]FM_MakeSignedData [11:46:40]FM_MakeSignedData [11:46:40]SAM_PROTO_SignData [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 0D 01 02 [11:46:40]Write to MH i2c: E2 08 00 17 5F 80 0D 01 02 00 00 00 00 EF [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 17 5F 00 90 00 EA [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]wFMCommunicate request_size=255 [11:46:40]MH_SAM_APDU [11:46: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 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 9C 00 00 00 F4 03 04 00 A4 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 12 01 00 35 04 06 00 50 [11:46:40]Write to MH i2c: E2 02 01 18 5F 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 9C 00 00 00 F4 03 04 00 A4 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 12 01 00 35 04 06 00 50 00 00 09 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:41]Read from MH i2c: E2 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 03 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 03 00 18 5F 00 90 00 EB [11:46:41]RAPDU: 90 00 [11:46:41]wFMCommunicate OK [11:46:41]wFMCommunicate request_size=10 [11:46:41]MH_SAM_APDU [11:46:41]CAPDU: 80 0D 02 02 05 E7 43 3C C8 55 [11:46:41]Write to MH i2c: E2 0D 00 19 5F 80 0D 02 02 05 00 E7 43 3C C8 55 00 00 7F [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:41]Read from MH i2c: E2 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 03 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 03 00 19 5F 00 90 00 EC [11:46:41]RAPDU: 90 00 [11:46:41]wFMCommunicate OK [11:46:41]wFMCommunicate request_size=4 [11:46:41]MH_SAM_APDU [11:46:41]CAPDU: 80 0D 03 02 [11:46:41]Write to MH i2c: E2 08 00 1A 5F 80 0D 03 02 00 00 00 00 F4 [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:41]Read from MH i2c: E2 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 0B 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 0B 00 1A 5F 00 8E F8 12 0B 98 B2 21 B9 90 00 BC [11:46:41]RAPDU: 8E F8 12 0B 98 B2 21 B9 90 00 [11:46:41]wFMCommunicate OK [11:46:41]SAM_PROTO_SignData done [11:46:41]FM_MakeSignedData done [11:46:41]CreateOFDProtocolMessage [11:46:41]wFMCommunicate request_size=4 [11:46:41]MH_SAM_APDU [11:46:41]CAPDU: 80 11 00 00 [11:46:41]Write to MH i2c: E2 08 00 1B 5F 80 11 00 00 00 00 00 00 F4 [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:41]Read from MH i2c: E2 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 17 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: E2 17 00 1B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [11:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:41]wFMCommunicate OK [11:46:41]CreateOFDProtocolMessage done [11:46:41]OFDSenderStorePacket 70208 [11:46:41]StoreOFDPacket docnum=70208 [11:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BC FC 07 01 6F 27 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 9C 00 00 00 F4 03 04 00 A4 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 12 01 00 35 04 06 00 50 E7 43 3C C8 55 8E F8 12 0B 98 B2 21 B9 [11:46:41]CheckFolder [11:46:41]dirname=/storage/ofd_packets [11:46:41]CheckFolder done [11:46:41]ProducePacketName [11:46:41]name=ofd_packets/00070208 [11:46:41]NVStorageSaveData ofd_packets/00070208 [11:46:41]File name is /storage/ofd_packets/00070208 [11:46:41]Write 301 bytes [11:46:41]NVStorageSaveData done [11:46:41]OFDSenderStorePacket done [11:46:41]KKMCreateOFDPacket done [11:46:41]NVStorageSaveData kkm_last_timestamp [11:46:41]File name is /storage/kkm_last_timestamp [11:46:41]Write 4 bytes [11:46:41]NVStorageSaveData done [11:46:41]ExternCall_PrintAddStr [11:46:41]wPrintStart [11:46:41]Write to MH i2c: 01 00 00 1C 5F 7B [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 1C 5F 00 00 00 00 00 FF 0F 90 [11:46:41]RasterBufferAndPrint [11:46:41]line Счет N : (1)2885975 [11:46:41]line ИНН: 02508201610067 [11:46:41]line Контрольно-Кассовый Чек [11:46:41]line ПРОДАЖА [11:46:41]line ТРК (МРК, ГНК) : 42 [11:46:41]line Товар: 2710124130 [11:46:41]line Аи-92-К-5 [11:46:41]line 8.970 * 66.90 [11:46:41]line = 600.09 [11:46:41]line НДС 12% НСП 1% [11:46:41]line > о реализуемом товаре [11:46:41]line ОКРУГЛЕНИЕ: -0.09 [11:46:41]line ИТОГО: 600.00 [11:46:41]line Внесено: 600.00 [11:46:41]line СДАЧА: 0.00 [11:46:41]line НСП 1% : 5.31 [11:46:41]line НДС 12% : 63.73 [11:46:41]line Наличными: 600.00 [11:46:41]line Безнал.: 0.00 [11:46:41]line Место: АЗС № 85 "Партнер Нефть" [11:46:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:41]line СНО: Общий режим [11:46:41]line Чек 156 22.10.2024 11:46 [11:46:41]line Смена: 195 ФФД: 1.0 [11:46:41]line ЗНМ: 0300000167 [11:46:41]line РНМ: 0000000000156251 [11:46:41]line Версия ККМ: v1.0 [11:46:41]line ФМ: 0000000000963346 [11:46:41]line ФД: 70208 [11:46:41]line ФПД: 88954195724373 [11:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70208&fm=88954195724373&tin=02508201610067®Number=0000000000156251&sum=60000 [11:46:41]written 0, free lines is 4095 [11:46:41]OFD Sender: Processing packet 70208 [packets to send 18, broken 17] [11:46:41]ProducePacketName [11:46:41]name=ofd_packets/00070208 [11:46:41]OFD Sender: To server: pG, [11:46:41]CommunicateWithHost lk.salyk.kg:30040 [11:46:41]ConnectInit lk.salyk.kg [11:46:41]Connected sock=10 [11:46: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 34 36 0F 01 00 00 BC FC 07 01 6F 27 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 9C 00 00 00 F4 03 04 00 A4 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 12 01 00 35 04 06 00 50 E7 43 3C C8 55 8E F8 12 0B 98 B2 21 B9 [11:46: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 34 36 4F 00 00 00 EB 23 47 00 D1 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 12 01 00 F4 03 04 00 45 3A 17 67 B6 04 01 00 00 42 FE A7 E0 D1 B6 27 80 [11:46:41]CommunicateWithHost err = 0 [11:46:41]CheckOFDResponse [11:46:41]1017 (14) - 77093643461234 [11:46:41]1041 (16) - 0000000000963346 [11:46:41]1040 (4) - 70208 [11:46:41]1012 (4) - 22.10.2024 05:38 [11:46:41]1206 (1) - 0 [11:46:41]OFD Sender: Remove packet 70208 [11:46:41]ProducePacketName [11:46:41]name=ofd_packets/00070208 [11:46:41]NVStorageDeleteData [11:46:41]Write to MH i2c: 01 00 00 47 5F A6 [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 47 5F 00 00 00 00 00 00 0D BA [11:46:41]RasterBufferAndPrint [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]written 0, free lines is 3339 [11:46:41]MH_Cut [11:46:41]Write to MH i2c: D1 01 00 4E 5F 01 7F [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 01 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 01 00 4E 5F 00 7E [11:46:41]Write to MH i2c: 01 00 00 4F 5F AE [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:42]OFD Sender: No OFD packet to send [11:46:42]*** Cut start [11:46:42]*** Partial cut [11:46:42]*** CUTSNS_PIN = 1 [11:46:42]*** CUTSNS_PIN = 0 [11:46:42]*** Brake cut motor [11:46:43]Read from MH i2c: 01 [11:46:43]MH_I2C_Read... [11:46:43]*** Stop cut motor [11:46:43]*** Cut end [11:46:43]Read from MH i2c: 01 07 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 4F 5F 00 00 00 00 00 FF 0F C3 [11:46:43]process_action close_receipt done [11:46:43]requested_data is exist [11:46:43]produce_requested_data [11:46:43]requested_item fm.sn is exist - process it [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 11 00 00 [11:46:43]Write to MH i2c: E2 08 00 50 5F 80 11 00 00 00 00 00 00 29 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 17 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 17 00 50 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [11:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:43]wFMCommunicate OK [11:46:43]requested_item fd.num is exist - process it [11:46:43]SAM_PROTO_GetFieldsCounters [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 13 00 00 [11:46:43]Write to MH i2c: E2 08 00 51 5F 80 13 00 00 00 00 00 00 2C [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 62 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 62 00 51 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 12 01 00 0E 04 04 00 C3 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 31 [11:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 12 01 00 0E 04 04 00 C3 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 [11:46:43]wFMCommunicate OK [11:46:43]SAM_PROTO_GetFieldsCounters done [11:46:43]requested_item shift.num is exist - process it [11:46:43]requested_item shift.opened is exist - process it [11:46:43]req_shift_opened [11:46:43]FM_GetShiftState [11:46:43]SAM_PROTO_GetShiftState [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 13 01 00 [11:46:43]Write to MH i2c: E2 08 00 52 5F 80 13 01 00 00 00 00 00 2E [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:43]Read from MH i2c: E2 0E 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 0E 00 52 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1C [11:46:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:46:43]wFMCommunicate OK [11:46:43]SAM_PROTO_GetShiftState done [11:46:43]FM_GetShiftState done [11:46:43]req_shift_opened done [11:46:43]requested_item shift.open_date is exist - process it [11:46:43]req_shift_open_date [11:46:43]req_shift_open_date done [11:46:43]produce_requested_data done [11:46:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70208,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:46:43]process_action_free close_receipt [11:46:43]json_value_free [11:46:43]json_value_free done [11:46:43]process_json_proto returns [11:46:43]Send response to host [11:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70208,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:46:43]free response buf [11:46:43]execute_script done [11:46:43]execute_script returns [11:46:43]free content buf [11:46:43]Sock 7.Close socket [11:46:43]Sock 7.Thread stoped [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]accept exits with 9 [11:47:12]New connection [11:47:12]New thread 3067170148 created [11:47:12]Thread 3067026788 joined [11:47:12]Waiting for new connection... [11:47:12] Sock 9.Parse request [11:47:12]Sock 9.Check first char [11:47:12]Sock 9.First char is OK [11:47:12]request: POST /json_proto HTTP/1.0 [11:47:12]Method: POST [11:47:12]URL: /json_proto [11:47:12]Method is POST - this is cgi request [11:47:12]url: /json_proto [11:47:12]query_string will be loaded in cgi processing [11:47:12]execute_cgi json_proto POST (null) [11:47:12]execute_cgi path=json_proto method=POST [11:47:12]POST find Content-Length [11:47:12]Host: 172.17.50.3:8080 [11:47:12]Content-Length: 683 [11:47:12]Content-Type: application/json [11:47:12] [11:47:12]POST finish read [11:47:12]Found Content-Length = 683 [11:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [11:47:12]execute_script... [11:47: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 : (1)2885976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [11:47:12]POST & json_proto [11:47:12]process_json_proto [11:47:12]json parsed OK: [11:47:12]protocol is kg_v1.0 [11:47:12]action value=close_receipt [11:47:12]process_action close_receipt [11:47:12]cmd_close_receipt [11:47:12]MH_GetDate [11:47:12]Write to MH i2c: F0 00 00 53 5F A1 [11:47:12]Write i2c OK [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: F0 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: F0 09 00 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: F0 09 00 53 5F 00 C5 90 17 67 6B 98 1E 66 04 [11:47:12]GetLastDocTimeStamp 1729597604 [11:47:12]current date 1729597637 [11:47:12]FM_GetShiftState [11:47:12]SAM_PROTO_GetShiftState [11:47:12]wFMCommunicate request_size=4 [11:47:12]MH_SAM_APDU [11:47:12]CAPDU: 80 13 01 00 [11:47:12]Write to MH i2c: E2 08 00 54 5F 80 13 01 00 00 00 00 00 30 [11:47:12]Write i2c OK [11:47:12]MH_I2C_Read... [11:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:12]Read from MH i2c: E2 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: E2 0E 00 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: E2 0E 00 54 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1E [11:47:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:47:12]wFMCommunicate OK [11:47:12]SAM_PROTO_GetShiftState done [11:47:12]FM_GetShiftState done [11:47:12]opened in 1729555832 [11:47:12]opened+sec_in_day 1729642232 [11:47:12]quantity*price = 100015 [11:47:12]sum+1 = 100017 [11:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 157 22.10.2024 11:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70209 ФПД: 214912719877560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70209&fm=214912719877560&tin=02508201610067®Number=0000000000156251&sum=100000 [11:47:13]StoreToDocumentArchive [11:47:13]shift 195 fd 70209 [11:47:13]save to /storage/0195/doc_00070209 [11:47:13]save last doc name /storage/0195/doc_00070209 to /storage/kkm_last_doc_name [11:47:13]save OK [11:47:13]Clear old archive folders... [11:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:13]tlvbuf is 01123450 [11:47:13]SAM_PROTO_ClearQueue [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 09 00 00 [11:47:13]Write to MH i2c: E2 08 00 61 5F 80 09 00 00 00 00 00 00 32 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 61 5F 00 90 00 34 [11:47:13]RAPDU: 90 00 [11:47:13]wFMCommunicate OK [11:47:13]SAM_PROTO_ClearQueue done [11:47:13]KKMCreateOFDPacket [11:47:13]OFDProtocolAddRootSTLVToBuf [11:47:13]FM_MakeSignedData [11:47:13]FM_MakeSignedData [11:47:13]SAM_PROTO_SignData [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 0D 01 02 [11:47:13]Write to MH i2c: E2 08 00 62 5F 80 0D 01 02 00 00 00 00 3A [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 62 5F 00 90 00 35 [11:47:13]RAPDU: 90 00 [11:47:13]wFMCommunicate OK [11:47:13]wFMCommunicate request_size=255 [11:47:13]MH_SAM_APDU [11:47:13]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 9D 00 00 00 F4 03 04 00 C5 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 12 01 00 35 04 06 00 C3 [11:47:13]Write to MH i2c: E2 02 01 63 5F 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 9D 00 00 00 F4 03 04 00 C5 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 12 01 00 35 04 06 00 C3 00 00 07 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 63 5F 00 90 00 36 [11:47:13]RAPDU: 90 00 [11:47:13]wFMCommunicate OK [11:47:13]wFMCommunicate request_size=10 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 0D 02 02 05 76 44 53 75 B8 [11:47:13]Write to MH i2c: E2 0D 00 64 5F 80 0D 02 02 05 00 76 44 53 75 B8 00 00 81 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 03 00 64 5F 00 90 00 37 [11:47:13]RAPDU: 90 00 [11:47:13]wFMCommunicate OK [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 0D 03 02 [11:47:13]Write to MH i2c: E2 08 00 65 5F 80 0D 03 02 00 00 00 00 3F [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 0B 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 0B 00 65 5F 00 70 EE 19 B8 9F F3 31 8B 90 00 BD [11:47:13]RAPDU: 70 EE 19 B8 9F F3 31 8B 90 00 [11:47:13]wFMCommunicate OK [11:47:13]SAM_PROTO_SignData done [11:47:13]FM_MakeSignedData done [11:47:13]CreateOFDProtocolMessage [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 11 00 00 [11:47:13]Write to MH i2c: E2 08 00 66 5F 80 11 00 00 00 00 00 00 3F [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 17 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 17 00 66 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [11:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:13]wFMCommunicate OK [11:47:13]CreateOFDProtocolMessage done [11:47:13]OFDSenderStorePacket 70209 [11:47:13]StoreOFDPacket docnum=70209 [11:47:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 90 07 01 60 72 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 9D 00 00 00 F4 03 04 00 C5 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 12 01 00 35 04 06 00 C3 76 44 53 75 B8 70 EE 19 B8 9F F3 31 8B [11:47:13]CheckFolder [11:47:13]dirname=/storage/ofd_packets [11:47:13]CheckFolder done [11:47:13]ProducePacketName [11:47:13]name=ofd_packets/00070209 [11:47:13]NVStorageSaveData ofd_packets/00070209 [11:47:13]File name is /storage/ofd_packets/00070209 [11:47:13]Write 301 bytes [11:47:13]NVStorageSaveData done [11:47:13]OFDSenderStorePacket done [11:47:13]KKMCreateOFDPacket done [11:47:13]NVStorageSaveData kkm_last_timestamp [11:47:13]File name is /storage/kkm_last_timestamp [11:47:13]Write 4 bytes [11:47:13]NVStorageSaveData done [11:47:13]ExternCall_PrintAddStr [11:47:13]wPrintStart [11:47:13]Write to MH i2c: 01 00 00 67 5F C6 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: 01 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: 01 07 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: 01 07 00 67 5F 00 00 00 00 00 FF 0F DB [11:47:13]RasterBufferAndPrint [11:47:13]line Счет N : (1)2885976 [11:47:13]line ИНН: 02508201610067 [11:47:13]line Контрольно-Кассовый Чек [11:47:13]line ПРОДАЖА [11:47:13]line ТРК (МРК, ГНК) : 22 [11:47:13]line Товар: 2710124130 [11:47:13]line Аи-92-К-5 [11:47:13]line 14.950 * 66.90 [11:47:13]line = 1000.16 [11:47:13]line НДС 12% НСП 1% [11:47:13]line > о реализуемом товаре [11:47:13]line ОКРУГЛЕНИЕ: -0.16 [11:47:13]line ИТОГО: 1000.00 [11:47:13]line Внесено: 1000.00 [11:47:13]line СДАЧА: 0.00 [11:47:13]line НСП 1% : 8.85 [11:47:13]line НДС 12% : 106.21 [11:47:13]line Наличными: 1000.00 [11:47:13]line Безнал.: 0.00 [11:47:13]line Место: АЗС № 85 "Партнер Нефть" [11:47:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:47:13]line СНО: Общий режим [11:47:13]line Чек 157 22.10.2024 11:47 [11:47:13]line Смена: 195 ФФД: 1.0 [11:47:13]line ЗНМ: 0300000167 [11:47:13]line РНМ: 0000000000156251 [11:47:13]line Версия ККМ: v1.0 [11:47:13]line ФМ: 0000000000963346 [11:47:13]line ФД: 70209 [11:47:13]line ФПД: 214912719877560 [11:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70209&fm=214912719877560&tin=02508201610067®Number=0000000000156251&sum=100000 [11:47:14]OFD Sender: Processing packet 70209 [packets to send 18, broken 17] [11:47:14]ProducePacketName [11:47:14]name=ofd_packets/00070209 [11:47:14]OFD Sender: To server: pG, [11:47:14]CommunicateWithHost lk.salyk.kg:30040 [11:47:14]ConnectInit lk.salyk.kg [11:47:14]written 0, free lines is 4095 [11:47:14]Connected sock=10 [11:47: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 34 36 0F 01 00 00 EF 90 07 01 60 72 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 9D 00 00 00 F4 03 04 00 C5 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 12 01 00 35 04 06 00 C3 76 44 53 75 B8 70 EE 19 B8 9F F3 31 8B [11:47: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 34 36 4F 00 00 00 FA BA 47 00 00 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 34 36 10 04 04 00 41 12 01 00 F4 03 04 00 66 3A 17 67 B6 04 01 00 00 FF 92 1D 29 33 98 68 D1 [11:47:14]CommunicateWithHost err = 0 [11:47:14]CheckOFDResponse [11:47:14]1017 (14) - 77093643461234 [11:47:14]1041 (16) - 0000000000963346 [11:47:14]1040 (4) - 70209 [11:47:14]1012 (4) - 22.10.2024 05:38 [11:47:14]1206 (1) - 0 [11:47:14]OFD Sender: Remove packet 70209 [11:47:14]ProducePacketName [11:47:14]name=ofd_packets/00070209 [11:47:14]NVStorageDeleteData [11:47:14]Write to MH i2c: 01 00 00 92 5F F1 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: 01 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: 01 07 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: 01 07 00 92 5F 00 00 00 00 00 F7 0C FB [11:47:14]RasterBufferAndPrint [11:47:14]line [11:47:14]line [11:47:14]line [11:47:14]line [11:47:14]line [11:47:14]written 0, free lines is 3329 [11:47:14]MH_Cut [11:47:14]Write to MH i2c: D1 01 00 99 5F 01 CA [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: D1 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: D1 01 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: D1 01 00 99 5F 00 C9 [11:47:14]Write to MH i2c: 01 00 00 9A 5F F9 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]OFD Sender: No OFD packet to send [11:47:15]*** Cut start [11:47:15]*** Partial cut [11:47:15]*** CUTSNS_PIN = 1 [11:47:15]*** CUTSNS_PIN = 0 [11:47:15]*** Brake cut motor [11:47:15]Read from MH i2c: 01 [11:47:15]MH_I2C_Read... [11:47:15]*** Stop cut motor [11:47:15]*** Cut end [11:47:15]Read from MH i2c: 01 07 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: 01 07 00 9A 5F 00 00 00 00 00 FF 0F 0E [11:47:15]process_action close_receipt done [11:47:15]requested_data is exist [11:47:15]produce_requested_data [11:47:15]requested_item fm.sn is exist - process it [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 11 00 00 [11:47:15]Write to MH i2c: E2 08 00 9B 5F 80 11 00 00 00 00 00 00 74 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 17 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 17 00 9B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [11:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:15]wFMCommunicate OK [11:47:15]requested_item fd.num is exist - process it [11:47:15]SAM_PROTO_GetFieldsCounters [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 13 00 00 [11:47:15]Write to MH i2c: E2 08 00 9C 5F 80 13 00 00 00 00 00 00 77 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 62 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 62 00 9C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 12 01 00 0E 04 04 00 C3 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 80 [11:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 12 01 00 0E 04 04 00 C3 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 [11:47:16]wFMCommunicate OK [11:47:16]SAM_PROTO_GetFieldsCounters done [11:47:16]requested_item shift.num is exist - process it [11:47:16]requested_item shift.opened is exist - process it [11:47:16]req_shift_opened [11:47:16]FM_GetShiftState [11:47:16]SAM_PROTO_GetShiftState [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 13 01 00 [11:47:16]Write to MH i2c: E2 08 00 9D 5F 80 13 01 00 00 00 00 00 79 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0E 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0E 00 9D 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 67 [11:47:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:47:16]wFMCommunicate OK [11:47:16]SAM_PROTO_GetShiftState done [11:47:16]FM_GetShiftState done [11:47:16]req_shift_opened done [11:47:16]requested_item shift.open_date is exist - process it [11:47:16]req_shift_open_date [11:47:16]req_shift_open_date done [11:47:16]produce_requested_data done [11:47:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70209,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:47:16]process_action_free close_receipt [11:47:16]json_value_free [11:47:16]json_value_free done [11:47:16]process_json_proto returns [11:47:16]Send response to host [11:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70209,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:47:16]free response buf [11:47:16]execute_script done [11:47:16]execute_script returns [11:47:16]free content buf [11:47:16]Sock 9.Close socket [11:47:16]Sock 9.Thread stoped [11:47:16]accept exits with 7 [11:47:16]New connection [11:47:16]New thread 3067026788 created [11:47:16]Thread 3067170148 joined [11:47:16]Waiting for new connection... [11:47:16] Sock 7.Parse request [11:47:16]Sock 7.Check first char [11:47:16]Sock 7.First char is OK [11:47:16]request: POST /json_proto HTTP/1.0 [11:47:16]Method: POST [11:47:16]URL: /json_proto [11:47:16]Method is POST - this is cgi request [11:47:16]url: /json_proto [11:47:16]query_string will be loaded in cgi processing [11:47:16]execute_cgi json_proto POST (null) [11:47:16]execute_cgi path=json_proto method=POST [11:47:16]POST find Content-Length [11:47:16]Host: 172.17.50.3:8080 [11:47:16]Content-Length: 699 [11:47:16]Content-Type: application/json [11:47:16] [11:47:16]POST finish read [11:47:16]Found Content-Length = 699 [11:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70207, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:16]execute_script... [11:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70207, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:16]POST & json_proto [11:47:16]process_json_proto [11:47:16]json parsed OK: [11:47:16]protocol is kg_v1.0 [11:47:16]action value=close_receipt [11:47:16]process_action close_receipt [11:47:16]cmd_close_receipt [11:47:16]MH_GetDate [11:47:16]Write to MH i2c: F0 00 00 9E 5F EC [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: F0 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: F0 09 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: F0 09 00 9E 5F 00 C9 90 17 67 6B 98 1E 66 53 [11:47:16]GetLastDocTimeStamp 1729597637 [11:47:16]current date 1729597641 [11:47:16]FM_GetShiftState [11:47:16]SAM_PROTO_GetShiftState [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 13 01 00 [11:47:16]Write to MH i2c: E2 08 00 9F 5F 80 13 01 00 00 00 00 00 7B [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0E 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0E 00 9F 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 69 [11:47:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:47:16]wFMCommunicate OK [11:47:16]SAM_PROTO_GetShiftState done [11:47:16]FM_GetShiftState done [11:47:16]opened in 1729555832 [11:47:16]opened+sec_in_day 1729642232 [11:47:16]quantity*price = 371000 [11:47:16]sum+1 = 371001 [11:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3710.00 НСП 1% : 32.83 НДС 12% : 393.98 Наличными: 3710.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 158 22.10.2024 11:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70207 ФМ осн.: 0000000000963346 ФМ: 0000000000963346 ФД: 70210 ФПД: 188507730315314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114721&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70210&fm=188507730315314&tin=02508201610067®Number=0000000000156251&sum=371000 [11:47:18]StoreToDocumentArchive [11:47:18]shift 195 fd 70210 [11:47:18]save to /storage/0195/doc_00070210 [11:47:18]save last doc name /storage/0195/doc_00070210 to /storage/kkm_last_doc_name [11:47:18]save OK [11:47:18]Clear old archive folders... [11:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:47:18]tlvbuf is 012B1920 [11:47:18]SAM_PROTO_ClearQueue [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 09 00 00 [11:47:18]Write to MH i2c: E2 08 00 AE 5F 80 09 00 00 00 00 00 00 7F [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 AE 5F 00 90 00 81 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]SAM_PROTO_ClearQueue done [11:47:18]KKMCreateOFDPacket [11:47:18]OFDProtocolAddRootSTLVToBuf [11:47:18]FM_MakeSignedData [11:47:18]FM_MakeSignedData [11:47:18]SAM_PROTO_SignData [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 01 02 [11:47:18]Write to MH i2c: E2 08 00 AF 5F 80 0D 01 02 00 00 00 00 87 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 AF 5F 00 90 00 82 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=255 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 C9 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 3F 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 [11:47:18]Write to MH i2c: E2 02 01 B0 5F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 C9 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 3F 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 00 00 B6 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 B0 5F 00 90 00 83 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=38 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 12 01 00 35 04 06 00 AB 72 60 4D 88 32 [11:47:18]Write to MH i2c: E2 29 00 B1 5F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 12 01 00 35 04 06 00 AB 72 60 4D 88 32 00 00 EB [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 03 00 B1 5F 00 90 00 84 [11:47:18]RAPDU: 90 00 [11:47:18]wFMCommunicate OK [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 0D 03 02 [11:47:18]Write to MH i2c: E2 08 00 B2 5F 80 0D 03 02 00 00 00 00 8C [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0B 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0B 00 B2 5F 00 92 2A 85 3D DE 07 26 15 90 00 2B [11:47:18]RAPDU: 92 2A 85 3D DE 07 26 15 90 00 [11:47:18]wFMCommunicate OK [11:47:18]SAM_PROTO_SignData done [11:47:18]FM_MakeSignedData done [11:47:18]CreateOFDProtocolMessage [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 11 00 00 [11:47:18]Write to MH i2c: E2 08 00 B3 5F 80 11 00 00 00 00 00 00 8C [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 17 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 17 00 B3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [11:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:18]wFMCommunicate OK [11:47:18]CreateOFDProtocolMessage done [11:47:18]OFDSenderStorePacket 70210 [11:47:18]StoreOFDPacket docnum=70210 [11:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 C1 59 23 01 73 5E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 C9 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 3F 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 12 01 00 35 04 06 00 AB 72 60 4D 88 32 92 2A 85 3D DE 07 26 15 [11:47:18]CheckFolder [11:47:18]dirname=/storage/ofd_packets [11:47:18]CheckFolder done [11:47:18]ProducePacketName [11:47:18]name=ofd_packets/00070210 [11:47:18]NVStorageSaveData ofd_packets/00070210 [11:47:18]File name is /storage/ofd_packets/00070210 [11:47:18]Write 329 bytes [11:47:18]NVStorageSaveData done [11:47:18]OFDSenderStorePacket done [11:47:18]KKMCreateOFDPacket done [11:47:18]NVStorageSaveData kkm_last_timestamp [11:47:18]File name is /storage/kkm_last_timestamp [11:47:18]Write 4 bytes [11:47:18]NVStorageSaveData done [11:47:18]ExternCall_PrintAddStr [11:47:18]wPrintStart [11:47:18]Write to MH i2c: 01 00 00 B4 5F 13 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 07 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 07 00 B4 5F 00 00 00 00 00 FF 0F 28 [11:47:18]RasterBufferAndPrint [11:47:18]line Счет N : (1)2885977 [11:47:18]line ИНН: 02508201610067 [11:47:18]line Контрольно-Кассовый Чек [11:47:18]line ВОЗВРАТ ПРОДАЖИ [11:47:18]line ТРК (МРК, ГНК) : 33 [11:47:18]line Товар: 2710124500 [11:47:18]line Аи-95-К-5 [11:47:18]line 50.000 * 74.20 [11:47:18]line = 3710.00 [11:47:18]line НДС 12% НСП 1% [11:47:18]line > о реализуемом товаре [11:47:18]line ИТОГО: 3710.00 [11:47:18]line НСП 1% : 32.83 [11:47:18]line НДС 12% : 393.98 [11:47:18]line Наличными: 3710.00 [11:47:18]line Безнал.: 0.00 [11:47:18]line Место: АЗС № 85 "Партнер Нефть" [11:47:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:47:18]line СНО: Общий режим [11:47:18]line Чек 158 22.10.2024 11:47 [11:47:18]line Смена: 195 ФФД: 1.0 [11:47:18]line ЗНМ: 0300000167 [11:47:18]line РНМ: 0000000000156251 [11:47:18]line Версия ККМ: v1.0 [11:47:18]line ФД осн.: 70207 [11:47:18]line ФМ осн.: 0000000000963346 [11:47:18]line ФМ: 0000000000963346 [11:47:18]line ФД: 70210 [11:47:18]line ФПД: 188507730315314 [11:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114721&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70210&fm=188507730315314&tin=02508201610067®Number=0000000000156251&sum=371000 [11:47:18]written 0, free lines is 4095 [11:47:18]OFD Sender: Processing packet 70210 [packets to send 18, broken 17] [11:47:18]ProducePacketName [11:47:18]name=ofd_packets/00070210 [11:47:18]OFD Sender: To server: pG, [11:47:18]CommunicateWithHost lk.salyk.kg:30040 [11:47:18]ConnectInit lk.salyk.kg [11:47:18]Connected sock=10 [11:47: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 34 36 2B 01 00 00 C1 59 23 01 73 5E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 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 C9 90 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 3F 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 12 01 00 35 04 06 00 AB 72 60 4D 88 32 92 2A 85 3D DE 07 26 15 [11:47: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 34 36 4F 00 00 00 16 D4 47 00 42 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 34 36 10 04 04 00 42 12 01 00 F4 03 04 00 6A 3A 17 67 B6 04 01 00 00 50 11 63 B6 17 85 EB 00 [11:47:19]CommunicateWithHost err = 0 [11:47:19]CheckOFDResponse [11:47:19]1017 (14) - 77093643461234 [11:47:19]1041 (16) - 0000000000963346 [11:47:19]1040 (4) - 70210 [11:47:19]1012 (4) - 22.10.2024 05:38 [11:47:19]1206 (1) - 0 [11:47:19]OFD Sender: Remove packet 70210 [11:47:19]ProducePacketName [11:47:19]name=ofd_packets/00070210 [11:47:19]NVStorageDeleteData [11:47:19]Write to MH i2c: 01 00 00 DE 5F 3D [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 DE 5F 00 00 00 00 00 23 0D 74 [11:47:19]RasterBufferAndPrint [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]line [11:47:19]written 0, free lines is 3376 [11:47:19]MH_Cut [11:47:19]Write to MH i2c: D1 01 00 E5 5F 01 16 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: D1 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: D1 01 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: D1 01 00 E5 5F 00 15 [11:47:19]Write to MH i2c: 01 00 00 E6 5F 45 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]OFD Sender: No OFD packet to send [11:47:19]*** Cut start [11:47:19]*** Partial cut [11:47:19]*** CUTSNS_PIN = 1 [11:47:19]*** CUTSNS_PIN = 0 [11:47:20]*** Brake cut motor [11:47:20]Read from MH i2c: 01 [11:47:20]MH_I2C_Read... [11:47:20]*** Stop cut motor [11:47:20]*** Cut end [11:47:20]Read from MH i2c: 01 07 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 07 00 E6 5F 00 00 00 00 00 FF 0F 5A [11:47:20]process_action close_receipt done [11:47:20]requested_data is exist [11:47:20]produce_requested_data [11:47:20]requested_item fm.sn is exist - process it [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 11 00 00 [11:47:20]Write to MH i2c: E2 08 00 E7 5F 80 11 00 00 00 00 00 00 C0 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 17 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 17 00 E7 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [11:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:20]wFMCommunicate OK [11:47:20]requested_item fd.num is exist - process it [11:47:20]SAM_PROTO_GetFieldsCounters [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 13 00 00 [11:47:20]Write to MH i2c: E2 08 00 E8 5F 80 13 00 00 00 00 00 00 C3 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 62 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 62 00 E8 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 12 01 00 0E 04 04 00 C3 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 D0 [11:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 12 01 00 0E 04 04 00 C3 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 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetFieldsCounters done [11:47:20]requested_item shift.num is exist - process it [11:47:20]requested_item shift.opened is exist - process it [11:47:20]req_shift_opened [11:47:20]FM_GetShiftState [11:47:20]SAM_PROTO_GetShiftState [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 13 01 00 [11:47:20]Write to MH i2c: E2 08 00 E9 5F 80 13 01 00 00 00 00 00 C5 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 E9 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [11:47:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetShiftState done [11:47:20]FM_GetShiftState done [11:47:20]req_shift_opened done [11:47:20]requested_item shift.open_date is exist - process it [11:47:20]req_shift_open_date [11:47:20]req_shift_open_date done [11:47:20]produce_requested_data done [11:47:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70210,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:47:20]process_action_free close_receipt [11:47:20]json_value_free [11:47:20]json_value_free done [11:47:20]process_json_proto returns [11:47:20]Send response to host [11:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70210,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:47:20]free response buf [11:47:20]execute_script done [11:47:20]execute_script returns [11:47:20]free content buf [11:47:20]Sock 7.Close socket [11:47:20]Sock 7.Thread stoped [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]accept exits with 9 [11:48:54]New connection [11:48:54]New thread 3067170148 created [11:48:54]Thread 3067026788 joined [11:48:54]Waiting for new connection... [11:48:54] Sock 9.Parse request [11:48:54]Sock 9.Check first char [11:48:54]Sock 9.First char is OK [11:48:54]request: POST /json_proto HTTP/1.0 [11:48:54]Method: POST [11:48:54]URL: /json_proto [11:48:54]Method is POST - this is cgi request [11:48:54]url: /json_proto [11:48:54]query_string will be loaded in cgi processing [11:48:54]execute_cgi json_proto POST (null) [11:48:54]execute_cgi path=json_proto method=POST [11:48:54]POST find Content-Length [11:48:54]Host: 172.17.50.3:8080 [11:48:54]Content-Length: 770 [11:48:54]Content-Type: application/json [11:48:54] [11:48:54]POST finish read [11:48:54]Found Content-Length = 770 [11:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.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" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]execute_script... [11:48: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)2885978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.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" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:54]POST & json_proto [11:48:54]process_json_proto [11:48:54]json parsed OK: [11:48:54]protocol is kg_v1.0 [11:48:54]action value=close_receipt [11:48:54]process_action close_receipt [11:48:54]cmd_close_receipt [11:48:54]MH_GetDate [11:48:54]Write to MH i2c: F0 00 00 EA 5F 38 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: F0 09 00 EA 5F 00 2B 91 17 67 6B 98 1E 66 02 [11:48:54]GetLastDocTimeStamp 1729597641 [11:48:54]current date 1729597739 [11:48:54]FM_GetShiftState [11:48:54]SAM_PROTO_GetShiftState [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 01 00 [11:48:54]Write to MH i2c: E2 08 00 EB 5F 80 13 01 00 00 00 00 00 C7 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 EB 5F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B5 [11:48:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetShiftState done [11:48:54]FM_GetShiftState done [11:48:54]opened in 1729555832 [11:48:54]opened+sec_in_day 1729642232 [11:48:54]quantity*price = 371000 [11:48:54]sum+1 = 371001 [11:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3710.00 НСП 1% : 32.83 НДС 12% : 393.98 Наличными: 0.00 Безнал.: 3710.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 159 22.10.2024 11:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70211 ФПД: 209871243995449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70211&fm=209871243995449&tin=02508201610067®Number=0000000000156251&sum=371000 [11:48:55]StoreToDocumentArchive [11:48:55]shift 195 fd 70211 [11:48:55]save to /storage/0195/doc_00070211 [11:48:55]save last doc name /storage/0195/doc_00070211 to /storage/kkm_last_doc_name [11:48:55]save OK [11:48:55]Clear old archive folders... [11:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:55]tlvbuf is 011D78E0 [11:48:55]SAM_PROTO_ClearQueue [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 09 00 00 [11:48:55]Write to MH i2c: E2 08 00 F8 5F 80 09 00 00 00 00 00 00 C9 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F8 5F 00 90 00 CB [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_ClearQueue done [11:48:55]KKMCreateOFDPacket [11:48:55]OFDProtocolAddRootSTLVToBuf [11:48:55]FM_MakeSignedData [11:48:55]FM_MakeSignedData [11:48:55]SAM_PROTO_SignData [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 01 02 [11:48:55]Write to MH i2c: E2 08 00 F9 5F 80 0D 01 02 00 00 00 00 D1 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F9 5F 00 90 00 CC [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=255 [11:48:55]MH_SAM_APDU [11:48: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 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2B 91 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 12 01 00 35 04 06 00 BE [11:48:55]Write to MH i2c: E2 02 01 FA 5F 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 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2B 91 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 12 01 00 35 04 06 00 BE 00 00 C4 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 FA 5F 00 90 00 CD [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=10 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 05 E0 74 F2 69 39 [11:48:55]Write to MH i2c: E2 0D 00 FB 5F 80 0D 02 02 05 00 E0 74 F2 69 39 00 00 C6 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 FB 5F 00 90 00 CE [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 03 02 [11:48:55]Write to MH i2c: E2 08 00 FC 5F 80 0D 03 02 00 00 00 00 D6 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 FC 5F 00 8C A4 75 16 0C BF 2F 21 90 00 AD [11:48:55]RAPDU: 8C A4 75 16 0C BF 2F 21 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_SignData done [11:48:55]FM_MakeSignedData done [11:48:55]CreateOFDProtocolMessage [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 11 00 00 [11:48:55]Write to MH i2c: E2 08 00 FD 5F 80 11 00 00 00 00 00 00 D6 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 FD 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [11:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:55]wFMCommunicate OK [11:48:55]CreateOFDProtocolMessage done [11:48:55]OFDSenderStorePacket 70211 [11:48:55]StoreOFDPacket docnum=70211 [11:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 77 07 01 7A 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2B 91 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 12 01 00 35 04 06 00 BE E0 74 F2 69 39 8C A4 75 16 0C BF 2F 21 [11:48:55]CheckFolder [11:48:55]dirname=/storage/ofd_packets [11:48:55]CheckFolder done [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00070211 [11:48:55]NVStorageSaveData ofd_packets/00070211 [11:48:55]File name is /storage/ofd_packets/00070211 [11:48:55]Write 301 bytes [11:48:55]NVStorageSaveData done [11:48:55]OFDSenderStorePacket done [11:48:55]KKMCreateOFDPacket done [11:48:55]NVStorageSaveData kkm_last_timestamp [11:48:55]File name is /storage/kkm_last_timestamp [11:48:55]Write 4 bytes [11:48:55]NVStorageSaveData done [11:48:56]ExternCall_PrintAddStr [11:48:56]wPrintStart [11:48:56]Write to MH i2c: 01 00 00 FE 5F 5D [11:48:56]OFD Sender: Processing packet 70211 [packets to send 18, broken 17] [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00070211 [11:48:56]OFD Sender: To server: pG, [11:48:56]CommunicateWithHost lk.salyk.kg:30040 [11:48:56]ConnectInit lk.salyk.kg [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 FE 5F 00 00 00 00 00 FF 0F 72 [11:48:56]RasterBufferAndPrint [11:48:56]line Счет N : (1)2885978 [11:48:56]line ИНН: 02508201610067 [11:48:56]line Контрольно-Кассовый Чек [11:48:56]line ПРОДАЖА [11:48:56]line ТРК (МРК, ГНК) : 33 [11:48:56]line Товар: 2710124500 [11:48:56]line Аи-95-К-5 [11:48:56]line 50.000 * 74.20 [11:48:56]line = 3710.00 [11:48:56]line НДС 12% НСП 1% [11:48:56]line > о реализуемом товаре [11:48:56]line ИТОГО: 3710.00 [11:48:56]line НСП 1% : 32.83 [11:48:56]line НДС 12% : 393.98 [11:48:56]line Наличными: 0.00 [11:48:56]line Безнал.: 3710.00 [11:48:56]line Место: АЗС № 85 "Партнер Нефть" [11:48:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:48:56]line СНО: Общий режим [11:48:56]line Чек 159 22.10.2024 11:48 [11:48:56]line Смена: 195 ФФД: 1.0 [11:48:56]line ЗНМ: 0300000167 [11:48:56]line РНМ: 0000000000156251 [11:48:56]line Версия ККМ: v1.0 [11:48:56]line Платежная система: Mbank [11:48:56]line ФМ: 0000000000963346 [11:48:56]line ФД: 70211 [11:48:56]line ФПД: 209871243995449 [11:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70211&fm=209871243995449&tin=02508201610067®Number=0000000000156251&sum=371000 [11:48:56]Connected sock=10 [11:48: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 34 36 0F 01 00 00 D3 77 07 01 7A 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 2B 91 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 12 01 00 35 04 06 00 BE E0 74 F2 69 39 8C A4 75 16 0C BF 2F 21 [11:48:56]written 0, free lines is 4095 [11:48: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 34 36 4F 00 00 00 AB EB 47 00 67 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 34 36 10 04 04 00 43 12 01 00 F4 03 04 00 CC 3A 17 67 B6 04 01 00 00 C6 AF E4 A5 DE BC 1F 1F [11:48:56]CommunicateWithHost err = 0 [11:48:56]CheckOFDResponse [11:48:56]1017 (14) - 77093643461234 [11:48:56]1041 (16) - 0000000000963346 [11:48:56]1040 (4) - 70211 [11:48:56]1012 (4) - 22.10.2024 05:40 [11:48:56]1206 (1) - 0 [11:48:56]OFD Sender: Remove packet 70211 [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00070211 [11:48:56]NVStorageDeleteData [11:48:56]Write to MH i2c: 01 00 00 27 60 87 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 27 60 00 00 00 00 00 21 0D BC [11:48:56]RasterBufferAndPrint [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]written 0, free lines is 3370 [11:48:56]MH_Cut [11:48:56]Write to MH i2c: D1 01 00 2E 60 01 60 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 2E 60 00 5F [11:48:56]Write to MH i2c: 01 00 00 2F 60 8F [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:57]OFD Sender: No OFD packet to send [11:48:57]*** Cut start [11:48:57]*** Partial cut [11:48:57]*** CUTSNS_PIN = 1 [11:48:57]*** CUTSNS_PIN = 0 [11:48:57]*** Brake cut motor [11:48:58]Read from MH i2c: 01 [11:48:58]MH_I2C_Read... [11:48:58]*** Stop cut motor [11:48:58]*** Cut end [11:48:58]Read from MH i2c: 01 07 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: 01 07 00 2F 60 00 00 00 00 00 FF 0F A4 [11:48:58]process_action close_receipt done [11:48:58]requested_data is exist [11:48:58]produce_requested_data [11:48:58]requested_item fm.sn is exist - process it [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 11 00 00 [11:48:58]Write to MH i2c: E2 08 00 30 60 80 11 00 00 00 00 00 00 0A [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:58]Read from MH i2c: E2 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 17 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 17 00 30 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [11:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:58]wFMCommunicate OK [11:48:58]requested_item fd.num is exist - process it [11:48:58]SAM_PROTO_GetFieldsCounters [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 13 00 00 [11:48:58]Write to MH i2c: E2 08 00 31 60 80 13 00 00 00 00 00 00 0D [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:58]Read from MH i2c: E2 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 62 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 62 00 31 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 12 01 00 0E 04 04 00 C3 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 1E [11:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 12 01 00 0E 04 04 00 C3 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 [11:48:58]wFMCommunicate OK [11:48:58]SAM_PROTO_GetFieldsCounters done [11:48:58]requested_item shift.num is exist - process it [11:48:58]requested_item shift.opened is exist - process it [11:48:58]req_shift_opened [11:48:58]FM_GetShiftState [11:48:58]SAM_PROTO_GetShiftState [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 13 01 00 [11:48:58]Write to MH i2c: E2 08 00 32 60 80 13 01 00 00 00 00 00 0F [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 [11:48:58]MH_I2C_Read... [11:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:58]Read from MH i2c: E2 0E 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 0E 00 32 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [11:48:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:48:58]wFMCommunicate OK [11:48:58]SAM_PROTO_GetShiftState done [11:48:58]FM_GetShiftState done [11:48:58]req_shift_opened done [11:48:58]requested_item shift.open_date is exist - process it [11:48:58]req_shift_open_date [11:48:58]req_shift_open_date done [11:48:58]produce_requested_data done [11:48:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70211,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:48:58]process_action_free close_receipt [11:48:58]json_value_free [11:48:58]json_value_free done [11:48:58]process_json_proto returns [11:48:58]Send response to host [11:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70211,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:48:58]free response buf [11:48:58]execute_script done [11:48:58]execute_script returns [11:48:58]free content buf [11:48:58]Sock 9.Close socket [11:48:58]Sock 9.Thread stoped [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [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:15]accept exits with 7 [11:55:15]New connection [11:55:15]New thread 3067026788 created [11:55:15]Thread 3067170148 joined [11:55:15]Waiting for new connection... [11:55:15] Sock 7.Parse request [11:55:15]Sock 7.Check first char [11:55:15]Sock 7.First char is OK [11:55:15]request: POST /json_proto HTTP/1.0 [11:55:15]Method: POST [11:55:15]URL: /json_proto [11:55:15]Method is POST - this is cgi request [11:55:15]url: /json_proto [11:55:15]query_string will be loaded in cgi processing [11:55:15]execute_cgi json_proto POST (null) [11:55:15]execute_cgi path=json_proto method=POST [11:55:15]POST find Content-Length [11:55:15]Host: 172.17.50.3:8080 [11:55:15]Content-Length: 679 [11:55:15]Content-Type: application/json [11:55:15] [11:55:15]POST finish read [11:55:15]Found Content-Length = 679 [11:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.820, "sum" : 951.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 951.00, "total" : 951.00, "payments": [ { "type": 0, "sum" : 951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:15]execute_script... [11:55: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)2885979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.820, "sum" : 951.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 951.00, "total" : 951.00, "payments": [ { "type": 0, "sum" : 951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:15]POST & json_proto [11:55:15]process_json_proto [11:55:15]json parsed OK: [11:55:15]protocol is kg_v1.0 [11:55:15]action value=close_receipt [11:55:15]process_action close_receipt [11:55:15]cmd_close_receipt [11:55:15]MH_GetDate [11:55:15]Write to MH i2c: F0 00 00 33 60 82 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 09 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 09 00 33 60 00 A9 92 17 67 6B 98 1E 66 CB [11:55:15]GetLastDocTimeStamp 1729597739 [11:55:15]current date 1729598121 [11:55:15]FM_GetShiftState [11:55:15]SAM_PROTO_GetShiftState [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 13 01 00 [11:55:15]Write to MH i2c: E2 08 00 34 60 80 13 01 00 00 00 00 00 11 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0E 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0E 00 34 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FF [11:55:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:55:15]wFMCommunicate OK [11:55:15]SAM_PROTO_GetShiftState done [11:55:15]FM_GetShiftState done [11:55:15]opened in 1729555832 [11:55:15]opened+sec_in_day 1729642232 [11:55:15]quantity*price = 95124 [11:55:15]sum+1 = 95125 [11:55:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 951.00 Внесено: 951.00 СДАЧА: 0.00 НСП 1% : 8.42 НДС 12% : 101.02 Наличными: 951.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 160 22.10.2024 11:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70212 ФПД: 13090929470293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70212&fm=13090929470293&tin=02508201610067®Number=0000000000156251&sum=95100 [11:55:16]StoreToDocumentArchive [11:55:16]shift 195 fd 70212 [11:55:16]save to /storage/0195/doc_00070212 [11:55:16]save last doc name /storage/0195/doc_00070212 to /storage/kkm_last_doc_name [11:55:16]save OK [11:55:16]Clear old archive folders... [11:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:16]tlvbuf is 0120E6D0 [11:55:16]SAM_PROTO_ClearQueue [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 09 00 00 [11:55:16]Write to MH i2c: E2 08 00 41 60 80 09 00 00 00 00 00 00 13 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_ClearQueue done [11:55:17]KKMCreateOFDPacket [11:55:17]OFDProtocolAddRootSTLVToBuf [11:55:17]FM_MakeSignedData [11:55:17]FM_MakeSignedData [11:55:17]SAM_PROTO_SignData [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 01 02 [11:55:17]Write to MH i2c: E2 08 00 42 60 80 0D 01 02 00 00 00 00 1B [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=255 [11:55:17]MH_SAM_APDU [11:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 32 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 27 00 00 00 00 07 04 06 00 7C 73 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 A9 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 12 01 00 35 04 06 00 0B [11:55:17]Write to MH i2c: E2 02 01 43 60 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 14 32 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 27 00 00 00 00 07 04 06 00 7C 73 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 A9 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 12 01 00 35 04 06 00 0B 00 00 D1 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 43 60 00 90 00 17 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=10 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 02 02 05 E7 F8 33 6B 55 [11:55:17]Write to MH i2c: E2 0D 00 44 60 80 0D 02 02 05 00 E7 F8 33 6B 55 00 00 FA [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]OFD Sender: No OFD packet to send [11:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 44 60 00 90 00 18 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 03 02 [11:55:17]Write to MH i2c: E2 08 00 45 60 80 0D 03 02 00 00 00 00 20 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 45 60 00 FA 8B 6C 3A BF 5D 72 43 90 00 1D [11:55:17]RAPDU: FA 8B 6C 3A BF 5D 72 43 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_SignData done [11:55:17]FM_MakeSignedData done [11:55:17]CreateOFDProtocolMessage [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 11 00 00 [11:55:17]Write to MH i2c: E2 08 00 46 60 80 11 00 00 00 00 00 00 20 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 46 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [11:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:17]wFMCommunicate OK [11:55:17]CreateOFDProtocolMessage done [11:55:17]OFDSenderStorePacket 70212 [11:55:17]StoreOFDPacket docnum=70212 [11:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A C5 07 01 07 58 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 14 32 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 27 00 00 00 00 07 04 06 00 7C 73 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 A9 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 12 01 00 35 04 06 00 0B E7 F8 33 6B 55 FA 8B 6C 3A BF 5D 72 43 [11:55:17]CheckFolder [11:55:17]dirname=/storage/ofd_packets [11:55:17]CheckFolder done [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00070212 [11:55:17]NVStorageSaveData ofd_packets/00070212 [11:55:17]File name is /storage/ofd_packets/00070212 [11:55:17]Write 301 bytes [11:55:17]NVStorageSaveData done [11:55:17]OFDSenderStorePacket done [11:55:17]KKMCreateOFDPacket done [11:55:17]NVStorageSaveData kkm_last_timestamp [11:55:17]File name is /storage/kkm_last_timestamp [11:55:17]Write 4 bytes [11:55:17]NVStorageSaveData done [11:55:17]ExternCall_PrintAddStr [11:55:17]wPrintStart [11:55:17]Write to MH i2c: 01 00 00 47 60 A7 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 47 60 00 00 00 00 00 FF 0F BC [11:55:17]RasterBufferAndPrint [11:55:17]line Счет N : (1)2885979 [11:55:17]line ИНН: 02508201610067 [11:55:17]line Контрольно-Кассовый Чек [11:55:17]line ПРОДАЖА [11:55:17]line ТРК (МРК, ГНК) : 33 [11:55:17]line Товар: 2710124500 [11:55:17]line Аи-95-К-5 [11:55:17]line 12.820 * 74.20 [11:55:17]line = 951.24 [11:55:17]line НДС 12% НСП 1% [11:55:17]line > о реализуемом товаре [11:55:17]line ОКРУГЛЕНИЕ: -0.24 [11:55:17]line ИТОГО: 951.00 [11:55:17]line Внесено: 951.00 [11:55:17]line СДАЧА: 0.00 [11:55:17]line НСП 1% : 8.42 [11:55:17]line НДС 12% : 101.02 [11:55:17]line Наличными: 951.00 [11:55:17]line Безнал.: 0.00 [11:55:17]line Место: АЗС № 85 "Партнер Нефть" [11:55:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:55:17]line СНО: Общий режим [11:55:17]line Чек 160 22.10.2024 11:55 [11:55:17]line Смена: 195 ФФД: 1.0 [11:55:17]line ЗНМ: 0300000167 [11:55:17]line РНМ: 0000000000156251 [11:55:17]line Версия ККМ: v1.0 [11:55:17]line ФМ: 0000000000963346 [11:55:17]line ФД: 70212 [11:55:17]line ФПД: 13090929470293 [11:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70212&fm=13090929470293&tin=02508201610067®Number=0000000000156251&sum=95100 [11:55:17]OFD Sender: Processing packet 70212 [packets to send 18, broken 17] [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00070212 [11:55:17]OFD Sender: To server: pG, [11:55:17]CommunicateWithHost lk.salyk.kg:30040 [11:55:17]ConnectInit lk.salyk.kg [11:55:17]written 0, free lines is 4095 [11:55:17]Connected sock=11 [11:55: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 34 36 0F 01 00 00 4A C5 07 01 07 58 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 14 32 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 27 00 00 00 00 07 04 06 00 7C 73 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 A9 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 12 01 00 35 04 06 00 0B E7 F8 33 6B 55 FA 8B 6C 3A BF 5D 72 43 [11:55: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 34 36 4F 00 00 00 9C 1C 47 00 33 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 12 01 00 F4 03 04 00 49 3C 17 67 B6 04 01 00 00 1E 34 8A A9 8A E1 53 80 [11:55:18]CommunicateWithHost err = 0 [11:55:18]CheckOFDResponse [11:55:18]1017 (14) - 77093643461234 [11:55:18]1041 (16) - 0000000000963346 [11:55:18]1040 (4) - 70212 [11:55:18]1012 (4) - 22.10.2024 05:46 [11:55:18]1206 (1) - 0 [11:55:18]OFD Sender: Remove packet 70212 [11:55:18]ProducePacketName [11:55:18]name=ofd_packets/00070212 [11:55:18]NVStorageDeleteData [11:55:18]Write to MH i2c: 01 00 00 72 60 D2 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 72 60 00 00 00 00 00 02 0D E8 [11:55:18]RasterBufferAndPrint [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]written 0, free lines is 3336 [11:55:18]MH_Cut [11:55:18]Write to MH i2c: D1 01 00 79 60 01 AB [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 01 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 01 00 79 60 00 AA [11:55:18]Write to MH i2c: 01 00 00 7A 60 DA [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]OFD Sender: No OFD packet to send [11:55:18]*** Cut start [11:55:18]*** Partial cut [11:55:18]*** CUTSNS_PIN = 1 [11:55:19]*** CUTSNS_PIN = 0 [11:55:19]*** Brake cut motor [11:55:19]Read from MH i2c: 01 [11:55:19]MH_I2C_Read... [11:55:19]*** Stop cut motor [11:55:19]*** Cut end [11:55:19]Read from MH i2c: 01 07 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: 01 07 00 7A 60 00 00 00 00 00 FF 0F EF [11:55:19]process_action close_receipt done [11:55:19]requested_data is exist [11:55:19]produce_requested_data [11:55:19]requested_item fm.sn is exist - process it [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 11 00 00 [11:55:19]Write to MH i2c: E2 08 00 7B 60 80 11 00 00 00 00 00 00 55 [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 7B 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [11:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:19]wFMCommunicate OK [11:55:19]requested_item fd.num is exist - process it [11:55:19]SAM_PROTO_GetFieldsCounters [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 00 00 [11:55:19]Write to MH i2c: E2 08 00 7C 60 80 13 00 00 00 00 00 00 58 [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 7C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 12 01 00 0E 04 04 00 C3 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 6D [11:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 12 01 00 0E 04 04 00 C3 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 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetFieldsCounters done [11:55:19]requested_item shift.num is exist - process it [11:55:19]requested_item shift.opened is exist - process it [11:55:19]req_shift_opened [11:55:19]FM_GetShiftState [11:55:19]SAM_PROTO_GetShiftState [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 01 00 [11:55:19]Write to MH i2c: E2 08 00 7D 60 80 13 01 00 00 00 00 00 5A [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 7D 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [11:55:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetShiftState done [11:55:19]FM_GetShiftState done [11:55:19]req_shift_opened done [11:55:19]requested_item shift.open_date is exist - process it [11:55:19]req_shift_open_date [11:55:19]req_shift_open_date done [11:55:19]produce_requested_data done [11:55:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70212,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:55:19]process_action_free close_receipt [11:55:19]json_value_free [11:55:19]json_value_free done [11:55:19]process_json_proto returns [11:55:19]Send response to host [11:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70212,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:55:19]free response buf [11:55:19]execute_script done [11:55:19]execute_script returns [11:55:19]free content buf [11:55:19]Sock 7.Close socket [11:55:19]Sock 7.Thread stoped [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:29]accept exits with 9 [11:55:29]New connection [11:55:29]New thread 3067170148 created [11:55:29]Thread 3067026788 joined [11:55:29]Waiting for new connection... [11:55:29] Sock 9.Parse request [11:55:29]Sock 9.Check first char [11:55:29]Sock 9.First char is OK [11:55:29]request: POST /json_proto HTTP/1.0 [11:55:29]Method: POST [11:55:29]URL: /json_proto [11:55:29]Method is POST - this is cgi request [11:55:29]url: /json_proto [11:55:29]query_string will be loaded in cgi processing [11:55:29]execute_cgi json_proto POST (null) [11:55:29]execute_cgi path=json_proto method=POST [11:55:29]POST find Content-Length [11:55:29]Host: 172.17.50.3:8080 [11:55:29]Content-Length: 680 [11:55:29]Content-Type: application/json [11:55:29] [11:55:29]POST finish read [11:55:29]Found Content-Length = 680 [11:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885980", "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" ] } } [11:55:29]execute_script... [11:55: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)2885980", "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" ] } } [11:55:29]POST & json_proto [11:55:29]process_json_proto [11:55:29]json parsed OK: [11:55:29]protocol is kg_v1.0 [11:55:29]action value=close_receipt [11:55:29]process_action close_receipt [11:55:29]cmd_close_receipt [11:55:29]MH_GetDate [11:55:29]Write to MH i2c: F0 00 00 7E 60 CD [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: F0 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: F0 09 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: F0 09 00 7E 60 00 B6 92 17 67 6B 98 1E 66 23 [11:55:29]GetLastDocTimeStamp 1729598121 [11:55:29]current date 1729598134 [11:55:29]FM_GetShiftState [11:55:29]SAM_PROTO_GetShiftState [11:55:29]wFMCommunicate request_size=4 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 13 01 00 [11:55:29]Write to MH i2c: E2 08 00 7F 60 80 13 01 00 00 00 00 00 5C [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 0E 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 0E 00 7F 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4A [11:55:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:55:29]wFMCommunicate OK [11:55:29]SAM_PROTO_GetShiftState done [11:55:29]FM_GetShiftState done [11:55:29]opened in 1729555832 [11:55:29]opened+sec_in_day 1729642232 [11:55:29]quantity*price = 100050 [11:55:29]sum+1 = 100052 [11:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 161 22.10.2024 11:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70213 ФПД: 163224677366596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70213&fm=163224677366596&tin=02508201610067®Number=0000000000156251&sum=100000 [11:55:30]StoreToDocumentArchive [11:55:30]shift 195 fd 70213 [11:55:30]save to /storage/0195/doc_00070213 [11:55:30]save last doc name /storage/0195/doc_00070213 to /storage/kkm_last_doc_name [11:55:30]save OK [11:55:30]Clear old archive folders... [11:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:30]tlvbuf is 011D7150 [11:55:30]SAM_PROTO_ClearQueue [11:55:30]wFMCommunicate request_size=4 [11:55:30]MH_SAM_APDU [11:55:30]CAPDU: 80 09 00 00 [11:55:30]Write to MH i2c: E2 08 00 8C 60 80 09 00 00 00 00 00 00 5E [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 8C 60 00 90 00 60 [11:55:30]RAPDU: 90 00 [11:55:30]wFMCommunicate OK [11:55:30]SAM_PROTO_ClearQueue done [11:55:30]KKMCreateOFDPacket [11:55:30]OFDProtocolAddRootSTLVToBuf [11:55:30]FM_MakeSignedData [11:55:30]FM_MakeSignedData [11:55:30]SAM_PROTO_SignData [11:55:30]wFMCommunicate request_size=4 [11:55:30]MH_SAM_APDU [11:55:30]CAPDU: 80 0D 01 02 [11:55:30]Write to MH i2c: E2 08 00 8D 60 80 0D 01 02 00 00 00 00 66 [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:30]Read from MH i2c: E2 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 [11:55:30]MH_I2C_Read... [11:55:30]Read from MH i2c: E2 03 00 8D 60 00 90 00 61 [11:55:30]RAPDU: 90 00 [11:55:30]wFMCommunicate OK [11:55:30]wFMCommunicate request_size=255 [11:55:30]MH_SAM_APDU [11:55: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 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 A1 00 00 00 F4 03 04 00 B6 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 12 01 00 35 04 06 00 94 73 B4 E9 [11:55:30]Write to MH i2c: E2 02 01 8E 60 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 A1 00 00 00 F4 03 04 00 B6 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 12 01 00 35 04 06 00 94 73 B4 E9 00 00 0B [11:55:30]Write i2c OK [11:55:30]MH_I2C_Read... [11:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:31]Read from MH i2c: E2 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 03 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 03 00 8E 60 00 90 00 62 [11:55:31]RAPDU: 90 00 [11:55:31]wFMCommunicate OK [11:55:31]wFMCommunicate request_size=7 [11:55:31]MH_SAM_APDU [11:55:31]CAPDU: 80 0D 02 02 02 BB 44 [11:55:31]Write to MH i2c: E2 0A 00 8F 60 80 0D 02 02 02 00 BB 44 00 00 6C [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:31]Read from MH i2c: E2 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 03 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 03 00 8F 60 00 90 00 63 [11:55:31]RAPDU: 90 00 [11:55:31]wFMCommunicate OK [11:55:31]wFMCommunicate request_size=4 [11:55:31]MH_SAM_APDU [11:55:31]CAPDU: 80 0D 03 02 [11:55:31]Write to MH i2c: E2 08 00 90 60 80 0D 03 02 00 00 00 00 6B [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:31]Read from MH i2c: E2 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 0B 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 0B 00 90 60 00 16 56 CA 4B D6 3D D2 3F 90 00 11 [11:55:31]RAPDU: 16 56 CA 4B D6 3D D2 3F 90 00 [11:55:31]wFMCommunicate OK [11:55:31]SAM_PROTO_SignData done [11:55:31]FM_MakeSignedData done [11:55:31]CreateOFDProtocolMessage [11:55:31]wFMCommunicate request_size=4 [11:55:31]MH_SAM_APDU [11:55:31]CAPDU: 80 11 00 00 [11:55:31]Write to MH i2c: E2 08 00 91 60 80 11 00 00 00 00 00 00 6B [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:31]Read from MH i2c: E2 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 17 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: E2 17 00 91 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [11:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:31]wFMCommunicate OK [11:55:31]CreateOFDProtocolMessage done [11:55:31]OFDSenderStorePacket 70213 [11:55:31]StoreOFDPacket docnum=70213 [11:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 C5 A8 04 01 83 C0 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 A1 00 00 00 F4 03 04 00 B6 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 12 01 00 35 04 06 00 94 73 B4 E9 BB 44 16 56 CA 4B D6 3D D2 3F [11:55:31]CheckFolder [11:55:31]dirname=/storage/ofd_packets [11:55:31]CheckFolder done [11:55:31]ProducePacketName [11:55:31]name=ofd_packets/00070213 [11:55:31]NVStorageSaveData ofd_packets/00070213 [11:55:31]File name is /storage/ofd_packets/00070213 [11:55:31]Write 298 bytes [11:55:31]NVStorageSaveData done [11:55:31]OFDSenderStorePacket done [11:55:31]KKMCreateOFDPacket done [11:55:31]NVStorageSaveData kkm_last_timestamp [11:55:31]File name is /storage/kkm_last_timestamp [11:55:31]Write 4 bytes [11:55:31]NVStorageSaveData done [11:55:31]ExternCall_PrintAddStr [11:55:31]wPrintStart [11:55:31]Write to MH i2c: 01 00 00 92 60 F2 [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 07 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 07 00 92 60 00 00 00 00 00 FF 0F 07 [11:55:31]RasterBufferAndPrint [11:55:31]line Счет N : (1)2885980 [11:55:31]line ИНН: 02508201610067 [11:55:31]line Контрольно-Кассовый Чек [11:55:31]line ПРОДАЖА [11:55:31]line ТРК (МРК, ГНК) : 51 [11:55:31]line Товар: 2710194210 [11:55:31]line ДТ-К-5 [11:55:31]line 13.130 * 76.20 [11:55:31]line = 1000.51 [11:55:31]line НДС 12% НСП 1% [11:55:31]line > о реализуемом товаре [11:55:31]line ОКРУГЛЕНИЕ: -0.51 [11:55:31]line ИТОГО: 1000.00 [11:55:31]line Внесено: 1000.00 [11:55:31]line СДАЧА: 0.00 [11:55:31]line НСП 1% : 8.85 [11:55:31]line НДС 12% : 106.25 [11:55:31]line Наличными: 1000.00 [11:55:31]line Безнал.: 0.00 [11:55:31]line Место: АЗС № 85 "Партнер Нефть" [11:55:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:55:31]line СНО: Общий режим [11:55:31]line Чек 161 22.10.2024 11:55 [11:55:31]line Смена: 195 ФФД: 1.0 [11:55:31]line ЗНМ: 0300000167 [11:55:31]line РНМ: 0000000000156251 [11:55:31]line Версия ККМ: v1.0 [11:55:31]line ФМ: 0000000000963346 [11:55:31]line ФД: 70213 [11:55:31]line ФПД: 163224677366596 [11:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70213&fm=163224677366596&tin=02508201610067®Number=0000000000156251&sum=100000 [11:55:31]OFD Sender: Processing packet 70213 [packets to send 18, broken 17] [11:55:31]ProducePacketName [11:55:31]name=ofd_packets/00070213 [11:55:31]OFD Sender: To server: pG, [11:55:31]CommunicateWithHost lk.salyk.kg:30040 [11:55:31]ConnectInit lk.salyk.kg [11:55:31]written 0, free lines is 4095 [11:55:31]Connected sock=10 [11:55: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 34 36 0C 01 00 00 C5 A8 04 01 83 C0 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 A1 00 00 00 F4 03 04 00 B6 92 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 12 01 00 35 04 06 00 94 73 B4 E9 BB 44 16 56 CA 4B D6 3D D2 3F [11:55: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 34 36 4F 00 00 00 AC CB 47 00 61 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 12 01 00 F4 03 04 00 57 3C 17 67 B6 04 01 00 00 6C A0 63 6A 91 FF C5 B1 [11:55:31]CommunicateWithHost err = 0 [11:55:31]CheckOFDResponse [11:55:31]1017 (14) - 77093643461234 [11:55:31]1041 (16) - 0000000000963346 [11:55:31]1040 (4) - 70213 [11:55:31]1012 (4) - 22.10.2024 05:47 [11:55:31]1206 (1) - 0 [11:55:31]OFD Sender: Remove packet 70213 [11:55:31]ProducePacketName [11:55:31]name=ofd_packets/00070213 [11:55:31]NVStorageDeleteData [11:55:31]Write to MH i2c: 01 00 00 BD 60 1D [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 07 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: 01 07 00 BD 60 00 00 00 00 00 F3 0C 23 [11:55:31]RasterBufferAndPrint [11:55:31]line [11:55:31]line [11:55:31]line [11:55:31]line [11:55:31]line [11:55:31]written 0, free lines is 3321 [11:55:31]MH_Cut [11:55:31]Write to MH i2c: D1 01 00 C4 60 01 F6 [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: D1 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: D1 01 00 [11:55:31]MH_I2C_Read... [11:55:31]Read from MH i2c: D1 01 00 C4 60 00 F5 [11:55:31]Write to MH i2c: 01 00 00 C5 60 25 [11:55:31]Write i2c OK [11:55:31]MH_I2C_Read... [11:55:32]OFD Sender: No OFD packet to send [11:55:32]*** Cut start [11:55:32]*** Partial cut [11:55:32]*** CUTSNS_PIN = 1 [11:55:32]*** CUTSNS_PIN = 0 [11:55:32]*** Brake cut motor [11:55:33]Read from MH i2c: 01 [11:55:33]MH_I2C_Read... [11:55:33]*** Stop cut motor [11:55:33]*** Cut end [11:55:33]Read from MH i2c: 01 07 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 C5 60 00 00 00 00 00 FF 0F 3A [11:55:33]process_action close_receipt done [11:55:33]requested_data is exist [11:55:33]produce_requested_data [11:55:33]requested_item fm.sn is exist - process it [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 11 00 00 [11:55:33]Write to MH i2c: E2 08 00 C6 60 80 11 00 00 00 00 00 00 A0 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 C6 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [11:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:33]wFMCommunicate OK [11:55:33]requested_item fd.num is exist - process it [11:55:33]SAM_PROTO_GetFieldsCounters [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 00 00 [11:55:33]Write to MH i2c: E2 08 00 C7 60 80 13 00 00 00 00 00 00 A3 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 C7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 12 01 00 0E 04 04 00 C3 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 BC [11:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 12 01 00 0E 04 04 00 C3 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 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetFieldsCounters done [11:55:33]requested_item shift.num is exist - process it [11:55:33]requested_item shift.opened is exist - process it [11:55:33]req_shift_opened [11:55:33]FM_GetShiftState [11:55:33]SAM_PROTO_GetShiftState [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 01 00 [11:55:33]Write to MH i2c: E2 08 00 C8 60 80 13 01 00 00 00 00 00 A5 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 C8 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [11:55:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetShiftState done [11:55:33]FM_GetShiftState done [11:55:33]req_shift_opened done [11:55:33]requested_item shift.open_date is exist - process it [11:55:33]req_shift_open_date [11:55:33]req_shift_open_date done [11:55:33]produce_requested_data done [11:55:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70213,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [11:55:33]process_action_free close_receipt [11:55:33]json_value_free [11:55:33]json_value_free done [11:55:33]process_json_proto returns [11:55:33]Send response to host [11:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70213,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [11:55:33]free response buf [11:55:33]execute_script done [11:55:33]execute_script returns [11:55:33]free content buf [11:55:33]Sock 9.Close socket [11:55:33]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:29]accept exits with 7 [12:00:29]New connection [12:00:29]New thread 3067026788 created [12:00:29]Thread 3067170148 joined [12:00:29]Waiting for new connection... [12:00:29] Sock 7.Parse request [12:00:29]Sock 7.Check first char [12:00:29]Sock 7.First char is OK [12:00:29]request: POST /json_proto HTTP/1.0 [12:00:29]Method: POST [12:00:29]URL: /json_proto [12:00:29]Method is POST - this is cgi request [12:00:29]url: /json_proto [12:00:29]query_string will be loaded in cgi processing [12:00:29]execute_cgi json_proto POST (null) [12:00:29]execute_cgi path=json_proto method=POST [12:00:29]POST find Content-Length [12:00:29]Host: 172.17.50.3:8080 [12:00:29]Content-Length: 683 [12:00:29]Content-Type: application/json [12:00:29] [12:00:29]POST finish read [12:00:29]Found Content-Length = 683 [12:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [12:00:29]execute_script... [12:00: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)2885981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [12:00:29]POST & json_proto [12:00:29]process_json_proto [12:00:29]json parsed OK: [12:00:29]protocol is kg_v1.0 [12:00:29]action value=close_receipt [12:00:29]process_action close_receipt [12:00:29]cmd_close_receipt [12:00:29]MH_GetDate [12:00:29]Write to MH i2c: F0 00 00 C9 60 18 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 09 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 09 00 C9 60 00 E2 93 17 67 6B 98 1E 66 9B [12:00:29]GetLastDocTimeStamp 1729598134 [12:00:29]current date 1729598434 [12:00:29]FM_GetShiftState [12:00:29]SAM_PROTO_GetShiftState [12:00:29]wFMCommunicate request_size=4 [12:00:29]MH_SAM_APDU [12:00:29]CAPDU: 80 13 01 00 [12:00:29]Write to MH i2c: E2 08 00 CA 60 80 13 01 00 00 00 00 00 A7 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:29]Read from MH i2c: E2 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: E2 0E 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: E2 0E 00 CA 60 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [12:00:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:00:29]wFMCommunicate OK [12:00:29]SAM_PROTO_GetShiftState done [12:00:29]FM_GetShiftState done [12:00:29]opened in 1729555832 [12:00:29]opened+sec_in_day 1729642232 [12:00:29]quantity*price = 100021 [12:00:29]sum+1 = 100023 [12:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 162 22.10.2024 12:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70214 ФПД: 41946841258173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70214&fm=41946841258173&tin=02508201610067®Number=0000000000156251&sum=100000 [12:00:30]StoreToDocumentArchive [12:00:30]shift 195 fd 70214 [12:00:30]save to /storage/0195/doc_00070214 [12:00:30]save last doc name /storage/0195/doc_00070214 to /storage/kkm_last_doc_name [12:00:30]save OK [12:00:30]Clear old archive folders... [12:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:30]tlvbuf is 011D7970 [12:00:30]SAM_PROTO_ClearQueue [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 09 00 00 [12:00:30]Write to MH i2c: E2 08 00 D7 60 80 09 00 00 00 00 00 00 A9 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 D7 60 00 90 00 AB [12:00:30]RAPDU: 90 00 [12:00:30]wFMCommunicate OK [12:00:30]SAM_PROTO_ClearQueue done [12:00:30]KKMCreateOFDPacket [12:00:30]OFDProtocolAddRootSTLVToBuf [12:00:30]FM_MakeSignedData [12:00:30]FM_MakeSignedData [12:00:30]SAM_PROTO_SignData [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 0D 01 02 [12:00:30]Write to MH i2c: E2 08 00 D8 60 80 0D 01 02 00 00 00 00 B1 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 D8 60 00 90 00 AC [12:00:30]RAPDU: 90 00 [12:00:30]wFMCommunicate OK [12:00:30]wFMCommunicate request_size=255 [12:00:30]MH_SAM_APDU [12:00: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 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 A2 00 00 00 F4 03 04 00 E2 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 12 01 00 35 04 06 00 26 [12:00:30]Write to MH i2c: E2 02 01 D9 60 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 A2 00 00 00 F4 03 04 00 E2 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 12 01 00 35 04 06 00 26 00 00 2E [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 D9 60 00 90 00 AD [12:00:31]RAPDU: 90 00 [12:00:31]wFMCommunicate OK [12:00:31]wFMCommunicate request_size=10 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 0D 02 02 05 26 82 92 98 BD [12:00:31]Write to MH i2c: E2 0D 00 DA 60 80 0D 02 02 05 00 26 82 92 98 BD 00 00 4D [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 DA 60 00 90 00 AE [12:00:31]RAPDU: 90 00 [12:00:31]wFMCommunicate OK [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 0D 03 02 [12:00:31]Write to MH i2c: E2 08 00 DB 60 80 0D 03 02 00 00 00 00 B6 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0B 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0B 00 DB 60 00 CB E3 24 12 44 FD 23 41 90 00 40 [12:00:31]RAPDU: CB E3 24 12 44 FD 23 41 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_SignData done [12:00:31]FM_MakeSignedData done [12:00:31]CreateOFDProtocolMessage [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 11 00 00 [12:00:31]Write to MH i2c: E2 08 00 DC 60 80 11 00 00 00 00 00 00 B6 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 DC 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [12:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:31]wFMCommunicate OK [12:00:31]CreateOFDProtocolMessage done [12:00:31]OFDSenderStorePacket 70214 [12:00:31]StoreOFDPacket docnum=70214 [12:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B4 8F 07 01 A0 2E 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 A2 00 00 00 F4 03 04 00 E2 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 12 01 00 35 04 06 00 26 26 82 92 98 BD CB E3 24 12 44 FD 23 41 [12:00:31]CheckFolder [12:00:31]dirname=/storage/ofd_packets [12:00:31]CheckFolder done [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00070214 [12:00:31]NVStorageSaveData ofd_packets/00070214 [12:00:31]File name is /storage/ofd_packets/00070214 [12:00:31]Write 301 bytes [12:00:31]NVStorageSaveData done [12:00:31]OFDSenderStorePacket done [12:00:31]KKMCreateOFDPacket done [12:00:31]NVStorageSaveData kkm_last_timestamp [12:00:31]File name is /storage/kkm_last_timestamp [12:00:31]Write 4 bytes [12:00:31]NVStorageSaveData done [12:00:31]ExternCall_PrintAddStr [12:00:31]wPrintStart [12:00:31]Write to MH i2c: 01 00 00 DD 60 3D [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 DD 60 00 00 00 00 00 FF 0F 52 [12:00:31]RasterBufferAndPrint [12:00:31]line Счет N : (1)2885981 [12:00:31]line ИНН: 02508201610067 [12:00:31]line Контрольно-Кассовый Чек [12:00:31]line ПРОДАЖА [12:00:31]line ТРК (МРК, ГНК) : 43 [12:00:31]line Товар: 2710124500 [12:00:31]line Аи-95-К-5 [12:00:31]line 13.480 * 74.20 [12:00:31]line = 1000.22 [12:00:31]line НДС 12% НСП 1% [12:00:31]line > о реализуемом товаре [12:00:31]line ОКРУГЛЕНИЕ: -0.22 [12:00:31]line ИТОГО: 1000.00 [12:00:31]line Внесено: 1000.00 [12:00:31]line СДАЧА: 0.00 [12:00:31]line НСП 1% : 8.85 [12:00:31]line НДС 12% : 106.22 [12:00:31]line Наличными: 1000.00 [12:00:31]line Безнал.: 0.00 [12:00:31]line Место: АЗС № 85 "Партнер Нефть" [12:00:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:00:31]line СНО: Общий режим [12:00:31]line Чек 162 22.10.2024 12:00 [12:00:31]line Смена: 195 ФФД: 1.0 [12:00:31]line ЗНМ: 0300000167 [12:00:31]line РНМ: 0000000000156251 [12:00:31]line Версия ККМ: v1.0 [12:00:31]line ФМ: 0000000000963346 [12:00:31]line ФД: 70214 [12:00:31]line ФПД: 41946841258173 [12:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70214&fm=41946841258173&tin=02508201610067®Number=0000000000156251&sum=100000 [12:00:31]OFD Sender: Processing packet 70214 [packets to send 18, broken 17] [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00070214 [12:00:31]OFD Sender: To server: pG, [12:00:31]CommunicateWithHost lk.salyk.kg:30040 [12:00:31]ConnectInit lk.salyk.kg [12:00:31]written 0, free lines is 4095 [12:00:31]Connected sock=9 [12:00: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 34 36 0F 01 00 00 B4 8F 07 01 A0 2E 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 A2 00 00 00 F4 03 04 00 E2 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 12 01 00 35 04 06 00 26 26 82 92 98 BD CB E3 24 12 44 FD 23 41 [12:00: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 34 36 4F 00 00 00 40 E2 47 00 4E 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 34 36 10 04 04 00 46 12 01 00 F4 03 04 00 83 3D 17 67 B6 04 01 00 00 EC D7 40 3A 7D 25 AE E5 [12:00:31]CommunicateWithHost err = 0 [12:00:31]CheckOFDResponse [12:00:31]1017 (14) - 77093643461234 [12:00:31]1041 (16) - 0000000000963346 [12:00:31]1040 (4) - 70214 [12:00:31]1012 (4) - 22.10.2024 05:52 [12:00:31]1206 (1) - 0 [12:00:31]OFD Sender: Remove packet 70214 [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00070214 [12:00:31]NVStorageDeleteData [12:00:32]Write to MH i2c: 01 00 00 08 61 69 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 07 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 07 00 08 61 00 00 00 00 00 F6 0C 72 [12:00:32]RasterBufferAndPrint [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]written 0, free lines is 3328 [12:00:32]MH_Cut [12:00:32]Write to MH i2c: D1 01 00 0F 61 01 42 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 01 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 01 00 0F 61 00 41 [12:00:32]Write to MH i2c: 01 00 00 10 61 71 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]OFD Sender: No OFD packet to send [12:00:32]*** Cut start [12:00:32]*** Partial cut [12:00:32]*** CUTSNS_PIN = 1 [12:00:32]*** CUTSNS_PIN = 0 [12:00:33]*** Brake cut motor [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]*** Stop cut motor [12:00:33]*** Cut end [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 10 61 00 00 00 00 00 FF 0F 86 [12:00:33]process_action close_receipt done [12:00:33]requested_data is exist [12:00:33]produce_requested_data [12:00:33]requested_item fm.sn is exist - process it [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 11 00 00 [12:00:33]Write to MH i2c: E2 08 00 11 61 80 11 00 00 00 00 00 00 EC [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 11 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [12:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:33]wFMCommunicate OK [12:00:33]requested_item fd.num is exist - process it [12:00:33]SAM_PROTO_GetFieldsCounters [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 13 00 00 [12:00:33]Write to MH i2c: E2 08 00 12 61 80 13 00 00 00 00 00 00 EF [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 62 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 62 00 12 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 12 01 00 0E 04 04 00 C3 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 0C [12:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 12 01 00 0E 04 04 00 C3 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 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_GetFieldsCounters done [12:00:33]requested_item shift.num is exist - process it [12:00:33]requested_item shift.opened is exist - process it [12:00:33]req_shift_opened [12:00:33]FM_GetShiftState [12:00:33]SAM_PROTO_GetShiftState [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 13 01 00 [12:00:33]Write to MH i2c: E2 08 00 13 61 80 13 01 00 00 00 00 00 F1 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 13 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [12:00:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_GetShiftState done [12:00:33]FM_GetShiftState done [12:00:33]req_shift_opened done [12:00:33]requested_item shift.open_date is exist - process it [12:00:33]req_shift_open_date [12:00:33]req_shift_open_date done [12:00:33]produce_requested_data done [12:00:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70214,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:00:33]process_action_free close_receipt [12:00:33]json_value_free [12:00:33]json_value_free done [12:00:33]process_json_proto returns [12:00:33]Send response to host [12:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70214,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:00:33]free response buf [12:00:33]execute_script done [12:00:33]execute_script returns [12:00:33]free content buf [12:00:33]Sock 7.Close socket [12:00:33]Sock 7.Thread stoped [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:56]accept exits with 10 [12:00:56]New connection [12:00:56]New thread 3067170148 created [12:00:56]Thread 3067026788 joined [12:00:56]Waiting for new connection... [12:00:56] Sock 10.Parse request [12:00:56]Sock 10.Check first char [12:00:56]Sock 10.First char is OK [12:00:56]request: POST /json_proto HTTP/1.0 [12:00:56]Method: POST [12:00:56]URL: /json_proto [12:00:56]Method is POST - this is cgi request [12:00:56]url: /json_proto [12:00:56]query_string will be loaded in cgi processing [12:00:56]execute_cgi json_proto POST (null) [12:00:56]execute_cgi path=json_proto method=POST [12:00:56]POST find Content-Length [12:00:56]Host: 172.17.50.3:8080 [12:00:56]Content-Length: 678 [12:00:56]Content-Type: application/json [12:00:56] [12:00:56]POST finish read [12:00:56]Found Content-Length = 678 [12:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [12:00:56]execute_script... [12: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)2885983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [12:00:56]POST & json_proto [12:00:56]process_json_proto [12:00:56]json parsed OK: [12:00:56]protocol is kg_v1.0 [12:00:56]action value=close_receipt [12:00:56]process_action close_receipt [12:00:56]cmd_close_receipt [12:00:56]MH_GetDate [12:00:56]Write to MH i2c: F0 00 00 14 61 64 [12:00:56]Write i2c OK [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: F0 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: F0 09 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: F0 09 00 14 61 00 FD 93 17 67 6B 98 1E 66 02 [12:00:56]GetLastDocTimeStamp 1729598434 [12:00:56]current date 1729598461 [12:00:56]FM_GetShiftState [12:00:56]SAM_PROTO_GetShiftState [12:00:56]wFMCommunicate request_size=4 [12:00:56]MH_SAM_APDU [12:00:56]CAPDU: 80 13 01 00 [12:00:56]Write to MH i2c: E2 08 00 15 61 80 13 01 00 00 00 00 00 F3 [12:00:56]Write i2c OK [12:00:56]MH_I2C_Read... [12:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:56]Read from MH i2c: E2 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 0E 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 0E 00 15 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E1 [12:00:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:00:56]wFMCommunicate OK [12:00:56]SAM_PROTO_GetShiftState done [12:00:56]FM_GetShiftState done [12:00:56]opened in 1729555832 [12:00:56]opened+sec_in_day 1729642232 [12:00:56]quantity*price = 50041 [12:00:56]sum+1 = 50042 [12:00: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 163 22.10.2024 12:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70215 ФПД: 99531223570094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70215&fm=99531223570094&tin=02508201610067®Number=0000000000156251&sum=50000 [12:00:57]StoreToDocumentArchive [12:00:57]shift 195 fd 70215 [12:00:57]save to /storage/0195/doc_00070215 [12:00:57]save last doc name /storage/0195/doc_00070215 to /storage/kkm_last_doc_name [12:00:57]save OK [12:00:57]Clear old archive folders... [12:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:57]tlvbuf is 01208D50 [12:00:57]SAM_PROTO_ClearQueue [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 09 00 00 [12:00:57]Write to MH i2c: E2 08 00 22 61 80 09 00 00 00 00 00 00 F5 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 22 61 00 90 00 F7 [12:00:57]RAPDU: 90 00 [12:00:57]wFMCommunicate OK [12:00:57]SAM_PROTO_ClearQueue done [12:00:57]KKMCreateOFDPacket [12:00:57]OFDProtocolAddRootSTLVToBuf [12:00:57]FM_MakeSignedData [12:00:57]FM_MakeSignedData [12:00:57]SAM_PROTO_SignData [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 0D 01 02 [12:00:57]Write to MH i2c: E2 08 00 23 61 80 0D 01 02 00 00 00 00 FD [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 23 61 00 90 00 F8 [12:00:57]RAPDU: 90 00 [12:00:57]wFMCommunicate OK [12:00:57]wFMCommunicate request_size=255 [12:00:57]MH_SAM_APDU [12:00: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 A3 00 00 00 F4 03 04 00 FD 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 12 01 00 35 04 06 00 5A [12:00:57]Write to MH i2c: E2 02 01 24 61 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 A3 00 00 00 F4 03 04 00 FD 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 12 01 00 35 04 06 00 5A 00 00 AE [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 03 00 24 61 00 90 00 F9 [12:00:57]RAPDU: 90 00 [12:00:57]wFMCommunicate OK [12:00:57]wFMCommunicate request_size=10 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 0D 02 02 05 85 EB 39 96 AE [12:00:57]Write to MH i2c: E2 0D 00 25 61 80 0D 02 02 05 00 85 EB 39 96 AE 00 00 F7 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 03 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 03 00 25 61 00 90 00 FA [12:00:58]RAPDU: 90 00 [12:00:58]wFMCommunicate OK [12:00:58]wFMCommunicate request_size=4 [12:00:58]MH_SAM_APDU [12:00:58]CAPDU: 80 0D 03 02 [12:00:58]Write to MH i2c: E2 08 00 26 61 80 0D 03 02 00 00 00 00 02 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0B 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0B 00 26 61 00 5B 7A 1C AF 6E C5 BC F8 90 00 8A [12:00:58]RAPDU: 5B 7A 1C AF 6E C5 BC F8 90 00 [12:00:58]wFMCommunicate OK [12:00:58]SAM_PROTO_SignData done [12:00:58]FM_MakeSignedData done [12:00:58]CreateOFDProtocolMessage [12:00:58]wFMCommunicate request_size=4 [12:00:58]MH_SAM_APDU [12:00:58]CAPDU: 80 11 00 00 [12:00:58]Write to MH i2c: E2 08 00 27 61 80 11 00 00 00 00 00 00 02 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 17 00 [12:00:58]MH_I2C_Read... [12:00:58]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 34 36 90 00 54 [12:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:58]wFMCommunicate OK [12:00:58]CreateOFDProtocolMessage done [12:00:58]OFDSenderStorePacket 70215 [12:00:58]StoreOFDPacket docnum=70215 [12:00:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 30 07 01 96 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 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 A3 00 00 00 F4 03 04 00 FD 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 12 01 00 35 04 06 00 5A 85 EB 39 96 AE 5B 7A 1C AF 6E C5 BC F8 [12:00:58]CheckFolder [12:00:58]dirname=/storage/ofd_packets [12:00:58]CheckFolder done [12:00:58]ProducePacketName [12:00:58]name=ofd_packets/00070215 [12:00:58]NVStorageSaveData ofd_packets/00070215 [12:00:58]File name is /storage/ofd_packets/00070215 [12:00:58]Write 301 bytes [12:00:58]NVStorageSaveData done [12:00:58]OFDSenderStorePacket done [12:00:58]KKMCreateOFDPacket done [12:00:58]NVStorageSaveData kkm_last_timestamp [12:00:58]File name is /storage/kkm_last_timestamp [12:00:58]Write 4 bytes [12:00:58]NVStorageSaveData done [12:00:58]ExternCall_PrintAddStr [12:00:58]wPrintStart [12:00:58]Write to MH i2c: 01 00 00 28 61 89 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 28 61 00 00 00 00 00 FF 0F 9E [12:00:58]RasterBufferAndPrint [12:00:58]line Счет N : (1)2885983 [12:00:58]line ИНН: 02508201610067 [12:00:58]line Контрольно-Кассовый Чек [12:00:58]line ПРОДАЖА [12:00:58]line ТРК (МРК, ГНК) : 22 [12:00:58]line Товар: 2710124130 [12:00:58]line Аи-92-К-5 [12:00:58]line 7.480 * 66.90 [12:00:58]line = 500.41 [12:00:58]line НДС 12% НСП 1% [12:00:58]line > о реализуемом товаре [12:00:58]line ОКРУГЛЕНИЕ: -0.41 [12:00:58]line ИТОГО: 500.00 [12:00:58]line Внесено: 500.00 [12:00:58]line СДАЧА: 0.00 [12:00:58]line НСП 1% : 4.43 [12:00:58]line НДС 12% : 53.14 [12:00:58]line Наличными: 500.00 [12:00:58]line Безнал.: 0.00 [12:00:58]line Место: АЗС № 85 "Партнер Нефть" [12:00:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:00:58]line СНО: Общий режим [12:00:58]line Чек 163 22.10.2024 12:01 [12:00:58]line Смена: 195 ФФД: 1.0 [12:00:58]line ЗНМ: 0300000167 [12:00:58]line РНМ: 0000000000156251 [12:00:58]line Версия ККМ: v1.0 [12:00:58]line ФМ: 0000000000963346 [12:00:58]line ФД: 70215 [12:00:58]line ФПД: 99531223570094 [12:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70215&fm=99531223570094&tin=02508201610067®Number=0000000000156251&sum=50000 [12:00:58]OFD Sender: Processing packet 70215 [packets to send 18, broken 17] [12:00:58]ProducePacketName [12:00:58]name=ofd_packets/00070215 [12:00:58]OFD Sender: To server: pG, [12:00:58]CommunicateWithHost lk.salyk.kg:30040 [12:00:58]ConnectInit lk.salyk.kg [12:00:58]written 0, free lines is 4095 [12:00:58]Connected sock=9 [12: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 34 36 0F 01 00 00 58 30 07 01 96 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 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 A3 00 00 00 F4 03 04 00 FD 93 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 12 01 00 35 04 06 00 5A 85 EB 39 96 AE 5B 7A 1C AF 6E C5 BC F8 [12: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 34 36 4F 00 00 00 96 A1 47 00 CD 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 34 36 10 04 04 00 47 12 01 00 F4 03 04 00 9E 3D 17 67 B6 04 01 00 00 32 01 9E C8 0D 44 6A 8C [12:00:58]CommunicateWithHost err = 0 [12:00:58]CheckOFDResponse [12:00:58]1017 (14) - 77093643461234 [12:00:58]1041 (16) - 0000000000963346 [12:00:58]1040 (4) - 70215 [12:00:58]1012 (4) - 22.10.2024 05:52 [12:00:58]1206 (1) - 0 [12:00:58]OFD Sender: Remove packet 70215 [12:00:58]ProducePacketName [12:00:58]name=ofd_packets/00070215 [12:00:58]NVStorageDeleteData [12:00:58]Write to MH i2c: 01 00 00 53 61 B4 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 53 61 00 00 00 00 00 E4 0C AB [12:00:58]RasterBufferAndPrint [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]written 0, free lines is 3309 [12:00:58]MH_Cut [12:00:58]Write to MH i2c: D1 01 00 5A 61 01 8D [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 01 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 01 00 5A 61 00 8C [12:00:58]Write to MH i2c: 01 00 00 5B 61 BC [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:59]OFD Sender: No OFD packet to send [12:00:59]*** Cut start [12:00:59]*** Partial cut [12:00:59]*** CUTSNS_PIN = 1 [12:00:59]*** CUTSNS_PIN = 0 [12:00:59]*** Brake cut motor [12:01:00]Read from MH i2c: 01 [12:01:00]MH_I2C_Read... [12:01:00]*** Stop cut motor [12:01:00]*** Cut end [12:01:00]Read from MH i2c: 01 07 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 5B 61 00 00 00 00 00 FF 0F D1 [12:01:00]process_action close_receipt done [12:01:00]requested_data is exist [12:01:00]produce_requested_data [12:01:00]requested_item fm.sn is exist - process it [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 11 00 00 [12:01:00]Write to MH i2c: E2 08 00 5C 61 80 11 00 00 00 00 00 00 37 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 5C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [12:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:00]wFMCommunicate OK [12:01:00]requested_item fd.num is exist - process it [12:01:00]SAM_PROTO_GetFieldsCounters [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 13 00 00 [12:01:00]Write to MH i2c: E2 08 00 5D 61 80 13 00 00 00 00 00 00 3A [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 62 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 62 00 5D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 12 01 00 0E 04 04 00 C3 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 5B [12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 12 01 00 0E 04 04 00 C3 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 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_GetFieldsCounters done [12:01:00]requested_item shift.num is exist - process it [12:01:00]requested_item shift.opened is exist - process it [12:01:00]req_shift_opened [12:01:00]FM_GetShiftState [12:01:00]SAM_PROTO_GetShiftState [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 13 01 00 [12:01:00]Write to MH i2c: E2 08 00 5E 61 80 13 01 00 00 00 00 00 3C [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 5E 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2A [12:01:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_GetShiftState done [12:01:00]FM_GetShiftState done [12:01:00]req_shift_opened done [12:01:00]requested_item shift.open_date is exist - process it [12:01:00]req_shift_open_date [12:01:00]req_shift_open_date done [12:01:00]produce_requested_data done [12:01:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70215,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:01:00]process_action_free close_receipt [12:01:00]json_value_free [12:01:00]json_value_free done [12:01:00]process_json_proto returns [12:01:00]Send response to host [12:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70215,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:01:00]free response buf [12:01:00]execute_script done [12:01:00]execute_script returns [12:01:00]free content buf [12:01:00]Sock 10.Close socket [12:01:00]Sock 10.Thread stoped [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:18]accept exits with 7 [12:01:18]New connection [12:01:18]New thread 3067026788 created [12:01:18]Thread 3067170148 joined [12:01:18]Waiting for new connection... [12:01:18] Sock 7.Parse request [12:01:18]Sock 7.Check first char [12:01:18]Sock 7.First char is OK [12:01:18]request: POST /json_proto HTTP/1.0 [12:01:18]Method: POST [12:01:18]URL: /json_proto [12:01:18]Method is POST - this is cgi request [12:01:18]url: /json_proto [12:01:18]query_string will be loaded in cgi processing [12:01:18]execute_cgi json_proto POST (null) [12:01:18]execute_cgi path=json_proto method=POST [12:01:18]POST find Content-Length [12:01:18]Host: 172.17.50.3:8080 [12:01:18]Content-Length: 678 [12:01:18]Content-Type: application/json [12:01:18] [12:01:18]POST finish read [12:01:18]Found Content-Length = 678 [12:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [12:01:18]execute_script... [12:01: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)2885982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [12:01:18]POST & json_proto [12:01:18]process_json_proto [12:01:18]json parsed OK: [12:01:18]protocol is kg_v1.0 [12:01:18]action value=close_receipt [12:01:18]process_action close_receipt [12:01:18]cmd_close_receipt [12:01:18]MH_GetDate [12:01:18]Write to MH i2c: F0 00 00 5F 61 AF [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: F0 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: F0 09 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: F0 09 00 5F 61 00 13 94 17 67 6B 98 1E 66 64 [12:01:18]GetLastDocTimeStamp 1729598461 [12:01:18]current date 1729598483 [12:01:18]FM_GetShiftState [12:01:18]SAM_PROTO_GetShiftState [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 13 01 00 [12:01:18]Write to MH i2c: E2 08 00 60 61 80 13 01 00 00 00 00 00 3E [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 0E 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 0E 00 60 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2C [12:01:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:01:18]wFMCommunicate OK [12:01:18]SAM_PROTO_GetShiftState done [12:01:18]FM_GetShiftState done [12:01:18]opened in 1729555832 [12:01:18]opened+sec_in_day 1729642232 [12:01:18]quantity*price = 50041 [12:01:18]sum+1 = 50042 [12:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 164 22.10.2024 12:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70216 ФПД: 14992192433205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120123&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70216&fm=14992192433205&tin=02508201610067®Number=0000000000156251&sum=50000 [12:01:19]StoreToDocumentArchive [12:01:19]shift 195 fd 70216 [12:01:19]save to /storage/0195/doc_00070216 [12:01:19]save last doc name /storage/0195/doc_00070216 to /storage/kkm_last_doc_name [12:01:19]save OK [12:01:19]Clear old archive folders... [12:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:19]tlvbuf is 011F7740 [12:01:19]SAM_PROTO_ClearQueue [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 09 00 00 [12:01:19]Write to MH i2c: E2 08 00 6D 61 80 09 00 00 00 00 00 00 40 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 6D 61 00 90 00 42 [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]SAM_PROTO_ClearQueue done [12:01:19]KKMCreateOFDPacket [12:01:19]OFDProtocolAddRootSTLVToBuf [12:01:19]FM_MakeSignedData [12:01:19]FM_MakeSignedData [12:01:19]SAM_PROTO_SignData [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 0D 01 02 [12:01:19]Write to MH i2c: E2 08 00 6E 61 80 0D 01 02 00 00 00 00 48 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 6E 61 00 90 00 43 [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]wFMCommunicate request_size=255 [12:01:19]MH_SAM_APDU [12:01: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 A4 00 00 00 F4 03 04 00 13 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 12 01 00 35 04 06 00 0D [12:01:19]Write to MH i2c: E2 02 01 6F 61 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 13 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 12 01 00 35 04 06 00 0D 00 00 C5 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 03 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 03 00 6F 61 00 90 00 44 [12:01:20]RAPDU: 90 00 [12:01:20]wFMCommunicate OK [12:01:20]wFMCommunicate request_size=10 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 0D 02 02 05 A2 A4 4D EC 35 [12:01:20]Write to MH i2c: E2 0D 00 70 61 80 0D 02 02 05 00 A2 A4 4D EC 35 00 00 09 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 03 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 03 00 70 61 00 90 00 45 [12:01:20]RAPDU: 90 00 [12:01:20]wFMCommunicate OK [12:01:20]wFMCommunicate request_size=4 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 0D 03 02 [12:01:20]Write to MH i2c: E2 08 00 71 61 80 0D 03 02 00 00 00 00 4D [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 0B 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 0B 00 71 61 00 6E 80 71 F3 F6 8F 36 A3 90 00 FE [12:01:20]RAPDU: 6E 80 71 F3 F6 8F 36 A3 90 00 [12:01:20]wFMCommunicate OK [12:01:20]SAM_PROTO_SignData done [12:01:20]FM_MakeSignedData done [12:01:20]CreateOFDProtocolMessage [12:01:20]wFMCommunicate request_size=4 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 11 00 00 [12:01:20]Write to MH i2c: E2 08 00 72 61 80 11 00 00 00 00 00 00 4D [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 17 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 17 00 72 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [12:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:20]wFMCommunicate OK [12:01:20]CreateOFDProtocolMessage done [12:01:20]OFDSenderStorePacket 70216 [12:01:20]StoreOFDPacket docnum=70216 [12:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 33 07 01 83 60 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 13 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 12 01 00 35 04 06 00 0D A2 A4 4D EC 35 6E 80 71 F3 F6 8F 36 A3 [12:01:20]CheckFolder [12:01:20]dirname=/storage/ofd_packets [12:01:20]CheckFolder done [12:01:20]ProducePacketName [12:01:20]name=ofd_packets/00070216 [12:01:20]NVStorageSaveData ofd_packets/00070216 [12:01:20]File name is /storage/ofd_packets/00070216 [12:01:20]Write 301 bytes [12:01:20]NVStorageSaveData done [12:01:20]OFDSenderStorePacket done [12:01:20]KKMCreateOFDPacket done [12:01:20]NVStorageSaveData kkm_last_timestamp [12:01:20]File name is /storage/kkm_last_timestamp [12:01:20]Write 4 bytes [12:01:20]NVStorageSaveData done [12:01:20]ExternCall_PrintAddStr [12:01:20]wPrintStart [12:01:20]Write to MH i2c: 01 00 00 73 61 D4 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 73 61 00 00 00 00 00 FF 0F E9 [12:01:20]RasterBufferAndPrint [12:01:20]line Счет N : (1)2885982 [12:01:20]line ИНН: 02508201610067 [12:01:20]line Контрольно-Кассовый Чек [12:01:20]line ПРОДАЖА [12:01:20]line ТРК (МРК, ГНК) : 32 [12:01:20]line Товар: 2710124130 [12:01:20]line Аи-92-К-5 [12:01:20]line 7.480 * 66.90 [12:01:20]line = 500.41 [12:01:20]line НДС 12% НСП 1% [12:01:20]line > о реализуемом товаре [12:01:20]line ОКРУГЛЕНИЕ: -0.41 [12:01:20]line ИТОГО: 500.00 [12:01:20]line Внесено: 500.00 [12:01:20]line СДАЧА: 0.00 [12:01:20]line НСП 1% : 4.43 [12:01:20]line НДС 12% : 53.14 [12:01:20]line Наличными: 500.00 [12:01:20]line Безнал.: 0.00 [12:01:20]line Место: АЗС № 85 "Партнер Нефть" [12:01:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:01:20]line СНО: Общий режим [12:01:20]line Чек 164 22.10.2024 12:01 [12:01:20]line Смена: 195 ФФД: 1.0 [12:01:20]line ЗНМ: 0300000167 [12:01:20]line РНМ: 0000000000156251 [12:01:20]line Версия ККМ: v1.0 [12:01:20]line ФМ: 0000000000963346 [12:01:20]line ФД: 70216 [12:01:20]line ФПД: 14992192433205 [12:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120123&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70216&fm=14992192433205&tin=02508201610067®Number=0000000000156251&sum=50000 [12:01:20]OFD Sender: Processing packet 70216 [packets to send 18, broken 17] [12:01:20]ProducePacketName [12:01:20]name=ofd_packets/00070216 [12:01:20]OFD Sender: To server: pG, [12:01:20]CommunicateWithHost lk.salyk.kg:30040 [12:01:20]ConnectInit lk.salyk.kg [12:01:20]written 0, free lines is 4095 [12:01:20]Connected sock=10 [12:01: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 34 36 0F 01 00 00 EF 33 07 01 83 60 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 13 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 12 01 00 35 04 06 00 0D A2 A4 4D EC 35 6E 80 71 F3 F6 8F 36 A3 [12:01: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 34 36 4F 00 00 00 99 19 47 00 85 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 34 36 10 04 04 00 48 12 01 00 F4 03 04 00 B4 3D 17 67 B6 04 01 00 00 95 9D 6B B2 30 C4 CA FC [12:01:20]CommunicateWithHost err = 0 [12:01:20]CheckOFDResponse [12:01:20]1017 (14) - 77093643461234 [12:01:20]1041 (16) - 0000000000963346 [12:01:20]1040 (4) - 70216 [12:01:20]1012 (4) - 22.10.2024 05:52 [12:01:20]1206 (1) - 0 [12:01:20]OFD Sender: Remove packet 70216 [12:01:20]ProducePacketName [12:01:20]name=ofd_packets/00070216 [12:01:20]NVStorageDeleteData [12:01:21]Write to MH i2c: 01 00 00 9E 61 FF [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 07 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 07 00 9E 61 00 00 00 00 00 F8 0C 0A [12:01:21]RasterBufferAndPrint [12:01:21]line [12:01:21]line [12:01:21]line [12:01:21]line [12:01:21]line [12:01:21]written 0, free lines is 3329 [12:01:21]MH_Cut [12:01:21]Write to MH i2c: D1 01 00 A5 61 01 D8 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: D1 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: D1 01 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: D1 01 00 A5 61 00 D7 [12:01:21]Write to MH i2c: 01 00 00 A6 61 07 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]OFD Sender: No OFD packet to send [12:01:21]*** Cut start [12:01:21]*** Partial cut [12:01:21]*** CUTSNS_PIN = 1 [12:01:21]*** CUTSNS_PIN = 0 [12:01:21]*** Brake cut motor [12:01:22]Read from MH i2c: 01 [12:01:22]MH_I2C_Read... [12:01:22]*** Stop cut motor [12:01:22]*** Cut end [12:01:22]Read from MH i2c: 01 07 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: 01 07 00 A6 61 00 00 00 00 00 FF 0F 1C [12:01:22]process_action close_receipt done [12:01:22]requested_data is exist [12:01:22]produce_requested_data [12:01:22]requested_item fm.sn is exist - process it [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 11 00 00 [12:01:22]Write to MH i2c: E2 08 00 A7 61 80 11 00 00 00 00 00 00 82 [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 17 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 17 00 A7 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [12:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:22]wFMCommunicate OK [12:01:22]requested_item fd.num is exist - process it [12:01:22]SAM_PROTO_GetFieldsCounters [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 13 00 00 [12:01:22]Write to MH i2c: E2 08 00 A8 61 80 13 00 00 00 00 00 00 85 [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 62 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 62 00 A8 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 12 01 00 0E 04 04 00 C3 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 AA [12:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 12 01 00 0E 04 04 00 C3 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 [12:01:22]wFMCommunicate OK [12:01:22]SAM_PROTO_GetFieldsCounters done [12:01:22]requested_item shift.num is exist - process it [12:01:22]requested_item shift.opened is exist - process it [12:01:22]req_shift_opened [12:01:22]FM_GetShiftState [12:01:22]SAM_PROTO_GetShiftState [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 13 01 00 [12:01:22]Write to MH i2c: E2 08 00 A9 61 80 13 01 00 00 00 00 00 87 [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 0E 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 0E 00 A9 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 75 [12:01:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:01:22]wFMCommunicate OK [12:01:22]SAM_PROTO_GetShiftState done [12:01:22]FM_GetShiftState done [12:01:22]req_shift_opened done [12:01:22]requested_item shift.open_date is exist - process it [12:01:22]req_shift_open_date [12:01:22]req_shift_open_date done [12:01:22]produce_requested_data done [12:01:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70216,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:01:22]process_action_free close_receipt [12:01:22]json_value_free [12:01:22]json_value_free done [12:01:22]process_json_proto returns [12:01:22]Send response to host [12:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70216,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:01:22]free response buf [12:01:22]execute_script done [12:01:22]execute_script returns [12:01:22]free content buf [12:01:22]Sock 7.Close socket [12:01:22]Sock 7.Thread stoped [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:48]accept exits with 9 [12:02:48]New connection [12:02:48]New thread 3067170148 created [12:02:48]Thread 3067026788 joined [12:02:48]Waiting for new connection... [12:02:48] Sock 9.Parse request [12:02:48]Sock 9.Check first char [12:02:48]Sock 9.First char is OK [12:02:48]request: POST /json_proto HTTP/1.0 [12:02:48]Method: POST [12:02:48]URL: /json_proto [12:02:48]Method is POST - this is cgi request [12:02:48]url: /json_proto [12:02:48]query_string will be loaded in cgi processing [12:02:48]execute_cgi json_proto POST (null) [12:02:48]execute_cgi path=json_proto method=POST [12:02:48]POST find Content-Length [12:02:48]Host: 172.17.50.3:8080 [12:02:48]Content-Length: 678 [12:02:48]Content-Type: application/json [12:02:48] [12:02:48]POST finish read [12:02:48]Found Content-Length = 678 [12:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [12:02:48]execute_script... [12:02: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)2885985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [12:02:48]POST & json_proto [12:02:48]process_json_proto [12:02:48]json parsed OK: [12:02:48]protocol is kg_v1.0 [12:02:48]action value=close_receipt [12:02:48]process_action close_receipt [12:02:48]cmd_close_receipt [12:02:48]MH_GetDate [12:02:48]Write to MH i2c: F0 00 00 AA 61 FA [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: F0 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: F0 09 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: F0 09 00 AA 61 00 6D 94 17 67 6B 98 1E 66 09 [12:02:48]GetLastDocTimeStamp 1729598483 [12:02:48]current date 1729598573 [12:02:48]FM_GetShiftState [12:02:48]SAM_PROTO_GetShiftState [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 13 01 00 [12:02:48]Write to MH i2c: E2 08 00 AB 61 80 13 01 00 00 00 00 00 89 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0E 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0E 00 AB 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [12:02:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_GetShiftState done [12:02:48]FM_GetShiftState done [12:02:48]opened in 1729555832 [12:02:48]opened+sec_in_day 1729642232 [12:02:48]quantity*price = 60009 [12:02:48]sum+1 = 60010 [12:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 165 22.10.2024 12:02 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70217 ФПД: 147692303998027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70217&fm=147692303998027&tin=02508201610067®Number=0000000000156251&sum=60000 [12:02:49]StoreToDocumentArchive [12:02:49]shift 195 fd 70217 [12:02:49]save to /storage/0195/doc_00070217 [12:02:49]save last doc name /storage/0195/doc_00070217 to /storage/kkm_last_doc_name [12:02:49]save OK [12:02:49]Clear old archive folders... [12:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:49]tlvbuf is 01123D40 [12:02:49]SAM_PROTO_ClearQueue [12:02:49]wFMCommunicate request_size=4 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 09 00 00 [12:02:49]Write to MH i2c: E2 08 00 B8 61 80 09 00 00 00 00 00 00 8B [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 B8 61 00 90 00 8D [12:02:49]RAPDU: 90 00 [12:02:49]wFMCommunicate OK [12:02:49]SAM_PROTO_ClearQueue done [12:02:49]KKMCreateOFDPacket [12:02:49]OFDProtocolAddRootSTLVToBuf [12:02:49]FM_MakeSignedData [12:02:49]FM_MakeSignedData [12:02:49]SAM_PROTO_SignData [12:02:49]wFMCommunicate request_size=4 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 0D 01 02 [12:02:49]Write to MH i2c: E2 08 00 B9 61 80 0D 01 02 00 00 00 00 93 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 B9 61 00 90 00 8E [12:02:49]RAPDU: 90 00 [12:02:49]wFMCommunicate OK [12:02:49]wFMCommunicate request_size=255 [12:02:49]MH_SAM_APDU [12:02: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 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 A5 00 00 00 F4 03 04 00 6D 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 12 01 00 35 04 06 00 86 [12:02:49]Write to MH i2c: E2 02 01 BA 61 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 A5 00 00 00 F4 03 04 00 6D 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 12 01 00 35 04 06 00 86 00 00 C2 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 BA 61 00 90 00 8F [12:02:49]RAPDU: 90 00 [12:02:49]wFMCommunicate OK [12:02:49]wFMCommunicate request_size=10 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 0D 02 02 05 53 4B 50 DC 4B [12:02:49]Write to MH i2c: E2 0D 00 BB 61 80 0D 02 02 05 00 53 4B 50 DC 4B 00 00 B5 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 03 00 BB 61 00 90 00 90 [12:02:49]RAPDU: 90 00 [12:02:49]wFMCommunicate OK [12:02:49]wFMCommunicate request_size=4 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 0D 03 02 [12:02:49]Write to MH i2c: E2 08 00 BC 61 80 0D 03 02 00 00 00 00 98 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0B 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0B 00 BC 61 00 9E 8B 5C EA 23 00 85 9A 90 00 4A [12:02:49]RAPDU: 9E 8B 5C EA 23 00 85 9A 90 00 [12:02:49]wFMCommunicate OK [12:02:49]SAM_PROTO_SignData done [12:02:49]FM_MakeSignedData done [12:02:49]CreateOFDProtocolMessage [12:02:49]wFMCommunicate request_size=4 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 11 00 00 [12:02:49]Write to MH i2c: E2 08 00 BD 61 80 11 00 00 00 00 00 00 98 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:50]Read from MH i2c: E2 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: E2 17 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: E2 17 00 BD 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [12:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:50]wFMCommunicate OK [12:02:50]CreateOFDProtocolMessage done [12:02:50]OFDSenderStorePacket 70217 [12:02:50]StoreOFDPacket docnum=70217 [12:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 06 07 01 E0 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 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 A5 00 00 00 F4 03 04 00 6D 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 12 01 00 35 04 06 00 86 53 4B 50 DC 4B 9E 8B 5C EA 23 00 85 9A [12:02:50]CheckFolder [12:02:50]dirname=/storage/ofd_packets [12:02:50]CheckFolder done [12:02:50]ProducePacketName [12:02:50]name=ofd_packets/00070217 [12:02:50]NVStorageSaveData ofd_packets/00070217 [12:02:50]File name is /storage/ofd_packets/00070217 [12:02:50]Write 301 bytes [12:02:50]NVStorageSaveData done [12:02:50]OFDSenderStorePacket done [12:02:50]KKMCreateOFDPacket done [12:02:50]NVStorageSaveData kkm_last_timestamp [12:02:50]File name is /storage/kkm_last_timestamp [12:02:50]Write 4 bytes [12:02:50]NVStorageSaveData done [12:02:50]ExternCall_PrintAddStr [12:02:50]wPrintStart [12:02:50]Write to MH i2c: 01 00 00 BE 61 1F [12:02:50]Write i2c OK [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 07 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 07 00 BE 61 00 00 00 00 00 FF 0F 34 [12:02:50]RasterBufferAndPrint [12:02:50]line Счет N : (1)2885985 [12:02:50]line ИНН: 02508201610067 [12:02:50]line Контрольно-Кассовый Чек [12:02:50]line ПРОДАЖА [12:02:50]line ТРК (МРК, ГНК) : 12 [12:02:50]line Товар: 2710124130 [12:02:50]line Аи-92-К-5 [12:02:50]line 8.970 * 66.90 [12:02:50]line = 600.09 [12:02:50]line НДС 12% НСП 1% [12:02:50]line > о реализуемом товаре [12:02:50]line ОКРУГЛЕНИЕ: -0.09 [12:02:50]line ИТОГО: 600.00 [12:02:50]line Внесено: 600.00 [12:02:50]line СДАЧА: 0.00 [12:02:50]line НСП 1% : 5.31 [12:02:50]line НДС 12% : 63.73 [12:02:50]line Наличными: 600.00 [12:02:50]line Безнал.: 0.00 [12:02:50]line Место: АЗС № 85 "Партнер Нефть" [12:02:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:02:50]line СНО: Общий режим [12:02:50]line Чек 165 22.10.2024 12:02 [12:02:50]line Смена: 195 ФФД: 1.0 [12:02:50]line ЗНМ: 0300000167 [12:02:50]line РНМ: 0000000000156251 [12:02:50]line Версия ККМ: v1.0 [12:02:50]line ФМ: 0000000000963346 [12:02:50]line ФД: 70217 [12:02:50]line ФПД: 147692303998027 [12:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70217&fm=147692303998027&tin=02508201610067®Number=0000000000156251&sum=60000 [12:02:50]OFD Sender: Processing packet 70217 [packets to send 18, broken 17] [12:02:50]ProducePacketName [12:02:50]name=ofd_packets/00070217 [12:02:50]OFD Sender: To server: pG, [12:02:50]CommunicateWithHost lk.salyk.kg:30040 [12:02:50]ConnectInit lk.salyk.kg [12:02:50]written 0, free lines is 4095 [12:02:50]Connected sock=10 [12:02: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 34 36 0F 01 00 00 64 06 07 01 E0 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 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 A5 00 00 00 F4 03 04 00 6D 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 12 01 00 35 04 06 00 86 53 4B 50 DC 4B 9E 8B 5C EA 23 00 85 9A [12:02: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 34 36 4F 00 00 00 D9 F6 47 00 86 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 34 36 10 04 04 00 49 12 01 00 F4 03 04 00 0E 3E 17 67 B6 04 01 00 00 04 85 95 77 0A C5 13 D6 [12:02:50]CommunicateWithHost err = 0 [12:02:50]CheckOFDResponse [12:02:50]1017 (14) - 77093643461234 [12:02:50]1041 (16) - 0000000000963346 [12:02:50]1040 (4) - 70217 [12:02:50]1012 (4) - 22.10.2024 05:54 [12:02:50]1206 (1) - 0 [12:02:50]OFD Sender: Remove packet 70217 [12:02:50]ProducePacketName [12:02:50]name=ofd_packets/00070217 [12:02:50]NVStorageDeleteData [12:02:50]Write to MH i2c: 01 00 00 E9 61 4A [12:02:50]Write i2c OK [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 07 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 07 00 E9 61 00 00 00 00 00 06 0D 64 [12:02:50]RasterBufferAndPrint [12:02:50]line [12:02:50]line [12:02:50]line [12:02:50]line [12:02:50]line [12:02:50]written 0, free lines is 3343 [12:02:50]MH_Cut [12:02:50]Write to MH i2c: D1 01 00 F0 61 01 23 [12:02:50]Write i2c OK [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: D1 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: D1 01 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: D1 01 00 F0 61 00 22 [12:02:50]Write to MH i2c: 01 00 00 F1 61 52 [12:02:50]Write i2c OK [12:02:50]MH_I2C_Read... [12:02:51]OFD Sender: No OFD packet to send [12:02:51]*** Cut start [12:02:51]*** Partial cut [12:02:51]*** CUTSNS_PIN = 1 [12:02:51]*** CUTSNS_PIN = 0 [12:02:51]*** Brake cut motor [12:02:52]Read from MH i2c: 01 [12:02:52]MH_I2C_Read... [12:02:52]*** Stop cut motor [12:02:52]*** Cut end [12:02:52]Read from MH i2c: 01 07 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: 01 07 00 F1 61 00 00 00 00 00 FF 0F 67 [12:02:52]process_action close_receipt done [12:02:52]requested_data is exist [12:02:52]produce_requested_data [12:02:52]requested_item fm.sn is exist - process it [12:02:52]wFMCommunicate request_size=4 [12:02:52]MH_SAM_APDU [12:02:52]CAPDU: 80 11 00 00 [12:02:52]Write to MH i2c: E2 08 00 F2 61 80 11 00 00 00 00 00 00 CD [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:52]Read from MH i2c: E2 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 17 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 17 00 F2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [12:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:52]wFMCommunicate OK [12:02:52]requested_item fd.num is exist - process it [12:02:52]SAM_PROTO_GetFieldsCounters [12:02:52]wFMCommunicate request_size=4 [12:02:52]MH_SAM_APDU [12:02:52]CAPDU: 80 13 00 00 [12:02:52]Write to MH i2c: E2 08 00 F3 61 80 13 00 00 00 00 00 00 D0 [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:52]Read from MH i2c: E2 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 62 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 62 00 F3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 12 01 00 0E 04 04 00 C3 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 F9 [12:02: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 12 01 00 0E 04 04 00 C3 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 [12:02:52]wFMCommunicate OK [12:02:52]SAM_PROTO_GetFieldsCounters done [12:02:52]requested_item shift.num is exist - process it [12:02:52]requested_item shift.opened is exist - process it [12:02:52]req_shift_opened [12:02:52]FM_GetShiftState [12:02:52]SAM_PROTO_GetShiftState [12:02:52]wFMCommunicate request_size=4 [12:02:52]MH_SAM_APDU [12:02:52]CAPDU: 80 13 01 00 [12:02:52]Write to MH i2c: E2 08 00 F4 61 80 13 01 00 00 00 00 00 D2 [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:52]Read from MH i2c: E2 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 0E 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: E2 0E 00 F4 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C0 [12:02:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:02:52]wFMCommunicate OK [12:02:52]SAM_PROTO_GetShiftState done [12:02:52]FM_GetShiftState done [12:02:52]req_shift_opened done [12:02:52]requested_item shift.open_date is exist - process it [12:02:52]req_shift_open_date [12:02:52]req_shift_open_date done [12:02:52]produce_requested_data done [12:02:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70217,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:02:52]process_action_free close_receipt [12:02:52]json_value_free [12:02:52]json_value_free done [12:02:52]process_json_proto returns [12:02:52]Send response to host [12:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70217,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:02:52]free response buf [12:02:52]execute_script done [12:02:52]execute_script returns [12:02:52]free content buf [12:02:52]Sock 9.Close socket [12:02:52]Sock 9.Thread stoped [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:25]accept exits with 7 [12:04:25]New connection [12:04:25]New thread 3067026788 created [12:04:25]Thread 3067170148 joined [12:04:25]Waiting for new connection... [12:04:25] Sock 7.Parse request [12:04:25]Sock 7.Check first char [12:04:25]Sock 7.First char is OK [12:04:25]request: POST /json_proto HTTP/1.0 [12:04:25]Method: POST [12:04:25]URL: /json_proto [12:04:25]Method is POST - this is cgi request [12:04:25]url: /json_proto [12:04:25]query_string will be loaded in cgi processing [12:04:25]execute_cgi json_proto POST (null) [12:04:25]execute_cgi path=json_proto method=POST [12:04:25]POST find Content-Length [12:04:25]Host: 172.17.50.3:8080 [12:04:25]Content-Length: 978 [12:04:25]Content-Type: application/json [12:04:25] [12:04:25]POST finish read [12:04:25]Found Content-Length = 978 [12:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "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" ] } } [12:04:25]execute_script... [12:04: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)2885984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "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" ] } } [12:04:25]POST & json_proto [12:04:25]process_json_proto [12:04:25]json parsed OK: [12:04:25]protocol is kg_v1.0 [12:04:25]action value=close_receipt [12:04:25]process_action close_receipt [12:04:25]cmd_close_receipt [12:04:25]MH_GetDate [12:04:25]Write to MH i2c: F0 00 00 F5 61 45 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 09 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 09 00 F5 61 00 CF 94 17 67 6B 98 1E 66 B6 [12:04:26]GetLastDocTimeStamp 1729598573 [12:04:26]current date 1729598671 [12:04:26]FM_GetShiftState [12:04:26]SAM_PROTO_GetShiftState [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 13 01 00 [12:04:26]Write to MH i2c: E2 08 00 F6 61 80 13 01 00 00 00 00 00 D4 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0E 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0E 00 F6 61 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [12:04:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:04:26]wFMCommunicate OK [12:04:26]SAM_PROTO_GetShiftState done [12:04:26]FM_GetShiftState done [12:04:26]opened in 1729555832 [12:04:26]opened+sec_in_day 1729642232 [12:04:26]quantity*price = 600020 [12:04:26]sum+1 = 600022 [12:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 166 22.10.2024 12:04 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 79.79 сом ФМ: 0000000000963346 ФД: 70218 ФПД: 167837436497876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70218&fm=167837436497876&tin=02508201610067®Number=0000000000156251&sum=600000 [12:04:27]StoreToDocumentArchive [12:04:27]shift 195 fd 70218 [12:04:27]save to /storage/0195/doc_00070218 [12:04:27]save last doc name /storage/0195/doc_00070218 to /storage/kkm_last_doc_name [12:04:27]save OK [12:04:27]Clear old archive folders... [12:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:27]tlvbuf is 01142900 [12:04:27]SAM_PROTO_ClearQueue [12:04:27]wFMCommunicate request_size=4 [12:04:27]MH_SAM_APDU [12:04:27]CAPDU: 80 09 00 00 [12:04:27]Write to MH i2c: E2 08 00 03 62 80 09 00 00 00 00 00 00 D7 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 03 62 00 90 00 D9 [12:04:27]RAPDU: 90 00 [12:04:27]wFMCommunicate OK [12:04:27]SAM_PROTO_ClearQueue done [12:04:27]KKMCreateOFDPacket [12:04:27]OFDProtocolAddRootSTLVToBuf [12:04:27]FM_MakeSignedData [12:04:27]FM_MakeSignedData [12:04:27]SAM_PROTO_SignData [12:04:27]wFMCommunicate request_size=4 [12:04:27]MH_SAM_APDU [12:04:27]CAPDU: 80 0D 01 02 [12:04:27]Write to MH i2c: E2 08 00 04 62 80 0D 01 02 00 00 00 00 DF [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 04 62 00 90 00 DA [12:04:27]RAPDU: 90 00 [12:04:27]wFMCommunicate OK [12:04:27]wFMCommunicate request_size=255 [12:04:27]MH_SAM_APDU [12:04: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 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 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 E7 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 A6 00 00 00 F4 03 04 00 CF 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 12 01 00 35 04 06 00 98 A5 B2 C8 [12:04:27]Write to MH i2c: E2 02 01 05 62 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 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 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 E7 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 A6 00 00 00 F4 03 04 00 CF 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 12 01 00 35 04 06 00 98 A5 B2 C8 00 00 8D [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 05 62 00 90 00 DB [12:04:27]RAPDU: 90 00 [12:04:27]wFMCommunicate OK [12:04:27]wFMCommunicate request_size=7 [12:04:27]MH_SAM_APDU [12:04:27]CAPDU: 80 0D 02 02 02 4F D4 [12:04:27]Write to MH i2c: E2 0A 00 06 62 80 0D 02 02 02 00 4F D4 00 00 09 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 03 00 06 62 00 90 00 DC [12:04:27]RAPDU: 90 00 [12:04:27]wFMCommunicate OK [12:04:27]wFMCommunicate request_size=4 [12:04:27]MH_SAM_APDU [12:04:27]CAPDU: 80 0D 03 02 [12:04:27]Write to MH i2c: E2 08 00 07 62 80 0D 03 02 00 00 00 00 E4 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 0B 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 0B 00 07 62 00 EA 77 F5 B3 1C 3F 1A 0B 90 00 6E [12:04:27]RAPDU: EA 77 F5 B3 1C 3F 1A 0B 90 00 [12:04:27]wFMCommunicate OK [12:04:27]SAM_PROTO_SignData done [12:04:27]FM_MakeSignedData done [12:04:27]CreateOFDProtocolMessage [12:04:27]wFMCommunicate request_size=4 [12:04:27]MH_SAM_APDU [12:04:27]CAPDU: 80 11 00 00 [12:04:27]Write to MH i2c: E2 08 00 08 62 80 11 00 00 00 00 00 00 E4 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 17 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 17 00 08 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [12:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:27]wFMCommunicate OK [12:04:27]CreateOFDProtocolMessage done [12:04:27]OFDSenderStorePacket 70218 [12:04:27]StoreOFDPacket docnum=70218 [12:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 75 9C 04 01 60 D5 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 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 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 E7 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 A6 00 00 00 F4 03 04 00 CF 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 12 01 00 35 04 06 00 98 A5 B2 C8 4F D4 EA 77 F5 B3 1C 3F 1A 0B [12:04:27]CheckFolder [12:04:27]dirname=/storage/ofd_packets [12:04:27]CheckFolder done [12:04:27]ProducePacketName [12:04:27]name=ofd_packets/00070218 [12:04:27]NVStorageSaveData ofd_packets/00070218 [12:04:27]File name is /storage/ofd_packets/00070218 [12:04:27]Write 298 bytes [12:04:27]NVStorageSaveData done [12:04:27]OFDSenderStorePacket done [12:04:27]KKMCreateOFDPacket done [12:04:27]NVStorageSaveData kkm_last_timestamp [12:04:27]File name is /storage/kkm_last_timestamp [12:04:27]Write 4 bytes [12:04:27]NVStorageSaveData done [12:04:27]ExternCall_PrintAddStr [12:04:27]wPrintStart [12:04:27]Write to MH i2c: 01 00 00 09 62 6B [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 07 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 07 00 09 62 00 00 00 00 00 FF 0F 80 [12:04:27]RasterBufferAndPrint [12:04:27]line Счет N : (1)2885984 [12:04:27]line ИНН: 02508201610067 [12:04:27]line Контрольно-Кассовый Чек [12:04:27]line ПРОДАЖА [12:04:27]line ТРК (МРК, ГНК) : 61 [12:04:27]line Товар: 2710194210 [12:04:27]line ДТ-К-5 [12:04:27]line 79.790 * 75.20 [12:04:27]line = 6000.21 [12:04:27]line НДС 12% НСП 1% [12:04:27]line > о реализуемом товаре [12:04:27]line ОКРУГЛЕНИЕ: -0.21 [12:04:27]line ИТОГО: 6000.00 [12:04:27]line Внесено: 6000.00 [12:04:27]line СДАЧА: 0.00 [12:04:27]line НСП 1% : 53.10 [12:04:27]line НДС 12% : 637.19 [12:04:27]line Наличными: 6000.00 [12:04:27]line Безнал.: 0.00 [12:04:27]line Место: АЗС № 85 "Партнер Нефть" [12:04:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:04:27]line СНО: Общий режим [12:04:27]line Чек 166 22.10.2024 12:04 [12:04:27]line Смена: 195 ФФД: 1.0 [12:04:27]line ЗНМ: 0300000167 [12:04:27]line РНМ: 0000000000156251 [12:04:27]line Версия ККМ: v1.0 [12:04:27]line [12:04:27]line Дисконтная программа [12:04:27]line ДТ [12:04:28]line номер 85 [12:04:28]line сэкономлено 79.79 сом [12:04:28]line ФМ: 0000000000963346 [12:04:28]line ФД: 70218 [12:04:28]line ФПД: 167837436497876 [12:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70218&fm=167837436497876&tin=02508201610067®Number=0000000000156251&sum=600000 [12:04:28]OFD Sender: Processing packet 70218 [packets to send 18, broken 17] [12:04:28]ProducePacketName [12:04:28]name=ofd_packets/00070218 [12:04:28]OFD Sender: To server: pG, [12:04:28]CommunicateWithHost lk.salyk.kg:30040 [12:04:28]ConnectInit lk.salyk.kg [12:04:28]written 0, free lines is 4095 [12:04:28]Connected sock=10 [12:04: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 34 36 0C 01 00 00 75 9C 04 01 60 D5 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 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 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 E7 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 A6 00 00 00 F4 03 04 00 CF 94 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 12 01 00 35 04 06 00 98 A5 B2 C8 4F D4 EA 77 F5 B3 1C 3F 1A 0B [12:04: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 34 36 4F 00 00 00 2D C8 47 00 FC 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 12 01 00 F4 03 04 00 70 3E 17 67 B6 04 01 00 00 B8 1E A0 97 C1 99 1D F4 [12:04:28]CommunicateWithHost err = 0 [12:04:28]CheckOFDResponse [12:04:28]1017 (14) - 77093643461234 [12:04:28]1041 (16) - 0000000000963346 [12:04:28]1040 (4) - 70218 [12:04:28]1012 (4) - 22.10.2024 05:56 [12:04:28]1206 (1) - 0 [12:04:28]OFD Sender: Remove packet 70218 [12:04:28]ProducePacketName [12:04:28]name=ofd_packets/00070218 [12:04:28]NVStorageDeleteData [12:04:28]Write to MH i2c: 01 00 00 39 62 9B [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 07 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 07 00 39 62 00 00 00 00 00 97 0C 45 [12:04:28]RasterBufferAndPrint [12:04:28]line [12:04:28]line [12:04:28]line [12:04:28]line [12:04:28]line [12:04:28]written 0, free lines is 3229 [12:04:28]MH_Cut [12:04:28]Write to MH i2c: D1 01 00 40 62 01 74 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: D1 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: D1 01 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: D1 01 00 40 62 00 73 [12:04:28]Write to MH i2c: 01 00 00 41 62 A3 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]OFD Sender: No OFD packet to send [12:04:29]*** Cut start [12:04:29]*** Partial cut [12:04:29]*** CUTSNS_PIN = 1 [12:04:29]*** CUTSNS_PIN = 0 [12:04:29]*** Brake cut motor [12:04:29]Read from MH i2c: 01 [12:04:29]MH_I2C_Read... [12:04:29]*** Stop cut motor [12:04:29]*** Cut end [12:04:29]Read from MH i2c: 01 07 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: 01 07 00 41 62 00 00 00 00 00 FF 0F B8 [12:04:29]process_action close_receipt done [12:04:29]requested_data is exist [12:04:29]produce_requested_data [12:04:29]requested_item fm.sn is exist - process it [12:04:29]wFMCommunicate request_size=4 [12:04:29]MH_SAM_APDU [12:04:29]CAPDU: 80 11 00 00 [12:04:29]Write to MH i2c: E2 08 00 42 62 80 11 00 00 00 00 00 00 1E [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:29]Read from MH i2c: E2 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 17 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 17 00 42 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [12:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:29]wFMCommunicate OK [12:04:29]requested_item fd.num is exist - process it [12:04:29]SAM_PROTO_GetFieldsCounters [12:04:29]wFMCommunicate request_size=4 [12:04:29]MH_SAM_APDU [12:04:29]CAPDU: 80 13 00 00 [12:04:29]Write to MH i2c: E2 08 00 43 62 80 13 00 00 00 00 00 00 21 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 62 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 62 00 43 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 12 01 00 0E 04 04 00 C3 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 4E [12:04: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 12 01 00 0E 04 04 00 C3 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 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_GetFieldsCounters done [12:04:30]requested_item shift.num is exist - process it [12:04:30]requested_item shift.opened is exist - process it [12:04:30]req_shift_opened [12:04:30]FM_GetShiftState [12:04:30]SAM_PROTO_GetShiftState [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 13 01 00 [12:04:30]Write to MH i2c: E2 08 00 44 62 80 13 01 00 00 00 00 00 23 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 44 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 11 [12:04:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_GetShiftState done [12:04:30]FM_GetShiftState done [12:04:30]req_shift_opened done [12:04:30]requested_item shift.open_date is exist - process it [12:04:30]req_shift_open_date [12:04:30]req_shift_open_date done [12:04:30]produce_requested_data done [12:04:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70218,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:04:30]process_action_free close_receipt [12:04:30]json_value_free [12:04:30]json_value_free done [12:04:30]process_json_proto returns [12:04:30]Send response to host [12:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70218,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:04:30]free response buf [12:04:30]execute_script done [12:04:30]execute_script returns [12:04:30]free content buf [12:04:30]Sock 7.Close socket [12:04:30]Sock 7.Thread stoped [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:10]accept exits with 9 [12:06:10]New connection [12:06:10]New thread 3067170148 created [12:06:10]Thread 3067026788 joined [12:06:10]Waiting for new connection... [12:06:10] Sock 9.Parse request [12:06:10]Sock 9.Check first char [12:06:10]Sock 9.First char is OK [12:06:10]request: POST /json_proto HTTP/1.0 [12:06:10]Method: POST [12:06:10]URL: /json_proto [12:06:10]Method is POST - this is cgi request [12:06:10]url: /json_proto [12:06:10]query_string will be loaded in cgi processing [12:06:10]execute_cgi json_proto POST (null) [12:06:10]execute_cgi path=json_proto method=POST [12:06:10]POST find Content-Length [12:06:10]Host: 172.17.50.3:8080 [12:06:10]Content-Length: 689 [12:06:10]Content-Type: application/json [12:06:10] [12:06:10]POST finish read [12:06:10]Found Content-Length = 689 [12:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [12:06:10]execute_script... [12: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)2885986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [12:06:10]POST & json_proto [12:06:10]process_json_proto [12:06:10]json parsed OK: [12:06:10]protocol is kg_v1.0 [12:06:10]action value=close_receipt [12:06:10]process_action close_receipt [12:06:10]cmd_close_receipt [12:06:10]MH_GetDate [12:06:10]Write to MH i2c: F0 00 00 45 62 96 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: F0 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: F0 09 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: F0 09 00 45 62 00 38 95 17 67 6B 98 1E 66 71 [12:06:10]GetLastDocTimeStamp 1729598671 [12:06:10]current date 1729598776 [12:06:10]FM_GetShiftState [12:06:10]SAM_PROTO_GetShiftState [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 13 01 00 [12:06:10]Write to MH i2c: E2 08 00 46 62 80 13 01 00 00 00 00 00 25 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:11]Read from MH i2c: E2 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: E2 0E 00 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: E2 0E 00 46 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 13 [12:06:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:06:11]wFMCommunicate OK [12:06:11]SAM_PROTO_GetShiftState done [12:06:11]FM_GetShiftState done [12:06:11]opened in 1729555832 [12:06:11]opened+sec_in_day 1729642232 [12:06:11]quantity*price = 150076 [12:06:11]sum+1 = 150078 [12:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 167 22.10.2024 12:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70219 ФПД: 39526876577317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70219&fm=39526876577317&tin=02508201610067®Number=0000000000156251&sum=150000 [12:06:12]StoreToDocumentArchive [12:06:12]shift 195 fd 70219 [12:06:12]save to /storage/0195/doc_00070219 [12:06:12]save last doc name /storage/0195/doc_00070219 to /storage/kkm_last_doc_name [12:06:12]save OK [12:06:12]Clear old archive folders... [12:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:06:12]tlvbuf is 01308750 [12:06:12]SAM_PROTO_ClearQueue [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 09 00 00 [12:06:12]Write to MH i2c: E2 08 00 53 62 80 09 00 00 00 00 00 00 27 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 53 62 00 90 00 29 [12:06:12]RAPDU: 90 00 [12:06:12]wFMCommunicate OK [12:06:12]SAM_PROTO_ClearQueue done [12:06:12]KKMCreateOFDPacket [12:06:12]OFDProtocolAddRootSTLVToBuf [12:06:12]FM_MakeSignedData [12:06:12]FM_MakeSignedData [12:06:12]SAM_PROTO_SignData [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 0D 01 02 [12:06:12]Write to MH i2c: E2 08 00 54 62 80 0D 01 02 00 00 00 00 2F [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 54 62 00 90 00 2A [12:06:12]RAPDU: 90 00 [12:06:12]wFMCommunicate OK [12:06:12]wFMCommunicate request_size=255 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 A7 00 00 00 F4 03 04 00 38 95 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 12 01 [12:06:12]Write to MH i2c: E2 02 01 55 62 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 A7 00 00 00 F4 03 04 00 38 95 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 12 01 00 00 E6 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 55 62 00 90 00 2B [12:06:12]RAPDU: 90 00 [12:06:12]wFMCommunicate OK [12:06:12]wFMCommunicate request_size=16 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 F3 11 6F FE 25 [12:06:12]Write to MH i2c: E2 13 00 56 62 80 0D 02 02 0B 00 00 35 04 06 00 23 F3 11 6F FE 25 00 00 40 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 03 00 56 62 00 90 00 2C [12:06:12]RAPDU: 90 00 [12:06:12]wFMCommunicate OK [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 0D 03 02 [12:06:12]Write to MH i2c: E2 08 00 57 62 80 0D 03 02 00 00 00 00 34 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 0B 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 0B 00 57 62 00 75 9A 24 C7 6A BB A4 EF 90 00 E7 [12:06:12]RAPDU: 75 9A 24 C7 6A BB A4 EF 90 00 [12:06:12]wFMCommunicate OK [12:06:12]SAM_PROTO_SignData done [12:06:12]FM_MakeSignedData done [12:06:12]CreateOFDProtocolMessage [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 11 00 00 [12:06:12]Write to MH i2c: E2 08 00 58 62 80 11 00 00 00 00 00 00 34 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 58 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [12:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:06:12]wFMCommunicate OK [12:06:12]CreateOFDProtocolMessage done [12:06:12]OFDSenderStorePacket 70219 [12:06:12]StoreOFDPacket docnum=70219 [12:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 23 CD 0D 01 35 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 A7 00 00 00 F4 03 04 00 38 95 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 12 01 00 35 04 06 00 23 F3 11 6F FE 25 75 9A 24 C7 6A BB A4 EF [12:06:12]CheckFolder [12:06:12]dirname=/storage/ofd_packets [12:06:12]CheckFolder done [12:06:12]ProducePacketName [12:06:12]name=ofd_packets/00070219 [12:06:12]NVStorageSaveData ofd_packets/00070219 [12:06:12]File name is /storage/ofd_packets/00070219 [12:06:12]Write 307 bytes [12:06:12]NVStorageSaveData done [12:06:12]OFDSenderStorePacket done [12:06:12]KKMCreateOFDPacket done [12:06:12]NVStorageSaveData kkm_last_timestamp [12:06:12]File name is /storage/kkm_last_timestamp [12:06:12]Write 4 bytes [12:06:12]NVStorageSaveData done [12:06:12]ExternCall_PrintAddStr [12:06:12]wPrintStart [12:06:12]Write to MH i2c: 01 00 00 59 62 BB [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: 01 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: 01 07 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: 01 07 00 59 62 00 00 00 00 00 FF 0F D0 [12:06:12]RasterBufferAndPrint [12:06:12]line Счет N : (1)2885986 [12:06:12]line ИНН: 02508201610067 [12:06:12]line Контрольно-Кассовый Чек [12:06:12]line ПРОДАЖА [12:06:12]line ТРК (МРК, ГНК) : 11 [12:06:12]line Товар: 2710194240 [12:06:12]line D-ENERGY Дт-К-2 [12:06:12]line 19.440 * 77.20 [12:06:12]line = 1500.77 [12:06:12]line НДС 12% НСП 1% [12:06:12]line > о реализуемом товаре [12:06:12]line ОКРУГЛЕНИЕ: -0.77 [12:06:12]line ИТОГО: 1500.00 [12:06:12]line Внесено: 1500.00 [12:06:12]line СДАЧА: 0.00 [12:06:12]line НСП 1% : 13.28 [12:06:12]line НДС 12% : 159.37 [12:06:12]line Наличными: 1500.00 [12:06:12]line Безнал.: 0.00 [12:06:12]line Место: АЗС № 85 "Партнер Нефть" [12:06:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:06:12]line СНО: Общий режим [12:06:12]line Чек 167 22.10.2024 12:06 [12:06:12]line Смена: 195 ФФД: 1.0 [12:06:12]line ЗНМ: 0300000167 [12:06:12]line РНМ: 0000000000156251 [12:06:12]line Версия ККМ: v1.0 [12:06:12]line ФМ: 0000000000963346 [12:06:12]line ФД: 70219 [12:06:12]line ФПД: 39526876577317 [12:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70219&fm=39526876577317&tin=02508201610067®Number=0000000000156251&sum=150000 [12:06:13]OFD Sender: Processing packet 70219 [packets to send 18, broken 17] [12:06:13]ProducePacketName [12:06:13]name=ofd_packets/00070219 [12:06:13]OFD Sender: To server: pG, [12:06:13]CommunicateWithHost lk.salyk.kg:30040 [12:06:13]ConnectInit lk.salyk.kg [12:06:13]written 0, free lines is 4095 [12:06:13]Connected sock=10 [12:06: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 34 36 15 01 00 00 23 CD 0D 01 35 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 A7 00 00 00 F4 03 04 00 38 95 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 12 01 00 35 04 06 00 23 F3 11 6F FE 25 75 9A 24 C7 6A BB A4 EF [12:06: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 34 36 4F 00 00 00 28 40 47 00 22 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 12 01 00 F4 03 04 00 D9 3E 17 67 B6 04 01 00 00 90 A2 DB 46 B4 38 F7 48 [12:06:13]CommunicateWithHost err = 0 [12:06:13]CheckOFDResponse [12:06:13]1017 (14) - 77093643461234 [12:06:13]1041 (16) - 0000000000963346 [12:06:13]1040 (4) - 70219 [12:06:13]1012 (4) - 22.10.2024 05:57 [12:06:13]1206 (1) - 0 [12:06:13]OFD Sender: Remove packet 70219 [12:06:13]ProducePacketName [12:06:13]name=ofd_packets/00070219 [12:06:13]NVStorageDeleteData [12:06:13]Write to MH i2c: 01 00 00 84 62 E6 [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: 01 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: 01 07 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: 01 07 00 84 62 00 00 00 00 00 F3 0C EC [12:06:13]RasterBufferAndPrint [12:06:13]line [12:06:13]line [12:06:13]line [12:06:13]line [12:06:13]line [12:06:13]written 0, free lines is 3321 [12:06:13]MH_Cut [12:06:13]Write to MH i2c: D1 01 00 8B 62 01 BF [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: D1 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: D1 01 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: D1 01 00 8B 62 00 BE [12:06:13]Write to MH i2c: 01 00 00 8C 62 EE [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]OFD Sender: No OFD packet to send [12:06:14]*** Cut start [12:06:14]*** Partial cut [12:06:14]*** CUTSNS_PIN = 1 [12:06:14]*** CUTSNS_PIN = 0 [12:06:14]*** Brake cut motor [12:06:14]Read from MH i2c: 01 [12:06:14]MH_I2C_Read... [12:06:14]*** Stop cut motor [12:06:14]*** Cut end [12:06:14]Read from MH i2c: 01 07 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: 01 07 00 8C 62 00 00 00 00 00 FF 0F 03 [12:06:14]process_action close_receipt done [12:06:14]requested_data is exist [12:06:14]produce_requested_data [12:06:14]requested_item fm.sn is exist - process it [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 11 00 00 [12:06:14]Write to MH i2c: E2 08 00 8D 62 80 11 00 00 00 00 00 00 69 [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 17 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 17 00 8D 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [12:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:06:14]wFMCommunicate OK [12:06:14]requested_item fd.num is exist - process it [12:06:14]SAM_PROTO_GetFieldsCounters [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 13 00 00 [12:06:14]Write to MH i2c: E2 08 00 8E 62 80 13 00 00 00 00 00 00 6C [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 62 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 62 00 8E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 12 01 00 0E 04 04 00 C3 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 9D [12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 12 01 00 0E 04 04 00 C3 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 [12:06:14]wFMCommunicate OK [12:06:14]SAM_PROTO_GetFieldsCounters done [12:06:14]requested_item shift.num is exist - process it [12:06:14]requested_item shift.opened is exist - process it [12:06:14]req_shift_opened [12:06:14]FM_GetShiftState [12:06:14]SAM_PROTO_GetShiftState [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 13 01 00 [12:06:14]Write to MH i2c: E2 08 00 8F 62 80 13 01 00 00 00 00 00 6E [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:15]Read from MH i2c: E2 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 0E 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 0E 00 8F 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5C [12:06:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:06:15]wFMCommunicate OK [12:06:15]SAM_PROTO_GetShiftState done [12:06:15]FM_GetShiftState done [12:06:15]req_shift_opened done [12:06:15]requested_item shift.open_date is exist - process it [12:06:15]req_shift_open_date [12:06:15]req_shift_open_date done [12:06:15]produce_requested_data done [12:06:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70219,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:06:15]process_action_free close_receipt [12:06:15]json_value_free [12:06:15]json_value_free done [12:06:15]process_json_proto returns [12:06:15]Send response to host [12:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70219,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:06:15]free response buf [12:06:15]execute_script done [12:06:15]execute_script returns [12:06:15]free content buf [12:06:15]Sock 9.Close socket [12:06:15]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:36]accept exits with 7 [12:12:36]New connection [12:12:36]New thread 3067026788 created [12:12:36]Thread 3067170148 joined [12:12:36]Waiting for new connection... [12:12:36] Sock 7.Parse request [12:12:36]Sock 7.Check first char [12:12:36]Sock 7.First char is OK [12:12:36]request: POST /json_proto HTTP/1.0 [12:12:36]Method: POST [12:12:36]URL: /json_proto [12:12:36]Method is POST - this is cgi request [12:12:36]url: /json_proto [12:12:36]query_string will be loaded in cgi processing [12:12:36]execute_cgi json_proto POST (null) [12:12:36]execute_cgi path=json_proto method=POST [12:12:36]POST find Content-Length [12:12:36]Host: 172.17.50.3:8080 [12:12:36]Content-Length: 686 [12:12:36]Content-Type: application/json [12:12:36] [12:12:36]POST finish read [12:12:36]Found Content-Length = 686 [12:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.460, "sum" : 1496.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1496.00, "total" : 1496.00, "payments": [ { "type": 0, "sum" : 1496.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:36]execute_script... [12:12: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)2885988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.460, "sum" : 1496.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1496.00, "total" : 1496.00, "payments": [ { "type": 0, "sum" : 1496.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:36]POST & json_proto [12:12:36]process_json_proto [12:12:36]json parsed OK: [12:12:36]protocol is kg_v1.0 [12:12:36]action value=close_receipt [12:12:36]process_action close_receipt [12:12:36]cmd_close_receipt [12:12:36]MH_GetDate [12:12:36]Write to MH i2c: F0 00 00 90 62 E1 [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: F0 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: F0 09 00 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: F0 09 00 90 62 00 B9 96 17 67 6B 98 1E 66 3E [12:12:36]GetLastDocTimeStamp 1729598776 [12:12:36]current date 1729599161 [12:12:36]FM_GetShiftState [12:12:36]SAM_PROTO_GetShiftState [12:12:36]wFMCommunicate request_size=4 [12:12:36]MH_SAM_APDU [12:12:36]CAPDU: 80 13 01 00 [12:12:36]Write to MH i2c: E2 08 00 91 62 80 13 01 00 00 00 00 00 70 [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:36]Read from MH i2c: E2 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 0E 00 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 0E 00 91 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5E [12:12:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:12:36]wFMCommunicate OK [12:12:36]SAM_PROTO_GetShiftState done [12:12:36]FM_GetShiftState done [12:12:36]opened in 1729555832 [12:12:36]opened+sec_in_day 1729642232 [12:12:36]quantity*price = 149609 [12:12:36]sum+1 = 149610 [12:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1496.00 Внесено: 1496.00 СДАЧА: 0.00 НСП 1% : 13.24 НДС 12% : 158.88 Наличными: 1496.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 168 22.10.2024 12:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70220 ФПД: 3944267641411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70220&fm=3944267641411&tin=02508201610067®Number=0000000000156251&sum=149600 [12:12:37]StoreToDocumentArchive [12:12:37]shift 195 fd 70220 [12:12:37]save to /storage/0195/doc_00070220 [12:12:37]save last doc name /storage/0195/doc_00070220 to /storage/kkm_last_doc_name [12:12:37]save OK [12:12:37]Clear old archive folders... [12:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:12:37]tlvbuf is 011D7970 [12:12:37]SAM_PROTO_ClearQueue [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 09 00 00 [12:12:37]Write to MH i2c: E2 08 00 9E 62 80 09 00 00 00 00 00 00 72 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 9E 62 00 90 00 74 [12:12:37]RAPDU: 90 00 [12:12:37]wFMCommunicate OK [12:12:37]SAM_PROTO_ClearQueue done [12:12:37]KKMCreateOFDPacket [12:12:37]OFDProtocolAddRootSTLVToBuf [12:12:37]FM_MakeSignedData [12:12:37]FM_MakeSignedData [12:12:37]SAM_PROTO_SignData [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 0D 01 02 [12:12:37]Write to MH i2c: E2 08 00 9F 62 80 0D 01 02 00 00 00 00 7A [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 9F 62 00 90 00 75 [12:12:37]RAPDU: 90 00 [12:12:37]wFMCommunicate OK [12:12:37]wFMCommunicate request_size=255 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 48 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 3E 00 00 00 00 07 04 06 00 60 48 02 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 B9 96 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 12 01 00 35 04 06 00 03 96 [12:12:37]Write to MH i2c: E2 02 01 A0 62 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 48 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 3E 00 00 00 00 07 04 06 00 60 48 02 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 B9 96 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 12 01 00 35 04 06 00 03 96 00 00 F5 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 A0 62 00 90 00 76 [12:12:37]RAPDU: 90 00 [12:12:37]wFMCommunicate OK [12:12:37]wFMCommunicate request_size=9 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 0D 02 02 04 58 AB F2 43 [12:12:37]Write to MH i2c: E2 0C 00 A1 62 80 0D 02 02 04 00 58 AB F2 43 00 00 BD [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:37]Read from MH i2c: E2 03 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 A1 62 00 90 00 77 [12:12:37]RAPDU: 90 00 [12:12:37]wFMCommunicate OK [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 0D 03 02 [12:12:37]Write to MH i2c: E2 08 00 A2 62 80 0D 03 02 00 00 00 00 7F [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0B 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0B 00 A2 62 00 D9 B6 AD 82 C6 42 5E FA 90 00 9E [12:12:37]RAPDU: D9 B6 AD 82 C6 42 5E FA 90 00 [12:12:37]wFMCommunicate OK [12:12:37]SAM_PROTO_SignData done [12:12:37]FM_MakeSignedData done [12:12:37]CreateOFDProtocolMessage [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 11 00 00 [12:12:37]Write to MH i2c: E2 08 00 A3 62 80 11 00 00 00 00 00 00 7F [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 A3 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [12:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:37]wFMCommunicate OK [12:12:37]CreateOFDProtocolMessage done [12:12:37]OFDSenderStorePacket 70220 [12:12:37]StoreOFDPacket docnum=70220 [12:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0D 0B 06 01 55 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 48 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 3E 00 00 00 00 07 04 06 00 60 48 02 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 B9 96 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 12 01 00 35 04 06 00 03 96 58 AB F2 43 D9 B6 AD 82 C6 42 5E FA [12:12:37]CheckFolder [12:12:37]dirname=/storage/ofd_packets [12:12:37]CheckFolder done [12:12:37]ProducePacketName [12:12:37]name=ofd_packets/00070220 [12:12:37]NVStorageSaveData ofd_packets/00070220 [12:12:37]File name is /storage/ofd_packets/00070220 [12:12:37]Write 300 bytes [12:12:37]NVStorageSaveData done [12:12:37]OFDSenderStorePacket done [12:12:37]KKMCreateOFDPacket done [12:12:37]NVStorageSaveData kkm_last_timestamp [12:12:37]File name is /storage/kkm_last_timestamp [12:12:37]Write 4 bytes [12:12:37]NVStorageSaveData done [12:12:37]ExternCall_PrintAddStr [12:12:37]wPrintStart [12:12:37]Write to MH i2c: 01 00 00 A4 62 06 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 A4 62 00 00 00 00 00 FF 0F 1B [12:12:37]RasterBufferAndPrint [12:12:37]line Счет N : (1)2885988 [12:12:37]line ИНН: 02508201610067 [12:12:37]line Контрольно-Кассовый Чек [12:12:37]line ПРОДАЖА [12:12:37]line ТРК (МРК, ГНК) : 71 [12:12:37]line Товар: 2711129700 [12:12:37]line ГАЗ-К-3 [12:12:37]line 38.460 * 38.90 [12:12:37]line = 1496.09 [12:12:37]line НДС 12% НСП 1% [12:12:37]line > о реализуемом товаре [12:12:37]line ОКРУГЛЕНИЕ: -0.09 [12:12:37]line ИТОГО: 1496.00 [12:12:37]line Внесено: 1496.00 [12:12:37]line СДАЧА: 0.00 [12:12:37]line НСП 1% : 13.24 [12:12:37]line НДС 12% : 158.88 [12:12:37]line Наличными: 1496.00 [12:12:37]line Безнал.: 0.00 [12:12:37]line Место: АЗС № 85 "Партнер Нефть" [12:12:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:12:37]line СНО: Общий режим [12:12:37]line Чек 168 22.10.2024 12:12 [12:12:37]line Смена: 195 ФФД: 1.0 [12:12:37]line ЗНМ: 0300000167 [12:12:37]line РНМ: 0000000000156251 [12:12:37]line Версия ККМ: v1.0 [12:12:37]line ФМ: 0000000000963346 [12:12:37]line ФД: 70220 [12:12:37]line ФПД: 3944267641411 [12:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70220&fm=3944267641411&tin=02508201610067®Number=0000000000156251&sum=149600 [12:12:38]OFD Sender: Processing packet 70220 [packets to send 18, broken 17] [12:12:38]ProducePacketName [12:12:38]name=ofd_packets/00070220 [12:12:38]OFD Sender: To server: pG, [12:12:38]CommunicateWithHost lk.salyk.kg:30040 [12:12:38]ConnectInit lk.salyk.kg [12:12:38]written 0, free lines is 4095 [12:12:38]Connected sock=10 [12:12: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 34 36 0E 01 00 00 0D 0B 06 01 55 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 48 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 3E 00 00 00 00 07 04 06 00 60 48 02 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 B9 96 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 12 01 00 35 04 06 00 03 96 58 AB F2 43 D9 B6 AD 82 C6 42 5E FA [12:12: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 34 36 4F 00 00 00 2D 80 47 00 38 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 34 36 10 04 04 00 4C 12 01 00 F4 03 04 00 5A 40 17 67 B6 04 01 00 00 61 F5 B4 5E 76 D7 5B 8B [12:12:38]CommunicateWithHost err = 0 [12:12:38]CheckOFDResponse [12:12:38]1017 (14) - 77093643461234 [12:12:38]1041 (16) - 0000000000963346 [12:12:38]1040 (4) - 70220 [12:12:38]1012 (4) - 22.10.2024 06:04 [12:12:38]1206 (1) - 0 [12:12:38]OFD Sender: Remove packet 70220 [12:12:38]ProducePacketName [12:12:38]name=ofd_packets/00070220 [12:12:38]NVStorageDeleteData [12:12:38]Write to MH i2c: 01 00 00 CF 62 31 [12:12:38]Write i2c OK [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: 01 [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: 01 07 00 [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: 01 07 00 CF 62 00 00 00 00 00 FA 0C 3E [12:12:38]RasterBufferAndPrint [12:12:38]line [12:12:38]line [12:12:38]line [12:12:38]line [12:12:38]line [12:12:38]written 0, free lines is 3328 [12:12:38]MH_Cut [12:12:38]Write to MH i2c: D1 01 00 D6 62 01 0A [12:12:38]Write i2c OK [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: D1 [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: D1 01 00 [12:12:38]MH_I2C_Read... [12:12:38]Read from MH i2c: D1 01 00 D6 62 00 09 [12:12:38]Write to MH i2c: 01 00 00 D7 62 39 [12:12:38]Write i2c OK [12:12:38]MH_I2C_Read... [12:12:39]OFD Sender: No OFD packet to send [12:12:39]*** Cut start [12:12:39]*** Partial cut [12:12:39]*** CUTSNS_PIN = 1 [12:12:39]*** CUTSNS_PIN = 0 [12:12:39]*** Brake cut motor [12:12:40]Read from MH i2c: 01 [12:12:40]MH_I2C_Read... [12:12:40]*** Stop cut motor [12:12:40]*** Cut end [12:12:40]Read from MH i2c: 01 07 00 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: 01 07 00 D7 62 00 00 00 00 00 FF 0F 4E [12:12:40]process_action close_receipt done [12:12:40]requested_data is exist [12:12:40]produce_requested_data [12:12:40]requested_item fm.sn is exist - process it [12:12:40]wFMCommunicate request_size=4 [12:12:40]MH_SAM_APDU [12:12:40]CAPDU: 80 11 00 00 [12:12:40]Write to MH i2c: E2 08 00 D8 62 80 11 00 00 00 00 00 00 B4 [12:12:40]Write i2c OK [12:12:40]MH_I2C_Read... [12:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:40]Read from MH i2c: E2 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 17 00 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 17 00 D8 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [12:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:40]wFMCommunicate OK [12:12:40]requested_item fd.num is exist - process it [12:12:40]SAM_PROTO_GetFieldsCounters [12:12:40]wFMCommunicate request_size=4 [12:12:40]MH_SAM_APDU [12:12:40]CAPDU: 80 13 00 00 [12:12:40]Write to MH i2c: E2 08 00 D9 62 80 13 00 00 00 00 00 00 B7 [12:12:40]Write i2c OK [12:12:40]MH_I2C_Read... [12:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:40]Read from MH i2c: E2 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 62 00 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 62 00 D9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 12 01 00 0E 04 04 00 C3 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 EC [12:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 12 01 00 0E 04 04 00 C3 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 [12:12:40]wFMCommunicate OK [12:12:40]SAM_PROTO_GetFieldsCounters done [12:12:40]requested_item shift.num is exist - process it [12:12:40]requested_item shift.opened is exist - process it [12:12:40]req_shift_opened [12:12:40]FM_GetShiftState [12:12:40]SAM_PROTO_GetShiftState [12:12:40]wFMCommunicate request_size=4 [12:12:40]MH_SAM_APDU [12:12:40]CAPDU: 80 13 01 00 [12:12:40]Write to MH i2c: E2 08 00 DA 62 80 13 01 00 00 00 00 00 B9 [12:12:40]Write i2c OK [12:12:40]MH_I2C_Read... [12:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:40]Read from MH i2c: E2 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 0E 00 [12:12:40]MH_I2C_Read... [12:12:40]Read from MH i2c: E2 0E 00 DA 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A7 [12:12:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:12:40]wFMCommunicate OK [12:12:40]SAM_PROTO_GetShiftState done [12:12:40]FM_GetShiftState done [12:12:40]req_shift_opened done [12:12:40]requested_item shift.open_date is exist - process it [12:12:40]req_shift_open_date [12:12:40]req_shift_open_date done [12:12:40]produce_requested_data done [12:12:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70220,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:12:40]process_action_free close_receipt [12:12:40]json_value_free [12:12:40]json_value_free done [12:12:40]process_json_proto returns [12:12:40]Send response to host [12:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70220,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:12:40]free response buf [12:12:40]execute_script done [12:12:40]execute_script returns [12:12:40]free content buf [12:12:40]Sock 7.Close socket [12:12:40]Sock 7.Thread stoped [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:28]accept exits with 9 [12:14:28]New connection [12:14:28]New thread 3067170148 created [12:14:28]Thread 3067026788 joined [12:14:28]Waiting for new connection... [12:14:28] Sock 9.Parse request [12:14:28]Sock 9.Check first char [12:14:28]Sock 9.First char is OK [12:14:28]request: POST /json_proto HTTP/1.0 [12:14:28]Method: POST [12:14:28]URL: /json_proto [12:14:28]Method is POST - this is cgi request [12:14:28]url: /json_proto [12:14:28]query_string will be loaded in cgi processing [12:14:28]execute_cgi json_proto POST (null) [12:14:28]execute_cgi path=json_proto method=POST [12:14:28]POST find Content-Length [12:14:28]Host: 172.17.50.3:8080 [12:14:28]Content-Length: 685 [12:14:28]Content-Type: application/json [12:14:28] [12:14:28]POST finish read [12:14:28]Found Content-Length = 685 [12:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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:14:28]execute_script... [12: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)2885989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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:14:28]POST & json_proto [12:14:28]process_json_proto [12:14:28]json parsed OK: [12:14:28]protocol is kg_v1.0 [12:14:28]action value=close_receipt [12:14:28]process_action close_receipt [12:14:28]cmd_close_receipt [12:14:28]MH_GetDate [12:14:28]Write to MH i2c: F0 00 00 DB 62 2C [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: F0 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: F0 09 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: F0 09 00 DB 62 00 29 97 17 67 6B 98 1E 66 FA [12:14:28]GetLastDocTimeStamp 1729599161 [12:14:28]current date 1729599273 [12:14:28]FM_GetShiftState [12:14:28]SAM_PROTO_GetShiftState [12:14:28]wFMCommunicate request_size=4 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 13 01 00 [12:14:28]Write to MH i2c: E2 08 00 DC 62 80 13 01 00 00 00 00 00 BB [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 0E 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 0E 00 DC 62 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [12:14:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:14:28]wFMCommunicate OK [12:14:28]SAM_PROTO_GetShiftState done [12:14:28]FM_GetShiftState done [12:14:28]opened in 1729555832 [12:14:28]opened+sec_in_day 1729642232 [12:14:28]quantity*price = 90015 [12:14:28]sum+1 = 90016 [12:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 169 22.10.2024 12:14 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70221 ФПД: 105723813493257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70221&fm=105723813493257&tin=02508201610067®Number=0000000000156251&sum=90000 [12:14:29]StoreToDocumentArchive [12:14:29]shift 195 fd 70221 [12:14:29]save to /storage/0195/doc_00070221 [12:14:29]save last doc name /storage/0195/doc_00070221 to /storage/kkm_last_doc_name [12:14:29]save OK [12:14:29]Clear old archive folders... [12:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:14:29]tlvbuf is 011CDFB0 [12:14:29]SAM_PROTO_ClearQueue [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 09 00 00 [12:14:29]Write to MH i2c: E2 08 00 E9 62 80 09 00 00 00 00 00 00 BD [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:29]Read from MH i2c: E2 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 03 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 03 00 E9 62 00 90 00 BF [12:14:29]RAPDU: 90 00 [12:14:29]wFMCommunicate OK [12:14:29]SAM_PROTO_ClearQueue done [12:14:29]KKMCreateOFDPacket [12:14:29]OFDProtocolAddRootSTLVToBuf [12:14:29]FM_MakeSignedData [12:14:29]FM_MakeSignedData [12:14:29]SAM_PROTO_SignData [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 0D 01 02 [12:14:29]Write to MH i2c: E2 08 00 EA 62 80 0D 01 02 00 00 00 00 C5 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:29]Read from MH i2c: E2 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 03 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 03 00 EA 62 00 90 00 C0 [12:14:29]RAPDU: 90 00 [12:14:29]wFMCommunicate OK [12:14:29]wFMCommunicate request_size=255 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 A9 00 00 00 F4 03 04 00 29 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 12 01 [12:14:29]Write to MH i2c: E2 02 01 EB 62 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 A9 00 00 00 F4 03 04 00 29 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 12 01 00 00 B9 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 03 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 03 00 EB 62 00 90 00 C1 [12:14:30]RAPDU: 90 00 [12:14:30]wFMCommunicate OK [12:14:30]wFMCommunicate request_size=16 [12:14:30]MH_SAM_APDU [12:14:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 60 27 BE 58 FA 09 [12:14:30]Write to MH i2c: E2 13 00 EC 62 80 0D 02 02 0B 00 00 35 04 06 00 60 27 BE 58 FA 09 00 00 BD [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 03 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 03 00 EC 62 00 90 00 C2 [12:14:30]RAPDU: 90 00 [12:14:30]wFMCommunicate OK [12:14:30]wFMCommunicate request_size=4 [12:14:30]MH_SAM_APDU [12:14:30]CAPDU: 80 0D 03 02 [12:14:30]Write to MH i2c: E2 08 00 ED 62 80 0D 03 02 00 00 00 00 CA [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0B 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0B 00 ED 62 00 EB 0A 5B 7A BF AB FD 70 90 00 6C [12:14:30]RAPDU: EB 0A 5B 7A BF AB FD 70 90 00 [12:14:30]wFMCommunicate OK [12:14:30]SAM_PROTO_SignData done [12:14:30]FM_MakeSignedData done [12:14:30]CreateOFDProtocolMessage [12:14:30]wFMCommunicate request_size=4 [12:14:30]MH_SAM_APDU [12:14:30]CAPDU: 80 11 00 00 [12:14:30]Write to MH i2c: E2 08 00 EE 62 80 11 00 00 00 00 00 00 CA [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 17 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 17 00 EE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [12:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:14:30]wFMCommunicate OK [12:14:30]CreateOFDProtocolMessage done [12:14:30]OFDSenderStorePacket 70221 [12:14:30]StoreOFDPacket docnum=70221 [12:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 70 49 0D 01 81 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 A9 00 00 00 F4 03 04 00 29 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 12 01 00 35 04 06 00 60 27 BE 58 FA 09 EB 0A 5B 7A BF AB FD 70 [12:14:30]CheckFolder [12:14:30]dirname=/storage/ofd_packets [12:14:30]CheckFolder done [12:14:30]ProducePacketName [12:14:30]name=ofd_packets/00070221 [12:14:30]NVStorageSaveData ofd_packets/00070221 [12:14:30]File name is /storage/ofd_packets/00070221 [12:14:30]Write 307 bytes [12:14:30]NVStorageSaveData done [12:14:30]OFDSenderStorePacket done [12:14:30]KKMCreateOFDPacket done [12:14:30]NVStorageSaveData kkm_last_timestamp [12:14:30]File name is /storage/kkm_last_timestamp [12:14:30]Write 4 bytes [12:14:30]NVStorageSaveData done [12:14:30]ExternCall_PrintAddStr [12:14:30]wPrintStart [12:14:30]Write to MH i2c: 01 00 00 EF 62 51 [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: 01 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: 01 07 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: 01 07 00 EF 62 00 00 00 00 00 FF 0F 66 [12:14:30]RasterBufferAndPrint [12:14:30]line Счет N : (1)2885989 [12:14:30]line ИНН: 02508201610067 [12:14:30]line Контрольно-Кассовый Чек [12:14:30]line ПРОДАЖА [12:14:30]line ТРК (МРК, ГНК) : 31 [12:14:30]line Товар: 2710194240 [12:14:30]line D-ENERGY Дт-К-2 [12:14:30]line 11.660 * 77.20 [12:14:30]line = 900.15 [12:14:30]line НДС 12% НСП 1% [12:14:30]line > о реализуемом товаре [12:14:30]line ОКРУГЛЕНИЕ: -0.15 [12:14:30]line ИТОГО: 900.00 [12:14:30]line Внесено: 900.00 [12:14:30]line СДАЧА: 0.00 [12:14:30]line НСП 1% : 7.97 [12:14:30]line НДС 12% : 95.59 [12:14:30]line Наличными: 900.00 [12:14:30]line Безнал.: 0.00 [12:14:30]line Место: АЗС № 85 "Партнер Нефть" [12:14:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:14:30]line СНО: Общий режим [12:14:30]line Чек 169 22.10.2024 12:14 [12:14:30]line Смена: 195 ФФД: 1.0 [12:14:30]line ЗНМ: 0300000167 [12:14:30]line РНМ: 0000000000156251 [12:14:30]line Версия ККМ: v1.0 [12:14:30]line ФМ: 0000000000963346 [12:14:30]line ФД: 70221 [12:14:30]line ФПД: 105723813493257 [12:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70221&fm=105723813493257&tin=02508201610067®Number=0000000000156251&sum=90000 [12:14:30]OFD Sender: Processing packet 70221 [packets to send 18, broken 17] [12:14:30]ProducePacketName [12:14:30]name=ofd_packets/00070221 [12:14:30]OFD Sender: To server: pG, [12:14:30]CommunicateWithHost lk.salyk.kg:30040 [12:14:30]ConnectInit lk.salyk.kg [12:14:30]written 0, free lines is 4095 [12:14:30]Connected sock=7 [12: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 34 36 15 01 00 00 70 49 0D 01 81 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 A9 00 00 00 F4 03 04 00 29 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 12 01 00 35 04 06 00 60 27 BE 58 FA 09 EB 0A 5B 7A BF AB FD 70 [12: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 34 36 4F 00 00 00 A5 45 47 00 A3 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 34 36 10 04 04 00 4D 12 01 00 F4 03 04 00 CA 40 17 67 B6 04 01 00 00 4B 28 4D 46 87 BE 5B 78 [12:14:30]CommunicateWithHost err = 0 [12:14:30]CheckOFDResponse [12:14:30]1017 (14) - 77093643461234 [12:14:30]1041 (16) - 0000000000963346 [12:14:30]1040 (4) - 70221 [12:14:30]1012 (4) - 22.10.2024 06:06 [12:14:30]1206 (1) - 0 [12:14:30]OFD Sender: Remove packet 70221 [12:14:30]ProducePacketName [12:14:30]name=ofd_packets/00070221 [12:14:30]NVStorageDeleteData [12:14:31]Write to MH i2c: 01 00 00 1A 63 7D [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 07 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 07 00 1A 63 00 00 00 00 00 F9 0C 89 [12:14:31]RasterBufferAndPrint [12:14:31]line [12:14:31]line [12:14:31]line [12:14:31]line [12:14:31]line [12:14:31]written 0, free lines is 3331 [12:14:31]MH_Cut [12:14:31]Write to MH i2c: D1 01 00 21 63 01 56 [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: D1 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: D1 01 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: D1 01 00 21 63 00 55 [12:14:31]Write to MH i2c: 01 00 00 22 63 85 [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]OFD Sender: No OFD packet to send [12:14:31]*** Cut start [12:14:31]*** Partial cut [12:14:31]*** CUTSNS_PIN = 1 [12:14:31]*** CUTSNS_PIN = 0 [12:14:32]*** Brake cut motor [12:14:32]Read from MH i2c: 01 [12:14:32]MH_I2C_Read... [12:14:32]*** Stop cut motor [12:14:32]*** Cut end [12:14:32]Read from MH i2c: 01 07 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 22 63 00 00 00 00 00 FF 0F 9A [12:14:32]process_action close_receipt done [12:14:32]requested_data is exist [12:14:32]produce_requested_data [12:14:32]requested_item fm.sn is exist - process it [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 11 00 00 [12:14:32]Write to MH i2c: E2 08 00 23 63 80 11 00 00 00 00 00 00 00 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 17 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 17 00 23 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [12:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:14:32]wFMCommunicate OK [12:14:32]requested_item fd.num is exist - process it [12:14:32]SAM_PROTO_GetFieldsCounters [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 13 00 00 [12:14:32]Write to MH i2c: E2 08 00 24 63 80 13 00 00 00 00 00 00 03 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 62 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 62 00 24 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 12 01 00 0E 04 04 00 C3 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 3C [12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 12 01 00 0E 04 04 00 C3 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 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_GetFieldsCounters done [12:14:32]requested_item shift.num is exist - process it [12:14:32]requested_item shift.opened is exist - process it [12:14:32]req_shift_opened [12:14:32]FM_GetShiftState [12:14:32]SAM_PROTO_GetShiftState [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 13 01 00 [12:14:32]Write to MH i2c: E2 08 00 25 63 80 13 01 00 00 00 00 00 05 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 25 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F3 [12:14:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_GetShiftState done [12:14:32]FM_GetShiftState done [12:14:32]req_shift_opened done [12:14:32]requested_item shift.open_date is exist - process it [12:14:32]req_shift_open_date [12:14:32]req_shift_open_date done [12:14:32]produce_requested_data done [12:14:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70221,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:14:32]process_action_free close_receipt [12:14:32]json_value_free [12:14:32]json_value_free done [12:14:32]process_json_proto returns [12:14:32]Send response to host [12:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70221,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:14:32]free response buf [12:14:32]execute_script done [12:14:32]execute_script returns [12:14:32]free content buf [12:14:32]Sock 9.Close socket [12:14:32]Sock 9.Thread stoped [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]accept exits with 10 [12:17:41]New connection [12:17:41]New thread 3067026788 created [12:17:41]Thread 3067170148 joined [12:17:41]Waiting for new connection... [12:17:41] Sock 10.Parse request [12:17:41]Sock 10.Check first char [12:17:41]Sock 10.First char is OK [12:17:41]request: POST /json_proto HTTP/1.0 [12:17:41]Method: POST [12:17:41]URL: /json_proto [12:17:41]Method is POST - this is cgi request [12:17:41]url: /json_proto [12:17:41]query_string will be loaded in cgi processing [12:17:41]execute_cgi json_proto POST (null) [12:17:41]execute_cgi path=json_proto method=POST [12:17:41]POST find Content-Length [12:17:41]Host: 172.17.50.3:8080 [12:17:41]Content-Length: 683 [12:17:41]Content-Type: application/json [12:17:41] [12:17:41]POST finish read [12:17:41]Found Content-Length = 683 [12:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:17:41]execute_script... [12:17: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)2885990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:17:41]POST & json_proto [12:17:41]process_json_proto [12:17:41]json parsed OK: [12:17:41]protocol is kg_v1.0 [12:17:41]action value=close_receipt [12:17:41]process_action close_receipt [12:17:41]cmd_close_receipt [12:17:41]MH_GetDate [12:17:41]Write to MH i2c: F0 00 00 26 63 78 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: F0 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: F0 09 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: F0 09 00 26 63 00 EA 97 17 67 6B 98 1E 66 07 [12:17:41]GetLastDocTimeStamp 1729599273 [12:17:41]current date 1729599466 [12:17:41]FM_GetShiftState [12:17:41]SAM_PROTO_GetShiftState [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 13 01 00 [12:17:41]Write to MH i2c: E2 08 00 27 63 80 13 01 00 00 00 00 00 07 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0E 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0E 00 27 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F5 [12:17:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:17:41]wFMCommunicate OK [12:17:41]SAM_PROTO_GetShiftState done [12:17:41]FM_GetShiftState done [12:17:41]opened in 1729555832 [12:17:41]opened+sec_in_day 1729642232 [12:17:41]quantity*price = 150056 [12:17:41]sum+1 = 150058 [12:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 170 22.10.2024 12:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70222 ФПД: 41449289518961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70222&fm=41449289518961&tin=02508201610067®Number=0000000000156251&sum=150000 [12:17:42]StoreToDocumentArchive [12:17:42]shift 195 fd 70222 [12:17:42]save to /storage/0195/doc_00070222 [12:17:42]save last doc name /storage/0195/doc_00070222 to /storage/kkm_last_doc_name [12:17:42]save OK [12:17:42]Clear old archive folders... [12:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:42]tlvbuf is 0120E7D0 [12:17:42]SAM_PROTO_ClearQueue [12:17:42]wFMCommunicate request_size=4 [12:17:42]MH_SAM_APDU [12:17:42]CAPDU: 80 09 00 00 [12:17:42]Write to MH i2c: E2 08 00 34 63 80 09 00 00 00 00 00 00 09 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 34 63 00 90 00 0B [12:17:42]RAPDU: 90 00 [12:17:42]wFMCommunicate OK [12:17:42]SAM_PROTO_ClearQueue done [12:17:42]KKMCreateOFDPacket [12:17:42]OFDProtocolAddRootSTLVToBuf [12:17:42]FM_MakeSignedData [12:17:42]FM_MakeSignedData [12:17:42]SAM_PROTO_SignData [12:17:42]wFMCommunicate request_size=4 [12:17:42]MH_SAM_APDU [12:17:42]CAPDU: 80 0D 01 02 [12:17:42]Write to MH i2c: E2 08 00 35 63 80 0D 01 02 00 00 00 00 11 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 35 63 00 90 00 0C [12:17:42]RAPDU: 90 00 [12:17:42]wFMCommunicate OK [12:17:42]wFMCommunicate request_size=255 [12:17:42]MH_SAM_APDU [12:17:42]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 AA 00 00 00 F4 03 04 00 EA 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 12 01 00 35 04 06 00 25 [12:17:42]Write to MH i2c: E2 02 01 36 63 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 AA 00 00 00 F4 03 04 00 EA 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 12 01 00 35 04 06 00 25 00 00 D5 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 36 63 00 90 00 0D [12:17:42]RAPDU: 90 00 [12:17:42]wFMCommunicate OK [12:17:42]wFMCommunicate request_size=10 [12:17:42]MH_SAM_APDU [12:17:42]CAPDU: 80 0D 02 02 05 B2 AA 2D 8F 71 [12:17:42]Write to MH i2c: E2 0D 00 37 63 80 0D 02 02 05 00 B2 AA 2D 8F 71 00 00 A7 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 03 00 37 63 00 90 00 0E [12:17:42]RAPDU: 90 00 [12:17:42]wFMCommunicate OK [12:17:42]wFMCommunicate request_size=4 [12:17:42]MH_SAM_APDU [12:17:42]CAPDU: 80 0D 03 02 [12:17:42]Write to MH i2c: E2 08 00 38 63 80 0D 03 02 00 00 00 00 16 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 0B 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 0B 00 38 63 00 DC 48 F7 39 CB B6 24 CC 90 00 DC [12:17:42]RAPDU: DC 48 F7 39 CB B6 24 CC 90 00 [12:17:42]wFMCommunicate OK [12:17:42]SAM_PROTO_SignData done [12:17:42]FM_MakeSignedData done [12:17:42]CreateOFDProtocolMessage [12:17:42]wFMCommunicate request_size=4 [12:17:42]MH_SAM_APDU [12:17:42]CAPDU: 80 11 00 00 [12:17:42]Write to MH i2c: E2 08 00 39 63 80 11 00 00 00 00 00 00 16 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:42]Read from MH i2c: E2 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 17 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: E2 17 00 39 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [12:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:17:42]wFMCommunicate OK [12:17:42]CreateOFDProtocolMessage done [12:17:42]OFDSenderStorePacket 70222 [12:17:42]StoreOFDPacket docnum=70222 [12:17:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 B7 07 01 A9 8C 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 AA 00 00 00 F4 03 04 00 EA 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 12 01 00 35 04 06 00 25 B2 AA 2D 8F 71 DC 48 F7 39 CB B6 24 CC [12:17:42]CheckFolder [12:17:42]dirname=/storage/ofd_packets [12:17:42]CheckFolder done [12:17:42]ProducePacketName [12:17:42]name=ofd_packets/00070222 [12:17:42]NVStorageSaveData ofd_packets/00070222 [12:17:42]File name is /storage/ofd_packets/00070222 [12:17:42]Write 301 bytes [12:17:42]NVStorageSaveData done [12:17:42]OFDSenderStorePacket done [12:17:42]KKMCreateOFDPacket done [12:17:42]NVStorageSaveData kkm_last_timestamp [12:17:42]File name is /storage/kkm_last_timestamp [12:17:42]Write 4 bytes [12:17:42]NVStorageSaveData done [12:17:42]ExternCall_PrintAddStr [12:17:42]wPrintStart [12:17:42]Write to MH i2c: 01 00 00 3A 63 9D [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 3A 63 00 00 00 00 00 FF 0F B2 [12:17:42]RasterBufferAndPrint [12:17:42]line Счет N : (1)2885990 [12:17:42]line ИНН: 02508201610067 [12:17:42]line Контрольно-Кассовый Чек [12:17:42]line ПРОДАЖА [12:17:42]line ТРК (МРК, ГНК) : 42 [12:17:42]line Товар: 2710124130 [12:17:42]line Аи-92-К-5 [12:17:42]line 22.430 * 66.90 [12:17:42]line = 1500.57 [12:17:42]line НДС 12% НСП 1% [12:17:42]line > о реализуемом товаре [12:17:42]line ОКРУГЛЕНИЕ: -0.57 [12:17:42]line ИТОГО: 1500.00 [12:17:42]line Внесено: 1500.00 [12:17:42]line СДАЧА: 0.00 [12:17:42]line НСП 1% : 13.28 [12:17:42]line НДС 12% : 159.35 [12:17:42]line Наличными: 1500.00 [12:17:42]line Безнал.: 0.00 [12:17:42]line Место: АЗС № 85 "Партнер Нефть" [12:17:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:17:42]line СНО: Общий режим [12:17:42]line Чек 170 22.10.2024 12:17 [12:17:42]line Смена: 195 ФФД: 1.0 [12:17:42]line ЗНМ: 0300000167 [12:17:42]line РНМ: 0000000000156251 [12:17:42]line Версия ККМ: v1.0 [12:17:42]line ФМ: 0000000000963346 [12:17:42]line ФД: 70222 [12:17:42]line ФПД: 41449289518961 [12:17:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70222&fm=41449289518961&tin=02508201610067®Number=0000000000156251&sum=150000 [12:17:43]OFD Sender: Processing packet 70222 [packets to send 18, broken 17] [12:17:43]ProducePacketName [12:17:43]name=ofd_packets/00070222 [12:17:43]OFD Sender: To server: pG, [12:17:43]CommunicateWithHost lk.salyk.kg:30040 [12:17:43]ConnectInit lk.salyk.kg [12:17:43]written 0, free lines is 4095 [12:17:43]Connected sock=9 [12:17: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 34 36 0F 01 00 00 98 B7 07 01 A9 8C 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 AA 00 00 00 F4 03 04 00 EA 97 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 12 01 00 35 04 06 00 25 B2 AA 2D 8F 71 DC 48 F7 39 CB B6 24 CC [12:17: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 34 36 4F 00 00 00 6B 71 47 00 AD 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 34 36 10 04 04 00 4E 12 01 00 F4 03 04 00 8B 41 17 67 B6 04 01 00 00 2E 98 DA 81 9C 54 A7 99 [12:17:43]CommunicateWithHost err = 0 [12:17:43]CheckOFDResponse [12:17:43]1017 (14) - 77093643461234 [12:17:43]1041 (16) - 0000000000963346 [12:17:43]1040 (4) - 70222 [12:17:43]1012 (4) - 22.10.2024 06:09 [12:17:43]1206 (1) - 0 [12:17:43]OFD Sender: Remove packet 70222 [12:17:43]ProducePacketName [12:17:43]name=ofd_packets/00070222 [12:17:43]NVStorageDeleteData [12:17:43]Write to MH i2c: 01 00 00 65 63 C8 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 65 63 00 00 00 00 00 F9 0C D4 [12:17:43]RasterBufferAndPrint [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]written 0, free lines is 3327 [12:17:43]MH_Cut [12:17:43]Write to MH i2c: D1 01 00 6C 63 01 A1 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 01 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 01 00 6C 63 00 A0 [12:17:43]Write to MH i2c: 01 00 00 6D 63 D0 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:44]OFD Sender: No OFD packet to send [12:17:44]*** Cut start [12:17:44]*** Partial cut [12:17:44]*** CUTSNS_PIN = 1 [12:17:44]*** CUTSNS_PIN = 0 [12:17:44]*** Brake cut motor [12:17:44]Read from MH i2c: 01 [12:17:44]MH_I2C_Read... [12:17:44]*** Stop cut motor [12:17:44]*** Cut end [12:17:44]Read from MH i2c: 01 07 00 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: 01 07 00 6D 63 00 00 00 00 00 FF 0F E5 [12:17:44]process_action close_receipt done [12:17:44]requested_data is exist [12:17:44]produce_requested_data [12:17:44]requested_item fm.sn is exist - process it [12:17:44]wFMCommunicate request_size=4 [12:17:44]MH_SAM_APDU [12:17:44]CAPDU: 80 11 00 00 [12:17:44]Write to MH i2c: E2 08 00 6E 63 80 11 00 00 00 00 00 00 4B [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 17 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 17 00 6E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [12:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:17:45]wFMCommunicate OK [12:17:45]requested_item fd.num is exist - process it [12:17:45]SAM_PROTO_GetFieldsCounters [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 13 00 00 [12:17:45]Write to MH i2c: E2 08 00 6F 63 80 13 00 00 00 00 00 00 4E [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 62 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 62 00 6F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 12 01 00 0E 04 04 00 C3 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 8B [12:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 12 01 00 0E 04 04 00 C3 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:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_GetFieldsCounters done [12:17:45]requested_item shift.num is exist - process it [12:17:45]requested_item shift.opened is exist - process it [12:17:45]req_shift_opened [12:17:45]FM_GetShiftState [12:17:45]SAM_PROTO_GetShiftState [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 13 01 00 [12:17:45]Write to MH i2c: E2 08 00 70 63 80 13 01 00 00 00 00 00 50 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 70 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3E [12:17:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_GetShiftState done [12:17:45]FM_GetShiftState done [12:17:45]req_shift_opened done [12:17:45]requested_item shift.open_date is exist - process it [12:17:45]req_shift_open_date [12:17:45]req_shift_open_date done [12:17:45]produce_requested_data done [12:17:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70222,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:17:45]process_action_free close_receipt [12:17:45]json_value_free [12:17:45]json_value_free done [12:17:45]process_json_proto returns [12:17:45]Send response to host [12:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70222,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:17:45]free response buf [12:17:45]execute_script done [12:17:45]execute_script returns [12:17:45]free content buf [12:17:45]Sock 10.Close socket [12:17:45]Sock 10.Thread stoped [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:35]accept exits with 7 [12:18:35]New connection [12:18:35]New thread 3067170148 created [12:18:35]Thread 3067026788 joined [12:18:35]Waiting for new connection... [12:18:35] Sock 7.Parse request [12:18:35]Sock 7.Check first char [12:18:35]Sock 7.First char is OK [12:18:35]request: POST /json_proto HTTP/1.0 [12:18:35]Method: POST [12:18:35]URL: /json_proto [12:18:35]Method is POST - this is cgi request [12:18:35]url: /json_proto [12:18:35]query_string will be loaded in cgi processing [12:18:35]execute_cgi json_proto POST (null) [12:18:35]execute_cgi path=json_proto method=POST [12:18:35]POST find Content-Length [12:18:35]Host: 172.17.50.3:8080 [12:18:35]Content-Length: 767 [12:18:35]Content-Type: application/json [12:18:35] [12:18:35]POST finish read [12:18:35]Found Content-Length = 767 [12:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885991", "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" : 26.250, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]execute_script... [12:18: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)2885991", "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" : 26.250, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]POST & json_proto [12:18:35]process_json_proto [12:18:35]json parsed OK: [12:18:35]protocol is kg_v1.0 [12:18:35]action value=close_receipt [12:18:35]process_action close_receipt [12:18:35]cmd_close_receipt [12:18:35]MH_GetDate [12:18:35]Write to MH i2c: F0 00 00 71 63 C3 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 71 63 00 21 98 17 67 6B 98 1E 66 8A [12:18:35]GetLastDocTimeStamp 1729599466 [12:18:35]current date 1729599521 [12:18:35]FM_GetShiftState [12:18:35]SAM_PROTO_GetShiftState [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 13 01 00 [12:18:35]Write to MH i2c: E2 08 00 72 63 80 13 01 00 00 00 00 00 52 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 72 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 40 [12:18:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_GetShiftState done [12:18:35]FM_GetShiftState done [12:18:35]opened in 1729555832 [12:18:35]opened+sec_in_day 1729642232 [12:18:35]quantity*price = 200025 [12:18:35]sum+1 = 200026 [12:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 171 22.10.2024 12:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70223 ФПД: 12983380206316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70223&fm=12983380206316&tin=02508201610067®Number=0000000000156251&sum=200025 [12:18:36]StoreToDocumentArchive [12:18:36]shift 195 fd 70223 [12:18:36]save to /storage/0195/doc_00070223 [12:18:36]save last doc name /storage/0195/doc_00070223 to /storage/kkm_last_doc_name [12:18:36]save OK [12:18:36]Clear old archive folders... [12:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:36]tlvbuf is 011EAFD0 [12:18:36]SAM_PROTO_ClearQueue [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 09 00 00 [12:18:36]Write to MH i2c: E2 08 00 7F 63 80 09 00 00 00 00 00 00 54 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 7F 63 00 90 00 56 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_ClearQueue done [12:18:37]KKMCreateOFDPacket [12:18:37]OFDProtocolAddRootSTLVToBuf [12:18:37]FM_MakeSignedData [12:18:37]FM_MakeSignedData [12:18:37]SAM_PROTO_SignData [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 01 02 [12:18:37]Write to MH i2c: E2 08 00 80 63 80 0D 01 02 00 00 00 00 5C [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 80 63 00 90 00 57 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=255 [12:18:37]MH_SAM_APDU [12:18:37]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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 21 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 12 01 00 35 04 06 00 0B CE ED C3 [12:18:37]Write to MH i2c: E2 02 01 81 63 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 21 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 12 01 00 35 04 06 00 0B CE ED C3 00 00 8B [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 81 63 00 90 00 58 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=7 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 02 02 02 E2 EC [12:18:37]Write to MH i2c: E2 0A 00 82 63 80 0D 02 02 02 00 E2 EC 00 00 31 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 82 63 00 90 00 59 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 03 02 [12:18:37]Write to MH i2c: E2 08 00 83 63 80 0D 03 02 00 00 00 00 61 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 83 63 00 01 52 B9 91 D5 57 91 98 90 00 54 [12:18:37]RAPDU: 01 52 B9 91 D5 57 91 98 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_SignData done [12:18:37]FM_MakeSignedData done [12:18:37]CreateOFDProtocolMessage [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 11 00 00 [12:18:37]Write to MH i2c: E2 08 00 84 63 80 11 00 00 00 00 00 00 61 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 84 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [12:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:18:37]wFMCommunicate OK [12:18:37]CreateOFDProtocolMessage done [12:18:37]OFDSenderStorePacket 70223 [12:18:37]StoreOFDPacket docnum=70223 [12:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DA DD 04 01 4C 27 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 21 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 12 01 00 35 04 06 00 0B CE ED C3 E2 EC 01 52 B9 91 D5 57 91 98 [12:18:37]CheckFolder [12:18:37]dirname=/storage/ofd_packets [12:18:37]CheckFolder done [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00070223 [12:18:37]NVStorageSaveData ofd_packets/00070223 [12:18:37]File name is /storage/ofd_packets/00070223 [12:18:37]Write 298 bytes [12:18:37]NVStorageSaveData done [12:18:37]OFDSenderStorePacket done [12:18:37]KKMCreateOFDPacket done [12:18:37]NVStorageSaveData kkm_last_timestamp [12:18:37]File name is /storage/kkm_last_timestamp [12:18:37]Write 4 bytes [12:18:37]NVStorageSaveData done [12:18:37]ExternCall_PrintAddStr [12:18:37]wPrintStart [12:18:37]Write to MH i2c: 01 00 00 85 63 E8 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 85 63 00 00 00 00 00 FF 0F FD [12:18:37]RasterBufferAndPrint [12:18:37]line Счет N : (1)2885991 [12:18:37]line ИНН: 02508201610067 [12:18:37]line Контрольно-Кассовый Чек [12:18:37]line ПРОДАЖА [12:18:37]line ТРК (МРК, ГНК) : 51 [12:18:37]line Товар: 2710194210 [12:18:37]line ДТ-К-5 [12:18:37]line 26.250 * 76.20 [12:18:37]line = 2000.25 [12:18:37]line НДС 12% НСП 1% [12:18:37]line > о реализуемом товаре [12:18:37]line ИТОГО: 2000.25 [12:18:37]line НСП 1% : 17.70 [12:18:37]line НДС 12% : 212.42 [12:18:37]line Наличными: 0.00 [12:18:37]line Безнал.: 2000.25 [12:18:37]line Место: АЗС № 85 "Партнер Нефть" [12:18:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:18:37]line СНО: Общий режим [12:18:37]line Чек 171 22.10.2024 12:18 [12:18:37]line Смена: 195 ФФД: 1.0 [12:18:37]line ЗНМ: 0300000167 [12:18:37]line РНМ: 0000000000156251 [12:18:37]line Версия ККМ: v1.0 [12:18:37]line Платежная система: Mbank [12:18:37]line ФМ: 0000000000963346 [12:18:37]line ФД: 70223 [12:18:37]line ФПД: 12983380206316 [12:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70223&fm=12983380206316&tin=02508201610067®Number=0000000000156251&sum=200025 [12:18:37]OFD Sender: Processing packet 70223 [packets to send 18, broken 17] [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00070223 [12:18:37]OFD Sender: To server: pG, [12:18:37]CommunicateWithHost lk.salyk.kg:30040 [12:18:37]ConnectInit lk.salyk.kg [12:18:37]written 0, free lines is 4095 [12:18:37]Connected sock=10 [12:18: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 34 36 0C 01 00 00 DA DD 04 01 4C 27 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 21 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 12 01 00 35 04 06 00 0B CE ED C3 E2 EC 01 52 B9 91 D5 57 91 98 [12: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 34 36 4F 00 00 00 20 D7 47 00 83 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 34 36 10 04 04 00 4F 12 01 00 F4 03 04 00 C1 41 17 67 B6 04 01 00 00 09 9E 9E 9A 9D AD A4 5A [12:18:38]CommunicateWithHost err = 0 [12:18:38]CheckOFDResponse [12:18:38]1017 (14) - 77093643461234 [12:18:38]1041 (16) - 0000000000963346 [12:18:38]1040 (4) - 70223 [12:18:38]1012 (4) - 22.10.2024 06:10 [12:18:38]1206 (1) - 0 [12:18:38]OFD Sender: Remove packet 70223 [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00070223 [12:18:38]NVStorageDeleteData [12:18:38]Write to MH i2c: 01 00 00 AE 63 11 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 AE 63 00 00 00 00 00 0C 0D 31 [12:18:38]RasterBufferAndPrint [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]written 0, free lines is 3346 [12:18:38]MH_Cut [12:18:38]Write to MH i2c: D1 01 00 B5 63 01 EA [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 B5 63 00 E9 [12:18:38]Write to MH i2c: 01 00 00 B6 63 19 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]OFD Sender: No OFD packet to send [12:18:38]*** Cut start [12:18:38]*** Partial cut [12:18:38]*** CUTSNS_PIN = 1 [12:18:38]*** CUTSNS_PIN = 0 [12:18:39]*** Brake cut motor [12:18:39]Read from MH i2c: 01 [12:18:39]MH_I2C_Read... [12:18:39]*** Stop cut motor [12:18:39]*** Cut end [12:18:39]Read from MH i2c: 01 07 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 07 00 B6 63 00 00 00 00 00 FF 0F 2E [12:18:39]process_action close_receipt done [12:18:39]requested_data is exist [12:18:39]produce_requested_data [12:18:39]requested_item fm.sn is exist - process it [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 11 00 00 [12:18:39]Write to MH i2c: E2 08 00 B7 63 80 11 00 00 00 00 00 00 94 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 B7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [12:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:18:39]wFMCommunicate OK [12:18:39]requested_item fd.num is exist - process it [12:18:39]SAM_PROTO_GetFieldsCounters [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 00 00 [12:18:39]Write to MH i2c: E2 08 00 B8 63 80 13 00 00 00 00 00 00 97 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 B8 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 12 01 00 0E 04 04 00 C3 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 D8 [12:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 12 01 00 0E 04 04 00 C3 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 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetFieldsCounters done [12:18:39]requested_item shift.num is exist - process it [12:18:39]requested_item shift.opened is exist - process it [12:18:39]req_shift_opened [12:18:39]FM_GetShiftState [12:18:39]SAM_PROTO_GetShiftState [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 01 00 [12:18:39]Write to MH i2c: E2 08 00 B9 63 80 13 01 00 00 00 00 00 99 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 B9 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 87 [12:18:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetShiftState done [12:18:39]FM_GetShiftState done [12:18:39]req_shift_opened done [12:18:39]requested_item shift.open_date is exist - process it [12:18:39]req_shift_open_date [12:18:39]req_shift_open_date done [12:18:39]produce_requested_data done [12:18:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70223,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:18:39]process_action_free close_receipt [12:18:39]json_value_free [12:18:39]json_value_free done [12:18:39]process_json_proto returns [12:18:39]Send response to host [12:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70223,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:18:39]free response buf [12:18:39]execute_script done [12:18:39]execute_script returns [12:18:39]free content buf [12:18:39]Sock 7.Close socket [12:18:39]Sock 7.Thread stoped [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:26]accept exits with 9 [12:19:26]New connection [12:19:26]New thread 3067026788 created [12:19:26]Thread 3067170148 joined [12:19:26]Waiting for new connection... [12:19:26] Sock 9.Parse request [12:19:26]Sock 9.Check first char [12:19:26]Sock 9.First char is OK [12:19:26]request: POST /json_proto HTTP/1.0 [12:19:26]Method: POST [12:19:26]URL: /json_proto [12:19:26]Method is POST - this is cgi request [12:19:26]url: /json_proto [12:19:26]query_string will be loaded in cgi processing [12:19:26]execute_cgi json_proto POST (null) [12:19:26]execute_cgi path=json_proto method=POST [12:19:26]POST find Content-Length [12:19:26]Host: 172.17.50.3:8080 [12:19:26]Content-Length: 683 [12:19:26]Content-Type: application/json [12:19:26] [12:19:26]POST finish read [12:19:26]Found Content-Length = 683 [12:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [12:19:26]execute_script... [12:19: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)2885992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [12:19:26]POST & json_proto [12:19:26]process_json_proto [12:19:26]json parsed OK: [12:19:26]protocol is kg_v1.0 [12:19:26]action value=close_receipt [12:19:26]process_action close_receipt [12:19:26]cmd_close_receipt [12:19:26]MH_GetDate [12:19:26]Write to MH i2c: F0 00 00 BA 63 0C [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 BA 63 00 53 98 17 67 6B 98 1E 66 05 [12:19:26]GetLastDocTimeStamp 1729599521 [12:19:26]current date 1729599571 [12:19:26]FM_GetShiftState [12:19:26]SAM_PROTO_GetShiftState [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 13 01 00 [12:19:26]Write to MH i2c: E2 08 00 BB 63 80 13 01 00 00 00 00 00 9B [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0E 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0E 00 BB 63 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 89 [12:19:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_GetShiftState done [12:19:26]FM_GetShiftState done [12:19:26]opened in 1729555832 [12:19:26]opened+sec_in_day 1729642232 [12:19:26]quantity*price = 100015 [12:19:26]sum+1 = 100017 [12:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 172 22.10.2024 12:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70224 ФПД: 75531525369019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121931&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70224&fm=75531525369019&tin=02508201610067®Number=0000000000156251&sum=100000 [12:19:27]StoreToDocumentArchive [12:19:27]shift 195 fd 70224 [12:19:27]save to /storage/0195/doc_00070224 [12:19:27]save last doc name /storage/0195/doc_00070224 to /storage/kkm_last_doc_name [12:19:27]save OK [12:19:27]Clear old archive folders... [12:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:27]tlvbuf is 011556D0 [12:19:27]SAM_PROTO_ClearQueue [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 09 00 00 [12:19:27]Write to MH i2c: E2 08 00 C8 63 80 09 00 00 00 00 00 00 9D [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 C8 63 00 90 00 9F [12:19:27]RAPDU: 90 00 [12:19:27]wFMCommunicate OK [12:19:27]SAM_PROTO_ClearQueue done [12:19:27]KKMCreateOFDPacket [12:19:27]OFDProtocolAddRootSTLVToBuf [12:19:27]FM_MakeSignedData [12:19:27]FM_MakeSignedData [12:19:27]SAM_PROTO_SignData [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 0D 01 02 [12:19:27]Write to MH i2c: E2 08 00 C9 63 80 0D 01 02 00 00 00 00 A5 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 C9 63 00 90 00 A0 [12:19:27]RAPDU: 90 00 [12:19:27]wFMCommunicate OK [12:19:27]wFMCommunicate request_size=255 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 53 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 12 01 00 35 04 06 00 44 [12:19:27]Write to MH i2c: E2 02 01 CA 63 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 AC 00 00 00 F4 03 04 00 53 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 12 01 00 35 04 06 00 44 00 00 A7 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 CA 63 00 90 00 A1 [12:19:27]RAPDU: 90 00 [12:19:27]wFMCommunicate OK [12:19:27]wFMCommunicate request_size=10 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 0D 02 02 05 B2 0D BD 2C BB [12:19:27]Write to MH i2c: E2 0D 00 CB 63 80 0D 02 02 05 00 B2 0D BD 2C BB 00 00 15 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 03 00 CB 63 00 90 00 A2 [12:19:27]RAPDU: 90 00 [12:19:27]wFMCommunicate OK [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 0D 03 02 [12:19:27]Write to MH i2c: E2 08 00 CC 63 80 0D 03 02 00 00 00 00 AA [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 CC 63 00 19 BF 5C 13 64 B7 3B 9C 90 00 E4 [12:19:28]RAPDU: 19 BF 5C 13 64 B7 3B 9C 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_SignData done [12:19:28]FM_MakeSignedData done [12:19:28]CreateOFDProtocolMessage [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 CD 63 80 11 00 00 00 00 00 00 AA [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 CD 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:19:28]wFMCommunicate OK [12:19:28]CreateOFDProtocolMessage done [12:19:28]OFDSenderStorePacket 70224 [12:19:28]StoreOFDPacket docnum=70224 [12:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 31 07 01 65 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 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 AC 00 00 00 F4 03 04 00 53 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 12 01 00 35 04 06 00 44 B2 0D BD 2C BB 19 BF 5C 13 64 B7 3B 9C [12:19:28]CheckFolder [12:19:28]dirname=/storage/ofd_packets [12:19:28]CheckFolder done [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00070224 [12:19:28]NVStorageSaveData ofd_packets/00070224 [12:19:28]File name is /storage/ofd_packets/00070224 [12:19:28]Write 301 bytes [12:19:28]NVStorageSaveData done [12:19:28]OFDSenderStorePacket done [12:19:28]KKMCreateOFDPacket done [12:19:28]NVStorageSaveData kkm_last_timestamp [12:19:28]File name is /storage/kkm_last_timestamp [12:19:28]Write 4 bytes [12:19:28]NVStorageSaveData done [12:19:28]ExternCall_PrintAddStr [12:19:28]wPrintStart [12:19:28]Write to MH i2c: 01 00 00 CE 63 31 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 CE 63 00 00 00 00 00 FF 0F 46 [12:19:28]RasterBufferAndPrint [12:19:28]line Счет N : (1)2885992 [12:19:28]line ИНН: 02508201610067 [12:19:28]line Контрольно-Кассовый Чек [12:19:28]line ПРОДАЖА [12:19:28]line ТРК (МРК, ГНК) : 32 [12:19:28]line Товар: 2710124130 [12:19:28]line Аи-92-К-5 [12:19:28]line 14.950 * 66.90 [12:19:28]line = 1000.16 [12:19:28]line НДС 12% НСП 1% [12:19:28]line > о реализуемом товаре [12:19:28]line ОКРУГЛЕНИЕ: -0.16 [12:19:28]line ИТОГО: 1000.00 [12:19:28]line Внесено: 1000.00 [12:19:28]line СДАЧА: 0.00 [12:19:28]line НСП 1% : 8.85 [12:19:28]line НДС 12% : 106.21 [12:19:28]line Наличными: 1000.00 [12:19:28]line Безнал.: 0.00 [12:19:28]line Место: АЗС № 85 "Партнер Нефть" [12:19:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:19:28]line СНО: Общий режим [12:19:28]line Чек 172 22.10.2024 12:19 [12:19:28]line Смена: 195 ФФД: 1.0 [12:19:28]line ЗНМ: 0300000167 [12:19:28]line РНМ: 0000000000156251 [12:19:28]line Версия ККМ: v1.0 [12:19:28]line ФМ: 0000000000963346 [12:19:28]line ФД: 70224 [12:19:28]line ФПД: 75531525369019 [12:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121931&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70224&fm=75531525369019&tin=02508201610067®Number=0000000000156251&sum=100000 [12:19:28]OFD Sender: Processing packet 70224 [packets to send 18, broken 17] [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00070224 [12:19:28]OFD Sender: To server: pG, [12:19:28]CommunicateWithHost lk.salyk.kg:30040 [12:19:28]ConnectInit lk.salyk.kg [12:19:28]written 0, free lines is 4095 [12:19:28]Connected sock=10 [12:19: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 34 36 0F 01 00 00 78 31 07 01 65 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 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 AC 00 00 00 F4 03 04 00 53 98 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 12 01 00 35 04 06 00 44 B2 0D BD 2C BB 19 BF 5C 13 64 B7 3B 9C [12:19: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 34 36 4F 00 00 00 52 D1 47 00 C5 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 12 01 00 F4 03 04 00 F4 41 17 67 B6 04 01 00 00 85 AC D0 67 26 C4 70 E5 [12:19:28]CommunicateWithHost err = 0 [12:19:28]CheckOFDResponse [12:19:28]1017 (14) - 77093643461234 [12:19:28]1041 (16) - 0000000000963346 [12:19:28]1040 (4) - 70224 [12:19:28]1012 (4) - 22.10.2024 06:11 [12:19:28]1206 (1) - 0 [12:19:28]OFD Sender: Remove packet 70224 [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00070224 [12:19:28]NVStorageDeleteData [12:19:28]Write to MH i2c: 01 00 00 F9 63 5C [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 F9 63 00 00 00 00 00 FA 0C 69 [12:19:28]RasterBufferAndPrint [12:19:28]line [12:19:28]line [12:19:28]line [12:19:28]line [12:19:28]line [12:19:28]written 0, free lines is 3331 [12:19:28]MH_Cut [12:19:28]Write to MH i2c: D1 01 00 00 64 01 36 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: D1 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: D1 01 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: D1 01 00 00 64 00 35 [12:19:28]Write to MH i2c: 01 00 00 01 64 65 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:29]OFD Sender: No OFD packet to send [12:19:29]*** Cut start [12:19:29]*** Partial cut [12:19:29]*** CUTSNS_PIN = 1 [12:19:29]*** CUTSNS_PIN = 0 [12:19:29]*** Brake cut motor [12:19:30]Read from MH i2c: 01 [12:19:30]MH_I2C_Read... [12:19:30]*** Stop cut motor [12:19:30]*** Cut end [12:19:30]Read from MH i2c: 01 07 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 01 64 00 00 00 00 00 FF 0F 7A [12:19:30]process_action close_receipt done [12:19:30]requested_data is exist [12:19:30]produce_requested_data [12:19:30]requested_item fm.sn is exist - process it [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 11 00 00 [12:19:30]Write to MH i2c: E2 08 00 02 64 80 11 00 00 00 00 00 00 E0 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 02 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [12:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:19:30]wFMCommunicate OK [12:19:30]requested_item fd.num is exist - process it [12:19:30]SAM_PROTO_GetFieldsCounters [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 13 00 00 [12:19:30]Write to MH i2c: E2 08 00 03 64 80 13 00 00 00 00 00 00 E3 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 62 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 62 00 03 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 12 01 00 0E 04 04 00 C3 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 28 [12:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 12 01 00 0E 04 04 00 C3 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 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_GetFieldsCounters done [12:19:30]requested_item shift.num is exist - process it [12:19:30]requested_item shift.opened is exist - process it [12:19:30]req_shift_opened [12:19:30]FM_GetShiftState [12:19:30]SAM_PROTO_GetShiftState [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 13 01 00 [12:19:30]Write to MH i2c: E2 08 00 04 64 80 13 01 00 00 00 00 00 E5 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0E 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0E 00 04 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D3 [12:19:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_GetShiftState done [12:19:30]FM_GetShiftState done [12:19:30]req_shift_opened done [12:19:30]requested_item shift.open_date is exist - process it [12:19:30]req_shift_open_date [12:19:30]req_shift_open_date done [12:19:30]produce_requested_data done [12:19:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70224,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:19:30]process_action_free close_receipt [12:19:30]json_value_free [12:19:30]json_value_free done [12:19:30]process_json_proto returns [12:19:30]Send response to host [12:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70224,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:19:30]free response buf [12:19:30]execute_script done [12:19:30]execute_script returns [12:19:30]free content buf [12:19:30]Sock 9.Close socket [12:19:30]Sock 9.Thread stoped [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:21]accept exits with 7 [12:22:21]New connection [12:22:21]New thread 3067170148 created [12:22:21]Thread 3067026788 joined [12:22:21]Waiting for new connection... [12:22:21] Sock 7.Parse request [12:22:21]Sock 7.Check first char [12:22:21]Sock 7.First char is OK [12:22:21]request: POST /json_proto HTTP/1.0 [12:22:21]Method: POST [12:22:21]URL: /json_proto [12:22:21]Method is POST - this is cgi request [12:22:21]url: /json_proto [12:22:21]query_string will be loaded in cgi processing [12:22:21]execute_cgi json_proto POST (null) [12:22:21]execute_cgi path=json_proto method=POST [12:22:21]POST find Content-Length [12:22:21]Host: 172.17.50.3:8080 [12:22:21]Content-Length: 689 [12:22:21]Content-Type: application/json [12:22:21] [12:22:21]POST finish read [12:22:21]Found Content-Length = 689 [12:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [12:22:21]execute_script... [12:22: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)2885993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [12:22:21]POST & json_proto [12:22:21]process_json_proto [12:22:21]json parsed OK: [12:22:21]protocol is kg_v1.0 [12:22:21]action value=close_receipt [12:22:21]process_action close_receipt [12:22:21]cmd_close_receipt [12:22:21]MH_GetDate [12:22:21]Write to MH i2c: F0 00 00 05 64 58 [12:22:21]Write i2c OK [12:22:21]MH_I2C_Read... [12:22:21]Read from MH i2c: F0 [12:22:21]MH_I2C_Read... [12:22:21]Read from MH i2c: F0 09 00 [12:22:21]MH_I2C_Read... [12:22:21]Read from MH i2c: F0 09 00 05 64 00 02 99 17 67 6B 98 1E 66 01 [12:22:21]GetLastDocTimeStamp 1729599571 [12:22:21]current date 1729599746 [12:22:21]FM_GetShiftState [12:22:21]SAM_PROTO_GetShiftState [12:22:21]wFMCommunicate request_size=4 [12:22:21]MH_SAM_APDU [12:22:21]CAPDU: 80 13 01 00 [12:22:21]Write to MH i2c: E2 08 00 06 64 80 13 01 00 00 00 00 00 E7 [12:22:21]Write i2c OK [12:22:21]MH_I2C_Read... [12:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:21]Read from MH i2c: E2 [12:22:21]MH_I2C_Read... [12:22:21]Read from MH i2c: E2 0E 00 [12:22:21]MH_I2C_Read... [12:22:21]Read from MH i2c: E2 0E 00 06 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D5 [12:22:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:22:21]wFMCommunicate OK [12:22:21]SAM_PROTO_GetShiftState done [12:22:21]FM_GetShiftState done [12:22:21]opened in 1729555832 [12:22:21]opened+sec_in_day 1729642232 [12:22:21]quantity*price = 160035 [12:22:21]sum+1 = 160037 [12:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 173 22.10.2024 12:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70225 ФПД: 265620920950185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122226&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70225&fm=265620920950185&tin=02508201610067®Number=0000000000156251&sum=160000 [12:22:22]StoreToDocumentArchive [12:22:22]shift 195 fd 70225 [12:22:22]save to /storage/0195/doc_00070225 [12:22:22]save last doc name /storage/0195/doc_00070225 to /storage/kkm_last_doc_name [12:22:22]save OK [12:22:22]Clear old archive folders... [12:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:22:22]tlvbuf is 01308700 [12:22:22]SAM_PROTO_ClearQueue [12:22:22]wFMCommunicate request_size=4 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 09 00 00 [12:22:22]Write to MH i2c: E2 08 00 13 64 80 09 00 00 00 00 00 00 E9 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 13 64 00 90 00 EB [12:22:22]RAPDU: 90 00 [12:22:22]wFMCommunicate OK [12:22:22]SAM_PROTO_ClearQueue done [12:22:22]KKMCreateOFDPacket [12:22:22]OFDProtocolAddRootSTLVToBuf [12:22:22]FM_MakeSignedData [12:22:22]FM_MakeSignedData [12:22:22]SAM_PROTO_SignData [12:22:22]wFMCommunicate request_size=4 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 0D 01 02 [12:22:22]Write to MH i2c: E2 08 00 14 64 80 0D 01 02 00 00 00 00 F1 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 14 64 00 90 00 EC [12:22:22]RAPDU: 90 00 [12:22:22]wFMCommunicate OK [12:22:22]wFMCommunicate request_size=255 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AD 00 00 00 F4 03 04 00 02 99 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 12 01 [12:22:22]Write to MH i2c: E2 02 01 15 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AD 00 00 00 F4 03 04 00 02 99 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 12 01 00 00 8D [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 15 64 00 90 00 ED [12:22:22]RAPDU: 90 00 [12:22:22]wFMCommunicate OK [12:22:22]wFMCommunicate request_size=16 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 94 B0 A3 5D A9 [12:22:22]Write to MH i2c: E2 13 00 16 64 80 0D 02 02 0B 00 00 35 04 06 00 F1 94 B0 A3 5D A9 00 00 27 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 03 00 16 64 00 90 00 EE [12:22:22]RAPDU: 90 00 [12:22:22]wFMCommunicate OK [12:22:22]wFMCommunicate request_size=4 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 0D 03 02 [12:22:22]Write to MH i2c: E2 08 00 17 64 80 0D 03 02 00 00 00 00 F6 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 0B 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 0B 00 17 64 00 A1 BA A5 8E F4 2A C7 07 90 00 71 [12:22:22]RAPDU: A1 BA A5 8E F4 2A C7 07 90 00 [12:22:22]wFMCommunicate OK [12:22:22]SAM_PROTO_SignData done [12:22:22]FM_MakeSignedData done [12:22:22]CreateOFDProtocolMessage [12:22:22]wFMCommunicate request_size=4 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 11 00 00 [12:22:22]Write to MH i2c: E2 08 00 18 64 80 11 00 00 00 00 00 00 F6 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 17 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 17 00 18 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [12:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:22:22]wFMCommunicate OK [12:22:22]CreateOFDProtocolMessage done [12:22:22]OFDSenderStorePacket 70225 [12:22:22]StoreOFDPacket docnum=70225 [12:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D5 15 0D 01 2D 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AD 00 00 00 F4 03 04 00 02 99 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 12 01 00 35 04 06 00 F1 94 B0 A3 5D A9 A1 BA A5 8E F4 2A C7 07 [12:22:22]CheckFolder [12:22:22]dirname=/storage/ofd_packets [12:22:22]CheckFolder done [12:22:22]ProducePacketName [12:22:22]name=ofd_packets/00070225 [12:22:22]NVStorageSaveData ofd_packets/00070225 [12:22:22]File name is /storage/ofd_packets/00070225 [12:22:22]Write 307 bytes [12:22:22]NVStorageSaveData done [12:22:22]OFDSenderStorePacket done [12:22:22]KKMCreateOFDPacket done [12:22:22]NVStorageSaveData kkm_last_timestamp [12:22:22]File name is /storage/kkm_last_timestamp [12:22:22]Write 4 bytes [12:22:22]NVStorageSaveData done [12:22:22]ExternCall_PrintAddStr [12:22:22]wPrintStart [12:22:22]Write to MH i2c: 01 00 00 19 64 7D [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: 01 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: 01 07 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: 01 07 00 19 64 00 00 00 00 00 FF 0F 92 [12:22:22]RasterBufferAndPrint [12:22:22]line Счет N : (1)2885993 [12:22:22]line ИНН: 02508201610067 [12:22:22]line Контрольно-Кассовый Чек [12:22:22]line ПРОДАЖА [12:22:22]line ТРК (МРК, ГНК) : 31 [12:22:22]line Товар: 2710194240 [12:22:22]line D-ENERGY Дт-К-2 [12:22:22]line 20.730 * 77.20 [12:22:22]line = 1600.36 [12:22:22]line НДС 12% НСП 1% [12:22:22]line > о реализуемом товаре [12:22:22]line ОКРУГЛЕНИЕ: -0.36 [12:22:22]line ИТОГО: 1600.00 [12:22:22]line Внесено: 1600.00 [12:22:22]line СДАЧА: 0.00 [12:22:22]line НСП 1% : 14.16 [12:22:22]line НДС 12% : 169.95 [12:22:22]line Наличными: 1600.00 [12:22:22]line Безнал.: 0.00 [12:22:22]line Место: АЗС № 85 "Партнер Нефть" [12:22:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:22:22]line СНО: Общий режим [12:22:22]line Чек 173 22.10.2024 12:22 [12:22:22]line Смена: 195 ФФД: 1.0 [12:22:22]line ЗНМ: 0300000167 [12:22:22]line РНМ: 0000000000156251 [12:22:22]line Версия ККМ: v1.0 [12:22:22]line ФМ: 0000000000963346 [12:22:22]line ФД: 70225 [12:22:22]line ФПД: 265620920950185 [12:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122226&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70225&fm=265620920950185&tin=02508201610067®Number=0000000000156251&sum=160000 [12:22:23]OFD Sender: Processing packet 70225 [packets to send 18, broken 17] [12:22:23]ProducePacketName [12:22:23]name=ofd_packets/00070225 [12:22:23]OFD Sender: To server: pG, [12:22:23]CommunicateWithHost lk.salyk.kg:30040 [12:22:23]ConnectInit lk.salyk.kg [12:22:23]written 0, free lines is 4095 [12:22:23]Connected sock=10 [12:22: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 34 36 15 01 00 00 D5 15 0D 01 2D 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AD 00 00 00 F4 03 04 00 02 99 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 12 01 00 35 04 06 00 F1 94 B0 A3 5D A9 A1 BA A5 8E F4 2A C7 07 [12:22: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 34 36 4F 00 00 00 6E 95 47 00 D5 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 12 01 00 F4 03 04 00 A3 42 17 67 B6 04 01 00 00 E0 B7 24 68 F8 23 1E EC [12:22:23]CommunicateWithHost err = 0 [12:22:23]CheckOFDResponse [12:22:23]1017 (14) - 77093643461234 [12:22:23]1041 (16) - 0000000000963346 [12:22:23]1040 (4) - 70225 [12:22:23]1012 (4) - 22.10.2024 06:13 [12:22:23]1206 (1) - 0 [12:22:23]OFD Sender: Remove packet 70225 [12:22:23]ProducePacketName [12:22:23]name=ofd_packets/00070225 [12:22:23]NVStorageDeleteData [12:22:23]Write to MH i2c: 01 00 00 44 64 A8 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 07 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 07 00 44 64 00 00 00 00 00 E6 0C A1 [12:22:23]RasterBufferAndPrint [12:22:23]line [12:22:23]line [12:22:23]line [12:22:23]line [12:22:23]line [12:22:23]written 0, free lines is 3308 [12:22:23]MH_Cut [12:22:23]Write to MH i2c: D1 01 00 4B 64 01 81 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: D1 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: D1 01 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: D1 01 00 4B 64 00 80 [12:22:23]Write to MH i2c: 01 00 00 4C 64 B0 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]OFD Sender: No OFD packet to send [12:22:24]*** Cut start [12:22:24]*** Partial cut [12:22:24]*** CUTSNS_PIN = 1 [12:22:24]*** CUTSNS_PIN = 0 [12:22:24]*** Brake cut motor [12:22:24]Read from MH i2c: 01 [12:22:24]MH_I2C_Read... [12:22:24]*** Stop cut motor [12:22:24]*** Cut end [12:22:24]Read from MH i2c: 01 07 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: 01 07 00 4C 64 00 00 00 00 00 FF 0F C5 [12:22:24]process_action close_receipt done [12:22:24]requested_data is exist [12:22:24]produce_requested_data [12:22:24]requested_item fm.sn is exist - process it [12:22:24]wFMCommunicate request_size=4 [12:22:24]MH_SAM_APDU [12:22:24]CAPDU: 80 11 00 00 [12:22:24]Write to MH i2c: E2 08 00 4D 64 80 11 00 00 00 00 00 00 2B [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:24]Read from MH i2c: E2 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 17 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 17 00 4D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [12:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:22:24]wFMCommunicate OK [12:22:24]requested_item fd.num is exist - process it [12:22:24]SAM_PROTO_GetFieldsCounters [12:22:24]wFMCommunicate request_size=4 [12:22:24]MH_SAM_APDU [12:22:24]CAPDU: 80 13 00 00 [12:22:24]Write to MH i2c: E2 08 00 4E 64 80 13 00 00 00 00 00 00 2E [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:25]Read from MH i2c: E2 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 62 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 62 00 4E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 12 01 00 0E 04 04 00 C3 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 77 [12:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 12 01 00 0E 04 04 00 C3 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 [12:22:25]wFMCommunicate OK [12:22:25]SAM_PROTO_GetFieldsCounters done [12:22:25]requested_item shift.num is exist - process it [12:22:25]requested_item shift.opened is exist - process it [12:22:25]req_shift_opened [12:22:25]FM_GetShiftState [12:22:25]SAM_PROTO_GetShiftState [12:22:25]wFMCommunicate request_size=4 [12:22:25]MH_SAM_APDU [12:22:25]CAPDU: 80 13 01 00 [12:22:25]Write to MH i2c: E2 08 00 4F 64 80 13 01 00 00 00 00 00 30 [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:25]Read from MH i2c: E2 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 0E 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 0E 00 4F 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1E [12:22:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:22:25]wFMCommunicate OK [12:22:25]SAM_PROTO_GetShiftState done [12:22:25]FM_GetShiftState done [12:22:25]req_shift_opened done [12:22:25]requested_item shift.open_date is exist - process it [12:22:25]req_shift_open_date [12:22:25]req_shift_open_date done [12:22:25]produce_requested_data done [12:22:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70225,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:22:25]process_action_free close_receipt [12:22:25]json_value_free [12:22:25]json_value_free done [12:22:25]process_json_proto returns [12:22:25]Send response to host [12:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70225,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:22:25]free response buf [12:22:25]execute_script done [12:22:25]execute_script returns [12:22:25]free content buf [12:22:25]Sock 7.Close socket [12:22:25]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:12]accept exits with 9 [12:27:12]New connection [12:27:12]New thread 3067026788 created [12:27:12]Thread 3067170148 joined [12:27:12]Waiting for new connection... [12:27:12] Sock 9.Parse request [12:27:12]Sock 9.Check first char [12:27:12]Sock 9.First char is OK [12:27:12]request: POST /json_proto HTTP/1.0 [12:27:12]Method: POST [12:27:12]URL: /json_proto [12:27:12]Method is POST - this is cgi request [12:27:12]url: /json_proto [12:27:12]query_string will be loaded in cgi processing [12:27:12]execute_cgi json_proto POST (null) [12:27:12]execute_cgi path=json_proto method=POST [12:27:12]POST find Content-Length [12:27:12]Host: 172.17.50.3:8080 [12:27:12]Content-Length: 678 [12:27:12]Content-Type: application/json [12:27:12] [12:27:12]POST finish read [12:27:12]Found Content-Length = 678 [12:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:27:12]execute_script... [12:27: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 : (1)2885994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:27:12]POST & json_proto [12:27:12]process_json_proto [12:27:12]json parsed OK: [12:27:12]protocol is kg_v1.0 [12:27:12]action value=close_receipt [12:27:12]process_action close_receipt [12:27:12]cmd_close_receipt [12:27:12]MH_GetDate [12:27:12]Write to MH i2c: F0 00 00 50 64 A3 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: F0 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: F0 09 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: F0 09 00 50 64 00 25 9A 17 67 6B 98 1E 66 70 [12:27:12]GetLastDocTimeStamp 1729599746 [12:27:12]current date 1729600037 [12:27:12]FM_GetShiftState [12:27:12]SAM_PROTO_GetShiftState [12:27:12]wFMCommunicate request_size=4 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 13 01 00 [12:27:12]Write to MH i2c: E2 08 00 51 64 80 13 01 00 00 00 00 00 32 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 0E 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 0E 00 51 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 20 [12:27:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:27:12]wFMCommunicate OK [12:27:12]SAM_PROTO_GetShiftState done [12:27:12]FM_GetShiftState done [12:27:12]opened in 1729555832 [12:27:12]opened+sec_in_day 1729642232 [12:27:12]quantity*price = 50041 [12:27:12]sum+1 = 50042 [12:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 174 22.10.2024 12:27 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70226 ФПД: 4690020786419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70226&fm=4690020786419&tin=02508201610067®Number=0000000000156251&sum=50000 [12:27:13]StoreToDocumentArchive [12:27:13]shift 195 fd 70226 [12:27:13]save to /storage/0195/doc_00070226 [12:27:13]save last doc name /storage/0195/doc_00070226 to /storage/kkm_last_doc_name [12:27:13]save OK [12:27:13]Clear old archive folders... [12:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:13]tlvbuf is 013081C0 [12:27:13]SAM_PROTO_ClearQueue [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 09 00 00 [12:27:13]Write to MH i2c: E2 08 00 5E 64 80 09 00 00 00 00 00 00 34 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 5E 64 00 90 00 36 [12:27:13]RAPDU: 90 00 [12:27:13]wFMCommunicate OK [12:27:13]SAM_PROTO_ClearQueue done [12:27:13]KKMCreateOFDPacket [12:27:13]OFDProtocolAddRootSTLVToBuf [12:27:13]FM_MakeSignedData [12:27:13]FM_MakeSignedData [12:27:13]SAM_PROTO_SignData [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 0D 01 02 [12:27:13]Write to MH i2c: E2 08 00 5F 64 80 0D 01 02 00 00 00 00 3C [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 5F 64 00 90 00 37 [12:27:13]RAPDU: 90 00 [12:27:13]wFMCommunicate OK [12:27:13]wFMCommunicate request_size=255 [12:27:13]MH_SAM_APDU [12:27:13]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 AE 00 00 00 F4 03 04 00 25 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 12 01 00 35 04 06 00 04 [12:27:13]Write to MH i2c: E2 02 01 60 64 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 AE 00 00 00 F4 03 04 00 25 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 12 01 00 35 04 06 00 04 00 00 DC [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 60 64 00 90 00 38 [12:27:13]RAPDU: 90 00 [12:27:13]wFMCommunicate OK [12:27:13]wFMCommunicate request_size=10 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 0D 02 02 05 43 FB 05 E0 F3 [12:27:13]Write to MH i2c: E2 0D 00 61 64 80 0D 02 02 05 00 43 FB 05 E0 F3 00 00 5F [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 03 00 61 64 00 90 00 39 [12:27:13]RAPDU: 90 00 [12:27:13]wFMCommunicate OK [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 0D 03 02 [12:27:13]Write to MH i2c: E2 08 00 62 64 80 0D 03 02 00 00 00 00 41 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 0B 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 0B 00 62 64 00 52 AD 7A 31 B2 9F 16 82 90 00 D5 [12:27:13]RAPDU: 52 AD 7A 31 B2 9F 16 82 90 00 [12:27:13]wFMCommunicate OK [12:27:13]SAM_PROTO_SignData done [12:27:13]FM_MakeSignedData done [12:27:13]CreateOFDProtocolMessage [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 11 00 00 [12:27:13]Write to MH i2c: E2 08 00 63 64 80 11 00 00 00 00 00 00 41 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 17 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 17 00 63 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [12:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:27:13]wFMCommunicate OK [12:27:13]CreateOFDProtocolMessage done [12:27:13]OFDSenderStorePacket 70226 [12:27:13]StoreOFDPacket docnum=70226 [12:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 1D 07 01 A9 D0 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 AE 00 00 00 F4 03 04 00 25 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 12 01 00 35 04 06 00 04 43 FB 05 E0 F3 52 AD 7A 31 B2 9F 16 82 [12:27:13]CheckFolder [12:27:13]dirname=/storage/ofd_packets [12:27:13]CheckFolder done [12:27:13]ProducePacketName [12:27:13]name=ofd_packets/00070226 [12:27:13]NVStorageSaveData ofd_packets/00070226 [12:27:13]File name is /storage/ofd_packets/00070226 [12:27:13]Write 301 bytes [12:27:13]NVStorageSaveData done [12:27:13]OFDSenderStorePacket done [12:27:13]KKMCreateOFDPacket done [12:27:13]NVStorageSaveData kkm_last_timestamp [12:27:13]File name is /storage/kkm_last_timestamp [12:27:13]Write 4 bytes [12:27:13]NVStorageSaveData done [12:27:13]ExternCall_PrintAddStr [12:27:13]wPrintStart [12:27:13]Write to MH i2c: 01 00 00 64 64 C8 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 07 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 07 00 64 64 00 00 00 00 00 FF 0F DD [12:27:13]RasterBufferAndPrint [12:27:13]line Счет N : (1)2885994 [12:27:13]line ИНН: 02508201610067 [12:27:13]line Контрольно-Кассовый Чек [12:27:13]line ПРОДАЖА [12:27:13]line ТРК (МРК, ГНК) : 42 [12:27:13]line Товар: 2710124130 [12:27:13]line Аи-92-К-5 [12:27:13]line 7.480 * 66.90 [12:27:13]line = 500.41 [12:27:13]line НДС 12% НСП 1% [12:27:13]line > о реализуемом товаре [12:27:13]line ОКРУГЛЕНИЕ: -0.41 [12:27:13]line ИТОГО: 500.00 [12:27:13]line Внесено: 500.00 [12:27:13]line СДАЧА: 0.00 [12:27:13]line НСП 1% : 4.43 [12:27:13]line НДС 12% : 53.14 [12:27:13]line Наличными: 500.00 [12:27:13]line Безнал.: 0.00 [12:27:13]line Место: АЗС № 85 "Партнер Нефть" [12:27:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:27:13]line СНО: Общий режим [12:27:13]line Чек 174 22.10.2024 12:27 [12:27:13]line Смена: 195 ФФД: 1.0 [12:27:13]line ЗНМ: 0300000167 [12:27:13]line РНМ: 0000000000156251 [12:27:13]line Версия ККМ: v1.0 [12:27:13]line ФМ: 0000000000963346 [12:27:13]line ФД: 70226 [12:27:13]line ФПД: 4690020786419 [12:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70226&fm=4690020786419&tin=02508201610067®Number=0000000000156251&sum=50000 [12:27:14]OFD Sender: Processing packet 70226 [packets to send 18, broken 17] [12:27:14]ProducePacketName [12:27:14]name=ofd_packets/00070226 [12:27:14]OFD Sender: To server: pG, [12:27:14]CommunicateWithHost lk.salyk.kg:30040 [12:27:14]ConnectInit lk.salyk.kg [12:27:14]written 0, free lines is 4095 [12:27:14]Connected sock=10 [12:27: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 34 36 0F 01 00 00 C1 1D 07 01 A9 D0 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 AE 00 00 00 F4 03 04 00 25 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 12 01 00 35 04 06 00 04 43 FB 05 E0 F3 52 AD 7A 31 B2 9F 16 82 [12:27: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 34 36 4F 00 00 00 A3 91 47 00 76 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 34 36 10 04 04 00 52 12 01 00 F4 03 04 00 C6 43 17 67 B6 04 01 00 00 C3 31 0E CD 15 72 5D 66 [12:27:14]CommunicateWithHost err = 0 [12:27:14]CheckOFDResponse [12:27:14]1017 (14) - 77093643461234 [12:27:14]1041 (16) - 0000000000963346 [12:27:14]1040 (4) - 70226 [12:27:14]1012 (4) - 22.10.2024 06:18 [12:27:14]1206 (1) - 0 [12:27:14]OFD Sender: Remove packet 70226 [12:27:14]ProducePacketName [12:27:14]name=ofd_packets/00070226 [12:27:14]NVStorageDeleteData [12:27:14]Write to MH i2c: 01 00 00 8F 64 F3 [12:27:14]Write i2c OK [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: 01 [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: 01 07 00 [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: 01 07 00 8F 64 00 00 00 00 00 ED 0C F3 [12:27:14]RasterBufferAndPrint [12:27:14]line [12:27:14]line [12:27:14]line [12:27:14]line [12:27:14]line [12:27:14]written 0, free lines is 3315 [12:27:14]MH_Cut [12:27:14]Write to MH i2c: D1 01 00 96 64 01 CC [12:27:14]Write i2c OK [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: D1 [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: D1 01 00 [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: D1 01 00 96 64 00 CB [12:27:14]Write to MH i2c: 01 00 00 97 64 FB [12:27:14]Write i2c OK [12:27:14]MH_I2C_Read... [12:27:14]OFD Sender: No OFD packet to send [12:27:15]*** Cut start [12:27:15]*** Partial cut [12:27:15]*** CUTSNS_PIN = 1 [12:27:15]*** CUTSNS_PIN = 0 [12:27:15]*** Brake cut motor [12:27:15]Read from MH i2c: 01 [12:27:15]MH_I2C_Read... [12:27:15]*** Stop cut motor [12:27:15]*** Cut end [12:27:15]Read from MH i2c: 01 07 00 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: 01 07 00 97 64 00 00 00 00 00 FF 0F 10 [12:27:15]process_action close_receipt done [12:27:15]requested_data is exist [12:27:15]produce_requested_data [12:27:15]requested_item fm.sn is exist - process it [12:27:15]wFMCommunicate request_size=4 [12:27:15]MH_SAM_APDU [12:27:15]CAPDU: 80 11 00 00 [12:27:15]Write to MH i2c: E2 08 00 98 64 80 11 00 00 00 00 00 00 76 [12:27:15]Write i2c OK [12:27:15]MH_I2C_Read... [12:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:15]Read from MH i2c: E2 [12:27:15]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 17 00 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 17 00 98 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [12:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:27:16]wFMCommunicate OK [12:27:16]requested_item fd.num is exist - process it [12:27:16]SAM_PROTO_GetFieldsCounters [12:27:16]wFMCommunicate request_size=4 [12:27:16]MH_SAM_APDU [12:27:16]CAPDU: 80 13 00 00 [12:27:16]Write to MH i2c: E2 08 00 99 64 80 13 00 00 00 00 00 00 79 [12:27:16]Write i2c OK [12:27:16]MH_I2C_Read... [12:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:16]Read from MH i2c: E2 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 62 00 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 62 00 99 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 12 01 00 0E 04 04 00 C3 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 C6 [12:27: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 12 01 00 0E 04 04 00 C3 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 [12:27:16]wFMCommunicate OK [12:27:16]SAM_PROTO_GetFieldsCounters done [12:27:16]requested_item shift.num is exist - process it [12:27:16]requested_item shift.opened is exist - process it [12:27:16]req_shift_opened [12:27:16]FM_GetShiftState [12:27:16]SAM_PROTO_GetShiftState [12:27:16]wFMCommunicate request_size=4 [12:27:16]MH_SAM_APDU [12:27:16]CAPDU: 80 13 01 00 [12:27:16]Write to MH i2c: E2 08 00 9A 64 80 13 01 00 00 00 00 00 7B [12:27:16]Write i2c OK [12:27:16]MH_I2C_Read... [12:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:16]Read from MH i2c: E2 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 0E 00 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: E2 0E 00 9A 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 69 [12:27:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:27:16]wFMCommunicate OK [12:27:16]SAM_PROTO_GetShiftState done [12:27:16]FM_GetShiftState done [12:27:16]req_shift_opened done [12:27:16]requested_item shift.open_date is exist - process it [12:27:16]req_shift_open_date [12:27:16]req_shift_open_date done [12:27:16]produce_requested_data done [12:27:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70226,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:27:16]process_action_free close_receipt [12:27:16]json_value_free [12:27:16]json_value_free done [12:27:16]process_json_proto returns [12:27:16]Send response to host [12:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70226,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:27:16]free response buf [12:27:16]execute_script done [12:27:16]execute_script returns [12:27:16]free content buf [12:27:16]Sock 9.Close socket [12:27:16]Sock 9.Thread stoped [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:36]accept exits with 7 [12:28:36]New connection [12:28:36]New thread 3067170148 created [12:28:36]Thread 3067026788 joined [12:28:36]Waiting for new connection... [12:28:36] Sock 7.Parse request [12:28:36]Sock 7.Check first char [12:28:36]Sock 7.First char is OK [12:28:36]request: POST /json_proto HTTP/1.0 [12:28:36]Method: POST [12:28:36]URL: /json_proto [12:28:36]Method is POST - this is cgi request [12:28:36]url: /json_proto [12:28:36]query_string will be loaded in cgi processing [12:28:36]execute_cgi json_proto POST (null) [12:28:36]execute_cgi path=json_proto method=POST [12:28:36]POST find Content-Length [12:28:36]Host: 172.17.50.3:8080 [12:28:36]Content-Length: 640 [12:28:36]Content-Type: application/json [12:28:36] [12:28:36]POST finish read [12:28:36]Found Content-Length = 640 [12:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.000, "sum" : 2286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:36]execute_script... [12: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 : (1)2885995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.000, "sum" : 2286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:36]POST & json_proto [12:28:36]process_json_proto [12:28:36]json parsed OK: [12:28:36]protocol is kg_v1.0 [12:28:36]action value=close_receipt [12:28:36]process_action close_receipt [12:28:36]cmd_close_receipt [12:28:36]MH_GetDate [12:28:36]Write to MH i2c: F0 00 00 9B 64 EE [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 09 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: F0 09 00 9B 64 00 79 9A 17 67 6B 98 1E 66 0F [12:28:36]GetLastDocTimeStamp 1729600037 [12:28:36]current date 1729600121 [12:28:36]FM_GetShiftState [12:28:36]SAM_PROTO_GetShiftState [12:28:36]wFMCommunicate request_size=4 [12:28:36]MH_SAM_APDU [12:28:36]CAPDU: 80 13 01 00 [12:28:36]Write to MH i2c: E2 08 00 9C 64 80 13 01 00 00 00 00 00 7D [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:36]Read from MH i2c: E2 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 9C 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6B [12:28:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:28:36]wFMCommunicate OK [12:28:36]SAM_PROTO_GetShiftState done [12:28:36]FM_GetShiftState done [12:28:36]opened in 1729555832 [12:28:36]opened+sec_in_day 1729642232 [12:28:36]quantity*price = 228600 [12:28:36]sum+1 = 228601 [12:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2286.00 НСП 1% : 20.23 НДС 12% : 242.76 Наличными: 2286.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 175 22.10.2024 12:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70227 ФПД: 178466147488718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70227&fm=178466147488718&tin=02508201610067®Number=0000000000156251&sum=228600 [12:28:37]StoreToDocumentArchive [12:28:37]shift 195 fd 70227 [12:28:37]save to /storage/0195/doc_00070227 [12:28:37]save last doc name /storage/0195/doc_00070227 to /storage/kkm_last_doc_name [12:28:37]save OK [12:28:37]Clear old archive folders... [12:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:37]tlvbuf is 01101490 [12:28:37]SAM_PROTO_ClearQueue [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 09 00 00 [12:28:37]Write to MH i2c: E2 08 00 A9 64 80 09 00 00 00 00 00 00 7F [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 A9 64 00 90 00 81 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]SAM_PROTO_ClearQueue done [12:28:37]KKMCreateOFDPacket [12:28:37]OFDProtocolAddRootSTLVToBuf [12:28:37]FM_MakeSignedData [12:28:37]FM_MakeSignedData [12:28:37]SAM_PROTO_SignData [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 01 02 [12:28:37]Write to MH i2c: E2 08 00 AA 64 80 0D 01 02 00 00 00 00 87 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 AA 64 00 90 00 82 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=255 [12:28:37]MH_SAM_APDU [12:28:37]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 C4 1D 00 00 00 00 13 04 06 00 F8 7C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 7C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 5E 00 00 00 00 07 04 06 00 F8 7C 03 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 79 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 12 01 00 35 04 06 00 A2 50 63 53 [12:28:37]Write to MH i2c: E2 02 01 AB 64 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 C4 1D 00 00 00 00 13 04 06 00 F8 7C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 7C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 5E 00 00 00 00 07 04 06 00 F8 7C 03 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 79 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 12 01 00 35 04 06 00 A2 50 63 53 00 00 FA [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 AB 64 00 90 00 83 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=7 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 02 02 02 53 CE [12:28:37]Write to MH i2c: E2 0A 00 AC 64 80 0D 02 02 02 00 53 CE 00 00 AF [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 03 00 AC 64 00 90 00 84 [12:28:37]RAPDU: 90 00 [12:28:37]wFMCommunicate OK [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 0D 03 02 [12:28:37]Write to MH i2c: E2 08 00 AD 64 80 0D 03 02 00 00 00 00 8C [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 0B 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 0B 00 AD 64 00 10 E4 A8 46 E0 1E EC BA 90 00 13 [12:28:37]RAPDU: 10 E4 A8 46 E0 1E EC BA 90 00 [12:28:37]wFMCommunicate OK [12:28:37]SAM_PROTO_SignData done [12:28:37]FM_MakeSignedData done [12:28:37]CreateOFDProtocolMessage [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 11 00 00 [12:28:37]Write to MH i2c: E2 08 00 AE 64 80 11 00 00 00 00 00 00 8C [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:37]Read from MH i2c: E2 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 17 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: E2 17 00 AE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [12:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:28:37]wFMCommunicate OK [12:28:37]CreateOFDProtocolMessage done [12:28:37]OFDSenderStorePacket 70227 [12:28:37]StoreOFDPacket docnum=70227 [12:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 56 32 04 01 FF 5B 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 C4 1D 00 00 00 00 13 04 06 00 F8 7C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 7C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 5E 00 00 00 00 07 04 06 00 F8 7C 03 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 79 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 12 01 00 35 04 06 00 A2 50 63 53 53 CE 10 E4 A8 46 E0 1E EC BA [12:28:37]CheckFolder [12:28:37]dirname=/storage/ofd_packets [12:28:37]CheckFolder done [12:28:37]ProducePacketName [12:28:37]name=ofd_packets/00070227 [12:28:37]NVStorageSaveData ofd_packets/00070227 [12:28:37]File name is /storage/ofd_packets/00070227 [12:28:37]Write 298 bytes [12:28:37]NVStorageSaveData done [12:28:37]OFDSenderStorePacket done [12:28:37]KKMCreateOFDPacket done [12:28:37]NVStorageSaveData kkm_last_timestamp [12:28:37]File name is /storage/kkm_last_timestamp [12:28:37]Write 4 bytes [12:28:37]NVStorageSaveData done [12:28:37]ExternCall_PrintAddStr [12:28:37]wPrintStart [12:28:37]Write to MH i2c: 01 00 00 AF 64 13 [12:28:37]Write i2c OK [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 07 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 07 00 AF 64 00 00 00 00 00 FF 0F 28 [12:28:37]RasterBufferAndPrint [12:28:37]line Счет N : (1)2885995 [12:28:37]line ИНН: 02508201610067 [12:28:37]line Контрольно-Кассовый Чек [12:28:37]line ПРОДАЖА [12:28:37]line ТРК (МРК, ГНК) : 61 [12:28:37]line Товар: 2710194210 [12:28:37]line ДТ-К-5 [12:28:37]line 30.000 * 76.20 [12:28:37]line = 2286.00 [12:28:37]line НДС 12% НСП 1% [12:28:37]line > о реализуемом товаре [12:28:37]line ИТОГО: 2286.00 [12:28:37]line НСП 1% : 20.23 [12:28:37]line НДС 12% : 242.76 [12:28:37]line Наличными: 2286.00 [12:28:37]line Безнал.: 0.00 [12:28:37]line Место: АЗС № 85 "Партнер Нефть" [12:28:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:28:37]line СНО: Общий режим [12:28:37]line Чек 175 22.10.2024 12:28 [12:28:37]line Смена: 195 ФФД: 1.0 [12:28:37]line ЗНМ: 0300000167 [12:28:37]line РНМ: 0000000000156251 [12:28:37]line Версия ККМ: v1.0 [12:28:37]line ФМ: 0000000000963346 [12:28:37]line ФД: 70227 [12:28:37]line ФПД: 178466147488718 [12:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70227&fm=178466147488718&tin=02508201610067®Number=0000000000156251&sum=228600 [12:28:38]OFD Sender: Processing packet 70227 [packets to send 18, broken 17] [12:28:38]ProducePacketName [12:28:38]name=ofd_packets/00070227 [12:28:38]OFD Sender: To server: pG, [12:28:38]CommunicateWithHost lk.salyk.kg:30040 [12:28:38]ConnectInit lk.salyk.kg [12:28:38]written 0, free lines is 4095 [12:28:38]Connected sock=10 [12: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 34 36 0C 01 00 00 56 32 04 01 FF 5B 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 C4 1D 00 00 00 00 13 04 06 00 F8 7C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 7C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 5E 00 00 00 00 07 04 06 00 F8 7C 03 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 79 9A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 12 01 00 35 04 06 00 A2 50 63 53 53 CE 10 E4 A8 46 E0 1E EC BA [12: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 34 36 4F 00 00 00 6E BD 47 00 C9 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 34 36 10 04 04 00 53 12 01 00 F4 03 04 00 1A 44 17 67 B6 04 01 00 00 99 84 2E 27 8F E1 60 15 [12:28:38]CommunicateWithHost err = 0 [12:28:38]CheckOFDResponse [12:28:38]1017 (14) - 77093643461234 [12:28:38]1041 (16) - 0000000000963346 [12:28:38]1040 (4) - 70227 [12:28:38]1012 (4) - 22.10.2024 06:20 [12:28:38]1206 (1) - 0 [12:28:38]OFD Sender: Remove packet 70227 [12:28:38]ProducePacketName [12:28:38]name=ofd_packets/00070227 [12:28:38]NVStorageDeleteData [12:28:38]Write to MH i2c: 01 00 00 D7 64 3B [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 07 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: 01 07 00 D7 64 00 00 00 00 00 18 0D 67 [12:28:38]RasterBufferAndPrint [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]line [12:28:38]written 0, free lines is 3359 [12:28:38]MH_Cut [12:28:38]Write to MH i2c: D1 01 00 DE 64 01 14 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 01 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: D1 01 00 DE 64 00 13 [12:28:38]Write to MH i2c: 01 00 00 DF 64 43 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]OFD Sender: No OFD packet to send [12:28:39]*** Cut start [12:28:39]*** Partial cut [12:28:39]*** CUTSNS_PIN = 1 [12:28:39]*** CUTSNS_PIN = 0 [12:28:39]*** Brake cut motor [12:28:39]Read from MH i2c: 01 [12:28:39]MH_I2C_Read... [12:28:39]*** Stop cut motor [12:28:39]*** Cut end [12:28:39]Read from MH i2c: 01 07 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: 01 07 00 DF 64 00 00 00 00 00 FF 0F 58 [12:28:39]process_action close_receipt done [12:28:39]requested_data is exist [12:28:39]produce_requested_data [12:28:39]requested_item fm.sn is exist - process it [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 11 00 00 [12:28:39]Write to MH i2c: E2 08 00 E0 64 80 11 00 00 00 00 00 00 BE [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 17 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 17 00 E0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [12:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:28:39]wFMCommunicate OK [12:28:39]requested_item fd.num is exist - process it [12:28:39]SAM_PROTO_GetFieldsCounters [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 13 00 00 [12:28:39]Write to MH i2c: E2 08 00 E1 64 80 13 00 00 00 00 00 00 C1 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 62 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 62 00 E1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 12 01 00 0E 04 04 00 C3 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 12 [12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 12 01 00 0E 04 04 00 C3 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 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_GetFieldsCounters done [12:28:40]requested_item shift.num is exist - process it [12:28:40]requested_item shift.opened is exist - process it [12:28:40]req_shift_opened [12:28:40]FM_GetShiftState [12:28:40]SAM_PROTO_GetShiftState [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 13 01 00 [12:28:40]Write to MH i2c: E2 08 00 E2 64 80 13 01 00 00 00 00 00 C3 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0E 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0E 00 E2 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B1 [12:28:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_GetShiftState done [12:28:40]FM_GetShiftState done [12:28:40]req_shift_opened done [12:28:40]requested_item shift.open_date is exist - process it [12:28:40]req_shift_open_date [12:28:40]req_shift_open_date done [12:28:40]produce_requested_data done [12:28:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70227,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:28:40]process_action_free close_receipt [12:28:40]json_value_free [12:28:40]json_value_free done [12:28:40]process_json_proto returns [12:28:40]Send response to host [12:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70227,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:28:40]free response buf [12:28:40]execute_script done [12:28:40]execute_script returns [12:28:40]free content buf [12:28:40]Sock 7.Close socket [12:28:40]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:41]accept exits with 9 [12:31:41]New connection [12:31:41]New thread 3067026788 created [12:31:41]Thread 3067170148 joined [12:31:41]Waiting for new connection... [12:31:41] Sock 9.Parse request [12:31:41]Sock 9.Check first char [12:31:41]Sock 9.First char is OK [12:31:41]request: POST /json_proto HTTP/1.0 [12:31:41]Method: POST [12:31:41]URL: /json_proto [12:31:41]Method is POST - this is cgi request [12:31:41]url: /json_proto [12:31:41]query_string will be loaded in cgi processing [12:31:41]execute_cgi json_proto POST (null) [12:31:41]execute_cgi path=json_proto method=POST [12:31:41]POST find Content-Length [12:31:41]Host: 172.17.50.3:8080 [12:31:41]Content-Length: 678 [12:31:41]Content-Type: application/json [12:31:41] [12:31:41]POST finish read [12:31:41]Found Content-Length = 678 [12:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.110, "sum" : 408.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 408.00, "total" : 408.00, "payments": [ { "type": 0, "sum" : 408.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:41]execute_script... [12:31: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)2885996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.110, "sum" : 408.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 408.00, "total" : 408.00, "payments": [ { "type": 0, "sum" : 408.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:41]POST & json_proto [12:31:41]process_json_proto [12:31:41]json parsed OK: [12:31:41]protocol is kg_v1.0 [12:31:41]action value=close_receipt [12:31:41]process_action close_receipt [12:31:41]cmd_close_receipt [12:31:41]MH_GetDate [12:31:41]Write to MH i2c: F0 00 00 E3 64 36 [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: F0 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: F0 09 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: F0 09 00 E3 64 00 32 9B 17 67 6B 98 1E 66 11 [12:31:41]GetLastDocTimeStamp 1729600121 [12:31:41]current date 1729600306 [12:31:41]FM_GetShiftState [12:31:41]SAM_PROTO_GetShiftState [12:31:41]wFMCommunicate request_size=4 [12:31:41]MH_SAM_APDU [12:31:41]CAPDU: 80 13 01 00 [12:31:41]Write to MH i2c: E2 08 00 E4 64 80 13 01 00 00 00 00 00 C5 [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:41]Read from MH i2c: E2 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 0E 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 0E 00 E4 64 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [12:31:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:31:41]wFMCommunicate OK [12:31:41]SAM_PROTO_GetShiftState done [12:31:41]FM_GetShiftState done [12:31:41]opened in 1729555832 [12:31:41]opened+sec_in_day 1729642232 [12:31:41]quantity*price = 40875 [12:31:41]sum+1 = 40877 [12:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 408.00 Внесено: 408.00 СДАЧА: 0.00 НСП 1% : 3.62 НДС 12% : 43.41 Наличными: 408.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 176 22.10.2024 12:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70228 ФПД: 219650307193023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70228&fm=219650307193023&tin=02508201610067®Number=0000000000156251&sum=40800 [12:31:42]StoreToDocumentArchive [12:31:42]shift 195 fd 70228 [12:31:42]save to /storage/0195/doc_00070228 [12:31:42]save last doc name /storage/0195/doc_00070228 to /storage/kkm_last_doc_name [12:31:42]save OK [12:31:42]Clear old archive folders... [12:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:42]tlvbuf is 01144C90 [12:31:42]SAM_PROTO_ClearQueue [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 09 00 00 [12:31:42]Write to MH i2c: E2 08 00 F1 64 80 09 00 00 00 00 00 00 C7 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 F1 64 00 90 00 C9 [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]SAM_PROTO_ClearQueue done [12:31:42]KKMCreateOFDPacket [12:31:42]OFDProtocolAddRootSTLVToBuf [12:31:42]FM_MakeSignedData [12:31:42]FM_MakeSignedData [12:31:42]SAM_PROTO_SignData [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 0D 01 02 [12:31:42]Write to MH i2c: E2 08 00 F2 64 80 0D 01 02 00 00 00 00 CF [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 F2 64 00 90 00 CA [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=255 [12:31:42]MH_SAM_APDU [12:31:42]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 DE 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 10 00 00 00 00 07 04 06 00 60 9F 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 32 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 12 01 00 35 04 06 00 C7 [12:31:42]Write to MH i2c: E2 02 01 F3 64 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 DE 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 10 00 00 00 00 07 04 06 00 60 9F 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 32 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 12 01 00 35 04 06 00 C7 00 00 A9 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 F3 64 00 90 00 CB [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=10 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 0D 02 02 05 C5 52 88 F8 BF [12:31:42]Write to MH i2c: E2 0D 00 F4 64 80 0D 02 02 05 00 C5 52 88 F8 BF 00 00 32 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 F4 64 00 90 00 CC [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 0D 03 02 [12:31:42]Write to MH i2c: E2 08 00 F5 64 80 0D 03 02 00 00 00 00 D4 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 0B 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 0B 00 F5 64 00 68 B3 02 57 E4 49 BD 80 90 00 B3 [12:31:42]RAPDU: 68 B3 02 57 E4 49 BD 80 90 00 [12:31:42]wFMCommunicate OK [12:31:42]SAM_PROTO_SignData done [12:31:42]FM_MakeSignedData done [12:31:42]CreateOFDProtocolMessage [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 11 00 00 [12:31:42]Write to MH i2c: E2 08 00 F6 64 80 11 00 00 00 00 00 00 D4 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:43]Read from MH i2c: E2 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 17 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 17 00 F6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [12:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:31:43]wFMCommunicate OK [12:31:43]CreateOFDProtocolMessage done [12:31:43]OFDSenderStorePacket 70228 [12:31:43]StoreOFDPacket docnum=70228 [12:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E5 56 07 01 E8 2F 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 DE 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 10 00 00 00 00 07 04 06 00 60 9F 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 32 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 12 01 00 35 04 06 00 C7 C5 52 88 F8 BF 68 B3 02 57 E4 49 BD 80 [12:31:43]CheckFolder [12:31:43]dirname=/storage/ofd_packets [12:31:43]CheckFolder done [12:31:43]ProducePacketName [12:31:43]name=ofd_packets/00070228 [12:31:43]NVStorageSaveData ofd_packets/00070228 [12:31:43]File name is /storage/ofd_packets/00070228 [12:31:43]Write 301 bytes [12:31:43]NVStorageSaveData done [12:31:43]OFDSenderStorePacket done [12:31:43]KKMCreateOFDPacket done [12:31:43]NVStorageSaveData kkm_last_timestamp [12:31:43]File name is /storage/kkm_last_timestamp [12:31:43]Write 4 bytes [12:31:43]NVStorageSaveData done [12:31:43]ExternCall_PrintAddStr [12:31:43]wPrintStart [12:31:43]Write to MH i2c: 01 00 00 F7 64 5B [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 07 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 07 00 F7 64 00 00 00 00 00 FF 0F 70 [12:31:43]RasterBufferAndPrint [12:31:43]line Счет N : (1)2885996 [12:31:43]line ИНН: 02508201610067 [12:31:43]line Контрольно-Кассовый Чек [12:31:43]line ПРОДАЖА [12:31:43]line ТРК (МРК, ГНК) : 32 [12:31:43]line Товар: 2710124130 [12:31:43]line Аи-92-К-5 [12:31:43]line 6.110 * 66.90 [12:31:43]line = 408.76 [12:31:43]line НДС 12% НСП 1% [12:31:43]line > о реализуемом товаре [12:31:43]line ОКРУГЛЕНИЕ: -0.76 [12:31:43]line ИТОГО: 408.00 [12:31:43]line Внесено: 408.00 [12:31:43]line СДАЧА: 0.00 [12:31:43]line НСП 1% : 3.62 [12:31:43]line НДС 12% : 43.41 [12:31:43]line Наличными: 408.00 [12:31:43]line Безнал.: 0.00 [12:31:43]line Место: АЗС № 85 "Партнер Нефть" [12:31:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:31:43]line СНО: Общий режим [12:31:43]line Чек 176 22.10.2024 12:31 [12:31:43]line Смена: 195 ФФД: 1.0 [12:31:43]line ЗНМ: 0300000167 [12:31:43]line РНМ: 0000000000156251 [12:31:43]line Версия ККМ: v1.0 [12:31:43]line ФМ: 0000000000963346 [12:31:43]line ФД: 70228 [12:31:43]line ФПД: 219650307193023 [12:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70228&fm=219650307193023&tin=02508201610067®Number=0000000000156251&sum=40800 [12:31:43]OFD Sender: Processing packet 70228 [packets to send 18, broken 17] [12:31:43]ProducePacketName [12:31:43]name=ofd_packets/00070228 [12:31:43]OFD Sender: To server: pG, [12:31:43]CommunicateWithHost lk.salyk.kg:30040 [12:31:43]ConnectInit lk.salyk.kg [12:31:43]written 0, free lines is 4095 [12:31:43]Connected sock=10 [12:31: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 34 36 0F 01 00 00 E5 56 07 01 E8 2F 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 DE 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 9F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 10 00 00 00 00 07 04 06 00 60 9F 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 32 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 12 01 00 35 04 06 00 C7 C5 52 88 F8 BF 68 B3 02 57 E4 49 BD 80 [12:31: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 34 36 4F 00 00 00 9E 84 47 00 C1 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 34 36 10 04 04 00 54 12 01 00 F4 03 04 00 D3 44 17 67 B6 04 01 00 00 8B 28 F7 03 17 22 5A 7F [12:31:43]CommunicateWithHost err = 0 [12:31:43]CheckOFDResponse [12:31:43]1017 (14) - 77093643461234 [12:31:43]1041 (16) - 0000000000963346 [12:31:43]1040 (4) - 70228 [12:31:43]1012 (4) - 22.10.2024 06:23 [12:31:43]1206 (1) - 0 [12:31:43]OFD Sender: Remove packet 70228 [12:31:43]ProducePacketName [12:31:43]name=ofd_packets/00070228 [12:31:43]NVStorageDeleteData [12:31:43]Write to MH i2c: 01 00 00 22 65 87 [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 07 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: 01 07 00 22 65 00 00 00 00 00 E3 0C 7D [12:31:43]RasterBufferAndPrint [12:31:43]line [12:31:43]line [12:31:43]line [12:31:43]line [12:31:43]line [12:31:43]written 0, free lines is 3305 [12:31:43]MH_Cut [12:31:43]Write to MH i2c: D1 01 00 29 65 01 60 [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: D1 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: D1 01 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: D1 01 00 29 65 00 5F [12:31:43]Write to MH i2c: 01 00 00 2A 65 8F [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:44]OFD Sender: No OFD packet to send [12:31:44]*** Cut start [12:31:44]*** Partial cut [12:31:44]*** CUTSNS_PIN = 1 [12:31:44]*** CUTSNS_PIN = 0 [12:31:44]*** Brake cut motor [12:31:45]Read from MH i2c: 01 [12:31:45]MH_I2C_Read... [12:31:45]*** Stop cut motor [12:31:45]*** Cut end [12:31:45]Read from MH i2c: 01 07 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: 01 07 00 2A 65 00 00 00 00 00 FF 0F A4 [12:31:45]process_action close_receipt done [12:31:45]requested_data is exist [12:31:45]produce_requested_data [12:31:45]requested_item fm.sn is exist - process it [12:31:45]wFMCommunicate request_size=4 [12:31:45]MH_SAM_APDU [12:31:45]CAPDU: 80 11 00 00 [12:31:45]Write to MH i2c: E2 08 00 2B 65 80 11 00 00 00 00 00 00 0A [12:31:45]Write i2c OK [12:31:45]MH_I2C_Read... [12:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:45]Read from MH i2c: E2 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 17 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 17 00 2B 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [12:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:31:45]wFMCommunicate OK [12:31:45]requested_item fd.num is exist - process it [12:31:45]SAM_PROTO_GetFieldsCounters [12:31:45]wFMCommunicate request_size=4 [12:31:45]MH_SAM_APDU [12:31:45]CAPDU: 80 13 00 00 [12:31:45]Write to MH i2c: E2 08 00 2C 65 80 13 00 00 00 00 00 00 0D [12:31:45]Write i2c OK [12:31:45]MH_I2C_Read... [12:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:45]Read from MH i2c: E2 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 62 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 62 00 2C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 12 01 00 0E 04 04 00 C3 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 62 [12:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 12 01 00 0E 04 04 00 C3 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 [12:31:45]wFMCommunicate OK [12:31:45]SAM_PROTO_GetFieldsCounters done [12:31:45]requested_item shift.num is exist - process it [12:31:45]requested_item shift.opened is exist - process it [12:31:45]req_shift_opened [12:31:45]FM_GetShiftState [12:31:45]SAM_PROTO_GetShiftState [12:31:45]wFMCommunicate request_size=4 [12:31:45]MH_SAM_APDU [12:31:45]CAPDU: 80 13 01 00 [12:31:45]Write to MH i2c: E2 08 00 2D 65 80 13 01 00 00 00 00 00 0F [12:31:45]Write i2c OK [12:31:45]MH_I2C_Read... [12:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:45]Read from MH i2c: E2 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 0E 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 0E 00 2D 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [12:31:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:31:45]wFMCommunicate OK [12:31:45]SAM_PROTO_GetShiftState done [12:31:45]FM_GetShiftState done [12:31:45]req_shift_opened done [12:31:45]requested_item shift.open_date is exist - process it [12:31:45]req_shift_open_date [12:31:45]req_shift_open_date done [12:31:45]produce_requested_data done [12:31:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70228,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:31:45]process_action_free close_receipt [12:31:45]json_value_free [12:31:45]json_value_free done [12:31:45]process_json_proto returns [12:31:45]Send response to host [12:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70228,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:31:45]free response buf [12:31:45]execute_script done [12:31:45]execute_script returns [12:31:45]free content buf [12:31:45]Sock 9.Close socket [12:31:45]Sock 9.Thread stoped [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:46]accept exits with 7 [12:32:46]New connection [12:32:46]New thread 3067170148 created [12:32:46]Thread 3067026788 joined [12:32:46]Waiting for new connection... [12:32:46] Sock 7.Parse request [12:32:46]Sock 7.Check first char [12:32:46]Sock 7.First char is OK [12:32:46]request: POST /json_proto HTTP/1.0 [12:32:46]Method: POST [12:32:46]URL: /json_proto [12:32:46]Method is POST - this is cgi request [12:32:46]url: /json_proto [12:32:46]query_string will be loaded in cgi processing [12:32:46]execute_cgi json_proto POST (null) [12:32:46]execute_cgi path=json_proto method=POST [12:32:46]POST find Content-Length [12:32:46]Host: 172.17.50.3:8080 [12:32:46]Content-Length: 675 [12:32:46]Content-Type: application/json [12:32:46] [12:32:46]POST finish read [12:32:46]Found Content-Length = 675 [12:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885997", "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" : 7.880, "sum" : 600.46, "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" ] } } [12:32:46]execute_script... [12:32: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)2885997", "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" : 7.880, "sum" : 600.46, "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" ] } } [12:32:46]POST & json_proto [12:32:46]process_json_proto [12:32:46]json parsed OK: [12:32:46]protocol is kg_v1.0 [12:32:46]action value=close_receipt [12:32:46]process_action close_receipt [12:32:46]cmd_close_receipt [12:32:46]MH_GetDate [12:32:46]Write to MH i2c: F0 00 00 2E 65 82 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: F0 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: F0 09 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: F0 09 00 2E 65 00 73 9B 17 67 6B 98 1E 66 9E [12:32:46]GetLastDocTimeStamp 1729600306 [12:32:46]current date 1729600371 [12:32:46]FM_GetShiftState [12:32:46]SAM_PROTO_GetShiftState [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 13 01 00 [12:32:46]Write to MH i2c: E2 08 00 2F 65 80 13 01 00 00 00 00 00 11 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 0E 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 0E 00 2F 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FF [12:32:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:32:46]wFMCommunicate OK [12:32:46]SAM_PROTO_GetShiftState done [12:32:46]FM_GetShiftState done [12:32:46]opened in 1729555832 [12:32:46]opened+sec_in_day 1729642232 [12:32:46]quantity*price = 60045 [12:32:46]sum+1 = 60047 [12:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 177 22.10.2024 12:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70229 ФПД: 59311850331482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123251&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70229&fm=59311850331482&tin=02508201610067®Number=0000000000156251&sum=60000 [12:32:47]StoreToDocumentArchive [12:32:47]shift 195 fd 70229 [12:32:47]save to /storage/0195/doc_00070229 [12:32:47]save last doc name /storage/0195/doc_00070229 to /storage/kkm_last_doc_name [12:32:47]save OK [12:32:47]Clear old archive folders... [12:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:32:47]tlvbuf is 011F7580 [12:32:47]SAM_PROTO_ClearQueue [12:32:47]wFMCommunicate request_size=4 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 09 00 00 [12:32:47]Write to MH i2c: E2 08 00 3C 65 80 09 00 00 00 00 00 00 13 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 3C 65 00 90 00 15 [12:32:47]RAPDU: 90 00 [12:32:47]wFMCommunicate OK [12:32:47]SAM_PROTO_ClearQueue done [12:32:47]KKMCreateOFDPacket [12:32:47]OFDProtocolAddRootSTLVToBuf [12:32:47]FM_MakeSignedData [12:32:47]FM_MakeSignedData [12:32:47]SAM_PROTO_SignData [12:32:47]wFMCommunicate request_size=4 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 0D 01 02 [12:32:47]Write to MH i2c: E2 08 00 3D 65 80 0D 01 02 00 00 00 00 1B [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 3D 65 00 90 00 16 [12:32:47]RAPDU: 90 00 [12:32:47]wFMCommunicate OK [12:32:47]wFMCommunicate request_size=255 [12:32:47]MH_SAM_APDU [12:32: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 B1 00 00 00 F4 03 04 00 73 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 12 01 00 35 04 06 00 35 F1 9D C5 [12:32:47]Write to MH i2c: E2 02 01 3E 65 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 B1 00 00 00 F4 03 04 00 73 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 12 01 00 35 04 06 00 35 F1 9D C5 00 00 4B [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 3E 65 00 90 00 17 [12:32:47]RAPDU: 90 00 [12:32:47]wFMCommunicate OK [12:32:47]wFMCommunicate request_size=7 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 0D 02 02 02 1D 5A [12:32:47]Write to MH i2c: E2 0A 00 3F 65 80 0D 02 02 02 00 1D 5A 00 00 99 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 3F 65 00 90 00 18 [12:32:47]RAPDU: 90 00 [12:32:47]wFMCommunicate OK [12:32:47]wFMCommunicate request_size=4 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 0D 03 02 [12:32:47]Write to MH i2c: E2 08 00 40 65 80 0D 03 02 00 00 00 00 20 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0B 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0B 00 40 65 00 76 5A D7 8F 68 EA 54 60 90 00 5D [12:32:48]RAPDU: 76 5A D7 8F 68 EA 54 60 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_SignData done [12:32:48]FM_MakeSignedData done [12:32:48]CreateOFDProtocolMessage [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 11 00 00 [12:32:48]Write to MH i2c: E2 08 00 41 65 80 11 00 00 00 00 00 00 20 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 41 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [12:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:48]wFMCommunicate OK [12:32:48]CreateOFDProtocolMessage done [12:32:48]OFDSenderStorePacket 70229 [12:32:48]StoreOFDPacket docnum=70229 [12:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 31 78 04 01 B7 85 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 B1 00 00 00 F4 03 04 00 73 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 12 01 00 35 04 06 00 35 F1 9D C5 1D 5A 76 5A D7 8F 68 EA 54 60 [12:32:48]CheckFolder [12:32:48]dirname=/storage/ofd_packets [12:32:48]CheckFolder done [12:32:48]ProducePacketName [12:32:48]name=ofd_packets/00070229 [12:32:48]NVStorageSaveData ofd_packets/00070229 [12:32:48]File name is /storage/ofd_packets/00070229 [12:32:48]Write 298 bytes [12:32:48]NVStorageSaveData done [12:32:48]OFDSenderStorePacket done [12:32:48]KKMCreateOFDPacket done [12:32:48]NVStorageSaveData kkm_last_timestamp [12:32:48]File name is /storage/kkm_last_timestamp [12:32:48]Write 4 bytes [12:32:48]NVStorageSaveData done [12:32:48]ExternCall_PrintAddStr [12:32:48]wPrintStart [12:32:48]Write to MH i2c: 01 00 00 42 65 A7 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 42 65 00 00 00 00 00 FF 0F BC [12:32:48]RasterBufferAndPrint [12:32:48]line Счет N : (1)2885997 [12:32:48]line ИНН: 02508201610067 [12:32:48]line Контрольно-Кассовый Чек [12:32:48]line ПРОДАЖА [12:32:48]line ТРК (МРК, ГНК) : 51 [12:32:48]line Товар: 2710194210 [12:32:48]line ДТ-К-5 [12:32:48]line 7.880 * 76.20 [12:32:48]line = 600.46 [12:32:48]line НДС 12% НСП 1% [12:32:48]line > о реализуемом товаре [12:32:48]line ОКРУГЛЕНИЕ: -0.46 [12:32:48]line ИТОГО: 600.00 [12:32:48]line Внесено: 600.00 [12:32:48]line СДАЧА: 0.00 [12:32:48]line НСП 1% : 5.31 [12:32:48]line НДС 12% : 63.77 [12:32:48]line Наличными: 600.00 [12:32:48]line Безнал.: 0.00 [12:32:48]line Место: АЗС № 85 "Партнер Нефть" [12:32:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:32:48]line СНО: Общий режим [12:32:48]line Чек 177 22.10.2024 12:32 [12:32:48]line Смена: 195 ФФД: 1.0 [12:32:48]line ЗНМ: 0300000167 [12:32:48]line РНМ: 0000000000156251 [12:32:48]line Версия ККМ: v1.0 [12:32:48]line ФМ: 0000000000963346 [12:32:48]line ФД: 70229 [12:32:48]line ФПД: 59311850331482 [12:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123251&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70229&fm=59311850331482&tin=02508201610067®Number=0000000000156251&sum=60000 [12:32:48]OFD Sender: Processing packet 70229 [packets to send 18, broken 17] [12:32:48]ProducePacketName [12:32:48]name=ofd_packets/00070229 [12:32:48]OFD Sender: To server: pG, [12:32:48]CommunicateWithHost lk.salyk.kg:30040 [12:32:48]ConnectInit lk.salyk.kg [12:32:48]written 0, free lines is 4095 [12:32:48]Connected sock=10 [12:32: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 34 36 0C 01 00 00 31 78 04 01 B7 85 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 B1 00 00 00 F4 03 04 00 73 9B 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 12 01 00 35 04 06 00 35 F1 9D C5 1D 5A 76 5A D7 8F 68 EA 54 60 [12:32: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 34 36 4F 00 00 00 69 85 47 00 BF 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 34 36 10 04 04 00 55 12 01 00 F4 03 04 00 14 45 17 67 B6 04 01 00 00 4B 92 13 01 86 33 C3 86 [12:32:48]CommunicateWithHost err = 0 [12:32:48]CheckOFDResponse [12:32:48]1017 (14) - 77093643461234 [12:32:48]1041 (16) - 0000000000963346 [12:32:48]1040 (4) - 70229 [12:32:48]1012 (4) - 22.10.2024 06:24 [12:32:48]1206 (1) - 0 [12:32:48]OFD Sender: Remove packet 70229 [12:32:48]ProducePacketName [12:32:48]name=ofd_packets/00070229 [12:32:48]NVStorageDeleteData [12:32:48]Write to MH i2c: 01 00 00 6D 65 D2 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 6D 65 00 00 00 00 00 E7 0C CC [12:32:48]RasterBufferAndPrint [12:32:48]line [12:32:48]line [12:32:48]line [12:32:48]line [12:32:48]line [12:32:48]written 0, free lines is 3310 [12:32:48]MH_Cut [12:32:48]Write to MH i2c: D1 01 00 74 65 01 AB [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: D1 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: D1 01 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: D1 01 00 74 65 00 AA [12:32:48]Write to MH i2c: 01 00 00 75 65 DA [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:49]OFD Sender: No OFD packet to send [12:32:49]*** Cut start [12:32:49]*** Partial cut [12:32:49]*** CUTSNS_PIN = 1 [12:32:49]*** CUTSNS_PIN = 0 [12:32:49]*** Brake cut motor [12:32:50]Read from MH i2c: 01 [12:32:50]MH_I2C_Read... [12:32:50]*** Stop cut motor [12:32:50]*** Cut end [12:32:50]Read from MH i2c: 01 07 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: 01 07 00 75 65 00 00 00 00 00 FF 0F EF [12:32:50]process_action close_receipt done [12:32:50]requested_data is exist [12:32:50]produce_requested_data [12:32:50]requested_item fm.sn is exist - process it [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 11 00 00 [12:32:50]Write to MH i2c: E2 08 00 76 65 80 11 00 00 00 00 00 00 55 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 17 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 17 00 76 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [12:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:50]wFMCommunicate OK [12:32:50]requested_item fd.num is exist - process it [12:32:50]SAM_PROTO_GetFieldsCounters [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 13 00 00 [12:32:50]Write to MH i2c: E2 08 00 77 65 80 13 00 00 00 00 00 00 58 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 62 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 62 00 77 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 12 01 00 0E 04 04 00 C3 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 B1 [12:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 12 01 00 0E 04 04 00 C3 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 [12:32:50]wFMCommunicate OK [12:32:50]SAM_PROTO_GetFieldsCounters done [12:32:50]requested_item shift.num is exist - process it [12:32:50]requested_item shift.opened is exist - process it [12:32:50]req_shift_opened [12:32:50]FM_GetShiftState [12:32:50]SAM_PROTO_GetShiftState [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 13 01 00 [12:32:50]Write to MH i2c: E2 08 00 78 65 80 13 01 00 00 00 00 00 5A [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 0E 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 0E 00 78 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [12:32:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:32:50]wFMCommunicate OK [12:32:50]SAM_PROTO_GetShiftState done [12:32:50]FM_GetShiftState done [12:32:50]req_shift_opened done [12:32:50]requested_item shift.open_date is exist - process it [12:32:50]req_shift_open_date [12:32:50]req_shift_open_date done [12:32:50]produce_requested_data done [12:32:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70229,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:32:50]process_action_free close_receipt [12:32:50]json_value_free [12:32:50]json_value_free done [12:32:50]process_json_proto returns [12:32:50]Send response to host [12:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70229,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:32:50]free response buf [12:32:50]execute_script done [12:32:50]execute_script returns [12:32:50]free content buf [12:32:50]Sock 7.Close socket [12:32:50]Sock 7.Thread stoped [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [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]accept exits with 9 [12:38:54]New connection [12:38:54]New thread 3067026788 created [12:38:54]Thread 3067170148 joined [12:38:54]Waiting for new connection... [12:38:54] Sock 9.Parse request [12:38:54]Sock 9.Check first char [12:38:54]Sock 9.First char is OK [12:38:54]request: POST /json_proto HTTP/1.0 [12:38:54]Method: POST [12:38:54]URL: /json_proto [12:38:54]Method is POST - this is cgi request [12:38:54]url: /json_proto [12:38:54]query_string will be loaded in cgi processing [12:38:54]execute_cgi json_proto POST (null) [12:38:54]execute_cgi path=json_proto method=POST [12:38:54]POST find Content-Length [12:38:54]Host: 172.17.50.3:8080 [12:38:54]Content-Length: 752 [12:38:54]Content-Type: application/json [12:38:54] [12:38:54]POST finish read [12:38:54]Found Content-Length = 752 [12:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30130720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:54]execute_script... [12:38: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)2885998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30130720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:54]POST & json_proto [12:38:54]process_json_proto [12:38:54]json parsed OK: [12:38:54]protocol is kg_v1.0 [12:38:54]action value=close_receipt [12:38:54]process_action close_receipt [12:38:54]cmd_close_receipt [12:38:54]MH_GetDate [12:38:54]Write to MH i2c: F0 00 00 79 65 CD [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 09 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: F0 09 00 79 65 00 E3 9C 17 67 6B 98 1E 66 5A [12:38:54]GetLastDocTimeStamp 1729600371 [12:38:54]current date 1729600739 [12:38:54]FM_GetShiftState [12:38:54]SAM_PROTO_GetShiftState [12:38:54]wFMCommunicate request_size=4 [12:38:54]MH_SAM_APDU [12:38:54]CAPDU: 80 13 01 00 [12:38:54]Write to MH i2c: E2 08 00 7A 65 80 13 01 00 00 00 00 00 5C [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:54]Read from MH i2c: E2 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 0E 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 0E 00 7A 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4A [12:38:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:38:54]wFMCommunicate OK [12:38:54]SAM_PROTO_GetShiftState done [12:38:54]FM_GetShiftState done [12:38:54]opened in 1729555832 [12:38:54]opened+sec_in_day 1729642232 [12:38:54]quantity*price = 0 [12:38:54]sum+1 = 1 [12:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 178 22.10.2024 12:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30130720 ФМ: 0000000000963346 ФД: 70230 ФПД: 237117170628706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70230&fm=237117170628706&tin=02508201610067®Number=0000000000156251&sum=0 [12:38:55]StoreToDocumentArchive [12:38:55]shift 195 fd 70230 [12:38:55]save to /storage/0195/doc_00070230 [12:38:55]save last doc name /storage/0195/doc_00070230 to /storage/kkm_last_doc_name [12:38:55]save OK [12:38:55]Clear old archive folders... [12:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:55]tlvbuf is 011D76E0 [12:38:55]SAM_PROTO_ClearQueue [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 09 00 00 [12:38:55]Write to MH i2c: E2 08 00 87 65 80 09 00 00 00 00 00 00 5E [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 87 65 00 90 00 60 [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_ClearQueue done [12:38:55]KKMCreateOFDPacket [12:38:55]OFDProtocolAddRootSTLVToBuf [12:38:55]FM_MakeSignedData [12:38:55]FM_MakeSignedData [12:38:55]SAM_PROTO_SignData [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 01 02 [12:38:55]Write to MH i2c: E2 08 00 88 65 80 0D 01 02 00 00 00 00 66 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 88 65 00 90 00 61 [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=255 [12:38:55]MH_SAM_APDU [12:38: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 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 B2 00 00 00 F4 03 04 00 E3 9C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 12 01 00 35 04 06 00 D7 A8 24 B9 [12:38:55]Write to MH i2c: E2 02 01 89 65 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 B2 00 00 00 F4 03 04 00 E3 9C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 12 01 00 35 04 06 00 D7 A8 24 B9 00 00 99 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 89 65 00 90 00 62 [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=7 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 02 02 02 B8 62 [12:38:55]Write to MH i2c: E2 0A 00 8A 65 80 0D 02 02 02 00 B8 62 00 00 87 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 8A 65 00 90 00 63 [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 03 02 [12:38:55]Write to MH i2c: E2 08 00 8B 65 80 0D 03 02 00 00 00 00 6B [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 8B 65 00 71 67 49 3E 14 CF B1 55 90 00 B4 [12:38:55]RAPDU: 71 67 49 3E 14 CF B1 55 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_SignData done [12:38:55]FM_MakeSignedData done [12:38:55]CreateOFDProtocolMessage [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 8C 65 80 11 00 00 00 00 00 00 6B [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 8C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [12:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:38:55]wFMCommunicate OK [12:38:55]CreateOFDProtocolMessage done [12:38:55]OFDSenderStorePacket 70230 [12:38:55]StoreOFDPacket docnum=70230 [12:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FF C8 04 01 95 95 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 B2 00 00 00 F4 03 04 00 E3 9C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 12 01 00 35 04 06 00 D7 A8 24 B9 B8 62 71 67 49 3E 14 CF B1 55 [12:38:55]CheckFolder [12:38:55]dirname=/storage/ofd_packets [12:38:55]CheckFolder done [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00070230 [12:38:55]NVStorageSaveData ofd_packets/00070230 [12:38:55]File name is /storage/ofd_packets/00070230 [12:38:55]Write 298 bytes [12:38:55]NVStorageSaveData done [12:38:55]OFDSenderStorePacket done [12:38:55]KKMCreateOFDPacket done [12:38:55]NVStorageSaveData kkm_last_timestamp [12:38:55]File name is /storage/kkm_last_timestamp [12:38:55]Write 4 bytes [12:38:55]NVStorageSaveData done [12:38:55]ExternCall_PrintAddStr [12:38:55]wPrintStart [12:38:55]Write to MH i2c: 01 00 00 8D 65 F2 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]OFD Sender: Processing packet 70230 [packets to send 18, broken 17] [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00070230 [12:38:55]OFD Sender: To server: pG, [12:38:55]CommunicateWithHost lk.salyk.kg:30040 [12:38:55]ConnectInit lk.salyk.kg [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 8D 65 00 00 00 00 00 FF 0F 07 [12:38:55]RasterBufferAndPrint [12:38:55]line Счет N : (1)2885998 [12:38:55]line ИНН: 02508201610067 [12:38:55]line Контрольно-Кассовый Чек [12:38:55]line ПРОДАЖА [12:38:55]line ТРК (МРК, ГНК) : 61 [12:38:55]line Товар: 2710194210 [12:38:55]line ДТ-К-5 [12:38:55]line 30.000 * 0.00 [12:38:55]line = 0.00 [12:38:55]line НДС 12% НСП 1% [12:38:55]line > о реализуемом товаре [12:38:55]line ИТОГО: 0.00 [12:38:55]line НСП 1% : 0.00 [12:38:55]line НДС 12% : 0.00 [12:38:55]line Наличными: 0.00 [12:38:55]line Безнал.: 0.00 [12:38:55]line Место: АЗС № 85 "Партнер Нефть" [12:38:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:38:55]line СНО: Общий режим [12:38:55]line Чек 178 22.10.2024 12:38 [12:38:55]line Смена: 195 ФФД: 1.0 [12:38:55]line ЗНМ: 0300000167 [12:38:55]line РНМ: 0000000000156251 [12:38:55]line Версия ККМ: v1.0 [12:38:55]line Талоны: ТК ГПНА Online [12:38:55]line 30130720 [12:38:56]line ФМ: 0000000000963346 [12:38:56]line ФД: 70230 [12:38:56]line ФПД: 237117170628706 [12:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70230&fm=237117170628706&tin=02508201610067®Number=0000000000156251&sum=0 [12:38:56]Connected sock=11 [12:38: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 34 36 0C 01 00 00 FF C8 04 01 95 95 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 B2 00 00 00 F4 03 04 00 E3 9C 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 12 01 00 35 04 06 00 D7 A8 24 B9 B8 62 71 67 49 3E 14 CF B1 55 [12:38:56]written 0, free lines is 4095 [12:38: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 34 36 4F 00 00 00 B7 B3 47 00 C2 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 34 36 10 04 04 00 56 12 01 00 F4 03 04 00 84 46 17 67 B6 04 01 00 00 0F 1A 88 AF E7 25 2F B9 [12:38:56]CommunicateWithHost err = 0 [12:38:56]CheckOFDResponse [12:38:56]1017 (14) - 77093643461234 [12:38:56]1041 (16) - 0000000000963346 [12:38:56]1040 (4) - 70230 [12:38:56]1012 (4) - 22.10.2024 06:30 [12:38:56]1206 (1) - 0 [12:38:56]OFD Sender: Remove packet 70230 [12:38:56]ProducePacketName [12:38:56]name=ofd_packets/00070230 [12:38:56]NVStorageDeleteData [12:38:56]Write to MH i2c: 01 00 00 B7 65 1C [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 B7 65 00 00 00 00 00 EC 0C 1B [12:38:56]RasterBufferAndPrint [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]written 0, free lines is 3314 [12:38:56]MH_Cut [12:38:56]Write to MH i2c: D1 01 00 BE 65 01 F5 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 BE 65 00 F4 [12:38:56]Write to MH i2c: 01 00 00 BF 65 24 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]OFD Sender: No OFD packet to send [12:38:57]*** Cut start [12:38:57]*** Partial cut [12:38:57]*** CUTSNS_PIN = 1 [12:38:57]*** CUTSNS_PIN = 0 [12:38:57]*** Brake cut motor [12:38:57]Read from MH i2c: 01 [12:38:57]MH_I2C_Read... [12:38:57]*** Stop cut motor [12:38:57]*** Cut end [12:38:57]Read from MH i2c: 01 07 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 BF 65 00 00 00 00 00 FF 0F 39 [12:38:57]process_action close_receipt done [12:38:57]requested_data is exist [12:38:57]produce_requested_data [12:38:57]requested_item fm.sn is exist - process it [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 11 00 00 [12:38:57]Write to MH i2c: E2 08 00 C0 65 80 11 00 00 00 00 00 00 9F [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 C0 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [12:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:38:57]wFMCommunicate OK [12:38:57]requested_item fd.num is exist - process it [12:38:57]SAM_PROTO_GetFieldsCounters [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 13 00 00 [12:38:57]Write to MH i2c: E2 08 00 C1 65 80 13 00 00 00 00 00 00 A2 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:58]Read from MH i2c: E2 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 62 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 62 00 C1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 12 01 00 0E 04 04 00 C3 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 FF [12:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 12 01 00 0E 04 04 00 C3 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 [12:38:58]wFMCommunicate OK [12:38:58]SAM_PROTO_GetFieldsCounters done [12:38:58]requested_item shift.num is exist - process it [12:38:58]requested_item shift.opened is exist - process it [12:38:58]req_shift_opened [12:38:58]FM_GetShiftState [12:38:58]SAM_PROTO_GetShiftState [12:38:58]wFMCommunicate request_size=4 [12:38:58]MH_SAM_APDU [12:38:58]CAPDU: 80 13 01 00 [12:38:58]Write to MH i2c: E2 08 00 C2 65 80 13 01 00 00 00 00 00 A4 [12:38:58]Write i2c OK [12:38:58]MH_I2C_Read... [12:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:58]Read from MH i2c: E2 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 0E 00 [12:38:58]MH_I2C_Read... [12:38:58]Read from MH i2c: E2 0E 00 C2 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 92 [12:38:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:38:58]wFMCommunicate OK [12:38:58]SAM_PROTO_GetShiftState done [12:38:58]FM_GetShiftState done [12:38:58]req_shift_opened done [12:38:58]requested_item shift.open_date is exist - process it [12:38:58]req_shift_open_date [12:38:58]req_shift_open_date done [12:38:58]produce_requested_data done [12:38:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70230,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:38:58]process_action_free close_receipt [12:38:58]json_value_free [12:38:58]json_value_free done [12:38:58]process_json_proto returns [12:38:58]Send response to host [12:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70230,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:38:58]free response buf [12:38:58]execute_script done [12:38:58]execute_script returns [12:38:58]free content buf [12:38:58]Sock 9.Close socket [12:38:58]Sock 9.Thread stoped [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:44]accept exits with 7 [12:40:44]New connection [12:40:44]New thread 3067170148 created [12:40:44]Thread 3067026788 joined [12:40:44]Waiting for new connection... [12:40:44] Sock 7.Parse request [12:40:44]Sock 7.Check first char [12:40:44]Sock 7.First char is OK [12:40:44]request: POST /json_proto HTTP/1.0 [12:40:44]Method: POST [12:40:44]URL: /json_proto [12:40:44]Method is POST - this is cgi request [12:40:44]url: /json_proto [12:40:44]query_string will be loaded in cgi processing [12:40:44]execute_cgi json_proto POST (null) [12:40:44]execute_cgi path=json_proto method=POST [12:40:44]POST find Content-Length [12:40:44]Host: 172.17.50.3:8080 [12:40:44]Content-Length: 678 [12:40:44]Content-Type: application/json [12:40:44] [12:40:44]POST finish read [12:40:44]Found Content-Length = 678 [12:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:40:44]execute_script... [12:40: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)2885999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:40:44]POST & json_proto [12:40:44]process_json_proto [12:40:44]json parsed OK: [12:40:44]protocol is kg_v1.0 [12:40:44]action value=close_receipt [12:40:44]process_action close_receipt [12:40:44]cmd_close_receipt [12:40:44]MH_GetDate [12:40:44]Write to MH i2c: F0 00 00 C3 65 17 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: F0 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: F0 09 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: F0 09 00 C3 65 00 52 9D 17 67 6B 98 1E 66 14 [12:40:44]GetLastDocTimeStamp 1729600739 [12:40:44]current date 1729600850 [12:40:44]FM_GetShiftState [12:40:44]SAM_PROTO_GetShiftState [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 13 01 00 [12:40:44]Write to MH i2c: E2 08 00 C4 65 80 13 01 00 00 00 00 00 A6 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 0E 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 0E 00 C4 65 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 94 [12:40:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:40:44]wFMCommunicate OK [12:40:44]SAM_PROTO_GetShiftState done [12:40:44]FM_GetShiftState done [12:40:44]opened in 1729555832 [12:40:44]opened+sec_in_day 1729642232 [12:40:44]quantity*price = 60009 [12:40:44]sum+1 = 60010 [12:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 179 22.10.2024 12:40 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70231 ФПД: 256951575185203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70231&fm=256951575185203&tin=02508201610067®Number=0000000000156251&sum=60000 [12:40:46]StoreToDocumentArchive [12:40:46]shift 195 fd 70231 [12:40:46]save to /storage/0195/doc_00070231 [12:40:46]save last doc name /storage/0195/doc_00070231 to /storage/kkm_last_doc_name [12:40:46]save OK [12:40:46]Clear old archive folders... [12:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:46]tlvbuf is 012089C0 [12:40:46]SAM_PROTO_ClearQueue [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 09 00 00 [12:40:46]Write to MH i2c: E2 08 00 D1 65 80 09 00 00 00 00 00 00 A8 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 D1 65 00 90 00 AA [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_ClearQueue done [12:40:46]KKMCreateOFDPacket [12:40:46]OFDProtocolAddRootSTLVToBuf [12:40:46]FM_MakeSignedData [12:40:46]FM_MakeSignedData [12:40:46]SAM_PROTO_SignData [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 0D 01 02 [12:40:46]Write to MH i2c: E2 08 00 D2 65 80 0D 01 02 00 00 00 00 B0 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 D2 65 00 90 00 AB [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]wFMCommunicate request_size=255 [12:40:46]MH_SAM_APDU [12:40: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 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 B3 00 00 00 F4 03 04 00 52 9D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 12 01 00 35 04 06 00 E9 [12:40:46]Write to MH i2c: E2 02 01 D3 65 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 B3 00 00 00 F4 03 04 00 52 9D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 12 01 00 35 04 06 00 E9 00 00 4C [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 D3 65 00 90 00 AC [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]wFMCommunicate request_size=10 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 0D 02 02 05 B2 33 5D 07 33 [12:40:46]Write to MH i2c: E2 0D 00 D4 65 80 0D 02 02 05 00 B2 33 5D 07 33 00 00 39 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 D4 65 00 90 00 AD [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 0D 03 02 [12:40:46]Write to MH i2c: E2 08 00 D5 65 80 0D 03 02 00 00 00 00 B5 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0B 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0B 00 D5 65 00 C4 E6 14 1F 76 81 F9 65 90 00 E8 [12:40:46]RAPDU: C4 E6 14 1F 76 81 F9 65 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_SignData done [12:40:46]FM_MakeSignedData done [12:40:46]CreateOFDProtocolMessage [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 11 00 00 [12:40:46]Write to MH i2c: E2 08 00 D6 65 80 11 00 00 00 00 00 00 B5 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 D6 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [12:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:40:46]wFMCommunicate OK [12:40:46]CreateOFDProtocolMessage done [12:40:46]OFDSenderStorePacket 70231 [12:40:46]StoreOFDPacket docnum=70231 [12:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C F5 07 01 A4 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 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 B3 00 00 00 F4 03 04 00 52 9D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 12 01 00 35 04 06 00 E9 B2 33 5D 07 33 C4 E6 14 1F 76 81 F9 65 [12:40:46]CheckFolder [12:40:46]dirname=/storage/ofd_packets [12:40:46]CheckFolder done [12:40:46]ProducePacketName [12:40:46]name=ofd_packets/00070231 [12:40:46]NVStorageSaveData ofd_packets/00070231 [12:40:46]File name is /storage/ofd_packets/00070231 [12:40:46]Write 301 bytes [12:40:46]NVStorageSaveData done [12:40:46]OFDSenderStorePacket done [12:40:46]KKMCreateOFDPacket done [12:40:46]NVStorageSaveData kkm_last_timestamp [12:40:46]File name is /storage/kkm_last_timestamp [12:40:46]Write 4 bytes [12:40:46]NVStorageSaveData done [12:40:46]ExternCall_PrintAddStr [12:40:46]wPrintStart [12:40:46]Write to MH i2c: 01 00 00 D7 65 3C [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 D7 65 00 00 00 00 00 FF 0F 51 [12:40:46]RasterBufferAndPrint [12:40:46]line Счет N : (1)2885999 [12:40:46]line ИНН: 02508201610067 [12:40:46]line Контрольно-Кассовый Чек [12:40:46]line ПРОДАЖА [12:40:46]line ТРК (МРК, ГНК) : 42 [12:40:46]line Товар: 2710124130 [12:40:46]line Аи-92-К-5 [12:40:46]line 8.970 * 66.90 [12:40:46]line = 600.09 [12:40:46]line НДС 12% НСП 1% [12:40:46]line > о реализуемом товаре [12:40:46]line ОКРУГЛЕНИЕ: -0.09 [12:40:46]line ИТОГО: 600.00 [12:40:46]line Внесено: 600.00 [12:40:46]line СДАЧА: 0.00 [12:40:46]line НСП 1% : 5.31 [12:40:46]line НДС 12% : 63.73 [12:40:46]line Наличными: 600.00 [12:40:46]line Безнал.: 0.00 [12:40:46]line Место: АЗС № 85 "Партнер Нефть" [12:40:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:40:46]line СНО: Общий режим [12:40:46]line Чек 179 22.10.2024 12:40 [12:40:46]line Смена: 195 ФФД: 1.0 [12:40:46]line ЗНМ: 0300000167 [12:40:46]line РНМ: 0000000000156251 [12:40:46]line Версия ККМ: v1.0 [12:40:46]line ФМ: 0000000000963346 [12:40:46]line ФД: 70231 [12:40:46]line ФПД: 256951575185203 [12:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70231&fm=256951575185203&tin=02508201610067®Number=0000000000156251&sum=60000 [12:40:46]OFD Sender: Processing packet 70231 [packets to send 18, broken 17] [12:40:46]ProducePacketName [12:40:46]name=ofd_packets/00070231 [12:40:46]OFD Sender: To server: pG, [12:40:46]CommunicateWithHost lk.salyk.kg:30040 [12:40:46]ConnectInit lk.salyk.kg [12:40:46]written 0, free lines is 4095 [12:40:47]Connected sock=10 [12:40: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 34 36 0F 01 00 00 2C F5 07 01 A4 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 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 B3 00 00 00 F4 03 04 00 52 9D 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 12 01 00 35 04 06 00 E9 B2 33 5D 07 33 C4 E6 14 1F 76 81 F9 65 [12:40: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 34 36 4F 00 00 00 56 07 47 00 53 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 34 36 10 04 04 00 57 12 01 00 F4 03 04 00 F3 46 17 67 B6 04 01 00 00 12 58 70 68 48 D7 0E 86 [12:40:47]CommunicateWithHost err = 0 [12:40:47]CheckOFDResponse [12:40:47]1017 (14) - 77093643461234 [12:40:47]1041 (16) - 0000000000963346 [12:40:47]1040 (4) - 70231 [12:40:47]1012 (4) - 22.10.2024 06:32 [12:40:47]1206 (1) - 0 [12:40:47]OFD Sender: Remove packet 70231 [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00070231 [12:40:47]NVStorageDeleteData [12:40:47]Write to MH i2c: 01 00 00 02 66 68 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 02 66 00 00 00 00 00 E6 0C 61 [12:40:47]RasterBufferAndPrint [12:40:47]line [12:40:47]line [12:40:47]line [12:40:47]line [12:40:47]line [12:40:47]written 0, free lines is 3308 [12:40:47]MH_Cut [12:40:47]Write to MH i2c: D1 01 00 09 66 01 41 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: D1 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: D1 01 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: D1 01 00 09 66 00 40 [12:40:47]Write to MH i2c: 01 00 00 0A 66 70 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]OFD Sender: No OFD packet to send [12:40:48]*** Cut start [12:40:48]*** Partial cut [12:40:48]*** CUTSNS_PIN = 1 [12:40:48]*** CUTSNS_PIN = 0 [12:40:48]*** Brake cut motor [12:40:48]Read from MH i2c: 01 [12:40:48]MH_I2C_Read... [12:40:48]*** Stop cut motor [12:40:48]*** Cut end [12:40:48]Read from MH i2c: 01 07 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 0A 66 00 00 00 00 00 FF 0F 85 [12:40:48]process_action close_receipt done [12:40:48]requested_data is exist [12:40:48]produce_requested_data [12:40:48]requested_item fm.sn is exist - process it [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 11 00 00 [12:40:48]Write to MH i2c: E2 08 00 0B 66 80 11 00 00 00 00 00 00 EB [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 17 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 17 00 0B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [12:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:40:48]wFMCommunicate OK [12:40:48]requested_item fd.num is exist - process it [12:40:48]SAM_PROTO_GetFieldsCounters [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 13 00 00 [12:40:48]Write to MH i2c: E2 08 00 0C 66 80 13 00 00 00 00 00 00 EE [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 62 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 62 00 0C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 12 01 00 0E 04 04 00 C3 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 4F [12:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 12 01 00 0E 04 04 00 C3 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 [12:40:48]wFMCommunicate OK [12:40:48]SAM_PROTO_GetFieldsCounters done [12:40:48]requested_item shift.num is exist - process it [12:40:48]requested_item shift.opened is exist - process it [12:40:48]req_shift_opened [12:40:48]FM_GetShiftState [12:40:48]SAM_PROTO_GetShiftState [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 13 01 00 [12:40:48]Write to MH i2c: E2 08 00 0D 66 80 13 01 00 00 00 00 00 F0 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:49]Read from MH i2c: E2 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 0E 00 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 0E 00 0D 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DE [12:40:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:40:49]wFMCommunicate OK [12:40:49]SAM_PROTO_GetShiftState done [12:40:49]FM_GetShiftState done [12:40:49]req_shift_opened done [12:40:49]requested_item shift.open_date is exist - process it [12:40:49]req_shift_open_date [12:40:49]req_shift_open_date done [12:40:49]produce_requested_data done [12:40:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70231,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:40:49]process_action_free close_receipt [12:40:49]json_value_free [12:40:49]json_value_free done [12:40:49]process_json_proto returns [12:40:49]Send response to host [12:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70231,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:40:49]free response buf [12:40:49]execute_script done [12:40:49]execute_script returns [12:40:49]free content buf [12:40:49]Sock 7.Close socket [12:40:49]Sock 7.Thread stoped [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:32]accept exits with 9 [12:47:32]New connection [12:47:32]New thread 3067026788 created [12:47:32]Thread 3067170148 joined [12:47:32]Waiting for new connection... [12:47:32] Sock 9.Parse request [12:47:32]Sock 9.Check first char [12:47:32]Sock 9.First char is OK [12:47:32]request: POST /json_proto HTTP/1.0 [12:47:32]Method: POST [12:47:32]URL: /json_proto [12:47:32]Method is POST - this is cgi request [12:47:32]url: /json_proto [12:47:32]query_string will be loaded in cgi processing [12:47:32]execute_cgi json_proto POST (null) [12:47:32]execute_cgi path=json_proto method=POST [12:47:32]POST find Content-Length [12:47:32]Host: 172.17.50.3:8080 [12:47:32]Content-Length: 679 [12:47:32]Content-Type: application/json [12:47:32] [12:47:32]POST finish read [12:47:32]Found Content-Length = 679 [12:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:47:32]execute_script... [12:47: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)2886000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [12:47:32]POST & json_proto [12:47:32]process_json_proto [12:47:32]json parsed OK: [12:47:32]protocol is kg_v1.0 [12:47:32]action value=close_receipt [12:47:32]process_action close_receipt [12:47:32]cmd_close_receipt [12:47:32]MH_GetDate [12:47:32]Write to MH i2c: F0 00 00 0E 66 63 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: F0 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: F0 09 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: F0 09 00 0E 66 00 E9 9E 17 67 6B 98 1E 66 F8 [12:47:32]GetLastDocTimeStamp 1729600850 [12:47:32]current date 1729601257 [12:47:32]FM_GetShiftState [12:47:32]SAM_PROTO_GetShiftState [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 13 01 00 [12:47:32]Write to MH i2c: E2 08 00 0F 66 80 13 01 00 00 00 00 00 F2 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0E 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0E 00 0F 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E0 [12:47:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:47:32]wFMCommunicate OK [12:47:32]SAM_PROTO_GetShiftState done [12:47:32]FM_GetShiftState done [12:47:32]opened in 1729555832 [12:47:32]opened+sec_in_day 1729642232 [12:47:32]quantity*price = 70044 [12:47:32]sum+1 = 70045 [12:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 180 22.10.2024 12:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70232 ФПД: 136057006898916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70232&fm=136057006898916&tin=02508201610067®Number=0000000000156251&sum=70000 [12:47:33]StoreToDocumentArchive [12:47:33]shift 195 fd 70232 [12:47:33]save to /storage/0195/doc_00070232 [12:47:33]save last doc name /storage/0195/doc_00070232 to /storage/kkm_last_doc_name [12:47:33]save OK [12:47:33]Clear old archive folders... [12:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:33]tlvbuf is 011557A0 [12:47:33]SAM_PROTO_ClearQueue [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 09 00 00 [12:47:33]Write to MH i2c: E2 08 00 1C 66 80 09 00 00 00 00 00 00 F4 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 1C 66 00 90 00 F6 [12:47:33]RAPDU: 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_ClearQueue done [12:47:33]KKMCreateOFDPacket [12:47:33]OFDProtocolAddRootSTLVToBuf [12:47:33]FM_MakeSignedData [12:47:33]FM_MakeSignedData [12:47:33]SAM_PROTO_SignData [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 0D 01 02 [12:47:33]Write to MH i2c: E2 08 00 1D 66 80 0D 01 02 00 00 00 00 FC [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 1D 66 00 90 00 F7 [12:47:33]RAPDU: 90 00 [12:47:33]wFMCommunicate OK [12:47:33]wFMCommunicate request_size=255 [12:47:33]MH_SAM_APDU [12:47: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 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 B4 00 00 00 F4 03 04 00 E9 9E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 12 01 00 35 04 06 00 7B [12:47:33]Write to MH i2c: E2 02 01 1E 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 00 00 00 F4 03 04 00 E9 9E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 12 01 00 35 04 06 00 7B 00 00 F7 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 1E 66 00 90 00 F8 [12:47:33]RAPDU: 90 00 [12:47:33]wFMCommunicate OK [12:47:33]wFMCommunicate request_size=10 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 0D 02 02 05 BE 3D 90 BE E4 [12:47:33]Write to MH i2c: E2 0D 00 1F 66 80 0D 02 02 05 00 BE 3D 90 BE E4 00 00 36 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 03 00 1F 66 00 90 00 F9 [12:47:33]RAPDU: 90 00 [12:47:33]wFMCommunicate OK [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 0D 03 02 [12:47:33]Write to MH i2c: E2 08 00 20 66 80 0D 03 02 00 00 00 00 01 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0B 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0B 00 20 66 00 E9 CC B6 BB 82 BC C0 18 90 00 3E [12:47:33]RAPDU: E9 CC B6 BB 82 BC C0 18 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_SignData done [12:47:33]FM_MakeSignedData done [12:47:33]CreateOFDProtocolMessage [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 11 00 00 [12:47:33]Write to MH i2c: E2 08 00 21 66 80 11 00 00 00 00 00 00 01 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 21 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [12:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:33]wFMCommunicate OK [12:47:33]CreateOFDProtocolMessage done [12:47:33]OFDSenderStorePacket 70232 [12:47:33]StoreOFDPacket docnum=70232 [12:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8A B1 07 01 61 D6 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 B4 00 00 00 F4 03 04 00 E9 9E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 12 01 00 35 04 06 00 7B BE 3D 90 BE E4 E9 CC B6 BB 82 BC C0 18 [12:47:33]CheckFolder [12:47:33]dirname=/storage/ofd_packets [12:47:33]CheckFolder done [12:47:33]ProducePacketName [12:47:33]name=ofd_packets/00070232 [12:47:33]NVStorageSaveData ofd_packets/00070232 [12:47:33]File name is /storage/ofd_packets/00070232 [12:47:33]Write 301 bytes [12:47:33]NVStorageSaveData done [12:47:33]OFDSenderStorePacket done [12:47:33]KKMCreateOFDPacket done [12:47:33]NVStorageSaveData kkm_last_timestamp [12:47:33]File name is /storage/kkm_last_timestamp [12:47:33]Write 4 bytes [12:47:33]NVStorageSaveData done [12:47:33]ExternCall_PrintAddStr [12:47:33]wPrintStart [12:47:33]Write to MH i2c: 01 00 00 22 66 88 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 22 66 00 00 00 00 00 FF 0F 9D [12:47:33]RasterBufferAndPrint [12:47:33]line Счет N : (1)2886000 [12:47:33]line ИНН: 02508201610067 [12:47:33]line Контрольно-Кассовый Чек [12:47:33]line ПРОДАЖА [12:47:33]line ТРК (МРК, ГНК) : 42 [12:47:33]line Товар: 2710124130 [12:47:33]line Аи-92-К-5 [12:47:33]line 10.470 * 66.90 [12:47:33]line = 700.44 [12:47:33]line НДС 12% НСП 1% [12:47:33]line > о реализуемом товаре [12:47:33]line ОКРУГЛЕНИЕ: -0.44 [12:47:33]line ИТОГО: 700.00 [12:47:33]line Внесено: 700.00 [12:47:33]line СДАЧА: 0.00 [12:47:33]line НСП 1% : 6.20 [12:47:33]line НДС 12% : 74.38 [12:47:33]line Наличными: 700.00 [12:47:33]line Безнал.: 0.00 [12:47:33]line Место: АЗС № 85 "Партнер Нефть" [12:47:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:47:33]line СНО: Общий режим [12:47:33]line Чек 180 22.10.2024 12:47 [12:47:33]line Смена: 195 ФФД: 1.0 [12:47:33]line ЗНМ: 0300000167 [12:47:33]line РНМ: 0000000000156251 [12:47:33]line Версия ККМ: v1.0 [12:47:33]line ФМ: 0000000000963346 [12:47:33]line ФД: 70232 [12:47:33]line ФПД: 136057006898916 [12:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70232&fm=136057006898916&tin=02508201610067®Number=0000000000156251&sum=70000 [12:47:34]OFD Sender: Processing packet 70232 [packets to send 18, broken 17] [12:47:34]ProducePacketName [12:47:34]name=ofd_packets/00070232 [12:47:34]OFD Sender: To server: pG, [12:47:34]CommunicateWithHost lk.salyk.kg:30040 [12:47:34]ConnectInit lk.salyk.kg [12:47:34]written 0, free lines is 4095 [12:47:34]Connected sock=10 [12:47: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 34 36 0F 01 00 00 8A B1 07 01 61 D6 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 B4 00 00 00 F4 03 04 00 E9 9E 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 12 01 00 35 04 06 00 7B BE 3D 90 BE E4 E9 CC B6 BB 82 BC C0 18 [12:47: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 34 36 4F 00 00 00 13 D1 47 00 F4 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 34 36 10 04 04 00 58 12 01 00 F4 03 04 00 8A 48 17 67 B6 04 01 00 00 C5 2E 7F 31 44 E6 F5 27 [12:47:34]CommunicateWithHost err = 0 [12:47:34]CheckOFDResponse [12:47:34]1017 (14) - 77093643461234 [12:47:34]1041 (16) - 0000000000963346 [12:47:34]1040 (4) - 70232 [12:47:34]1012 (4) - 22.10.2024 06:39 [12:47:34]1206 (1) - 0 [12:47:34]OFD Sender: Remove packet 70232 [12:47:34]ProducePacketName [12:47:34]name=ofd_packets/00070232 [12:47:34]NVStorageDeleteData [12:47:34]Write to MH i2c: 01 00 00 4D 66 B3 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 07 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 07 00 4D 66 00 00 00 00 00 EC 0C B2 [12:47:34]RasterBufferAndPrint [12:47:34]line [12:47:34]line [12:47:34]line [12:47:34]line [12:47:34]line [12:47:34]written 0, free lines is 3314 [12:47:34]MH_Cut [12:47:34]Write to MH i2c: D1 01 00 54 66 01 8C [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: D1 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: D1 01 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: D1 01 00 54 66 00 8B [12:47:34]Write to MH i2c: 01 00 00 55 66 BB [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:35]OFD Sender: No OFD packet to send [12:47:35]*** Cut start [12:47:35]*** Partial cut [12:47:35]*** CUTSNS_PIN = 1 [12:47:35]*** CUTSNS_PIN = 0 [12:47:35]*** Brake cut motor [12:47:36]Read from MH i2c: 01 [12:47:36]MH_I2C_Read... [12:47:36]*** Stop cut motor [12:47:36]*** Cut end [12:47:36]Read from MH i2c: 01 07 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 55 66 00 00 00 00 00 FF 0F D0 [12:47:36]process_action close_receipt done [12:47:36]requested_data is exist [12:47:36]produce_requested_data [12:47:36]requested_item fm.sn is exist - process it [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 11 00 00 [12:47:36]Write to MH i2c: E2 08 00 56 66 80 11 00 00 00 00 00 00 36 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 17 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 17 00 56 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [12:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:36]wFMCommunicate OK [12:47:36]requested_item fd.num is exist - process it [12:47:36]SAM_PROTO_GetFieldsCounters [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 13 00 00 [12:47:36]Write to MH i2c: E2 08 00 57 66 80 13 00 00 00 00 00 00 39 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 62 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 62 00 57 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 12 01 00 0E 04 04 00 C3 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 9E [12:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 12 01 00 0E 04 04 00 C3 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 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_GetFieldsCounters done [12:47:36]requested_item shift.num is exist - process it [12:47:36]requested_item shift.opened is exist - process it [12:47:36]req_shift_opened [12:47:36]FM_GetShiftState [12:47:36]SAM_PROTO_GetShiftState [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 13 01 00 [12:47:36]Write to MH i2c: E2 08 00 58 66 80 13 01 00 00 00 00 00 3B [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0E 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0E 00 58 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [12:47:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_GetShiftState done [12:47:36]FM_GetShiftState done [12:47:36]req_shift_opened done [12:47:36]requested_item shift.open_date is exist - process it [12:47:36]req_shift_open_date [12:47:36]req_shift_open_date done [12:47:36]produce_requested_data done [12:47:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70232,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:47:36]process_action_free close_receipt [12:47:36]json_value_free [12:47:36]json_value_free done [12:47:36]process_json_proto returns [12:47:36]Send response to host [12:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70232,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:47:36]free response buf [12:47:36]execute_script done [12:47:36]execute_script returns [12:47:36]free content buf [12:47:36]Sock 9.Close socket [12:47:36]Sock 9.Thread stoped [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:30]accept exits with 7 [12:49:30]New connection [12:49:30]New thread 3067170148 created [12:49:30]Thread 3067026788 joined [12:49:30]Waiting for new connection... [12:49:30] Sock 7.Parse request [12:49:30]Sock 7.Check first char [12:49:30]Sock 7.First char is OK [12:49:30]request: POST /json_proto HTTP/1.0 [12:49:30]Method: POST [12:49:30]URL: /json_proto [12:49:30]Method is POST - this is cgi request [12:49:30]url: /json_proto [12:49:30]query_string will be loaded in cgi processing [12:49:30]execute_cgi json_proto POST (null) [12:49:30]execute_cgi path=json_proto method=POST [12:49:30]POST find Content-Length [12:49:30]Host: 172.17.50.3:8080 [12:49:30]Content-Length: 678 [12:49:30]Content-Type: application/json [12:49:30] [12:49:30]POST finish read [12:49:30]Found Content-Length = 678 [12:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [12:49:30]execute_script... [12:49: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)2886002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [12:49:30]POST & json_proto [12:49:30]process_json_proto [12:49:30]json parsed OK: [12:49:30]protocol is kg_v1.0 [12:49:30]action value=close_receipt [12:49:30]process_action close_receipt [12:49:30]cmd_close_receipt [12:49:30]MH_GetDate [12:49:30]Write to MH i2c: F0 00 00 59 66 AE [12:49:30]Write i2c OK [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: F0 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: F0 09 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: F0 09 00 59 66 00 60 9F 17 67 6B 98 1E 66 BB [12:49:30]GetLastDocTimeStamp 1729601257 [12:49:30]current date 1729601376 [12:49:30]FM_GetShiftState [12:49:30]SAM_PROTO_GetShiftState [12:49:30]wFMCommunicate request_size=4 [12:49:30]MH_SAM_APDU [12:49:30]CAPDU: 80 13 01 00 [12:49:30]Write to MH i2c: E2 08 00 5A 66 80 13 01 00 00 00 00 00 3D [12:49:30]Write i2c OK [12:49:30]MH_I2C_Read... [12:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:30]Read from MH i2c: E2 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 0E 00 [12:49:30]MH_I2C_Read... [12:49:30]Read from MH i2c: E2 0E 00 5A 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [12:49:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:49:30]wFMCommunicate OK [12:49:30]SAM_PROTO_GetShiftState done [12:49:30]FM_GetShiftState done [12:49:30]opened in 1729555832 [12:49:30]opened+sec_in_day 1729642232 [12:49:30]quantity*price = 50041 [12:49:30]sum+1 = 50042 [12:49: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 181 22.10.2024 12:49 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70233 ФПД: 129897144774926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70233&fm=129897144774926&tin=02508201610067®Number=0000000000156251&sum=50000 [12:49:31]StoreToDocumentArchive [12:49:31]shift 195 fd 70233 [12:49:31]save to /storage/0195/doc_00070233 [12:49:31]save last doc name /storage/0195/doc_00070233 to /storage/kkm_last_doc_name [12:49:31]save OK [12:49:31]Clear old archive folders... [12:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:31]tlvbuf is 011D78D0 [12:49:31]SAM_PROTO_ClearQueue [12:49:31]wFMCommunicate request_size=4 [12:49:31]MH_SAM_APDU [12:49:31]CAPDU: 80 09 00 00 [12:49:31]Write to MH i2c: E2 08 00 67 66 80 09 00 00 00 00 00 00 3F [12:49:31]Write i2c OK [12:49:31]MH_I2C_Read... [12:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:31]Read from MH i2c: E2 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 03 00 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 03 00 67 66 00 90 00 41 [12:49:31]RAPDU: 90 00 [12:49:31]wFMCommunicate OK [12:49:31]SAM_PROTO_ClearQueue done [12:49:31]KKMCreateOFDPacket [12:49:31]OFDProtocolAddRootSTLVToBuf [12:49:31]FM_MakeSignedData [12:49:31]FM_MakeSignedData [12:49:31]SAM_PROTO_SignData [12:49:31]wFMCommunicate request_size=4 [12:49:31]MH_SAM_APDU [12:49:31]CAPDU: 80 0D 01 02 [12:49:31]Write to MH i2c: E2 08 00 68 66 80 0D 01 02 00 00 00 00 47 [12:49:31]Write i2c OK [12:49:31]MH_I2C_Read... [12:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:31]Read from MH i2c: E2 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 03 00 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 03 00 68 66 00 90 00 42 [12:49:31]RAPDU: 90 00 [12:49:31]wFMCommunicate OK [12:49:31]wFMCommunicate request_size=255 [12:49:31]MH_SAM_APDU [12:49: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 B5 00 00 00 F4 03 04 00 60 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 12 01 00 35 04 06 00 76 [12:49:31]Write to MH i2c: E2 02 01 69 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B5 00 00 00 F4 03 04 00 60 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 12 01 00 35 04 06 00 76 00 00 A7 [12:49:31]Write i2c OK [12:49:31]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 69 66 00 90 00 43 [12:49:32]RAPDU: 90 00 [12:49:32]wFMCommunicate OK [12:49:32]wFMCommunicate request_size=10 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 0D 02 02 05 24 09 2B F1 0E [12:49:32]Write to MH i2c: E2 0D 00 6A 66 80 0D 02 02 05 00 24 09 2B F1 0E 00 00 AB [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 6A 66 00 90 00 44 [12:49:32]RAPDU: 90 00 [12:49:32]wFMCommunicate OK [12:49:32]wFMCommunicate request_size=4 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 0D 03 02 [12:49:32]Write to MH i2c: E2 08 00 6B 66 80 0D 03 02 00 00 00 00 4C [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 0B 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 0B 00 6B 66 00 75 F0 19 A7 C2 C8 84 0C 90 00 8C [12:49:32]RAPDU: 75 F0 19 A7 C2 C8 84 0C 90 00 [12:49:32]wFMCommunicate OK [12:49:32]SAM_PROTO_SignData done [12:49:32]FM_MakeSignedData done [12:49:32]CreateOFDProtocolMessage [12:49:32]wFMCommunicate request_size=4 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 11 00 00 [12:49:32]Write to MH i2c: E2 08 00 6C 66 80 11 00 00 00 00 00 00 4C [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 17 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 17 00 6C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [12:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:32]wFMCommunicate OK [12:49:32]CreateOFDProtocolMessage done [12:49:32]OFDSenderStorePacket 70233 [12:49:32]StoreOFDPacket docnum=70233 [12:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 CD 07 01 14 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 B5 00 00 00 F4 03 04 00 60 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 12 01 00 35 04 06 00 76 24 09 2B F1 0E 75 F0 19 A7 C2 C8 84 0C [12:49:32]CheckFolder [12:49:32]dirname=/storage/ofd_packets [12:49:32]CheckFolder done [12:49:32]ProducePacketName [12:49:32]name=ofd_packets/00070233 [12:49:32]NVStorageSaveData ofd_packets/00070233 [12:49:32]File name is /storage/ofd_packets/00070233 [12:49:32]Write 301 bytes [12:49:32]NVStorageSaveData done [12:49:32]OFDSenderStorePacket done [12:49:32]KKMCreateOFDPacket done [12:49:32]NVStorageSaveData kkm_last_timestamp [12:49:32]File name is /storage/kkm_last_timestamp [12:49:32]Write 4 bytes [12:49:32]NVStorageSaveData done [12:49:32]ExternCall_PrintAddStr [12:49:32]wPrintStart [12:49:32]Write to MH i2c: 01 00 00 6D 66 D3 [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: 01 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: 01 07 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: 01 07 00 6D 66 00 00 00 00 00 FF 0F E8 [12:49:32]RasterBufferAndPrint [12:49:32]line Счет N : (1)2886002 [12:49:32]line ИНН: 02508201610067 [12:49:32]line Контрольно-Кассовый Чек [12:49:32]line ПРОДАЖА [12:49:32]line ТРК (МРК, ГНК) : 12 [12:49:32]line Товар: 2710124130 [12:49:32]line Аи-92-К-5 [12:49:32]line 7.480 * 66.90 [12:49:32]line = 500.41 [12:49:32]line НДС 12% НСП 1% [12:49:32]line > о реализуемом товаре [12:49:32]line ОКРУГЛЕНИЕ: -0.41 [12:49:32]line ИТОГО: 500.00 [12:49:32]line Внесено: 500.00 [12:49:32]line СДАЧА: 0.00 [12:49:32]line НСП 1% : 4.43 [12:49:32]line НДС 12% : 53.14 [12:49:32]line Наличными: 500.00 [12:49:32]line Безнал.: 0.00 [12:49:32]line Место: АЗС № 85 "Партнер Нефть" [12:49:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:49:32]line СНО: Общий режим [12:49:32]line Чек 181 22.10.2024 12:49 [12:49:32]line Смена: 195 ФФД: 1.0 [12:49:32]line ЗНМ: 0300000167 [12:49:32]line РНМ: 0000000000156251 [12:49:32]line Версия ККМ: v1.0 [12:49:32]line ФМ: 0000000000963346 [12:49:32]line ФД: 70233 [12:49:32]line ФПД: 129897144774926 [12:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70233&fm=129897144774926&tin=02508201610067®Number=0000000000156251&sum=50000 [12:49:32]OFD Sender: Processing packet 70233 [packets to send 18, broken 17] [12:49:32]ProducePacketName [12:49:32]name=ofd_packets/00070233 [12:49:32]OFD Sender: To server: pG, [12:49:32]CommunicateWithHost lk.salyk.kg:30040 [12:49:32]ConnectInit lk.salyk.kg [12:49:32]written 0, free lines is 4095 [12:49:32]Connected sock=10 [12:49: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 34 36 0F 01 00 00 36 CD 07 01 14 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 B5 00 00 00 F4 03 04 00 60 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 12 01 00 35 04 06 00 76 24 09 2B F1 0E 75 F0 19 A7 C2 C8 84 0C [12:49: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 34 36 4F 00 00 00 12 5E 47 00 3D 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 34 36 10 04 04 00 59 12 01 00 F4 03 04 00 00 49 17 67 B6 04 01 00 00 8D 0D CF 7A 83 04 64 AD [12:49:33]CommunicateWithHost err = 0 [12:49:33]CheckOFDResponse [12:49:33]1017 (14) - 77093643461234 [12:49:33]1041 (16) - 0000000000963346 [12:49:33]1040 (4) - 70233 [12:49:33]1012 (4) - 22.10.2024 06:41 [12:49:33]1206 (1) - 0 [12:49:33]OFD Sender: Remove packet 70233 [12:49:33]ProducePacketName [12:49:33]name=ofd_packets/00070233 [12:49:33]NVStorageDeleteData [12:49:33]Write to MH i2c: 01 00 00 98 66 FE [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 98 66 00 00 00 00 00 DD 0C EE [12:49:33]RasterBufferAndPrint [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]written 0, free lines is 3299 [12:49:33]MH_Cut [12:49:33]Write to MH i2c: D1 01 00 9F 66 01 D7 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 01 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 01 00 9F 66 00 D6 [12:49:33]Write to MH i2c: 01 00 00 A0 66 06 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]OFD Sender: No OFD packet to send [12:49:33]*** Cut start [12:49:33]*** Partial cut [12:49:33]*** CUTSNS_PIN = 1 [12:49:33]*** CUTSNS_PIN = 0 [12:49:34]*** Brake cut motor [12:49:34]Read from MH i2c: 01 [12:49:34]MH_I2C_Read... [12:49:34]*** Stop cut motor [12:49:34]*** Cut end [12:49:34]Read from MH i2c: 01 07 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: 01 07 00 A0 66 00 00 00 00 00 FF 0F 1B [12:49:34]process_action close_receipt done [12:49:34]requested_data is exist [12:49:34]produce_requested_data [12:49:34]requested_item fm.sn is exist - process it [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 11 00 00 [12:49:34]Write to MH i2c: E2 08 00 A1 66 80 11 00 00 00 00 00 00 81 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 17 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 17 00 A1 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [12:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:34]wFMCommunicate OK [12:49:34]requested_item fd.num is exist - process it [12:49:34]SAM_PROTO_GetFieldsCounters [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 13 00 00 [12:49:34]Write to MH i2c: E2 08 00 A2 66 80 13 00 00 00 00 00 00 84 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 62 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 62 00 A2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 12 01 00 0E 04 04 00 C3 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 ED [12:49: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 12 01 00 0E 04 04 00 C3 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 [12:49:34]wFMCommunicate OK [12:49:34]SAM_PROTO_GetFieldsCounters done [12:49:34]requested_item shift.num is exist - process it [12:49:34]requested_item shift.opened is exist - process it [12:49:34]req_shift_opened [12:49:34]FM_GetShiftState [12:49:34]SAM_PROTO_GetShiftState [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 13 01 00 [12:49:34]Write to MH i2c: E2 08 00 A3 66 80 13 01 00 00 00 00 00 86 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0E 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0E 00 A3 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 74 [12:49:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:49:34]wFMCommunicate OK [12:49:34]SAM_PROTO_GetShiftState done [12:49:34]FM_GetShiftState done [12:49:34]req_shift_opened done [12:49:34]requested_item shift.open_date is exist - process it [12:49:34]req_shift_open_date [12:49:34]req_shift_open_date done [12:49:34]produce_requested_data done [12:49:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70233,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:49:34]process_action_free close_receipt [12:49:34]json_value_free [12:49:34]json_value_free done [12:49:34]process_json_proto returns [12:49:34]Send response to host [12:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70233,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:49:34]free response buf [12:49:34]execute_script done [12:49:34]execute_script returns [12:49:34]free content buf [12:49:34]Sock 7.Close socket [12:49:34]Sock 7.Thread stoped [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:54]accept exits with 9 [12:49:54]New connection [12:49:54]New thread 3067026788 created [12:49:54]Thread 3067170148 joined [12:49:54]Waiting for new connection... [12:49:54] Sock 9.Parse request [12:49:54]Sock 9.Check first char [12:49:54]Sock 9.First char is OK [12:49:54]request: POST /json_proto HTTP/1.0 [12:49:54]Method: POST [12:49:54]URL: /json_proto [12:49:54]Method is POST - this is cgi request [12:49:54]url: /json_proto [12:49:54]query_string will be loaded in cgi processing [12:49:54]execute_cgi json_proto POST (null) [12:49:54]execute_cgi path=json_proto method=POST [12:49:54]POST find Content-Length [12:49:54]Host: 172.17.50.3:8080 [12:49:54]Content-Length: 686 [12:49:54]Content-Type: application/json [12:49:54] [12:49:54]POST finish read [12:49:54]Found Content-Length = 686 [12:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.250, "sum" : 1410.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1410.00, "total" : 1410.00, "payments": [ { "type": 0, "sum" : 1410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:54]execute_script... [12:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.250, "sum" : 1410.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1410.00, "total" : 1410.00, "payments": [ { "type": 0, "sum" : 1410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:54]POST & json_proto [12:49:54]process_json_proto [12:49:54]json parsed OK: [12:49:54]protocol is kg_v1.0 [12:49:54]action value=close_receipt [12:49:54]process_action close_receipt [12:49:54]cmd_close_receipt [12:49:54]MH_GetDate [12:49:54]Write to MH i2c: F0 00 00 A4 66 F9 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 09 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 09 00 A4 66 00 78 9F 17 67 6B 98 1E 66 1E [12:49:54]GetLastDocTimeStamp 1729601376 [12:49:54]current date 1729601400 [12:49:54]FM_GetShiftState [12:49:54]SAM_PROTO_GetShiftState [12:49:54]wFMCommunicate request_size=4 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 13 01 00 [12:49:54]Write to MH i2c: E2 08 00 A5 66 80 13 01 00 00 00 00 00 88 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 0E 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 0E 00 A5 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 76 [12:49:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:49:54]wFMCommunicate OK [12:49:54]SAM_PROTO_GetShiftState done [12:49:54]FM_GetShiftState done [12:49:54]opened in 1729555832 [12:49:54]opened+sec_in_day 1729642232 [12:49:54]quantity*price = 141012 [12:49:54]sum+1 = 141014 [12:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1410.00 Внесено: 1410.00 СДАЧА: 0.00 НСП 1% : 12.48 НДС 12% : 149.75 Наличными: 1410.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 182 22.10.2024 12:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70234 ФПД: 281099102852372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70234&fm=281099102852372&tin=02508201610067®Number=0000000000156251&sum=141000 [12:49:56]StoreToDocumentArchive [12:49:56]shift 195 fd 70234 [12:49:56]save to /storage/0195/doc_00070234 [12:49:56]save last doc name /storage/0195/doc_00070234 to /storage/kkm_last_doc_name [12:49:56]save OK [12:49:56]Clear old archive folders... [12:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:49:56]tlvbuf is 01123E90 [12:49:56]SAM_PROTO_ClearQueue [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 09 00 00 [12:49:56]Write to MH i2c: E2 08 00 B2 66 80 09 00 00 00 00 00 00 8A [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 B2 66 00 90 00 8C [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_ClearQueue done [12:49:56]KKMCreateOFDPacket [12:49:56]OFDProtocolAddRootSTLVToBuf [12:49:56]FM_MakeSignedData [12:49:56]FM_MakeSignedData [12:49:56]SAM_PROTO_SignData [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 01 02 [12:49:56]Write to MH i2c: E2 08 00 B3 66 80 0D 01 02 00 00 00 00 92 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 B3 66 00 90 00 8D [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=255 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 8D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3A 00 00 00 00 07 04 06 00 C8 26 02 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 78 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 12 01 00 35 04 06 00 FF A8 [12:49:56]Write to MH i2c: E2 02 01 B4 66 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 8D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3A 00 00 00 00 07 04 06 00 C8 26 02 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 78 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 12 01 00 35 04 06 00 FF A8 00 00 48 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 B4 66 00 90 00 8E [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=9 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 02 02 04 7C 2C 15 14 [12:49:56]Write to MH i2c: E2 0C 00 B5 66 80 0D 02 02 04 00 7C 2C 15 14 00 00 6E [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 B5 66 00 90 00 8F [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 03 02 [12:49:56]Write to MH i2c: E2 08 00 B6 66 80 0D 03 02 00 00 00 00 97 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0B 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0B 00 B6 66 00 72 C9 9C 90 52 76 BE 6C 90 00 F1 [12:49:56]RAPDU: 72 C9 9C 90 52 76 BE 6C 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_SignData done [12:49:56]FM_MakeSignedData done [12:49:56]CreateOFDProtocolMessage [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 11 00 00 [12:49:56]Write to MH i2c: E2 08 00 B7 66 80 11 00 00 00 00 00 00 97 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 B7 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [12:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:56]wFMCommunicate OK [12:49:56]CreateOFDProtocolMessage done [12:49:56]OFDSenderStorePacket 70234 [12:49:56]StoreOFDPacket docnum=70234 [12:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0C BE 06 01 3C A2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 8D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3A 00 00 00 00 07 04 06 00 C8 26 02 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 78 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 12 01 00 35 04 06 00 FF A8 7C 2C 15 14 72 C9 9C 90 52 76 BE 6C [12:49:56]CheckFolder [12:49:56]dirname=/storage/ofd_packets [12:49:56]CheckFolder done [12:49:56]ProducePacketName [12:49:56]name=ofd_packets/00070234 [12:49:56]NVStorageSaveData ofd_packets/00070234 [12:49:56]File name is /storage/ofd_packets/00070234 [12:49:56]Write 300 bytes [12:49:56]NVStorageSaveData done [12:49:56]OFDSenderStorePacket done [12:49:56]KKMCreateOFDPacket done [12:49:56]NVStorageSaveData kkm_last_timestamp [12:49:56]File name is /storage/kkm_last_timestamp [12:49:56]Write 4 bytes [12:49:56]NVStorageSaveData done [12:49:56]ExternCall_PrintAddStr [12:49:56]wPrintStart [12:49:56]Write to MH i2c: 01 00 00 B8 66 1E [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 B8 66 00 00 00 00 00 FF 0F 33 [12:49:56]RasterBufferAndPrint [12:49:56]line Счет N : (1)2886001 [12:49:56]line ИНН: 02508201610067 [12:49:56]line Контрольно-Кассовый Чек [12:49:56]line ПРОДАЖА [12:49:56]line ТРК (МРК, ГНК) : 71 [12:49:56]line Товар: 2711129700 [12:49:56]line ГАЗ-К-3 [12:49:56]line 36.250 * 38.90 [12:49:56]line = 1410.13 [12:49:56]line НДС 12% НСП 1% [12:49:56]line > о реализуемом товаре [12:49:56]line ОКРУГЛЕНИЕ: -0.13 [12:49:56]line ИТОГО: 1410.00 [12:49:56]line Внесено: 1410.00 [12:49:56]line СДАЧА: 0.00 [12:49:56]line НСП 1% : 12.48 [12:49:56]line НДС 12% : 149.75 [12:49:56]line Наличными: 1410.00 [12:49:56]line Безнал.: 0.00 [12:49:56]line Место: АЗС № 85 "Партнер Нефть" [12:49:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:49:56]line СНО: Общий режим [12:49:56]line Чек 182 22.10.2024 12:50 [12:49:56]line Смена: 195 ФФД: 1.0 [12:49:56]line ЗНМ: 0300000167 [12:49:56]line РНМ: 0000000000156251 [12:49:56]line Версия ККМ: v1.0 [12:49:56]line ФМ: 0000000000963346 [12:49:56]line ФД: 70234 [12:49:56]line ФПД: 281099102852372 [12:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70234&fm=281099102852372&tin=02508201610067®Number=0000000000156251&sum=141000 [12:49:56]OFD Sender: Processing packet 70234 [packets to send 18, broken 17] [12:49:56]ProducePacketName [12:49:56]name=ofd_packets/00070234 [12:49:56]OFD Sender: To server: pG, [12:49:56]CommunicateWithHost lk.salyk.kg:30040 [12:49:56]ConnectInit lk.salyk.kg [12:49:56]written 0, free lines is 4095 [12:49:56]Connected sock=10 [12:49: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 34 36 0E 01 00 00 0C BE 06 01 3C A2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 9A 8D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3A 00 00 00 00 07 04 06 00 C8 26 02 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 78 9F 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 12 01 00 35 04 06 00 FF A8 7C 2C 15 14 72 C9 9C 90 52 76 BE 6C [12:49: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 34 36 4F 00 00 00 C2 81 47 00 CA 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 12 01 00 F4 03 04 00 19 49 17 67 B6 04 01 00 00 1B 9A E2 88 AC 9F 5E E1 [12:49:57]CommunicateWithHost err = 0 [12:49:57]CheckOFDResponse [12:49:57]1017 (14) - 77093643461234 [12:49:57]1041 (16) - 0000000000963346 [12:49:57]1040 (4) - 70234 [12:49:57]1012 (4) - 22.10.2024 06:41 [12:49:57]1206 (1) - 0 [12:49:57]OFD Sender: Remove packet 70234 [12:49:57]ProducePacketName [12:49:57]name=ofd_packets/00070234 [12:49:57]NVStorageDeleteData [12:49:57]Write to MH i2c: 01 00 00 E3 66 49 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 E3 66 00 00 00 00 00 E4 0C 40 [12:49:57]RasterBufferAndPrint [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]written 0, free lines is 3306 [12:49:57]MH_Cut [12:49:57]Write to MH i2c: D1 01 00 EA 66 01 22 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 01 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 01 00 EA 66 00 21 [12:49:57]Write to MH i2c: 01 00 00 EB 66 51 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]OFD Sender: No OFD packet to send [12:49:58]*** Cut start [12:49:58]*** Partial cut [12:49:58]*** CUTSNS_PIN = 1 [12:49:58]*** CUTSNS_PIN = 0 [12:49:58]*** Brake cut motor [12:49:58]Read from MH i2c: 01 [12:49:58]MH_I2C_Read... [12:49:58]*** Stop cut motor [12:49:58]*** Cut end [12:49:58]Read from MH i2c: 01 07 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 EB 66 00 00 00 00 00 FF 0F 66 [12:49:58]process_action close_receipt done [12:49:58]requested_data is exist [12:49:58]produce_requested_data [12:49:58]requested_item fm.sn is exist - process it [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 11 00 00 [12:49:58]Write to MH i2c: E2 08 00 EC 66 80 11 00 00 00 00 00 00 CC [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 EC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [12:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:58]wFMCommunicate OK [12:49:58]requested_item fd.num is exist - process it [12:49:58]SAM_PROTO_GetFieldsCounters [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 13 00 00 [12:49:58]Write to MH i2c: E2 08 00 ED 66 80 13 00 00 00 00 00 00 CF [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 62 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 62 00 ED 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 12 01 00 0E 04 04 00 C3 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 3C [12:49: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 12 01 00 0E 04 04 00 C3 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 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_GetFieldsCounters done [12:49:58]requested_item shift.num is exist - process it [12:49:58]requested_item shift.opened is exist - process it [12:49:58]req_shift_opened [12:49:58]FM_GetShiftState [12:49:58]SAM_PROTO_GetShiftState [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 13 01 00 [12:49:58]Write to MH i2c: E2 08 00 EE 66 80 13 01 00 00 00 00 00 D1 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 EE 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [12:49:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_GetShiftState done [12:49:58]FM_GetShiftState done [12:49:58]req_shift_opened done [12:49:58]requested_item shift.open_date is exist - process it [12:49:58]req_shift_open_date [12:49:58]req_shift_open_date done [12:49:58]produce_requested_data done [12:49:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70234,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:49:58]process_action_free close_receipt [12:49:58]json_value_free [12:49:58]json_value_free done [12:49:58]process_json_proto returns [12:49:58]Send response to host [12:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70234,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:49:58]free response buf [12:49:58]execute_script done [12:49:58]execute_script returns [12:49:58]free content buf [12:49:58]Sock 9.Close socket [12:49:58]Sock 9.Thread stoped [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:54]accept exits with 7 [12:52:54]New connection [12:52:54]New thread 3067170148 created [12:52:54]Thread 3067026788 joined [12:52:54]Waiting for new connection... [12:52:54] Sock 7.Parse request [12:52:54]Sock 7.Check first char [12:52:54]Sock 7.First char is OK [12:52:54]request: POST /json_proto HTTP/1.0 [12:52:54]Method: POST [12:52:54]URL: /json_proto [12:52:54]Method is POST - this is cgi request [12:52:54]url: /json_proto [12:52:54]query_string will be loaded in cgi processing [12:52:54]execute_cgi json_proto POST (null) [12:52:54]execute_cgi path=json_proto method=POST [12:52:54]POST find Content-Length [12:52:54]Host: 172.17.50.3:8080 [12:52:54]Content-Length: 984 [12:52:54]Content-Type: application/json [12:52:54] [12:52:54]POST finish read [12:52:54]Found Content-Length = 984 [12:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.12 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:54]execute_script... [12: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 : (1)2886003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.12 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:54]POST & json_proto [12:52:54]process_json_proto [12:52:54]json parsed OK: [12:52:54]protocol is kg_v1.0 [12:52:54]action value=close_receipt [12:52:54]process_action close_receipt [12:52:54]cmd_close_receipt [12:52:54]MH_GetDate [12:52:54]Write to MH i2c: F0 00 00 EF 66 44 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: F0 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: F0 09 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: F0 09 00 EF 66 00 2C A0 17 67 6B 98 1E 66 1E [12:52:54]GetLastDocTimeStamp 1729601400 [12:52:54]current date 1729601580 [12:52:54]FM_GetShiftState [12:52:54]SAM_PROTO_GetShiftState [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 13 01 00 [12:52:54]Write to MH i2c: E2 08 00 F0 66 80 13 01 00 00 00 00 00 D3 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 0E 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 0E 00 F0 66 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C1 [12:52:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:52:54]wFMCommunicate OK [12:52:54]SAM_PROTO_GetShiftState done [12:52:54]FM_GetShiftState done [12:52:54]opened in 1729555832 [12:52:54]opened+sec_in_day 1729642232 [12:52:54]quantity*price = 350060 [12:52:54]sum+1 = 350062 [12:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 183 22.10.2024 12:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 85 сэкономлено 53.12 сом ФМ: 0000000000963346 ФД: 70235 ФПД: 265879502277203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70235&fm=265879502277203&tin=02508201610067®Number=0000000000156251&sum=350000 [12:52:55]StoreToDocumentArchive [12:52:55]shift 195 fd 70235 [12:52:55]save to /storage/0195/doc_00070235 [12:52:55]save last doc name /storage/0195/doc_00070235 to /storage/kkm_last_doc_name [12:52:55]save OK [12:52:55]Clear old archive folders... [12:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:55]tlvbuf is 0120C080 [12:52:55]SAM_PROTO_ClearQueue [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 09 00 00 [12:52:55]Write to MH i2c: E2 08 00 FD 66 80 09 00 00 00 00 00 00 D5 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 FD 66 00 90 00 D7 [12:52:55]RAPDU: 90 00 [12:52:55]wFMCommunicate OK [12:52:55]SAM_PROTO_ClearQueue done [12:52:55]KKMCreateOFDPacket [12:52:55]OFDProtocolAddRootSTLVToBuf [12:52:55]FM_MakeSignedData [12:52:55]FM_MakeSignedData [12:52:55]SAM_PROTO_SignData [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 0D 01 02 [12:52:55]Write to MH i2c: E2 08 00 FE 66 80 0D 01 02 00 00 00 00 DD [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 FE 66 00 90 00 D8 [12:52:55]RAPDU: 90 00 [12:52:55]wFMCommunicate OK [12:52:55]wFMCommunicate request_size=255 [12:52:55]MH_SAM_APDU [12:52: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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 2C A0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 12 01 00 35 04 06 00 F1 [12:52:55]Write to MH i2c: E2 02 01 FF 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 2C A0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 12 01 00 35 04 06 00 F1 00 00 F9 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:56]Read from MH i2c: E2 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 03 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 03 00 FF 66 00 90 00 D9 [12:52:56]RAPDU: 90 00 [12:52:56]wFMCommunicate OK [12:52:56]wFMCommunicate request_size=10 [12:52:56]MH_SAM_APDU [12:52:56]CAPDU: 80 0D 02 02 05 D0 E5 49 4A 53 [12:52:56]Write to MH i2c: E2 0D 00 00 67 80 0D 02 02 05 00 D0 E5 49 4A 53 00 00 86 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:56]Read from MH i2c: E2 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 03 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 03 00 00 67 00 90 00 DB [12:52:56]RAPDU: 90 00 [12:52:56]wFMCommunicate OK [12:52:56]wFMCommunicate request_size=4 [12:52:56]MH_SAM_APDU [12:52:56]CAPDU: 80 0D 03 02 [12:52:56]Write to MH i2c: E2 08 00 01 67 80 0D 03 02 00 00 00 00 E3 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:56]Read from MH i2c: E2 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 0B 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 0B 00 01 67 00 83 E4 EB F0 CA A4 4A 2F 90 00 0D [12:52:56]RAPDU: 83 E4 EB F0 CA A4 4A 2F 90 00 [12:52:56]wFMCommunicate OK [12:52:56]SAM_PROTO_SignData done [12:52:56]FM_MakeSignedData done [12:52:56]CreateOFDProtocolMessage [12:52:56]wFMCommunicate request_size=4 [12:52:56]MH_SAM_APDU [12:52:56]CAPDU: 80 11 00 00 [12:52:56]Write to MH i2c: E2 08 00 02 67 80 11 00 00 00 00 00 00 E3 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:56]Read from MH i2c: E2 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 17 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 17 00 02 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [12:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:52:56]wFMCommunicate OK [12:52:56]CreateOFDProtocolMessage done [12:52:56]OFDSenderStorePacket 70235 [12:52:56]StoreOFDPacket docnum=70235 [12:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 31 6A 07 01 17 8D 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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 2C A0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 12 01 00 35 04 06 00 F1 D0 E5 49 4A 53 83 E4 EB F0 CA A4 4A 2F [12:52:56]CheckFolder [12:52:56]dirname=/storage/ofd_packets [12:52:56]CheckFolder done [12:52:56]ProducePacketName [12:52:56]name=ofd_packets/00070235 [12:52:56]NVStorageSaveData ofd_packets/00070235 [12:52:56]File name is /storage/ofd_packets/00070235 [12:52:56]Write 301 bytes [12:52:56]NVStorageSaveData done [12:52:56]OFDSenderStorePacket done [12:52:56]KKMCreateOFDPacket done [12:52:56]NVStorageSaveData kkm_last_timestamp [12:52:56]File name is /storage/kkm_last_timestamp [12:52:56]Write 4 bytes [12:52:56]NVStorageSaveData done [12:52:56]ExternCall_PrintAddStr [12:52:56]wPrintStart [12:52:56]Write to MH i2c: 01 00 00 03 67 6A [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 07 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 07 00 03 67 00 00 00 00 00 FF 0F 7F [12:52:56]RasterBufferAndPrint [12:52:56]line Счет N : (1)2886003 [12:52:56]line ИНН: 02508201610067 [12:52:56]line Контрольно-Кассовый Чек [12:52:56]line ПРОДАЖА [12:52:56]line ТРК (МРК, ГНК) : 42 [12:52:56]line Товар: 2710124130 [12:52:56]line Аи-92-К-5 [12:52:56]line 53.120 * 65.90 [12:52:56]line = 3500.61 [12:52:56]line НДС 12% НСП 1% [12:52:56]line > о реализуемом товаре [12:52:56]line ОКРУГЛЕНИЕ: -0.61 [12:52:56]line ИТОГО: 3500.00 [12:52:56]line Внесено: 3500.00 [12:52:56]line СДАЧА: 0.00 [12:52:56]line НСП 1% : 30.98 [12:52:56]line НДС 12% : 371.75 [12:52:56]line Наличными: 3500.00 [12:52:56]line Безнал.: 0.00 [12:52:56]line Место: АЗС № 85 "Партнер Нефть" [12:52:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:52:56]line СНО: Общий режим [12:52:56]line Чек 183 22.10.2024 12:53 [12:52:56]line Смена: 195 ФФД: 1.0 [12:52:56]line ЗНМ: 0300000167 [12:52:56]line РНМ: 0000000000156251 [12:52:56]line Версия ККМ: v1.0 [12:52:56]line [12:52:56]line Дисконтная программа [12:52:56]line АИ-92 [12:52:56]line номер 85 [12:52:56]line сэкономлено 53.12 сом [12:52:56]line ФМ: 0000000000963346 [12:52:56]line ФД: 70235 [12:52:56]line ФПД: 265879502277203 [12:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70235&fm=265879502277203&tin=02508201610067®Number=0000000000156251&sum=350000 [12:52:56]OFD Sender: Processing packet 70235 [packets to send 18, broken 17] [12:52:56]ProducePacketName [12:52:56]name=ofd_packets/00070235 [12:52:56]OFD Sender: To server: pG, [12:52:56]CommunicateWithHost lk.salyk.kg:30040 [12:52:56]ConnectInit lk.salyk.kg [12:52:56]written 0, free lines is 4095 [12:52:56]Connected sock=10 [12: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 34 36 0F 01 00 00 31 6A 07 01 17 8D 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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 2C A0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 12 01 00 35 04 06 00 F1 D0 E5 49 4A 53 83 E4 EB F0 CA A4 4A 2F [12: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 34 36 4F 00 00 00 C2 E1 47 00 77 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 34 36 10 04 04 00 5B 12 01 00 F4 03 04 00 CC 49 17 67 B6 04 01 00 00 33 37 59 E9 D0 40 68 04 [12:52:56]CommunicateWithHost err = 0 [12:52:56]CheckOFDResponse [12:52:56]1017 (14) - 77093643461234 [12:52:56]1041 (16) - 0000000000963346 [12:52:56]1040 (4) - 70235 [12:52:56]1012 (4) - 22.10.2024 06:44 [12:52:56]1206 (1) - 0 [12:52:56]OFD Sender: Remove packet 70235 [12:52:56]ProducePacketName [12:52:56]name=ofd_packets/00070235 [12:52:56]NVStorageDeleteData [12:52:57]Write to MH i2c: 01 00 00 33 67 9A [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 07 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 07 00 33 67 00 00 00 00 00 92 0C 3F [12:52:57]RasterBufferAndPrint [12:52:57]line [12:52:57]line [12:52:57]line [12:52:57]line [12:52:57]line [12:52:57]written 0, free lines is 3224 [12:52:57]MH_Cut [12:52:57]Write to MH i2c: D1 01 00 3A 67 01 73 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: D1 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: D1 01 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: D1 01 00 3A 67 00 72 [12:52:57]Write to MH i2c: 01 00 00 3B 67 A2 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]OFD Sender: No OFD packet to send [12:52:57]*** Cut start [12:52:57]*** Partial cut [12:52:57]*** CUTSNS_PIN = 1 [12:52:57]*** CUTSNS_PIN = 0 [12:52:58]*** Brake cut motor [12:52:58]Read from MH i2c: 01 [12:52:58]MH_I2C_Read... [12:52:58]*** Stop cut motor [12:52:58]*** Cut end [12:52:58]Read from MH i2c: 01 07 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: 01 07 00 3B 67 00 00 00 00 00 FF 0F B7 [12:52:58]process_action close_receipt done [12:52:58]requested_data is exist [12:52:58]produce_requested_data [12:52:58]requested_item fm.sn is exist - process it [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 11 00 00 [12:52:58]Write to MH i2c: E2 08 00 3C 67 80 11 00 00 00 00 00 00 1D [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 17 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 17 00 3C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [12:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:52:58]wFMCommunicate OK [12:52:58]requested_item fd.num is exist - process it [12:52:58]SAM_PROTO_GetFieldsCounters [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 13 00 00 [12:52:58]Write to MH i2c: E2 08 00 3D 67 80 13 00 00 00 00 00 00 20 [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 62 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 62 00 3D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 12 01 00 0E 04 04 00 C3 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 91 [12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 12 01 00 0E 04 04 00 C3 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 [12:52:58]wFMCommunicate OK [12:52:58]SAM_PROTO_GetFieldsCounters done [12:52:58]requested_item shift.num is exist - process it [12:52:58]requested_item shift.opened is exist - process it [12:52:58]req_shift_opened [12:52:58]FM_GetShiftState [12:52:58]SAM_PROTO_GetShiftState [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 13 01 00 [12:52:58]Write to MH i2c: E2 08 00 3E 67 80 13 01 00 00 00 00 00 22 [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 0E 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 0E 00 3E 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 10 [12:52:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:52:58]wFMCommunicate OK [12:52:58]SAM_PROTO_GetShiftState done [12:52:58]FM_GetShiftState done [12:52:58]req_shift_opened done [12:52:58]requested_item shift.open_date is exist - process it [12:52:58]req_shift_open_date [12:52:58]req_shift_open_date done [12:52:58]produce_requested_data done [12:52:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70235,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:52:58]process_action_free close_receipt [12:52:58]json_value_free [12:52:58]json_value_free done [12:52:58]process_json_proto returns [12:52:58]Send response to host [12:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70235,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:52:58]free response buf [12:52:58]execute_script done [12:52:58]execute_script returns [12:52:58]free content buf [12:52:58]Sock 7.Close socket [12:52:58]Sock 7.Thread stoped [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:48]accept exits with 9 [12:56:48]New connection [12:56:48]New thread 3067026788 created [12:56:48]Thread 3067170148 joined [12:56:48]Waiting for new connection... [12:56:48] Sock 9.Parse request [12:56:48]Sock 9.Check first char [12:56:48]Sock 9.First char is OK [12:56:48]request: POST /json_proto HTTP/1.0 [12:56:48]Method: POST [12:56:48]URL: /json_proto [12:56:48]Method is POST - this is cgi request [12:56:48]url: /json_proto [12:56:48]query_string will be loaded in cgi processing [12:56:48]execute_cgi json_proto POST (null) [12:56:48]execute_cgi path=json_proto method=POST [12:56:48]POST find Content-Length [12:56:48]Host: 172.17.50.3:8080 [12:56:48]Content-Length: 689 [12:56:48]Content-Type: application/json [12:56:48] [12:56:48]POST finish read [12:56:48]Found Content-Length = 689 [12:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:56:48]execute_script... [12:56: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)2886004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:56:48]POST & json_proto [12:56:48]process_json_proto [12:56:48]json parsed OK: [12:56:48]protocol is kg_v1.0 [12:56:48]action value=close_receipt [12:56:48]process_action close_receipt [12:56:48]cmd_close_receipt [12:56:48]MH_GetDate [12:56:48]Write to MH i2c: F0 00 00 3F 67 95 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: F0 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: F0 09 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: F0 09 00 3F 67 00 15 A1 17 67 6B 98 1E 66 59 [12:56:48]GetLastDocTimeStamp 1729601580 [12:56:48]current date 1729601813 [12:56:48]FM_GetShiftState [12:56:48]SAM_PROTO_GetShiftState [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 13 01 00 [12:56:48]Write to MH i2c: E2 08 00 40 67 80 13 01 00 00 00 00 00 24 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0E 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0E 00 40 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 12 [12:56:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:56:48]wFMCommunicate OK [12:56:48]SAM_PROTO_GetShiftState done [12:56:48]FM_GetShiftState done [12:56:48]opened in 1729555832 [12:56:48]opened+sec_in_day 1729642232 [12:56:48]quantity*price = 100051 [12:56:48]sum+1 = 100052 [12:56: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 184 22.10.2024 12:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70236 ФПД: 105631870088293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70236&fm=105631870088293&tin=02508201610067®Number=0000000000156251&sum=100000 [12:56:49]StoreToDocumentArchive [12:56:49]shift 195 fd 70236 [12:56:49]save to /storage/0195/doc_00070236 [12:56:49]save last doc name /storage/0195/doc_00070236 to /storage/kkm_last_doc_name [12:56:49]save OK [12:56:49]Clear old archive folders... [12:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:56:49]tlvbuf is 01145260 [12:56:49]SAM_PROTO_ClearQueue [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 09 00 00 [12:56:49]Write to MH i2c: E2 08 00 4D 67 80 09 00 00 00 00 00 00 26 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 4D 67 00 90 00 28 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_ClearQueue done [12:56:49]KKMCreateOFDPacket [12:56:49]OFDProtocolAddRootSTLVToBuf [12:56:49]FM_MakeSignedData [12:56:49]FM_MakeSignedData [12:56:49]SAM_PROTO_SignData [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 01 02 [12:56:49]Write to MH i2c: E2 08 00 4E 67 80 0D 01 02 00 00 00 00 2E [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 4E 67 00 90 00 29 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=255 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B8 00 00 00 F4 03 04 00 15 A1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 12 01 [12:56:49]Write to MH i2c: E2 02 01 4F 67 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B8 00 00 00 F4 03 04 00 15 A1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 12 01 00 00 9E [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 4F 67 00 90 00 2A [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=16 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 60 12 56 17 F4 65 [12:56:49]Write to MH i2c: E2 13 00 50 67 80 0D 02 02 0B 00 00 35 04 06 00 60 12 56 17 F4 65 00 00 BE [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 50 67 00 90 00 2B [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 03 02 [12:56:49]Write to MH i2c: E2 08 00 51 67 80 0D 03 02 00 00 00 00 33 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 51 67 00 58 CE 63 8C AD C6 D1 46 90 00 D3 [12:56:49]RAPDU: 58 CE 63 8C AD C6 D1 46 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_SignData done [12:56:49]FM_MakeSignedData done [12:56:49]CreateOFDProtocolMessage [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 11 00 00 [12:56:49]Write to MH i2c: E2 08 00 52 67 80 11 00 00 00 00 00 00 33 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 52 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [12:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:56:49]wFMCommunicate OK [12:56:49]CreateOFDProtocolMessage done [12:56:49]OFDSenderStorePacket 70236 [12:56:49]StoreOFDPacket docnum=70236 [12:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 01 AD 0D 01 F8 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B8 00 00 00 F4 03 04 00 15 A1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 12 01 00 35 04 06 00 60 12 56 17 F4 65 58 CE 63 8C AD C6 D1 46 [12:56:49]CheckFolder [12:56:49]dirname=/storage/ofd_packets [12:56:49]CheckFolder done [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00070236 [12:56:49]NVStorageSaveData ofd_packets/00070236 [12:56:49]File name is /storage/ofd_packets/00070236 [12:56:49]Write 307 bytes [12:56:49]NVStorageSaveData done [12:56:49]OFDSenderStorePacket done [12:56:49]KKMCreateOFDPacket done [12:56:49]NVStorageSaveData kkm_last_timestamp [12:56:49]File name is /storage/kkm_last_timestamp [12:56:49]Write 4 bytes [12:56:49]NVStorageSaveData done [12:56:49]ExternCall_PrintAddStr [12:56:49]wPrintStart [12:56:49]Write to MH i2c: 01 00 00 53 67 BA [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 53 67 00 00 00 00 00 FF 0F CF [12:56:49]RasterBufferAndPrint [12:56:49]line Счет N : (1)2886004 [12:56:49]line ИНН: 02508201610067 [12:56:49]line Контрольно-Кассовый Чек [12:56:49]line ПРОДАЖА [12:56:49]line ТРК (МРК, ГНК) : 41 [12:56:49]line Товар: 2710194240 [12:56:49]line D-ENERGY Дт-К-2 [12:56:49]line 12.960 * 77.20 [12:56:49]line = 1000.51 [12:56:49]line НДС 12% НСП 1% [12:56:49]line > о реализуемом товаре [12:56:49]line ОКРУГЛЕНИЕ: -0.51 [12:56:49]line ИТОГО: 1000.00 [12:56:49]line Внесено: 1000.00 [12:56:49]line СДАЧА: 0.00 [12:56:49]line НСП 1% : 8.85 [12:56:49]line НДС 12% : 106.25 [12:56:49]line Наличными: 1000.00 [12:56:49]line Безнал.: 0.00 [12:56:49]line Место: АЗС № 85 "Партнер Нефть" [12:56:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:56:49]line СНО: Общий режим [12:56:49]line Чек 184 22.10.2024 12:56 [12:56:49]line Смена: 195 ФФД: 1.0 [12:56:49]line ЗНМ: 0300000167 [12:56:49]line РНМ: 0000000000156251 [12:56:49]line Версия ККМ: v1.0 [12:56:49]line ФМ: 0000000000963346 [12:56:49]line ФД: 70236 [12:56:49]line ФПД: 105631870088293 [12:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70236&fm=105631870088293&tin=02508201610067®Number=0000000000156251&sum=100000 [12:56:50]OFD Sender: Processing packet 70236 [packets to send 18, broken 17] [12:56:50]ProducePacketName [12:56:50]name=ofd_packets/00070236 [12:56:50]OFD Sender: To server: pG, [12:56:50]CommunicateWithHost lk.salyk.kg:30040 [12:56:50]ConnectInit lk.salyk.kg [12:56:50]written 0, free lines is 4095 [12:56:50]Connected sock=10 [12:56: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 34 36 15 01 00 00 01 AD 0D 01 F8 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B8 00 00 00 F4 03 04 00 15 A1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 12 01 00 35 04 06 00 60 12 56 17 F4 65 58 CE 63 8C AD C6 D1 46 [12:56: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 34 36 4F 00 00 00 AC 62 47 00 6B 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 34 36 10 04 04 00 5C 12 01 00 F4 03 04 00 B6 4A 17 67 B6 04 01 00 00 F8 20 AA 6B 56 3C D2 83 [12:56:50]CommunicateWithHost err = 0 [12:56:50]CheckOFDResponse [12:56:50]1017 (14) - 77093643461234 [12:56:50]1041 (16) - 0000000000963346 [12:56:50]1040 (4) - 70236 [12:56:50]1012 (4) - 22.10.2024 06:48 [12:56:50]1206 (1) - 0 [12:56:50]OFD Sender: Remove packet 70236 [12:56:50]ProducePacketName [12:56:50]name=ofd_packets/00070236 [12:56:50]NVStorageDeleteData [12:56:50]Write to MH i2c: 01 00 00 7E 67 E5 [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 7E 67 00 00 00 00 00 E9 0C E1 [12:56:50]RasterBufferAndPrint [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]written 0, free lines is 3314 [12:56:50]MH_Cut [12:56:50]Write to MH i2c: D1 01 00 85 67 01 BE [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 85 67 00 BD [12:56:50]Write to MH i2c: 01 00 00 86 67 ED [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]OFD Sender: No OFD packet to send [12:56:51]*** Cut start [12:56:51]*** Partial cut [12:56:51]*** CUTSNS_PIN = 1 [12:56:51]*** CUTSNS_PIN = 0 [12:56:51]*** Brake cut motor [12:56:51]Read from MH i2c: 01 [12:56:51]MH_I2C_Read... [12:56:51]*** Stop cut motor [12:56:51]*** Cut end [12:56:51]Read from MH i2c: 01 07 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: 01 07 00 86 67 00 00 00 00 00 FF 0F 02 [12:56:51]process_action close_receipt done [12:56:51]requested_data is exist [12:56:51]produce_requested_data [12:56:51]requested_item fm.sn is exist - process it [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 11 00 00 [12:56:51]Write to MH i2c: E2 08 00 87 67 80 11 00 00 00 00 00 00 68 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 87 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [12:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:56:51]wFMCommunicate OK [12:56:51]requested_item fd.num is exist - process it [12:56:51]SAM_PROTO_GetFieldsCounters [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 13 00 00 [12:56:51]Write to MH i2c: E2 08 00 88 67 80 13 00 00 00 00 00 00 6B [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 88 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 12 01 00 0E 04 04 00 C3 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 E0 [12:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 12 01 00 0E 04 04 00 C3 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 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetFieldsCounters done [12:56:52]requested_item shift.num is exist - process it [12:56:52]requested_item shift.opened is exist - process it [12:56:52]req_shift_opened [12:56:52]FM_GetShiftState [12:56:52]SAM_PROTO_GetShiftState [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 01 00 [12:56:52]Write to MH i2c: E2 08 00 89 67 80 13 01 00 00 00 00 00 6D [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 89 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5B [12:56:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetShiftState done [12:56:52]FM_GetShiftState done [12:56:52]req_shift_opened done [12:56:52]requested_item shift.open_date is exist - process it [12:56:52]req_shift_open_date [12:56:52]req_shift_open_date done [12:56:52]produce_requested_data done [12:56:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70236,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [12:56:52]process_action_free close_receipt [12:56:52]json_value_free [12:56:52]json_value_free done [12:56:52]process_json_proto returns [12:56:52]Send response to host [12:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70236,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [12:56:52]free response buf [12:56:52]execute_script done [12:56:52]execute_script returns [12:56:52]free content buf [12:56:52]Sock 9.Close socket [12:56:52]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:20]accept exits with 7 [13:05:20]New connection [13:05:20]New thread 3067170148 created [13:05:20]Thread 3067026788 joined [13:05:20]Waiting for new connection... [13:05:20] Sock 7.Parse request [13:05:20]Sock 7.Check first char [13:05:20]Sock 7.First char is OK [13:05:20]request: POST /json_proto HTTP/1.0 [13:05:20]Method: POST [13:05:20]URL: /json_proto [13:05:20]Method is POST - this is cgi request [13:05:20]url: /json_proto [13:05:20]query_string will be loaded in cgi processing [13:05:20]execute_cgi json_proto POST (null) [13:05:20]execute_cgi path=json_proto method=POST [13:05:20]POST find Content-Length [13:05:20]Host: 172.17.50.3:8080 [13:05:20]Content-Length: 793 [13:05:20]Content-Type: application/json [13:05:20] [13:05:20]POST finish read [13:05:20]Found Content-Length = 793 [13:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:20]execute_script... [13:05: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)2886005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:20]POST & json_proto [13:05:20]process_json_proto [13:05:20]json parsed OK: [13:05:20]protocol is kg_v1.0 [13:05:20]action value=close_receipt [13:05:20]process_action close_receipt [13:05:20]cmd_close_receipt [13:05:20]MH_GetDate [13:05:20]Write to MH i2c: F0 00 00 8A 67 E0 [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 09 00 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 09 00 8A 67 00 16 A3 17 67 6B 98 1E 66 A7 [13:05:20]GetLastDocTimeStamp 1729601813 [13:05:20]current date 1729602326 [13:05:20]FM_GetShiftState [13:05:20]SAM_PROTO_GetShiftState [13:05:20]wFMCommunicate request_size=4 [13:05:20]MH_SAM_APDU [13:05:20]CAPDU: 80 13 01 00 [13:05:20]Write to MH i2c: E2 08 00 8B 67 80 13 01 00 00 00 00 00 6F [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:20]Read from MH i2c: E2 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 0E 00 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 0E 00 8B 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [13:05:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:05:20]wFMCommunicate OK [13:05:20]SAM_PROTO_GetShiftState done [13:05:20]FM_GetShiftState done [13:05:20]opened in 1729555832 [13:05:20]opened+sec_in_day 1729642232 [13:05:20]quantity*price = 0 [13:05:20]sum+1 = 1 [13:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 185 22.10.2024 13:05 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 91350 ФМ: 0000000000963346 ФД: 70237 ФПД: 198772916642100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70237&fm=198772916642100&tin=02508201610067®Number=0000000000156251&sum=0 [13:05:21]StoreToDocumentArchive [13:05:21]shift 195 fd 70237 [13:05:21]save to /storage/0195/doc_00070237 [13:05:21]save last doc name /storage/0195/doc_00070237 to /storage/kkm_last_doc_name [13:05:21]save OK [13:05:21]Clear old archive folders... [13:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:21]tlvbuf is 011CD9D0 [13:05:21]SAM_PROTO_ClearQueue [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 09 00 00 [13:05:21]Write to MH i2c: E2 08 00 98 67 80 09 00 00 00 00 00 00 71 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 98 67 00 90 00 73 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]SAM_PROTO_ClearQueue done [13:05:21]KKMCreateOFDPacket [13:05:21]OFDProtocolAddRootSTLVToBuf [13:05:21]FM_MakeSignedData [13:05:21]FM_MakeSignedData [13:05:21]SAM_PROTO_SignData [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 01 02 [13:05:21]Write to MH i2c: E2 08 00 99 67 80 0D 01 02 00 00 00 00 79 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 99 67 00 90 00 74 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=255 [13:05:21]MH_SAM_APDU [13:05: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 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 B9 00 00 00 F4 03 04 00 16 A3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 12 01 00 35 04 06 00 B4 [13:05:21]Write to MH i2c: E2 02 01 9A 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B9 00 00 00 F4 03 04 00 16 A3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 12 01 00 35 04 06 00 B4 00 00 C2 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 9A 67 00 90 00 75 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]wFMCommunicate request_size=10 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 0D 02 02 05 C8 6D 16 61 34 [13:05:22]Write to MH i2c: E2 0D 00 9B 67 80 0D 02 02 05 00 C8 6D 16 61 34 00 00 66 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 9B 67 00 90 00 76 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 0D 03 02 [13:05:22]Write to MH i2c: E2 08 00 9C 67 80 0D 03 02 00 00 00 00 7E [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0B 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0B 00 9C 67 00 60 F1 84 A7 98 62 3A 8C 90 00 BB [13:05:22]RAPDU: 60 F1 84 A7 98 62 3A 8C 90 00 [13:05:22]wFMCommunicate OK [13:05:22]SAM_PROTO_SignData done [13:05:22]FM_MakeSignedData done [13:05:22]CreateOFDProtocolMessage [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 11 00 00 [13:05:22]Write to MH i2c: E2 08 00 9D 67 80 11 00 00 00 00 00 00 7E [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 17 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 17 00 9D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [13:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:05:22]wFMCommunicate OK [13:05:22]CreateOFDProtocolMessage done [13:05:22]OFDSenderStorePacket 70237 [13:05:22]StoreOFDPacket docnum=70237 [13:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B2 F1 07 01 83 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 16 A3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 12 01 00 35 04 06 00 B4 C8 6D 16 61 34 60 F1 84 A7 98 62 3A 8C [13:05:22]CheckFolder [13:05:22]dirname=/storage/ofd_packets [13:05:22]CheckFolder done [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00070237 [13:05:22]NVStorageSaveData ofd_packets/00070237 [13:05:22]File name is /storage/ofd_packets/00070237 [13:05:22]Write 301 bytes [13:05:22]NVStorageSaveData done [13:05:22]OFDSenderStorePacket done [13:05:22]KKMCreateOFDPacket done [13:05:22]NVStorageSaveData kkm_last_timestamp [13:05:22]File name is /storage/kkm_last_timestamp [13:05:22]Write 4 bytes [13:05:22]NVStorageSaveData done [13:05:22]ExternCall_PrintAddStr [13:05:22]wPrintStart [13:05:22]Write to MH i2c: 01 00 00 9E 67 05 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 9E 67 00 00 00 00 00 FF 0F 1A [13:05:22]RasterBufferAndPrint [13:05:22]line Счет N : (1)2886005 [13:05:22]line ИНН: 02508201610067 [13:05:22]line Контрольно-Кассовый Чек [13:05:22]line ПРОДАЖА [13:05:22]line ТРК (МРК, ГНК) : 22 [13:05:22]line Товар: 2710124130 [13:05:22]line Аи-92-К-5 [13:05:22]line 20.000 * 0.00 [13:05:22]line = 0.00 [13:05:22]line НДС 12% НСП 1% [13:05:22]line > о реализуемом товаре [13:05:22]line ИТОГО: 0.00 [13:05:22]line НСП 1% : 0.00 [13:05:22]line НДС 12% : 0.00 [13:05:22]line Наличными: 0.00 [13:05:22]line Безнал.: 0.00 [13:05:22]line Место: АЗС № 85 "Партнер Нефть" [13:05:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:05:22]line СНО: Общий режим [13:05:22]line Чек 185 22.10.2024 13:05 [13:05:22]line Смена: 195 ФФД: 1.0 [13:05:22]line ЗНМ: 0300000167 [13:05:22]line РНМ: 0000000000156251 [13:05:22]line Версия ККМ: v1.0 [13:05:22]line Талоны: Топливная Карта [13:05:22]line 91350 [13:05:22]line ФМ: 0000000000963346 [13:05:22]line ФД: 70237 [13:05:22]line ФПД: 198772916642100 [13:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70237&fm=198772916642100&tin=02508201610067®Number=0000000000156251&sum=0 [13:05:22]OFD Sender: Processing packet 70237 [packets to send 18, broken 17] [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00070237 [13:05:22]OFD Sender: To server: pG, [13:05:22]CommunicateWithHost lk.salyk.kg:30040 [13:05:22]ConnectInit lk.salyk.kg [13:05:22]written 0, free lines is 4095 [13:05:22]Connected sock=10 [13:05: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 34 36 0F 01 00 00 B2 F1 07 01 83 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 16 A3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 12 01 00 35 04 06 00 B4 C8 6D 16 61 34 60 F1 84 A7 98 62 3A 8C [13:05: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 34 36 4F 00 00 00 6A D9 47 00 B4 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 12 01 00 F4 03 04 00 B6 4C 17 67 B6 04 01 00 00 32 9B 98 CC 91 33 40 00 [13:05:22]CommunicateWithHost err = 0 [13:05:22]CheckOFDResponse [13:05:22]1017 (14) - 77093643461234 [13:05:22]1041 (16) - 0000000000963346 [13:05:22]1040 (4) - 70237 [13:05:22]1012 (4) - 22.10.2024 06:56 [13:05:22]1206 (1) - 0 [13:05:22]OFD Sender: Remove packet 70237 [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00070237 [13:05:22]NVStorageDeleteData [13:05:23]Write to MH i2c: 01 00 00 C8 67 2F [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 C8 67 00 00 00 00 00 EE 0C 30 [13:05:23]RasterBufferAndPrint [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]written 0, free lines is 3319 [13:05:23]MH_Cut [13:05:23]Write to MH i2c: D1 01 00 CF 67 01 08 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 01 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 01 00 CF 67 00 07 [13:05:23]Write to MH i2c: 01 00 00 D0 67 37 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]OFD Sender: No OFD packet to send [13:05:23]*** Cut start [13:05:23]*** Partial cut [13:05:23]*** CUTSNS_PIN = 1 [13:05:23]*** CUTSNS_PIN = 0 [13:05:24]*** Brake cut motor [13:05:24]Read from MH i2c: 01 [13:05:24]MH_I2C_Read... [13:05:24]*** Stop cut motor [13:05:24]*** Cut end [13:05:24]Read from MH i2c: 01 07 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 07 00 D0 67 00 00 00 00 00 FF 0F 4C [13:05:24]process_action close_receipt done [13:05:24]requested_data is exist [13:05:24]produce_requested_data [13:05:24]requested_item fm.sn is exist - process it [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 11 00 00 [13:05:24]Write to MH i2c: E2 08 00 D1 67 80 11 00 00 00 00 00 00 B2 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 D1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [13:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:05:24]wFMCommunicate OK [13:05:24]requested_item fd.num is exist - process it [13:05:24]SAM_PROTO_GetFieldsCounters [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 00 00 [13:05:24]Write to MH i2c: E2 08 00 D2 67 80 13 00 00 00 00 00 00 B5 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 62 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 62 00 D2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 12 01 00 0E 04 04 00 C3 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 2E [13:05: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 12 01 00 0E 04 04 00 C3 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 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetFieldsCounters done [13:05:24]requested_item shift.num is exist - process it [13:05:24]requested_item shift.opened is exist - process it [13:05:24]req_shift_opened [13:05:24]FM_GetShiftState [13:05:24]SAM_PROTO_GetShiftState [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 01 00 [13:05:24]Write to MH i2c: E2 08 00 D3 67 80 13 01 00 00 00 00 00 B7 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 D3 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A5 [13:05:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetShiftState done [13:05:24]FM_GetShiftState done [13:05:24]req_shift_opened done [13:05:24]requested_item shift.open_date is exist - process it [13:05:24]req_shift_open_date [13:05:24]req_shift_open_date done [13:05:24]produce_requested_data done [13:05:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70237,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:05:24]process_action_free close_receipt [13:05:24]json_value_free [13:05:24]json_value_free done [13:05:24]process_json_proto returns [13:05:24]Send response to host [13:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70237,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:05:24]free response buf [13:05:24]execute_script done [13:05:24]execute_script returns [13:05:24]free content buf [13:05:24]Sock 7.Close socket [13:05:24]Sock 7.Thread stoped [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:55]accept exits with 9 [13:09:55]New connection [13:09:55]New thread 3067026788 created [13:09:55]Thread 3067170148 joined [13:09:55]Waiting for new connection... [13:09:55] Sock 9.Parse request [13:09:55]Sock 9.Check first char [13:09:55]Sock 9.First char is OK [13:09:55]request: POST /json_proto HTTP/1.0 [13:09:55]Method: POST [13:09:55]URL: /json_proto [13:09:55]Method is POST - this is cgi request [13:09:55]url: /json_proto [13:09:55]query_string will be loaded in cgi processing [13:09:55]execute_cgi json_proto POST (null) [13:09:55]execute_cgi path=json_proto method=POST [13:09:55]POST find Content-Length [13:09:55]Host: 172.17.50.3:8080 [13:09:55]Content-Length: 776 [13:09:55]Content-Type: application/json [13:09:55] [13:09:55]POST finish read [13:09:55]Found Content-Length = 776 [13:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:55]execute_script... [13:09: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)2886006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:55]POST & json_proto [13:09:55]process_json_proto [13:09:55]json parsed OK: [13:09:55]protocol is kg_v1.0 [13:09:55]action value=close_receipt [13:09:55]process_action close_receipt [13:09:55]cmd_close_receipt [13:09:55]MH_GetDate [13:09:55]Write to MH i2c: F0 00 00 D4 67 2A [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 09 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 09 00 D4 67 00 28 A4 17 67 6B 98 1E 66 04 [13:09:55]GetLastDocTimeStamp 1729602326 [13:09:55]current date 1729602600 [13:09:55]FM_GetShiftState [13:09:55]SAM_PROTO_GetShiftState [13:09:55]wFMCommunicate request_size=4 [13:09:55]MH_SAM_APDU [13:09:55]CAPDU: 80 13 01 00 [13:09:55]Write to MH i2c: E2 08 00 D5 67 80 13 01 00 00 00 00 00 B9 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:55]Read from MH i2c: E2 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 0E 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 0E 00 D5 67 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A7 [13:09:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:09:55]wFMCommunicate OK [13:09:55]SAM_PROTO_GetShiftState done [13:09:55]FM_GetShiftState done [13:09:55]opened in 1729555832 [13:09:55]opened+sec_in_day 1729642232 [13:09:55]quantity*price = 150076 [13:09:55]sum+1 = 150078 [13:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 186 22.10.2024 13:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70238 ФПД: 276833340875101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70238&fm=276833340875101&tin=02508201610067®Number=0000000000156251&sum=150077 [13:09:56]StoreToDocumentArchive [13:09:56]shift 195 fd 70238 [13:09:56]save to /storage/0195/doc_00070238 [13:09:56]save last doc name /storage/0195/doc_00070238 to /storage/kkm_last_doc_name [13:09:56]save OK [13:09:56]Clear old archive folders... [13:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:09:56]tlvbuf is 01208C60 [13:09:56]SAM_PROTO_ClearQueue [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 09 00 00 [13:09:56]Write to MH i2c: E2 08 00 E2 67 80 09 00 00 00 00 00 00 BB [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 E2 67 00 90 00 BD [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]SAM_PROTO_ClearQueue done [13:09:56]KKMCreateOFDPacket [13:09:56]OFDProtocolAddRootSTLVToBuf [13:09:56]FM_MakeSignedData [13:09:56]FM_MakeSignedData [13:09:56]SAM_PROTO_SignData [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 01 02 [13:09:56]Write to MH i2c: E2 08 00 E3 67 80 0D 01 02 00 00 00 00 C3 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 E3 67 00 90 00 BE [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=255 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 12 01 [13:09:56]Write to MH i2c: E2 02 01 E4 67 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 12 01 00 00 3B [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 E4 67 00 90 00 BF [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=16 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB C7 48 F1 E1 5D [13:09:56]Write to MH i2c: E2 13 00 E5 67 80 0D 02 02 0B 00 00 35 04 06 00 FB C7 48 F1 E1 5D 00 00 54 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 E5 67 00 90 00 C0 [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 03 02 [13:09:56]Write to MH i2c: E2 08 00 E6 67 80 0D 03 02 00 00 00 00 C8 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 0B 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 0B 00 E6 67 00 81 DE D8 34 54 62 4E 22 90 00 5A [13:09:56]RAPDU: 81 DE D8 34 54 62 4E 22 90 00 [13:09:56]wFMCommunicate OK [13:09:56]SAM_PROTO_SignData done [13:09:56]FM_MakeSignedData done [13:09:56]CreateOFDProtocolMessage [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 11 00 00 [13:09:56]Write to MH i2c: E2 08 00 E7 67 80 11 00 00 00 00 00 00 C8 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 17 00 [13:09:56]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 E7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [13:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:09:57]wFMCommunicate OK [13:09:57]CreateOFDProtocolMessage done [13:09:57]OFDSenderStorePacket 70238 [13:09:57]StoreOFDPacket docnum=70238 [13:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 80 1A 0D 01 6A 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 12 01 00 35 04 06 00 FB C7 48 F1 E1 5D 81 DE D8 34 54 62 4E 22 [13:09:57]CheckFolder [13:09:57]dirname=/storage/ofd_packets [13:09:57]CheckFolder done [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00070238 [13:09:57]NVStorageSaveData ofd_packets/00070238 [13:09:57]File name is /storage/ofd_packets/00070238 [13:09:57]Write 307 bytes [13:09:57]NVStorageSaveData done [13:09:57]OFDSenderStorePacket done [13:09:57]KKMCreateOFDPacket done [13:09:57]NVStorageSaveData kkm_last_timestamp [13:09:57]File name is /storage/kkm_last_timestamp [13:09:57]Write 4 bytes [13:09:57]NVStorageSaveData done [13:09:57]ExternCall_PrintAddStr [13:09:57]wPrintStart [13:09:57]Write to MH i2c: 01 00 00 E8 67 4F [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 E8 67 00 00 00 00 00 FF 0F 64 [13:09:57]RasterBufferAndPrint [13:09:57]line Счет N : (1)2886006 [13:09:57]line ИНН: 02508201610067 [13:09:57]line Контрольно-Кассовый Чек [13:09:57]line ПРОДАЖА [13:09:57]line ТРК (МРК, ГНК) : 41 [13:09:57]line Товар: 2710194240 [13:09:57]line D-ENERGY Дт-К-2 [13:09:57]line 19.440 * 77.20 [13:09:57]line = 1500.77 [13:09:57]line НДС 12% НСП 1% [13:09:57]line > о реализуемом товаре [13:09:57]line ИТОГО: 1500.77 [13:09:57]line НСП 1% : 13.28 [13:09:57]line НДС 12% : 159.37 [13:09:57]line Наличными: 0.00 [13:09:57]line Безнал.: 1500.77 [13:09:57]line Место: АЗС № 85 "Партнер Нефть" [13:09:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:09:57]line СНО: Общий режим [13:09:57]line Чек 186 22.10.2024 13:10 [13:09:57]line Смена: 195 ФФД: 1.0 [13:09:57]line ЗНМ: 0300000167 [13:09:57]line РНМ: 0000000000156251 [13:09:57]line Версия ККМ: v1.0 [13:09:57]line Платежная система: Mbank [13:09:57]line ФМ: 0000000000963346 [13:09:57]line ФД: 70238 [13:09:57]line ФПД: 276833340875101 [13:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70238&fm=276833340875101&tin=02508201610067®Number=0000000000156251&sum=150077 [13:09:57]OFD Sender: Processing packet 70238 [packets to send 18, broken 17] [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00070238 [13:09:57]OFD Sender: To server: pG, [13:09:57]CommunicateWithHost lk.salyk.kg:30040 [13:09:57]ConnectInit lk.salyk.kg [13:09:57]written 0, free lines is 4095 [13:09:57]Connected sock=10 [13:09: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 34 36 15 01 00 00 80 1A 0D 01 6A 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 12 01 00 35 04 06 00 FB C7 48 F1 E1 5D 81 DE D8 34 54 62 4E 22 [13:09: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 34 36 4F 00 00 00 B7 DF 47 00 47 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 34 36 10 04 04 00 5E 12 01 00 F4 03 04 00 C9 4D 17 67 B6 04 01 00 00 2A 64 35 45 34 76 B9 F2 [13:09:57]CommunicateWithHost err = 0 [13:09:57]CheckOFDResponse [13:09:57]1017 (14) - 77093643461234 [13:09:57]1041 (16) - 0000000000963346 [13:09:57]1040 (4) - 70238 [13:09:57]1012 (4) - 22.10.2024 07:01 [13:09:57]1206 (1) - 0 [13:09:57]OFD Sender: Remove packet 70238 [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00070238 [13:09:57]NVStorageDeleteData [13:09:57]Write to MH i2c: 01 00 00 11 68 79 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 11 68 00 00 00 00 00 22 0D AF [13:09:57]RasterBufferAndPrint [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]written 0, free lines is 3371 [13:09:57]MH_Cut [13:09:57]Write to MH i2c: D1 01 00 18 68 01 52 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: D1 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: D1 01 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: D1 01 00 18 68 00 51 [13:09:57]Write to MH i2c: 01 00 00 19 68 81 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:58]OFD Sender: No OFD packet to send [13:09:58]*** Cut start [13:09:58]*** Partial cut [13:09:58]*** CUTSNS_PIN = 1 [13:09:58]*** CUTSNS_PIN = 0 [13:09:58]*** Brake cut motor [13:09:59]Read from MH i2c: 01 [13:09:59]MH_I2C_Read... [13:09:59]*** Stop cut motor [13:09:59]*** Cut end [13:09:59]Read from MH i2c: 01 07 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: 01 07 00 19 68 00 00 00 00 00 FF 0F 96 [13:09:59]process_action close_receipt done [13:09:59]requested_data is exist [13:09:59]produce_requested_data [13:09:59]requested_item fm.sn is exist - process it [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 11 00 00 [13:09:59]Write to MH i2c: E2 08 00 1A 68 80 11 00 00 00 00 00 00 FC [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 17 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 17 00 1A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [13:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:09:59]wFMCommunicate OK [13:09:59]requested_item fd.num is exist - process it [13:09:59]SAM_PROTO_GetFieldsCounters [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 13 00 00 [13:09:59]Write to MH i2c: E2 08 00 1B 68 80 13 00 00 00 00 00 00 FF [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 62 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 62 00 1B 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 12 01 00 0E 04 04 00 C3 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 7C [13:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 12 01 00 0E 04 04 00 C3 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 [13:09:59]wFMCommunicate OK [13:09:59]SAM_PROTO_GetFieldsCounters done [13:09:59]requested_item shift.num is exist - process it [13:09:59]requested_item shift.opened is exist - process it [13:09:59]req_shift_opened [13:09:59]FM_GetShiftState [13:09:59]SAM_PROTO_GetShiftState [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 13 01 00 [13:09:59]Write to MH i2c: E2 08 00 1C 68 80 13 01 00 00 00 00 00 01 [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 0E 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 0E 00 1C 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EF [13:09:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:09:59]wFMCommunicate OK [13:09:59]SAM_PROTO_GetShiftState done [13:09:59]FM_GetShiftState done [13:09:59]req_shift_opened done [13:09:59]requested_item shift.open_date is exist - process it [13:09:59]req_shift_open_date [13:09:59]req_shift_open_date done [13:09:59]produce_requested_data done [13:09:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70238,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:09:59]process_action_free close_receipt [13:09:59]json_value_free [13:09:59]json_value_free done [13:09:59]process_json_proto returns [13:09:59]Send response to host [13:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70238,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:09:59]free response buf [13:09:59]execute_script done [13:09:59]execute_script returns [13:09:59]free content buf [13:09:59]Sock 9.Close socket [13:09:59]Sock 9.Thread stoped [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:26]accept exits with 7 [13:12:26]New connection [13:12:26]New thread 3067170148 created [13:12:26]Thread 3067026788 joined [13:12:26]Waiting for new connection... [13:12:26] Sock 7.Parse request [13:12:26]Sock 7.Check first char [13:12:26]Sock 7.First char is OK [13:12:26]request: POST /json_proto HTTP/1.0 [13:12:26]Method: POST [13:12:26]URL: /json_proto [13:12:26]Method is POST - this is cgi request [13:12:26]url: /json_proto [13:12:26]query_string will be loaded in cgi processing [13:12:26]execute_cgi json_proto POST (null) [13:12:26]execute_cgi path=json_proto method=POST [13:12:26]POST find Content-Length [13:12:26]Host: 172.17.50.3:8080 [13:12:26]Content-Length: 675 [13:12:26]Content-Type: application/json [13:12:26] [13:12:26]POST finish read [13:12:26]Found Content-Length = 675 [13:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886007", "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" : 7.880, "sum" : 600.46, "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" ] } } [13:12:26]execute_script... [13:12: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)2886007", "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" : 7.880, "sum" : 600.46, "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" ] } } [13:12:26]POST & json_proto [13:12:26]process_json_proto [13:12:26]json parsed OK: [13:12:26]protocol is kg_v1.0 [13:12:26]action value=close_receipt [13:12:26]process_action close_receipt [13:12:26]cmd_close_receipt [13:12:26]MH_GetDate [13:12:26]Write to MH i2c: F0 00 00 1D 68 74 [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: F0 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: F0 09 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: F0 09 00 1D 68 00 C0 A4 17 67 6B 98 1E 66 E6 [13:12:26]GetLastDocTimeStamp 1729602600 [13:12:26]current date 1729602752 [13:12:26]FM_GetShiftState [13:12:26]SAM_PROTO_GetShiftState [13:12:26]wFMCommunicate request_size=4 [13:12:26]MH_SAM_APDU [13:12:26]CAPDU: 80 13 01 00 [13:12:26]Write to MH i2c: E2 08 00 1E 68 80 13 01 00 00 00 00 00 03 [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 0E 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 0E 00 1E 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F1 [13:12:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:12:26]wFMCommunicate OK [13:12:26]SAM_PROTO_GetShiftState done [13:12:26]FM_GetShiftState done [13:12:26]opened in 1729555832 [13:12:26]opened+sec_in_day 1729642232 [13:12:26]quantity*price = 60045 [13:12:26]sum+1 = 60047 [13:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 187 22.10.2024 13:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70239 ФПД: 48322435314630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131232&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70239&fm=48322435314630&tin=02508201610067®Number=0000000000156251&sum=60000 [13:12:27]StoreToDocumentArchive [13:12:27]shift 195 fd 70239 [13:12:27]save to /storage/0195/doc_00070239 [13:12:27]save last doc name /storage/0195/doc_00070239 to /storage/kkm_last_doc_name [13:12:27]save OK [13:12:27]Clear old archive folders... [13:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:27]tlvbuf is 01208D30 [13:12:27]SAM_PROTO_ClearQueue [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 09 00 00 [13:12:27]Write to MH i2c: E2 08 00 2B 68 80 09 00 00 00 00 00 00 05 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 03 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 03 00 2B 68 00 90 00 07 [13:12:27]RAPDU: 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_ClearQueue done [13:12:27]KKMCreateOFDPacket [13:12:27]OFDProtocolAddRootSTLVToBuf [13:12:27]FM_MakeSignedData [13:12:27]FM_MakeSignedData [13:12:27]SAM_PROTO_SignData [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 0D 01 02 [13:12:27]Write to MH i2c: E2 08 00 2C 68 80 0D 01 02 00 00 00 00 0D [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 03 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 03 00 2C 68 00 90 00 08 [13:12:27]RAPDU: 90 00 [13:12:27]wFMCommunicate OK [13:12:27]wFMCommunicate request_size=255 [13:12:27]MH_SAM_APDU [13:12: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 BB 00 00 00 F4 03 04 00 C0 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 12 01 00 35 04 06 00 2B F2 F1 97 [13:12:27]Write to MH i2c: E2 02 01 2D 68 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 BB 00 00 00 F4 03 04 00 C0 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 12 01 00 35 04 06 00 2B F2 F1 97 00 00 C4 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 2D 68 00 90 00 09 [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]wFMCommunicate request_size=7 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 02 02 02 73 C6 [13:12:28]Write to MH i2c: E2 0A 00 2E 68 80 0D 02 02 02 00 73 C6 00 00 4D [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 2E 68 00 90 00 0A [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 03 02 [13:12:28]Write to MH i2c: E2 08 00 2F 68 80 0D 03 02 00 00 00 00 12 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 0B 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 0B 00 2F 68 00 5B 5B E8 F4 F1 85 58 C3 90 00 36 [13:12:28]RAPDU: 5B 5B E8 F4 F1 85 58 C3 90 00 [13:12:28]wFMCommunicate OK [13:12:28]SAM_PROTO_SignData done [13:12:28]FM_MakeSignedData done [13:12:28]CreateOFDProtocolMessage [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 11 00 00 [13:12:28]Write to MH i2c: E2 08 00 30 68 80 11 00 00 00 00 00 00 12 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]OFD Sender: No OFD packet to send [13:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 17 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 17 00 30 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [13:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:12:28]wFMCommunicate OK [13:12:28]CreateOFDProtocolMessage done [13:12:28]OFDSenderStorePacket 70239 [13:12:28]StoreOFDPacket docnum=70239 [13:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D5 7D 04 01 40 5C 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 BB 00 00 00 F4 03 04 00 C0 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 12 01 00 35 04 06 00 2B F2 F1 97 73 C6 5B 5B E8 F4 F1 85 58 C3 [13:12:28]CheckFolder [13:12:28]dirname=/storage/ofd_packets [13:12:28]CheckFolder done [13:12:28]ProducePacketName [13:12:28]name=ofd_packets/00070239 [13:12:28]NVStorageSaveData ofd_packets/00070239 [13:12:28]File name is /storage/ofd_packets/00070239 [13:12:28]Write 298 bytes [13:12:28]NVStorageSaveData done [13:12:28]OFDSenderStorePacket done [13:12:28]KKMCreateOFDPacket done [13:12:28]NVStorageSaveData kkm_last_timestamp [13:12:28]File name is /storage/kkm_last_timestamp [13:12:28]Write 4 bytes [13:12:28]NVStorageSaveData done [13:12:28]ExternCall_PrintAddStr [13:12:28]wPrintStart [13:12:28]Write to MH i2c: 01 00 00 31 68 99 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: 01 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: 01 07 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: 01 07 00 31 68 00 00 00 00 00 FF 0F AE [13:12:28]RasterBufferAndPrint [13:12:28]line Счет N : (1)2886007 [13:12:28]line ИНН: 02508201610067 [13:12:28]line Контрольно-Кассовый Чек [13:12:28]line ПРОДАЖА [13:12:28]line ТРК (МРК, ГНК) : 51 [13:12:28]line Товар: 2710194210 [13:12:28]line ДТ-К-5 [13:12:28]line 7.880 * 76.20 [13:12:28]line = 600.46 [13:12:28]line НДС 12% НСП 1% [13:12:28]line > о реализуемом товаре [13:12:28]line ОКРУГЛЕНИЕ: -0.46 [13:12:28]line ИТОГО: 600.00 [13:12:28]line Внесено: 600.00 [13:12:28]line СДАЧА: 0.00 [13:12:28]line НСП 1% : 5.31 [13:12:28]line НДС 12% : 63.77 [13:12:28]line Наличными: 600.00 [13:12:28]line Безнал.: 0.00 [13:12:28]line Место: АЗС № 85 "Партнер Нефть" [13:12:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:12:28]line СНО: Общий режим [13:12:28]line Чек 187 22.10.2024 13:12 [13:12:28]line Смена: 195 ФФД: 1.0 [13:12:28]line ЗНМ: 0300000167 [13:12:28]line РНМ: 0000000000156251 [13:12:28]line Версия ККМ: v1.0 [13:12:28]line ФМ: 0000000000963346 [13:12:28]line ФД: 70239 [13:12:28]line ФПД: 48322435314630 [13:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131232&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70239&fm=48322435314630&tin=02508201610067®Number=0000000000156251&sum=60000 [13:12:28]OFD Sender: Processing packet 70239 [packets to send 18, broken 17] [13:12:28]ProducePacketName [13:12:28]name=ofd_packets/00070239 [13:12:28]OFD Sender: To server: pG, [13:12:28]CommunicateWithHost lk.salyk.kg:30040 [13:12:28]ConnectInit lk.salyk.kg [13:12:28]written 0, free lines is 4095 [13:12:28]Connected sock=10 [13:12: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 34 36 0C 01 00 00 D5 7D 04 01 40 5C 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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 BB 00 00 00 F4 03 04 00 C0 A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 12 01 00 35 04 06 00 2B F2 F1 97 73 C6 5B 5B E8 F4 F1 85 58 C3 [13:12: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 34 36 4F 00 00 00 CC D5 47 00 44 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 34 36 10 04 04 00 5F 12 01 00 F4 03 04 00 60 4E 17 67 B6 04 01 00 00 CE 6E FF AE B4 C4 62 3D [13:12:29]CommunicateWithHost err = 0 [13:12:29]CheckOFDResponse [13:12:29]1017 (14) - 77093643461234 [13:12:29]1041 (16) - 0000000000963346 [13:12:29]1040 (4) - 70239 [13:12:29]1012 (4) - 22.10.2024 07:04 [13:12:29]1206 (1) - 0 [13:12:29]OFD Sender: Remove packet 70239 [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00070239 [13:12:29]NVStorageDeleteData [13:12:29]Write to MH i2c: 01 00 00 5C 68 C4 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 5C 68 00 00 00 00 00 E6 0C BD [13:12:29]RasterBufferAndPrint [13:12:29]line [13:12:29]line [13:12:29]line [13:12:29]line [13:12:29]line [13:12:29]written 0, free lines is 3308 [13:12:29]MH_Cut [13:12:29]Write to MH i2c: D1 01 00 63 68 01 9D [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: D1 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: D1 01 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: D1 01 00 63 68 00 9C [13:12:29]Write to MH i2c: 01 00 00 64 68 CC [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]OFD Sender: No OFD packet to send [13:12:29]*** Cut start [13:12:29]*** Partial cut [13:12:29]*** CUTSNS_PIN = 1 [13:12:29]*** CUTSNS_PIN = 0 [13:12:30]*** Brake cut motor [13:12:30]Read from MH i2c: 01 [13:12:30]MH_I2C_Read... [13:12:30]*** Stop cut motor [13:12:30]*** Cut end [13:12:30]Read from MH i2c: 01 07 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 07 00 64 68 00 00 00 00 00 FF 0F E1 [13:12:30]process_action close_receipt done [13:12:30]requested_data is exist [13:12:30]produce_requested_data [13:12:30]requested_item fm.sn is exist - process it [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 11 00 00 [13:12:30]Write to MH i2c: E2 08 00 65 68 80 11 00 00 00 00 00 00 47 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 17 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 17 00 65 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [13:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:12:30]wFMCommunicate OK [13:12:30]requested_item fd.num is exist - process it [13:12:30]SAM_PROTO_GetFieldsCounters [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 00 00 [13:12:30]Write to MH i2c: E2 08 00 66 68 80 13 00 00 00 00 00 00 4A [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 62 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 62 00 66 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 12 01 00 0E 04 04 00 C3 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 CB [13:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 12 01 00 0E 04 04 00 C3 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 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetFieldsCounters done [13:12:30]requested_item shift.num is exist - process it [13:12:30]requested_item shift.opened is exist - process it [13:12:30]req_shift_opened [13:12:30]FM_GetShiftState [13:12:30]SAM_PROTO_GetShiftState [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 01 00 [13:12:30]Write to MH i2c: E2 08 00 67 68 80 13 01 00 00 00 00 00 4C [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 67 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3A [13:12:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftState done [13:12:30]FM_GetShiftState done [13:12:30]req_shift_opened done [13:12:30]requested_item shift.open_date is exist - process it [13:12:30]req_shift_open_date [13:12:30]req_shift_open_date done [13:12:30]produce_requested_data done [13:12:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70239,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:12:30]process_action_free close_receipt [13:12:30]json_value_free [13:12:30]json_value_free done [13:12:30]process_json_proto returns [13:12:30]Send response to host [13:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70239,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:12:30]free response buf [13:12:30]execute_script done [13:12:30]execute_script returns [13:12:30]free content buf [13:12:30]Sock 7.Close socket [13:12:30]Sock 7.Thread stoped [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:55]accept exits with 9 [13:12:55]New connection [13:12:55]New thread 3067026788 created [13:12:55]Thread 3067170148 joined [13:12:55]Waiting for new connection... [13:12:55] Sock 9.Parse request [13:12:55]Sock 9.Check first char [13:12:55]Sock 9.First char is OK [13:12:55]request: POST /json_proto HTTP/1.0 [13:12:55]Method: POST [13:12:55]URL: /json_proto [13:12:55]Method is POST - this is cgi request [13:12:55]url: /json_proto [13:12:55]query_string will be loaded in cgi processing [13:12:55]execute_cgi json_proto POST (null) [13:12:55]execute_cgi path=json_proto method=POST [13:12:55]POST find Content-Length [13:12:55]Host: 172.17.50.3:8080 [13:12:55]Content-Length: 680 [13:12:55]Content-Type: application/json [13:12:55] [13:12:55]POST finish read [13:12:55]Found Content-Length = 680 [13:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [13:12:55]execute_script... [13:12: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)2886008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [13:12:55]POST & json_proto [13:12:55]process_json_proto [13:12:55]json parsed OK: [13:12:55]protocol is kg_v1.0 [13:12:55]action value=close_receipt [13:12:55]process_action close_receipt [13:12:55]cmd_close_receipt [13:12:55]MH_GetDate [13:12:55]Write to MH i2c: F0 00 00 68 68 BF [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 09 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 09 00 68 68 00 DC A4 17 67 6B 98 1E 66 4D [13:12:55]GetLastDocTimeStamp 1729602752 [13:12:55]current date 1729602780 [13:12:55]FM_GetShiftState [13:12:55]SAM_PROTO_GetShiftState [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 13 01 00 [13:12:55]Write to MH i2c: E2 08 00 69 68 80 13 01 00 00 00 00 00 4E [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 69 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3C [13:12:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_GetShiftState done [13:12:55]FM_GetShiftState done [13:12:55]opened in 1729555832 [13:12:55]opened+sec_in_day 1729642232 [13:12:55]quantity*price = 200025 [13:12:55]sum+1 = 200026 [13:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 188 22.10.2024 13:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70240 ФПД: 244609741643109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70240&fm=244609741643109&tin=02508201610067®Number=0000000000156251&sum=200000 [13:12:56]StoreToDocumentArchive [13:12:56]shift 195 fd 70240 [13:12:56]save to /storage/0195/doc_00070240 [13:12:56]save last doc name /storage/0195/doc_00070240 to /storage/kkm_last_doc_name [13:12:56]save OK [13:12:56]Clear old archive folders... [13:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:56]tlvbuf is 013086D0 [13:12:56]SAM_PROTO_ClearQueue [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 09 00 00 [13:12:56]Write to MH i2c: E2 08 00 76 68 80 09 00 00 00 00 00 00 50 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 76 68 00 90 00 52 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_ClearQueue done [13:12:56]KKMCreateOFDPacket [13:12:56]OFDProtocolAddRootSTLVToBuf [13:12:56]FM_MakeSignedData [13:12:56]FM_MakeSignedData [13:12:56]SAM_PROTO_SignData [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 01 02 [13:12:56]Write to MH i2c: E2 08 00 77 68 80 0D 01 02 00 00 00 00 58 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 77 68 00 90 00 53 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=255 [13:12:56]MH_SAM_APDU [13:12: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 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 BC 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 12 01 00 35 04 06 00 DE 78 A4 C2 [13:12:56]Write to MH i2c: E2 02 01 78 68 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 BC 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 12 01 00 35 04 06 00 DE 78 A4 C2 00 00 71 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 78 68 00 90 00 54 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=7 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 02 5D 65 [13:12:56]Write to MH i2c: E2 0A 00 79 68 80 0D 02 02 02 00 5D 65 00 00 21 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 79 68 00 90 00 55 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 03 02 [13:12:56]Write to MH i2c: E2 08 00 7A 68 80 0D 03 02 00 00 00 00 5D [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 7A 68 00 A3 51 24 D7 5B 01 3E ED 90 00 D4 [13:12:56]RAPDU: A3 51 24 D7 5B 01 3E ED 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_SignData done [13:12:56]FM_MakeSignedData done [13:12:56]CreateOFDProtocolMessage [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 11 00 00 [13:12:56]Write to MH i2c: E2 08 00 7B 68 80 11 00 00 00 00 00 00 5D [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 7B 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [13:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:12:56]wFMCommunicate OK [13:12:56]CreateOFDProtocolMessage done [13:12:56]OFDSenderStorePacket 70240 [13:12:56]StoreOFDPacket docnum=70240 [13:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8E 91 04 01 10 99 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 BC 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 12 01 00 35 04 06 00 DE 78 A4 C2 5D 65 A3 51 24 D7 5B 01 3E ED [13:12:56]CheckFolder [13:12:56]dirname=/storage/ofd_packets [13:12:56]CheckFolder done [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00070240 [13:12:56]NVStorageSaveData ofd_packets/00070240 [13:12:56]File name is /storage/ofd_packets/00070240 [13:12:56]Write 298 bytes [13:12:56]NVStorageSaveData done [13:12:56]OFDSenderStorePacket done [13:12:56]KKMCreateOFDPacket done [13:12:56]NVStorageSaveData kkm_last_timestamp [13:12:56]File name is /storage/kkm_last_timestamp [13:12:56]Write 4 bytes [13:12:56]NVStorageSaveData done [13:12:56]ExternCall_PrintAddStr [13:12:56]wPrintStart [13:12:56]Write to MH i2c: 01 00 00 7C 68 E4 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 7C 68 00 00 00 00 00 FF 0F F9 [13:12:56]RasterBufferAndPrint [13:12:56]line Счет N : (1)2886008 [13:12:56]line ИНН: 02508201610067 [13:12:56]line Контрольно-Кассовый Чек [13:12:56]line ПРОДАЖА [13:12:56]line ТРК (МРК, ГНК) : 61 [13:12:56]line Товар: 2710194210 [13:12:56]line ДТ-К-5 [13:12:56]line 26.250 * 76.20 [13:12:56]line = 2000.25 [13:12:56]line НДС 12% НСП 1% [13:12:56]line > о реализуемом товаре [13:12:56]line ОКРУГЛЕНИЕ: -0.25 [13:12:56]line ИТОГО: 2000.00 [13:12:56]line Внесено: 2000.00 [13:12:56]line СДАЧА: 0.00 [13:12:56]line НСП 1% : 17.70 [13:12:56]line НДС 12% : 212.42 [13:12:56]line Наличными: 2000.00 [13:12:56]line Безнал.: 0.00 [13:12:56]line Место: АЗС № 85 "Партнер Нефть" [13:12:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:12:56]line СНО: Общий режим [13:12:56]line Чек 188 22.10.2024 13:13 [13:12:56]line Смена: 195 ФФД: 1.0 [13:12:56]line ЗНМ: 0300000167 [13:12:56]line РНМ: 0000000000156251 [13:12:56]line Версия ККМ: v1.0 [13:12:56]line ФМ: 0000000000963346 [13:12:56]line ФД: 70240 [13:12:57]line ФПД: 244609741643109 [13:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70240&fm=244609741643109&tin=02508201610067®Number=0000000000156251&sum=200000 [13:12:57]OFD Sender: Processing packet 70240 [packets to send 18, broken 17] [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00070240 [13:12:57]OFD Sender: To server: pG, [13:12:57]CommunicateWithHost lk.salyk.kg:30040 [13:12:57]ConnectInit lk.salyk.kg [13:12:57]written 0, free lines is 4095 [13:12:57]Connected sock=10 [13:12: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 34 36 0C 01 00 00 8E 91 04 01 10 99 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 BC 00 00 00 F4 03 04 00 DC A4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 12 01 00 35 04 06 00 DE 78 A4 C2 5D 65 A3 51 24 D7 5B 01 3E ED [13:12: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 34 36 4F 00 00 00 60 0B 47 00 7D 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 34 36 10 04 04 00 60 12 01 00 F4 03 04 00 7D 4E 17 67 B6 04 01 00 00 57 D5 B2 C8 1F ED 43 D6 [13:12:57]CommunicateWithHost err = 0 [13:12:57]CheckOFDResponse [13:12:57]1017 (14) - 77093643461234 [13:12:57]1041 (16) - 0000000000963346 [13:12:57]1040 (4) - 70240 [13:12:57]1012 (4) - 22.10.2024 07:04 [13:12:57]1206 (1) - 0 [13:12:57]OFD Sender: Remove packet 70240 [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00070240 [13:12:57]NVStorageDeleteData [13:12:57]Write to MH i2c: 01 00 00 A7 68 0F [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 A7 68 00 00 00 00 00 E4 0C 06 [13:12:57]RasterBufferAndPrint [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]written 0, free lines is 3306 [13:12:57]MH_Cut [13:12:57]Write to MH i2c: D1 01 00 AE 68 01 E8 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 AE 68 00 E7 [13:12:57]Write to MH i2c: 01 00 00 AF 68 17 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]OFD Sender: No OFD packet to send [13:12:58]*** Cut start [13:12:58]*** Partial cut [13:12:58]*** CUTSNS_PIN = 1 [13:12:58]*** CUTSNS_PIN = 0 [13:12:58]*** Brake cut motor [13:12:58]Read from MH i2c: 01 [13:12:58]MH_I2C_Read... [13:12:58]*** Stop cut motor [13:12:58]*** Cut end [13:12:58]Read from MH i2c: 01 07 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: 01 07 00 AF 68 00 00 00 00 00 FF 0F 2C [13:12:58]process_action close_receipt done [13:12:58]requested_data is exist [13:12:58]produce_requested_data [13:12:58]requested_item fm.sn is exist - process it [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 11 00 00 [13:12:58]Write to MH i2c: E2 08 00 B0 68 80 11 00 00 00 00 00 00 92 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 17 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 17 00 B0 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [13:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:12:58]wFMCommunicate OK [13:12:58]requested_item fd.num is exist - process it [13:12:58]SAM_PROTO_GetFieldsCounters [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 13 00 00 [13:12:58]Write to MH i2c: E2 08 00 B1 68 80 13 00 00 00 00 00 00 95 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 B1 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 12 01 00 0E 04 04 00 C3 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 1A [13:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 12 01 00 0E 04 04 00 C3 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 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetFieldsCounters done [13:12:59]requested_item shift.num is exist - process it [13:12:59]requested_item shift.opened is exist - process it [13:12:59]req_shift_opened [13:12:59]FM_GetShiftState [13:12:59]SAM_PROTO_GetShiftState [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 01 00 [13:12:59]Write to MH i2c: E2 08 00 B2 68 80 13 01 00 00 00 00 00 97 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 B2 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 85 [13:12:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetShiftState done [13:12:59]FM_GetShiftState done [13:12:59]req_shift_opened done [13:12:59]requested_item shift.open_date is exist - process it [13:12:59]req_shift_open_date [13:12:59]req_shift_open_date done [13:12:59]produce_requested_data done [13:12:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70240,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:12:59]process_action_free close_receipt [13:12:59]json_value_free [13:12:59]json_value_free done [13:12:59]process_json_proto returns [13:12:59]Send response to host [13:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70240,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:12:59]free response buf [13:12:59]execute_script done [13:12:59]execute_script returns [13:12:59]free content buf [13:12:59]Sock 9.Close socket [13:12:59]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [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:00]int [13:14:00]Write to MH i2c: 01 00 00 B3 68 1B [13:14:00]*** FLAG_PRN_PAP1 set [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B3 68 00 01 00 00 00 FF 0F 31 [13:14:00]state=0 [13:14:00]No paper [13:14:00]int [13:14:00]Write to MH i2c: 01 00 00 B4 68 1C [13:14:00]*** FLAG_PRN_PAP2 set [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B4 68 00 03 00 00 00 FF 0F 34 [13:14:00]state=0 [13:14:00]No paper [13:14:00]Cover opened [13:14:00]int [13:14:00]Write to MH i2c: 01 00 00 B5 68 1D [13:14:00]*** FLAG_PRN_PAP2 reset [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B5 68 00 01 00 00 00 FF 0F 33 [13:14:00]state=3 [13:14:00]No paper [13:14:00]Cover closed [13:14:00]int [13:14:00]Write to MH i2c: 01 00 00 B6 68 1E [13:14:00]*** FLAG_PRN_PAP2 set [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B6 68 00 03 00 00 00 FF 0F 36 [13:14:00]state=0 [13:14:00]No paper [13:14:00]Cover opened [13:14:00]int [13:14:00]Write to MH i2c: 01 00 00 B7 68 1F [13:14:00]*** FLAG_PRN_PAP2 reset [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B7 68 00 01 00 00 00 FF 0F 35 [13:14:00]state=3 [13:14:00]No paper [13:14:00]Cover closed [13:14:01]int [13:14:01]Write to MH i2c: 01 00 00 B8 68 20 [13:14:01]*** FLAG_PRN_PAP2 set [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 B8 68 00 03 00 00 00 FF 0F 38 [13:14:01]state=0 [13:14:01]No paper [13:14:01]Cover opened [13:14:02]OFD Sender: No OFD packet to send [13:14:06]Write to MH i2c: 01 00 00 B9 68 21 [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 B9 68 00 03 00 00 00 FF 0F 39 [13:14:06]state=3 [13:14:06]No paper [13:14:06]Cover opened [13:14:06]int [13:14:06]Write to MH i2c: 01 00 00 BA 68 22 [13:14:06]*** FLAG_PRN_PAP2 reset [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 BA 68 00 01 00 00 00 FF 0F 38 [13:14:06]state=3 [13:14:06]No paper [13:14:06]Cover closed [13:14:06]int [13:14:06]Write to MH i2c: 01 00 00 BB 68 23 [13:14:06]*** FLAG_PRN_PAP1 reset [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 BB 68 00 00 00 00 00 FF 0F 38 [13:14:06]state=0 [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:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:18:58]accept exits with 7 [13:18:58]New connection [13:18:58]New thread 3067170148 created [13:18:58]Thread 3067026788 joined [13:18:58]Waiting for new connection... [13:18:58] Sock 7.Parse request [13:18:58]Sock 7.Check first char [13:18:58]Sock 7.First char is OK [13:18:58]request: POST /json_proto HTTP/1.0 [13:18:58]Method: POST [13:18:58]URL: /json_proto [13:18:58]Method is POST - this is cgi request [13:18:58]url: /json_proto [13:18:58]query_string will be loaded in cgi processing [13:18:58]execute_cgi json_proto POST (null) [13:18:58]execute_cgi path=json_proto method=POST [13:18:58]POST find Content-Length [13:18:58]Host: 172.17.50.3:8080 [13:18:58]Content-Length: 686 [13:18:58]Content-Type: application/json [13:18:58] [13:18:58]POST finish read [13:18:58]Found Content-Length = 686 [13:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.280, "sum" : 1100.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:58]execute_script... [13:18: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)2886009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.280, "sum" : 1100.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:58]POST & json_proto [13:18:58]process_json_proto [13:18:58]json parsed OK: [13:18:58]protocol is kg_v1.0 [13:18:58]action value=close_receipt [13:18:58]process_action close_receipt [13:18:58]cmd_close_receipt [13:18:58]MH_GetDate [13:18:58]Write to MH i2c: F0 00 00 BC 68 13 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: F0 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: F0 09 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: F0 09 00 BC 68 00 48 A6 17 67 6B 98 1E 66 0F [13:18:58]GetLastDocTimeStamp 1729602780 [13:18:58]current date 1729603144 [13:18:58]FM_GetShiftState [13:18:58]SAM_PROTO_GetShiftState [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 13 01 00 [13:18:58]Write to MH i2c: E2 08 00 BD 68 80 13 01 00 00 00 00 00 A2 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:59]Read from MH i2c: E2 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 0E 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 0E 00 BD 68 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 90 [13:18:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:18:59]wFMCommunicate OK [13:18:59]SAM_PROTO_GetShiftState done [13:18:59]FM_GetShiftState done [13:18:59]opened in 1729555832 [13:18:59]opened+sec_in_day 1729642232 [13:18:59]quantity*price = 110009 [13:18:59]sum+1 = 110010 [13:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 189 22.10.2024 13:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70241 ФПД: 148693764918497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70241&fm=148693764918497&tin=02508201610067®Number=0000000000156251&sum=110000 [13:19:00]StoreToDocumentArchive [13:19:00]shift 195 fd 70241 [13:19:00]save to /storage/0195/doc_00070241 [13:19:00]save last doc name /storage/0195/doc_00070241 to /storage/kkm_last_doc_name [13:19:00]save OK [13:19:00]Clear old archive folders... [13:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:19:00]tlvbuf is 011F7620 [13:19:00]SAM_PROTO_ClearQueue [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 09 00 00 [13:19:00]Write to MH i2c: E2 08 00 CA 68 80 09 00 00 00 00 00 00 A4 [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 CA 68 00 90 00 A6 [13:19:00]RAPDU: 90 00 [13:19:00]wFMCommunicate OK [13:19:00]SAM_PROTO_ClearQueue done [13:19:00]KKMCreateOFDPacket [13:19:00]OFDProtocolAddRootSTLVToBuf [13:19:00]FM_MakeSignedData [13:19:00]FM_MakeSignedData [13:19:00]SAM_PROTO_SignData [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 0D 01 02 [13:19:00]Write to MH i2c: E2 08 00 CB 68 80 0D 01 02 00 00 00 00 AC [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 CB 68 00 90 00 A7 [13:19:00]RAPDU: 90 00 [13:19:00]wFMCommunicate OK [13:19:00]wFMCommunicate request_size=255 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 48 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 12 01 00 35 04 06 00 87 3C [13:19:00]Write to MH i2c: E2 02 01 CC 68 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 48 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 12 01 00 35 04 06 00 87 3C 00 00 6A [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 CC 68 00 90 00 A8 [13:19:00]RAPDU: 90 00 [13:19:00]wFMCommunicate OK [13:19:00]wFMCommunicate request_size=9 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 0D 02 02 04 77 09 CC E1 [13:19:00]Write to MH i2c: E2 0C 00 CD 68 80 0D 02 02 04 00 77 09 CC E1 00 00 E4 [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 03 00 CD 68 00 90 00 A9 [13:19:00]RAPDU: 90 00 [13:19:00]wFMCommunicate OK [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 0D 03 02 [13:19:00]Write to MH i2c: E2 08 00 CE 68 80 0D 03 02 00 00 00 00 B1 [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 0B 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 0B 00 CE 68 00 01 13 95 44 49 D8 A3 F9 90 00 5C [13:19:00]RAPDU: 01 13 95 44 49 D8 A3 F9 90 00 [13:19:00]wFMCommunicate OK [13:19:00]SAM_PROTO_SignData done [13:19:00]FM_MakeSignedData done [13:19:00]CreateOFDProtocolMessage [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 11 00 00 [13:19:00]Write to MH i2c: E2 08 00 CF 68 80 11 00 00 00 00 00 00 B1 [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 CF 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [13:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:19:00]wFMCommunicate OK [13:19:00]CreateOFDProtocolMessage done [13:19:00]OFDSenderStorePacket 70241 [13:19:00]StoreOFDPacket docnum=70241 [13:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 3F 33 06 01 62 23 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 48 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 12 01 00 35 04 06 00 87 3C 77 09 CC E1 01 13 95 44 49 D8 A3 F9 [13:19:00]CheckFolder [13:19:00]dirname=/storage/ofd_packets [13:19:00]CheckFolder done [13:19:00]ProducePacketName [13:19:00]name=ofd_packets/00070241 [13:19:00]NVStorageSaveData ofd_packets/00070241 [13:19:00]File name is /storage/ofd_packets/00070241 [13:19:00]Write 300 bytes [13:19:00]NVStorageSaveData done [13:19:00]OFDSenderStorePacket done [13:19:00]KKMCreateOFDPacket done [13:19:00]NVStorageSaveData kkm_last_timestamp [13:19:00]File name is /storage/kkm_last_timestamp [13:19:00]Write 4 bytes [13:19:00]NVStorageSaveData done [13:19:00]ExternCall_PrintAddStr [13:19:00]wPrintStart [13:19:00]Write to MH i2c: 01 00 00 D0 68 38 [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: 01 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: 01 07 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: 01 07 00 D0 68 00 00 00 00 00 FF 0F 4D [13:19:00]RasterBufferAndPrint [13:19:00]line Счет N : (1)2886009 [13:19:00]line ИНН: 02508201610067 [13:19:00]line Контрольно-Кассовый Чек [13:19:00]line ПРОДАЖА [13:19:00]line ТРК (МРК, ГНК) : 71 [13:19:00]line Товар: 2711129700 [13:19:00]line ГАЗ-К-3 [13:19:00]line 28.280 * 38.90 [13:19:00]line = 1100.09 [13:19:00]line НДС 12% НСП 1% [13:19:00]line > о реализуемом товаре [13:19:00]line ОКРУГЛЕНИЕ: -0.09 [13:19:00]line ИТОГО: 1100.00 [13:19:00]line Внесено: 1100.00 [13:19:00]line СДАЧА: 0.00 [13:19:00]line НСП 1% : 9.73 [13:19:00]line НДС 12% : 116.82 [13:19:00]line Наличными: 1100.00 [13:19:00]line Безнал.: 0.00 [13:19:00]line Место: АЗС № 85 "Партнер Нефть" [13:19:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:19:00]line СНО: Общий режим [13:19:00]line Чек 189 22.10.2024 13:19 [13:19:00]line Смена: 195 ФФД: 1.0 [13:19:00]line ЗНМ: 0300000167 [13:19:00]line РНМ: 0000000000156251 [13:19:00]line Версия ККМ: v1.0 [13:19:00]line ФМ: 0000000000963346 [13:19:00]line ФД: 70241 [13:19:00]line ФПД: 148693764918497 [13:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70241&fm=148693764918497&tin=02508201610067®Number=0000000000156251&sum=110000 [13:19:00]OFD Sender: Processing packet 70241 [packets to send 18, broken 17] [13:19:00]ProducePacketName [13:19:00]name=ofd_packets/00070241 [13:19:00]OFD Sender: To server: pG, [13:19:00]CommunicateWithHost lk.salyk.kg:30040 [13:19:00]ConnectInit lk.salyk.kg [13:19:00]written 0, free lines is 4095 [13:19:01]Connected sock=10 [13:19: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 34 36 0E 01 00 00 3F 33 06 01 62 23 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 48 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 12 01 00 35 04 06 00 87 3C 77 09 CC E1 01 13 95 44 49 D8 A3 F9 [13:19: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 34 36 4F 00 00 00 F7 03 47 00 9A 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 34 36 10 04 04 00 61 12 01 00 F4 03 04 00 E9 4F 17 67 B6 04 01 00 00 3E CF 9E 46 DD B4 1A 2C [13:19:01]CommunicateWithHost err = 0 [13:19:01]CheckOFDResponse [13:19:01]1017 (14) - 77093643461234 [13:19:01]1041 (16) - 0000000000963346 [13:19:01]1040 (4) - 70241 [13:19:01]1012 (4) - 22.10.2024 07:10 [13:19:01]1206 (1) - 0 [13:19:01]OFD Sender: Remove packet 70241 [13:19:01]ProducePacketName [13:19:01]name=ofd_packets/00070241 [13:19:01]NVStorageDeleteData [13:19:01]Write to MH i2c: 01 00 00 FB 68 63 [13:19:01]Write i2c OK [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: 01 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: 01 07 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: 01 07 00 FB 68 00 00 00 00 00 E6 0C 5C [13:19:01]RasterBufferAndPrint [13:19:01]line [13:19:01]line [13:19:01]line [13:19:01]line [13:19:01]line [13:19:01]written 0, free lines is 3308 [13:19:01]MH_Cut [13:19:01]Write to MH i2c: D1 01 00 02 69 01 3D [13:19:01]Write i2c OK [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: D1 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: D1 01 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: D1 01 00 02 69 00 3C [13:19:01]Write to MH i2c: 01 00 00 03 69 6C [13:19:01]Write i2c OK [13:19:01]MH_I2C_Read... [13:19:01]OFD Sender: No OFD packet to send [13:19:02]*** Cut start [13:19:02]*** Partial cut [13:19:02]*** CUTSNS_PIN = 1 [13:19:02]*** CUTSNS_PIN = 0 [13:19:02]*** Brake cut motor [13:19:02]Read from MH i2c: 01 [13:19:02]MH_I2C_Read... [13:19:02]*** Stop cut motor [13:19:02]*** Cut end [13:19:02]Read from MH i2c: 01 07 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: 01 07 00 03 69 00 00 00 00 00 FF 0F 81 [13:19:02]process_action close_receipt done [13:19:02]requested_data is exist [13:19:02]produce_requested_data [13:19:02]requested_item fm.sn is exist - process it [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 11 00 00 [13:19:02]Write to MH i2c: E2 08 00 04 69 80 11 00 00 00 00 00 00 E7 [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:02]Read from MH i2c: E2 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 17 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 17 00 04 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [13:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:19:02]wFMCommunicate OK [13:19:02]requested_item fd.num is exist - process it [13:19:02]SAM_PROTO_GetFieldsCounters [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 13 00 00 [13:19:02]Write to MH i2c: E2 08 00 05 69 80 13 00 00 00 00 00 00 EA [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:02]Read from MH i2c: E2 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 62 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 62 00 05 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 12 01 00 0E 04 04 00 C3 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 73 [13:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 12 01 00 0E 04 04 00 C3 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 [13:19:02]wFMCommunicate OK [13:19:02]SAM_PROTO_GetFieldsCounters done [13:19:02]requested_item shift.num is exist - process it [13:19:02]requested_item shift.opened is exist - process it [13:19:02]req_shift_opened [13:19:02]FM_GetShiftState [13:19:02]SAM_PROTO_GetShiftState [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 13 01 00 [13:19:02]Write to MH i2c: E2 08 00 06 69 80 13 01 00 00 00 00 00 EC [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 06 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DA [13:19:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_GetShiftState done [13:19:03]FM_GetShiftState done [13:19:03]req_shift_opened done [13:19:03]requested_item shift.open_date is exist - process it [13:19:03]req_shift_open_date [13:19:03]req_shift_open_date done [13:19:03]produce_requested_data done [13:19:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70241,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:19:03]process_action_free close_receipt [13:19:03]json_value_free [13:19:03]json_value_free done [13:19:03]process_json_proto returns [13:19:03]Send response to host [13:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70241,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:19:03]free response buf [13:19:03]execute_script done [13:19:03]execute_script returns [13:19:03]free content buf [13:19:03]Sock 7.Close socket [13:19:03]Sock 7.Thread stoped [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:10]accept exits with 9 [13:20:10]New connection [13:20:10]New thread 3067026788 created [13:20:10]Thread 3067170148 joined [13:20:10]Waiting for new connection... [13:20:10] Sock 9.Parse request [13:20:10]Sock 9.Check first char [13:20:10]Sock 9.First char is OK [13:20:10]request: POST /json_proto HTTP/1.0 [13:20:10]Method: POST [13:20:10]URL: /json_proto [13:20:10]Method is POST - this is cgi request [13:20:10]url: /json_proto [13:20:10]query_string will be loaded in cgi processing [13:20:10]execute_cgi json_proto POST (null) [13:20:10]execute_cgi path=json_proto method=POST [13:20:10]POST find Content-Length [13:20:10]Host: 172.17.50.3:8080 [13:20:10]Content-Length: 680 [13:20:10]Content-Type: application/json [13:20:10] [13:20:10]POST finish read [13:20:10]Found Content-Length = 680 [13:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [13:20:10]execute_script... [13:20: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)2886010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [13:20:10]POST & json_proto [13:20:10]process_json_proto [13:20:10]json parsed OK: [13:20:10]protocol is kg_v1.0 [13:20:10]action value=close_receipt [13:20:10]process_action close_receipt [13:20:10]cmd_close_receipt [13:20:10]MH_GetDate [13:20:10]Write to MH i2c: F0 00 00 07 69 5F [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 07 69 00 90 A6 17 67 6B 98 1E 66 A3 [13:20:10]GetLastDocTimeStamp 1729603144 [13:20:10]current date 1729603216 [13:20:10]FM_GetShiftState [13:20:10]SAM_PROTO_GetShiftState [13:20:10]wFMCommunicate request_size=4 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 13 01 00 [13:20:10]Write to MH i2c: E2 08 00 08 69 80 13 01 00 00 00 00 00 EE [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0E 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0E 00 08 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DC [13:20:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_GetShiftState done [13:20:11]FM_GetShiftState done [13:20:11]opened in 1729555832 [13:20:11]opened+sec_in_day 1729642232 [13:20:11]quantity*price = 200025 [13:20:11]sum+1 = 200026 [13:20:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 190 22.10.2024 13:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70242 ФПД: 270090957953169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70242&fm=270090957953169&tin=02508201610067®Number=0000000000156251&sum=200000 [13:20:12]StoreToDocumentArchive [13:20:12]shift 195 fd 70242 [13:20:12]save to /storage/0195/doc_00070242 [13:20:12]save last doc name /storage/0195/doc_00070242 to /storage/kkm_last_doc_name [13:20:12]save OK [13:20:12]Clear old archive folders... [13:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:12]tlvbuf is 0125A880 [13:20:12]SAM_PROTO_ClearQueue [13:20:12]wFMCommunicate request_size=4 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 09 00 00 [13:20:12]Write to MH i2c: E2 08 00 15 69 80 09 00 00 00 00 00 00 F0 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 15 69 00 90 00 F2 [13:20:12]RAPDU: 90 00 [13:20:12]wFMCommunicate OK [13:20:12]SAM_PROTO_ClearQueue done [13:20:12]KKMCreateOFDPacket [13:20:12]OFDProtocolAddRootSTLVToBuf [13:20:12]FM_MakeSignedData [13:20:12]FM_MakeSignedData [13:20:12]SAM_PROTO_SignData [13:20:12]wFMCommunicate request_size=4 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 0D 01 02 [13:20:12]Write to MH i2c: E2 08 00 16 69 80 0D 01 02 00 00 00 00 F8 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 16 69 00 90 00 F3 [13:20:12]RAPDU: 90 00 [13:20:12]wFMCommunicate OK [13:20:12]wFMCommunicate request_size=255 [13:20:12]MH_SAM_APDU [13:20: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 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 BE 00 00 00 F4 03 04 00 90 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 12 01 00 35 04 06 00 F5 A5 73 9B [13:20:12]Write to MH i2c: E2 02 01 17 69 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 BE 00 00 00 F4 03 04 00 90 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 12 01 00 35 04 06 00 F5 A5 73 9B 00 00 B7 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 17 69 00 90 00 F4 [13:20:12]RAPDU: 90 00 [13:20:12]wFMCommunicate OK [13:20:12]wFMCommunicate request_size=7 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 0D 02 02 02 18 91 [13:20:12]Write to MH i2c: E2 0A 00 18 69 80 0D 02 02 02 00 18 91 00 00 A8 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 03 00 18 69 00 90 00 F5 [13:20:12]RAPDU: 90 00 [13:20:12]wFMCommunicate OK [13:20:12]wFMCommunicate request_size=4 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 0D 03 02 [13:20:12]Write to MH i2c: E2 08 00 19 69 80 0D 03 02 00 00 00 00 FD [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 0B 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 0B 00 19 69 00 11 27 A4 D8 58 26 57 AD 90 00 34 [13:20:12]RAPDU: 11 27 A4 D8 58 26 57 AD 90 00 [13:20:12]wFMCommunicate OK [13:20:12]SAM_PROTO_SignData done [13:20:12]FM_MakeSignedData done [13:20:12]CreateOFDProtocolMessage [13:20:12]wFMCommunicate request_size=4 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 11 00 00 [13:20:12]Write to MH i2c: E2 08 00 1A 69 80 11 00 00 00 00 00 00 FD [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 17 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 17 00 1A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [13:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:20:12]wFMCommunicate OK [13:20:12]CreateOFDProtocolMessage done [13:20:12]OFDSenderStorePacket 70242 [13:20:12]StoreOFDPacket docnum=70242 [13:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7F C9 04 01 AA 82 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 BE 00 00 00 F4 03 04 00 90 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 12 01 00 35 04 06 00 F5 A5 73 9B 18 91 11 27 A4 D8 58 26 57 AD [13:20:12]CheckFolder [13:20:12]dirname=/storage/ofd_packets [13:20:12]CheckFolder done [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00070242 [13:20:12]NVStorageSaveData ofd_packets/00070242 [13:20:12]File name is /storage/ofd_packets/00070242 [13:20:12]Write 298 bytes [13:20:12]NVStorageSaveData done [13:20:12]OFDSenderStorePacket done [13:20:12]KKMCreateOFDPacket done [13:20:12]NVStorageSaveData kkm_last_timestamp [13:20:12]File name is /storage/kkm_last_timestamp [13:20:12]Write 4 bytes [13:20:12]NVStorageSaveData done [13:20:12]ExternCall_PrintAddStr [13:20:12]wPrintStart [13:20:12]Write to MH i2c: 01 00 00 1B 69 84 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 1B 69 00 00 00 00 00 FF 0F 99 [13:20:12]RasterBufferAndPrint [13:20:12]line Счет N : (1)2886010 [13:20:12]line ИНН: 02508201610067 [13:20:12]line Контрольно-Кассовый Чек [13:20:12]line ПРОДАЖА [13:20:12]line ТРК (МРК, ГНК) : 61 [13:20:12]line Товар: 2710194210 [13:20:12]line ДТ-К-5 [13:20:12]line 26.250 * 76.20 [13:20:12]line = 2000.25 [13:20:12]line НДС 12% НСП 1% [13:20:12]line > о реализуемом товаре [13:20:12]line ОКРУГЛЕНИЕ: -0.25 [13:20:12]line ИТОГО: 2000.00 [13:20:12]line Внесено: 2000.00 [13:20:12]line СДАЧА: 0.00 [13:20:12]line НСП 1% : 17.70 [13:20:12]line НДС 12% : 212.42 [13:20:12]line Наличными: 2000.00 [13:20:12]line Безнал.: 0.00 [13:20:12]line Место: АЗС № 85 "Партнер Нефть" [13:20:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:20:12]line СНО: Общий режим [13:20:12]line Чек 190 22.10.2024 13:20 [13:20:12]line Смена: 195 ФФД: 1.0 [13:20:12]line ЗНМ: 0300000167 [13:20:12]line РНМ: 0000000000156251 [13:20:12]line Версия ККМ: v1.0 [13:20:12]line ФМ: 0000000000963346 [13:20:12]line ФД: 70242 [13:20:12]line ФПД: 270090957953169 [13:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70242&fm=270090957953169&tin=02508201610067®Number=0000000000156251&sum=200000 [13:20:12]OFD Sender: Processing packet 70242 [packets to send 18, broken 17] [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00070242 [13:20:12]OFD Sender: To server: pG, [13:20:12]CommunicateWithHost lk.salyk.kg:30040 [13:20:12]ConnectInit lk.salyk.kg [13:20:12]written 0, free lines is 4095 [13:20:13]Connected sock=10 [13: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 34 36 0C 01 00 00 7F C9 04 01 AA 82 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 BE 00 00 00 F4 03 04 00 90 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 12 01 00 35 04 06 00 F5 A5 73 9B 18 91 11 27 A4 D8 58 26 57 AD [13: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 34 36 4F 00 00 00 B9 FF 47 00 59 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 34 36 10 04 04 00 62 12 01 00 F4 03 04 00 31 50 17 67 B6 04 01 00 00 DC 44 D4 FB 66 D9 0D 9A [13:20:13]CommunicateWithHost err = 0 [13:20:13]CheckOFDResponse [13:20:13]1017 (14) - 77093643461234 [13:20:13]1041 (16) - 0000000000963346 [13:20:13]1040 (4) - 70242 [13:20:13]1012 (4) - 22.10.2024 07:11 [13:20:13]1206 (1) - 0 [13:20:13]OFD Sender: Remove packet 70242 [13:20:13]ProducePacketName [13:20:13]name=ofd_packets/00070242 [13:20:13]NVStorageDeleteData [13:20:13]Write to MH i2c: 01 00 00 46 69 AF [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: 01 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: 01 07 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: 01 07 00 46 69 00 00 00 00 00 F2 0C B4 [13:20:13]RasterBufferAndPrint [13:20:13]line [13:20:13]line [13:20:13]line [13:20:13]line [13:20:13]line [13:20:13]written 0, free lines is 3320 [13:20:13]MH_Cut [13:20:13]Write to MH i2c: D1 01 00 4D 69 01 88 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: D1 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: D1 01 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: D1 01 00 4D 69 00 87 [13:20:13]Write to MH i2c: 01 00 00 4E 69 B7 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]OFD Sender: No OFD packet to send [13:20:14]*** Cut start [13:20:14]*** Partial cut [13:20:14]*** CUTSNS_PIN = 1 [13:20:14]*** CUTSNS_PIN = 0 [13:20:14]*** Brake cut motor [13:20:14]Read from MH i2c: 01 [13:20:14]MH_I2C_Read... [13:20:14]*** Stop cut motor [13:20:14]*** Cut end [13:20:14]Read from MH i2c: 01 07 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: 01 07 00 4E 69 00 00 00 00 00 FF 0F CC [13:20:14]process_action close_receipt done [13:20:14]requested_data is exist [13:20:14]produce_requested_data [13:20:14]requested_item fm.sn is exist - process it [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 11 00 00 [13:20:14]Write to MH i2c: E2 08 00 4F 69 80 11 00 00 00 00 00 00 32 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 4F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [13:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:20:14]wFMCommunicate OK [13:20:14]requested_item fd.num is exist - process it [13:20:14]SAM_PROTO_GetFieldsCounters [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 13 00 00 [13:20:14]Write to MH i2c: E2 08 00 50 69 80 13 00 00 00 00 00 00 35 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 62 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 62 00 50 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 12 01 00 0E 04 04 00 C3 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 C2 [13:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 12 01 00 0E 04 04 00 C3 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 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_GetFieldsCounters done [13:20:14]requested_item shift.num is exist - process it [13:20:14]requested_item shift.opened is exist - process it [13:20:14]req_shift_opened [13:20:14]FM_GetShiftState [13:20:14]SAM_PROTO_GetShiftState [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 13 01 00 [13:20:14]Write to MH i2c: E2 08 00 51 69 80 13 01 00 00 00 00 00 37 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:15]Read from MH i2c: E2 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 51 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 25 [13:20:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:20:15]wFMCommunicate OK [13:20:15]SAM_PROTO_GetShiftState done [13:20:15]FM_GetShiftState done [13:20:15]req_shift_opened done [13:20:15]requested_item shift.open_date is exist - process it [13:20:15]req_shift_open_date [13:20:15]req_shift_open_date done [13:20:15]produce_requested_data done [13:20:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70242,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:20:15]process_action_free close_receipt [13:20:15]json_value_free [13:20:15]json_value_free done [13:20:15]process_json_proto returns [13:20:15]Send response to host [13:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70242,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:20:15]free response buf [13:20:15]execute_script done [13:20:15]execute_script returns [13:20:15]free content buf [13:20:15]Sock 9.Close socket [13:20:15]Sock 9.Thread stoped [13:20:18]OFD Sender: No OFD packet to send [13:20:19]accept exits with 7 [13:20:19]New connection [13:20:19]New thread 3067170148 created [13:20:19]Thread 3067026788 joined [13:20:19]Waiting for new connection... [13:20:19] Sock 7.Parse request [13:20:19]Sock 7.Check first char [13:20:19]Sock 7.First char is OK [13:20:19]request: POST /json_proto HTTP/1.0 [13:20:19]Method: POST [13:20:19]URL: /json_proto [13:20:19]Method is POST - this is cgi request [13:20:19]url: /json_proto [13:20:19]query_string will be loaded in cgi processing [13:20:19]execute_cgi json_proto POST (null) [13:20:19]execute_cgi path=json_proto method=POST [13:20:19]POST find Content-Length [13:20:19]Host: 172.17.50.3:8080 [13:20:19]Content-Length: 689 [13:20:19]Content-Type: application/json [13:20:19] [13:20:19]POST finish read [13:20:19]Found Content-Length = 689 [13:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:20:19]execute_script... [13:20: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)2886011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:20:19]POST & json_proto [13:20:19]process_json_proto [13:20:19]json parsed OK: [13:20:19]protocol is kg_v1.0 [13:20:19]action value=close_receipt [13:20:19]process_action close_receipt [13:20:19]cmd_close_receipt [13:20:19]MH_GetDate [13:20:19]Write to MH i2c: F0 00 00 52 69 AA [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: F0 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: F0 09 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: F0 09 00 52 69 00 99 A6 17 67 6B 98 1E 66 F7 [13:20:19]GetLastDocTimeStamp 1729603216 [13:20:19]current date 1729603225 [13:20:19]FM_GetShiftState [13:20:19]SAM_PROTO_GetShiftState [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 13 01 00 [13:20:19]Write to MH i2c: E2 08 00 53 69 80 13 01 00 00 00 00 00 39 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0E 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0E 00 53 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 27 [13:20:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_GetShiftState done [13:20:19]FM_GetShiftState done [13:20:19]opened in 1729555832 [13:20:19]opened+sec_in_day 1729642232 [13:20:19]quantity*price = 100051 [13:20:19]sum+1 = 100052 [13:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 191 22.10.2024 13:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70243 ФПД: 146488084748516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132025&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70243&fm=146488084748516&tin=02508201610067®Number=0000000000156251&sum=100000 [13:20:20]StoreToDocumentArchive [13:20:20]shift 195 fd 70243 [13:20:20]save to /storage/0195/doc_00070243 [13:20:20]save last doc name /storage/0195/doc_00070243 to /storage/kkm_last_doc_name [13:20:20]save OK [13:20:20]Clear old archive folders... [13:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:20:20]tlvbuf is 0123CF30 [13:20:20]SAM_PROTO_ClearQueue [13:20:20]wFMCommunicate request_size=4 [13:20:20]MH_SAM_APDU [13:20:20]CAPDU: 80 09 00 00 [13:20:20]Write to MH i2c: E2 08 00 60 69 80 09 00 00 00 00 00 00 3B [13:20:20]Write i2c OK [13:20:20]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 60 69 00 90 00 3D [13:20:21]RAPDU: 90 00 [13:20:21]wFMCommunicate OK [13:20:21]SAM_PROTO_ClearQueue done [13:20:21]KKMCreateOFDPacket [13:20:21]OFDProtocolAddRootSTLVToBuf [13:20:21]FM_MakeSignedData [13:20:21]FM_MakeSignedData [13:20:21]SAM_PROTO_SignData [13:20:21]wFMCommunicate request_size=4 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 0D 01 02 [13:20:21]Write to MH i2c: E2 08 00 61 69 80 0D 01 02 00 00 00 00 43 [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 61 69 00 90 00 3E [13:20:21]RAPDU: 90 00 [13:20:21]wFMCommunicate OK [13:20:21]wFMCommunicate request_size=255 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BF 00 00 00 F4 03 04 00 99 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 12 01 [13:20:21]Write to MH i2c: E2 02 01 62 69 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BF 00 00 00 F4 03 04 00 99 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 12 01 00 00 4A [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 62 69 00 90 00 3F [13:20:21]RAPDU: 90 00 [13:20:21]wFMCommunicate OK [13:20:21]wFMCommunicate request_size=16 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 3A EA 41 58 E4 [13:20:21]Write to MH i2c: E2 13 00 63 69 80 0D 02 02 0B 00 00 35 04 06 00 85 3A EA 41 58 E4 00 00 C1 [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 03 00 63 69 00 90 00 40 [13:20:21]RAPDU: 90 00 [13:20:21]wFMCommunicate OK [13:20:21]wFMCommunicate request_size=4 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 0D 03 02 [13:20:21]Write to MH i2c: E2 08 00 64 69 80 0D 03 02 00 00 00 00 48 [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 0B 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 0B 00 64 69 00 79 B5 99 CA ED A6 60 37 90 00 04 [13:20:21]RAPDU: 79 B5 99 CA ED A6 60 37 90 00 [13:20:21]wFMCommunicate OK [13:20:21]SAM_PROTO_SignData done [13:20:21]FM_MakeSignedData done [13:20:21]CreateOFDProtocolMessage [13:20:21]wFMCommunicate request_size=4 [13:20:21]MH_SAM_APDU [13:20:21]CAPDU: 80 11 00 00 [13:20:21]Write to MH i2c: E2 08 00 65 69 80 11 00 00 00 00 00 00 48 [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 [13:20:21]MH_I2C_Read... [13:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:21]Read from MH i2c: E2 17 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: E2 17 00 65 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [13:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:20:21]wFMCommunicate OK [13:20:21]CreateOFDProtocolMessage done [13:20:21]OFDSenderStorePacket 70243 [13:20:21]StoreOFDPacket docnum=70243 [13:20:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 50 BD 0D 01 B9 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BF 00 00 00 F4 03 04 00 99 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 12 01 00 35 04 06 00 85 3A EA 41 58 E4 79 B5 99 CA ED A6 60 37 [13:20:21]CheckFolder [13:20:21]dirname=/storage/ofd_packets [13:20:21]CheckFolder done [13:20:21]ProducePacketName [13:20:21]name=ofd_packets/00070243 [13:20:21]NVStorageSaveData ofd_packets/00070243 [13:20:21]File name is /storage/ofd_packets/00070243 [13:20:21]Write 307 bytes [13:20:21]NVStorageSaveData done [13:20:21]OFDSenderStorePacket done [13:20:21]KKMCreateOFDPacket done [13:20:21]NVStorageSaveData kkm_last_timestamp [13:20:21]File name is /storage/kkm_last_timestamp [13:20:21]Write 4 bytes [13:20:21]NVStorageSaveData done [13:20:21]ExternCall_PrintAddStr [13:20:21]wPrintStart [13:20:21]Write to MH i2c: 01 00 00 66 69 CF [13:20:21]Write i2c OK [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: 01 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: 01 07 00 [13:20:21]MH_I2C_Read... [13:20:21]Read from MH i2c: 01 07 00 66 69 00 00 00 00 00 FF 0F E4 [13:20:21]RasterBufferAndPrint [13:20:21]line Счет N : (1)2886011 [13:20:21]line ИНН: 02508201610067 [13:20:21]line Контрольно-Кассовый Чек [13:20:21]line ПРОДАЖА [13:20:21]line ТРК (МРК, ГНК) : 41 [13:20:21]line Товар: 2710194240 [13:20:21]line D-ENERGY Дт-К-2 [13:20:21]line 12.960 * 77.20 [13:20:21]line = 1000.51 [13:20:21]line НДС 12% НСП 1% [13:20:21]line > о реализуемом товаре [13:20:21]line ОКРУГЛЕНИЕ: -0.51 [13:20:21]line ИТОГО: 1000.00 [13:20:21]line Внесено: 1000.00 [13:20:21]line СДАЧА: 0.00 [13:20:21]line НСП 1% : 8.85 [13:20:21]line НДС 12% : 106.25 [13:20:21]line Наличными: 1000.00 [13:20:21]line Безнал.: 0.00 [13:20:21]line Место: АЗС № 85 "Партнер Нефть" [13:20:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:20:21]line СНО: Общий режим [13:20:21]line Чек 191 22.10.2024 13:20 [13:20:21]line Смена: 195 ФФД: 1.0 [13:20:21]line ЗНМ: 0300000167 [13:20:21]line РНМ: 0000000000156251 [13:20:21]line Версия ККМ: v1.0 [13:20:21]line ФМ: 0000000000963346 [13:20:21]line ФД: 70243 [13:20:21]line ФПД: 146488084748516 [13:20:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132025&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70243&fm=146488084748516&tin=02508201610067®Number=0000000000156251&sum=100000 [13:20:21]OFD Sender: Processing packet 70243 [packets to send 18, broken 17] [13:20:21]ProducePacketName [13:20:21]name=ofd_packets/00070243 [13:20:21]OFD Sender: To server: pG, [13:20:21]CommunicateWithHost lk.salyk.kg:30040 [13:20:21]ConnectInit lk.salyk.kg [13:20:21]written 0, free lines is 4095 [13:20:21]Connected sock=10 [13:20: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 34 36 15 01 00 00 50 BD 0D 01 B9 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BF 00 00 00 F4 03 04 00 99 A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 12 01 00 35 04 06 00 85 3A EA 41 58 E4 79 B5 99 CA ED A6 60 37 [13:20: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 34 36 4F 00 00 00 53 97 47 00 BB 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 34 36 10 04 04 00 63 12 01 00 F4 03 04 00 39 50 17 67 B6 04 01 00 00 30 7B 94 38 A0 7B 3F 74 [13:20:21]CommunicateWithHost err = 0 [13:20:21]CheckOFDResponse [13:20:21]1017 (14) - 77093643461234 [13:20:21]1041 (16) - 0000000000963346 [13:20:21]1040 (4) - 70243 [13:20:21]1012 (4) - 22.10.2024 07:11 [13:20:21]1206 (1) - 0 [13:20:21]OFD Sender: Remove packet 70243 [13:20:21]ProducePacketName [13:20:21]name=ofd_packets/00070243 [13:20:21]NVStorageDeleteData [13:20:22]Write to MH i2c: 01 00 00 91 69 FA [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 07 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 07 00 91 69 00 00 00 00 00 F1 0C FE [13:20:22]RasterBufferAndPrint [13:20:22]line [13:20:22]line [13:20:22]line [13:20:22]line [13:20:22]line [13:20:22]written 0, free lines is 3325 [13:20:22]MH_Cut [13:20:22]Write to MH i2c: D1 01 00 98 69 01 D3 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: D1 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: D1 01 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: D1 01 00 98 69 00 D2 [13:20:22]Write to MH i2c: 01 00 00 99 69 02 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]OFD Sender: No OFD packet to send [13:20:22]*** Cut start [13:20:22]*** Partial cut [13:20:22]*** CUTSNS_PIN = 1 [13:20:22]*** CUTSNS_PIN = 0 [13:20:22]*** Brake cut motor [13:20:23]Read from MH i2c: 01 [13:20:23]MH_I2C_Read... [13:20:23]*** Stop cut motor [13:20:23]*** Cut end [13:20:23]Read from MH i2c: 01 07 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: 01 07 00 99 69 00 00 00 00 00 FF 0F 17 [13:20:23]process_action close_receipt done [13:20:23]requested_data is exist [13:20:23]produce_requested_data [13:20:23]requested_item fm.sn is exist - process it [13:20:23]wFMCommunicate request_size=4 [13:20:23]MH_SAM_APDU [13:20:23]CAPDU: 80 11 00 00 [13:20:23]Write to MH i2c: E2 08 00 9A 69 80 11 00 00 00 00 00 00 7D [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:23]Read from MH i2c: E2 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 17 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 17 00 9A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [13:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:20:23]wFMCommunicate OK [13:20:23]requested_item fd.num is exist - process it [13:20:23]SAM_PROTO_GetFieldsCounters [13:20:23]wFMCommunicate request_size=4 [13:20:23]MH_SAM_APDU [13:20:23]CAPDU: 80 13 00 00 [13:20:23]Write to MH i2c: E2 08 00 9B 69 80 13 00 00 00 00 00 00 80 [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:23]Read from MH i2c: E2 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 62 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 62 00 9B 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 12 01 00 0E 04 04 00 C3 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 11 [13:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 12 01 00 0E 04 04 00 C3 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 [13:20:23]wFMCommunicate OK [13:20:23]SAM_PROTO_GetFieldsCounters done [13:20:23]requested_item shift.num is exist - process it [13:20:23]requested_item shift.opened is exist - process it [13:20:23]req_shift_opened [13:20:23]FM_GetShiftState [13:20:23]SAM_PROTO_GetShiftState [13:20:23]wFMCommunicate request_size=4 [13:20:23]MH_SAM_APDU [13:20:23]CAPDU: 80 13 01 00 [13:20:23]Write to MH i2c: E2 08 00 9C 69 80 13 01 00 00 00 00 00 82 [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:23]Read from MH i2c: E2 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 0E 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 0E 00 9C 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 70 [13:20:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:20:23]wFMCommunicate OK [13:20:23]SAM_PROTO_GetShiftState done [13:20:23]FM_GetShiftState done [13:20:23]req_shift_opened done [13:20:23]requested_item shift.open_date is exist - process it [13:20:23]req_shift_open_date [13:20:23]req_shift_open_date done [13:20:23]produce_requested_data done [13:20:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70243,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:20:23]process_action_free close_receipt [13:20:23]json_value_free [13:20:23]json_value_free done [13:20:23]process_json_proto returns [13:20:23]Send response to host [13:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70243,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:20:23]free response buf [13:20:23]execute_script done [13:20:23]execute_script returns [13:20:23]free content buf [13:20:23]Sock 7.Close socket [13:20:23]Sock 7.Thread stoped [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:00]accept exits with 9 [13:22:00]New connection [13:22:00]New thread 3067026788 created [13:22:00]Thread 3067170148 joined [13:22:00]Waiting for new connection... [13:22:00] Sock 9.Parse request [13:22:00]Sock 9.Check first char [13:22:00]Sock 9.First char is OK [13:22:00]request: POST /json_proto HTTP/1.0 [13:22:00]Method: POST [13:22:00]URL: /json_proto [13:22:00]Method is POST - this is cgi request [13:22:00]url: /json_proto [13:22:00]query_string will be loaded in cgi processing [13:22:00]execute_cgi json_proto POST (null) [13:22:00]execute_cgi path=json_proto method=POST [13:22:00]POST find Content-Length [13:22:00]Host: 172.17.50.3:8080 [13:22:00]Content-Length: 678 [13:22:00]Content-Type: application/json [13:22:00] [13:22:00]POST finish read [13:22:00]Found Content-Length = 678 [13:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:22:00]execute_script... [13:22: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)2886012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:22:00]POST & json_proto [13:22:00]process_json_proto [13:22:00]json parsed OK: [13:22:00]protocol is kg_v1.0 [13:22:00]action value=close_receipt [13:22:00]process_action close_receipt [13:22:00]cmd_close_receipt [13:22:00]MH_GetDate [13:22:00]Write to MH i2c: F0 00 00 9D 69 F5 [13:22:00]Write i2c OK [13:22:00]MH_I2C_Read... [13:22:00]Read from MH i2c: F0 [13:22:00]MH_I2C_Read... [13:22:00]Read from MH i2c: F0 09 00 [13:22:00]MH_I2C_Read... [13:22:00]Read from MH i2c: F0 09 00 9D 69 00 FD A6 17 67 6B 98 1E 66 A6 [13:22:00]GetLastDocTimeStamp 1729603225 [13:22:00]current date 1729603325 [13:22:00]FM_GetShiftState [13:22:00]SAM_PROTO_GetShiftState [13:22:00]wFMCommunicate request_size=4 [13:22:00]MH_SAM_APDU [13:22:00]CAPDU: 80 13 01 00 [13:22:00]Write to MH i2c: E2 08 00 9E 69 80 13 01 00 00 00 00 00 84 [13:22:00]Write i2c OK [13:22:00]MH_I2C_Read... [13:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:00]Read from MH i2c: E2 [13:22:00]MH_I2C_Read... [13:22:00]Read from MH i2c: E2 0E 00 [13:22:00]MH_I2C_Read... [13:22:00]Read from MH i2c: E2 0E 00 9E 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 72 [13:22:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:22:00]wFMCommunicate OK [13:22:00]SAM_PROTO_GetShiftState done [13:22:00]FM_GetShiftState done [13:22:00]opened in 1729555832 [13:22:00]opened+sec_in_day 1729642232 [13:22:00]quantity*price = 40006 [13:22:00]sum+1 = 40007 [13:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 192 22.10.2024 13:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70244 ФПД: 15089428068105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70244&fm=15089428068105&tin=02508201610067®Number=0000000000156251&sum=40000 [13:22:01]StoreToDocumentArchive [13:22:01]shift 195 fd 70244 [13:22:01]save to /storage/0195/doc_00070244 [13:22:01]save last doc name /storage/0195/doc_00070244 to /storage/kkm_last_doc_name [13:22:01]save OK [13:22:01]Clear old archive folders... [13:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:01]tlvbuf is 011D74E0 [13:22:01]SAM_PROTO_ClearQueue [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 09 00 00 [13:22:01]Write to MH i2c: E2 08 00 AB 69 80 09 00 00 00 00 00 00 86 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 AB 69 00 90 00 88 [13:22:01]RAPDU: 90 00 [13:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_ClearQueue done [13:22:01]KKMCreateOFDPacket [13:22:01]OFDProtocolAddRootSTLVToBuf [13:22:01]FM_MakeSignedData [13:22:01]FM_MakeSignedData [13:22:01]SAM_PROTO_SignData [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 0D 01 02 [13:22:01]Write to MH i2c: E2 08 00 AC 69 80 0D 01 02 00 00 00 00 8E [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 AC 69 00 90 00 89 [13:22:01]RAPDU: 90 00 [13:22:01]wFMCommunicate OK [13:22:01]wFMCommunicate request_size=255 [13:22:01]MH_SAM_APDU [13:22: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 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 C0 00 00 00 F4 03 04 00 FD A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 12 01 00 35 04 06 00 0D [13:22:01]Write to MH i2c: E2 02 01 AD 69 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 C0 00 00 00 F4 03 04 00 FD A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 12 01 00 35 04 06 00 0D 00 00 0E [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 AD 69 00 90 00 8A [13:22:01]RAPDU: 90 00 [13:22:01]wFMCommunicate OK [13:22:01]wFMCommunicate request_size=10 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 0D 02 02 05 B9 47 FF F7 09 [13:22:01]Write to MH i2c: E2 0D 00 AE 69 80 0D 02 02 05 00 B9 47 FF F7 09 00 00 9A [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 03 00 AE 69 00 90 00 8B [13:22:01]RAPDU: 90 00 [13:22:01]wFMCommunicate OK [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 0D 03 02 [13:22:01]Write to MH i2c: E2 08 00 AF 69 80 0D 03 02 00 00 00 00 93 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0B 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0B 00 AF 69 00 27 BD EA 0E 9A 55 AB 0B 90 00 15 [13:22:01]RAPDU: 27 BD EA 0E 9A 55 AB 0B 90 00 [13:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_SignData done [13:22:01]FM_MakeSignedData done [13:22:01]CreateOFDProtocolMessage [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 11 00 00 [13:22:01]Write to MH i2c: E2 08 00 B0 69 80 11 00 00 00 00 00 00 93 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 B0 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [13:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:22:01]wFMCommunicate OK [13:22:01]CreateOFDProtocolMessage done [13:22:01]OFDSenderStorePacket 70244 [13:22:01]StoreOFDPacket docnum=70244 [13:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 63 92 07 01 08 59 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 C0 00 00 00 F4 03 04 00 FD A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 12 01 00 35 04 06 00 0D B9 47 FF F7 09 27 BD EA 0E 9A 55 AB 0B [13:22:01]CheckFolder [13:22:01]dirname=/storage/ofd_packets [13:22:01]CheckFolder done [13:22:01]ProducePacketName [13:22:01]name=ofd_packets/00070244 [13:22:01]NVStorageSaveData ofd_packets/00070244 [13:22:01]File name is /storage/ofd_packets/00070244 [13:22:01]Write 301 bytes [13:22:01]NVStorageSaveData done [13:22:01]OFDSenderStorePacket done [13:22:01]KKMCreateOFDPacket done [13:22:01]NVStorageSaveData kkm_last_timestamp [13:22:01]File name is /storage/kkm_last_timestamp [13:22:01]Write 4 bytes [13:22:01]NVStorageSaveData done [13:22:01]ExternCall_PrintAddStr [13:22:01]wPrintStart [13:22:01]Write to MH i2c: 01 00 00 B1 69 1A [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: 01 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: 01 07 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: 01 07 00 B1 69 00 00 00 00 00 FF 0F 2F [13:22:01]RasterBufferAndPrint [13:22:01]line Счет N : (1)2886012 [13:22:01]line ИНН: 02508201610067 [13:22:01]line Контрольно-Кассовый Чек [13:22:01]line ПРОДАЖА [13:22:01]line ТРК (МРК, ГНК) : 32 [13:22:01]line Товар: 2710124130 [13:22:01]line Аи-92-К-5 [13:22:01]line 5.980 * 66.90 [13:22:01]line = 400.06 [13:22:01]line НДС 12% НСП 1% [13:22:01]line > о реализуемом товаре [13:22:01]line ОКРУГЛЕНИЕ: -0.06 [13:22:01]line ИТОГО: 400.00 [13:22:01]line Внесено: 400.00 [13:22:01]line СДАЧА: 0.00 [13:22:01]line НСП 1% : 3.54 [13:22:01]line НДС 12% : 42.48 [13:22:01]line Наличными: 400.00 [13:22:01]line Безнал.: 0.00 [13:22:01]line Место: АЗС № 85 "Партнер Нефть" [13:22:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:22:01]line СНО: Общий режим [13:22:01]line Чек 192 22.10.2024 13:22 [13:22:01]line Смена: 195 ФФД: 1.0 [13:22:01]line ЗНМ: 0300000167 [13:22:01]line РНМ: 0000000000156251 [13:22:01]line Версия ККМ: v1.0 [13:22:01]line ФМ: 0000000000963346 [13:22:01]line ФД: 70244 [13:22:01]line ФПД: 15089428068105 [13:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70244&fm=15089428068105&tin=02508201610067®Number=0000000000156251&sum=40000 [13:22:02]OFD Sender: Processing packet 70244 [packets to send 18, broken 17] [13:22:02]ProducePacketName [13:22:02]name=ofd_packets/00070244 [13:22:02]OFD Sender: To server: pG, [13:22:02]CommunicateWithHost lk.salyk.kg:30040 [13:22:02]ConnectInit lk.salyk.kg [13:22:02]written 0, free lines is 4095 [13:22:02]Connected sock=10 [13:22: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 34 36 0F 01 00 00 63 92 07 01 08 59 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 C0 00 00 00 F4 03 04 00 FD A6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 12 01 00 35 04 06 00 0D B9 47 FF F7 09 27 BD EA 0E 9A 55 AB 0B [13:22: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 34 36 4F 00 00 00 6D 63 47 00 03 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 34 36 10 04 04 00 64 12 01 00 F4 03 04 00 9E 50 17 67 B6 04 01 00 00 24 B9 17 14 1A 35 70 BD [13:22:02]CommunicateWithHost err = 0 [13:22:02]CheckOFDResponse [13:22:02]1017 (14) - 77093643461234 [13:22:02]1041 (16) - 0000000000963346 [13:22:02]1040 (4) - 70244 [13:22:02]1012 (4) - 22.10.2024 07:13 [13:22:02]1206 (1) - 0 [13:22:02]OFD Sender: Remove packet 70244 [13:22:02]ProducePacketName [13:22:02]name=ofd_packets/00070244 [13:22:02]NVStorageDeleteData [13:22:02]Write to MH i2c: 01 00 00 DC 69 45 [13:22:02]Write i2c OK [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: 01 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: 01 07 00 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: 01 07 00 DC 69 00 00 00 00 00 F0 0C 48 [13:22:02]RasterBufferAndPrint [13:22:02]line [13:22:02]line [13:22:02]line [13:22:02]line [13:22:02]line [13:22:02]written 0, free lines is 3318 [13:22:02]MH_Cut [13:22:02]Write to MH i2c: D1 01 00 E3 69 01 1E [13:22:02]Write i2c OK [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: D1 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: D1 01 00 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: D1 01 00 E3 69 00 1D [13:22:02]Write to MH i2c: 01 00 00 E4 69 4D [13:22:02]Write i2c OK [13:22:02]MH_I2C_Read... [13:22:03]OFD Sender: No OFD packet to send [13:22:03]*** Cut start [13:22:03]*** Partial cut [13:22:03]*** CUTSNS_PIN = 1 [13:22:03]*** CUTSNS_PIN = 0 [13:22:03]*** Brake cut motor [13:22:03]Read from MH i2c: 01 [13:22:03]MH_I2C_Read... [13:22:03]*** Stop cut motor [13:22:03]*** Cut end [13:22:03]Read from MH i2c: 01 07 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: 01 07 00 E4 69 00 00 00 00 00 FF 0F 62 [13:22:03]process_action close_receipt done [13:22:03]requested_data is exist [13:22:03]produce_requested_data [13:22:03]requested_item fm.sn is exist - process it [13:22:03]wFMCommunicate request_size=4 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 11 00 00 [13:22:03]Write to MH i2c: E2 08 00 E5 69 80 11 00 00 00 00 00 00 C8 [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 17 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 17 00 E5 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [13:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:22:04]wFMCommunicate OK [13:22:04]requested_item fd.num is exist - process it [13:22:04]SAM_PROTO_GetFieldsCounters [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 13 00 00 [13:22:04]Write to MH i2c: E2 08 00 E6 69 80 13 00 00 00 00 00 00 CB [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 62 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 62 00 E6 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 12 01 00 0E 04 04 00 C3 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 60 [13:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 12 01 00 0E 04 04 00 C3 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 [13:22:04]wFMCommunicate OK [13:22:04]SAM_PROTO_GetFieldsCounters done [13:22:04]requested_item shift.num is exist - process it [13:22:04]requested_item shift.opened is exist - process it [13:22:04]req_shift_opened [13:22:04]FM_GetShiftState [13:22:04]SAM_PROTO_GetShiftState [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 13 01 00 [13:22:04]Write to MH i2c: E2 08 00 E7 69 80 13 01 00 00 00 00 00 CD [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0E 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0E 00 E7 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BB [13:22:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:22:04]wFMCommunicate OK [13:22:04]SAM_PROTO_GetShiftState done [13:22:04]FM_GetShiftState done [13:22:04]req_shift_opened done [13:22:04]requested_item shift.open_date is exist - process it [13:22:04]req_shift_open_date [13:22:04]req_shift_open_date done [13:22:04]produce_requested_data done [13:22:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70244,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:22:04]process_action_free close_receipt [13:22:04]json_value_free [13:22:04]json_value_free done [13:22:04]process_json_proto returns [13:22:04]Send response to host [13:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70244,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:22:04]free response buf [13:22:04]execute_script done [13:22:04]execute_script returns [13:22:04]free content buf [13:22:04]Sock 9.Close socket [13:22:04]Sock 9.Thread stoped [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]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:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:43]accept exits with 7 [13:24:43]New connection [13:24:43]New thread 3067170148 created [13:24:43]Thread 3067026788 joined [13:24:43]Waiting for new connection... [13:24:43] Sock 7.Parse request [13:24:43]Sock 7.Check first char [13:24:43]Sock 7.First char is OK [13:24:43]request: POST /json_proto HTTP/1.0 [13:24:43]Method: POST [13:24:43]URL: /json_proto [13:24:43]Method is POST - this is cgi request [13:24:43]url: /json_proto [13:24:43]query_string will be loaded in cgi processing [13:24:43]execute_cgi json_proto POST (null) [13:24:43]execute_cgi path=json_proto method=POST [13:24:43]POST find Content-Length [13:24:43]Host: 172.17.50.3:8080 [13:24:43]Content-Length: 675 [13:24:43]Content-Type: application/json [13:24:43] [13:24:43]POST finish read [13:24:43]Found Content-Length = 675 [13:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886013", "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" : 5.250, "sum" : 400.05, "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:24:43]execute_script... [13: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 : (1)2886013", "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" : 5.250, "sum" : 400.05, "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:24:43]POST & json_proto [13:24:43]process_json_proto [13:24:43]json parsed OK: [13:24:43]protocol is kg_v1.0 [13:24:43]action value=close_receipt [13:24:43]process_action close_receipt [13:24:43]cmd_close_receipt [13:24:43]MH_GetDate [13:24:43]Write to MH i2c: F0 00 00 E8 69 40 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: F0 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: F0 09 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: F0 09 00 E8 69 00 A1 A7 17 67 6B 98 1E 66 96 [13:24:43]GetLastDocTimeStamp 1729603325 [13:24:43]current date 1729603489 [13:24:43]FM_GetShiftState [13:24:43]SAM_PROTO_GetShiftState [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 13 01 00 [13:24:43]Write to MH i2c: E2 08 00 E9 69 80 13 01 00 00 00 00 00 CF [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 E9 69 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [13:24:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_GetShiftState done [13:24:43]FM_GetShiftState done [13:24:43]opened in 1729555832 [13:24:43]opened+sec_in_day 1729642232 [13:24:43]quantity*price = 40005 [13:24:43]sum+1 = 40006 [13:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 193 22.10.2024 13:24 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70245 ФПД: 86690616029913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70245&fm=86690616029913&tin=02508201610067®Number=0000000000156251&sum=40000 [13:24:44]StoreToDocumentArchive [13:24:44]shift 195 fd 70245 [13:24:44]save to /storage/0195/doc_00070245 [13:24:44]save last doc name /storage/0195/doc_00070245 to /storage/kkm_last_doc_name [13:24:44]save OK [13:24:44]Clear old archive folders... [13:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:44]tlvbuf is 011F7560 [13:24:44]SAM_PROTO_ClearQueue [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 09 00 00 [13:24:44]Write to MH i2c: E2 08 00 F6 69 80 09 00 00 00 00 00 00 D1 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 03 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 03 00 F6 69 00 90 00 D3 [13:24:44]RAPDU: 90 00 [13:24:44]wFMCommunicate OK [13:24:44]SAM_PROTO_ClearQueue done [13:24:44]KKMCreateOFDPacket [13:24:44]OFDProtocolAddRootSTLVToBuf [13:24:44]FM_MakeSignedData [13:24:44]FM_MakeSignedData [13:24:44]SAM_PROTO_SignData [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 0D 01 02 [13:24:44]Write to MH i2c: E2 08 00 F7 69 80 0D 01 02 00 00 00 00 D9 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 03 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 03 00 F7 69 00 90 00 D4 [13:24:44]RAPDU: 90 00 [13:24:44]wFMCommunicate OK [13:24:44]wFMCommunicate request_size=255 [13:24:44]MH_SAM_APDU [13:24:44]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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 C1 00 00 00 F4 03 04 00 A1 A7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 12 01 00 35 04 06 00 4E D8 3B 5F [13:24:45]Write to MH i2c: E2 02 01 F8 69 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 C1 00 00 00 F4 03 04 00 A1 A7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 12 01 00 35 04 06 00 4E D8 3B 5F 00 00 CD [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 F8 69 00 90 00 D5 [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]wFMCommunicate request_size=7 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 02 02 02 B2 D9 [13:24:45]Write to MH i2c: E2 0A 00 F9 69 80 0D 02 02 02 00 B2 D9 00 00 6B [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 F9 69 00 90 00 D6 [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 03 02 [13:24:45]Write to MH i2c: E2 08 00 FA 69 80 0D 03 02 00 00 00 00 DE [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0B 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0B 00 FA 69 00 FB 0A BE 45 E9 9B FF CA 90 00 34 [13:24:45]RAPDU: FB 0A BE 45 E9 9B FF CA 90 00 [13:24:45]wFMCommunicate OK [13:24:45]SAM_PROTO_SignData done [13:24:45]FM_MakeSignedData done [13:24:45]CreateOFDProtocolMessage [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 11 00 00 [13:24:45]Write to MH i2c: E2 08 00 FB 69 80 11 00 00 00 00 00 00 DE [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 FB 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [13:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:24:45]wFMCommunicate OK [13:24:45]CreateOFDProtocolMessage done [13:24:45]OFDSenderStorePacket 70245 [13:24:45]StoreOFDPacket docnum=70245 [13:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BD 16 04 01 20 33 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 C1 00 00 00 F4 03 04 00 A1 A7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 12 01 00 35 04 06 00 4E D8 3B 5F B2 D9 FB 0A BE 45 E9 9B FF CA [13:24:45]CheckFolder [13:24:45]dirname=/storage/ofd_packets [13:24:45]CheckFolder done [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00070245 [13:24:45]NVStorageSaveData ofd_packets/00070245 [13:24:45]File name is /storage/ofd_packets/00070245 [13:24:45]Write 298 bytes [13:24:45]NVStorageSaveData done [13:24:45]OFDSenderStorePacket done [13:24:45]KKMCreateOFDPacket done [13:24:45]NVStorageSaveData kkm_last_timestamp [13:24:45]File name is /storage/kkm_last_timestamp [13:24:45]Write 4 bytes [13:24:45]NVStorageSaveData done [13:24:45]ExternCall_PrintAddStr [13:24:45]wPrintStart [13:24:45]Write to MH i2c: 01 00 00 FC 69 65 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 07 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 07 00 FC 69 00 00 00 00 00 FF 0F 7A [13:24:45]RasterBufferAndPrint [13:24:45]line Счет N : (1)2886013 [13:24:45]line ИНН: 02508201610067 [13:24:45]line Контрольно-Кассовый Чек [13:24:45]line ПРОДАЖА [13:24:45]line ТРК (МРК, ГНК) : 51 [13:24:45]line Товар: 2710194210 [13:24:45]line ДТ-К-5 [13:24:45]line 5.250 * 76.20 [13:24:45]line = 400.05 [13:24:45]line НДС 12% НСП 1% [13:24:45]line > о реализуемом товаре [13:24:45]line ОКРУГЛЕНИЕ: -0.05 [13:24:45]line ИТОГО: 400.00 [13:24:45]line Внесено: 400.00 [13:24:45]line СДАЧА: 0.00 [13:24:45]line НСП 1% : 3.54 [13:24:45]line НДС 12% : 42.48 [13:24:45]line Наличными: 400.00 [13:24:45]line Безнал.: 0.00 [13:24:45]line Место: АЗС № 85 "Партнер Нефть" [13:24:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:24:45]line СНО: Общий режим [13:24:45]line Чек 193 22.10.2024 13:24 [13:24:45]line Смена: 195 ФФД: 1.0 [13:24:45]line ЗНМ: 0300000167 [13:24:45]line РНМ: 0000000000156251 [13:24:45]line Версия ККМ: v1.0 [13:24:45]line ФМ: 0000000000963346 [13:24:45]line ФД: 70245 [13:24:45]line ФПД: 86690616029913 [13:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70245&fm=86690616029913&tin=02508201610067®Number=0000000000156251&sum=40000 [13:24:45]OFD Sender: Processing packet 70245 [packets to send 18, broken 17] [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00070245 [13:24:45]OFD Sender: To server: pG, [13:24:45]CommunicateWithHost lk.salyk.kg:30040 [13:24:45]ConnectInit lk.salyk.kg [13:24:45]written 0, free lines is 4095 [13:24:45]Connected sock=10 [13: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 34 36 0C 01 00 00 BD 16 04 01 20 33 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 C1 00 00 00 F4 03 04 00 A1 A7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 12 01 00 35 04 06 00 4E D8 3B 5F B2 D9 FB 0A BE 45 E9 9B FF CA [13:24: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 34 36 4F 00 00 00 B2 4C 47 00 5B 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 12 01 00 F4 03 04 00 41 51 17 67 B6 04 01 00 00 D6 C9 22 F8 D6 8E 37 E0 [13:24:46]CommunicateWithHost err = 0 [13:24:46]CheckOFDResponse [13:24:46]1017 (14) - 77093643461234 [13:24:46]1041 (16) - 0000000000963346 [13:24:46]1040 (4) - 70245 [13:24:46]1012 (4) - 22.10.2024 07:16 [13:24:46]1206 (1) - 0 [13:24:46]OFD Sender: Remove packet 70245 [13:24:46]ProducePacketName [13:24:46]name=ofd_packets/00070245 [13:24:46]NVStorageDeleteData [13:24:46]Write to MH i2c: 01 00 00 27 6A 91 [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 07 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 07 00 27 6A 00 00 00 00 00 DA 0C 7E [13:24:46]RasterBufferAndPrint [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]written 0, free lines is 3297 [13:24:46]MH_Cut [13:24:46]Write to MH i2c: D1 01 00 2E 6A 01 6A [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 01 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 01 00 2E 6A 00 69 [13:24:46]Write to MH i2c: 01 00 00 2F 6A 99 [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]OFD Sender: No OFD packet to send [13:24:46]*** Cut start [13:24:46]*** Partial cut [13:24:46]*** CUTSNS_PIN = 1 [13:24:46]*** CUTSNS_PIN = 0 [13:24:47]*** Brake cut motor [13:24:47]Read from MH i2c: 01 [13:24:47]MH_I2C_Read... [13:24:47]*** Stop cut motor [13:24:47]*** Cut end [13:24:47]Read from MH i2c: 01 07 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: 01 07 00 2F 6A 00 00 00 00 00 FF 0F AE [13:24:47]process_action close_receipt done [13:24:47]requested_data is exist [13:24:47]produce_requested_data [13:24:47]requested_item fm.sn is exist - process it [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 11 00 00 [13:24:47]Write to MH i2c: E2 08 00 30 6A 80 11 00 00 00 00 00 00 14 [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 17 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 17 00 30 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [13:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:24:47]wFMCommunicate OK [13:24:47]requested_item fd.num is exist - process it [13:24:47]SAM_PROTO_GetFieldsCounters [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 13 00 00 [13:24:47]Write to MH i2c: E2 08 00 31 6A 80 13 00 00 00 00 00 00 17 [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 62 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 62 00 31 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 12 01 00 0E 04 04 00 C3 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 B0 [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 12 01 00 0E 04 04 00 C3 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 [13:24:47]wFMCommunicate OK [13:24:47]SAM_PROTO_GetFieldsCounters done [13:24:47]requested_item shift.num is exist - process it [13:24:47]requested_item shift.opened is exist - process it [13:24:47]req_shift_opened [13:24:47]FM_GetShiftState [13:24:47]SAM_PROTO_GetShiftState [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 13 01 00 [13:24:47]Write to MH i2c: E2 08 00 32 6A 80 13 01 00 00 00 00 00 19 [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 0E 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 0E 00 32 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 07 [13:24:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:24:47]wFMCommunicate OK [13:24:47]SAM_PROTO_GetShiftState done [13:24:47]FM_GetShiftState done [13:24:47]req_shift_opened done [13:24:47]requested_item shift.open_date is exist - process it [13:24:47]req_shift_open_date [13:24:47]req_shift_open_date done [13:24:47]produce_requested_data done [13:24:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70245,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:24:47]process_action_free close_receipt [13:24:47]json_value_free [13:24:47]json_value_free done [13:24:47]process_json_proto returns [13:24:47]Send response to host [13:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70245,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:24:47]free response buf [13:24:47]execute_script done [13:24:47]execute_script returns [13:24:47]free content buf [13:24:47]Sock 7.Close socket [13:24:47]Sock 7.Thread stoped [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]accept exits with 9 [13:27:16]New connection [13:27:16]New thread 3067026788 created [13:27:16]Thread 3067170148 joined [13:27:16]Waiting for new connection... [13:27:16] Sock 9.Parse request [13:27:16]Sock 9.Check first char [13:27:16]Sock 9.First char is OK [13:27:16]request: POST /json_proto HTTP/1.0 [13:27:16]Method: POST [13:27:16]URL: /json_proto [13:27:16]Method is POST - this is cgi request [13:27:16]url: /json_proto [13:27:16]query_string will be loaded in cgi processing [13:27:16]execute_cgi json_proto POST (null) [13:27:16]execute_cgi path=json_proto method=POST [13:27:16]POST find Content-Length [13:27:16]Host: 172.17.50.3:8080 [13:27:16]Content-Length: 678 [13:27:16]Content-Type: application/json [13:27:16] [13:27:16]POST finish read [13:27:16]Found Content-Length = 678 [13:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [13:27:16]execute_script... [13:27: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)2886014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [13:27:16]POST & json_proto [13:27:16]process_json_proto [13:27:16]json parsed OK: [13:27:16]protocol is kg_v1.0 [13:27:16]action value=close_receipt [13:27:16]process_action close_receipt [13:27:16]cmd_close_receipt [13:27:16]MH_GetDate [13:27:16]Write to MH i2c: F0 00 00 33 6A 8C [13:27:16]Write i2c OK [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 09 00 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 09 00 33 6A 00 39 A8 17 67 6B 98 1E 66 7B [13:27:16]GetLastDocTimeStamp 1729603489 [13:27:16]current date 1729603641 [13:27:16]FM_GetShiftState [13:27:16]SAM_PROTO_GetShiftState [13:27:16]wFMCommunicate request_size=4 [13:27:16]MH_SAM_APDU [13:27:16]CAPDU: 80 13 01 00 [13:27:16]Write to MH i2c: E2 08 00 34 6A 80 13 01 00 00 00 00 00 1B [13:27:16]Write i2c OK [13:27:16]MH_I2C_Read... [13:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:16]Read from MH i2c: E2 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: E2 0E 00 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: E2 0E 00 34 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 09 [13:27:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:27:16]wFMCommunicate OK [13:27:16]SAM_PROTO_GetShiftState done [13:27:16]FM_GetShiftState done [13:27:16]opened in 1729555832 [13:27:16]opened+sec_in_day 1729642232 [13:27:16]quantity*price = 60009 [13:27:16]sum+1 = 60010 [13:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 194 22.10.2024 13:27 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70246 ФПД: 104005993185642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70246&fm=104005993185642&tin=02508201610067®Number=0000000000156251&sum=60000 [13:27:17]StoreToDocumentArchive [13:27:17]shift 195 fd 70246 [13:27:17]save to /storage/0195/doc_00070246 [13:27:17]save last doc name /storage/0195/doc_00070246 to /storage/kkm_last_doc_name [13:27:17]save OK [13:27:17]Clear old archive folders... [13:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:17]tlvbuf is 01101A10 [13:27:17]SAM_PROTO_ClearQueue [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 09 00 00 [13:27:17]Write to MH i2c: E2 08 00 41 6A 80 09 00 00 00 00 00 00 1D [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 41 6A 00 90 00 1F [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]SAM_PROTO_ClearQueue done [13:27:17]KKMCreateOFDPacket [13:27:17]OFDProtocolAddRootSTLVToBuf [13:27:17]FM_MakeSignedData [13:27:17]FM_MakeSignedData [13:27:17]SAM_PROTO_SignData [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 0D 01 02 [13:27:17]Write to MH i2c: E2 08 00 42 6A 80 0D 01 02 00 00 00 00 25 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 42 6A 00 90 00 20 [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]wFMCommunicate request_size=255 [13:27:17]MH_SAM_APDU [13:27: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 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 C2 00 00 00 F4 03 04 00 39 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 12 01 00 35 04 06 00 5E [13:27:17]Write to MH i2c: E2 02 01 43 6A 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 C2 00 00 00 F4 03 04 00 39 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 12 01 00 35 04 06 00 5E 00 00 46 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 43 6A 00 90 00 21 [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]wFMCommunicate request_size=10 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 0D 02 02 05 97 C8 47 41 6A [13:27:17]Write to MH i2c: E2 0D 00 44 6A 80 0D 02 02 05 00 97 C8 47 41 6A 00 00 83 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 44 6A 00 90 00 22 [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 0D 03 02 [13:27:17]Write to MH i2c: E2 08 00 45 6A 80 0D 03 02 00 00 00 00 2A [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 0B 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 0B 00 45 6A 00 72 EF CF 80 1A 08 26 3C 90 00 5F [13:27:17]RAPDU: 72 EF CF 80 1A 08 26 3C 90 00 [13:27:17]wFMCommunicate OK [13:27:17]SAM_PROTO_SignData done [13:27:17]FM_MakeSignedData done [13:27:17]CreateOFDProtocolMessage [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 11 00 00 [13:27:17]Write to MH i2c: E2 08 00 46 6A 80 11 00 00 00 00 00 00 2A [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 17 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 17 00 46 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [13:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:27:17]wFMCommunicate OK [13:27:17]CreateOFDProtocolMessage done [13:27:17]OFDSenderStorePacket 70246 [13:27:17]StoreOFDPacket docnum=70246 [13:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 77 4F 07 01 3C 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 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 C2 00 00 00 F4 03 04 00 39 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 12 01 00 35 04 06 00 5E 97 C8 47 41 6A 72 EF CF 80 1A 08 26 3C [13:27:17]CheckFolder [13:27:17]dirname=/storage/ofd_packets [13:27:17]CheckFolder done [13:27:17]ProducePacketName [13:27:17]name=ofd_packets/00070246 [13:27:17]NVStorageSaveData ofd_packets/00070246 [13:27:17]File name is /storage/ofd_packets/00070246 [13:27:17]Write 301 bytes [13:27:17]NVStorageSaveData done [13:27:17]OFDSenderStorePacket done [13:27:17]KKMCreateOFDPacket done [13:27:17]NVStorageSaveData kkm_last_timestamp [13:27:17]File name is /storage/kkm_last_timestamp [13:27:17]Write 4 bytes [13:27:17]NVStorageSaveData done [13:27:17]ExternCall_PrintAddStr [13:27:17]wPrintStart [13:27:17]Write to MH i2c: 01 00 00 47 6A B1 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: 01 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: 01 07 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: 01 07 00 47 6A 00 00 00 00 00 FF 0F C6 [13:27:17]RasterBufferAndPrint [13:27:17]line Счет N : (1)2886014 [13:27:17]line ИНН: 02508201610067 [13:27:17]line Контрольно-Кассовый Чек [13:27:17]line ПРОДАЖА [13:27:17]line ТРК (МРК, ГНК) : 22 [13:27:17]line Товар: 2710124130 [13:27:17]line Аи-92-К-5 [13:27:17]line 8.970 * 66.90 [13:27:17]line = 600.09 [13:27:17]line НДС 12% НСП 1% [13:27:17]line > о реализуемом товаре [13:27:17]line ОКРУГЛЕНИЕ: -0.09 [13:27:17]line ИТОГО: 600.00 [13:27:17]line Внесено: 600.00 [13:27:17]line СДАЧА: 0.00 [13:27:17]line НСП 1% : 5.31 [13:27:17]line НДС 12% : 63.73 [13:27:17]line Наличными: 600.00 [13:27:17]line Безнал.: 0.00 [13:27:17]line Место: АЗС № 85 "Партнер Нефть" [13:27:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:27:17]line СНО: Общий режим [13:27:17]line Чек 194 22.10.2024 13:27 [13:27:17]line Смена: 195 ФФД: 1.0 [13:27:17]line ЗНМ: 0300000167 [13:27:17]line РНМ: 0000000000156251 [13:27:17]line Версия ККМ: v1.0 [13:27:17]line ФМ: 0000000000963346 [13:27:17]line ФД: 70246 [13:27:17]line ФПД: 104005993185642 [13:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70246&fm=104005993185642&tin=02508201610067®Number=0000000000156251&sum=60000 [13:27:18]OFD Sender: Processing packet 70246 [packets to send 18, broken 17] [13:27:18]ProducePacketName [13:27:18]name=ofd_packets/00070246 [13:27:18]OFD Sender: To server: pG, [13:27:18]CommunicateWithHost lk.salyk.kg:30040 [13:27:18]ConnectInit lk.salyk.kg [13:27:18]written 0, free lines is 4095 [13:27:18]Connected sock=10 [13:27: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 34 36 0F 01 00 00 77 4F 07 01 3C 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 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 C2 00 00 00 F4 03 04 00 39 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 12 01 00 35 04 06 00 5E 97 C8 47 41 6A 72 EF CF 80 1A 08 26 3C [13:27: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 34 36 4F 00 00 00 35 6E 47 00 B6 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 34 36 10 04 04 00 66 12 01 00 F4 03 04 00 DA 51 17 67 B6 04 01 00 00 80 37 5E 86 38 F3 AE D9 [13:27:18]CommunicateWithHost err = 0 [13:27:18]CheckOFDResponse [13:27:18]1017 (14) - 77093643461234 [13:27:18]1041 (16) - 0000000000963346 [13:27:18]1040 (4) - 70246 [13:27:18]1012 (4) - 22.10.2024 07:18 [13:27:18]1206 (1) - 0 [13:27:18]OFD Sender: Remove packet 70246 [13:27:18]ProducePacketName [13:27:18]name=ofd_packets/00070246 [13:27:18]NVStorageDeleteData [13:27:18]Write to MH i2c: 01 00 00 72 6A DC [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 07 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 07 00 72 6A 00 00 00 00 00 FF 0C EE [13:27:18]RasterBufferAndPrint [13:27:18]line [13:27:18]line [13:27:18]line [13:27:18]line [13:27:18]line [13:27:18]written 0, free lines is 3336 [13:27:18]MH_Cut [13:27:18]Write to MH i2c: D1 01 00 79 6A 01 B5 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: D1 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: D1 01 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: D1 01 00 79 6A 00 B4 [13:27:18]Write to MH i2c: 01 00 00 7A 6A E4 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:19]OFD Sender: No OFD packet to send [13:27:19]*** Cut start [13:27:19]*** Partial cut [13:27:19]*** CUTSNS_PIN = 1 [13:27:19]*** CUTSNS_PIN = 0 [13:27:19]*** Brake cut motor [13:27:19]Read from MH i2c: 01 [13:27:19]MH_I2C_Read... [13:27:19]*** Stop cut motor [13:27:19]*** Cut end [13:27:19]Read from MH i2c: 01 07 00 [13:27:19]MH_I2C_Read... [13:27:20]Read from MH i2c: 01 07 00 7A 6A 00 00 00 00 00 FF 0F F9 [13:27:20]process_action close_receipt done [13:27:20]requested_data is exist [13:27:20]produce_requested_data [13:27:20]requested_item fm.sn is exist - process it [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 11 00 00 [13:27:20]Write to MH i2c: E2 08 00 7B 6A 80 11 00 00 00 00 00 00 5F [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 17 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 17 00 7B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [13:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:27:20]wFMCommunicate OK [13:27:20]requested_item fd.num is exist - process it [13:27:20]SAM_PROTO_GetFieldsCounters [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 13 00 00 [13:27:20]Write to MH i2c: E2 08 00 7C 6A 80 13 00 00 00 00 00 00 62 [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 62 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 62 00 7C 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 12 01 00 0E 04 04 00 C3 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 FF [13:27: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 12 01 00 0E 04 04 00 C3 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 [13:27:20]wFMCommunicate OK [13:27:20]SAM_PROTO_GetFieldsCounters done [13:27:20]requested_item shift.num is exist - process it [13:27:20]requested_item shift.opened is exist - process it [13:27:20]req_shift_opened [13:27:20]FM_GetShiftState [13:27:20]SAM_PROTO_GetShiftState [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 13 01 00 [13:27:20]Write to MH i2c: E2 08 00 7D 6A 80 13 01 00 00 00 00 00 64 [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 0E 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 0E 00 7D 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 52 [13:27:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:27:20]wFMCommunicate OK [13:27:20]SAM_PROTO_GetShiftState done [13:27:20]FM_GetShiftState done [13:27:20]req_shift_opened done [13:27:20]requested_item shift.open_date is exist - process it [13:27:20]req_shift_open_date [13:27:20]req_shift_open_date done [13:27:20]produce_requested_data done [13:27:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70246,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:27:20]process_action_free close_receipt [13:27:20]json_value_free [13:27:20]json_value_free done [13:27:20]process_json_proto returns [13:27:20]Send response to host [13:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70246,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:27:20]free response buf [13:27:20]execute_script done [13:27:20]execute_script returns [13:27:20]free content buf [13:27:20]Sock 9.Close socket [13:27:20]Sock 9.Thread stoped [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:08]accept exits with 7 [13:29:08]New connection [13:29:08]New thread 3067170148 created [13:29:08]Thread 3067026788 joined [13:29:08]Waiting for new connection... [13:29:08] Sock 7.Parse request [13:29:08]Sock 7.Check first char [13:29:08]Sock 7.First char is OK [13:29:08]request: POST /json_proto HTTP/1.0 [13:29:08]Method: POST [13:29:08]URL: /json_proto [13:29:08]Method is POST - this is cgi request [13:29:08]url: /json_proto [13:29:08]query_string will be loaded in cgi processing [13:29:08]execute_cgi json_proto POST (null) [13:29:08]execute_cgi path=json_proto method=POST [13:29:08]POST find Content-Length [13:29:08]Host: 172.17.50.3:8080 [13:29:08]Content-Length: 683 [13:29:08]Content-Type: application/json [13:29:08] [13:29:08]POST finish read [13:29:08]Found Content-Length = 683 [13:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [13:29:08]execute_script... [13:29: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)2886015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [13:29:08]POST & json_proto [13:29:08]process_json_proto [13:29:08]json parsed OK: [13:29:08]protocol is kg_v1.0 [13:29:08]action value=close_receipt [13:29:08]process_action close_receipt [13:29:08]cmd_close_receipt [13:29:08]MH_GetDate [13:29:08]Write to MH i2c: F0 00 00 7E 6A D7 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: F0 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: F0 09 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: F0 09 00 7E 6A 00 A9 A8 17 67 6B 98 1E 66 36 [13:29:08]GetLastDocTimeStamp 1729603641 [13:29:08]current date 1729603753 [13:29:08]FM_GetShiftState [13:29:08]SAM_PROTO_GetShiftState [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 13 01 00 [13:29:08]Write to MH i2c: E2 08 00 7F 6A 80 13 01 00 00 00 00 00 66 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 7F 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 54 [13:29:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:29:08]wFMCommunicate OK [13:29:08]SAM_PROTO_GetShiftState done [13:29:08]FM_GetShiftState done [13:29:08]opened in 1729555832 [13:29:08]opened+sec_in_day 1729642232 [13:29:08]quantity*price = 100021 [13:29:08]sum+1 = 100023 [13:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 195 22.10.2024 13:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70247 ФПД: 16176729001352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70247&fm=16176729001352&tin=02508201610067®Number=0000000000156251&sum=100000 [13:29:09]StoreToDocumentArchive [13:29:09]shift 195 fd 70247 [13:29:09]save to /storage/0195/doc_00070247 [13:29:09]save last doc name /storage/0195/doc_00070247 to /storage/kkm_last_doc_name [13:29:09]save OK [13:29:09]Clear old archive folders... [13:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:09]tlvbuf is 011F75B0 [13:29:09]SAM_PROTO_ClearQueue [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 09 00 00 [13:29:09]Write to MH i2c: E2 08 00 8C 6A 80 09 00 00 00 00 00 00 68 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 8C 6A 00 90 00 6A [13:29:09]RAPDU: 90 00 [13:29:09]wFMCommunicate OK [13:29:09]SAM_PROTO_ClearQueue done [13:29:09]KKMCreateOFDPacket [13:29:09]OFDProtocolAddRootSTLVToBuf [13:29:09]FM_MakeSignedData [13:29:09]FM_MakeSignedData [13:29:09]SAM_PROTO_SignData [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 0D 01 02 [13:29:09]Write to MH i2c: E2 08 00 8D 6A 80 0D 01 02 00 00 00 00 70 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 8D 6A 00 90 00 6B [13:29:09]RAPDU: 90 00 [13:29:09]wFMCommunicate OK [13:29:09]wFMCommunicate request_size=255 [13:29:09]MH_SAM_APDU [13:29: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 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 C3 00 00 00 F4 03 04 00 A9 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 12 01 00 35 04 06 00 0E [13:29:09]Write to MH i2c: E2 02 01 8E 6A 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 C3 00 00 00 F4 03 04 00 A9 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 12 01 00 35 04 06 00 0E 00 00 F3 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 8E 6A 00 90 00 6C [13:29:09]RAPDU: 90 00 [13:29:09]wFMCommunicate OK [13:29:09]wFMCommunicate request_size=10 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 0D 02 02 05 B6 70 2F 8D 88 [13:29:09]Write to MH i2c: E2 0D 00 8F 6A 80 0D 02 02 05 00 B6 70 2F 8D 88 00 00 E7 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 03 00 8F 6A 00 90 00 6D [13:29:09]RAPDU: 90 00 [13:29:09]wFMCommunicate OK [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 0D 03 02 [13:29:09]Write to MH i2c: E2 08 00 90 6A 80 0D 03 02 00 00 00 00 75 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 0B 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 0B 00 90 6A 00 9E 82 F7 4F 2F F5 33 FD 90 00 30 [13:29:09]RAPDU: 9E 82 F7 4F 2F F5 33 FD 90 00 [13:29:09]wFMCommunicate OK [13:29:09]SAM_PROTO_SignData done [13:29:09]FM_MakeSignedData done [13:29:09]CreateOFDProtocolMessage [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 11 00 00 [13:29:09]Write to MH i2c: E2 08 00 91 6A 80 11 00 00 00 00 00 00 75 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 17 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 17 00 91 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [13:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:29:10]wFMCommunicate OK [13:29:10]CreateOFDProtocolMessage done [13:29:10]OFDSenderStorePacket 70247 [13:29:10]StoreOFDPacket docnum=70247 [13:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 68 2B 07 01 61 33 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 C3 00 00 00 F4 03 04 00 A9 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 12 01 00 35 04 06 00 0E B6 70 2F 8D 88 9E 82 F7 4F 2F F5 33 FD [13:29:10]CheckFolder [13:29:10]dirname=/storage/ofd_packets [13:29:10]CheckFolder done [13:29:10]ProducePacketName [13:29:10]name=ofd_packets/00070247 [13:29:10]NVStorageSaveData ofd_packets/00070247 [13:29:10]File name is /storage/ofd_packets/00070247 [13:29:10]Write 301 bytes [13:29:10]NVStorageSaveData done [13:29:10]OFDSenderStorePacket done [13:29:10]KKMCreateOFDPacket done [13:29:10]NVStorageSaveData kkm_last_timestamp [13:29:10]File name is /storage/kkm_last_timestamp [13:29:10]Write 4 bytes [13:29:10]NVStorageSaveData done [13:29:10]ExternCall_PrintAddStr [13:29:10]wPrintStart [13:29:10]Write to MH i2c: 01 00 00 92 6A FC [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 92 6A 00 00 00 00 00 FF 0F 11 [13:29:10]RasterBufferAndPrint [13:29:10]line Счет N : (1)2886015 [13:29:10]line ИНН: 02508201610067 [13:29:10]line Контрольно-Кассовый Чек [13:29:10]line ПРОДАЖА [13:29:10]line ТРК (МРК, ГНК) : 23 [13:29:10]line Товар: 2710124500 [13:29:10]line Аи-95-К-5 [13:29:10]line 13.480 * 74.20 [13:29:10]line = 1000.22 [13:29:10]line НДС 12% НСП 1% [13:29:10]line > о реализуемом товаре [13:29:10]line ОКРУГЛЕНИЕ: -0.22 [13:29:10]line ИТОГО: 1000.00 [13:29:10]line Внесено: 1000.00 [13:29:10]line СДАЧА: 0.00 [13:29:10]line НСП 1% : 8.85 [13:29:10]line НДС 12% : 106.22 [13:29:10]line Наличными: 1000.00 [13:29:10]line Безнал.: 0.00 [13:29:10]line Место: АЗС № 85 "Партнер Нефть" [13:29:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:29:10]line СНО: Общий режим [13:29:10]line Чек 195 22.10.2024 13:29 [13:29:10]line Смена: 195 ФФД: 1.0 [13:29:10]line ЗНМ: 0300000167 [13:29:10]line РНМ: 0000000000156251 [13:29:10]line Версия ККМ: v1.0 [13:29:10]line ФМ: 0000000000963346 [13:29:10]line ФД: 70247 [13:29:10]line ФПД: 16176729001352 [13:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70247&fm=16176729001352&tin=02508201610067®Number=0000000000156251&sum=100000 [13:29:10]written 0, free lines is 4095 [13:29:10]OFD Sender: Processing packet 70247 [packets to send 18, broken 17] [13:29:10]ProducePacketName [13:29:10]name=ofd_packets/00070247 [13:29:10]OFD Sender: To server: pG, [13:29:10]CommunicateWithHost lk.salyk.kg:30040 [13:29:10]ConnectInit lk.salyk.kg [13:29:10]Connected sock=11 [13: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 34 36 0F 01 00 00 68 2B 07 01 61 33 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 C3 00 00 00 F4 03 04 00 A9 A8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 12 01 00 35 04 06 00 0E B6 70 2F 8D 88 9E 82 F7 4F 2F F5 33 FD [13: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 34 36 4F 00 00 00 29 12 47 00 71 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 34 36 10 04 04 00 67 12 01 00 F4 03 04 00 4A 52 17 67 B6 04 01 00 00 A9 CC 2B DF C7 20 30 41 [13:29:10]CommunicateWithHost err = 0 [13:29:10]CheckOFDResponse [13:29:10]1017 (14) - 77093643461234 [13:29:10]1041 (16) - 0000000000963346 [13:29:10]1040 (4) - 70247 [13:29:10]1012 (4) - 22.10.2024 07:20 [13:29:10]1206 (1) - 0 [13:29:10]OFD Sender: Remove packet 70247 [13:29:10]ProducePacketName [13:29:10]name=ofd_packets/00070247 [13:29:10]NVStorageDeleteData [13:29:10]Write to MH i2c: 01 00 00 BD 6A 27 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 BD 6A 00 00 00 00 00 FA 0C 34 [13:29:10]RasterBufferAndPrint [13:29:10]line [13:29:10]line [13:29:10]line [13:29:10]line [13:29:10]line [13:29:10]written 0, free lines is 3328 [13:29:10]MH_Cut [13:29:10]Write to MH i2c: D1 01 00 C4 6A 01 00 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: D1 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: D1 01 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: D1 01 00 C4 6A 00 FF [13:29:10]Write to MH i2c: 01 00 00 C5 6A 2F [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]OFD Sender: No OFD packet to send [13:29:11]*** Cut start [13:29:11]*** Partial cut [13:29:11]*** CUTSNS_PIN = 1 [13:29:11]*** CUTSNS_PIN = 0 [13:29:11]*** Brake cut motor [13:29:11]Read from MH i2c: 01 [13:29:11]MH_I2C_Read... [13:29:11]*** Stop cut motor [13:29:11]*** Cut end [13:29:11]Read from MH i2c: 01 07 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: 01 07 00 C5 6A 00 00 00 00 00 FF 0F 44 [13:29:11]process_action close_receipt done [13:29:11]requested_data is exist [13:29:11]produce_requested_data [13:29:11]requested_item fm.sn is exist - process it [13:29:11]wFMCommunicate request_size=4 [13:29:11]MH_SAM_APDU [13:29:11]CAPDU: 80 11 00 00 [13:29:11]Write to MH i2c: E2 08 00 C6 6A 80 11 00 00 00 00 00 00 AA [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:11]Read from MH i2c: E2 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 17 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 17 00 C6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [13:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:29:11]wFMCommunicate OK [13:29:11]requested_item fd.num is exist - process it [13:29:11]SAM_PROTO_GetFieldsCounters [13:29:11]wFMCommunicate request_size=4 [13:29:11]MH_SAM_APDU [13:29:11]CAPDU: 80 13 00 00 [13:29:11]Write to MH i2c: E2 08 00 C7 6A 80 13 00 00 00 00 00 00 AD [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 62 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 62 00 C7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 12 01 00 0E 04 04 00 C3 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 4E [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 12 01 00 0E 04 04 00 C3 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 [13:29:12]wFMCommunicate OK [13:29:12]SAM_PROTO_GetFieldsCounters done [13:29:12]requested_item shift.num is exist - process it [13:29:12]requested_item shift.opened is exist - process it [13:29:12]req_shift_opened [13:29:12]FM_GetShiftState [13:29:12]SAM_PROTO_GetShiftState [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 13 01 00 [13:29:12]Write to MH i2c: E2 08 00 C8 6A 80 13 01 00 00 00 00 00 AF [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0E 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0E 00 C8 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9D [13:29:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:29:12]wFMCommunicate OK [13:29:12]SAM_PROTO_GetShiftState done [13:29:12]FM_GetShiftState done [13:29:12]req_shift_opened done [13:29:12]requested_item shift.open_date is exist - process it [13:29:12]req_shift_open_date [13:29:12]req_shift_open_date done [13:29:12]produce_requested_data done [13:29:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70247,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:29:12]process_action_free close_receipt [13:29:12]json_value_free [13:29:12]json_value_free done [13:29:12]process_json_proto returns [13:29:12]Send response to host [13:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70247,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:29:12]free response buf [13:29:12]execute_script done [13:29:12]execute_script returns [13:29:12]free content buf [13:29:12]Sock 7.Close socket [13:29:12]Sock 7.Thread stoped [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]accept exits with 9 [13:32:35]New connection [13:32:35]New thread 3067026788 created [13:32:35]Thread 3067170148 joined [13:32:35]Waiting for new connection... [13:32:35] Sock 9.Parse request [13:32:35]Sock 9.Check first char [13:32:35]Sock 9.First char is OK [13:32:35]request: POST /json_proto HTTP/1.0 [13:32:35]Method: POST [13:32:35]URL: /json_proto [13:32:35]Method is POST - this is cgi request [13:32:35]url: /json_proto [13:32:35]query_string will be loaded in cgi processing [13:32:35]execute_cgi json_proto POST (null) [13:32:35]execute_cgi path=json_proto method=POST [13:32:35]POST find Content-Length [13:32:35]Host: 172.17.50.3:8080 [13:32:35]Content-Length: 768 [13:32:35]Content-Type: application/json [13:32:35] [13:32:35]POST finish read [13:32:35]Found Content-Length = 768 [13:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "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" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:35]execute_script... [13:32: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)2886016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "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" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:35]POST & json_proto [13:32:35]process_json_proto [13:32:35]json parsed OK: [13:32:35]protocol is kg_v1.0 [13:32:35]action value=close_receipt [13:32:35]process_action close_receipt [13:32:35]cmd_close_receipt [13:32:35]MH_GetDate [13:32:35]Write to MH i2c: F0 00 00 C9 6A 22 [13:32:35]Write i2c OK [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: F0 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: F0 09 00 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: F0 09 00 C9 6A 00 78 A9 17 67 6B 98 1E 66 51 [13:32:35]GetLastDocTimeStamp 1729603753 [13:32:35]current date 1729603960 [13:32:35]FM_GetShiftState [13:32:35]SAM_PROTO_GetShiftState [13:32:35]wFMCommunicate request_size=4 [13:32:35]MH_SAM_APDU [13:32:35]CAPDU: 80 13 01 00 [13:32:35]Write to MH i2c: E2 08 00 CA 6A 80 13 01 00 00 00 00 00 B1 [13:32:35]Write i2c OK [13:32:35]MH_I2C_Read... [13:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:35]Read from MH i2c: E2 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: E2 0E 00 [13:32:35]MH_I2C_Read... [13:32:35]Read from MH i2c: E2 0E 00 CA 6A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9F [13:32:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:35]wFMCommunicate OK [13:32:35]SAM_PROTO_GetShiftState done [13:32:35]FM_GetShiftState done [13:32:35]opened in 1729555832 [13:32:35]opened+sec_in_day 1729642232 [13:32:35]quantity*price = 800023 [13:32:35]sum+1 = 800025 [13:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.24 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.24 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 196 22.10.2024 13:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70248 ФПД: 109137436917821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133240&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70248&fm=109137436917821&tin=02508201610067®Number=0000000000156251&sum=800024 [13:32:36]StoreToDocumentArchive [13:32:36]shift 195 fd 70248 [13:32:36]save to /storage/0195/doc_00070248 [13:32:36]save last doc name /storage/0195/doc_00070248 to /storage/kkm_last_doc_name [13:32:36]save OK [13:32:36]Clear old archive folders... [13:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:36]tlvbuf is 011CDF30 [13:32:36]SAM_PROTO_ClearQueue [13:32:36]wFMCommunicate request_size=4 [13:32:36]MH_SAM_APDU [13:32:36]CAPDU: 80 09 00 00 [13:32:36]Write to MH i2c: E2 08 00 D7 6A 80 09 00 00 00 00 00 00 B3 [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:36]Read from MH i2c: E2 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 D7 6A 00 90 00 B5 [13:32:36]RAPDU: 90 00 [13:32:36]wFMCommunicate OK [13:32:36]SAM_PROTO_ClearQueue done [13:32:36]KKMCreateOFDPacket [13:32:36]OFDProtocolAddRootSTLVToBuf [13:32:36]FM_MakeSignedData [13:32:36]FM_MakeSignedData [13:32:36]SAM_PROTO_SignData [13:32:36]wFMCommunicate request_size=4 [13:32:36]MH_SAM_APDU [13:32:36]CAPDU: 80 0D 01 02 [13:32:36]Write to MH i2c: E2 08 00 D8 6A 80 0D 01 02 00 00 00 00 BB [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:36]Read from MH i2c: E2 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 D8 6A 00 90 00 B6 [13:32:36]RAPDU: 90 00 [13:32:36]wFMCommunicate OK [13:32:36]wFMCommunicate request_size=255 [13:32:36]MH_SAM_APDU [13:32: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 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 78 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 12 01 00 35 04 06 00 63 42 8A 28 [13:32:36]Write to MH i2c: E2 02 01 D9 6A 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 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 78 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 12 01 00 35 04 06 00 63 42 8A 28 00 00 9C [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:36]Read from MH i2c: E2 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 D9 6A 00 90 00 B7 [13:32:36]RAPDU: 90 00 [13:32:36]wFMCommunicate OK [13:32:36]wFMCommunicate request_size=7 [13:32:36]MH_SAM_APDU [13:32:36]CAPDU: 80 0D 02 02 02 C0 3D [13:32:36]Write to MH i2c: E2 0A 00 DA 6A 80 0D 02 02 02 00 C0 3D 00 00 BF [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:36]Read from MH i2c: E2 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 03 00 DA 6A 00 90 00 B8 [13:32:36]RAPDU: 90 00 [13:32:36]wFMCommunicate OK [13:32:36]wFMCommunicate request_size=4 [13:32:36]MH_SAM_APDU [13:32:36]CAPDU: 80 0D 03 02 [13:32:36]Write to MH i2c: E2 08 00 DB 6A 80 0D 03 02 00 00 00 00 C0 [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:36]Read from MH i2c: E2 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 0B 00 [13:32:36]MH_I2C_Read... [13:32:36]Read from MH i2c: E2 0B 00 DB 6A 00 93 07 50 3E 20 5D FB 63 90 00 C4 [13:32:36]RAPDU: 93 07 50 3E 20 5D FB 63 90 00 [13:32:36]wFMCommunicate OK [13:32:36]SAM_PROTO_SignData done [13:32:36]FM_MakeSignedData done [13:32:36]CreateOFDProtocolMessage [13:32:36]wFMCommunicate request_size=4 [13:32:36]MH_SAM_APDU [13:32:36]CAPDU: 80 11 00 00 [13:32:36]Write to MH i2c: E2 08 00 DC 6A 80 11 00 00 00 00 00 00 C0 [13:32:36]Write i2c OK [13:32:36]MH_I2C_Read... [13:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:37]Read from MH i2c: E2 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 17 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: E2 17 00 DC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [13:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:37]wFMCommunicate OK [13:32:37]CreateOFDProtocolMessage done [13:32:37]OFDSenderStorePacket 70248 [13:32:37]StoreOFDPacket docnum=70248 [13:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F1 42 04 01 96 7A 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 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 78 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 12 01 00 35 04 06 00 63 42 8A 28 C0 3D 93 07 50 3E 20 5D FB 63 [13:32:37]CheckFolder [13:32:37]dirname=/storage/ofd_packets [13:32:37]CheckFolder done [13:32:37]ProducePacketName [13:32:37]name=ofd_packets/00070248 [13:32:37]NVStorageSaveData ofd_packets/00070248 [13:32:37]File name is /storage/ofd_packets/00070248 [13:32:37]Write 298 bytes [13:32:37]NVStorageSaveData done [13:32:37]OFDSenderStorePacket done [13:32:37]KKMCreateOFDPacket done [13:32:37]NVStorageSaveData kkm_last_timestamp [13:32:37]File name is /storage/kkm_last_timestamp [13:32:37]Write 4 bytes [13:32:37]NVStorageSaveData done [13:32:37]ExternCall_PrintAddStr [13:32:37]wPrintStart [13:32:37]Write to MH i2c: 01 00 00 DD 6A 47 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 DD 6A 00 00 00 00 00 FF 0F 5C [13:32:37]RasterBufferAndPrint [13:32:37]line Счет N : (1)2886016 [13:32:37]line ИНН: 02508201610067 [13:32:37]line Контрольно-Кассовый Чек [13:32:37]line ПРОДАЖА [13:32:37]line ТРК (МРК, ГНК) : 61 [13:32:37]line Товар: 2710194210 [13:32:37]line ДТ-К-5 [13:32:37]line 104.990 * 76.20 [13:32:37]line = 8000.24 [13:32:37]line НДС 12% НСП 1% [13:32:37]line > о реализуемом товаре [13:32:37]line ИТОГО: 8000.24 [13:32:37]line НСП 1% : 70.80 [13:32:37]line НДС 12% : 849.58 [13:32:37]line Наличными: 0.00 [13:32:37]line Безнал.: 8000.24 [13:32:37]line Место: АЗС № 85 "Партнер Нефть" [13:32:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:32:37]line СНО: Общий режим [13:32:37]line Чек 196 22.10.2024 13:32 [13:32:37]line Смена: 195 ФФД: 1.0 [13:32:37]line ЗНМ: 0300000167 [13:32:37]line РНМ: 0000000000156251 [13:32:37]line Версия ККМ: v1.0 [13:32:37]line Платежная система: Mbank [13:32:37]line ФМ: 0000000000963346 [13:32:37]line ФД: 70248 [13:32:37]line ФПД: 109137436917821 [13:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133240&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70248&fm=109137436917821&tin=02508201610067®Number=0000000000156251&sum=800024 [13:32:37]OFD Sender: Processing packet 70248 [packets to send 18, broken 17] [13:32:37]ProducePacketName [13:32:37]name=ofd_packets/00070248 [13:32:37]OFD Sender: To server: pG, [13:32:37]CommunicateWithHost lk.salyk.kg:30040 [13:32:37]ConnectInit lk.salyk.kg [13:32:37]written 0, free lines is 4095 [13:32:37]Connected sock=10 [13:32: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 34 36 0C 01 00 00 F1 42 04 01 96 7A 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 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 78 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 12 01 00 35 04 06 00 63 42 8A 28 C0 3D 93 07 50 3E 20 5D FB 63 [13:32: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 34 36 4F 00 00 00 E2 D9 47 00 83 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 34 36 10 04 04 00 68 12 01 00 F4 03 04 00 19 53 17 67 B6 04 01 00 00 4B 51 F3 B7 40 C0 D8 FF [13:32:37]CommunicateWithHost err = 0 [13:32:37]CheckOFDResponse [13:32:37]1017 (14) - 77093643461234 [13:32:37]1041 (16) - 0000000000963346 [13:32:37]1040 (4) - 70248 [13:32:37]1012 (4) - 22.10.2024 07:24 [13:32:37]1206 (1) - 0 [13:32:37]OFD Sender: Remove packet 70248 [13:32:37]ProducePacketName [13:32:37]name=ofd_packets/00070248 [13:32:37]NVStorageDeleteData [13:32:37]Write to MH i2c: 01 00 00 06 6B 71 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 06 6B 00 00 00 00 00 22 0D A7 [13:32:37]RasterBufferAndPrint [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]written 0, free lines is 3369 [13:32:37]MH_Cut [13:32:37]Write to MH i2c: D1 01 00 0D 6B 01 4A [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 01 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 01 00 0D 6B 00 49 [13:32:37]Write to MH i2c: 01 00 00 0E 6B 79 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:38]OFD Sender: No OFD packet to send [13:32:38]*** Cut start [13:32:38]*** Partial cut [13:32:38]*** CUTSNS_PIN = 1 [13:32:38]*** CUTSNS_PIN = 0 [13:32:38]*** Brake cut motor [13:32:39]Read from MH i2c: 01 [13:32:39]MH_I2C_Read... [13:32:39]*** Stop cut motor [13:32:39]*** Cut end [13:32:39]Read from MH i2c: 01 07 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: 01 07 00 0E 6B 00 00 00 00 00 FF 0F 8E [13:32:39]process_action close_receipt done [13:32:39]requested_data is exist [13:32:39]produce_requested_data [13:32:39]requested_item fm.sn is exist - process it [13:32:39]wFMCommunicate request_size=4 [13:32:39]MH_SAM_APDU [13:32:39]CAPDU: 80 11 00 00 [13:32:39]Write to MH i2c: E2 08 00 0F 6B 80 11 00 00 00 00 00 00 F4 [13:32:39]Write i2c OK [13:32:39]MH_I2C_Read... [13:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:39]Read from MH i2c: E2 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 17 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 17 00 0F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [13:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:39]wFMCommunicate OK [13:32:39]requested_item fd.num is exist - process it [13:32:39]SAM_PROTO_GetFieldsCounters [13:32:39]wFMCommunicate request_size=4 [13:32:39]MH_SAM_APDU [13:32:39]CAPDU: 80 13 00 00 [13:32:39]Write to MH i2c: E2 08 00 10 6B 80 13 00 00 00 00 00 00 F7 [13:32:39]Write i2c OK [13:32:39]MH_I2C_Read... [13:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:39]Read from MH i2c: E2 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 62 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 62 00 10 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 12 01 00 0E 04 04 00 C3 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 9C [13:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 12 01 00 0E 04 04 00 C3 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 [13:32:39]wFMCommunicate OK [13:32:39]SAM_PROTO_GetFieldsCounters done [13:32:39]requested_item shift.num is exist - process it [13:32:39]requested_item shift.opened is exist - process it [13:32:39]req_shift_opened [13:32:39]FM_GetShiftState [13:32:39]SAM_PROTO_GetShiftState [13:32:39]wFMCommunicate request_size=4 [13:32:39]MH_SAM_APDU [13:32:39]CAPDU: 80 13 01 00 [13:32:39]Write to MH i2c: E2 08 00 11 6B 80 13 01 00 00 00 00 00 F9 [13:32:39]Write i2c OK [13:32:39]MH_I2C_Read... [13:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:39]Read from MH i2c: E2 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 0E 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 0E 00 11 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E7 [13:32:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:39]wFMCommunicate OK [13:32:39]SAM_PROTO_GetShiftState done [13:32:39]FM_GetShiftState done [13:32:39]req_shift_opened done [13:32:39]requested_item shift.open_date is exist - process it [13:32:39]req_shift_open_date [13:32:39]req_shift_open_date done [13:32:39]produce_requested_data done [13:32:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70248,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:32:39]process_action_free close_receipt [13:32:39]json_value_free [13:32:39]json_value_free done [13:32:39]process_json_proto returns [13:32:39]Send response to host [13:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70248,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:32:39]free response buf [13:32:39]execute_script done [13:32:39]execute_script returns [13:32:39]free content buf [13:32:39]Sock 9.Close socket [13:32:39]Sock 9.Thread stoped [13:32:39]accept exits with 7 [13:32:39]New connection [13:32:39]New thread 3067170148 created [13:32:39]Thread 3067026788 joined [13:32:39]Waiting for new connection... [13:32:39] Sock 7.Parse request [13:32:39]Sock 7.Check first char [13:32:39]Sock 7.First char is OK [13:32:39]request: POST /json_proto HTTP/1.0 [13:32:39]Method: POST [13:32:39]URL: /json_proto [13:32:39]Method is POST - this is cgi request [13:32:39]url: /json_proto [13:32:39]query_string will be loaded in cgi processing [13:32:39]execute_cgi json_proto POST (null) [13:32:39]execute_cgi path=json_proto method=POST [13:32:39]POST find Content-Length [13:32:39]Host: 172.17.50.3:8080 [13:32:39]Content-Length: 689 [13:32:39]Content-Type: application/json [13:32:39] [13:32:39]POST finish read [13:32:39]Found Content-Length = 689 [13:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [13:32:39]execute_script... [13:32: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)2886017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [13:32:39]POST & json_proto [13:32:39]process_json_proto [13:32:39]json parsed OK: [13:32:39]protocol is kg_v1.0 [13:32:39]action value=close_receipt [13:32:39]process_action close_receipt [13:32:39]cmd_close_receipt [13:32:39]MH_GetDate [13:32:39]Write to MH i2c: F0 00 00 12 6B 6C [13:32:39]Write i2c OK [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: F0 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: F0 09 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: F0 09 00 12 6B 00 7D A9 17 67 6B 98 1E 66 A0 [13:32:39]GetLastDocTimeStamp 1729603960 [13:32:39]current date 1729603965 [13:32:39]FM_GetShiftState [13:32:39]SAM_PROTO_GetShiftState [13:32:39]wFMCommunicate request_size=4 [13:32:39]MH_SAM_APDU [13:32:39]CAPDU: 80 13 01 00 [13:32:39]Write to MH i2c: E2 08 00 13 6B 80 13 01 00 00 00 00 00 FB [13:32:39]Write i2c OK [13:32:39]MH_I2C_Read... [13:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:39]Read from MH i2c: E2 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 0E 00 [13:32:39]MH_I2C_Read... [13:32:39]Read from MH i2c: E2 0E 00 13 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E9 [13:32:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:39]wFMCommunicate OK [13:32:39]SAM_PROTO_GetShiftState done [13:32:39]FM_GetShiftState done [13:32:39]opened in 1729555832 [13:32:39]opened+sec_in_day 1729642232 [13:32:39]quantity*price = 200025 [13:32:39]sum+1 = 200026 [13:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 197 22.10.2024 13:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70249 ФПД: 177040001162254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133245&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70249&fm=177040001162254&tin=02508201610067®Number=0000000000156251&sum=200000 [13:32:41]StoreToDocumentArchive [13:32:41]shift 195 fd 70249 [13:32:41]save to /storage/0195/doc_00070249 [13:32:41]save last doc name /storage/0195/doc_00070249 to /storage/kkm_last_doc_name [13:32:41]save OK [13:32:41]Clear old archive folders... [13:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:32:41]tlvbuf is 011064B0 [13:32:41]SAM_PROTO_ClearQueue [13:32:41]wFMCommunicate request_size=4 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 09 00 00 [13:32:41]Write to MH i2c: E2 08 00 20 6B 80 09 00 00 00 00 00 00 FD [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 20 6B 00 90 00 FF [13:32:41]RAPDU: 90 00 [13:32:41]wFMCommunicate OK [13:32:41]SAM_PROTO_ClearQueue done [13:32:41]KKMCreateOFDPacket [13:32:41]OFDProtocolAddRootSTLVToBuf [13:32:41]FM_MakeSignedData [13:32:41]FM_MakeSignedData [13:32:41]SAM_PROTO_SignData [13:32:41]wFMCommunicate request_size=4 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 0D 01 02 [13:32:41]Write to MH i2c: E2 08 00 21 6B 80 0D 01 02 00 00 00 00 05 [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 21 6B 00 90 00 00 [13:32:41]RAPDU: 90 00 [13:32:41]wFMCommunicate OK [13:32:41]wFMCommunicate request_size=255 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 C5 00 00 00 F4 03 04 00 7D A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 12 01 [13:32:41]Write to MH i2c: E2 02 01 22 6B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 C5 00 00 00 F4 03 04 00 7D A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 12 01 00 00 43 [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 22 6B 00 90 00 01 [13:32:41]RAPDU: 90 00 [13:32:41]wFMCommunicate OK [13:32:41]wFMCommunicate request_size=16 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A1 04 56 61 5C 0E [13:32:41]Write to MH i2c: E2 13 00 23 6B 80 0D 02 02 0B 00 00 35 04 06 00 A1 04 56 61 5C 0E 00 00 23 [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 03 00 23 6B 00 90 00 02 [13:32:41]RAPDU: 90 00 [13:32:41]wFMCommunicate OK [13:32:41]wFMCommunicate request_size=4 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 0D 03 02 [13:32:41]Write to MH i2c: E2 08 00 24 6B 80 0D 03 02 00 00 00 00 0A [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 0B 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 0B 00 24 6B 00 43 A0 AC E4 26 3E 87 54 90 00 BD [13:32:41]RAPDU: 43 A0 AC E4 26 3E 87 54 90 00 [13:32:41]wFMCommunicate OK [13:32:41]SAM_PROTO_SignData done [13:32:41]FM_MakeSignedData done [13:32:41]CreateOFDProtocolMessage [13:32:41]wFMCommunicate request_size=4 [13:32:41]MH_SAM_APDU [13:32:41]CAPDU: 80 11 00 00 [13:32:41]Write to MH i2c: E2 08 00 25 6B 80 11 00 00 00 00 00 00 0A [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:41]Read from MH i2c: E2 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 17 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: E2 17 00 25 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [13:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:41]wFMCommunicate OK [13:32:41]CreateOFDProtocolMessage done [13:32:41]OFDSenderStorePacket 70249 [13:32:41]StoreOFDPacket docnum=70249 [13:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0C 0F 0D 01 2B 41 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 C5 00 00 00 F4 03 04 00 7D A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 12 01 00 35 04 06 00 A1 04 56 61 5C 0E 43 A0 AC E4 26 3E 87 54 [13:32:41]CheckFolder [13:32:41]dirname=/storage/ofd_packets [13:32:41]CheckFolder done [13:32:41]ProducePacketName [13:32:41]name=ofd_packets/00070249 [13:32:41]NVStorageSaveData ofd_packets/00070249 [13:32:41]File name is /storage/ofd_packets/00070249 [13:32:41]Write 307 bytes [13:32:41]NVStorageSaveData done [13:32:41]OFDSenderStorePacket done [13:32:41]KKMCreateOFDPacket done [13:32:41]NVStorageSaveData kkm_last_timestamp [13:32:41]File name is /storage/kkm_last_timestamp [13:32:41]Write 4 bytes [13:32:41]NVStorageSaveData done [13:32:41]ExternCall_PrintAddStr [13:32:41]wPrintStart [13:32:41]Write to MH i2c: 01 00 00 26 6B 91 [13:32:41]Write i2c OK [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: 01 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: 01 07 00 [13:32:41]MH_I2C_Read... [13:32:41]Read from MH i2c: 01 07 00 26 6B 00 00 00 00 00 FF 0F A6 [13:32:41]RasterBufferAndPrint [13:32:41]line Счет N : (1)2886017 [13:32:41]line ИНН: 02508201610067 [13:32:41]line Контрольно-Кассовый Чек [13:32:41]line ПРОДАЖА [13:32:41]line ТРК (МРК, ГНК) : 31 [13:32:41]line Товар: 2710194240 [13:32:41]line D-ENERGY Дт-К-2 [13:32:41]line 25.910 * 77.20 [13:32:41]line = 2000.25 [13:32:41]line НДС 12% НСП 1% [13:32:41]line > о реализуемом товаре [13:32:41]line ОКРУГЛЕНИЕ: -0.25 [13:32:41]line ИТОГО: 2000.00 [13:32:41]line Внесено: 2000.00 [13:32:41]line СДАЧА: 0.00 [13:32:41]line НСП 1% : 17.70 [13:32:41]line НДС 12% : 212.42 [13:32:41]line Наличными: 2000.00 [13:32:41]line Безнал.: 0.00 [13:32:41]line Место: АЗС № 85 "Партнер Нефть" [13:32:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:32:41]line СНО: Общий режим [13:32:41]line Чек 197 22.10.2024 13:32 [13:32:41]line Смена: 195 ФФД: 1.0 [13:32:41]line ЗНМ: 0300000167 [13:32:41]line РНМ: 0000000000156251 [13:32:41]line Версия ККМ: v1.0 [13:32:41]line ФМ: 0000000000963346 [13:32:41]line ФД: 70249 [13:32:41]line ФПД: 177040001162254 [13:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133245&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70249&fm=177040001162254&tin=02508201610067®Number=0000000000156251&sum=200000 [13:32:41]written 0, free lines is 4095 [13:32:41]OFD Sender: Processing packet 70249 [packets to send 18, broken 17] [13:32:41]ProducePacketName [13:32:41]name=ofd_packets/00070249 [13:32:41]OFD Sender: To server: pG, [13:32:41]CommunicateWithHost lk.salyk.kg:30040 [13:32:41]ConnectInit lk.salyk.kg [13:32:42]Connected sock=10 [13:32: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 34 36 15 01 00 00 0C 0F 0D 01 2B 41 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 C5 00 00 00 F4 03 04 00 7D A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 12 01 00 35 04 06 00 A1 04 56 61 5C 0E 43 A0 AC E4 26 3E 87 54 [13:32: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 34 36 4F 00 00 00 07 CC 47 00 C3 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 34 36 10 04 04 00 69 12 01 00 F4 03 04 00 1E 53 17 67 B6 04 01 00 00 FC 24 BA 55 F4 09 D5 86 [13:32:42]CommunicateWithHost err = 0 [13:32:42]CheckOFDResponse [13:32:42]1017 (14) - 77093643461234 [13:32:42]1041 (16) - 0000000000963346 [13:32:42]1040 (4) - 70249 [13:32:42]1012 (4) - 22.10.2024 07:24 [13:32:42]1206 (1) - 0 [13:32:42]OFD Sender: Remove packet 70249 [13:32:42]ProducePacketName [13:32:42]name=ofd_packets/00070249 [13:32:42]NVStorageDeleteData [13:32:42]Write to MH i2c: 01 00 00 51 6B BC [13:32:42]Write i2c OK [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: 01 [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: 01 07 00 [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: 01 07 00 51 6B 00 00 00 00 00 04 0D D4 [13:32:42]RasterBufferAndPrint [13:32:42]line [13:32:42]line [13:32:42]line [13:32:42]line [13:32:42]line [13:32:42]written 0, free lines is 3344 [13:32:42]MH_Cut [13:32:42]Write to MH i2c: D1 01 00 58 6B 01 95 [13:32:42]Write i2c OK [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: D1 [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: D1 01 00 [13:32:42]MH_I2C_Read... [13:32:42]Read from MH i2c: D1 01 00 58 6B 00 94 [13:32:42]Write to MH i2c: 01 00 00 59 6B C4 [13:32:42]Write i2c OK [13:32:42]MH_I2C_Read... [13:32:42]OFD Sender: No OFD packet to send [13:32:43]*** Cut start [13:32:43]*** Partial cut [13:32:43]*** CUTSNS_PIN = 1 [13:32:43]*** CUTSNS_PIN = 0 [13:32:43]*** Brake cut motor [13:32:43]Read from MH i2c: 01 [13:32:43]MH_I2C_Read... [13:32:43]*** Stop cut motor [13:32:43]*** Cut end [13:32:43]Read from MH i2c: 01 07 00 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: 01 07 00 59 6B 00 00 00 00 00 FF 0F D9 [13:32:43]process_action close_receipt done [13:32:43]requested_data is exist [13:32:43]produce_requested_data [13:32:43]requested_item fm.sn is exist - process it [13:32:43]wFMCommunicate request_size=4 [13:32:43]MH_SAM_APDU [13:32:43]CAPDU: 80 11 00 00 [13:32:43]Write to MH i2c: E2 08 00 5A 6B 80 11 00 00 00 00 00 00 3F [13:32:43]Write i2c OK [13:32:43]MH_I2C_Read... [13:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:43]Read from MH i2c: E2 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 17 00 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 17 00 5A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [13:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:43]wFMCommunicate OK [13:32:43]requested_item fd.num is exist - process it [13:32:43]SAM_PROTO_GetFieldsCounters [13:32:43]wFMCommunicate request_size=4 [13:32:43]MH_SAM_APDU [13:32:43]CAPDU: 80 13 00 00 [13:32:43]Write to MH i2c: E2 08 00 5B 6B 80 13 00 00 00 00 00 00 42 [13:32:43]Write i2c OK [13:32:43]MH_I2C_Read... [13:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:43]Read from MH i2c: E2 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 62 00 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 62 00 5B 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 12 01 00 0E 04 04 00 C3 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 EB [13:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 12 01 00 0E 04 04 00 C3 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 [13:32:43]wFMCommunicate OK [13:32:43]SAM_PROTO_GetFieldsCounters done [13:32:43]requested_item shift.num is exist - process it [13:32:43]requested_item shift.opened is exist - process it [13:32:43]req_shift_opened [13:32:43]FM_GetShiftState [13:32:43]SAM_PROTO_GetShiftState [13:32:43]wFMCommunicate request_size=4 [13:32:43]MH_SAM_APDU [13:32:43]CAPDU: 80 13 01 00 [13:32:43]Write to MH i2c: E2 08 00 5C 6B 80 13 01 00 00 00 00 00 44 [13:32:43]Write i2c OK [13:32:43]MH_I2C_Read... [13:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:43]Read from MH i2c: E2 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 0E 00 [13:32:43]MH_I2C_Read... [13:32:43]Read from MH i2c: E2 0E 00 5C 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 32 [13:32:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:43]wFMCommunicate OK [13:32:43]SAM_PROTO_GetShiftState done [13:32:43]FM_GetShiftState done [13:32:43]req_shift_opened done [13:32:43]requested_item shift.open_date is exist - process it [13:32:43]req_shift_open_date [13:32:43]req_shift_open_date done [13:32:43]produce_requested_data done [13:32:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70249,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:32:43]process_action_free close_receipt [13:32:43]json_value_free [13:32:43]json_value_free done [13:32:43]process_json_proto returns [13:32:43]Send response to host [13:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70249,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:32:43]free response buf [13:32:43]execute_script done [13:32:43]execute_script returns [13:32:43]free content buf [13:32:43]Sock 7.Close socket [13:32:43]Sock 7.Thread stoped [13:32:47]accept exits with 9 [13:32:47]New connection [13:32:47]New thread 3067026788 created [13:32:47]Thread 3067170148 joined [13:32:47]Waiting for new connection... [13:32:47] Sock 9.Parse request [13:32:47]Sock 9.Check first char [13:32:47]Sock 9.First char is OK [13:32:47]request: POST /json_proto HTTP/1.0 [13:32:47]Method: POST [13:32:47]URL: /json_proto [13:32:47]Method is POST - this is cgi request [13:32:47]url: /json_proto [13:32:47]query_string will be loaded in cgi processing [13:32:47]execute_cgi json_proto POST (null) [13:32:47]execute_cgi path=json_proto method=POST [13:32:47]POST find Content-Length [13:32:47]Host: 172.17.50.3:8080 [13:32:47]Content-Length: 678 [13:32:47]Content-Type: application/json [13:32:47] [13:32:47]POST finish read [13:32:47]Found Content-Length = 678 [13:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:32:47]execute_script... [13:32: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)2886018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:32:47]POST & json_proto [13:32:47]process_json_proto [13:32:47]json parsed OK: [13:32:47]protocol is kg_v1.0 [13:32:47]action value=close_receipt [13:32:47]process_action close_receipt [13:32:47]cmd_close_receipt [13:32:47]MH_GetDate [13:32:47]Write to MH i2c: F0 00 00 5D 6B B7 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: F0 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: F0 09 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: F0 09 00 5D 6B 00 84 A9 17 67 6B 98 1E 66 F2 [13:32:47]GetLastDocTimeStamp 1729603965 [13:32:47]current date 1729603972 [13:32:47]FM_GetShiftState [13:32:47]SAM_PROTO_GetShiftState [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 13 01 00 [13:32:47]Write to MH i2c: E2 08 00 5E 6B 80 13 01 00 00 00 00 00 46 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0E 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0E 00 5E 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [13:32:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:47]wFMCommunicate OK [13:32:47]SAM_PROTO_GetShiftState done [13:32:47]FM_GetShiftState done [13:32:47]opened in 1729555832 [13:32:47]opened+sec_in_day 1729642232 [13:32:47]quantity*price = 50041 [13:32:47]sum+1 = 50042 [13:32: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 198 22.10.2024 13:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70250 ФПД: 111456298111157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70250&fm=111456298111157&tin=02508201610067®Number=0000000000156251&sum=50000 [13:32:48]StoreToDocumentArchive [13:32:48]shift 195 fd 70250 [13:32:48]save to /storage/0195/doc_00070250 [13:32:48]save last doc name /storage/0195/doc_00070250 to /storage/kkm_last_doc_name [13:32:48]save OK [13:32:48]Clear old archive folders... [13:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:48]tlvbuf is 011F9D40 [13:32:48]SAM_PROTO_ClearQueue [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 09 00 00 [13:32:48]Write to MH i2c: E2 08 00 6B 6B 80 09 00 00 00 00 00 00 48 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 6B 6B 00 90 00 4A [13:32:48]RAPDU: 90 00 [13:32:48]wFMCommunicate OK [13:32:48]SAM_PROTO_ClearQueue done [13:32:48]KKMCreateOFDPacket [13:32:48]OFDProtocolAddRootSTLVToBuf [13:32:48]FM_MakeSignedData [13:32:48]FM_MakeSignedData [13:32:48]SAM_PROTO_SignData [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 0D 01 02 [13:32:48]Write to MH i2c: E2 08 00 6C 6B 80 0D 01 02 00 00 00 00 50 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 6C 6B 00 90 00 4B [13:32:48]RAPDU: 90 00 [13:32:48]wFMCommunicate OK [13:32:48]wFMCommunicate request_size=255 [13:32:48]MH_SAM_APDU [13:32: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 C6 00 00 00 F4 03 04 00 84 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 12 01 00 35 04 06 00 65 [13:32:48]Write to MH i2c: E2 02 01 6D 6B 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 C6 00 00 00 F4 03 04 00 84 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 12 01 00 35 04 06 00 65 00 00 EF [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 6D 6B 00 90 00 4C [13:32:48]RAPDU: 90 00 [13:32:48]wFMCommunicate OK [13:32:48]wFMCommunicate request_size=10 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 0D 02 02 05 5E 71 0E 90 B5 [13:32:48]Write to MH i2c: E2 0D 00 6E 6B 80 0D 02 02 05 00 5E 71 0E 90 B5 00 00 7F [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 03 00 6E 6B 00 90 00 4D [13:32:48]RAPDU: 90 00 [13:32:48]wFMCommunicate OK [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 0D 03 02 [13:32:48]Write to MH i2c: E2 08 00 6F 6B 80 0D 03 02 00 00 00 00 55 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0B 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0B 00 6F 6B 00 0F 49 56 4C 45 56 22 D8 90 00 E5 [13:32:48]RAPDU: 0F 49 56 4C 45 56 22 D8 90 00 [13:32:48]wFMCommunicate OK [13:32:48]SAM_PROTO_SignData done [13:32:48]FM_MakeSignedData done [13:32:48]CreateOFDProtocolMessage [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 11 00 00 [13:32:48]Write to MH i2c: E2 08 00 70 6B 80 11 00 00 00 00 00 00 55 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:49]Read from MH i2c: E2 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 17 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 17 00 70 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [13:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:49]wFMCommunicate OK [13:32:49]CreateOFDProtocolMessage done [13:32:49]OFDSenderStorePacket 70250 [13:32:49]StoreOFDPacket docnum=70250 [13:32:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E A5 07 01 C3 57 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 C6 00 00 00 F4 03 04 00 84 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 12 01 00 35 04 06 00 65 5E 71 0E 90 B5 0F 49 56 4C 45 56 22 D8 [13:32:49]CheckFolder [13:32:49]dirname=/storage/ofd_packets [13:32:49]CheckFolder done [13:32:49]ProducePacketName [13:32:49]name=ofd_packets/00070250 [13:32:49]NVStorageSaveData ofd_packets/00070250 [13:32:49]File name is /storage/ofd_packets/00070250 [13:32:49]Write 301 bytes [13:32:49]NVStorageSaveData done [13:32:49]OFDSenderStorePacket done [13:32:49]KKMCreateOFDPacket done [13:32:49]NVStorageSaveData kkm_last_timestamp [13:32:49]File name is /storage/kkm_last_timestamp [13:32:49]Write 4 bytes [13:32:49]NVStorageSaveData done [13:32:49]ExternCall_PrintAddStr [13:32:49]wPrintStart [13:32:49]Write to MH i2c: 01 00 00 71 6B DC [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 07 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 07 00 71 6B 00 00 00 00 00 FF 0F F1 [13:32:49]RasterBufferAndPrint [13:32:49]line Счет N : (1)2886018 [13:32:49]line ИНН: 02508201610067 [13:32:49]line Контрольно-Кассовый Чек [13:32:49]line ПРОДАЖА [13:32:49]line ТРК (МРК, ГНК) : 42 [13:32:49]line Товар: 2710124130 [13:32:49]line Аи-92-К-5 [13:32:49]line 7.480 * 66.90 [13:32:49]line = 500.41 [13:32:49]line НДС 12% НСП 1% [13:32:49]line > о реализуемом товаре [13:32:49]line ОКРУГЛЕНИЕ: -0.41 [13:32:49]line ИТОГО: 500.00 [13:32:49]line Внесено: 500.00 [13:32:49]line СДАЧА: 0.00 [13:32:49]line НСП 1% : 4.43 [13:32:49]line НДС 12% : 53.14 [13:32:49]line Наличными: 500.00 [13:32:49]line Безнал.: 0.00 [13:32:49]line Место: АЗС № 85 "Партнер Нефть" [13:32:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:32:49]line СНО: Общий режим [13:32:49]line Чек 198 22.10.2024 13:32 [13:32:49]line Смена: 195 ФФД: 1.0 [13:32:49]line ЗНМ: 0300000167 [13:32:49]line РНМ: 0000000000156251 [13:32:49]line Версия ККМ: v1.0 [13:32:49]line ФМ: 0000000000963346 [13:32:49]line ФД: 70250 [13:32:49]line ФПД: 111456298111157 [13:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70250&fm=111456298111157&tin=02508201610067®Number=0000000000156251&sum=50000 [13:32:49]written 0, free lines is 4095 [13:32:49]OFD Sender: Processing packet 70250 [packets to send 18, broken 17] [13:32:49]ProducePacketName [13:32:49]name=ofd_packets/00070250 [13:32:49]OFD Sender: To server: pG, [13:32:49]CommunicateWithHost lk.salyk.kg:30040 [13:32:49]ConnectInit lk.salyk.kg [13:32:49]Connected sock=10 [13:32: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 34 36 0F 01 00 00 5E A5 07 01 C3 57 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 C6 00 00 00 F4 03 04 00 84 A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 12 01 00 35 04 06 00 65 5E 71 0E 90 B5 0F 49 56 4C 45 56 22 D8 [13:32: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 34 36 4F 00 00 00 64 F6 47 00 45 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 34 36 10 04 04 00 6A 12 01 00 F4 03 04 00 25 53 17 67 B6 04 01 00 00 7A 14 59 A1 D6 2D D5 86 [13:32:49]CommunicateWithHost err = 0 [13:32:49]CheckOFDResponse [13:32:49]1017 (14) - 77093643461234 [13:32:49]1041 (16) - 0000000000963346 [13:32:49]1040 (4) - 70250 [13:32:49]1012 (4) - 22.10.2024 07:24 [13:32:49]1206 (1) - 0 [13:32:49]OFD Sender: Remove packet 70250 [13:32:49]ProducePacketName [13:32:49]name=ofd_packets/00070250 [13:32:49]NVStorageDeleteData [13:32:49]Write to MH i2c: 01 00 00 9C 6B 07 [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 07 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: 01 07 00 9C 6B 00 00 00 00 00 F2 0C 0C [13:32:49]RasterBufferAndPrint [13:32:49]line [13:32:49]line [13:32:49]line [13:32:49]line [13:32:49]line [13:32:49]written 0, free lines is 3335 [13:32:49]MH_Cut [13:32:49]Write to MH i2c: D1 01 00 A3 6B 01 E0 [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: D1 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: D1 01 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: D1 01 00 A3 6B 00 DF [13:32:49]Write to MH i2c: 01 00 00 A4 6B 0F [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:50]OFD Sender: No OFD packet to send [13:32:50]*** Cut start [13:32:50]*** Partial cut [13:32:50]*** CUTSNS_PIN = 1 [13:32:50]*** CUTSNS_PIN = 0 [13:32:50]*** Brake cut motor [13:32:50]Read from MH i2c: 01 [13:32:50]MH_I2C_Read... [13:32:50]*** Stop cut motor [13:32:50]*** Cut end [13:32:50]Read from MH i2c: 01 07 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 A4 6B 00 00 00 00 00 FF 0F 24 [13:32:50]process_action close_receipt done [13:32:50]requested_data is exist [13:32:50]produce_requested_data [13:32:50]requested_item fm.sn is exist - process it [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 11 00 00 [13:32:50]Write to MH i2c: E2 08 00 A5 6B 80 11 00 00 00 00 00 00 8A [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 17 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 17 00 A5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [13:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:32:50]wFMCommunicate OK [13:32:50]requested_item fd.num is exist - process it [13:32:50]SAM_PROTO_GetFieldsCounters [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 13 00 00 [13:32:50]Write to MH i2c: E2 08 00 A6 6B 80 13 00 00 00 00 00 00 8D [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 62 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 62 00 A6 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 12 01 00 0E 04 04 00 C3 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 3A [13:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 12 01 00 0E 04 04 00 C3 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 [13:32:51]wFMCommunicate OK [13:32:51]SAM_PROTO_GetFieldsCounters done [13:32:51]requested_item shift.num is exist - process it [13:32:51]requested_item shift.opened is exist - process it [13:32:51]req_shift_opened [13:32:51]FM_GetShiftState [13:32:51]SAM_PROTO_GetShiftState [13:32:51]wFMCommunicate request_size=4 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 13 01 00 [13:32:51]Write to MH i2c: E2 08 00 A7 6B 80 13 01 00 00 00 00 00 8F [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 0E 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 0E 00 A7 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [13:32:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:32:51]wFMCommunicate OK [13:32:51]SAM_PROTO_GetShiftState done [13:32:51]FM_GetShiftState done [13:32:51]req_shift_opened done [13:32:51]requested_item shift.open_date is exist - process it [13:32:51]req_shift_open_date [13:32:51]req_shift_open_date done [13:32:51]produce_requested_data done [13:32:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70250,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:32:51]process_action_free close_receipt [13:32:51]json_value_free [13:32:51]json_value_free done [13:32:51]process_json_proto returns [13:32:51]Send response to host [13:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70250,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:32:51]free response buf [13:32:51]execute_script done [13:32:51]execute_script returns [13:32:51]free content buf [13:32:51]Sock 9.Close socket [13:32:51]Sock 9.Thread stoped [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:15]accept exits with 7 [13:34:15]New connection [13:34:15]New thread 3067170148 created [13:34:15]Thread 3067026788 joined [13:34:15]Waiting for new connection... [13:34:15] Sock 7.Parse request [13:34:15]Sock 7.Check first char [13:34:15]Sock 7.First char is OK [13:34:15]request: POST /json_proto HTTP/1.0 [13:34:15]Method: POST [13:34:15]URL: /json_proto [13:34:15]Method is POST - this is cgi request [13:34:15]url: /json_proto [13:34:15]query_string will be loaded in cgi processing [13:34:15]execute_cgi json_proto POST (null) [13:34:15]execute_cgi path=json_proto method=POST [13:34:15]POST find Content-Length [13:34:15]Host: 172.17.50.3:8080 [13:34:15]Content-Length: 770 [13:34:15]Content-Type: application/json [13:34:15] [13:34:15]POST finish read [13:34:15]Found Content-Length = 770 [13:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:15]execute_script... [13:34: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)2886020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:15]POST & json_proto [13:34:15]process_json_proto [13:34:15]json parsed OK: [13:34:15]protocol is kg_v1.0 [13:34:15]action value=close_receipt [13:34:15]process_action close_receipt [13:34:15]cmd_close_receipt [13:34:15]MH_GetDate [13:34:15]Write to MH i2c: F0 00 00 A8 6B 02 [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: F0 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: F0 09 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: F0 09 00 A8 6B 00 DD A9 17 67 6B 98 1E 66 96 [13:34:15]GetLastDocTimeStamp 1729603972 [13:34:15]current date 1729604061 [13:34:15]FM_GetShiftState [13:34:15]SAM_PROTO_GetShiftState [13:34:15]wFMCommunicate request_size=4 [13:34:15]MH_SAM_APDU [13:34:15]CAPDU: 80 13 01 00 [13:34:15]Write to MH i2c: E2 08 00 A9 6B 80 13 01 00 00 00 00 00 91 [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:15]Read from MH i2c: E2 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 0E 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 0E 00 A9 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7F [13:34:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:34:15]wFMCommunicate OK [13:34:15]SAM_PROTO_GetShiftState done [13:34:15]FM_GetShiftState done [13:34:15]opened in 1729555832 [13:34:15]opened+sec_in_day 1729642232 [13:34:15]quantity*price = 150032 [13:34:15]sum+1 = 150033 [13:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 199 22.10.2024 13:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70251 ФПД: 186816997871766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70251&fm=186816997871766&tin=02508201610067®Number=0000000000156251&sum=150032 [13:34:16]StoreToDocumentArchive [13:34:16]shift 195 fd 70251 [13:34:16]save to /storage/0195/doc_00070251 [13:34:16]save last doc name /storage/0195/doc_00070251 to /storage/kkm_last_doc_name [13:34:16]save OK [13:34:16]Clear old archive folders... [13:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:16]tlvbuf is 01230610 [13:34:16]SAM_PROTO_ClearQueue [13:34:16]wFMCommunicate request_size=4 [13:34:16]MH_SAM_APDU [13:34:16]CAPDU: 80 09 00 00 [13:34:16]Write to MH i2c: E2 08 00 B6 6B 80 09 00 00 00 00 00 00 93 [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:16]Read from MH i2c: E2 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 03 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 03 00 B6 6B 00 90 00 95 [13:34:16]RAPDU: 90 00 [13:34:16]wFMCommunicate OK [13:34:16]SAM_PROTO_ClearQueue done [13:34:16]KKMCreateOFDPacket [13:34:16]OFDProtocolAddRootSTLVToBuf [13:34:16]FM_MakeSignedData [13:34:16]FM_MakeSignedData [13:34:16]SAM_PROTO_SignData [13:34:16]wFMCommunicate request_size=4 [13:34:16]MH_SAM_APDU [13:34:16]CAPDU: 80 0D 01 02 [13:34:16]Write to MH i2c: E2 08 00 B7 6B 80 0D 01 02 00 00 00 00 9B [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:16]Read from MH i2c: E2 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 03 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 03 00 B7 6B 00 90 00 96 [13:34:16]RAPDU: 90 00 [13:34:16]wFMCommunicate OK [13:34:16]wFMCommunicate request_size=255 [13:34:16]MH_SAM_APDU [13:34: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 DD A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 12 01 00 35 04 06 00 A9 [13:34:16]Write to MH i2c: E2 02 01 B8 6B 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 DD A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 12 01 00 35 04 06 00 A9 00 00 7E [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 B8 6B 00 90 00 97 [13:34:17]RAPDU: 90 00 [13:34:17]wFMCommunicate OK [13:34:17]wFMCommunicate request_size=10 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 0D 02 02 05 E8 B8 CB D0 96 [13:34:17]Write to MH i2c: E2 0D 00 B9 6B 80 0D 02 02 05 00 E8 B8 CB D0 96 00 00 79 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 B9 6B 00 90 00 98 [13:34:17]RAPDU: 90 00 [13:34:17]wFMCommunicate OK [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 0D 03 02 [13:34:17]Write to MH i2c: E2 08 00 BA 6B 80 0D 03 02 00 00 00 00 A0 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 0B 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 0B 00 BA 6B 00 40 C4 51 43 16 15 23 B1 90 00 38 [13:34:17]RAPDU: 40 C4 51 43 16 15 23 B1 90 00 [13:34:17]wFMCommunicate OK [13:34:17]SAM_PROTO_SignData done [13:34:17]FM_MakeSignedData done [13:34:17]CreateOFDProtocolMessage [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 11 00 00 [13:34:17]Write to MH i2c: E2 08 00 BB 6B 80 11 00 00 00 00 00 00 A0 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 17 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 17 00 BB 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [13:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:34:17]wFMCommunicate OK [13:34:17]CreateOFDProtocolMessage done [13:34:17]OFDSenderStorePacket 70251 [13:34:17]StoreOFDPacket docnum=70251 [13:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CC A7 07 01 26 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 DD A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 12 01 00 35 04 06 00 A9 E8 B8 CB D0 96 40 C4 51 43 16 15 23 B1 [13:34:17]CheckFolder [13:34:17]dirname=/storage/ofd_packets [13:34:17]CheckFolder done [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00070251 [13:34:17]NVStorageSaveData ofd_packets/00070251 [13:34:17]File name is /storage/ofd_packets/00070251 [13:34:17]Write 301 bytes [13:34:17]NVStorageSaveData done [13:34:17]OFDSenderStorePacket done [13:34:17]KKMCreateOFDPacket done [13:34:17]NVStorageSaveData kkm_last_timestamp [13:34:17]File name is /storage/kkm_last_timestamp [13:34:17]Write 4 bytes [13:34:17]NVStorageSaveData done [13:34:17]ExternCall_PrintAddStr [13:34:17]wPrintStart [13:34:17]Write to MH i2c: 01 00 00 BC 6B 27 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 07 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 07 00 BC 6B 00 00 00 00 00 FF 0F 3C [13:34:17]RasterBufferAndPrint [13:34:17]line Счет N : (1)2886020 [13:34:17]line ИНН: 02508201610067 [13:34:17]line Контрольно-Кассовый Чек [13:34:17]line ПРОДАЖА [13:34:17]line ТРК (МРК, ГНК) : 13 [13:34:17]line Товар: 2710124500 [13:34:17]line Аи-95-К-5 [13:34:17]line 20.220 * 74.20 [13:34:17]line = 1500.32 [13:34:17]line НДС 12% НСП 1% [13:34:17]line > о реализуемом товаре [13:34:17]line ИТОГО: 1500.32 [13:34:17]line НСП 1% : 13.28 [13:34:17]line НДС 12% : 159.33 [13:34:17]line Наличными: 0.00 [13:34:17]line Безнал.: 1500.32 [13:34:17]line Место: АЗС № 85 "Партнер Нефть" [13:34:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:34:17]line СНО: Общий режим [13:34:17]line Чек 199 22.10.2024 13:34 [13:34:17]line Смена: 195 ФФД: 1.0 [13:34:17]line ЗНМ: 0300000167 [13:34:17]line РНМ: 0000000000156251 [13:34:17]line Версия ККМ: v1.0 [13:34:17]line Платежная система: Mbank [13:34:17]line ФМ: 0000000000963346 [13:34:17]line ФД: 70251 [13:34:17]line ФПД: 186816997871766 [13:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70251&fm=186816997871766&tin=02508201610067®Number=0000000000156251&sum=150032 [13:34:17]OFD Sender: Processing packet 70251 [packets to send 18, broken 17] [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00070251 [13:34:17]OFD Sender: To server: pG, [13:34:17]CommunicateWithHost lk.salyk.kg:30040 [13:34:17]ConnectInit lk.salyk.kg [13:34:17]written 0, free lines is 4095 [13:34:17]Connected sock=10 [13:34: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 34 36 0F 01 00 00 CC A7 07 01 26 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 DD A9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 12 01 00 35 04 06 00 A9 E8 B8 CB D0 96 40 C4 51 43 16 15 23 B1 [13:34: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 34 36 4F 00 00 00 58 C5 47 00 31 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 34 36 10 04 04 00 6B 12 01 00 F4 03 04 00 7D 53 17 67 B6 04 01 00 00 5F 28 51 EE AA 5E B8 32 [13:34:17]CommunicateWithHost err = 0 [13:34:17]CheckOFDResponse [13:34:17]1017 (14) - 77093643461234 [13:34:17]1041 (16) - 0000000000963346 [13:34:17]1040 (4) - 70251 [13:34:17]1012 (4) - 22.10.2024 07:25 [13:34:17]1206 (1) - 0 [13:34:17]OFD Sender: Remove packet 70251 [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00070251 [13:34:17]NVStorageDeleteData [13:34:17]Write to MH i2c: 01 00 00 E5 6B 50 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 07 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 07 00 E5 6B 00 00 00 00 00 20 0D 84 [13:34:17]RasterBufferAndPrint [13:34:17]line [13:34:17]line [13:34:17]line [13:34:17]line [13:34:17]line [13:34:17]written 0, free lines is 3366 [13:34:17]MH_Cut [13:34:17]Write to MH i2c: D1 01 00 EC 6B 01 29 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: D1 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: D1 01 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: D1 01 00 EC 6B 00 28 [13:34:17]Write to MH i2c: 01 00 00 ED 6B 58 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:18]OFD Sender: No OFD packet to send [13:34:18]*** Cut start [13:34:18]*** Partial cut [13:34:18]*** CUTSNS_PIN = 1 [13:34:18]*** CUTSNS_PIN = 0 [13:34:18]*** Brake cut motor [13:34:19]Read from MH i2c: 01 [13:34:19]MH_I2C_Read... [13:34:19]*** Stop cut motor [13:34:19]*** Cut end [13:34:19]Read from MH i2c: 01 07 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: 01 07 00 ED 6B 00 00 00 00 00 FF 0F 6D [13:34:19]process_action close_receipt done [13:34:19]requested_data is exist [13:34:19]produce_requested_data [13:34:19]requested_item fm.sn is exist - process it [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 11 00 00 [13:34:19]Write to MH i2c: E2 08 00 EE 6B 80 11 00 00 00 00 00 00 D3 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 17 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 17 00 EE 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [13:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:34:19]wFMCommunicate OK [13:34:19]requested_item fd.num is exist - process it [13:34:19]SAM_PROTO_GetFieldsCounters [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 13 00 00 [13:34:19]Write to MH i2c: E2 08 00 EF 6B 80 13 00 00 00 00 00 00 D6 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 62 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 62 00 EF 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 12 01 00 0E 04 04 00 C3 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 87 [13:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 12 01 00 0E 04 04 00 C3 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 [13:34:19]wFMCommunicate OK [13:34:19]SAM_PROTO_GetFieldsCounters done [13:34:19]requested_item shift.num is exist - process it [13:34:19]requested_item shift.opened is exist - process it [13:34:19]req_shift_opened [13:34:19]FM_GetShiftState [13:34:19]SAM_PROTO_GetShiftState [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 13 01 00 [13:34:19]Write to MH i2c: E2 08 00 F0 6B 80 13 01 00 00 00 00 00 D8 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:19]Read from MH i2c: E2 0E 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 0E 00 F0 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C6 [13:34:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:34:19]wFMCommunicate OK [13:34:19]SAM_PROTO_GetShiftState done [13:34:19]FM_GetShiftState done [13:34:19]req_shift_opened done [13:34:19]requested_item shift.open_date is exist - process it [13:34:19]req_shift_open_date [13:34:19]req_shift_open_date done [13:34:19]produce_requested_data done [13:34:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70251,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:34:19]process_action_free close_receipt [13:34:19]json_value_free [13:34:19]json_value_free done [13:34:19]process_json_proto returns [13:34:19]Send response to host [13:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70251,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:34:19]free response buf [13:34:19]execute_script done [13:34:19]execute_script returns [13:34:19]free content buf [13:34:19]Sock 7.Close socket [13:34:19]Sock 7.Thread stoped [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:08]accept exits with 9 [13:36:08]New connection [13:36:08]New thread 3067026788 created [13:36:08]Thread 3067170148 joined [13:36:08]Waiting for new connection... [13:36:08] Sock 9.Parse request [13:36:08]Sock 9.Check first char [13:36:08]Sock 9.First char is OK [13:36:08]request: POST /json_proto HTTP/1.0 [13:36:08]Method: POST [13:36:08]URL: /json_proto [13:36:08]Method is POST - this is cgi request [13:36:08]url: /json_proto [13:36:08]query_string will be loaded in cgi processing [13:36:08]execute_cgi json_proto POST (null) [13:36:08]execute_cgi path=json_proto method=POST [13:36:08]POST find Content-Length [13:36:08]Host: 172.17.50.3:8080 [13:36:08]Content-Length: 675 [13:36:08]Content-Type: application/json [13:36:08] [13:36:08]POST finish read [13:36:08]Found Content-Length = 675 [13:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886022", "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" : 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" ] } } [13:36:08]execute_script... [13:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886022", "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" : 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" ] } } [13:36:08]POST & json_proto [13:36:08]process_json_proto [13:36:08]json parsed OK: [13:36:08]protocol is kg_v1.0 [13:36:08]action value=close_receipt [13:36:08]process_action close_receipt [13:36:08]cmd_close_receipt [13:36:08]MH_GetDate [13:36:08]Write to MH i2c: F0 00 00 F1 6B 4B [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: F0 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: F0 09 00 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: F0 09 00 F1 6B 00 4E AA 17 67 6B 98 1E 66 51 [13:36:08]GetLastDocTimeStamp 1729604061 [13:36:08]current date 1729604174 [13:36:08]FM_GetShiftState [13:36:08]SAM_PROTO_GetShiftState [13:36:08]wFMCommunicate request_size=4 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 13 01 00 [13:36:08]Write to MH i2c: E2 08 00 F2 6B 80 13 01 00 00 00 00 00 DA [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:08]Read from MH i2c: E2 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 0E 00 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 0E 00 F2 6B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C8 [13:36:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:36:08]wFMCommunicate OK [13:36:08]SAM_PROTO_GetShiftState done [13:36:08]FM_GetShiftState done [13:36:08]opened in 1729555832 [13:36:08]opened+sec_in_day 1729642232 [13:36:08]quantity*price = 25069 [13:36:08]sum+1 = 25071 [13:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 200 22.10.2024 13:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70252 ФПД: 281154804231196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70252&fm=281154804231196&tin=02508201610067®Number=0000000000156251&sum=25000 [13:36:10]StoreToDocumentArchive [13:36:10]shift 195 fd 70252 [13:36:10]save to /storage/0195/doc_00070252 [13:36:10]save last doc name /storage/0195/doc_00070252 to /storage/kkm_last_doc_name [13:36:10]save OK [13:36:10]Clear old archive folders... [13:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:10]tlvbuf is 011BCEC0 [13:36:10]SAM_PROTO_ClearQueue [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 09 00 00 [13:36:10]Write to MH i2c: E2 08 00 FF 6B 80 09 00 00 00 00 00 00 DC [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 FF 6B 00 90 00 DE [13:36:10]RAPDU: 90 00 [13:36:10]wFMCommunicate OK [13:36:10]SAM_PROTO_ClearQueue done [13:36:10]KKMCreateOFDPacket [13:36:10]OFDProtocolAddRootSTLVToBuf [13:36:10]FM_MakeSignedData [13:36:10]FM_MakeSignedData [13:36:10]SAM_PROTO_SignData [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 0D 01 02 [13:36:10]Write to MH i2c: E2 08 00 00 6C 80 0D 01 02 00 00 00 00 E5 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 00 6C 00 90 00 E0 [13:36:10]RAPDU: 90 00 [13:36:10]wFMCommunicate OK [13:36:10]wFMCommunicate request_size=255 [13:36:10]MH_SAM_APDU [13:36:10]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 C8 00 00 00 F4 03 04 00 4E AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 12 01 00 35 04 06 00 FF B5 74 3B [13:36:10]Write to MH i2c: E2 02 01 01 6C 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 C8 00 00 00 F4 03 04 00 4E AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 12 01 00 35 04 06 00 FF B5 74 3B 00 00 95 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 01 6C 00 90 00 E1 [13:36:10]RAPDU: 90 00 [13:36:10]wFMCommunicate OK [13:36:10]wFMCommunicate request_size=7 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 0D 02 02 02 AC 1C [13:36:10]Write to MH i2c: E2 0A 00 02 6C 80 0D 02 02 02 00 AC 1C 00 00 B4 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 03 00 02 6C 00 90 00 E2 [13:36:10]RAPDU: 90 00 [13:36:10]wFMCommunicate OK [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 0D 03 02 [13:36:10]Write to MH i2c: E2 08 00 03 6C 80 0D 03 02 00 00 00 00 EA [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0B 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0B 00 03 6C 00 6D 99 B5 67 5A 1D 77 1B 90 00 16 [13:36:10]RAPDU: 6D 99 B5 67 5A 1D 77 1B 90 00 [13:36:10]wFMCommunicate OK [13:36:10]SAM_PROTO_SignData done [13:36:10]FM_MakeSignedData done [13:36:10]CreateOFDProtocolMessage [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 11 00 00 [13:36:10]Write to MH i2c: E2 08 00 04 6C 80 11 00 00 00 00 00 00 EA [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 17 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 17 00 04 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [13:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:10]wFMCommunicate OK [13:36:10]CreateOFDProtocolMessage done [13:36:10]OFDSenderStorePacket 70252 [13:36:10]StoreOFDPacket docnum=70252 [13:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 39 62 04 01 CA 78 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 C8 00 00 00 F4 03 04 00 4E AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 12 01 00 35 04 06 00 FF B5 74 3B AC 1C 6D 99 B5 67 5A 1D 77 1B [13:36:10]CheckFolder [13:36:10]dirname=/storage/ofd_packets [13:36:10]CheckFolder done [13:36:10]ProducePacketName [13:36:10]name=ofd_packets/00070252 [13:36:10]NVStorageSaveData ofd_packets/00070252 [13:36:10]File name is /storage/ofd_packets/00070252 [13:36:10]Write 298 bytes [13:36:10]NVStorageSaveData done [13:36:10]OFDSenderStorePacket done [13:36:10]KKMCreateOFDPacket done [13:36:10]NVStorageSaveData kkm_last_timestamp [13:36:10]File name is /storage/kkm_last_timestamp [13:36:10]Write 4 bytes [13:36:10]NVStorageSaveData done [13:36:10]ExternCall_PrintAddStr [13:36:10]wPrintStart [13:36:10]Write to MH i2c: 01 00 00 05 6C 71 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 05 6C 00 00 00 00 00 FF 0F 86 [13:36:10]RasterBufferAndPrint [13:36:10]line Счет N : (1)2886022 [13:36:10]line ИНН: 02508201610067 [13:36:10]line Контрольно-Кассовый Чек [13:36:10]line ПРОДАЖА [13:36:10]line ТРК (МРК, ГНК) : 51 [13:36:10]line Товар: 2710194210 [13:36:10]line ДТ-К-5 [13:36:10]line 3.290 * 76.20 [13:36:10]line = 250.70 [13:36:10]line НДС 12% НСП 1% [13:36:10]line > о реализуемом товаре [13:36:10]line ОКРУГЛЕНИЕ: -0.70 [13:36:10]line ИТОГО: 250.00 [13:36:10]line Внесено: 250.00 [13:36:10]line СДАЧА: 0.00 [13:36:10]line НСП 1% : 2.22 [13:36:10]line НДС 12% : 26.62 [13:36:10]line Наличными: 250.00 [13:36:10]line Безнал.: 0.00 [13:36:10]line Место: АЗС № 85 "Партнер Нефть" [13:36:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:36:10]line СНО: Общий режим [13:36:10]line Чек 200 22.10.2024 13:36 [13:36:10]line Смена: 195 ФФД: 1.0 [13:36:10]line ЗНМ: 0300000167 [13:36:10]line РНМ: 0000000000156251 [13:36:10]line Версия ККМ: v1.0 [13:36:10]line ФМ: 0000000000963346 [13:36:10]line ФД: 70252 [13:36:10]line ФПД: 281154804231196 [13:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70252&fm=281154804231196&tin=02508201610067®Number=0000000000156251&sum=25000 [13:36:10]OFD Sender: Processing packet 70252 [packets to send 18, broken 17] [13:36:10]ProducePacketName [13:36:10]name=ofd_packets/00070252 [13:36:10]OFD Sender: To server: pG, [13:36:10]CommunicateWithHost lk.salyk.kg:30040 [13:36:10]ConnectInit lk.salyk.kg [13:36:10]written 0, free lines is 4095 [13:36:11]Connected sock=10 [13:36: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 34 36 0C 01 00 00 39 62 04 01 CA 78 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 C8 00 00 00 F4 03 04 00 4E AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 12 01 00 35 04 06 00 FF B5 74 3B AC 1C 6D 99 B5 67 5A 1D 77 1B [13:36: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 34 36 4F 00 00 00 F1 FC 47 00 84 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 34 36 10 04 04 00 6C 12 01 00 F4 03 04 00 EF 53 17 67 B6 04 01 00 00 B7 0E C6 58 E7 DE DE 24 [13:36:11]CommunicateWithHost err = 0 [13:36:11]CheckOFDResponse [13:36:11]1017 (14) - 77093643461234 [13:36:11]1041 (16) - 0000000000963346 [13:36:11]1040 (4) - 70252 [13:36:11]1012 (4) - 22.10.2024 07:27 [13:36:11]1206 (1) - 0 [13:36:11]OFD Sender: Remove packet 70252 [13:36:11]ProducePacketName [13:36:11]name=ofd_packets/00070252 [13:36:11]NVStorageDeleteData [13:36:11]Write to MH i2c: 01 00 00 30 6C 9C [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 30 6C 00 00 00 00 00 F6 0C A5 [13:36:11]RasterBufferAndPrint [13:36:11]line [13:36:11]line [13:36:11]line [13:36:11]line [13:36:11]line [13:36:11]written 0, free lines is 3328 [13:36:11]MH_Cut [13:36:11]Write to MH i2c: D1 01 00 37 6C 01 75 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: D1 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: D1 01 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: D1 01 00 37 6C 00 74 [13:36:11]Write to MH i2c: 01 00 00 38 6C A4 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]OFD Sender: No OFD packet to send [13:36:12]*** Cut start [13:36:12]*** Partial cut [13:36:12]*** CUTSNS_PIN = 1 [13:36:12]*** CUTSNS_PIN = 0 [13:36:12]*** Brake cut motor [13:36:12]Read from MH i2c: 01 [13:36:12]MH_I2C_Read... [13:36:12]*** Stop cut motor [13:36:12]*** Cut end [13:36:12]Read from MH i2c: 01 07 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 38 6C 00 00 00 00 00 FF 0F B9 [13:36:12]process_action close_receipt done [13:36:12]requested_data is exist [13:36:12]produce_requested_data [13:36:12]requested_item fm.sn is exist - process it [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 11 00 00 [13:36:12]Write to MH i2c: E2 08 00 39 6C 80 11 00 00 00 00 00 00 1F [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 17 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 17 00 39 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [13:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:12]wFMCommunicate OK [13:36:12]requested_item fd.num is exist - process it [13:36:12]SAM_PROTO_GetFieldsCounters [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 13 00 00 [13:36:12]Write to MH i2c: E2 08 00 3A 6C 80 13 00 00 00 00 00 00 22 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 62 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 62 00 3A 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 12 01 00 0E 04 04 00 C3 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 D7 [13:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 12 01 00 0E 04 04 00 C3 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 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_GetFieldsCounters done [13:36:12]requested_item shift.num is exist - process it [13:36:12]requested_item shift.opened is exist - process it [13:36:12]req_shift_opened [13:36:12]FM_GetShiftState [13:36:12]SAM_PROTO_GetShiftState [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 13 01 00 [13:36:12]Write to MH i2c: E2 08 00 3B 6C 80 13 01 00 00 00 00 00 24 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 3B 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 12 [13:36:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_GetShiftState done [13:36:12]FM_GetShiftState done [13:36:12]req_shift_opened done [13:36:12]requested_item shift.open_date is exist - process it [13:36:12]req_shift_open_date [13:36:12]req_shift_open_date done [13:36:12]produce_requested_data done [13:36:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70252,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:36:12]process_action_free close_receipt [13:36:12]json_value_free [13:36:12]json_value_free done [13:36:12]process_json_proto returns [13:36:12]Send response to host [13:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70252,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:36:12]free response buf [13:36:12]execute_script done [13:36:12]execute_script returns [13:36:12]free content buf [13:36:12]Sock 9.Close socket [13:36:12]Sock 9.Thread stoped [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]accept exits with 7 [13:36:26]New connection [13:36:26]New thread 3067170148 created [13:36:26]Thread 3067026788 joined [13:36:26]Waiting for new connection... [13:36:26] Sock 7.Parse request [13:36:26]Sock 7.Check first char [13:36:26]Sock 7.First char is OK [13:36:26]request: POST /json_proto HTTP/1.0 [13:36:26]Method: POST [13:36:26]URL: /json_proto [13:36:26]Method is POST - this is cgi request [13:36:26]url: /json_proto [13:36:26]query_string will be loaded in cgi processing [13:36:26]execute_cgi json_proto POST (null) [13:36:26]execute_cgi path=json_proto method=POST [13:36:26]POST find Content-Length [13:36:26]Host: 172.17.50.3:8080 [13:36:26]Content-Length: 683 [13:36:26]Content-Type: application/json [13:36:26] [13:36:26]POST finish read [13:36:26]Found Content-Length = 683 [13:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [13:36:26]execute_script... [13:36: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)2886021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [13:36:26]POST & json_proto [13:36:26]process_json_proto [13:36:26]json parsed OK: [13:36:26]protocol is kg_v1.0 [13:36:26]action value=close_receipt [13:36:26]process_action close_receipt [13:36:26]cmd_close_receipt [13:36:26]MH_GetDate [13:36:26]Write to MH i2c: F0 00 00 3C 6C 97 [13:36:26]Write i2c OK [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: F0 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: F0 09 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: F0 09 00 3C 6C 00 60 AA 17 67 6B 98 1E 66 AF [13:36:26]GetLastDocTimeStamp 1729604174 [13:36:26]current date 1729604192 [13:36:26]FM_GetShiftState [13:36:26]SAM_PROTO_GetShiftState [13:36:26]wFMCommunicate request_size=4 [13:36:26]MH_SAM_APDU [13:36:26]CAPDU: 80 13 01 00 [13:36:26]Write to MH i2c: E2 08 00 3D 6C 80 13 01 00 00 00 00 00 26 [13:36:26]Write i2c OK [13:36:26]MH_I2C_Read... [13:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:26]Read from MH i2c: E2 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 0E 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 0E 00 3D 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 14 [13:36:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:36:26]wFMCommunicate OK [13:36:26]SAM_PROTO_GetShiftState done [13:36:26]FM_GetShiftState done [13:36:26]opened in 1729555832 [13:36:26]opened+sec_in_day 1729642232 [13:36:26]quantity*price = 100015 [13:36:26]sum+1 = 100017 [13:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 201 22.10.2024 13:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70253 ФПД: 246082574529014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70253&fm=246082574529014&tin=02508201610067®Number=0000000000156251&sum=100000 [13:36:27]StoreToDocumentArchive [13:36:27]shift 195 fd 70253 [13:36:27]save to /storage/0195/doc_00070253 [13:36:27]save last doc name /storage/0195/doc_00070253 to /storage/kkm_last_doc_name [13:36:27]save OK [13:36:27]Clear old archive folders... [13:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:27]tlvbuf is 01154FF0 [13:36:27]SAM_PROTO_ClearQueue [13:36:27]wFMCommunicate request_size=4 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 09 00 00 [13:36:27]Write to MH i2c: E2 08 00 4A 6C 80 09 00 00 00 00 00 00 28 [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:27]Read from MH i2c: E2 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 03 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 03 00 4A 6C 00 90 00 2A [13:36:27]RAPDU: 90 00 [13:36:27]wFMCommunicate OK [13:36:27]SAM_PROTO_ClearQueue done [13:36:27]KKMCreateOFDPacket [13:36:27]OFDProtocolAddRootSTLVToBuf [13:36:27]FM_MakeSignedData [13:36:27]FM_MakeSignedData [13:36:27]SAM_PROTO_SignData [13:36:27]wFMCommunicate request_size=4 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 0D 01 02 [13:36:27]Write to MH i2c: E2 08 00 4B 6C 80 0D 01 02 00 00 00 00 30 [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:27]Read from MH i2c: E2 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 03 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 03 00 4B 6C 00 90 00 2B [13:36:27]RAPDU: 90 00 [13:36:27]wFMCommunicate OK [13:36:27]wFMCommunicate request_size=255 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 60 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 12 01 00 35 04 06 00 DF [13:36:27]Write to MH i2c: E2 02 01 4C 6C 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 C9 00 00 00 F4 03 04 00 60 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 12 01 00 35 04 06 00 DF 00 00 26 [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:28]Read from MH i2c: E2 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 03 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 03 00 4C 6C 00 90 00 2C [13:36:28]RAPDU: 90 00 [13:36:28]wFMCommunicate OK [13:36:28]wFMCommunicate request_size=10 [13:36:28]MH_SAM_APDU [13:36:28]CAPDU: 80 0D 02 02 05 CF 90 70 B1 F6 [13:36:28]Write to MH i2c: E2 0D 00 4D 6C 80 0D 02 02 05 00 CF 90 70 B1 F6 00 00 B3 [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:28]Read from MH i2c: E2 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 03 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 03 00 4D 6C 00 90 00 2D [13:36:28]RAPDU: 90 00 [13:36:28]wFMCommunicate OK [13:36:28]wFMCommunicate request_size=4 [13:36:28]MH_SAM_APDU [13:36:28]CAPDU: 80 0D 03 02 [13:36:28]Write to MH i2c: E2 08 00 4E 6C 80 0D 03 02 00 00 00 00 35 [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:28]Read from MH i2c: E2 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 0B 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 0B 00 4E 6C 00 5A 0B 5A 8A 5C 21 E9 29 90 00 0E [13:36:28]RAPDU: 5A 0B 5A 8A 5C 21 E9 29 90 00 [13:36:28]wFMCommunicate OK [13:36:28]SAM_PROTO_SignData done [13:36:28]FM_MakeSignedData done [13:36:28]CreateOFDProtocolMessage [13:36:28]wFMCommunicate request_size=4 [13:36:28]MH_SAM_APDU [13:36:28]CAPDU: 80 11 00 00 [13:36:28]Write to MH i2c: E2 08 00 4F 6C 80 11 00 00 00 00 00 00 35 [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:28]Read from MH i2c: E2 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 17 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 17 00 4F 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [13:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:28]wFMCommunicate OK [13:36:28]CreateOFDProtocolMessage done [13:36:28]OFDSenderStorePacket 70253 [13:36:28]StoreOFDPacket docnum=70253 [13:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 6F 07 01 BC 72 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 C9 00 00 00 F4 03 04 00 60 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 12 01 00 35 04 06 00 DF CF 90 70 B1 F6 5A 0B 5A 8A 5C 21 E9 29 [13:36:28]CheckFolder [13:36:28]dirname=/storage/ofd_packets [13:36:28]CheckFolder done [13:36:28]ProducePacketName [13:36:28]name=ofd_packets/00070253 [13:36:28]NVStorageSaveData ofd_packets/00070253 [13:36:28]File name is /storage/ofd_packets/00070253 [13:36:28]Write 301 bytes [13:36:28]NVStorageSaveData done [13:36:28]OFDSenderStorePacket done [13:36:28]KKMCreateOFDPacket done [13:36:28]NVStorageSaveData kkm_last_timestamp [13:36:28]File name is /storage/kkm_last_timestamp [13:36:28]Write 4 bytes [13:36:28]NVStorageSaveData done [13:36:28]ExternCall_PrintAddStr [13:36:28]wPrintStart [13:36:28]Write to MH i2c: 01 00 00 50 6C BC [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: 01 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: 01 07 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: 01 07 00 50 6C 00 00 00 00 00 FF 0F D1 [13:36:28]RasterBufferAndPrint [13:36:28]line Счет N : (1)2886021 [13:36:28]line ИНН: 02508201610067 [13:36:28]line Контрольно-Кассовый Чек [13:36:28]line ПРОДАЖА [13:36:28]line ТРК (МРК, ГНК) : 22 [13:36:28]line Товар: 2710124130 [13:36:28]line Аи-92-К-5 [13:36:28]line 14.950 * 66.90 [13:36:28]line = 1000.16 [13:36:28]line НДС 12% НСП 1% [13:36:28]line > о реализуемом товаре [13:36:28]line ОКРУГЛЕНИЕ: -0.16 [13:36:28]line ИТОГО: 1000.00 [13:36:28]line Внесено: 1000.00 [13:36:28]line СДАЧА: 0.00 [13:36:28]line НСП 1% : 8.85 [13:36:28]line НДС 12% : 106.21 [13:36:28]line Наличными: 1000.00 [13:36:28]line Безнал.: 0.00 [13:36:28]line Место: АЗС № 85 "Партнер Нефть" [13:36:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:36:28]line СНО: Общий режим [13:36:28]line Чек 201 22.10.2024 13:36 [13:36:28]line Смена: 195 ФФД: 1.0 [13:36:28]line ЗНМ: 0300000167 [13:36:28]line РНМ: 0000000000156251 [13:36:28]line Версия ККМ: v1.0 [13:36:28]line ФМ: 0000000000963346 [13:36:28]line ФД: 70253 [13:36:28]line ФПД: 246082574529014 [13:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70253&fm=246082574529014&tin=02508201610067®Number=0000000000156251&sum=100000 [13:36:28]OFD Sender: Processing packet 70253 [packets to send 18, broken 17] [13:36:28]ProducePacketName [13:36:28]name=ofd_packets/00070253 [13:36:28]OFD Sender: To server: pG, [13:36:28]CommunicateWithHost lk.salyk.kg:30040 [13:36:28]ConnectInit lk.salyk.kg [13:36:28]written 0, free lines is 4095 [13:36:28]Connected sock=10 [13:36: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 34 36 0F 01 00 00 89 6F 07 01 BC 72 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 C9 00 00 00 F4 03 04 00 60 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 12 01 00 35 04 06 00 DF CF 90 70 B1 F6 5A 0B 5A 8A 5C 21 E9 29 [13:36: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 34 36 4F 00 00 00 2C DE 47 00 15 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 34 36 10 04 04 00 6D 12 01 00 F4 03 04 00 00 54 17 67 B6 04 01 00 00 54 EE A3 14 CB C2 57 8F [13:36:28]CommunicateWithHost err = 0 [13:36:28]CheckOFDResponse [13:36:28]1017 (14) - 77093643461234 [13:36:28]1041 (16) - 0000000000963346 [13:36:28]1040 (4) - 70253 [13:36:28]1012 (4) - 22.10.2024 07:28 [13:36:28]1206 (1) - 0 [13:36:28]OFD Sender: Remove packet 70253 [13:36:28]ProducePacketName [13:36:28]name=ofd_packets/00070253 [13:36:28]NVStorageDeleteData [13:36:29]Write to MH i2c: 01 00 00 7B 6C E7 [13:36:29]Write i2c OK [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: 01 [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: 01 07 00 [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: 01 07 00 7B 6C 00 00 00 00 00 F8 0C F2 [13:36:29]RasterBufferAndPrint [13:36:29]line [13:36:29]line [13:36:29]line [13:36:29]line [13:36:29]line [13:36:29]written 0, free lines is 3326 [13:36:29]MH_Cut [13:36:29]Write to MH i2c: D1 01 00 82 6C 01 C0 [13:36:29]Write i2c OK [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: D1 [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: D1 01 00 [13:36:29]MH_I2C_Read... [13:36:29]Read from MH i2c: D1 01 00 82 6C 00 BF [13:36:29]Write to MH i2c: 01 00 00 83 6C EF [13:36:29]Write i2c OK [13:36:29]MH_I2C_Read... [13:36:29]OFD Sender: No OFD packet to send [13:36:29]*** Cut start [13:36:29]*** Partial cut [13:36:29]*** CUTSNS_PIN = 1 [13:36:29]*** CUTSNS_PIN = 0 [13:36:29]*** Brake cut motor [13:36:30]Read from MH i2c: 01 [13:36:30]MH_I2C_Read... [13:36:30]*** Stop cut motor [13:36:30]*** Cut end [13:36:30]Read from MH i2c: 01 07 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: 01 07 00 83 6C 00 00 00 00 00 FF 0F 04 [13:36:30]process_action close_receipt done [13:36:30]requested_data is exist [13:36:30]produce_requested_data [13:36:30]requested_item fm.sn is exist - process it [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 11 00 00 [13:36:30]Write to MH i2c: E2 08 00 84 6C 80 11 00 00 00 00 00 00 6A [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 17 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 17 00 84 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [13:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:30]wFMCommunicate OK [13:36:30]requested_item fd.num is exist - process it [13:36:30]SAM_PROTO_GetFieldsCounters [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 13 00 00 [13:36:30]Write to MH i2c: E2 08 00 85 6C 80 13 00 00 00 00 00 00 6D [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 62 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 62 00 85 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 12 01 00 0E 04 04 00 C3 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 26 [13:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 12 01 00 0E 04 04 00 C3 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 [13:36:30]wFMCommunicate OK [13:36:30]SAM_PROTO_GetFieldsCounters done [13:36:30]requested_item shift.num is exist - process it [13:36:30]requested_item shift.opened is exist - process it [13:36:30]req_shift_opened [13:36:30]FM_GetShiftState [13:36:30]SAM_PROTO_GetShiftState [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 13 01 00 [13:36:30]Write to MH i2c: E2 08 00 86 6C 80 13 01 00 00 00 00 00 6F [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0E 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0E 00 86 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [13:36:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:36:30]wFMCommunicate OK [13:36:30]SAM_PROTO_GetShiftState done [13:36:30]FM_GetShiftState done [13:36:30]req_shift_opened done [13:36:30]requested_item shift.open_date is exist - process it [13:36:30]req_shift_open_date [13:36:30]req_shift_open_date done [13:36:30]produce_requested_data done [13:36:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70253,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:36:30]process_action_free close_receipt [13:36:30]json_value_free [13:36:30]json_value_free done [13:36:30]process_json_proto returns [13:36:30]Send response to host [13:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70253,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:36:30]free response buf [13:36:30]execute_script done [13:36:30]execute_script returns [13:36:30]free content buf [13:36:30]Sock 7.Close socket [13:36:30]Sock 7.Thread stoped [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:58]accept exits with 9 [13:36:58]New connection [13:36:58]New thread 3067026788 created [13:36:58]Thread 3067170148 joined [13:36:58]Waiting for new connection... [13:36:58] Sock 9.Parse request [13:36:58]Sock 9.Check first char [13:36:58]Sock 9.First char is OK [13:36:58]request: POST /json_proto HTTP/1.0 [13:36:58]Method: POST [13:36:58]URL: /json_proto [13:36:58]Method is POST - this is cgi request [13:36:58]url: /json_proto [13:36:58]query_string will be loaded in cgi processing [13:36:58]execute_cgi json_proto POST (null) [13:36:58]execute_cgi path=json_proto method=POST [13:36:58]POST find Content-Length [13:36:58]Host: 172.17.50.3:8080 [13:36:58]Content-Length: 767 [13:36:58]Content-Type: application/json [13:36:58] [13:36:58]POST finish read [13:36:58]Found Content-Length = 767 [13:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:58]execute_script... [13: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)2886023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:58]POST & json_proto [13:36:58]process_json_proto [13:36:58]json parsed OK: [13:36:58]protocol is kg_v1.0 [13:36:58]action value=close_receipt [13:36:58]process_action close_receipt [13:36:58]cmd_close_receipt [13:36:58]MH_GetDate [13:36:58]Write to MH i2c: F0 00 00 87 6C E2 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 09 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: F0 09 00 87 6C 00 80 AA 17 67 6B 98 1E 66 1A [13:36:58]GetLastDocTimeStamp 1729604192 [13:36:58]current date 1729604224 [13:36:58]FM_GetShiftState [13:36:58]SAM_PROTO_GetShiftState [13:36:58]wFMCommunicate request_size=4 [13:36:58]MH_SAM_APDU [13:36:58]CAPDU: 80 13 01 00 [13:36:58]Write to MH i2c: E2 08 00 88 6C 80 13 01 00 00 00 00 00 71 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:58]Read from MH i2c: E2 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 88 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [13:36:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:36:58]wFMCommunicate OK [13:36:58]SAM_PROTO_GetShiftState done [13:36:58]FM_GetShiftState done [13:36:58]opened in 1729555832 [13:36:58]opened+sec_in_day 1729642232 [13:36:58]quantity*price = 30038 [13:36:58]sum+1 = 30039 [13:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 202 22.10.2024 13:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70254 ФПД: 108132716702101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70254&fm=108132716702101&tin=02508201610067®Number=0000000000156251&sum=30038 [13:36:59]StoreToDocumentArchive [13:36:59]shift 195 fd 70254 [13:36:59]save to /storage/0195/doc_00070254 [13:36:59]save last doc name /storage/0195/doc_00070254 to /storage/kkm_last_doc_name [13:36:59]save OK [13:36:59]Clear old archive folders... [13:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:59]tlvbuf is 01144850 [13:36:59]SAM_PROTO_ClearQueue [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 09 00 00 [13:36:59]Write to MH i2c: E2 08 00 95 6C 80 09 00 00 00 00 00 00 73 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 95 6C 00 90 00 75 [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]SAM_PROTO_ClearQueue done [13:36:59]KKMCreateOFDPacket [13:36:59]OFDProtocolAddRootSTLVToBuf [13:36:59]FM_MakeSignedData [13:36:59]FM_MakeSignedData [13:36:59]SAM_PROTO_SignData [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 0D 01 02 [13:36:59]Write to MH i2c: E2 08 00 96 6C 80 0D 01 02 00 00 00 00 7B [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 03 00 96 6C 00 90 00 76 [13:36:59]RAPDU: 90 00 [13:36:59]wFMCommunicate OK [13:36:59]wFMCommunicate request_size=255 [13:36:59]MH_SAM_APDU [13:36: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 56 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 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 12 01 00 35 04 06 00 62 [13:36:59]Write to MH i2c: E2 02 01 97 6C 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 56 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 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 12 01 00 35 04 06 00 62 00 00 5C [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 03 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 03 00 97 6C 00 90 00 77 [13:37:00]RAPDU: 90 00 [13:37:00]wFMCommunicate OK [13:37:00]wFMCommunicate request_size=10 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 0D 02 02 05 58 9C 2A E9 95 [13:37:00]Write to MH i2c: E2 0D 00 98 6C 80 0D 02 02 05 00 58 9C 2A E9 95 00 00 24 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 03 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 03 00 98 6C 00 90 00 78 [13:37:00]RAPDU: 90 00 [13:37:00]wFMCommunicate OK [13:37:00]wFMCommunicate request_size=4 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 0D 03 02 [13:37:00]Write to MH i2c: E2 08 00 99 6C 80 0D 03 02 00 00 00 00 80 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 0B 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 0B 00 99 6C 00 77 7E D6 1F 4D 41 88 35 90 00 B6 [13:37:00]RAPDU: 77 7E D6 1F 4D 41 88 35 90 00 [13:37:00]wFMCommunicate OK [13:37:00]SAM_PROTO_SignData done [13:37:00]FM_MakeSignedData done [13:37:00]CreateOFDProtocolMessage [13:37:00]wFMCommunicate request_size=4 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 11 00 00 [13:37:00]Write to MH i2c: E2 08 00 9A 6C 80 11 00 00 00 00 00 00 80 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 9A 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [13:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:00]wFMCommunicate OK [13:37:00]CreateOFDProtocolMessage done [13:37:00]OFDSenderStorePacket 70254 [13:37:00]StoreOFDPacket docnum=70254 [13:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF B8 07 01 55 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 56 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 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 12 01 00 35 04 06 00 62 58 9C 2A E9 95 77 7E D6 1F 4D 41 88 35 [13:37:00]CheckFolder [13:37:00]dirname=/storage/ofd_packets [13:37:00]CheckFolder done [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00070254 [13:37:00]NVStorageSaveData ofd_packets/00070254 [13:37:00]File name is /storage/ofd_packets/00070254 [13:37:00]Write 301 bytes [13:37:00]NVStorageSaveData done [13:37:00]OFDSenderStorePacket done [13:37:00]KKMCreateOFDPacket done [13:37:00]NVStorageSaveData kkm_last_timestamp [13:37:00]File name is /storage/kkm_last_timestamp [13:37:00]Write 4 bytes [13:37:00]NVStorageSaveData done [13:37:00]ExternCall_PrintAddStr [13:37:00]wPrintStart [13:37:00]Write to MH i2c: 01 00 00 9B 6C 07 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 9B 6C 00 00 00 00 00 FF 0F 1C [13:37:00]RasterBufferAndPrint [13:37:00]line Счет N : (1)2886023 [13:37:00]line ИНН: 02508201610067 [13:37:00]line Контрольно-Кассовый Чек [13:37:00]line ПРОДАЖА [13:37:00]line ТРК (МРК, ГНК) : 42 [13:37:00]line Товар: 2710124130 [13:37:00]line Аи-92-К-5 [13:37:00]line 4.490 * 66.90 [13:37:00]line = 300.38 [13:37:00]line НДС 12% НСП 1% [13:37:00]line > о реализуемом товаре [13:37:00]line ИТОГО: 300.38 [13:37:00]line НСП 1% : 2.66 [13:37:00]line НДС 12% : 31.90 [13:37:00]line Наличными: 0.00 [13:37:00]line Безнал.: 300.38 [13:37:00]line Место: АЗС № 85 "Партнер Нефть" [13:37:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:37:00]line СНО: Общий режим [13:37:00]line Чек 202 22.10.2024 13:37 [13:37:00]line Смена: 195 ФФД: 1.0 [13:37:00]line ЗНМ: 0300000167 [13:37:00]line РНМ: 0000000000156251 [13:37:00]line Версия ККМ: v1.0 [13:37:00]line Платежная система: Mbank [13:37:00]line ФМ: 0000000000963346 [13:37:00]line ФД: 70254 [13:37:00]line ФПД: 108132716702101 [13:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70254&fm=108132716702101&tin=02508201610067®Number=0000000000156251&sum=30038 [13:37:00]written 0, free lines is 4095 [13:37:00]OFD Sender: Processing packet 70254 [packets to send 18, broken 17] [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00070254 [13:37:00]OFD Sender: To server: pG, [13:37:00]CommunicateWithHost lk.salyk.kg:30040 [13:37:00]ConnectInit lk.salyk.kg [13:37:00]Connected sock=10 [13: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 34 36 0F 01 00 00 BF B8 07 01 55 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 56 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 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 12 01 00 35 04 06 00 62 58 9C 2A E9 95 77 7E D6 1F 4D 41 88 35 [13:37: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 34 36 4F 00 00 00 54 BB 47 00 A6 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 34 36 10 04 04 00 6E 12 01 00 F4 03 04 00 20 54 17 67 B6 04 01 00 00 1E 54 9A 39 69 D9 63 CD [13:37:00]CommunicateWithHost err = 0 [13:37:00]CheckOFDResponse [13:37:00]1017 (14) - 77093643461234 [13:37:00]1041 (16) - 0000000000963346 [13:37:00]1040 (4) - 70254 [13:37:00]1012 (4) - 22.10.2024 07:28 [13:37:00]1206 (1) - 0 [13:37:00]OFD Sender: Remove packet 70254 [13:37:00]ProducePacketName [13:37:00]name=ofd_packets/00070254 [13:37:00]NVStorageDeleteData [13:37:00]Write to MH i2c: 01 00 00 C4 6C 30 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 C4 6C 00 00 00 00 00 1D 0D 61 [13:37:00]RasterBufferAndPrint [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]line [13:37:00]written 0, free lines is 3363 [13:37:00]MH_Cut [13:37:00]Write to MH i2c: D1 01 00 CB 6C 01 09 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 01 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: D1 01 00 CB 6C 00 08 [13:37:00]Write to MH i2c: 01 00 00 CC 6C 38 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:01]OFD Sender: No OFD packet to send [13:37:01]*** Cut start [13:37:01]*** Partial cut [13:37:01]*** CUTSNS_PIN = 1 [13:37:01]*** CUTSNS_PIN = 0 [13:37:01]*** Brake cut motor [13:37:01]Read from MH i2c: 01 [13:37:01]MH_I2C_Read... [13:37:01]*** Stop cut motor [13:37:01]*** Cut end [13:37:01]Read from MH i2c: 01 07 00 [13:37:01]MH_I2C_Read... [13:37:01]Read from MH i2c: 01 07 00 CC 6C 00 00 00 00 00 FF 0F 4D [13:37:01]process_action close_receipt done [13:37:01]requested_data is exist [13:37:01]produce_requested_data [13:37:01]requested_item fm.sn is exist - process it [13:37:01]wFMCommunicate request_size=4 [13:37:01]MH_SAM_APDU [13:37:01]CAPDU: 80 11 00 00 [13:37:01]Write to MH i2c: E2 08 00 CD 6C 80 11 00 00 00 00 00 00 B3 [13:37:01]Write i2c OK [13:37:01]MH_I2C_Read... [13:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:01]Read from MH i2c: E2 [13:37:01]MH_I2C_Read... [13:37:01]Read from MH i2c: E2 17 00 [13:37:01]MH_I2C_Read... [13:37:01]Read from MH i2c: E2 17 00 CD 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [13:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:01]wFMCommunicate OK [13:37:01]requested_item fd.num is exist - process it [13:37:01]SAM_PROTO_GetFieldsCounters [13:37:01]wFMCommunicate request_size=4 [13:37:01]MH_SAM_APDU [13:37:01]CAPDU: 80 13 00 00 [13:37:01]Write to MH i2c: E2 08 00 CE 6C 80 13 00 00 00 00 00 00 B6 [13:37:01]Write i2c OK [13:37:01]MH_I2C_Read... [13:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:02]Read from MH i2c: E2 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 62 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 62 00 CE 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 12 01 00 0E 04 04 00 C3 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 73 [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 12 01 00 0E 04 04 00 C3 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 [13:37:02]wFMCommunicate OK [13:37:02]SAM_PROTO_GetFieldsCounters done [13:37:02]requested_item shift.num is exist - process it [13:37:02]requested_item shift.opened is exist - process it [13:37:02]req_shift_opened [13:37:02]FM_GetShiftState [13:37:02]SAM_PROTO_GetShiftState [13:37:02]wFMCommunicate request_size=4 [13:37:02]MH_SAM_APDU [13:37:02]CAPDU: 80 13 01 00 [13:37:02]Write to MH i2c: E2 08 00 CF 6C 80 13 01 00 00 00 00 00 B8 [13:37:02]Write i2c OK [13:37:02]MH_I2C_Read... [13:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:02]Read from MH i2c: E2 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 0E 00 [13:37:02]MH_I2C_Read... [13:37:02]Read from MH i2c: E2 0E 00 CF 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A6 [13:37:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:37:02]wFMCommunicate OK [13:37:02]SAM_PROTO_GetShiftState done [13:37:02]FM_GetShiftState done [13:37:02]req_shift_opened done [13:37:02]requested_item shift.open_date is exist - process it [13:37:02]req_shift_open_date [13:37:02]req_shift_open_date done [13:37:02]produce_requested_data done [13:37:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70254,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:37:02]process_action_free close_receipt [13:37:02]json_value_free [13:37:02]json_value_free done [13:37:02]process_json_proto returns [13:37:02]Send response to host [13:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70254,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:37:02]free response buf [13:37:02]execute_script done [13:37:02]execute_script returns [13:37:02]free content buf [13:37:02]Sock 9.Close socket [13:37:02]Sock 9.Thread stoped [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:15]accept exits with 7 [13:37:15]New connection [13:37:15]New thread 3067170148 created [13:37:15]Thread 3067026788 joined [13:37:15]Waiting for new connection... [13:37:15] Sock 7.Parse request [13:37:15]Sock 7.Check first char [13:37:15]Sock 7.First char is OK [13:37:15]request: POST /json_proto HTTP/1.0 [13:37:15]Method: POST [13:37:15]URL: /json_proto [13:37:15]Method is POST - this is cgi request [13:37:15]url: /json_proto [13:37:15]query_string will be loaded in cgi processing [13:37:15]execute_cgi json_proto POST (null) [13:37:15]execute_cgi path=json_proto method=POST [13:37:15]POST find Content-Length [13:37:15]Host: 172.17.50.3:8080 [13:37:15]Content-Length: 773 [13:37:15]Content-Type: application/json [13:37:15] [13:37:15]POST finish read [13:37:15]Found Content-Length = 773 [13:37:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.610, "sum" : 2085.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" : 2085.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:15]execute_script... [13:37: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)2886019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.610, "sum" : 2085.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" : 2085.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:15]POST & json_proto [13:37:15]process_json_proto [13:37:15]json parsed OK: [13:37:15]protocol is kg_v1.0 [13:37:15]action value=close_receipt [13:37:15]process_action close_receipt [13:37:15]cmd_close_receipt [13:37:15]MH_GetDate [13:37:15]Write to MH i2c: F0 00 00 D0 6C 2B [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: F0 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: F0 09 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: F0 09 00 D0 6C 00 91 AA 17 67 6B 98 1E 66 74 [13:37:15]GetLastDocTimeStamp 1729604224 [13:37:15]current date 1729604241 [13:37:15]FM_GetShiftState [13:37:15]SAM_PROTO_GetShiftState [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 13 01 00 [13:37:15]Write to MH i2c: E2 08 00 D1 6C 80 13 01 00 00 00 00 00 BA [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 0E 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 0E 00 D1 6C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A8 [13:37:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:37:15]wFMCommunicate OK [13:37:15]SAM_PROTO_GetShiftState done [13:37:15]FM_GetShiftState done [13:37:15]opened in 1729555832 [13:37:15]opened+sec_in_day 1729642232 [13:37:15]quantity*price = 208542 [13:37:15]sum+1 = 208544 [13:37:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2085.43 НСП 1% : 18.45 НДС 12% : 221.46 Наличными: 0.00 Безнал.: 2085.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 203 22.10.2024 13:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70255 ФПД: 67053070995201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70255&fm=67053070995201&tin=02508201610067®Number=0000000000156251&sum=208543 [13:37:17]StoreToDocumentArchive [13:37:17]shift 195 fd 70255 [13:37:17]save to /storage/0195/doc_00070255 [13:37:17]save last doc name /storage/0195/doc_00070255 to /storage/kkm_last_doc_name [13:37:17]save OK [13:37:17]Clear old archive folders... [13:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:37:17]tlvbuf is 01308740 [13:37:17]SAM_PROTO_ClearQueue [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 09 00 00 [13:37:17]Write to MH i2c: E2 08 00 DE 6C 80 09 00 00 00 00 00 00 BC [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 DE 6C 00 90 00 BE [13:37:17]RAPDU: 90 00 [13:37:17]wFMCommunicate OK [13:37:17]SAM_PROTO_ClearQueue done [13:37:17]KKMCreateOFDPacket [13:37:17]OFDProtocolAddRootSTLVToBuf [13:37:17]FM_MakeSignedData [13:37:17]FM_MakeSignedData [13:37:17]SAM_PROTO_SignData [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 0D 01 02 [13:37:17]Write to MH i2c: E2 08 00 DF 6C 80 0D 01 02 00 00 00 00 C4 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 DF 6C 00 90 00 BF [13:37:17]RAPDU: 90 00 [13:37:17]wFMCommunicate OK [13:37:17]wFMCommunicate request_size=255 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6A D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 91 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 12 01 00 35 04 06 00 3C FC [13:37:17]Write to MH i2c: E2 02 01 E0 6C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6A D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 91 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 12 01 00 35 04 06 00 3C FC 00 00 77 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 E0 6C 00 90 00 C0 [13:37:17]RAPDU: 90 00 [13:37:17]wFMCommunicate OK [13:37:17]wFMCommunicate request_size=9 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 0D 02 02 04 02 7A 4F 01 [13:37:17]Write to MH i2c: E2 0C 00 E1 6C 80 0D 02 02 04 00 02 7A 4F 01 00 00 9B [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 03 00 E1 6C 00 90 00 C1 [13:37:17]RAPDU: 90 00 [13:37:17]wFMCommunicate OK [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 0D 03 02 [13:37:17]Write to MH i2c: E2 08 00 E2 6C 80 0D 03 02 00 00 00 00 C9 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0B 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0B 00 E2 6C 00 88 E1 9E BB A1 A2 AD B1 90 00 2D [13:37:17]RAPDU: 88 E1 9E BB A1 A2 AD B1 90 00 [13:37:17]wFMCommunicate OK [13:37:17]SAM_PROTO_SignData done [13:37:17]FM_MakeSignedData done [13:37:17]CreateOFDProtocolMessage [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 11 00 00 [13:37:17]Write to MH i2c: E2 08 00 E3 6C 80 11 00 00 00 00 00 00 C9 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 17 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 17 00 E3 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [13:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:17]wFMCommunicate OK [13:37:17]CreateOFDProtocolMessage done [13:37:17]OFDSenderStorePacket 70255 [13:37:17]StoreOFDPacket docnum=70255 [13:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 95 87 06 01 A7 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6A D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 91 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 12 01 00 35 04 06 00 3C FC 02 7A 4F 01 88 E1 9E BB A1 A2 AD B1 [13:37:17]CheckFolder [13:37:17]dirname=/storage/ofd_packets [13:37:17]CheckFolder done [13:37:17]ProducePacketName [13:37:17]name=ofd_packets/00070255 [13:37:17]NVStorageSaveData ofd_packets/00070255 [13:37:17]File name is /storage/ofd_packets/00070255 [13:37:17]Write 300 bytes [13:37:17]NVStorageSaveData done [13:37:17]OFDSenderStorePacket done [13:37:17]KKMCreateOFDPacket done [13:37:17]NVStorageSaveData kkm_last_timestamp [13:37:17]File name is /storage/kkm_last_timestamp [13:37:17]Write 4 bytes [13:37:17]NVStorageSaveData done [13:37:17]ExternCall_PrintAddStr [13:37:17]wPrintStart [13:37:17]Write to MH i2c: 01 00 00 E4 6C 50 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 E4 6C 00 00 00 00 00 FF 0F 65 [13:37:17]RasterBufferAndPrint [13:37:17]line Счет N : (1)2886019 [13:37:17]line ИНН: 02508201610067 [13:37:17]line Контрольно-Кассовый Чек [13:37:17]line ПРОДАЖА [13:37:17]line ТРК (МРК, ГНК) : 71 [13:37:17]line Товар: 2711129700 [13:37:17]line ГАЗ-К-3 [13:37:17]line 53.610 * 38.90 [13:37:17]line = 2085.43 [13:37:17]line НДС 12% НСП 1% [13:37:17]line > о реализуемом товаре [13:37:17]line ИТОГО: 2085.43 [13:37:17]line НСП 1% : 18.45 [13:37:17]line НДС 12% : 221.46 [13:37:17]line Наличными: 0.00 [13:37:17]line Безнал.: 2085.43 [13:37:17]line Место: АЗС № 85 "Партнер Нефть" [13:37:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:37:17]line СНО: Общий режим [13:37:17]line Чек 203 22.10.2024 13:37 [13:37:17]line Смена: 195 ФФД: 1.0 [13:37:17]line ЗНМ: 0300000167 [13:37:17]line РНМ: 0000000000156251 [13:37:17]line Версия ККМ: v1.0 [13:37:17]line Платежная система: Mbank [13:37:17]line ФМ: 0000000000963346 [13:37:17]line ФД: 70255 [13:37:17]line ФПД: 67053070995201 [13:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70255&fm=67053070995201&tin=02508201610067®Number=0000000000156251&sum=208543 [13:37:17]OFD Sender: Processing packet 70255 [packets to send 18, broken 17] [13:37:17]ProducePacketName [13:37:17]name=ofd_packets/00070255 [13:37:17]OFD Sender: To server: pG, [13:37:17]CommunicateWithHost lk.salyk.kg:30040 [13:37:17]ConnectInit lk.salyk.kg [13:37:17]written 0, free lines is 4095 [13:37:18]Connected sock=10 [13:37: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 34 36 0E 01 00 00 95 87 06 01 A7 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6A D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 91 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 12 01 00 35 04 06 00 3C FC 02 7A 4F 01 88 E1 9E BB A1 A2 AD B1 [13:37: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 34 36 4F 00 00 00 BB 07 47 00 16 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 34 36 10 04 04 00 6F 12 01 00 F4 03 04 00 32 54 17 67 B6 04 01 00 00 09 42 F9 7C 43 80 45 0F [13:37:18]CommunicateWithHost err = 0 [13:37:18]CheckOFDResponse [13:37:18]1017 (14) - 77093643461234 [13:37:18]1041 (16) - 0000000000963346 [13:37:18]1040 (4) - 70255 [13:37:18]1012 (4) - 22.10.2024 07:28 [13:37:18]1206 (1) - 0 [13:37:18]OFD Sender: Remove packet 70255 [13:37:18]ProducePacketName [13:37:18]name=ofd_packets/00070255 [13:37:18]NVStorageDeleteData [13:37:18]Write to MH i2c: 01 00 00 0D 6D 7A [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: 01 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: 01 07 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: 01 07 00 0D 6D 00 00 00 00 00 23 0D B1 [13:37:18]RasterBufferAndPrint [13:37:18]line [13:37:18]line [13:37:18]line [13:37:18]line [13:37:18]line [13:37:18]written 0, free lines is 3370 [13:37:18]MH_Cut [13:37:18]Write to MH i2c: D1 01 00 14 6D 01 53 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: D1 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: D1 01 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: D1 01 00 14 6D 00 52 [13:37:18]Write to MH i2c: 01 00 00 15 6D 82 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]OFD Sender: No OFD packet to send [13:37:19]*** Cut start [13:37:19]*** Partial cut [13:37:19]*** CUTSNS_PIN = 1 [13:37:19]*** CUTSNS_PIN = 0 [13:37:19]*** Brake cut motor [13:37:19]Read from MH i2c: 01 [13:37:19]MH_I2C_Read... [13:37:19]*** Stop cut motor [13:37:19]*** Cut end [13:37:19]Read from MH i2c: 01 07 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 07 00 15 6D 00 00 00 00 00 FF 0F 97 [13:37:19]process_action close_receipt done [13:37:19]requested_data is exist [13:37:19]produce_requested_data [13:37:19]requested_item fm.sn is exist - process it [13:37:19]wFMCommunicate request_size=4 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 11 00 00 [13:37:19]Write to MH i2c: E2 08 00 16 6D 80 11 00 00 00 00 00 00 FD [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 17 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 17 00 16 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [13:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:19]wFMCommunicate OK [13:37:19]requested_item fd.num is exist - process it [13:37:19]SAM_PROTO_GetFieldsCounters [13:37:19]wFMCommunicate request_size=4 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 13 00 00 [13:37:19]Write to MH i2c: E2 08 00 17 6D 80 13 00 00 00 00 00 00 00 [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 62 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 62 00 17 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 12 01 00 0E 04 04 00 C3 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 C1 [13:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 12 01 00 0E 04 04 00 C3 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 [13:37:19]wFMCommunicate OK [13:37:19]SAM_PROTO_GetFieldsCounters done [13:37:19]requested_item shift.num is exist - process it [13:37:19]requested_item shift.opened is exist - process it [13:37:19]req_shift_opened [13:37:19]FM_GetShiftState [13:37:19]SAM_PROTO_GetShiftState [13:37:19]wFMCommunicate request_size=4 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 13 01 00 [13:37:19]Write to MH i2c: E2 08 00 18 6D 80 13 01 00 00 00 00 00 02 [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 0E 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 0E 00 18 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F0 [13:37:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:37:19]wFMCommunicate OK [13:37:19]SAM_PROTO_GetShiftState done [13:37:19]FM_GetShiftState done [13:37:19]req_shift_opened done [13:37:19]requested_item shift.open_date is exist - process it [13:37:19]req_shift_open_date [13:37:19]req_shift_open_date done [13:37:19]produce_requested_data done [13:37:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70255,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:37:19]process_action_free close_receipt [13:37:19]json_value_free [13:37:19]json_value_free done [13:37:19]process_json_proto returns [13:37:19]Send response to host [13:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70255,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:37:19]free response buf [13:37:19]execute_script done [13:37:19]execute_script returns [13:37:19]free content buf [13:37:19]Sock 7.Close socket [13:37:19]Sock 7.Thread stoped [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:16]accept exits with 9 [13:38:16]New connection [13:38:16]New thread 3067026788 created [13:38:16]Thread 3067170148 joined [13:38:16]Waiting for new connection... [13:38:16] Sock 9.Parse request [13:38:16]Sock 9.Check first char [13:38:16]Sock 9.First char is OK [13:38:16]request: POST /json_proto HTTP/1.0 [13:38:16]Method: POST [13:38:16]URL: /json_proto [13:38:16]Method is POST - this is cgi request [13:38:16]url: /json_proto [13:38:16]query_string will be loaded in cgi processing [13:38:16]execute_cgi json_proto POST (null) [13:38:16]execute_cgi path=json_proto method=POST [13:38:16]POST find Content-Length [13:38:16]Host: 172.17.50.3:8080 [13:38:16]Content-Length: 978 [13:38:16]Content-Type: application/json [13:38:16] [13:38:16]POST finish read [13:38:16]Found Content-Length = 978 [13:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:38:16]execute_script... [13:38: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)2886024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:38:16]POST & json_proto [13:38:16]process_json_proto [13:38:16]json parsed OK: [13:38:16]protocol is kg_v1.0 [13:38:16]action value=close_receipt [13:38:16]process_action close_receipt [13:38:16]cmd_close_receipt [13:38:16]MH_GetDate [13:38:16]Write to MH i2c: F0 00 00 19 6D 75 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 09 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 09 00 19 6D 00 CD AA 17 67 6B 98 1E 66 FA [13:38:16]GetLastDocTimeStamp 1729604241 [13:38:16]current date 1729604301 [13:38:16]FM_GetShiftState [13:38:16]SAM_PROTO_GetShiftState [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 13 01 00 [13:38:16]Write to MH i2c: E2 08 00 1A 6D 80 13 01 00 00 00 00 00 04 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 1A 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F2 [13:38:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_GetShiftState done [13:38:16]FM_GetShiftState done [13:38:16]opened in 1729555832 [13:38:16]opened+sec_in_day 1729642232 [13:38:16]quantity*price = 500004 [13:38:16]sum+1 = 500006 [13:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 204 22.10.2024 13:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70256 ФПД: 114387234416781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70256&fm=114387234416781&tin=02508201610067®Number=0000000000156251&sum=500000 [13:38:17]StoreToDocumentArchive [13:38:17]shift 195 fd 70256 [13:38:17]save to /storage/0195/doc_00070256 [13:38:17]save last doc name /storage/0195/doc_00070256 to /storage/kkm_last_doc_name [13:38:17]save OK [13:38:17]Clear old archive folders... [13:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:17]tlvbuf is 01308320 [13:38:17]SAM_PROTO_ClearQueue [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 09 00 00 [13:38:17]Write to MH i2c: E2 08 00 27 6D 80 09 00 00 00 00 00 00 06 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 27 6D 00 90 00 08 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_ClearQueue done [13:38:17]KKMCreateOFDPacket [13:38:17]OFDProtocolAddRootSTLVToBuf [13:38:17]FM_MakeSignedData [13:38:17]FM_MakeSignedData [13:38:17]SAM_PROTO_SignData [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 01 02 [13:38:17]Write to MH i2c: E2 08 00 28 6D 80 0D 01 02 00 00 00 00 0E [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 28 6D 00 90 00 09 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=255 [13:38:17]MH_SAM_APDU [13:38: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 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 CC 00 00 00 F4 03 04 00 CD AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 12 01 00 35 04 06 00 68 08 DA 79 [13:38:17]Write to MH i2c: E2 02 01 29 6D 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 CC 00 00 00 F4 03 04 00 CD AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 12 01 00 35 04 06 00 68 08 DA 79 00 00 5A [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 29 6D 00 90 00 0A [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=7 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 02 02 02 68 8D [13:38:17]Write to MH i2c: E2 0A 00 2A 6D 80 0D 02 02 02 00 68 8D 00 00 0A [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 2A 6D 00 90 00 0B [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 03 02 [13:38:17]Write to MH i2c: E2 08 00 2B 6D 80 0D 03 02 00 00 00 00 13 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 2B 6D 00 FC 53 19 66 7F 20 25 DB 90 00 81 [13:38:17]RAPDU: FC 53 19 66 7F 20 25 DB 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_SignData done [13:38:17]FM_MakeSignedData done [13:38:17]CreateOFDProtocolMessage [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 11 00 00 [13:38:17]Write to MH i2c: E2 08 00 2C 6D 80 11 00 00 00 00 00 00 13 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 17 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 17 00 2C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [13:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:17]wFMCommunicate OK [13:38:17]CreateOFDProtocolMessage done [13:38:17]OFDSenderStorePacket 70256 [13:38:17]StoreOFDPacket docnum=70256 [13:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 49 C5 04 01 AF 97 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 CC 00 00 00 F4 03 04 00 CD AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 12 01 00 35 04 06 00 68 08 DA 79 68 8D FC 53 19 66 7F 20 25 DB [13:38:17]CheckFolder [13:38:17]dirname=/storage/ofd_packets [13:38:17]CheckFolder done [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00070256 [13:38:17]NVStorageSaveData ofd_packets/00070256 [13:38:17]File name is /storage/ofd_packets/00070256 [13:38:17]Write 298 bytes [13:38:17]NVStorageSaveData done [13:38:17]OFDSenderStorePacket done [13:38:17]KKMCreateOFDPacket done [13:38:17]NVStorageSaveData kkm_last_timestamp [13:38:17]File name is /storage/kkm_last_timestamp [13:38:17]Write 4 bytes [13:38:17]NVStorageSaveData done [13:38:17]ExternCall_PrintAddStr [13:38:17]wPrintStart [13:38:17]Write to MH i2c: 01 00 00 2D 6D 9A [13:38:17]OFD Sender: Processing packet 70256 [packets to send 18, broken 17] [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00070256 [13:38:17]OFD Sender: To server: pG, [13:38:17]CommunicateWithHost lk.salyk.kg:30040 [13:38:17]ConnectInit lk.salyk.kg [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 2D 6D 00 00 00 00 00 FF 0F AF [13:38:17]RasterBufferAndPrint [13:38:17]line Счет N : (1)2886024 [13:38:17]line ИНН: 02508201610067 [13:38:17]line Контрольно-Кассовый Чек [13:38:17]line ПРОДАЖА [13:38:17]line ТРК (МРК, ГНК) : 61 [13:38:17]line Товар: 2710194210 [13:38:17]line ДТ-К-5 [13:38:17]line 66.490 * 75.20 [13:38:17]line = 5000.05 [13:38:17]line НДС 12% НСП 1% [13:38:17]line > о реализуемом товаре [13:38:17]line ОКРУГЛЕНИЕ: -0.05 [13:38:17]line ИТОГО: 5000.00 [13:38:17]line Внесено: 5000.00 [13:38:17]line СДАЧА: 0.00 [13:38:17]line НСП 1% : 44.25 [13:38:17]line НДС 12% : 530.98 [13:38:17]line Наличными: 5000.00 [13:38:17]line Безнал.: 0.00 [13:38:17]line Место: АЗС № 85 "Партнер Нефть" [13:38:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:38:17]line СНО: Общий режим [13:38:17]line Чек 204 22.10.2024 13:38 [13:38:17]line Смена: 195 ФФД: 1.0 [13:38:17]line ЗНМ: 0300000167 [13:38:17]line РНМ: 0000000000156251 [13:38:17]line Версия ККМ: v1.0 [13:38:17]line [13:38:17]line Дисконтная программа [13:38:17]line ДТ [13:38:17]line номер 85 [13:38:17]line сэкономлено 66.49 сом [13:38:17]line ФМ: 0000000000963346 [13:38:17]line ФД: 70256 [13:38:17]line ФПД: 114387234416781 [13:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70256&fm=114387234416781&tin=02508201610067®Number=0000000000156251&sum=500000 [13:38:18]Connected sock=10 [13:38: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 34 36 0C 01 00 00 49 C5 04 01 AF 97 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 CC 00 00 00 F4 03 04 00 CD AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 12 01 00 35 04 06 00 68 08 DA 79 68 8D FC 53 19 66 7F 20 25 DB [13:38:18]written 0, free lines is 4095 [13:38: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 34 36 4F 00 00 00 2D 98 47 00 2D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 12 01 00 F4 03 04 00 6E 54 17 67 B6 04 01 00 00 34 E1 23 A4 C6 88 20 A7 [13:38:18]CommunicateWithHost err = 0 [13:38:18]CheckOFDResponse [13:38:18]1017 (14) - 77093643461234 [13:38:18]1041 (16) - 0000000000963346 [13:38:18]1040 (4) - 70256 [13:38:18]1012 (4) - 22.10.2024 07:29 [13:38:18]1206 (1) - 0 [13:38:18]OFD Sender: Remove packet 70256 [13:38:18]ProducePacketName [13:38:18]name=ofd_packets/00070256 [13:38:18]NVStorageDeleteData [13:38:18]Write to MH i2c: 01 00 00 5D 6D CA [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 5D 6D 00 00 00 00 00 9B 0C 78 [13:38:18]RasterBufferAndPrint [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]written 0, free lines is 3234 [13:38:18]MH_Cut [13:38:18]Write to MH i2c: D1 01 00 64 6D 01 A3 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 64 6D 00 A2 [13:38:18]Write to MH i2c: 01 00 00 65 6D D2 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]OFD Sender: No OFD packet to send [13:38:19]*** Cut start [13:38:19]*** Partial cut [13:38:19]*** CUTSNS_PIN = 1 [13:38:19]*** CUTSNS_PIN = 0 [13:38:19]*** Brake cut motor [13:38:20]Read from MH i2c: 01 [13:38:20]MH_I2C_Read... [13:38:20]*** Stop cut motor [13:38:20]*** Cut end [13:38:20]Read from MH i2c: 01 07 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: 01 07 00 65 6D 00 00 00 00 00 FF 0F E7 [13:38:20]process_action close_receipt done [13:38:20]requested_data is exist [13:38:20]produce_requested_data [13:38:20]requested_item fm.sn is exist - process it [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 11 00 00 [13:38:20]Write to MH i2c: E2 08 00 66 6D 80 11 00 00 00 00 00 00 4D [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 17 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 17 00 66 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [13:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:20]wFMCommunicate OK [13:38:20]requested_item fd.num is exist - process it [13:38:20]SAM_PROTO_GetFieldsCounters [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 13 00 00 [13:38:20]Write to MH i2c: E2 08 00 67 6D 80 13 00 00 00 00 00 00 50 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 62 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 62 00 67 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 12 01 00 0E 04 04 00 C3 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 [13:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 12 01 00 0E 04 04 00 C3 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 [13:38:20]wFMCommunicate OK [13:38:20]SAM_PROTO_GetFieldsCounters done [13:38:20]requested_item shift.num is exist - process it [13:38:20]requested_item shift.opened is exist - process it [13:38:20]req_shift_opened [13:38:20]FM_GetShiftState [13:38:20]SAM_PROTO_GetShiftState [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 13 01 00 [13:38:20]Write to MH i2c: E2 08 00 68 6D 80 13 01 00 00 00 00 00 52 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 0E 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 0E 00 68 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 40 [13:38:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:38:20]wFMCommunicate OK [13:38:20]SAM_PROTO_GetShiftState done [13:38:20]FM_GetShiftState done [13:38:20]req_shift_opened done [13:38:20]requested_item shift.open_date is exist - process it [13:38:20]req_shift_open_date [13:38:20]req_shift_open_date done [13:38:20]produce_requested_data done [13:38:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70256,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:38:20]process_action_free close_receipt [13:38:20]json_value_free [13:38:20]json_value_free done [13:38:20]process_json_proto returns [13:38:20]Send response to host [13:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70256,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:38:20]free response buf [13:38:20]execute_script done [13:38:20]execute_script returns [13:38:20]free content buf [13:38:20]Sock 9.Close socket [13:38:20]Sock 9.Thread stoped [13:38:22]accept exits with 7 [13:38:22]New connection [13:38:22]New thread 3067170148 created [13:38:22]Thread 3067026788 joined [13:38:22]Waiting for new connection... [13:38:22] Sock 7.Parse request [13:38:22]Sock 7.Check first char [13:38:22]Sock 7.First char is OK [13:38:22]request: POST /json_proto HTTP/1.0 [13:38:22]Method: POST [13:38:22]URL: /json_proto [13:38:22]Method is POST - this is cgi request [13:38:22]url: /json_proto [13:38:22]query_string will be loaded in cgi processing [13:38:22]execute_cgi json_proto POST (null) [13:38:22]execute_cgi path=json_proto method=POST [13:38:22]POST find Content-Length [13:38:22]Host: 172.17.50.3:8080 [13:38:22]Content-Length: 1034 [13:38:22]Content-Type: application/json [13:38:22] [13:38:22]POST finish read [13:38:22]Found Content-Length = 1034 [13:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70256, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:38:22]execute_script... [13:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70256, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:38:22]POST & json_proto [13:38:22]process_json_proto [13:38:22]json parsed OK: [13:38:22]protocol is kg_v1.0 [13:38:22]action value=close_receipt [13:38:22]process_action close_receipt [13:38:22]cmd_close_receipt [13:38:22]MH_GetDate [13:38:22]Write to MH i2c: F0 00 00 69 6D C5 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: F0 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: F0 09 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: F0 09 00 69 6D 00 D3 AA 17 67 6B 98 1E 66 50 [13:38:22]GetLastDocTimeStamp 1729604301 [13:38:22]current date 1729604307 [13:38:22]FM_GetShiftState [13:38:22]SAM_PROTO_GetShiftState [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 13 01 00 [13:38:22]Write to MH i2c: E2 08 00 6A 6D 80 13 01 00 00 00 00 00 54 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 0E 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 0E 00 6A 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 42 [13:38:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:38:22]wFMCommunicate OK [13:38:22]SAM_PROTO_GetShiftState done [13:38:22]FM_GetShiftState done [13:38:22]opened in 1729555832 [13:38:22]opened+sec_in_day 1729642232 [13:38:22]quantity*price = 500004 [13:38:22]sum+1 = 500006 [13:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 205 22.10.2024 13:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70256 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70257 ФПД: 207094894517289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133827&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70257&fm=207094894517289&tin=02508201610067®Number=0000000000156251&sum=500000 [13:38:23]StoreToDocumentArchive [13:38:23]shift 195 fd 70257 [13:38:23]save to /storage/0195/doc_00070257 [13:38:23]save last doc name /storage/0195/doc_00070257 to /storage/kkm_last_doc_name [13:38:23]save OK [13:38:23]Clear old archive folders... [13:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:38:23]tlvbuf is B6EDD7F0 [13:38:23]SAM_PROTO_ClearQueue [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 09 00 00 [13:38:23]Write to MH i2c: E2 08 00 79 6D 80 09 00 00 00 00 00 00 58 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 03 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 03 00 79 6D 00 90 00 5A [13:38:23]RAPDU: 90 00 [13:38:23]wFMCommunicate OK [13:38:23]SAM_PROTO_ClearQueue done [13:38:23]KKMCreateOFDPacket [13:38:23]OFDProtocolAddRootSTLVToBuf [13:38:23]FM_MakeSignedData [13:38:23]FM_MakeSignedData [13:38:23]SAM_PROTO_SignData [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 0D 01 02 [13:38:23]Write to MH i2c: E2 08 00 7A 6D 80 0D 01 02 00 00 00 00 60 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 03 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 03 00 7A 6D 00 90 00 5B [13:38:23]RAPDU: 90 00 [13:38:23]wFMCommunicate OK [13:38:23]wFMCommunicate request_size=255 [13:38:23]MH_SAM_APDU [13:38:23]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 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 CD 00 00 00 F4 03 04 00 D3 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 70 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [13:38:23]Write to MH i2c: E2 02 01 7B 6D 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 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 CD 00 00 00 F4 03 04 00 D3 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 70 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 E2 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]OFD Sender: No OFD packet to send [13:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:24]Read from MH i2c: E2 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 03 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 03 00 7B 6D 00 90 00 5C [13:38:24]RAPDU: 90 00 [13:38:24]wFMCommunicate OK [13:38:24]wFMCommunicate request_size=35 [13:38:24]MH_SAM_APDU [13:38:24]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 12 01 00 35 04 06 00 BC 5A 09 9F 5C 29 [13:38:24]Write to MH i2c: E2 26 00 7C 6D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 12 01 00 35 04 06 00 BC 5A 09 9F 5C 29 00 00 1C [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:24]Read from MH i2c: E2 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 03 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 03 00 7C 6D 00 90 00 5D [13:38:24]RAPDU: 90 00 [13:38:24]wFMCommunicate OK [13:38:24]wFMCommunicate request_size=4 [13:38:24]MH_SAM_APDU [13:38:24]CAPDU: 80 0D 03 02 [13:38:24]Write to MH i2c: E2 08 00 7D 6D 80 0D 03 02 00 00 00 00 65 [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:24]Read from MH i2c: E2 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 0B 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 0B 00 7D 6D 00 D5 46 2C 76 75 AB CD 21 90 00 31 [13:38:24]RAPDU: D5 46 2C 76 75 AB CD 21 90 00 [13:38:24]wFMCommunicate OK [13:38:24]SAM_PROTO_SignData done [13:38:24]FM_MakeSignedData done [13:38:24]CreateOFDProtocolMessage [13:38:24]wFMCommunicate request_size=4 [13:38:24]MH_SAM_APDU [13:38:24]CAPDU: 80 11 00 00 [13:38:24]Write to MH i2c: E2 08 00 7E 6D 80 11 00 00 00 00 00 00 65 [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:24]Read from MH i2c: E2 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 17 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: E2 17 00 7E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [13:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:24]wFMCommunicate OK [13:38:24]CreateOFDProtocolMessage done [13:38:24]OFDSenderStorePacket 70257 [13:38:24]StoreOFDPacket docnum=70257 [13:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 D1 E5 20 01 90 DE 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 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 CD 00 00 00 F4 03 04 00 D3 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 70 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 12 01 00 35 04 06 00 BC 5A 09 9F 5C 29 D5 46 2C 76 75 AB CD 21 [13:38:24]CheckFolder [13:38:24]dirname=/storage/ofd_packets [13:38:24]CheckFolder done [13:38:24]ProducePacketName [13:38:24]name=ofd_packets/00070257 [13:38:24]NVStorageSaveData ofd_packets/00070257 [13:38:24]File name is /storage/ofd_packets/00070257 [13:38:24]Write 326 bytes [13:38:24]NVStorageSaveData done [13:38:24]OFDSenderStorePacket done [13:38:24]KKMCreateOFDPacket done [13:38:24]NVStorageSaveData kkm_last_timestamp [13:38:24]File name is /storage/kkm_last_timestamp [13:38:24]Write 4 bytes [13:38:24]NVStorageSaveData done [13:38:24]ExternCall_PrintAddStr [13:38:24]wPrintStart [13:38:24]Write to MH i2c: 01 00 00 7F 6D EC [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 07 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 07 00 7F 6D 00 00 00 00 00 FF 0F 01 [13:38:24]RasterBufferAndPrint [13:38:24]line Счет N : (1)2886024 [13:38:24]line ИНН: 02508201610067 [13:38:24]line Контрольно-Кассовый Чек [13:38:24]line ВОЗВРАТ ПРОДАЖИ [13:38:24]line ТРК (МРК, ГНК) : 61 [13:38:24]line Товар: 2710194210 [13:38:24]line ДТ-К-5 [13:38:24]line 66.490 * 75.20 [13:38:24]line = 5000.05 [13:38:24]line НДС 12% НСП 1% [13:38:24]line > о реализуемом товаре [13:38:24]line ОКРУГЛЕНИЕ: -0.05 [13:38:24]line ИТОГО: 5000.00 [13:38:24]line НСП 1% : 44.25 [13:38:24]line НДС 12% : 530.98 [13:38:24]line Наличными: 5000.00 [13:38:24]line Безнал.: 0.00 [13:38:24]line Место: АЗС № 85 "Партнер Нефть" [13:38:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:38:24]line СНО: Общий режим [13:38:24]line Чек 205 22.10.2024 13:38 [13:38:24]line Смена: 195 ФФД: 1.0 [13:38:24]line ЗНМ: 0300000167 [13:38:24]line РНМ: 0000000000156251 [13:38:24]line Версия ККМ: v1.0 [13:38:24]line ФД осн.: 70256 [13:38:24]line ФМ осн.: 0000000000963346 [13:38:24]line [13:38:24]line Дисконтная программа [13:38:24]line ДТ [13:38:24]line номер 85 [13:38:24]line сэкономлено 66.49 сом [13:38:24]line ФМ: 0000000000963346 [13:38:24]line ФД: 70257 [13:38:24]line ФПД: 207094894517289 [13:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133827&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70257&fm=207094894517289&tin=02508201610067®Number=0000000000156251&sum=500000 [13:38:24]written 0, free lines is 4095 [13:38:24]OFD Sender: Processing packet 70257 [packets to send 18, broken 17] [13:38:24]ProducePacketName [13:38:24]name=ofd_packets/00070257 [13:38:24]OFD Sender: To server: pG, [13:38:24]CommunicateWithHost lk.salyk.kg:30040 [13:38:24]ConnectInit lk.salyk.kg [13:38:24]Connected sock=10 [13:38: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 34 36 28 01 00 00 D1 E5 20 01 90 DE 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 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 CD 00 00 00 F4 03 04 00 D3 AA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 70 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 12 01 00 35 04 06 00 BC 5A 09 9F 5C 29 D5 46 2C 76 75 AB CD 21 [13:38: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 34 36 4F 00 00 00 36 45 47 00 BC CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 12 01 00 F4 03 04 00 74 54 17 67 B6 04 01 00 00 31 D3 AF 2C 39 3C 14 1F [13:38:24]CommunicateWithHost err = 0 [13:38:24]CheckOFDResponse [13:38:24]1017 (14) - 77093643461234 [13:38:24]1041 (16) - 0000000000963346 [13:38:24]1040 (4) - 70257 [13:38:24]1012 (4) - 22.10.2024 07:29 [13:38:24]1206 (1) - 0 [13:38:24]OFD Sender: Remove packet 70257 [13:38:24]ProducePacketName [13:38:24]name=ofd_packets/00070257 [13:38:24]NVStorageDeleteData [13:38:24]Write to MH i2c: 01 00 00 AF 6D 1C [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 07 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: 01 07 00 AF 6D 00 00 00 00 00 B5 0C E4 [13:38:24]RasterBufferAndPrint [13:38:24]line [13:38:24]line [13:38:24]line [13:38:24]line [13:38:24]line [13:38:24]written 0, free lines is 3262 [13:38:24]MH_Cut [13:38:24]Write to MH i2c: D1 01 00 B6 6D 01 F5 [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: D1 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: D1 01 00 [13:38:24]MH_I2C_Read... [13:38:24]Read from MH i2c: D1 01 00 B6 6D 00 F4 [13:38:24]Write to MH i2c: 01 00 00 B7 6D 24 [13:38:24]Write i2c OK [13:38:24]MH_I2C_Read... [13:38:25]OFD Sender: No OFD packet to send [13:38:25]*** Cut start [13:38:25]*** Partial cut [13:38:25]*** CUTSNS_PIN = 1 [13:38:25]*** CUTSNS_PIN = 0 [13:38:25]*** Brake cut motor [13:38:26]Read from MH i2c: 01 [13:38:26]MH_I2C_Read... [13:38:26]*** Stop cut motor [13:38:26]*** Cut end [13:38:26]Read from MH i2c: 01 07 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: 01 07 00 B7 6D 00 00 00 00 00 FF 0F 39 [13:38:26]process_action close_receipt done [13:38:26]requested_data is exist [13:38:26]produce_requested_data [13:38:26]requested_item fm.sn is exist - process it [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 11 00 00 [13:38:26]Write to MH i2c: E2 08 00 B8 6D 80 11 00 00 00 00 00 00 9F [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 17 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 17 00 B8 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [13:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:26]wFMCommunicate OK [13:38:26]requested_item fd.num is exist - process it [13:38:26]SAM_PROTO_GetFieldsCounters [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 13 00 00 [13:38:26]Write to MH i2c: E2 08 00 B9 6D 80 13 00 00 00 00 00 00 A2 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 62 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 62 00 B9 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 12 01 00 0E 04 04 00 C3 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 6B [13:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 12 01 00 0E 04 04 00 C3 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 [13:38:26]wFMCommunicate OK [13:38:26]SAM_PROTO_GetFieldsCounters done [13:38:26]requested_item shift.num is exist - process it [13:38:26]requested_item shift.opened is exist - process it [13:38:26]req_shift_opened [13:38:26]FM_GetShiftState [13:38:26]SAM_PROTO_GetShiftState [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 13 01 00 [13:38:26]Write to MH i2c: E2 08 00 BA 6D 80 13 01 00 00 00 00 00 A4 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0E 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0E 00 BA 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 92 [13:38:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:38:26]wFMCommunicate OK [13:38:26]SAM_PROTO_GetShiftState done [13:38:26]FM_GetShiftState done [13:38:26]req_shift_opened done [13:38:26]requested_item shift.open_date is exist - process it [13:38:26]req_shift_open_date [13:38:26]req_shift_open_date done [13:38:26]produce_requested_data done [13:38:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70257,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:38:26]process_action_free close_receipt [13:38:26]json_value_free [13:38:26]json_value_free done [13:38:26]process_json_proto returns [13:38:26]Send response to host [13:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70257,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:38:26]free response buf [13:38:26]execute_script done [13:38:26]execute_script returns [13:38:26]free content buf [13:38:26]Sock 7.Close socket [13:38:26]Sock 7.Thread stoped [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:27]accept exits with 9 [13:39:27]New connection [13:39:27]New thread 3067026788 created [13:39:27]Thread 3067170148 joined [13:39:27]Waiting for new connection... [13:39:27] Sock 9.Parse request [13:39:27]Sock 9.Check first char [13:39:27]Sock 9.First char is OK [13:39:27]request: POST /json_proto HTTP/1.0 [13:39:27]Method: POST [13:39:27]URL: /json_proto [13:39:27]Method is POST - this is cgi request [13:39:27]url: /json_proto [13:39:27]query_string will be loaded in cgi processing [13:39:27]execute_cgi json_proto POST (null) [13:39:27]execute_cgi path=json_proto method=POST [13:39:27]POST find Content-Length [13:39:27]Host: 172.17.50.3:8080 [13:39:27]Content-Length: 679 [13:39:27]Content-Type: application/json [13:39:27] [13:39:27]POST finish read [13:39:27]Found Content-Length = 679 [13:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:39:27]execute_script... [13:39: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)2886026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:39:27]POST & json_proto [13:39:27]process_json_proto [13:39:27]json parsed OK: [13:39:27]protocol is kg_v1.0 [13:39:27]action value=close_receipt [13:39:27]process_action close_receipt [13:39:27]cmd_close_receipt [13:39:27]MH_GetDate [13:39:27]Write to MH i2c: F0 00 00 BB 6D 17 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: F0 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: F0 09 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: F0 09 00 BB 6D 00 14 AB 17 67 6B 98 1E 66 E4 [13:39:27]GetLastDocTimeStamp 1729604307 [13:39:27]current date 1729604372 [13:39:27]FM_GetShiftState [13:39:27]SAM_PROTO_GetShiftState [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 13 01 00 [13:39:27]Write to MH i2c: E2 08 00 BC 6D 80 13 01 00 00 00 00 00 A6 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0E 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0E 00 BC 6D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 94 [13:39:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:39:27]wFMCommunicate OK [13:39:27]SAM_PROTO_GetShiftState done [13:39:27]FM_GetShiftState done [13:39:27]opened in 1729555832 [13:39:27]opened+sec_in_day 1729642232 [13:39:27]quantity*price = 70044 [13:39:27]sum+1 = 70045 [13:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 206 22.10.2024 13:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70258 ФПД: 113331014678454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133932&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70258&fm=113331014678454&tin=02508201610067®Number=0000000000156251&sum=70000 [13:39:28]StoreToDocumentArchive [13:39:28]shift 195 fd 70258 [13:39:28]save to /storage/0195/doc_00070258 [13:39:28]save last doc name /storage/0195/doc_00070258 to /storage/kkm_last_doc_name [13:39:28]save OK [13:39:28]Clear old archive folders... [13:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:28]tlvbuf is 0135BD60 [13:39:28]SAM_PROTO_ClearQueue [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 09 00 00 [13:39:28]Write to MH i2c: E2 08 00 C9 6D 80 09 00 00 00 00 00 00 A8 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 C9 6D 00 90 00 AA [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]SAM_PROTO_ClearQueue done [13:39:28]KKMCreateOFDPacket [13:39:28]OFDProtocolAddRootSTLVToBuf [13:39:28]FM_MakeSignedData [13:39:28]FM_MakeSignedData [13:39:28]SAM_PROTO_SignData [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 01 02 [13:39:28]Write to MH i2c: E2 08 00 CA 6D 80 0D 01 02 00 00 00 00 B0 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 CA 6D 00 90 00 AB [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=255 [13:39:28]MH_SAM_APDU [13:39: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 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 CE 00 00 00 F4 03 04 00 14 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 12 01 00 35 04 06 00 67 [13:39:28]Write to MH i2c: E2 02 01 CB 6D 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 CE 00 00 00 F4 03 04 00 14 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 12 01 00 35 04 06 00 67 00 00 03 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 CB 6D 00 90 00 AC [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=10 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 02 02 05 12 EE DF 37 B6 [13:39:28]Write to MH i2c: E2 0D 00 CC 6D 80 0D 02 02 05 00 12 EE DF 37 B6 00 00 89 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 03 00 CC 6D 00 90 00 AD [13:39:28]RAPDU: 90 00 [13:39:28]wFMCommunicate OK [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 0D 03 02 [13:39:28]Write to MH i2c: E2 08 00 CD 6D 80 0D 03 02 00 00 00 00 B5 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 0B 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 0B 00 CD 6D 00 1A 28 2B 7A 83 C4 85 76 90 00 DF [13:39:28]RAPDU: 1A 28 2B 7A 83 C4 85 76 90 00 [13:39:28]wFMCommunicate OK [13:39:28]SAM_PROTO_SignData done [13:39:28]FM_MakeSignedData done [13:39:28]CreateOFDProtocolMessage [13:39:28]wFMCommunicate request_size=4 [13:39:28]MH_SAM_APDU [13:39:28]CAPDU: 80 11 00 00 [13:39:28]Write to MH i2c: E2 08 00 CE 6D 80 11 00 00 00 00 00 00 B5 [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:28]Read from MH i2c: E2 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 17 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: E2 17 00 CE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [13:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:39:28]wFMCommunicate OK [13:39:28]CreateOFDProtocolMessage done [13:39:28]OFDSenderStorePacket 70258 [13:39:28]StoreOFDPacket docnum=70258 [13:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 F9 07 01 8D 5E 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 CE 00 00 00 F4 03 04 00 14 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 12 01 00 35 04 06 00 67 12 EE DF 37 B6 1A 28 2B 7A 83 C4 85 76 [13:39:28]CheckFolder [13:39:28]dirname=/storage/ofd_packets [13:39:28]CheckFolder done [13:39:28]ProducePacketName [13:39:28]name=ofd_packets/00070258 [13:39:28]NVStorageSaveData ofd_packets/00070258 [13:39:28]File name is /storage/ofd_packets/00070258 [13:39:28]Write 301 bytes [13:39:28]NVStorageSaveData done [13:39:28]OFDSenderStorePacket done [13:39:28]KKMCreateOFDPacket done [13:39:28]NVStorageSaveData kkm_last_timestamp [13:39:28]File name is /storage/kkm_last_timestamp [13:39:28]Write 4 bytes [13:39:28]NVStorageSaveData done [13:39:28]ExternCall_PrintAddStr [13:39:28]wPrintStart [13:39:28]Write to MH i2c: 01 00 00 CF 6D 3C [13:39:28]Write i2c OK [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 07 00 [13:39:28]MH_I2C_Read... [13:39:28]Read from MH i2c: 01 07 00 CF 6D 00 00 00 00 00 FF 0F 51 [13:39:28]RasterBufferAndPrint [13:39:28]line Счет N : (1)2886026 [13:39:28]line ИНН: 02508201610067 [13:39:28]line Контрольно-Кассовый Чек [13:39:28]line ПРОДАЖА [13:39:28]line ТРК (МРК, ГНК) : 42 [13:39:28]line Товар: 2710124130 [13:39:28]line Аи-92-К-5 [13:39:28]line 10.470 * 66.90 [13:39:28]line = 700.44 [13:39:28]line НДС 12% НСП 1% [13:39:28]line > о реализуемом товаре [13:39:28]line ОКРУГЛЕНИЕ: -0.44 [13:39:28]line ИТОГО: 700.00 [13:39:28]line Внесено: 700.00 [13:39:28]line СДАЧА: 0.00 [13:39:28]line НСП 1% : 6.20 [13:39:28]line НДС 12% : 74.38 [13:39:28]line Наличными: 700.00 [13:39:28]line Безнал.: 0.00 [13:39:28]line Место: АЗС № 85 "Партнер Нефть" [13:39:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:39:28]line СНО: Общий режим [13:39:28]line Чек 206 22.10.2024 13:39 [13:39:28]line Смена: 195 ФФД: 1.0 [13:39:28]line ЗНМ: 0300000167 [13:39:28]line РНМ: 0000000000156251 [13:39:28]line Версия ККМ: v1.0 [13:39:28]line ФМ: 0000000000963346 [13:39:28]line ФД: 70258 [13:39:28]line ФПД: 113331014678454 [13:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133932&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70258&fm=113331014678454&tin=02508201610067®Number=0000000000156251&sum=70000 [13:39:29]OFD Sender: Processing packet 70258 [packets to send 18, broken 17] [13:39:29]ProducePacketName [13:39:29]name=ofd_packets/00070258 [13:39:29]OFD Sender: To server: pG, [13:39:29]CommunicateWithHost lk.salyk.kg:30040 [13:39:29]ConnectInit lk.salyk.kg [13:39:29]written 0, free lines is 4095 [13:39:29]Connected sock=10 [13:39: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 34 36 0F 01 00 00 86 F9 07 01 8D 5E 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 CE 00 00 00 F4 03 04 00 14 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 12 01 00 35 04 06 00 67 12 EE DF 37 B6 1A 28 2B 7A 83 C4 85 76 [13:39: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 34 36 4F 00 00 00 09 E0 47 00 80 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 34 36 10 04 04 00 72 12 01 00 F4 03 04 00 B5 54 17 67 B6 04 01 00 00 3F FF 51 42 5A 46 A4 58 [13:39:29]CommunicateWithHost err = 0 [13:39:29]CheckOFDResponse [13:39:29]1017 (14) - 77093643461234 [13:39:29]1041 (16) - 0000000000963346 [13:39:29]1040 (4) - 70258 [13:39:29]1012 (4) - 22.10.2024 07:31 [13:39:29]1206 (1) - 0 [13:39:29]OFD Sender: Remove packet 70258 [13:39:29]ProducePacketName [13:39:29]name=ofd_packets/00070258 [13:39:29]NVStorageDeleteData [13:39:29]Write to MH i2c: 01 00 00 FA 6D 67 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 07 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 07 00 FA 6D 00 00 00 00 00 F7 0C 71 [13:39:29]RasterBufferAndPrint [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]line [13:39:29]written 0, free lines is 3326 [13:39:29]MH_Cut [13:39:29]Write to MH i2c: D1 01 00 01 6E 01 41 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: D1 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: D1 01 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: D1 01 00 01 6E 00 40 [13:39:29]Write to MH i2c: 01 00 00 02 6E 70 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]OFD Sender: No OFD packet to send [13:39:30]*** Cut start [13:39:30]*** Partial cut [13:39:30]*** CUTSNS_PIN = 1 [13:39:30]*** CUTSNS_PIN = 0 [13:39:30]*** Brake cut motor [13:39:30]Read from MH i2c: 01 [13:39:30]MH_I2C_Read... [13:39:30]*** Stop cut motor [13:39:30]*** Cut end [13:39:30]Read from MH i2c: 01 07 00 [13:39:30]MH_I2C_Read... [13:39:30]Read from MH i2c: 01 07 00 02 6E 00 00 00 00 00 FF 0F 85 [13:39:30]process_action close_receipt done [13:39:30]requested_data is exist [13:39:30]produce_requested_data [13:39:30]requested_item fm.sn is exist - process it [13:39:30]wFMCommunicate request_size=4 [13:39:30]MH_SAM_APDU [13:39:30]CAPDU: 80 11 00 00 [13:39:30]Write to MH i2c: E2 08 00 03 6E 80 11 00 00 00 00 00 00 EB [13:39:30]Write i2c OK [13:39:30]MH_I2C_Read... [13:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:30]Read from MH i2c: E2 [13:39:30]MH_I2C_Read... [13:39:30]Read from MH i2c: E2 17 00 [13:39:30]MH_I2C_Read... [13:39:30]Read from MH i2c: E2 17 00 03 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [13:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:39:30]wFMCommunicate OK [13:39:30]requested_item fd.num is exist - process it [13:39:30]SAM_PROTO_GetFieldsCounters [13:39:30]wFMCommunicate request_size=4 [13:39:30]MH_SAM_APDU [13:39:30]CAPDU: 80 13 00 00 [13:39:30]Write to MH i2c: E2 08 00 04 6E 80 13 00 00 00 00 00 00 EE [13:39:30]Write i2c OK [13:39:30]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 62 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 62 00 04 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 12 01 00 0E 04 04 00 C3 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 BB [13:39: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 12 01 00 0E 04 04 00 C3 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 [13:39:31]wFMCommunicate OK [13:39:31]SAM_PROTO_GetFieldsCounters done [13:39:31]requested_item shift.num is exist - process it [13:39:31]requested_item shift.opened is exist - process it [13:39:31]req_shift_opened [13:39:31]FM_GetShiftState [13:39:31]SAM_PROTO_GetShiftState [13:39:31]wFMCommunicate request_size=4 [13:39:31]MH_SAM_APDU [13:39:31]CAPDU: 80 13 01 00 [13:39:31]Write to MH i2c: E2 08 00 05 6E 80 13 01 00 00 00 00 00 F0 [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 0E 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 0E 00 05 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DE [13:39:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:39:31]wFMCommunicate OK [13:39:31]SAM_PROTO_GetShiftState done [13:39:31]FM_GetShiftState done [13:39:31]req_shift_opened done [13:39:31]requested_item shift.open_date is exist - process it [13:39:31]req_shift_open_date [13:39:31]req_shift_open_date done [13:39:31]produce_requested_data done [13:39:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70258,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:39:31]process_action_free close_receipt [13:39:31]json_value_free [13:39:31]json_value_free done [13:39:31]process_json_proto returns [13:39:31]Send response to host [13:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70258,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:39:31]free response buf [13:39:31]execute_script done [13:39:31]execute_script returns [13:39:31]free content buf [13:39:31]Sock 9.Close socket [13:39:31]Sock 9.Thread stoped [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]accept exits with 7 [13:41:45]New connection [13:41:45]New thread 3067170148 created [13:41:45]Thread 3067026788 joined [13:41:45]Waiting for new connection... [13:41:45] Sock 7.Parse request [13:41:45]Sock 7.Check first char [13:41:45]Sock 7.First char is OK [13:41:45]request: POST /json_proto HTTP/1.0 [13:41:45]Method: POST [13:41:45]URL: /json_proto [13:41:45]Method is POST - this is cgi request [13:41:45]url: /json_proto [13:41:45]query_string will be loaded in cgi processing [13:41:45]execute_cgi json_proto POST (null) [13:41:45]execute_cgi path=json_proto method=POST [13:41:45]POST find Content-Length [13:41:45]Host: 172.17.50.3:8080 [13:41:45]Content-Length: 980 [13:41:45]Content-Type: application/json [13:41:45] [13:41:45]POST finish read [13:41:45]Found Content-Length = 980 [13:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.040, "sum" : 8500.61, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.04 \u0441\u043E\u043C", "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:45]execute_script... [13: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 : (1)2886025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.040, "sum" : 8500.61, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.04 \u0441\u043E\u043C", "deposit" : 8500.00, "total" : 8500.00, "payments": [ { "type": 0, "sum" : 8500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:45]POST & json_proto [13:41:45]process_json_proto [13:41:45]json parsed OK: [13:41:45]protocol is kg_v1.0 [13:41:45]action value=close_receipt [13:41:45]process_action close_receipt [13:41:45]cmd_close_receipt [13:41:45]MH_GetDate [13:41:45]Write to MH i2c: F0 00 00 06 6E 63 [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 09 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 09 00 06 6E 00 9E AB 17 67 6B 98 1E 66 BA [13:41:45]GetLastDocTimeStamp 1729604372 [13:41:45]current date 1729604510 [13:41:45]FM_GetShiftState [13:41:45]SAM_PROTO_GetShiftState [13:41:45]wFMCommunicate request_size=4 [13:41:45]MH_SAM_APDU [13:41:45]CAPDU: 80 13 01 00 [13:41:45]Write to MH i2c: E2 08 00 07 6E 80 13 01 00 00 00 00 00 F2 [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]OFD Sender: No OFD packet to send [13:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:45]Read from MH i2c: E2 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 07 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E0 [13:41:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:41:45]wFMCommunicate OK [13:41:45]SAM_PROTO_GetShiftState done [13:41:45]FM_GetShiftState done [13:41:45]opened in 1729555832 [13:41:45]opened+sec_in_day 1729642232 [13:41:45]quantity*price = 850060 [13:41:45]sum+1 = 850062 [13:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 8500.00 Внесено: 8500.00 СДАЧА: 0.00 НСП 1% : 75.23 НДС 12% : 902.72 Наличными: 8500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 207 22.10.2024 13:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 113.04 сом ФМ: 0000000000963346 ФД: 70259 ФПД: 100643844609755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70259&fm=100643844609755&tin=02508201610067®Number=0000000000156251&sum=850000 [13:41:46]StoreToDocumentArchive [13:41:46]shift 195 fd 70259 [13:41:46]save to /storage/0195/doc_00070259 [13:41:46]save last doc name /storage/0195/doc_00070259 to /storage/kkm_last_doc_name [13:41:46]save OK [13:41:46]Clear old archive folders... [13:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:46]tlvbuf is 01101BD0 [13:41:46]SAM_PROTO_ClearQueue [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 09 00 00 [13:41:46]Write to MH i2c: E2 08 00 14 6E 80 09 00 00 00 00 00 00 F4 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 14 6E 00 90 00 F6 [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]SAM_PROTO_ClearQueue done [13:41:46]KKMCreateOFDPacket [13:41:46]OFDProtocolAddRootSTLVToBuf [13:41:46]FM_MakeSignedData [13:41:46]FM_MakeSignedData [13:41:46]SAM_PROTO_SignData [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 0D 01 02 [13:41:46]Write to MH i2c: E2 08 00 15 6E 80 0D 01 02 00 00 00 00 FC [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 15 6E 00 90 00 F7 [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]wFMCommunicate request_size=255 [13:41:46]MH_SAM_APDU [13:41: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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 9E AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 12 01 00 35 04 06 00 5B 88 F8 9B [13:41:46]Write to MH i2c: E2 02 01 16 6E 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 9E AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 12 01 00 35 04 06 00 5B 88 F8 9B 00 00 29 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 16 6E 00 90 00 F8 [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]wFMCommunicate request_size=7 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 0D 02 02 02 56 DB [13:41:46]Write to MH i2c: E2 0A 00 17 6E 80 0D 02 02 02 00 56 DB 00 00 34 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 17 6E 00 90 00 F9 [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 0D 03 02 [13:41:46]Write to MH i2c: E2 08 00 18 6E 80 0D 03 02 00 00 00 00 01 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 0B 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 0B 00 18 6E 00 DC 60 62 7D E6 B3 D5 44 90 00 CF [13:41:46]RAPDU: DC 60 62 7D E6 B3 D5 44 90 00 [13:41:46]wFMCommunicate OK [13:41:46]SAM_PROTO_SignData done [13:41:46]FM_MakeSignedData done [13:41:46]CreateOFDProtocolMessage [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 11 00 00 [13:41:46]Write to MH i2c: E2 08 00 19 6E 80 11 00 00 00 00 00 00 01 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 17 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 17 00 19 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [13:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:41:46]wFMCommunicate OK [13:41:46]CreateOFDProtocolMessage done [13:41:46]OFDSenderStorePacket 70259 [13:41:46]StoreOFDPacket docnum=70259 [13:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 43 04 01 96 AE 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 9E AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 12 01 00 35 04 06 00 5B 88 F8 9B 56 DB DC 60 62 7D E6 B3 D5 44 [13:41:46]CheckFolder [13:41:46]dirname=/storage/ofd_packets [13:41:46]CheckFolder done [13:41:46]ProducePacketName [13:41:46]name=ofd_packets/00070259 [13:41:46]NVStorageSaveData ofd_packets/00070259 [13:41:46]File name is /storage/ofd_packets/00070259 [13:41:46]Write 298 bytes [13:41:46]NVStorageSaveData done [13:41:46]OFDSenderStorePacket done [13:41:46]KKMCreateOFDPacket done [13:41:46]NVStorageSaveData kkm_last_timestamp [13:41:46]File name is /storage/kkm_last_timestamp [13:41:46]Write 4 bytes [13:41:46]NVStorageSaveData done [13:41:46]ExternCall_PrintAddStr [13:41:46]wPrintStart [13:41:46]Write to MH i2c: 01 00 00 1A 6E 88 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: 01 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: 01 07 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: 01 07 00 1A 6E 00 00 00 00 00 FF 0F 9D [13:41:46]RasterBufferAndPrint [13:41:46]line Счет N : (1)2886025 [13:41:46]line ИНН: 02508201610067 [13:41:46]line Контрольно-Кассовый Чек [13:41:46]line ПРОДАЖА [13:41:46]line ТРК (МРК, ГНК) : 61 [13:41:46]line Товар: 2710194210 [13:41:46]line ДТ-К-5 [13:41:46]line 113.040 * 75.20 [13:41:46]line = 8500.61 [13:41:46]line НДС 12% НСП 1% [13:41:46]line > о реализуемом товаре [13:41:46]line ОКРУГЛЕНИЕ: -0.61 [13:41:46]line ИТОГО: 8500.00 [13:41:46]line Внесено: 8500.00 [13:41:46]line СДАЧА: 0.00 [13:41:46]line НСП 1% : 75.23 [13:41:46]line НДС 12% : 902.72 [13:41:46]line Наличными: 8500.00 [13:41:46]line Безнал.: 0.00 [13:41:46]line Место: АЗС № 85 "Партнер Нефть" [13:41:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:41:46]line СНО: Общий режим [13:41:46]line Чек 207 22.10.2024 13:41 [13:41:46]line Смена: 195 ФФД: 1.0 [13:41:46]line ЗНМ: 0300000167 [13:41:46]line РНМ: 0000000000156251 [13:41:46]line Версия ККМ: v1.0 [13:41:46]line [13:41:46]line Дисконтная программа [13:41:46]line ДТ [13:41:46]line номер 85 [13:41:46]line сэкономлено 113.04 сом [13:41:46]line ФМ: 0000000000963346 [13:41:46]line ФД: 70259 [13:41:47]line ФПД: 100643844609755 [13:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70259&fm=100643844609755&tin=02508201610067®Number=0000000000156251&sum=850000 [13:41:47]OFD Sender: Processing packet 70259 [packets to send 18, broken 17] [13:41:47]ProducePacketName [13:41:47]name=ofd_packets/00070259 [13:41:47]OFD Sender: To server: pG, [13:41:47]CommunicateWithHost lk.salyk.kg:30040 [13:41:47]ConnectInit lk.salyk.kg [13:41:47]written 0, free lines is 4095 [13:41:47]Connected sock=10 [13: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 34 36 0C 01 00 00 BB 43 04 01 96 AE 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 90 B9 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 8D F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 60 01 00 00 00 07 04 06 00 50 F8 0C 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 9E AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 12 01 00 35 04 06 00 5B 88 F8 9B 56 DB DC 60 62 7D E6 B3 D5 44 [13: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 34 36 4F 00 00 00 9E BB 47 00 61 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 34 36 10 04 04 00 73 12 01 00 F4 03 04 00 3F 55 17 67 B6 04 01 00 00 32 9C 4A 1A 1F C0 14 D6 [13:41:47]CommunicateWithHost err = 0 [13:41:47]CheckOFDResponse [13:41:47]1017 (14) - 77093643461234 [13:41:47]1041 (16) - 0000000000963346 [13:41:47]1040 (4) - 70259 [13:41:47]1012 (4) - 22.10.2024 07:33 [13:41:47]1206 (1) - 0 [13:41:47]OFD Sender: Remove packet 70259 [13:41:47]ProducePacketName [13:41:47]name=ofd_packets/00070259 [13:41:47]NVStorageDeleteData [13:41:47]Write to MH i2c: 01 00 00 4A 6E B8 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 07 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 07 00 4A 6E 00 00 00 00 00 9C 0C 67 [13:41:47]RasterBufferAndPrint [13:41:47]line [13:41:47]line [13:41:47]line [13:41:47]line [13:41:47]line [13:41:47]written 0, free lines is 3238 [13:41:47]MH_Cut [13:41:47]Write to MH i2c: D1 01 00 51 6E 01 91 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: D1 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: D1 01 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: D1 01 00 51 6E 00 90 [13:41:47]Write to MH i2c: 01 00 00 52 6E C0 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]OFD Sender: No OFD packet to send [13:41:48]*** Cut start [13:41:48]*** Partial cut [13:41:48]*** CUTSNS_PIN = 1 [13:41:48]*** CUTSNS_PIN = 0 [13:41:48]*** Brake cut motor [13:41:48]Read from MH i2c: 01 [13:41:48]MH_I2C_Read... [13:41:48]*** Stop cut motor [13:41:48]*** Cut end [13:41:48]Read from MH i2c: 01 07 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 52 6E 00 00 00 00 00 FF 0F D5 [13:41:48]process_action close_receipt done [13:41:48]requested_data is exist [13:41:48]produce_requested_data [13:41:48]requested_item fm.sn is exist - process it [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 11 00 00 [13:41:48]Write to MH i2c: E2 08 00 53 6E 80 11 00 00 00 00 00 00 3B [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 53 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [13:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:41:49]wFMCommunicate OK [13:41:49]requested_item fd.num is exist - process it [13:41:49]SAM_PROTO_GetFieldsCounters [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 13 00 00 [13:41:49]Write to MH i2c: E2 08 00 54 6E 80 13 00 00 00 00 00 00 3E [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 62 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 62 00 54 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 12 01 00 0E 04 04 00 C3 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 0F [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 12 01 00 0E 04 04 00 C3 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 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_GetFieldsCounters done [13:41:49]requested_item shift.num is exist - process it [13:41:49]requested_item shift.opened is exist - process it [13:41:49]req_shift_opened [13:41:49]FM_GetShiftState [13:41:49]SAM_PROTO_GetShiftState [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 13 01 00 [13:41:49]Write to MH i2c: E2 08 00 55 6E 80 13 01 00 00 00 00 00 40 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 55 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2E [13:41:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_GetShiftState done [13:41:49]FM_GetShiftState done [13:41:49]req_shift_opened done [13:41:49]requested_item shift.open_date is exist - process it [13:41:49]req_shift_open_date [13:41:49]req_shift_open_date done [13:41:49]produce_requested_data done [13:41:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70259,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:41:49]process_action_free close_receipt [13:41:49]json_value_free [13:41:49]json_value_free done [13:41:49]process_json_proto returns [13:41:49]Send response to host [13:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70259,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:41:49]free response buf [13:41:49]execute_script done [13:41:49]execute_script returns [13:41:49]free content buf [13:41:49]Sock 7.Close socket [13:41:49]Sock 7.Thread stoped [13:41:52]OFD Sender: No OFD packet to send [13:41:56]accept exits with 9 [13:41:56]New connection [13:41:56]New thread 3067026788 created [13:41:56]Thread 3067170148 joined [13:41:56]Waiting for new connection... [13:41:56] Sock 9.Parse request [13:41:56]Sock 9.Check first char [13:41:56]Sock 9.First char is OK [13:41:56]request: POST /json_proto HTTP/1.0 [13:41:56]Method: POST [13:41:56]URL: /json_proto [13:41:56]Method is POST - this is cgi request [13:41:56]url: /json_proto [13:41:56]query_string will be loaded in cgi processing [13:41:56]execute_cgi json_proto POST (null) [13:41:56]execute_cgi path=json_proto method=POST [13:41:56]POST find Content-Length [13:41:56]Host: 172.17.50.3:8080 [13:41:56]Content-Length: 683 [13:41:56]Content-Type: application/json [13:41:56] [13:41:56]POST finish read [13:41:56]Found Content-Length = 683 [13:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:56]execute_script... [13:41: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)2886027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:56]POST & json_proto [13:41:56]process_json_proto [13:41:56]json parsed OK: [13:41:56]protocol is kg_v1.0 [13:41:56]action value=close_receipt [13:41:56]process_action close_receipt [13:41:56]cmd_close_receipt [13:41:56]MH_GetDate [13:41:56]Write to MH i2c: F0 00 00 56 6E B3 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: F0 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: F0 09 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: F0 09 00 56 6E 00 AA AB 17 67 6B 98 1E 66 16 [13:41:56]GetLastDocTimeStamp 1729604510 [13:41:56]current date 1729604522 [13:41:56]FM_GetShiftState [13:41:56]SAM_PROTO_GetShiftState [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 13 01 00 [13:41:56]Write to MH i2c: E2 08 00 57 6E 80 13 01 00 00 00 00 00 42 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 57 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 30 [13:41:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_GetShiftState done [13:41:56]FM_GetShiftState done [13:41:56]opened in 1729555832 [13:41:56]opened+sec_in_day 1729642232 [13:41:56]quantity*price = 120055 [13:41:56]sum+1 = 120057 [13:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 208 22.10.2024 13:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70260 ФПД: 184766138723163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134202&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70260&fm=184766138723163&tin=02508201610067®Number=0000000000156251&sum=120000 [13:41:57]StoreToDocumentArchive [13:41:57]shift 195 fd 70260 [13:41:57]save to /storage/0195/doc_00070260 [13:41:57]save last doc name /storage/0195/doc_00070260 to /storage/kkm_last_doc_name [13:41:57]save OK [13:41:57]Clear old archive folders... [13:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:57]tlvbuf is 011D70E0 [13:41:57]SAM_PROTO_ClearQueue [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 09 00 00 [13:41:57]Write to MH i2c: E2 08 00 64 6E 80 09 00 00 00 00 00 00 44 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 64 6E 00 90 00 46 [13:41:57]RAPDU: 90 00 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_ClearQueue done [13:41:57]KKMCreateOFDPacket [13:41:57]OFDProtocolAddRootSTLVToBuf [13:41:57]FM_MakeSignedData [13:41:57]FM_MakeSignedData [13:41:57]SAM_PROTO_SignData [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 0D 01 02 [13:41:57]Write to MH i2c: E2 08 00 65 6E 80 0D 01 02 00 00 00 00 4C [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 65 6E 00 90 00 47 [13:41:57]RAPDU: 90 00 [13:41:57]wFMCommunicate OK [13:41:57]wFMCommunicate request_size=255 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 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 AA AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 12 01 00 35 04 06 00 A8 [13:41:57]Write to MH i2c: E2 02 01 66 6E 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 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 AA AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 12 01 00 35 04 06 00 A8 00 00 93 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]OFD Sender: No OFD packet to send [13:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:58]Read from MH i2c: E2 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 03 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 03 00 66 6E 00 90 00 48 [13:41:58]RAPDU: 90 00 [13:41:58]wFMCommunicate OK [13:41:58]wFMCommunicate request_size=10 [13:41:58]MH_SAM_APDU [13:41:58]CAPDU: 80 0D 02 02 05 0B 38 10 AB 5B [13:41:58]Write to MH i2c: E2 0D 00 67 6E 80 0D 02 02 05 00 0B 38 10 AB 5B 00 00 B2 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:58]Read from MH i2c: E2 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 03 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 03 00 67 6E 00 90 00 49 [13:41:58]RAPDU: 90 00 [13:41:58]wFMCommunicate OK [13:41:58]wFMCommunicate request_size=4 [13:41:58]MH_SAM_APDU [13:41:58]CAPDU: 80 0D 03 02 [13:41:58]Write to MH i2c: E2 08 00 68 6E 80 0D 03 02 00 00 00 00 51 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:58]Read from MH i2c: E2 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 0B 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 0B 00 68 6E 00 3B C9 63 1E F6 31 F2 FA 90 00 EA [13:41:58]RAPDU: 3B C9 63 1E F6 31 F2 FA 90 00 [13:41:58]wFMCommunicate OK [13:41:58]SAM_PROTO_SignData done [13:41:58]FM_MakeSignedData done [13:41:58]CreateOFDProtocolMessage [13:41:58]wFMCommunicate request_size=4 [13:41:58]MH_SAM_APDU [13:41:58]CAPDU: 80 11 00 00 [13:41:58]Write to MH i2c: E2 08 00 69 6E 80 11 00 00 00 00 00 00 51 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:58]Read from MH i2c: E2 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 17 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: E2 17 00 69 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [13:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:41:58]wFMCommunicate OK [13:41:58]CreateOFDProtocolMessage done [13:41:58]OFDSenderStorePacket 70260 [13:41:58]StoreOFDPacket docnum=70260 [13:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 3B 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 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 AA AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 12 01 00 35 04 06 00 A8 0B 38 10 AB 5B 3B C9 63 1E F6 31 F2 FA [13:41:58]CheckFolder [13:41:58]dirname=/storage/ofd_packets [13:41:58]CheckFolder done [13:41:58]ProducePacketName [13:41:58]name=ofd_packets/00070260 [13:41:58]NVStorageSaveData ofd_packets/00070260 [13:41:58]File name is /storage/ofd_packets/00070260 [13:41:58]Write 301 bytes [13:41:58]NVStorageSaveData done [13:41:58]OFDSenderStorePacket done [13:41:58]KKMCreateOFDPacket done [13:41:58]NVStorageSaveData kkm_last_timestamp [13:41:58]File name is /storage/kkm_last_timestamp [13:41:58]Write 4 bytes [13:41:58]NVStorageSaveData done [13:41:58]ExternCall_PrintAddStr [13:41:58]wPrintStart [13:41:58]Write to MH i2c: 01 00 00 6A 6E D8 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 6A 6E 00 00 00 00 00 FF 0F ED [13:41:58]RasterBufferAndPrint [13:41:58]line Счет N : (1)2886027 [13:41:58]line ИНН: 02508201610067 [13:41:58]line Контрольно-Кассовый Чек [13:41:58]line ПРОДАЖА [13:41:58]line ТРК (МРК, ГНК) : 13 [13:41:58]line Товар: 2710124500 [13:41:58]line Аи-95-К-5 [13:41:58]line 16.180 * 74.20 [13:41:58]line = 1200.56 [13:41:58]line НДС 12% НСП 1% [13:41:58]line > о реализуемом товаре [13:41:58]line ОКРУГЛЕНИЕ: -0.56 [13:41:58]line ИТОГО: 1200.00 [13:41:58]line Внесено: 1200.00 [13:41:58]line СДАЧА: 0.00 [13:41:58]line НСП 1% : 10.62 [13:41:58]line НДС 12% : 127.49 [13:41:58]line Наличными: 1200.00 [13:41:58]line Безнал.: 0.00 [13:41:58]line Место: АЗС № 85 "Партнер Нефть" [13:41:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:41:58]line СНО: Общий режим [13:41:58]line Чек 208 22.10.2024 13:42 [13:41:58]line Смена: 195 ФФД: 1.0 [13:41:58]line ЗНМ: 0300000167 [13:41:58]line РНМ: 0000000000156251 [13:41:58]line Версия ККМ: v1.0 [13:41:58]line ФМ: 0000000000963346 [13:41:58]line ФД: 70260 [13:41:58]line ФПД: 184766138723163 [13:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134202&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70260&fm=184766138723163&tin=02508201610067®Number=0000000000156251&sum=120000 [13:41:58]written 0, free lines is 4095 [13:41:58]OFD Sender: Processing packet 70260 [packets to send 18, broken 17] [13:41:58]ProducePacketName [13:41:58]name=ofd_packets/00070260 [13:41:58]OFD Sender: To server: pG, [13:41:58]CommunicateWithHost lk.salyk.kg:30040 [13:41:58]ConnectInit lk.salyk.kg [13:41:58]Connected sock=10 [13:41: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 34 36 0F 01 00 00 D2 3B 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 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 AA AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 12 01 00 35 04 06 00 A8 0B 38 10 AB 5B 3B C9 63 1E F6 31 F2 FA [13:41: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 34 36 4F 00 00 00 4E FD 47 00 B6 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 34 36 10 04 04 00 74 12 01 00 F4 03 04 00 4A 55 17 67 B6 04 01 00 00 13 1E 56 70 40 C8 EA 64 [13:41:58]CommunicateWithHost err = 0 [13:41:58]CheckOFDResponse [13:41:58]1017 (14) - 77093643461234 [13:41:58]1041 (16) - 0000000000963346 [13:41:58]1040 (4) - 70260 [13:41:58]1012 (4) - 22.10.2024 07:33 [13:41:58]1206 (1) - 0 [13:41:58]OFD Sender: Remove packet 70260 [13:41:58]ProducePacketName [13:41:58]name=ofd_packets/00070260 [13:41:58]NVStorageDeleteData [13:41:58]Write to MH i2c: 01 00 00 95 6E 03 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 95 6E 00 00 00 00 00 0B 0D 22 [13:41:58]RasterBufferAndPrint [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]written 0, free lines is 3351 [13:41:58]MH_Cut [13:41:58]Write to MH i2c: D1 01 00 9C 6E 01 DC [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 01 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 01 00 9C 6E 00 DB [13:41:58]Write to MH i2c: 01 00 00 9D 6E 0B [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:59]OFD Sender: No OFD packet to send [13:41:59]*** Cut start [13:41:59]*** Partial cut [13:41:59]*** CUTSNS_PIN = 1 [13:41:59]*** CUTSNS_PIN = 0 [13:41:59]*** Brake cut motor [13:42:00]Read from MH i2c: 01 [13:42:00]MH_I2C_Read... [13:42:00]*** Stop cut motor [13:42:00]*** Cut end [13:42:00]Read from MH i2c: 01 07 00 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: 01 07 00 9D 6E 00 00 00 00 00 FF 0F 20 [13:42:00]process_action close_receipt done [13:42:00]requested_data is exist [13:42:00]produce_requested_data [13:42:00]requested_item fm.sn is exist - process it [13:42:00]wFMCommunicate request_size=4 [13:42:00]MH_SAM_APDU [13:42:00]CAPDU: 80 11 00 00 [13:42:00]Write to MH i2c: E2 08 00 9E 6E 80 11 00 00 00 00 00 00 86 [13:42:00]Write i2c OK [13:42:00]MH_I2C_Read... [13:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:00]Read from MH i2c: E2 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 17 00 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 17 00 9E 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [13:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:42:00]wFMCommunicate OK [13:42:00]requested_item fd.num is exist - process it [13:42:00]SAM_PROTO_GetFieldsCounters [13:42:00]wFMCommunicate request_size=4 [13:42:00]MH_SAM_APDU [13:42:00]CAPDU: 80 13 00 00 [13:42:00]Write to MH i2c: E2 08 00 9F 6E 80 13 00 00 00 00 00 00 89 [13:42:00]Write i2c OK [13:42:00]MH_I2C_Read... [13:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:00]Read from MH i2c: E2 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 62 00 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 62 00 9F 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 12 01 00 0E 04 04 00 C3 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 5E [13:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 12 01 00 0E 04 04 00 C3 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 [13:42:00]wFMCommunicate OK [13:42:00]SAM_PROTO_GetFieldsCounters done [13:42:00]requested_item shift.num is exist - process it [13:42:00]requested_item shift.opened is exist - process it [13:42:00]req_shift_opened [13:42:00]FM_GetShiftState [13:42:00]SAM_PROTO_GetShiftState [13:42:00]wFMCommunicate request_size=4 [13:42:00]MH_SAM_APDU [13:42:00]CAPDU: 80 13 01 00 [13:42:00]Write to MH i2c: E2 08 00 A0 6E 80 13 01 00 00 00 00 00 8B [13:42:00]Write i2c OK [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 [13:42:00]MH_I2C_Read... [13:42:00]Read from MH i2c: E2 0E 00 [13:42:00]MH_I2C_Read... [13:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:00]Read from MH i2c: E2 0E 00 A0 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 79 [13:42:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:42:00]wFMCommunicate OK [13:42:00]SAM_PROTO_GetShiftState done [13:42:00]FM_GetShiftState done [13:42:00]req_shift_opened done [13:42:00]requested_item shift.open_date is exist - process it [13:42:00]req_shift_open_date [13:42:00]req_shift_open_date done [13:42:00]produce_requested_data done [13:42:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70260,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:42:00]process_action_free close_receipt [13:42:00]json_value_free [13:42:00]json_value_free done [13:42:00]process_json_proto returns [13:42:00]Send response to host [13:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70260,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:42:00]free response buf [13:42:00]execute_script done [13:42:00]execute_script returns [13:42:00]free content buf [13:42:00]Sock 9.Close socket [13:42:00]Sock 9.Thread stoped [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:19]accept exits with 7 [13:42:19]New connection [13:42:19]New thread 3067170148 created [13:42:19]Thread 3067026788 joined [13:42:19]Waiting for new connection... [13:42:19] Sock 7.Parse request [13:42:19]Sock 7.Check first char [13:42:19]Sock 7.First char is OK [13:42:19]request: POST /json_proto HTTP/1.0 [13:42:19]Method: POST [13:42:19]URL: /json_proto [13:42:19]Method is POST - this is cgi request [13:42:19]url: /json_proto [13:42:19]query_string will be loaded in cgi processing [13:42:19]execute_cgi json_proto POST (null) [13:42:19]execute_cgi path=json_proto method=POST [13:42:19]POST find Content-Length [13:42:19]Host: 172.17.50.3:8080 [13:42:19]Content-Length: 978 [13:42:19]Content-Type: application/json [13:42:19] [13:42:19]POST finish read [13:42:19]Found Content-Length = 978 [13:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:42:19]execute_script... [13: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 : (1)2886028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:42:19]POST & json_proto [13:42:19]process_json_proto [13:42:19]json parsed OK: [13:42:19]protocol is kg_v1.0 [13:42:19]action value=close_receipt [13:42:19]process_action close_receipt [13:42:19]cmd_close_receipt [13:42:19]MH_GetDate [13:42:19]Write to MH i2c: F0 00 00 A1 6E FE [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 09 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 09 00 A1 6E 00 C0 AB 17 67 6B 98 1E 66 77 [13:42:19]GetLastDocTimeStamp 1729604522 [13:42:19]current date 1729604544 [13:42:19]FM_GetShiftState [13:42:19]SAM_PROTO_GetShiftState [13:42:19]wFMCommunicate request_size=4 [13:42:19]MH_SAM_APDU [13:42:19]CAPDU: 80 13 01 00 [13:42:19]Write to MH i2c: E2 08 00 A2 6E 80 13 01 00 00 00 00 00 8D [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:19]Read from MH i2c: E2 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: E2 0E 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: E2 0E 00 A2 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7B [13:42:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:42:19]wFMCommunicate OK [13:42:19]SAM_PROTO_GetShiftState done [13:42:19]FM_GetShiftState done [13:42:19]opened in 1729555832 [13:42:19]opened+sec_in_day 1729642232 [13:42:19]quantity*price = 500004 [13:42:19]sum+1 = 500006 [13:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 209 22.10.2024 13:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70261 ФПД: 221519852371446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70261&fm=221519852371446&tin=02508201610067®Number=0000000000156251&sum=500000 [13:42:20]StoreToDocumentArchive [13:42:20]shift 195 fd 70261 [13:42:20]save to /storage/0195/doc_00070261 [13:42:20]save last doc name /storage/0195/doc_00070261 to /storage/kkm_last_doc_name [13:42:20]save OK [13:42:20]Clear old archive folders... [13:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:42:20]tlvbuf is 0128AB30 [13:42:20]SAM_PROTO_ClearQueue [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 09 00 00 [13:42:20]Write to MH i2c: E2 08 00 AF 6E 80 09 00 00 00 00 00 00 8F [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 AF 6E 00 90 00 91 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_ClearQueue done [13:42:20]KKMCreateOFDPacket [13:42:20]OFDProtocolAddRootSTLVToBuf [13:42:20]FM_MakeSignedData [13:42:20]FM_MakeSignedData [13:42:20]SAM_PROTO_SignData [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 01 02 [13:42:20]Write to MH i2c: E2 08 00 B0 6E 80 0D 01 02 00 00 00 00 97 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 B0 6E 00 90 00 92 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=255 [13:42:20]MH_SAM_APDU [13:42:20]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 D1 00 00 00 F4 03 04 00 C0 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 12 01 00 35 04 06 00 C9 78 9C 1C [13:42:20]Write to MH i2c: E2 02 01 B1 6E 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 D1 00 00 00 F4 03 04 00 C0 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 12 01 00 35 04 06 00 C9 78 9C 1C 00 00 17 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 B1 6E 00 90 00 93 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=7 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 02 02 02 7D F6 [13:42:20]Write to MH i2c: E2 0A 00 B2 6E 80 0D 02 02 02 00 7D F6 00 00 11 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 B2 6E 00 90 00 94 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 03 02 [13:42:20]Write to MH i2c: E2 08 00 B3 6E 80 0D 03 02 00 00 00 00 9C [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0B 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0B 00 B3 6E 00 32 99 9E FA 92 EF 01 D1 90 00 53 [13:42:20]RAPDU: 32 99 9E FA 92 EF 01 D1 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_SignData done [13:42:20]FM_MakeSignedData done [13:42:20]CreateOFDProtocolMessage [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 11 00 00 [13:42:20]Write to MH i2c: E2 08 00 B4 6E 80 11 00 00 00 00 00 00 9C [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 17 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 17 00 B4 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [13:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:42:20]wFMCommunicate OK [13:42:20]CreateOFDProtocolMessage done [13:42:20]OFDSenderStorePacket 70261 [13:42:20]StoreOFDPacket docnum=70261 [13:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 19 C3 04 01 BB D1 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 D1 00 00 00 F4 03 04 00 C0 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 12 01 00 35 04 06 00 C9 78 9C 1C 7D F6 32 99 9E FA 92 EF 01 D1 [13:42:20]CheckFolder [13:42:20]dirname=/storage/ofd_packets [13:42:20]CheckFolder done [13:42:20]ProducePacketName [13:42:20]name=ofd_packets/00070261 [13:42:20]NVStorageSaveData ofd_packets/00070261 [13:42:20]File name is /storage/ofd_packets/00070261 [13:42:20]Write 298 bytes [13:42:20]NVStorageSaveData done [13:42:20]OFDSenderStorePacket done [13:42:20]KKMCreateOFDPacket done [13:42:20]NVStorageSaveData kkm_last_timestamp [13:42:20]File name is /storage/kkm_last_timestamp [13:42:20]Write 4 bytes [13:42:20]NVStorageSaveData done [13:42:20]ExternCall_PrintAddStr [13:42:20]wPrintStart [13:42:20]Write to MH i2c: 01 00 00 B5 6E 23 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: 01 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: 01 07 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: 01 07 00 B5 6E 00 00 00 00 00 FF 0F 38 [13:42:20]RasterBufferAndPrint [13:42:20]line Счет N : (1)2886028 [13:42:20]line ИНН: 02508201610067 [13:42:20]line Контрольно-Кассовый Чек [13:42:20]line ПРОДАЖА [13:42:20]line ТРК (МРК, ГНК) : 61 [13:42:20]line Товар: 2710194210 [13:42:20]line ДТ-К-5 [13:42:20]line 66.490 * 75.20 [13:42:20]line = 5000.05 [13:42:20]line НДС 12% НСП 1% [13:42:20]line > о реализуемом товаре [13:42:20]line ОКРУГЛЕНИЕ: -0.05 [13:42:20]line ИТОГО: 5000.00 [13:42:20]line Внесено: 5000.00 [13:42:20]line СДАЧА: 0.00 [13:42:20]line НСП 1% : 44.25 [13:42:20]line НДС 12% : 530.98 [13:42:20]line Наличными: 5000.00 [13:42:20]line Безнал.: 0.00 [13:42:20]line Место: АЗС № 85 "Партнер Нефть" [13:42:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:42:20]line СНО: Общий режим [13:42:20]line Чек 209 22.10.2024 13:42 [13:42:20]line Смена: 195 ФФД: 1.0 [13:42:20]line ЗНМ: 0300000167 [13:42:20]line РНМ: 0000000000156251 [13:42:20]line Версия ККМ: v1.0 [13:42:20]line [13:42:20]line Дисконтная программа [13:42:20]line ДТ [13:42:20]line номер 85 [13:42:20]line сэкономлено 66.49 сом [13:42:20]line ФМ: 0000000000963346 [13:42:20]line ФД: 70261 [13:42:21]line ФПД: 221519852371446 [13:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70261&fm=221519852371446&tin=02508201610067®Number=0000000000156251&sum=500000 [13:42:21]OFD Sender: Processing packet 70261 [packets to send 18, broken 17] [13:42:21]ProducePacketName [13:42:21]name=ofd_packets/00070261 [13:42:21]OFD Sender: To server: pG, [13:42:21]CommunicateWithHost lk.salyk.kg:30040 [13:42:21]ConnectInit lk.salyk.kg [13:42:21]written 0, free lines is 4095 [13:42:21]Connected sock=10 [13: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 34 36 0C 01 00 00 19 C3 04 01 BB D1 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 D1 00 00 00 F4 03 04 00 C0 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 12 01 00 35 04 06 00 C9 78 9C 1C 7D F6 32 99 9E FA 92 EF 01 D1 [13: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 34 36 4F 00 00 00 D7 1C 47 00 BE 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 34 36 10 04 04 00 75 12 01 00 F4 03 04 00 61 55 17 67 B6 04 01 00 00 DB B1 58 DC DC 4D DA 90 [13:42:21]CommunicateWithHost err = 0 [13:42:21]CheckOFDResponse [13:42:21]1017 (14) - 77093643461234 [13:42:21]1041 (16) - 0000000000963346 [13:42:21]1040 (4) - 70261 [13:42:21]1012 (4) - 22.10.2024 07:33 [13:42:21]1206 (1) - 0 [13:42:21]OFD Sender: Remove packet 70261 [13:42:21]ProducePacketName [13:42:21]name=ofd_packets/00070261 [13:42:21]NVStorageDeleteData [13:42:21]Write to MH i2c: 01 00 00 E5 6E 53 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 E5 6E 00 00 00 00 00 98 0C FE [13:42:21]RasterBufferAndPrint [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]written 0, free lines is 3230 [13:42:21]MH_Cut [13:42:21]Write to MH i2c: D1 01 00 EC 6E 01 2C [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 01 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 01 00 EC 6E 00 2B [13:42:21]Write to MH i2c: 01 00 00 ED 6E 5B [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:22]OFD Sender: No OFD packet to send [13:42:22]*** Cut start [13:42:22]*** Partial cut [13:42:22]*** CUTSNS_PIN = 1 [13:42:22]*** CUTSNS_PIN = 0 [13:42:22]*** Brake cut motor [13:42:23]Read from MH i2c: 01 [13:42:23]MH_I2C_Read... [13:42:23]*** Stop cut motor [13:42:23]*** Cut end [13:42:23]Read from MH i2c: 01 07 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: 01 07 00 ED 6E 00 00 00 00 00 FF 0F 70 [13:42:23]process_action close_receipt done [13:42:23]requested_data is exist [13:42:23]produce_requested_data [13:42:23]requested_item fm.sn is exist - process it [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 11 00 00 [13:42:23]Write to MH i2c: E2 08 00 EE 6E 80 11 00 00 00 00 00 00 D6 [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 17 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 17 00 EE 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [13:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:42:23]wFMCommunicate OK [13:42:23]requested_item fd.num is exist - process it [13:42:23]SAM_PROTO_GetFieldsCounters [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 13 00 00 [13:42:23]Write to MH i2c: E2 08 00 EF 6E 80 13 00 00 00 00 00 00 D9 [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 62 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 62 00 EF 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 12 01 00 0E 04 04 00 C3 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 B2 [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 12 01 00 0E 04 04 00 C3 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 [13:42:23]wFMCommunicate OK [13:42:23]SAM_PROTO_GetFieldsCounters done [13:42:23]requested_item shift.num is exist - process it [13:42:23]requested_item shift.opened is exist - process it [13:42:23]req_shift_opened [13:42:23]FM_GetShiftState [13:42:23]SAM_PROTO_GetShiftState [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 13 01 00 [13:42:23]Write to MH i2c: E2 08 00 F0 6E 80 13 01 00 00 00 00 00 DB [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 0E 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 0E 00 F0 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [13:42:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:42:23]wFMCommunicate OK [13:42:23]SAM_PROTO_GetShiftState done [13:42:23]FM_GetShiftState done [13:42:23]req_shift_opened done [13:42:23]requested_item shift.open_date is exist - process it [13:42:23]req_shift_open_date [13:42:23]req_shift_open_date done [13:42:23]produce_requested_data done [13:42:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70261,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:42:23]process_action_free close_receipt [13:42:23]json_value_free [13:42:23]json_value_free done [13:42:23]process_json_proto returns [13:42:23]Send response to host [13:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70261,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:42:23]free response buf [13:42:23]execute_script done [13:42:23]execute_script returns [13:42:23]free content buf [13:42:23]Sock 7.Close socket [13:42:23]Sock 7.Thread stoped [13:42:24]accept exits with 9 [13:42:24]New connection [13:42:24]New thread 3067026788 created [13:42:24]Thread 3067170148 joined [13:42:24]Waiting for new connection... [13:42:24] Sock 9.Parse request [13:42:24]Sock 9.Check first char [13:42:24]Sock 9.First char is OK [13:42:24]request: POST /json_proto HTTP/1.0 [13:42:24]Method: POST [13:42:24]URL: /json_proto [13:42:24]Method is POST - this is cgi request [13:42:24]url: /json_proto [13:42:24]query_string will be loaded in cgi processing [13:42:24]execute_cgi json_proto POST (null) [13:42:24]execute_cgi path=json_proto method=POST [13:42:24]POST find Content-Length [13:42:24]Host: 172.17.50.3:8080 [13:42:24]Content-Length: 1034 [13:42:24]Content-Type: application/json [13:42:24] [13:42:24]POST finish read [13:42:24]Found Content-Length = 1034 [13:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70261, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:42:24]execute_script... [13:42:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70261, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [13:42:24]POST & json_proto [13:42:24]process_json_proto [13:42:24]json parsed OK: [13:42:24]protocol is kg_v1.0 [13:42:24]action value=close_receipt [13:42:24]process_action close_receipt [13:42:24]cmd_close_receipt [13:42:24]MH_GetDate [13:42:24]Write to MH i2c: F0 00 00 F1 6E 4E [13:42:24]Write i2c OK [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: F0 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: F0 09 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: F0 09 00 F1 6E 00 C6 AB 17 67 6B 98 1E 66 CD [13:42:24]GetLastDocTimeStamp 1729604544 [13:42:24]current date 1729604550 [13:42:24]FM_GetShiftState [13:42:24]SAM_PROTO_GetShiftState [13:42:24]wFMCommunicate request_size=4 [13:42:24]MH_SAM_APDU [13:42:24]CAPDU: 80 13 01 00 [13:42:24]Write to MH i2c: E2 08 00 F2 6E 80 13 01 00 00 00 00 00 DD [13:42:24]Write i2c OK [13:42:24]MH_I2C_Read... [13:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:24]Read from MH i2c: E2 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 0E 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 0E 00 F2 6E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CB [13:42:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:42:24]wFMCommunicate OK [13:42:24]SAM_PROTO_GetShiftState done [13:42:24]FM_GetShiftState done [13:42:24]opened in 1729555832 [13:42:24]opened+sec_in_day 1729642232 [13:42:24]quantity*price = 500004 [13:42:24]sum+1 = 500006 [13:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 210 22.10.2024 13:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70261 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70262 ФПД: 157158148865393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134230&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70262&fm=157158148865393&tin=02508201610067®Number=0000000000156251&sum=500000 [13:42:26]StoreToDocumentArchive [13:42:26]shift 195 fd 70262 [13:42:26]save to /storage/0195/doc_00070262 [13:42:26]save last doc name /storage/0195/doc_00070262 to /storage/kkm_last_doc_name [13:42:26]save OK [13:42:26]Clear old archive folders... [13:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:42:26]tlvbuf is B6EF6140 [13:42:26]SAM_PROTO_ClearQueue [13:42:26]wFMCommunicate request_size=4 [13:42:26]MH_SAM_APDU [13:42:26]CAPDU: 80 09 00 00 [13:42:26]Write to MH i2c: E2 08 00 01 6F 80 09 00 00 00 00 00 00 E2 [13:42:26]Write i2c OK [13:42:26]MH_I2C_Read... [13:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:26]Read from MH i2c: E2 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 01 6F 00 90 00 E4 [13:42:26]RAPDU: 90 00 [13:42:26]wFMCommunicate OK [13:42:26]SAM_PROTO_ClearQueue done [13:42:26]KKMCreateOFDPacket [13:42:26]OFDProtocolAddRootSTLVToBuf [13:42:26]FM_MakeSignedData [13:42:26]FM_MakeSignedData [13:42:26]SAM_PROTO_SignData [13:42:26]wFMCommunicate request_size=4 [13:42:26]MH_SAM_APDU [13:42:26]CAPDU: 80 0D 01 02 [13:42:26]Write to MH i2c: E2 08 00 02 6F 80 0D 01 02 00 00 00 00 EA [13:42:26]Write i2c OK [13:42:26]MH_I2C_Read... [13:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:26]Read from MH i2c: E2 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 02 6F 00 90 00 E5 [13:42:26]RAPDU: 90 00 [13:42:26]wFMCommunicate OK [13:42:26]wFMCommunicate request_size=255 [13:42:26]MH_SAM_APDU [13:42:26]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 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 D2 00 00 00 F4 03 04 00 C6 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 75 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [13:42:26]Write to MH i2c: E2 02 01 03 6F 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 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 D2 00 00 00 F4 03 04 00 C6 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 75 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 6A [13:42:26]Write i2c OK [13:42:26]MH_I2C_Read... [13:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:26]Read from MH i2c: E2 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 03 6F 00 90 00 E6 [13:42:26]RAPDU: 90 00 [13:42:26]wFMCommunicate OK [13:42:26]wFMCommunicate request_size=35 [13:42:26]MH_SAM_APDU [13:42:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 12 01 00 35 04 06 00 8E EF 3B A2 FD 71 [13:42:26]Write to MH i2c: E2 26 00 04 6F 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 12 01 00 35 04 06 00 8E EF 3B A2 FD 71 00 00 30 [13:42:26]Write i2c OK [13:42:26]MH_I2C_Read... [13:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:26]Read from MH i2c: E2 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 [13:42:26]MH_I2C_Read... [13:42:26]Read from MH i2c: E2 03 00 04 6F 00 90 00 E7 [13:42:26]RAPDU: 90 00 [13:42:26]wFMCommunicate OK [13:42:26]wFMCommunicate request_size=4 [13:42:26]MH_SAM_APDU [13:42:26]CAPDU: 80 0D 03 02 [13:42:26]Write to MH i2c: E2 08 00 05 6F 80 0D 03 02 00 00 00 00 EF [13:42:26]Write i2c OK [13:42:26]MH_I2C_Read... [13:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:27]Read from MH i2c: E2 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 0B 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 0B 00 05 6F 00 D6 9F A9 DC BF D0 F3 D1 90 00 3D [13:42:27]RAPDU: D6 9F A9 DC BF D0 F3 D1 90 00 [13:42:27]wFMCommunicate OK [13:42:27]SAM_PROTO_SignData done [13:42:27]FM_MakeSignedData done [13:42:27]CreateOFDProtocolMessage [13:42:27]wFMCommunicate request_size=4 [13:42:27]MH_SAM_APDU [13:42:27]CAPDU: 80 11 00 00 [13:42:27]Write to MH i2c: E2 08 00 06 6F 80 11 00 00 00 00 00 00 EF [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:27]Read from MH i2c: E2 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 17 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 17 00 06 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [13:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:42:27]wFMCommunicate OK [13:42:27]CreateOFDProtocolMessage done [13:42:27]OFDSenderStorePacket 70262 [13:42:27]StoreOFDPacket docnum=70262 [13:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 08 C3 20 01 4C B2 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 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 D2 00 00 00 F4 03 04 00 C6 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 75 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 12 01 00 35 04 06 00 8E EF 3B A2 FD 71 D6 9F A9 DC BF D0 F3 D1 [13:42:27]CheckFolder [13:42:27]dirname=/storage/ofd_packets [13:42:27]CheckFolder done [13:42:27]ProducePacketName [13:42:27]name=ofd_packets/00070262 [13:42:27]NVStorageSaveData ofd_packets/00070262 [13:42:27]File name is /storage/ofd_packets/00070262 [13:42:27]Write 326 bytes [13:42:27]NVStorageSaveData done [13:42:27]OFDSenderStorePacket done [13:42:27]KKMCreateOFDPacket done [13:42:27]NVStorageSaveData kkm_last_timestamp [13:42:27]File name is /storage/kkm_last_timestamp [13:42:27]Write 4 bytes [13:42:27]NVStorageSaveData done [13:42:27]ExternCall_PrintAddStr [13:42:27]wPrintStart [13:42:27]Write to MH i2c: 01 00 00 07 6F 76 [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 07 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 07 00 07 6F 00 00 00 00 00 FF 0F 8B [13:42:27]RasterBufferAndPrint [13:42:27]line Счет N : (1)2886028 [13:42:27]line ИНН: 02508201610067 [13:42:27]line Контрольно-Кассовый Чек [13:42:27]line ВОЗВРАТ ПРОДАЖИ [13:42:27]line ТРК (МРК, ГНК) : 61 [13:42:27]line Товар: 2710194210 [13:42:27]line ДТ-К-5 [13:42:27]line 66.490 * 75.20 [13:42:27]line = 5000.05 [13:42:27]line НДС 12% НСП 1% [13:42:27]line > о реализуемом товаре [13:42:27]line ОКРУГЛЕНИЕ: -0.05 [13:42:27]line ИТОГО: 5000.00 [13:42:27]line НСП 1% : 44.25 [13:42:27]line НДС 12% : 530.98 [13:42:27]line Наличными: 5000.00 [13:42:27]line Безнал.: 0.00 [13:42:27]line Место: АЗС № 85 "Партнер Нефть" [13:42:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:42:27]line СНО: Общий режим [13:42:27]line Чек 210 22.10.2024 13:42 [13:42:27]line Смена: 195 ФФД: 1.0 [13:42:27]line ЗНМ: 0300000167 [13:42:27]line РНМ: 0000000000156251 [13:42:27]line Версия ККМ: v1.0 [13:42:27]line ФД осн.: 70261 [13:42:27]line ФМ осн.: 0000000000963346 [13:42:27]line [13:42:27]line Дисконтная программа [13:42:27]line ДТ [13:42:27]line номер 85 [13:42:27]line сэкономлено 66.49 сом [13:42:27]line ФМ: 0000000000963346 [13:42:27]line ФД: 70262 [13:42:27]line ФПД: 157158148865393 [13:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134230&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70262&fm=157158148865393&tin=02508201610067®Number=0000000000156251&sum=500000 [13:42:27]written 0, free lines is 4095 [13:42:27]OFD Sender: Processing packet 70262 [packets to send 18, broken 17] [13:42:27]ProducePacketName [13:42:27]name=ofd_packets/00070262 [13:42:27]OFD Sender: To server: pG, [13:42:27]CommunicateWithHost lk.salyk.kg:30040 [13:42:27]ConnectInit lk.salyk.kg [13:42:27]Connected sock=10 [13:42: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 34 36 28 01 00 00 08 C3 20 01 4C B2 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 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 D2 00 00 00 F4 03 04 00 C6 AB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 75 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 12 01 00 35 04 06 00 8E EF 3B A2 FD 71 D6 9F A9 DC BF D0 F3 D1 [13:42: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 34 36 4F 00 00 00 8B BF 47 00 50 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 34 36 10 04 04 00 76 12 01 00 F4 03 04 00 67 55 17 67 B6 04 01 00 00 32 CB 92 1A A4 0E 2A F2 [13:42:27]CommunicateWithHost err = 0 [13:42:27]CheckOFDResponse [13:42:27]1017 (14) - 77093643461234 [13:42:27]1041 (16) - 0000000000963346 [13:42:27]1040 (4) - 70262 [13:42:27]1012 (4) - 22.10.2024 07:33 [13:42:27]1206 (1) - 0 [13:42:27]OFD Sender: Remove packet 70262 [13:42:27]ProducePacketName [13:42:27]name=ofd_packets/00070262 [13:42:27]NVStorageDeleteData [13:42:27]Write to MH i2c: 01 00 00 37 6F A6 [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 07 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: 01 07 00 37 6F 00 00 00 00 00 C0 0C 79 [13:42:27]RasterBufferAndPrint [13:42:27]line [13:42:27]line [13:42:27]line [13:42:27]line [13:42:27]line [13:42:27]written 0, free lines is 3277 [13:42:27]MH_Cut [13:42:27]Write to MH i2c: D1 01 00 3E 6F 01 7F [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: D1 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: D1 01 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: D1 01 00 3E 6F 00 7E [13:42:27]Write to MH i2c: 01 00 00 3F 6F AE [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]OFD Sender: No OFD packet to send [13:42:28]*** Cut start [13:42:28]*** Partial cut [13:42:28]*** CUTSNS_PIN = 1 [13:42:28]*** CUTSNS_PIN = 0 [13:42:28]*** Brake cut motor [13:42:28]Read from MH i2c: 01 [13:42:28]MH_I2C_Read... [13:42:28]*** Stop cut motor [13:42:28]*** Cut end [13:42:28]Read from MH i2c: 01 07 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: 01 07 00 3F 6F 00 00 00 00 00 FF 0F C3 [13:42:28]process_action close_receipt done [13:42:28]requested_data is exist [13:42:28]produce_requested_data [13:42:28]requested_item fm.sn is exist - process it [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 11 00 00 [13:42:28]Write to MH i2c: E2 08 00 40 6F 80 11 00 00 00 00 00 00 29 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 17 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 17 00 40 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [13:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:42:29]wFMCommunicate OK [13:42:29]requested_item fd.num is exist - process it [13:42:29]SAM_PROTO_GetFieldsCounters [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 13 00 00 [13:42:29]Write to MH i2c: E2 08 00 41 6F 80 13 00 00 00 00 00 00 2C [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 62 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 62 00 41 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 12 01 00 0E 04 04 00 C3 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 09 [13:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 12 01 00 0E 04 04 00 C3 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 [13:42:29]wFMCommunicate OK [13:42:29]SAM_PROTO_GetFieldsCounters done [13:42:29]requested_item shift.num is exist - process it [13:42:29]requested_item shift.opened is exist - process it [13:42:29]req_shift_opened [13:42:29]FM_GetShiftState [13:42:29]SAM_PROTO_GetShiftState [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 13 01 00 [13:42:29]Write to MH i2c: E2 08 00 42 6F 80 13 01 00 00 00 00 00 2E [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0E 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0E 00 42 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1C [13:42:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:42:29]wFMCommunicate OK [13:42:29]SAM_PROTO_GetShiftState done [13:42:29]FM_GetShiftState done [13:42:29]req_shift_opened done [13:42:29]requested_item shift.open_date is exist - process it [13:42:29]req_shift_open_date [13:42:29]req_shift_open_date done [13:42:29]produce_requested_data done [13:42:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70262,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:42:29]process_action_free close_receipt [13:42:29]json_value_free [13:42:29]json_value_free done [13:42:29]process_json_proto returns [13:42:29]Send response to host [13:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70262,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:42:29]free response buf [13:42:29]execute_script done [13:42:29]execute_script returns [13:42:29]free content buf [13:42:29]Sock 9.Close socket [13:42:29]Sock 9.Thread stoped [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]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:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]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:23]accept exits with 7 [13:48:23]New connection [13:48:23]New thread 3067170148 created [13:48:23]Thread 3067026788 joined [13:48:23]Waiting for new connection... [13:48:23] Sock 7.Parse request [13:48:23]Sock 7.Check first char [13:48:23]Sock 7.First char is OK [13:48:23]request: POST /json_proto HTTP/1.0 [13:48:23]Method: POST [13:48:23]URL: /json_proto [13:48:23]Method is POST - this is cgi request [13:48:23]url: /json_proto [13:48:23]query_string will be loaded in cgi processing [13:48:23]execute_cgi json_proto POST (null) [13:48:23]execute_cgi path=json_proto method=POST [13:48:23]POST find Content-Length [13:48:23]Host: 172.17.50.3:8080 [13:48:23]Content-Length: 689 [13:48:23]Content-Type: application/json [13:48:23] [13:48:23]POST finish read [13:48:23]Found Content-Length = 689 [13:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:48:23]execute_script... [13:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:48:23]POST & json_proto [13:48:23]process_json_proto [13:48:23]json parsed OK: [13:48:23]protocol is kg_v1.0 [13:48:23]action value=close_receipt [13:48:23]process_action close_receipt [13:48:23]cmd_close_receipt [13:48:23]MH_GetDate [13:48:23]Write to MH i2c: F0 00 00 43 6F A1 [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 09 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 09 00 43 6F 00 2D AD 17 67 6B 98 1E 66 89 [13:48:23]GetLastDocTimeStamp 1729604550 [13:48:23]current date 1729604909 [13:48:23]FM_GetShiftState [13:48:23]SAM_PROTO_GetShiftState [13:48:23]wFMCommunicate request_size=4 [13:48:23]MH_SAM_APDU [13:48:23]CAPDU: 80 13 01 00 [13:48:23]Write to MH i2c: E2 08 00 44 6F 80 13 01 00 00 00 00 00 30 [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 44 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1E [13:48:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:48:23]wFMCommunicate OK [13:48:23]SAM_PROTO_GetShiftState done [13:48:23]FM_GetShiftState done [13:48:23]opened in 1729555832 [13:48:23]opened+sec_in_day 1729642232 [13:48:23]quantity*price = 100051 [13:48:23]sum+1 = 100052 [13:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 211 22.10.2024 13:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70263 ФПД: 77983052932874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134829&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70263&fm=77983052932874&tin=02508201610067®Number=0000000000156251&sum=100000 [13:48:24]StoreToDocumentArchive [13:48:24]shift 195 fd 70263 [13:48:24]save to /storage/0195/doc_00070263 [13:48:24]save last doc name /storage/0195/doc_00070263 to /storage/kkm_last_doc_name [13:48:24]save OK [13:48:24]Clear old archive folders... [13:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:48:24]tlvbuf is 01155260 [13:48:24]SAM_PROTO_ClearQueue [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 09 00 00 [13:48:24]Write to MH i2c: E2 08 00 51 6F 80 09 00 00 00 00 00 00 32 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 51 6F 00 90 00 34 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]SAM_PROTO_ClearQueue done [13:48:24]KKMCreateOFDPacket [13:48:24]OFDProtocolAddRootSTLVToBuf [13:48:24]FM_MakeSignedData [13:48:24]FM_MakeSignedData [13:48:24]SAM_PROTO_SignData [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 01 02 [13:48:24]Write to MH i2c: E2 08 00 52 6F 80 0D 01 02 00 00 00 00 3A [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 52 6F 00 90 00 35 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=255 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 00 00 00 F4 03 04 00 2D AD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 12 01 [13:48:24]Write to MH i2c: E2 02 01 53 6F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 00 00 00 F4 03 04 00 2D AD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 12 01 00 00 04 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:25]Read from MH i2c: E2 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 03 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 03 00 53 6F 00 90 00 36 [13:48:25]RAPDU: 90 00 [13:48:25]wFMCommunicate OK [13:48:25]wFMCommunicate request_size=16 [13:48:25]MH_SAM_APDU [13:48:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 46 EC D8 2B 27 0A [13:48:25]Write to MH i2c: E2 13 00 54 6F 80 0D 02 02 0B 00 00 35 04 06 00 46 EC D8 2B 27 0A 00 00 F8 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:25]Read from MH i2c: E2 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 03 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 03 00 54 6F 00 90 00 37 [13:48:25]RAPDU: 90 00 [13:48:25]wFMCommunicate OK [13:48:25]wFMCommunicate request_size=4 [13:48:25]MH_SAM_APDU [13:48:25]CAPDU: 80 0D 03 02 [13:48:25]Write to MH i2c: E2 08 00 55 6F 80 0D 03 02 00 00 00 00 3F [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:25]Read from MH i2c: E2 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 0B 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 0B 00 55 6F 00 CF EA DF 9A 19 2E BF BF 90 00 37 [13:48:25]RAPDU: CF EA DF 9A 19 2E BF BF 90 00 [13:48:25]wFMCommunicate OK [13:48:25]SAM_PROTO_SignData done [13:48:25]FM_MakeSignedData done [13:48:25]CreateOFDProtocolMessage [13:48:25]wFMCommunicate request_size=4 [13:48:25]MH_SAM_APDU [13:48:25]CAPDU: 80 11 00 00 [13:48:25]Write to MH i2c: E2 08 00 56 6F 80 11 00 00 00 00 00 00 3F [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:25]Read from MH i2c: E2 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 17 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: E2 17 00 56 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [13:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:48:25]wFMCommunicate OK [13:48:25]CreateOFDProtocolMessage done [13:48:25]OFDSenderStorePacket 70263 [13:48:25]StoreOFDPacket docnum=70263 [13:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EA 25 0D 01 18 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 00 00 00 F4 03 04 00 2D AD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 12 01 00 35 04 06 00 46 EC D8 2B 27 0A CF EA DF 9A 19 2E BF BF [13:48:25]CheckFolder [13:48:25]dirname=/storage/ofd_packets [13:48:25]CheckFolder done [13:48:25]ProducePacketName [13:48:25]name=ofd_packets/00070263 [13:48:25]NVStorageSaveData ofd_packets/00070263 [13:48:25]File name is /storage/ofd_packets/00070263 [13:48:25]Write 307 bytes [13:48:25]NVStorageSaveData done [13:48:25]OFDSenderStorePacket done [13:48:25]KKMCreateOFDPacket done [13:48:25]NVStorageSaveData kkm_last_timestamp [13:48:25]File name is /storage/kkm_last_timestamp [13:48:25]Write 4 bytes [13:48:25]NVStorageSaveData done [13:48:25]ExternCall_PrintAddStr [13:48:25]wPrintStart [13:48:25]Write to MH i2c: 01 00 00 57 6F C6 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 57 6F 00 00 00 00 00 FF 0F DB [13:48:25]RasterBufferAndPrint [13:48:25]line Счет N : (1)2886029 [13:48:25]line ИНН: 02508201610067 [13:48:25]line Контрольно-Кассовый Чек [13:48:25]line ПРОДАЖА [13:48:25]line ТРК (МРК, ГНК) : 41 [13:48:25]line Товар: 2710194240 [13:48:25]line D-ENERGY Дт-К-2 [13:48:25]line 12.960 * 77.20 [13:48:25]line = 1000.51 [13:48:25]line НДС 12% НСП 1% [13:48:25]line > о реализуемом товаре [13:48:25]line ОКРУГЛЕНИЕ: -0.51 [13:48:25]line ИТОГО: 1000.00 [13:48:25]line Внесено: 1000.00 [13:48:25]line СДАЧА: 0.00 [13:48:25]line НСП 1% : 8.85 [13:48:25]line НДС 12% : 106.25 [13:48:25]line Наличными: 1000.00 [13:48:25]line Безнал.: 0.00 [13:48:25]line Место: АЗС № 85 "Партнер Нефть" [13:48:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:48:25]line СНО: Общий режим [13:48:25]line Чек 211 22.10.2024 13:48 [13:48:25]line Смена: 195 ФФД: 1.0 [13:48:25]line ЗНМ: 0300000167 [13:48:25]line РНМ: 0000000000156251 [13:48:25]line Версия ККМ: v1.0 [13:48:25]line ФМ: 0000000000963346 [13:48:25]line ФД: 70263 [13:48:25]line ФПД: 77983052932874 [13:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134829&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70263&fm=77983052932874&tin=02508201610067®Number=0000000000156251&sum=100000 [13:48:25]OFD Sender: Processing packet 70263 [packets to send 18, broken 17] [13:48:25]ProducePacketName [13:48:25]name=ofd_packets/00070263 [13:48:25]OFD Sender: To server: pG, [13:48:25]CommunicateWithHost lk.salyk.kg:30040 [13:48:25]ConnectInit lk.salyk.kg [13:48:25]written 0, free lines is 4095 [13:48:25]Connected sock=11 [13:48: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 34 36 15 01 00 00 EA 25 0D 01 18 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 00 00 00 F4 03 04 00 2D AD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 12 01 00 35 04 06 00 46 EC D8 2B 27 0A CF EA DF 9A 19 2E BF BF [13:48: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 34 36 4F 00 00 00 51 28 47 00 99 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 34 36 10 04 04 00 77 12 01 00 F4 03 04 00 CD 56 17 67 B6 04 01 00 00 D7 96 42 D0 6E CE 1E EC [13:48:25]CommunicateWithHost err = 0 [13:48:25]CheckOFDResponse [13:48:25]1017 (14) - 77093643461234 [13:48:25]1041 (16) - 0000000000963346 [13:48:25]1040 (4) - 70263 [13:48:25]1012 (4) - 22.10.2024 07:39 [13:48:25]1206 (1) - 0 [13:48:25]OFD Sender: Remove packet 70263 [13:48:25]ProducePacketName [13:48:25]name=ofd_packets/00070263 [13:48:25]NVStorageDeleteData [13:48:26]Write to MH i2c: 01 00 00 82 6F F1 [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: 01 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: 01 07 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: 01 07 00 82 6F 00 00 00 00 00 F6 0C FA [13:48:26]RasterBufferAndPrint [13:48:26]line [13:48:26]line [13:48:26]line [13:48:26]line [13:48:26]line [13:48:26]written 0, free lines is 3324 [13:48:26]MH_Cut [13:48:26]Write to MH i2c: D1 01 00 89 6F 01 CA [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: D1 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: D1 01 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: D1 01 00 89 6F 00 C9 [13:48:26]Write to MH i2c: 01 00 00 8A 6F F9 [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]OFD Sender: No OFD packet to send [13:48:26]*** Cut start [13:48:26]*** Partial cut [13:48:26]*** CUTSNS_PIN = 1 [13:48:26]*** CUTSNS_PIN = 0 [13:48:27]*** Brake cut motor [13:48:27]Read from MH i2c: 01 [13:48:27]MH_I2C_Read... [13:48:27]*** Stop cut motor [13:48:27]*** Cut end [13:48:27]Read from MH i2c: 01 07 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: 01 07 00 8A 6F 00 00 00 00 00 FF 0F 0E [13:48:27]process_action close_receipt done [13:48:27]requested_data is exist [13:48:27]produce_requested_data [13:48:27]requested_item fm.sn is exist - process it [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 11 00 00 [13:48:27]Write to MH i2c: E2 08 00 8B 6F 80 11 00 00 00 00 00 00 74 [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 17 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 17 00 8B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [13:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:48:27]wFMCommunicate OK [13:48:27]requested_item fd.num is exist - process it [13:48:27]SAM_PROTO_GetFieldsCounters [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 13 00 00 [13:48:27]Write to MH i2c: E2 08 00 8C 6F 80 13 00 00 00 00 00 00 77 [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 62 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 62 00 8C 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 12 01 00 0E 04 04 00 C3 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 58 [13:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 12 01 00 0E 04 04 00 C3 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 [13:48:27]wFMCommunicate OK [13:48:27]SAM_PROTO_GetFieldsCounters done [13:48:27]requested_item shift.num is exist - process it [13:48:27]requested_item shift.opened is exist - process it [13:48:27]req_shift_opened [13:48:27]FM_GetShiftState [13:48:27]SAM_PROTO_GetShiftState [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 13 01 00 [13:48:27]Write to MH i2c: E2 08 00 8D 6F 80 13 01 00 00 00 00 00 79 [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:27]Read from MH i2c: E2 0E 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 0E 00 8D 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 67 [13:48:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:48:27]wFMCommunicate OK [13:48:27]SAM_PROTO_GetShiftState done [13:48:27]FM_GetShiftState done [13:48:27]req_shift_opened done [13:48:27]requested_item shift.open_date is exist - process it [13:48:27]req_shift_open_date [13:48:27]req_shift_open_date done [13:48:27]produce_requested_data done [13:48:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70263,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:48:27]process_action_free close_receipt [13:48:27]json_value_free [13:48:27]json_value_free done [13:48:27]process_json_proto returns [13:48:27]Send response to host [13:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70263,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:48:27]free response buf [13:48:27]execute_script done [13:48:27]execute_script returns [13:48:27]free content buf [13:48:27]Sock 7.Close socket [13:48:27]Sock 7.Thread stoped [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:04]accept exits with 9 [13:54:04]New connection [13:54:04]New thread 3067026788 created [13:54:04]Thread 3067170148 joined [13:54:04]Waiting for new connection... [13:54:04] Sock 9.Parse request [13:54:04]Sock 9.Check first char [13:54:04]Sock 9.First char is OK [13:54:04]request: POST /json_proto HTTP/1.0 [13:54:04]Method: POST [13:54:04]URL: /json_proto [13:54:04]Method is POST - this is cgi request [13:54:04]url: /json_proto [13:54:04]query_string will be loaded in cgi processing [13:54:04]execute_cgi json_proto POST (null) [13:54:04]execute_cgi path=json_proto method=POST [13:54:04]POST find Content-Length [13:54:04]Host: 172.17.50.3:8080 [13:54:04]Content-Length: 678 [13:54:04]Content-Type: application/json [13:54:04] [13:54:04]POST finish read [13:54:04]Found Content-Length = 678 [13:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:54:04]execute_script... [13:54: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)2886030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:54:04]POST & json_proto [13:54:04]process_json_proto [13:54:04]json parsed OK: [13:54:04]protocol is kg_v1.0 [13:54:04]action value=close_receipt [13:54:04]process_action close_receipt [13:54:04]cmd_close_receipt [13:54:04]MH_GetDate [13:54:04]Write to MH i2c: F0 00 00 8E 6F EC [13:54:04]Write i2c OK [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: F0 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: F0 09 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: F0 09 00 8E 6F 00 81 AE 17 67 6B 98 1E 66 29 [13:54:04]GetLastDocTimeStamp 1729604909 [13:54:04]current date 1729605249 [13:54:04]FM_GetShiftState [13:54:04]SAM_PROTO_GetShiftState [13:54:04]wFMCommunicate request_size=4 [13:54:04]MH_SAM_APDU [13:54:04]CAPDU: 80 13 01 00 [13:54:04]Write to MH i2c: E2 08 00 8F 6F 80 13 01 00 00 00 00 00 7B [13:54:04]Write i2c OK [13:54:04]MH_I2C_Read... [13:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:04]Read from MH i2c: E2 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 8F 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 69 [13:54:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:54:04]wFMCommunicate OK [13:54:04]SAM_PROTO_GetShiftState done [13:54:04]FM_GetShiftState done [13:54:04]opened in 1729555832 [13:54:04]opened+sec_in_day 1729642232 [13:54:04]quantity*price = 40006 [13:54:04]sum+1 = 40007 [13:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 212 22.10.2024 13:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70264 ФПД: 97446625051813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135409&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70264&fm=97446625051813&tin=02508201610067®Number=0000000000156251&sum=40000 [13:54:05]StoreToDocumentArchive [13:54:05]shift 195 fd 70264 [13:54:05]save to /storage/0195/doc_00070264 [13:54:05]save last doc name /storage/0195/doc_00070264 to /storage/kkm_last_doc_name [13:54:05]save OK [13:54:05]Clear old archive folders... [13:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:05]tlvbuf is 01155050 [13:54:05]SAM_PROTO_ClearQueue [13:54:05]wFMCommunicate request_size=4 [13:54:05]MH_SAM_APDU [13:54:05]CAPDU: 80 09 00 00 [13:54:05]Write to MH i2c: E2 08 00 9C 6F 80 09 00 00 00 00 00 00 7D [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 9C 6F 00 90 00 7F [13:54:05]RAPDU: 90 00 [13:54:05]wFMCommunicate OK [13:54:05]SAM_PROTO_ClearQueue done [13:54:05]KKMCreateOFDPacket [13:54:05]OFDProtocolAddRootSTLVToBuf [13:54:05]FM_MakeSignedData [13:54:05]FM_MakeSignedData [13:54:05]SAM_PROTO_SignData [13:54:05]wFMCommunicate request_size=4 [13:54:05]MH_SAM_APDU [13:54:05]CAPDU: 80 0D 01 02 [13:54:05]Write to MH i2c: E2 08 00 9D 6F 80 0D 01 02 00 00 00 00 85 [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 9D 6F 00 90 00 80 [13:54:05]RAPDU: 90 00 [13:54:05]wFMCommunicate OK [13:54:05]wFMCommunicate request_size=255 [13:54:05]MH_SAM_APDU [13:54: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 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 D4 00 00 00 F4 03 04 00 81 AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 12 01 00 35 04 06 00 58 [13:54:05]Write to MH i2c: E2 02 01 9E 6F 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 D4 00 00 00 F4 03 04 00 81 AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 12 01 00 35 04 06 00 58 00 00 04 [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 9E 6F 00 90 00 81 [13:54:05]RAPDU: 90 00 [13:54:05]wFMCommunicate OK [13:54:05]wFMCommunicate request_size=10 [13:54:05]MH_SAM_APDU [13:54:05]CAPDU: 80 0D 02 02 05 A0 8F 78 84 A5 [13:54:05]Write to MH i2c: E2 0D 00 9F 6F 80 0D 02 02 05 00 A0 8F 78 84 A5 00 00 62 [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 03 00 9F 6F 00 90 00 82 [13:54:05]RAPDU: 90 00 [13:54:05]wFMCommunicate OK [13:54:05]wFMCommunicate request_size=4 [13:54:05]MH_SAM_APDU [13:54:05]CAPDU: 80 0D 03 02 [13:54:05]Write to MH i2c: E2 08 00 A0 6F 80 0D 03 02 00 00 00 00 8A [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 0B 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 0B 00 A0 6F 00 BB C4 46 CB 5E DE 1D 37 90 00 AB [13:54:05]RAPDU: BB C4 46 CB 5E DE 1D 37 90 00 [13:54:05]wFMCommunicate OK [13:54:05]SAM_PROTO_SignData done [13:54:05]FM_MakeSignedData done [13:54:05]CreateOFDProtocolMessage [13:54:05]wFMCommunicate request_size=4 [13:54:05]MH_SAM_APDU [13:54:05]CAPDU: 80 11 00 00 [13:54:05]Write to MH i2c: E2 08 00 A1 6F 80 11 00 00 00 00 00 00 8A [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:05]Read from MH i2c: E2 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 17 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: E2 17 00 A1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [13:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:05]wFMCommunicate OK [13:54:05]CreateOFDProtocolMessage done [13:54:05]OFDSenderStorePacket 70264 [13:54:05]StoreOFDPacket docnum=70264 [13:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F5 6D 07 01 40 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D4 00 00 00 F4 03 04 00 81 AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 12 01 00 35 04 06 00 58 A0 8F 78 84 A5 BB C4 46 CB 5E DE 1D 37 [13:54:05]CheckFolder [13:54:05]dirname=/storage/ofd_packets [13:54:05]CheckFolder done [13:54:05]ProducePacketName [13:54:05]name=ofd_packets/00070264 [13:54:05]NVStorageSaveData ofd_packets/00070264 [13:54:05]File name is /storage/ofd_packets/00070264 [13:54:05]Write 301 bytes [13:54:05]NVStorageSaveData done [13:54:05]OFDSenderStorePacket done [13:54:05]KKMCreateOFDPacket done [13:54:05]NVStorageSaveData kkm_last_timestamp [13:54:05]File name is /storage/kkm_last_timestamp [13:54:05]Write 4 bytes [13:54:05]NVStorageSaveData done [13:54:05]ExternCall_PrintAddStr [13:54:05]wPrintStart [13:54:05]Write to MH i2c: 01 00 00 A2 6F 11 [13:54:05]Write i2c OK [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: 01 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: 01 07 00 [13:54:05]MH_I2C_Read... [13:54:05]Read from MH i2c: 01 07 00 A2 6F 00 00 00 00 00 FF 0F 26 [13:54:05]RasterBufferAndPrint [13:54:05]line Счет N : (1)2886030 [13:54:05]line ИНН: 02508201610067 [13:54:05]line Контрольно-Кассовый Чек [13:54:05]line ПРОДАЖА [13:54:05]line ТРК (МРК, ГНК) : 42 [13:54:05]line Товар: 2710124130 [13:54:05]line Аи-92-К-5 [13:54:05]line 5.980 * 66.90 [13:54:05]line = 400.06 [13:54:05]line НДС 12% НСП 1% [13:54:05]line > о реализуемом товаре [13:54:05]line ОКРУГЛЕНИЕ: -0.06 [13:54:05]line ИТОГО: 400.00 [13:54:05]line Внесено: 400.00 [13:54:05]line СДАЧА: 0.00 [13:54:05]line НСП 1% : 3.54 [13:54:05]line НДС 12% : 42.48 [13:54:05]line Наличными: 400.00 [13:54:05]line Безнал.: 0.00 [13:54:05]line Место: АЗС № 85 "Партнер Нефть" [13:54:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:54:05]line СНО: Общий режим [13:54:05]line Чек 212 22.10.2024 13:54 [13:54:05]line Смена: 195 ФФД: 1.0 [13:54:05]line ЗНМ: 0300000167 [13:54:05]line РНМ: 0000000000156251 [13:54:05]line Версия ККМ: v1.0 [13:54:05]line ФМ: 0000000000963346 [13:54:05]line ФД: 70264 [13:54:05]line ФПД: 97446625051813 [13:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135409&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70264&fm=97446625051813&tin=02508201610067®Number=0000000000156251&sum=40000 [13:54:06]OFD Sender: Processing packet 70264 [packets to send 18, broken 17] [13:54:06]ProducePacketName [13:54:06]name=ofd_packets/00070264 [13:54:06]OFD Sender: To server: pG, [13:54:06]CommunicateWithHost lk.salyk.kg:30040 [13:54:06]ConnectInit lk.salyk.kg [13:54:06]written 0, free lines is 4095 [13:54:06]Connected sock=10 [13:54: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 34 36 0F 01 00 00 F5 6D 07 01 40 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D4 00 00 00 F4 03 04 00 81 AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 12 01 00 35 04 06 00 58 A0 8F 78 84 A5 BB C4 46 CB 5E DE 1D 37 [13:54: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 34 36 4F 00 00 00 58 EE 47 00 D9 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 34 36 10 04 04 00 78 12 01 00 F4 03 04 00 22 58 17 67 B6 04 01 00 00 FA 58 37 46 EF 04 E5 01 [13:54:06]CommunicateWithHost err = 0 [13:54:06]CheckOFDResponse [13:54:06]1017 (14) - 77093643461234 [13:54:06]1041 (16) - 0000000000963346 [13:54:06]1040 (4) - 70264 [13:54:06]1012 (4) - 22.10.2024 07:45 [13:54:06]1206 (1) - 0 [13:54:06]OFD Sender: Remove packet 70264 [13:54:06]ProducePacketName [13:54:06]name=ofd_packets/00070264 [13:54:06]NVStorageDeleteData [13:54:06]Write to MH i2c: 01 00 00 CD 6F 3C [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: 01 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: 01 07 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: 01 07 00 CD 6F 00 00 00 00 00 F7 0C 46 [13:54:06]RasterBufferAndPrint [13:54:06]line [13:54:06]line [13:54:06]line [13:54:06]line [13:54:06]line [13:54:06]written 0, free lines is 3328 [13:54:06]MH_Cut [13:54:06]Write to MH i2c: D1 01 00 D4 6F 01 15 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: D1 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: D1 01 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: D1 01 00 D4 6F 00 14 [13:54:06]Write to MH i2c: 01 00 00 D5 6F 44 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]OFD Sender: No OFD packet to send [13:54:07]*** Cut start [13:54:07]*** Partial cut [13:54:07]*** CUTSNS_PIN = 1 [13:54:07]*** CUTSNS_PIN = 0 [13:54:07]*** Brake cut motor [13:54:07]Read from MH i2c: 01 [13:54:07]MH_I2C_Read... [13:54:07]*** Stop cut motor [13:54:07]*** Cut end [13:54:07]Read from MH i2c: 01 07 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: 01 07 00 D5 6F 00 00 00 00 00 FF 0F 59 [13:54:07]process_action close_receipt done [13:54:07]requested_data is exist [13:54:07]produce_requested_data [13:54:07]requested_item fm.sn is exist - process it [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 11 00 00 [13:54:07]Write to MH i2c: E2 08 00 D6 6F 80 11 00 00 00 00 00 00 BF [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 17 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 17 00 D6 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [13:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:07]wFMCommunicate OK [13:54:07]requested_item fd.num is exist - process it [13:54:07]SAM_PROTO_GetFieldsCounters [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 13 00 00 [13:54:07]Write to MH i2c: E2 08 00 D7 6F 80 13 00 00 00 00 00 00 C2 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 62 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 62 00 D7 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 12 01 00 0E 04 04 00 C3 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 A7 [13:54: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 12 01 00 0E 04 04 00 C3 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 [13:54:08]wFMCommunicate OK [13:54:08]SAM_PROTO_GetFieldsCounters done [13:54:08]requested_item shift.num is exist - process it [13:54:08]requested_item shift.opened is exist - process it [13:54:08]req_shift_opened [13:54:08]FM_GetShiftState [13:54:08]SAM_PROTO_GetShiftState [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 13 01 00 [13:54:08]Write to MH i2c: E2 08 00 D8 6F 80 13 01 00 00 00 00 00 C4 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0E 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0E 00 D8 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B2 [13:54:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:54:08]wFMCommunicate OK [13:54:08]SAM_PROTO_GetShiftState done [13:54:08]FM_GetShiftState done [13:54:08]req_shift_opened done [13:54:08]requested_item shift.open_date is exist - process it [13:54:08]req_shift_open_date [13:54:08]req_shift_open_date done [13:54:08]produce_requested_data done [13:54:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70264,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:54:08]process_action_free close_receipt [13:54:08]json_value_free [13:54:08]json_value_free done [13:54:08]process_json_proto returns [13:54:08]Send response to host [13:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70264,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:54:08]free response buf [13:54:08]execute_script done [13:54:08]execute_script returns [13:54:08]free content buf [13:54:08]Sock 9.Close socket [13:54:08]Sock 9.Thread stoped [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:29]accept exits with 7 [13:54:29]New connection [13:54:29]New thread 3067170148 created [13:54:29]Thread 3067026788 joined [13:54:29]Waiting for new connection... [13:54:29] Sock 7.Parse request [13:54:29]Sock 7.Check first char [13:54:29]Sock 7.First char is OK [13:54:29]request: POST /json_proto HTTP/1.0 [13:54:29]Method: POST [13:54:29]URL: /json_proto [13:54:29]Method is POST - this is cgi request [13:54:29]url: /json_proto [13:54:29]query_string will be loaded in cgi processing [13:54:29]execute_cgi json_proto POST (null) [13:54:29]execute_cgi path=json_proto method=POST [13:54:29]POST find Content-Length [13:54:29]Host: 172.17.50.3:8080 [13:54:29]Content-Length: 678 [13:54:29]Content-Type: application/json [13:54:29] [13:54:29]POST finish read [13:54:29]Found Content-Length = 678 [13:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [13:54:29]execute_script... [13: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 : (1)2886031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [13:54:29]POST & json_proto [13:54:29]process_json_proto [13:54:29]json parsed OK: [13:54:29]protocol is kg_v1.0 [13:54:29]action value=close_receipt [13:54:29]process_action close_receipt [13:54:29]cmd_close_receipt [13:54:29]MH_GetDate [13:54:29]Write to MH i2c: F0 00 00 D9 6F 37 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 D9 6F 00 9B AE 17 67 6B 98 1E 66 8E [13:54:29]GetLastDocTimeStamp 1729605249 [13:54:29]current date 1729605275 [13:54:29]FM_GetShiftState [13:54:29]SAM_PROTO_GetShiftState [13:54:29]wFMCommunicate request_size=4 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 13 01 00 [13:54:29]Write to MH i2c: E2 08 00 DA 6F 80 13 01 00 00 00 00 00 C6 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:29]Read from MH i2c: E2 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 DA 6F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B4 [13:54:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:54:29]wFMCommunicate OK [13:54:29]SAM_PROTO_GetShiftState done [13:54:29]FM_GetShiftState done [13:54:29]opened in 1729555832 [13:54:29]opened+sec_in_day 1729642232 [13:54:29]quantity*price = 60027 [13:54:29]sum+1 = 60029 [13:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 213 22.10.2024 13:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70265 ФПД: 259513951828962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135435&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70265&fm=259513951828962&tin=02508201610067®Number=0000000000156251&sum=60000 [13:54:30]StoreToDocumentArchive [13:54:30]shift 195 fd 70265 [13:54:30]save to /storage/0195/doc_00070265 [13:54:30]save last doc name /storage/0195/doc_00070265 to /storage/kkm_last_doc_name [13:54:30]save OK [13:54:30]Clear old archive folders... [13:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:30]tlvbuf is 0121E360 [13:54:30]SAM_PROTO_ClearQueue [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 09 00 00 [13:54:30]Write to MH i2c: E2 08 00 E7 6F 80 09 00 00 00 00 00 00 C8 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 E7 6F 00 90 00 CA [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]SAM_PROTO_ClearQueue done [13:54:30]KKMCreateOFDPacket [13:54:30]OFDProtocolAddRootSTLVToBuf [13:54:30]FM_MakeSignedData [13:54:30]FM_MakeSignedData [13:54:30]SAM_PROTO_SignData [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 0D 01 02 [13:54:30]Write to MH i2c: E2 08 00 E8 6F 80 0D 01 02 00 00 00 00 D0 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 E8 6F 00 90 00 CB [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]wFMCommunicate request_size=255 [13:54:30]MH_SAM_APDU [13:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D5 00 00 00 F4 03 04 00 9B AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 12 01 00 35 04 06 00 EC [13:54:30]Write to MH i2c: E2 02 01 E9 6F 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D5 00 00 00 F4 03 04 00 9B AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 12 01 00 35 04 06 00 EC 00 00 8E [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 E9 6F 00 90 00 CC [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]wFMCommunicate request_size=10 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 0D 02 02 05 06 CC E9 BB E2 [13:54:30]Write to MH i2c: E2 0D 00 EA 6F 80 0D 02 02 05 00 06 CC E9 BB E2 00 00 35 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 EA 6F 00 90 00 CD [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 03 02 [13:54:31]Write to MH i2c: E2 08 00 EB 6F 80 0D 03 02 00 00 00 00 D5 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 EB 6F 00 64 EC 80 62 D0 1D B1 4D 90 00 F3 [13:54:31]RAPDU: 64 EC 80 62 D0 1D B1 4D 90 00 [13:54:31]wFMCommunicate OK [13:54:31]SAM_PROTO_SignData done [13:54:31]FM_MakeSignedData done [13:54:31]CreateOFDProtocolMessage [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 11 00 00 [13:54:31]Write to MH i2c: E2 08 00 EC 6F 80 11 00 00 00 00 00 00 D5 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 EC 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [13:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:31]wFMCommunicate OK [13:54:31]CreateOFDProtocolMessage done [13:54:31]OFDSenderStorePacket 70265 [13:54:31]StoreOFDPacket docnum=70265 [13:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 41 07 01 45 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D5 00 00 00 F4 03 04 00 9B AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 12 01 00 35 04 06 00 EC 06 CC E9 BB E2 64 EC 80 62 D0 1D B1 4D [13:54:31]CheckFolder [13:54:31]dirname=/storage/ofd_packets [13:54:31]CheckFolder done [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00070265 [13:54:31]NVStorageSaveData ofd_packets/00070265 [13:54:31]File name is /storage/ofd_packets/00070265 [13:54:31]Write 301 bytes [13:54:31]NVStorageSaveData done [13:54:31]OFDSenderStorePacket done [13:54:31]KKMCreateOFDPacket done [13:54:31]NVStorageSaveData kkm_last_timestamp [13:54:31]File name is /storage/kkm_last_timestamp [13:54:31]Write 4 bytes [13:54:31]NVStorageSaveData done [13:54:31]OFD Sender: Processing packet 70265 [packets to send 18, broken 17] [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00070265 [13:54:31]OFD Sender: To server: pG, [13:54:31]CommunicateWithHost lk.salyk.kg:30040 [13:54:31]ConnectInit lk.salyk.kg [13:54:31]ExternCall_PrintAddStr [13:54:31]wPrintStart [13:54:31]Write to MH i2c: 01 00 00 ED 6F 5C [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 ED 6F 00 00 00 00 00 FF 0F 71 [13:54:31]RasterBufferAndPrint [13:54:31]line Счет N : (1)2886031 [13:54:31]line ИНН: 02508201610067 [13:54:31]line Контрольно-Кассовый Чек [13:54:31]line ПРОДАЖА [13:54:31]line ТРК (МРК, ГНК) : 33 [13:54:31]line Товар: 2710124500 [13:54:31]line Аи-95-К-5 [13:54:31]line 8.090 * 74.20 [13:54:31]line = 600.28 [13:54:31]line НДС 12% НСП 1% [13:54:31]line > о реализуемом товаре [13:54:31]line ОКРУГЛЕНИЕ: -0.28 [13:54:31]line ИТОГО: 600.00 [13:54:31]line Внесено: 600.00 [13:54:31]line СДАЧА: 0.00 [13:54:31]line НСП 1% : 5.31 [13:54:31]line НДС 12% : 63.75 [13:54:31]line Наличными: 600.00 [13:54:31]line Безнал.: 0.00 [13:54:31]line Место: АЗС № 85 "Партнер Нефть" [13:54:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:54:31]line СНО: Общий режим [13:54:31]line Чек 213 22.10.2024 13:54 [13:54:31]line Смена: 195 ФФД: 1.0 [13:54:31]line ЗНМ: 0300000167 [13:54:31]line РНМ: 0000000000156251 [13:54:31]line Версия ККМ: v1.0 [13:54:31]line ФМ: 0000000000963346 [13:54:31]line ФД: 70265 [13:54:31]line ФПД: 259513951828962 [13:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135435&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70265&fm=259513951828962&tin=02508201610067®Number=0000000000156251&sum=60000 [13:54:31]Connected sock=11 [13: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 34 36 0F 01 00 00 6D 41 07 01 45 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 D5 00 00 00 F4 03 04 00 9B AE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 12 01 00 35 04 06 00 EC 06 CC E9 BB E2 64 EC 80 62 D0 1D B1 4D [13:54:31]written 0, free lines is 4095 [13: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 34 36 4F 00 00 00 8D 73 47 00 D6 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 34 36 10 04 04 00 79 12 01 00 F4 03 04 00 3B 58 17 67 B6 04 01 00 00 3B 84 F1 65 F8 9E CD EA [13:54:31]CommunicateWithHost err = 0 [13:54:31]CheckOFDResponse [13:54:31]1017 (14) - 77093643461234 [13:54:31]1041 (16) - 0000000000963346 [13:54:31]1040 (4) - 70265 [13:54:31]1012 (4) - 22.10.2024 07:46 [13:54:31]1206 (1) - 0 [13:54:31]OFD Sender: Remove packet 70265 [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00070265 [13:54:31]NVStorageDeleteData [13:54:31]Write to MH i2c: 01 00 00 18 70 88 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 18 70 00 00 00 00 00 EF 0C 8A [13:54:31]RasterBufferAndPrint [13:54:31]line [13:54:31]line [13:54:31]line [13:54:31]line [13:54:31]line [13:54:31]written 0, free lines is 3317 [13:54:31]MH_Cut [13:54:31]Write to MH i2c: D1 01 00 1F 70 01 61 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: D1 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: D1 01 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: D1 01 00 1F 70 00 60 [13:54:31]Write to MH i2c: 01 00 00 20 70 90 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:32]OFD Sender: No OFD packet to send [13:54:32]*** Cut start [13:54:32]*** Partial cut [13:54:32]*** CUTSNS_PIN = 1 [13:54:32]*** CUTSNS_PIN = 0 [13:54:32]*** Brake cut motor [13:54:33]Read from MH i2c: 01 [13:54:33]MH_I2C_Read... [13:54:33]*** Stop cut motor [13:54:33]*** Cut end [13:54:33]Read from MH i2c: 01 07 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 20 70 00 00 00 00 00 FF 0F A5 [13:54:33]process_action close_receipt done [13:54:33]requested_data is exist [13:54:33]produce_requested_data [13:54:33]requested_item fm.sn is exist - process it [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 11 00 00 [13:54:33]Write to MH i2c: E2 08 00 21 70 80 11 00 00 00 00 00 00 0B [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 21 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [13:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:33]wFMCommunicate OK [13:54:33]requested_item fd.num is exist - process it [13:54:33]SAM_PROTO_GetFieldsCounters [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 00 00 [13:54:33]Write to MH i2c: E2 08 00 22 70 80 13 00 00 00 00 00 00 0E [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 22 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 12 01 00 0E 04 04 00 C3 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 F7 [13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 12 01 00 0E 04 04 00 C3 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 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetFieldsCounters done [13:54:33]requested_item shift.num is exist - process it [13:54:33]requested_item shift.opened is exist - process it [13:54:33]req_shift_opened [13:54:33]FM_GetShiftState [13:54:33]SAM_PROTO_GetShiftState [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 01 00 [13:54:33]Write to MH i2c: E2 08 00 23 70 80 13 01 00 00 00 00 00 10 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 23 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FE [13:54:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetShiftState done [13:54:33]FM_GetShiftState done [13:54:33]req_shift_opened done [13:54:33]requested_item shift.open_date is exist - process it [13:54:33]req_shift_open_date [13:54:33]req_shift_open_date done [13:54:33]produce_requested_data done [13:54:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70265,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:54:33]process_action_free close_receipt [13:54:33]json_value_free [13:54:33]json_value_free done [13:54:33]process_json_proto returns [13:54:33]Send response to host [13:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70265,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:54:33]free response buf [13:54:33]execute_script done [13:54:33]execute_script returns [13:54:33]free content buf [13:54:33]Sock 7.Close socket [13:54:33]Sock 7.Thread stoped [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:25]accept exits with 9 [13:56:25]New connection [13:56:25]New thread 3067026788 created [13:56:25]Thread 3067170148 joined [13:56:25]Waiting for new connection... [13:56:25] Sock 9.Parse request [13:56:25]Sock 9.Check first char [13:56:25]Sock 9.First char is OK [13:56:25]request: POST /json_proto HTTP/1.0 [13:56:25]Method: POST [13:56:25]URL: /json_proto [13:56:25]Method is POST - this is cgi request [13:56:25]url: /json_proto [13:56:25]query_string will be loaded in cgi processing [13:56:25]execute_cgi json_proto POST (null) [13:56:25]execute_cgi path=json_proto method=POST [13:56:25]POST find Content-Length [13:56:25]Host: 172.17.50.3:8080 [13:56:25]Content-Length: 679 [13:56:25]Content-Type: application/json [13:56:25] [13:56:25]POST finish read [13:56:25]Found Content-Length = 679 [13:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:56:25]execute_script... [13:56: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)2886032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [13:56:25]POST & json_proto [13:56:25]process_json_proto [13:56:25]json parsed OK: [13:56:25]protocol is kg_v1.0 [13:56:25]action value=close_receipt [13:56:25]process_action close_receipt [13:56:25]cmd_close_receipt [13:56:25]MH_GetDate [13:56:25]Write to MH i2c: F0 00 00 24 70 83 [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 09 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 09 00 24 70 00 0F AF 17 67 6B 98 1E 66 4F [13:56:25]GetLastDocTimeStamp 1729605275 [13:56:25]current date 1729605391 [13:56:25]FM_GetShiftState [13:56:25]SAM_PROTO_GetShiftState [13:56:25]wFMCommunicate request_size=4 [13:56:25]MH_SAM_APDU [13:56:25]CAPDU: 80 13 01 00 [13:56:25]Write to MH i2c: E2 08 00 25 70 80 13 01 00 00 00 00 00 12 [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0E 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0E 00 25 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 00 [13:56:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:56:25]wFMCommunicate OK [13:56:25]SAM_PROTO_GetShiftState done [13:56:25]FM_GetShiftState done [13:56:25]opened in 1729555832 [13:56:25]opened+sec_in_day 1729642232 [13:56:25]quantity*price = 70044 [13:56:25]sum+1 = 70045 [13:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 214 22.10.2024 13:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70266 ФПД: 131702092867072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70266&fm=131702092867072&tin=02508201610067®Number=0000000000156251&sum=70000 [13:56:26]StoreToDocumentArchive [13:56:26]shift 195 fd 70266 [13:56:26]save to /storage/0195/doc_00070266 [13:56:26]save last doc name /storage/0195/doc_00070266 to /storage/kkm_last_doc_name [13:56:26]save OK [13:56:26]Clear old archive folders... [13:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:26]tlvbuf is 011236E0 [13:56:26]SAM_PROTO_ClearQueue [13:56:26]wFMCommunicate request_size=4 [13:56:26]MH_SAM_APDU [13:56:26]CAPDU: 80 09 00 00 [13:56:26]Write to MH i2c: E2 08 00 32 70 80 09 00 00 00 00 00 00 14 [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:26]Read from MH i2c: E2 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: E2 03 00 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: E2 03 00 32 70 00 90 00 16 [13:56:26]RAPDU: 90 00 [13:56:26]wFMCommunicate OK [13:56:26]SAM_PROTO_ClearQueue done [13:56:26]KKMCreateOFDPacket [13:56:26]OFDProtocolAddRootSTLVToBuf [13:56:26]FM_MakeSignedData [13:56:26]FM_MakeSignedData [13:56:26]SAM_PROTO_SignData [13:56:26]wFMCommunicate request_size=4 [13:56:26]MH_SAM_APDU [13:56:26]CAPDU: 80 0D 01 02 [13:56:26]Write to MH i2c: E2 08 00 33 70 80 0D 01 02 00 00 00 00 1C [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 33 70 00 90 00 17 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=255 [13:56:27]MH_SAM_APDU [13:56: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 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 D6 00 00 00 F4 03 04 00 0F AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 12 01 00 35 04 06 00 77 [13:56:27]Write to MH i2c: E2 02 01 34 70 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 D6 00 00 00 F4 03 04 00 0F AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 12 01 00 35 04 06 00 77 00 00 8E [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]OFD Sender: No OFD packet to send [13:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 34 70 00 90 00 18 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=10 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 0D 02 02 05 C8 48 76 26 00 [13:56:27]Write to MH i2c: E2 0D 00 35 70 80 0D 02 02 05 00 C8 48 76 26 00 00 00 D5 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 35 70 00 90 00 19 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 0D 03 02 [13:56:27]Write to MH i2c: E2 08 00 36 70 80 0D 03 02 00 00 00 00 21 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0B 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0B 00 36 70 00 FF B7 3B 62 79 8F 76 64 90 00 57 [13:56:27]RAPDU: FF B7 3B 62 79 8F 76 64 90 00 [13:56:27]wFMCommunicate OK [13:56:27]SAM_PROTO_SignData done [13:56:27]FM_MakeSignedData done [13:56:27]CreateOFDProtocolMessage [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 11 00 00 [13:56:27]Write to MH i2c: E2 08 00 37 70 80 11 00 00 00 00 00 00 21 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 37 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [13:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:56:27]wFMCommunicate OK [13:56:27]CreateOFDProtocolMessage done [13:56:27]OFDSenderStorePacket 70266 [13:56:27]StoreOFDPacket docnum=70266 [13:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 97 A3 07 01 D7 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 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 D6 00 00 00 F4 03 04 00 0F AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 12 01 00 35 04 06 00 77 C8 48 76 26 00 FF B7 3B 62 79 8F 76 64 [13:56:27]CheckFolder [13:56:27]dirname=/storage/ofd_packets [13:56:27]CheckFolder done [13:56:27]ProducePacketName [13:56:27]name=ofd_packets/00070266 [13:56:27]NVStorageSaveData ofd_packets/00070266 [13:56:27]File name is /storage/ofd_packets/00070266 [13:56:27]Write 301 bytes [13:56:27]NVStorageSaveData done [13:56:27]OFDSenderStorePacket done [13:56:27]KKMCreateOFDPacket done [13:56:27]NVStorageSaveData kkm_last_timestamp [13:56:27]File name is /storage/kkm_last_timestamp [13:56:27]Write 4 bytes [13:56:27]NVStorageSaveData done [13:56:27]ExternCall_PrintAddStr [13:56:27]wPrintStart [13:56:27]Write to MH i2c: 01 00 00 38 70 A8 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 38 70 00 00 00 00 00 FF 0F BD [13:56:27]RasterBufferAndPrint [13:56:27]line Счет N : (1)2886032 [13:56:27]line ИНН: 02508201610067 [13:56:27]line Контрольно-Кассовый Чек [13:56:27]line ПРОДАЖА [13:56:27]line ТРК (МРК, ГНК) : 42 [13:56:27]line Товар: 2710124130 [13:56:27]line Аи-92-К-5 [13:56:27]line 10.470 * 66.90 [13:56:27]line = 700.44 [13:56:27]line НДС 12% НСП 1% [13:56:27]line > о реализуемом товаре [13:56:27]line ОКРУГЛЕНИЕ: -0.44 [13:56:27]line ИТОГО: 700.00 [13:56:27]line Внесено: 700.00 [13:56:27]line СДАЧА: 0.00 [13:56:27]line НСП 1% : 6.20 [13:56:27]line НДС 12% : 74.38 [13:56:27]line Наличными: 700.00 [13:56:27]line Безнал.: 0.00 [13:56:27]line Место: АЗС № 85 "Партнер Нефть" [13:56:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:56:27]line СНО: Общий режим [13:56:27]line Чек 214 22.10.2024 13:56 [13:56:27]line Смена: 195 ФФД: 1.0 [13:56:27]line ЗНМ: 0300000167 [13:56:27]line РНМ: 0000000000156251 [13:56:27]line Версия ККМ: v1.0 [13:56:27]line ФМ: 0000000000963346 [13:56:27]line ФД: 70266 [13:56:27]line ФПД: 131702092867072 [13:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70266&fm=131702092867072&tin=02508201610067®Number=0000000000156251&sum=70000 [13:56:27]written 0, free lines is 4095 [13:56:27]OFD Sender: Processing packet 70266 [packets to send 18, broken 17] [13:56:27]ProducePacketName [13:56:27]name=ofd_packets/00070266 [13:56:27]OFD Sender: To server: pG, [13:56:27]CommunicateWithHost lk.salyk.kg:30040 [13:56:27]ConnectInit lk.salyk.kg [13:56:27]Connected sock=7 [13:56: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 34 36 0F 01 00 00 97 A3 07 01 D7 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 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 D6 00 00 00 F4 03 04 00 0F AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 12 01 00 35 04 06 00 77 C8 48 76 26 00 FF B7 3B 62 79 8F 76 64 [13:56: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 34 36 4F 00 00 00 E7 FB 47 00 A3 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 12 01 00 F4 03 04 00 AF 58 17 67 B6 04 01 00 00 F4 FD CB 75 B6 92 1D E8 [13:56:27]CommunicateWithHost err = 0 [13:56:27]CheckOFDResponse [13:56:27]1017 (14) - 77093643461234 [13:56:27]1041 (16) - 0000000000963346 [13:56:27]1040 (4) - 70266 [13:56:27]1012 (4) - 22.10.2024 07:47 [13:56:27]1206 (1) - 0 [13:56:27]OFD Sender: Remove packet 70266 [13:56:27]ProducePacketName [13:56:27]name=ofd_packets/00070266 [13:56:27]NVStorageDeleteData [13:56:27]Write to MH i2c: 01 00 00 63 70 D3 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 63 70 00 00 00 00 00 FE 0C E4 [13:56:27]RasterBufferAndPrint [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]written 0, free lines is 3335 [13:56:27]MH_Cut [13:56:27]Write to MH i2c: D1 01 00 6A 70 01 AC [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 01 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 01 00 6A 70 00 AB [13:56:27]Write to MH i2c: 01 00 00 6B 70 DB [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:28]OFD Sender: No OFD packet to send [13:56:28]*** Cut start [13:56:28]*** Partial cut [13:56:28]*** CUTSNS_PIN = 1 [13:56:28]*** CUTSNS_PIN = 0 [13:56:28]*** Brake cut motor [13:56:29]Read from MH i2c: 01 [13:56:29]MH_I2C_Read... [13:56:29]*** Stop cut motor [13:56:29]*** Cut end [13:56:29]Read from MH i2c: 01 07 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: 01 07 00 6B 70 00 00 00 00 00 FF 0F F0 [13:56:29]process_action close_receipt done [13:56:29]requested_data is exist [13:56:29]produce_requested_data [13:56:29]requested_item fm.sn is exist - process it [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 11 00 00 [13:56:29]Write to MH i2c: E2 08 00 6C 70 80 11 00 00 00 00 00 00 56 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 6C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [13:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:56:29]wFMCommunicate OK [13:56:29]requested_item fd.num is exist - process it [13:56:29]SAM_PROTO_GetFieldsCounters [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 13 00 00 [13:56:29]Write to MH i2c: E2 08 00 6D 70 80 13 00 00 00 00 00 00 59 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 62 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 62 00 6D 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 12 01 00 0E 04 04 00 C3 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 46 [13:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 12 01 00 0E 04 04 00 C3 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 [13:56:29]wFMCommunicate OK [13:56:29]SAM_PROTO_GetFieldsCounters done [13:56:29]requested_item shift.num is exist - process it [13:56:29]requested_item shift.opened is exist - process it [13:56:29]req_shift_opened [13:56:29]FM_GetShiftState [13:56:29]SAM_PROTO_GetShiftState [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 13 01 00 [13:56:29]Write to MH i2c: E2 08 00 6E 70 80 13 01 00 00 00 00 00 5B [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 0E 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 0E 00 6E 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 49 [13:56:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:56:29]wFMCommunicate OK [13:56:29]SAM_PROTO_GetShiftState done [13:56:29]FM_GetShiftState done [13:56:29]req_shift_opened done [13:56:29]requested_item shift.open_date is exist - process it [13:56:29]req_shift_open_date [13:56:29]req_shift_open_date done [13:56:29]produce_requested_data done [13:56:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70266,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:56:29]process_action_free close_receipt [13:56:29]json_value_free [13:56:29]json_value_free done [13:56:29]process_json_proto returns [13:56:29]Send response to host [13:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70266,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:56:29]free response buf [13:56:29]execute_script done [13:56:29]execute_script returns [13:56:29]free content buf [13:56:29]Sock 9.Close socket [13:56:29]Sock 9.Thread stoped [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:35]accept exits with 10 [13:57:35]New connection [13:57:35]New thread 3067170148 created [13:57:35]Thread 3067026788 joined [13:57:35]Waiting for new connection... [13:57:35] Sock 10.Parse request [13:57:35]Sock 10.Check first char [13:57:35]Sock 10.First char is OK [13:57:35]request: POST /json_proto HTTP/1.0 [13:57:35]Method: POST [13:57:35]URL: /json_proto [13:57:35]Method is POST - this is cgi request [13:57:35]url: /json_proto [13:57:35]query_string will be loaded in cgi processing [13:57:35]execute_cgi json_proto POST (null) [13:57:35]execute_cgi path=json_proto method=POST [13:57:35]POST find Content-Length [13:57:35]Host: 172.17.50.3:8080 [13:57:35]Content-Length: 752 [13:57:35]Content-Type: application/json [13:57:35] [13:57:35]POST finish read [13:57:35]Found Content-Length = 752 [13:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30097895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]execute_script... [13:57: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)2886033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30097895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]POST & json_proto [13:57:35]process_json_proto [13:57:35]json parsed OK: [13:57:35]protocol is kg_v1.0 [13:57:35]action value=close_receipt [13:57:35]process_action close_receipt [13:57:35]cmd_close_receipt [13:57:35]MH_GetDate [13:57:35]Write to MH i2c: F0 00 00 6F 70 CE [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 6F 70 00 55 AF 17 67 6B 98 1E 66 E0 [13:57:35]GetLastDocTimeStamp 1729605391 [13:57:35]current date 1729605461 [13:57:35]FM_GetShiftState [13:57:35]SAM_PROTO_GetShiftState [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 13 01 00 [13:57:35]Write to MH i2c: E2 08 00 70 70 80 13 01 00 00 00 00 00 5D [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 70 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4B [13:57:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:57:35]wFMCommunicate OK [13:57:35]SAM_PROTO_GetShiftState done [13:57:35]FM_GetShiftState done [13:57:35]opened in 1729555832 [13:57:35]opened+sec_in_day 1729642232 [13:57:35]quantity*price = 0 [13:57:35]sum+1 = 1 [13:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 215 22.10.2024 13:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30097895 ФМ: 0000000000963346 ФД: 70267 ФПД: 29969700246441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70267&fm=29969700246441&tin=02508201610067®Number=0000000000156251&sum=0 [13:57:36]StoreToDocumentArchive [13:57:36]shift 195 fd 70267 [13:57:36]save to /storage/0195/doc_00070267 [13:57:36]save last doc name /storage/0195/doc_00070267 to /storage/kkm_last_doc_name [13:57:36]save OK [13:57:36]Clear old archive folders... [13:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:36]tlvbuf is 01154D70 [13:57:36]SAM_PROTO_ClearQueue [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 09 00 00 [13:57:36]Write to MH i2c: E2 08 00 7D 70 80 09 00 00 00 00 00 00 5F [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 7D 70 00 90 00 61 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_ClearQueue done [13:57:36]KKMCreateOFDPacket [13:57:36]OFDProtocolAddRootSTLVToBuf [13:57:36]FM_MakeSignedData [13:57:36]FM_MakeSignedData [13:57:36]SAM_PROTO_SignData [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 01 02 [13:57:36]Write to MH i2c: E2 08 00 7E 70 80 0D 01 02 00 00 00 00 67 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 7E 70 00 90 00 62 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=255 [13:57:36]MH_SAM_APDU [13:57: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 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 D7 00 00 00 F4 03 04 00 55 AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 12 01 00 35 04 06 00 1B 41 DD 56 [13:57:36]Write to MH i2c: E2 02 01 7F 70 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 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 D7 00 00 00 F4 03 04 00 55 AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 12 01 00 35 04 06 00 1B 41 DD 56 00 00 2E [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 7F 70 00 90 00 63 [13:57:37]RAPDU: 90 00 [13:57:37]wFMCommunicate OK [13:57:37]wFMCommunicate request_size=7 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 0D 02 02 02 53 A9 [13:57:37]Write to MH i2c: E2 0A 00 80 70 80 0D 02 02 02 00 53 A9 00 00 6A [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 80 70 00 90 00 64 [13:57:37]RAPDU: 90 00 [13:57:37]wFMCommunicate OK [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 0D 03 02 [13:57:37]Write to MH i2c: E2 08 00 81 70 80 0D 03 02 00 00 00 00 6C [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0B 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0B 00 81 70 00 70 A4 5E 89 73 37 E5 A3 90 00 9A [13:57:37]RAPDU: 70 A4 5E 89 73 37 E5 A3 90 00 [13:57:37]wFMCommunicate OK [13:57:37]SAM_PROTO_SignData done [13:57:37]FM_MakeSignedData done [13:57:37]CreateOFDProtocolMessage [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 11 00 00 [13:57:37]Write to MH i2c: E2 08 00 82 70 80 11 00 00 00 00 00 00 6C [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 17 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 17 00 82 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BE [13:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:37]wFMCommunicate OK [13:57:37]CreateOFDProtocolMessage done [13:57:37]OFDSenderStorePacket 70267 [13:57:37]StoreOFDPacket docnum=70267 [13:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 6E 22 04 01 06 CF 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 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 D7 00 00 00 F4 03 04 00 55 AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 12 01 00 35 04 06 00 1B 41 DD 56 53 A9 70 A4 5E 89 73 37 E5 A3 [13:57:37]CheckFolder [13:57:37]dirname=/storage/ofd_packets [13:57:37]CheckFolder done [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00070267 [13:57:37]NVStorageSaveData ofd_packets/00070267 [13:57:37]File name is /storage/ofd_packets/00070267 [13:57:37]Write 298 bytes [13:57:37]NVStorageSaveData done [13:57:37]OFDSenderStorePacket done [13:57:37]KKMCreateOFDPacket done [13:57:37]NVStorageSaveData kkm_last_timestamp [13:57:37]File name is /storage/kkm_last_timestamp [13:57:37]Write 4 bytes [13:57:37]NVStorageSaveData done [13:57:37]ExternCall_PrintAddStr [13:57:37]wPrintStart [13:57:37]Write to MH i2c: 01 00 00 83 70 F3 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 83 70 00 00 00 00 00 FF 0F 08 [13:57:37]RasterBufferAndPrint [13:57:37]line Счет N : (1)2886033 [13:57:37]line ИНН: 02508201610067 [13:57:37]line Контрольно-Кассовый Чек [13:57:37]line ПРОДАЖА [13:57:37]line ТРК (МРК, ГНК) : 61 [13:57:37]line Товар: 2710194210 [13:57:37]line ДТ-К-5 [13:57:37]line 10.000 * 0.00 [13:57:37]line = 0.00 [13:57:37]line НДС 12% НСП 1% [13:57:37]line > о реализуемом товаре [13:57:37]line ИТОГО: 0.00 [13:57:37]line НСП 1% : 0.00 [13:57:37]line НДС 12% : 0.00 [13:57:37]line Наличными: 0.00 [13:57:37]line Безнал.: 0.00 [13:57:37]line Место: АЗС № 85 "Партнер Нефть" [13:57:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:37]line СНО: Общий режим [13:57:37]line Чек 215 22.10.2024 13:57 [13:57:37]line Смена: 195 ФФД: 1.0 [13:57:37]line ЗНМ: 0300000167 [13:57:37]line РНМ: 0000000000156251 [13:57:37]line Версия ККМ: v1.0 [13:57:37]line Талоны: ТК ГПНА Online [13:57:37]line 30097895 [13:57:37]line ФМ: 0000000000963346 [13:57:37]line ФД: 70267 [13:57:37]line ФПД: 29969700246441 [13:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70267&fm=29969700246441&tin=02508201610067®Number=0000000000156251&sum=0 [13:57:37]OFD Sender: Processing packet 70267 [packets to send 18, broken 17] [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00070267 [13:57:37]OFD Sender: To server: pG, [13:57:37]CommunicateWithHost lk.salyk.kg:30040 [13:57:37]ConnectInit lk.salyk.kg [13:57:37]written 0, free lines is 4095 [13:57:37]Connected sock=9 [13:57: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 34 36 0C 01 00 00 6E 22 04 01 06 CF 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 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 D7 00 00 00 F4 03 04 00 55 AF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 12 01 00 35 04 06 00 1B 41 DD 56 53 A9 70 A4 5E 89 73 37 E5 A3 [13:57: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 34 36 4F 00 00 00 3B 09 47 00 A0 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 34 36 10 04 04 00 7B 12 01 00 F4 03 04 00 F5 58 17 67 B6 04 01 00 00 07 90 9D D0 95 A0 48 9A [13:57:37]CommunicateWithHost err = 0 [13:57:37]CheckOFDResponse [13:57:37]1017 (14) - 77093643461234 [13:57:37]1041 (16) - 0000000000963346 [13:57:37]1040 (4) - 70267 [13:57:37]1012 (4) - 22.10.2024 07:49 [13:57:37]1206 (1) - 0 [13:57:37]OFD Sender: Remove packet 70267 [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00070267 [13:57:37]NVStorageDeleteData [13:57:37]Write to MH i2c: 01 00 00 AD 70 1D [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 AD 70 00 00 00 00 00 0B 0D 3C [13:57:37]RasterBufferAndPrint [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]written 0, free lines is 3348 [13:57:37]MH_Cut [13:57:37]Write to MH i2c: D1 01 00 B4 70 01 F6 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 B4 70 00 F5 [13:57:37]Write to MH i2c: 01 00 00 B5 70 25 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:38]OFD Sender: No OFD packet to send [13:57:38]*** Cut start [13:57:38]*** Partial cut [13:57:38]*** CUTSNS_PIN = 1 [13:57:38]*** CUTSNS_PIN = 0 [13:57:38]*** Brake cut motor [13:57:39]Read from MH i2c: 01 [13:57:39]MH_I2C_Read... [13:57:39]*** Stop cut motor [13:57:39]*** Cut end [13:57:39]Read from MH i2c: 01 07 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: 01 07 00 B5 70 00 00 00 00 00 FF 0F 3A [13:57:39]process_action close_receipt done [13:57:39]requested_data is exist [13:57:39]produce_requested_data [13:57:39]requested_item fm.sn is exist - process it [13:57:39]wFMCommunicate request_size=4 [13:57:39]MH_SAM_APDU [13:57:39]CAPDU: 80 11 00 00 [13:57:39]Write to MH i2c: E2 08 00 B6 70 80 11 00 00 00 00 00 00 A0 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:39]Read from MH i2c: E2 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 17 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 17 00 B6 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [13:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:39]wFMCommunicate OK [13:57:39]requested_item fd.num is exist - process it [13:57:39]SAM_PROTO_GetFieldsCounters [13:57:39]wFMCommunicate request_size=4 [13:57:39]MH_SAM_APDU [13:57:39]CAPDU: 80 13 00 00 [13:57:39]Write to MH i2c: E2 08 00 B7 70 80 13 00 00 00 00 00 00 A3 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:39]Read from MH i2c: E2 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 62 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 62 00 B7 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 12 01 00 0E 04 04 00 C3 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 94 [13:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 12 01 00 0E 04 04 00 C3 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 [13:57:39]wFMCommunicate OK [13:57:39]SAM_PROTO_GetFieldsCounters done [13:57:39]requested_item shift.num is exist - process it [13:57:39]requested_item shift.opened is exist - process it [13:57:39]req_shift_opened [13:57:39]FM_GetShiftState [13:57:39]SAM_PROTO_GetShiftState [13:57:39]wFMCommunicate request_size=4 [13:57:39]MH_SAM_APDU [13:57:39]CAPDU: 80 13 01 00 [13:57:39]Write to MH i2c: E2 08 00 B8 70 80 13 01 00 00 00 00 00 A5 [13:57:39]Write i2c OK [13:57:39]MH_I2C_Read... [13:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:39]Read from MH i2c: E2 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 0E 00 [13:57:39]MH_I2C_Read... [13:57:39]Read from MH i2c: E2 0E 00 B8 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [13:57:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [13:57:39]wFMCommunicate OK [13:57:39]SAM_PROTO_GetShiftState done [13:57:39]FM_GetShiftState done [13:57:39]req_shift_opened done [13:57:39]requested_item shift.open_date is exist - process it [13:57:39]req_shift_open_date [13:57:39]req_shift_open_date done [13:57:39]produce_requested_data done [13:57:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70267,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [13:57:39]process_action_free close_receipt [13:57:39]json_value_free [13:57:39]json_value_free done [13:57:39]process_json_proto returns [13:57:39]Send response to host [13:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70267,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [13:57:39]free response buf [13:57:39]execute_script done [13:57:39]execute_script returns [13:57:39]free content buf [13:57:39]Sock 10.Close socket [13:57:39]Sock 10.Thread stoped [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]accept exits with 7 [14:01:48]New connection [14:01:48]New thread 3067026788 created [14:01:48]Thread 3067170148 joined [14:01:48]Waiting for new connection... [14:01:48] Sock 7.Parse request [14:01:48]Sock 7.Check first char [14:01:48]Sock 7.First char is OK [14:01:48]request: POST /json_proto HTTP/1.0 [14:01:48]Method: POST [14:01:48]URL: /json_proto [14:01:48]Method is POST - this is cgi request [14:01:48]url: /json_proto [14:01:48]query_string will be loaded in cgi processing [14:01:48]execute_cgi json_proto POST (null) [14:01:48]execute_cgi path=json_proto method=POST [14:01:48]POST find Content-Length [14:01:48]Host: 172.17.50.3:8080 [14:01:48]Content-Length: 684 [14:01:48]Content-Type: application/json [14:01:48] [14:01:48]POST finish read [14:01:48]Found Content-Length = 684 [14:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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:01:48]execute_script... [14:01: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)2886034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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:01:48]POST & json_proto [14:01:48]process_json_proto [14:01:48]json parsed OK: [14:01:48]protocol is kg_v1.0 [14:01:48]action value=close_receipt [14:01:48]process_action close_receipt [14:01:48]cmd_close_receipt [14:01:48]MH_GetDate [14:01:48]Write to MH i2c: F0 00 00 B9 70 18 [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 09 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 09 00 B9 70 00 52 B0 17 67 6B 98 1E 66 28 [14:01:48]GetLastDocTimeStamp 1729605461 [14:01:48]current date 1729605714 [14:01:48]FM_GetShiftState [14:01:48]SAM_PROTO_GetShiftState [14:01:48]wFMCommunicate request_size=4 [14:01:48]MH_SAM_APDU [14:01:48]CAPDU: 80 13 01 00 [14:01:48]Write to MH i2c: E2 08 00 BA 70 80 13 01 00 00 00 00 00 A7 [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:48]Read from MH i2c: E2 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 0E 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 0E 00 BA 70 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [14:01:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:01:48]wFMCommunicate OK [14:01:48]SAM_PROTO_GetShiftState done [14:01:48]FM_GetShiftState done [14:01:48]opened in 1729555832 [14:01:48]opened+sec_in_day 1729642232 [14:01:48]quantity*price = 60061 [14:01:48]sum+1 = 60063 [14:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 216 22.10.2024 14:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70268 ФПД: 197727990125064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70268&fm=197727990125064&tin=02508201610067®Number=0000000000156251&sum=60000 [14:01:49]StoreToDocumentArchive [14:01:49]shift 195 fd 70268 [14:01:49]save to /storage/0195/doc_00070268 [14:01:49]save last doc name /storage/0195/doc_00070268 to /storage/kkm_last_doc_name [14:01:49]save OK [14:01:49]Clear old archive folders... [14:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:01:49]tlvbuf is 01142720 [14:01:49]SAM_PROTO_ClearQueue [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 09 00 00 [14:01:49]Write to MH i2c: E2 08 00 C7 70 80 09 00 00 00 00 00 00 A9 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C7 70 00 90 00 AB [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_ClearQueue done [14:01:49]KKMCreateOFDPacket [14:01:49]OFDProtocolAddRootSTLVToBuf [14:01:49]FM_MakeSignedData [14:01:49]FM_MakeSignedData [14:01:49]SAM_PROTO_SignData [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 01 02 [14:01:49]Write to MH i2c: E2 08 00 C8 70 80 0D 01 02 00 00 00 00 B1 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C8 70 00 90 00 AC [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=255 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 D8 00 00 00 F4 03 04 00 52 B0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 12 01 [14:01:49]Write to MH i2c: E2 02 01 C9 70 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 D8 00 00 00 F4 03 04 00 52 B0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 12 01 00 00 C6 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C9 70 00 90 00 AD [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=16 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B3 D5 22 9D 12 08 [14:01:49]Write to MH i2c: E2 13 00 CA 70 80 0D 02 02 0B 00 00 35 04 06 00 B3 D5 22 9D 12 08 00 00 6A [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 CA 70 00 90 00 AE [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 03 02 [14:01:49]Write to MH i2c: E2 08 00 CB 70 80 0D 03 02 00 00 00 00 B6 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 CB 70 00 0F 8E BE 4A 81 5B 69 E5 90 00 86 [14:01:49]RAPDU: 0F 8E BE 4A 81 5B 69 E5 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_SignData done [14:01:49]FM_MakeSignedData done [14:01:49]CreateOFDProtocolMessage [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 11 00 00 [14:01:49]Write to MH i2c: E2 08 00 CC 70 80 11 00 00 00 00 00 00 B6 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:50]Read from MH i2c: E2 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 17 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 17 00 CC 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [14:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:01:50]wFMCommunicate OK [14:01:50]CreateOFDProtocolMessage done [14:01:50]OFDSenderStorePacket 70268 [14:01:50]StoreOFDPacket docnum=70268 [14:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8D D2 0D 01 A9 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 D8 00 00 00 F4 03 04 00 52 B0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 12 01 00 35 04 06 00 B3 D5 22 9D 12 08 0F 8E BE 4A 81 5B 69 E5 [14:01:50]CheckFolder [14:01:50]dirname=/storage/ofd_packets [14:01:50]CheckFolder done [14:01:50]ProducePacketName [14:01:50]name=ofd_packets/00070268 [14:01:50]NVStorageSaveData ofd_packets/00070268 [14:01:50]File name is /storage/ofd_packets/00070268 [14:01:50]Write 307 bytes [14:01:50]NVStorageSaveData done [14:01:50]OFDSenderStorePacket done [14:01:50]KKMCreateOFDPacket done [14:01:50]NVStorageSaveData kkm_last_timestamp [14:01:50]File name is /storage/kkm_last_timestamp [14:01:50]Write 4 bytes [14:01:50]NVStorageSaveData done [14:01:50]ExternCall_PrintAddStr [14:01:50]wPrintStart [14:01:50]Write to MH i2c: 01 00 00 CD 70 3D [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 CD 70 00 00 00 00 00 FF 0F 52 [14:01:50]RasterBufferAndPrint [14:01:50]line Счет N : (1)2886034 [14:01:50]line ИНН: 02508201610067 [14:01:50]line Контрольно-Кассовый Чек [14:01:50]line ПРОДАЖА [14:01:50]line ТРК (МРК, ГНК) : 11 [14:01:50]line Товар: 2710194240 [14:01:50]line D-ENERGY Дт-К-2 [14:01:50]line 7.780 * 77.20 [14:01:50]line = 600.62 [14:01:50]line НДС 12% НСП 1% [14:01:50]line > о реализуемом товаре [14:01:50]line ОКРУГЛЕНИЕ: -0.62 [14:01:50]line ИТОГО: 600.00 [14:01:50]line Внесено: 600.00 [14:01:50]line СДАЧА: 0.00 [14:01:50]line НСП 1% : 5.31 [14:01:50]line НДС 12% : 63.78 [14:01:50]line Наличными: 600.00 [14:01:50]line Безнал.: 0.00 [14:01:50]line Место: АЗС № 85 "Партнер Нефть" [14:01:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:01:50]line СНО: Общий режим [14:01:50]line Чек 216 22.10.2024 14:01 [14:01:50]line Смена: 195 ФФД: 1.0 [14:01:50]line ЗНМ: 0300000167 [14:01:50]line РНМ: 0000000000156251 [14:01:50]line Версия ККМ: v1.0 [14:01:50]line ФМ: 0000000000963346 [14:01:50]line ФД: 70268 [14:01:50]line ФПД: 197727990125064 [14:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70268&fm=197727990125064&tin=02508201610067®Number=0000000000156251&sum=60000 [14:01:50]OFD Sender: Processing packet 70268 [packets to send 18, broken 17] [14:01:50]ProducePacketName [14:01:50]name=ofd_packets/00070268 [14:01:50]OFD Sender: To server: pG, [14:01:50]CommunicateWithHost lk.salyk.kg:30040 [14:01:50]ConnectInit lk.salyk.kg [14:01:50]written 0, free lines is 4095 [14:01:50]Connected sock=10 [14:01: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 34 36 15 01 00 00 8D D2 0D 01 A9 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 D8 00 00 00 F4 03 04 00 52 B0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 12 01 00 35 04 06 00 B3 D5 22 9D 12 08 0F 8E BE 4A 81 5B 69 E5 [14:01: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 34 36 4F 00 00 00 CD 06 47 00 22 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 34 36 10 04 04 00 7C 12 01 00 F4 03 04 00 F2 59 17 67 B6 04 01 00 00 5F 55 20 56 9B 51 A3 11 [14:01:50]CommunicateWithHost err = 0 [14:01:50]CheckOFDResponse [14:01:50]1017 (14) - 77093643461234 [14:01:50]1041 (16) - 0000000000963346 [14:01:50]1040 (4) - 70268 [14:01:50]1012 (4) - 22.10.2024 07:53 [14:01:50]1206 (1) - 0 [14:01:50]OFD Sender: Remove packet 70268 [14:01:50]ProducePacketName [14:01:50]name=ofd_packets/00070268 [14:01:50]NVStorageDeleteData [14:01:50]Write to MH i2c: 01 00 00 F8 70 68 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 F8 70 00 00 00 00 00 F6 0C 71 [14:01:50]RasterBufferAndPrint [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]written 0, free lines is 3327 [14:01:50]MH_Cut [14:01:50]Write to MH i2c: D1 01 00 FF 70 01 41 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 01 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 01 00 FF 70 00 40 [14:01:50]Write to MH i2c: 01 00 00 00 71 71 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:51]OFD Sender: No OFD packet to send [14:01:51]*** Cut start [14:01:51]*** Partial cut [14:01:51]*** CUTSNS_PIN = 1 [14:01:51]*** CUTSNS_PIN = 0 [14:01:51]*** Brake cut motor [14:01:52]Read from MH i2c: 01 [14:01:52]MH_I2C_Read... [14:01:52]*** Stop cut motor [14:01:52]*** Cut end [14:01:52]Read from MH i2c: 01 07 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: 01 07 00 00 71 00 00 00 00 00 FF 0F 86 [14:01:52]process_action close_receipt done [14:01:52]requested_data is exist [14:01:52]produce_requested_data [14:01:52]requested_item fm.sn is exist - process it [14:01:52]wFMCommunicate request_size=4 [14:01:52]MH_SAM_APDU [14:01:52]CAPDU: 80 11 00 00 [14:01:52]Write to MH i2c: E2 08 00 01 71 80 11 00 00 00 00 00 00 EC [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:52]Read from MH i2c: E2 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 17 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 17 00 01 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [14:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:01:52]wFMCommunicate OK [14:01:52]requested_item fd.num is exist - process it [14:01:52]SAM_PROTO_GetFieldsCounters [14:01:52]wFMCommunicate request_size=4 [14:01:52]MH_SAM_APDU [14:01:52]CAPDU: 80 13 00 00 [14:01:52]Write to MH i2c: E2 08 00 02 71 80 13 00 00 00 00 00 00 EF [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:52]Read from MH i2c: E2 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 62 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 62 00 02 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 12 01 00 0E 04 04 00 C3 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 E4 [14:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 12 01 00 0E 04 04 00 C3 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 [14:01:52]wFMCommunicate OK [14:01:52]SAM_PROTO_GetFieldsCounters done [14:01:52]requested_item shift.num is exist - process it [14:01:52]requested_item shift.opened is exist - process it [14:01:52]req_shift_opened [14:01:52]FM_GetShiftState [14:01:52]SAM_PROTO_GetShiftState [14:01:52]wFMCommunicate request_size=4 [14:01:52]MH_SAM_APDU [14:01:52]CAPDU: 80 13 01 00 [14:01:52]Write to MH i2c: E2 08 00 03 71 80 13 01 00 00 00 00 00 F1 [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:52]Read from MH i2c: E2 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 0E 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 0E 00 03 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [14:01:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:01:52]wFMCommunicate OK [14:01:52]SAM_PROTO_GetShiftState done [14:01:52]FM_GetShiftState done [14:01:52]req_shift_opened done [14:01:52]requested_item shift.open_date is exist - process it [14:01:52]req_shift_open_date [14:01:52]req_shift_open_date done [14:01:52]produce_requested_data done [14:01:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70268,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:01:52]process_action_free close_receipt [14:01:52]json_value_free [14:01:52]json_value_free done [14:01:52]process_json_proto returns [14:01:52]Send response to host [14:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70268,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:01:52]free response buf [14:01:52]execute_script done [14:01:52]execute_script returns [14:01:52]free content buf [14:01:52]Sock 7.Close socket [14:01:52]Sock 7.Thread stoped [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]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:51]accept exits with 9 [14:07:51]New connection [14:07:51]New thread 3067170148 created [14:07:51]Thread 3067026788 joined [14:07:51]Waiting for new connection... [14:07:51] Sock 9.Parse request [14:07:51]Sock 9.Check first char [14:07:51]Sock 9.First char is OK [14:07:51]request: POST /json_proto HTTP/1.0 [14:07:51]Method: POST [14:07:51]URL: /json_proto [14:07:51]Method is POST - this is cgi request [14:07:51]url: /json_proto [14:07:51]query_string will be loaded in cgi processing [14:07:51]execute_cgi json_proto POST (null) [14:07:51]execute_cgi path=json_proto method=POST [14:07:51]POST find Content-Length [14:07:51]Host: 172.17.50.3:8080 [14:07:51]Content-Length: 678 [14:07:51]Content-Type: application/json [14:07:51] [14:07:51]POST finish read [14:07:51]Found Content-Length = 678 [14:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:07:51]execute_script... [14:07: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)2886035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:07:51]POST & json_proto [14:07:51]process_json_proto [14:07:51]json parsed OK: [14:07:51]protocol is kg_v1.0 [14:07:51]action value=close_receipt [14:07:51]process_action close_receipt [14:07:51]cmd_close_receipt [14:07:51]MH_GetDate [14:07:51]Write to MH i2c: F0 00 00 04 71 64 [14:07:51]Write i2c OK [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 09 00 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 09 00 04 71 00 BD B1 17 67 6B 98 1E 66 E0 [14:07:51]GetLastDocTimeStamp 1729605714 [14:07:51]current date 1729606077 [14:07:51]FM_GetShiftState [14:07:51]SAM_PROTO_GetShiftState [14:07:51]wFMCommunicate request_size=4 [14:07:51]MH_SAM_APDU [14:07:51]CAPDU: 80 13 01 00 [14:07:51]Write to MH i2c: E2 08 00 05 71 80 13 01 00 00 00 00 00 F3 [14:07:51]Write i2c OK [14:07:51]MH_I2C_Read... [14:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:51]Read from MH i2c: E2 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: E2 0E 00 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: E2 0E 00 05 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E1 [14:07:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:07:51]wFMCommunicate OK [14:07:51]SAM_PROTO_GetShiftState done [14:07:51]FM_GetShiftState done [14:07:51]opened in 1729555832 [14:07:51]opened+sec_in_day 1729642232 [14:07:51]quantity*price = 50041 [14:07:51]sum+1 = 50042 [14:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 217 22.10.2024 14:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70269 ФПД: 244977580744364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140757&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70269&fm=244977580744364&tin=02508201610067®Number=0000000000156251&sum=50000 [14:07:52]StoreToDocumentArchive [14:07:52]shift 195 fd 70269 [14:07:52]save to /storage/0195/doc_00070269 [14:07:52]save last doc name /storage/0195/doc_00070269 to /storage/kkm_last_doc_name [14:07:52]save OK [14:07:52]Clear old archive folders... [14:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:52]tlvbuf is 0114B260 [14:07:52]SAM_PROTO_ClearQueue [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 09 00 00 [14:07:52]Write to MH i2c: E2 08 00 12 71 80 09 00 00 00 00 00 00 F5 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 12 71 00 90 00 F7 [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]SAM_PROTO_ClearQueue done [14:07:53]KKMCreateOFDPacket [14:07:53]OFDProtocolAddRootSTLVToBuf [14:07:53]FM_MakeSignedData [14:07:53]FM_MakeSignedData [14:07:53]SAM_PROTO_SignData [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 0D 01 02 [14:07:53]Write to MH i2c: E2 08 00 13 71 80 0D 01 02 00 00 00 00 FD [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 13 71 00 90 00 F8 [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=255 [14:07:53]MH_SAM_APDU [14:07: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 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 D9 00 00 00 F4 03 04 00 BD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 12 01 00 35 04 06 00 DE [14:07:53]Write to MH i2c: E2 02 01 14 71 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 D9 00 00 00 F4 03 04 00 BD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 12 01 00 35 04 06 00 DE 00 00 7C [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 14 71 00 90 00 F9 [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=10 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 0D 02 02 05 CE 49 AD 9E AC [14:07:53]Write to MH i2c: E2 0D 00 15 71 80 0D 02 02 05 00 CE 49 AD 9E AC 00 00 18 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 15 71 00 90 00 FA [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 0D 03 02 [14:07:53]Write to MH i2c: E2 08 00 16 71 80 0D 03 02 00 00 00 00 02 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0B 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0B 00 16 71 00 28 7A 53 F5 D0 6A F9 2B 90 00 4B [14:07:53]RAPDU: 28 7A 53 F5 D0 6A F9 2B 90 00 [14:07:53]wFMCommunicate OK [14:07:53]SAM_PROTO_SignData done [14:07:53]FM_MakeSignedData done [14:07:53]CreateOFDProtocolMessage [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 11 00 00 [14:07:53]Write to MH i2c: E2 08 00 17 71 80 11 00 00 00 00 00 00 02 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 17 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 17 00 17 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [14:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:07:53]wFMCommunicate OK [14:07:53]CreateOFDProtocolMessage done [14:07:53]OFDSenderStorePacket 70269 [14:07:53]StoreOFDPacket docnum=70269 [14:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 21 07 01 EB 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 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 D9 00 00 00 F4 03 04 00 BD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 12 01 00 35 04 06 00 DE CE 49 AD 9E AC 28 7A 53 F5 D0 6A F9 2B [14:07:53]CheckFolder [14:07:53]dirname=/storage/ofd_packets [14:07:53]CheckFolder done [14:07:53]ProducePacketName [14:07:53]name=ofd_packets/00070269 [14:07:53]NVStorageSaveData ofd_packets/00070269 [14:07:53]File name is /storage/ofd_packets/00070269 [14:07:53]Write 301 bytes [14:07:53]NVStorageSaveData done [14:07:53]OFDSenderStorePacket done [14:07:53]KKMCreateOFDPacket done [14:07:53]NVStorageSaveData kkm_last_timestamp [14:07:53]File name is /storage/kkm_last_timestamp [14:07:53]Write 4 bytes [14:07:53]NVStorageSaveData done [14:07:53]ExternCall_PrintAddStr [14:07:53]wPrintStart [14:07:53]Write to MH i2c: 01 00 00 18 71 89 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 18 71 00 00 00 00 00 FF 0F 9E [14:07:53]RasterBufferAndPrint [14:07:53]line Счет N : (1)2886035 [14:07:53]line ИНН: 02508201610067 [14:07:53]line Контрольно-Кассовый Чек [14:07:53]line ПРОДАЖА [14:07:53]line ТРК (МРК, ГНК) : 12 [14:07:53]line Товар: 2710124130 [14:07:53]line Аи-92-К-5 [14:07:53]line 7.480 * 66.90 [14:07:53]line = 500.41 [14:07:53]line НДС 12% НСП 1% [14:07:53]line > о реализуемом товаре [14:07:53]line ОКРУГЛЕНИЕ: -0.41 [14:07:53]line ИТОГО: 500.00 [14:07:53]line Внесено: 500.00 [14:07:53]line СДАЧА: 0.00 [14:07:53]line НСП 1% : 4.43 [14:07:53]line НДС 12% : 53.14 [14:07:53]line Наличными: 500.00 [14:07:53]line Безнал.: 0.00 [14:07:53]line Место: АЗС № 85 "Партнер Нефть" [14:07:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:07:53]line СНО: Общий режим [14:07:53]line Чек 217 22.10.2024 14:07 [14:07:53]line Смена: 195 ФФД: 1.0 [14:07:53]line ЗНМ: 0300000167 [14:07:53]line РНМ: 0000000000156251 [14:07:53]line Версия ККМ: v1.0 [14:07:53]line ФМ: 0000000000963346 [14:07:53]line ФД: 70269 [14:07:53]line ФПД: 244977580744364 [14:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140757&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70269&fm=244977580744364&tin=02508201610067®Number=0000000000156251&sum=50000 [14:07:53]OFD Sender: Processing packet 70269 [packets to send 18, broken 17] [14:07:53]ProducePacketName [14:07:53]name=ofd_packets/00070269 [14:07:53]OFD Sender: To server: pG, [14:07:53]CommunicateWithHost lk.salyk.kg:30040 [14:07:53]ConnectInit lk.salyk.kg [14:07:53]written 0, free lines is 4095 [14:07:53]Connected sock=10 [14:07: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 34 36 0F 01 00 00 85 21 07 01 EB 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 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 D9 00 00 00 F4 03 04 00 BD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 12 01 00 35 04 06 00 DE CE 49 AD 9E AC 28 7A 53 F5 D0 6A F9 2B [14:07: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 34 36 4F 00 00 00 B4 D3 47 00 DB 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 34 36 10 04 04 00 7D 12 01 00 F4 03 04 00 5E 5B 17 67 B6 04 01 00 00 F1 9A D2 A4 E2 0D C2 94 [14:07:54]CommunicateWithHost err = 0 [14:07:54]CheckOFDResponse [14:07:54]1017 (14) - 77093643461234 [14:07:54]1041 (16) - 0000000000963346 [14:07:54]1040 (4) - 70269 [14:07:54]1012 (4) - 22.10.2024 07:59 [14:07:54]1206 (1) - 0 [14:07:54]OFD Sender: Remove packet 70269 [14:07:54]ProducePacketName [14:07:54]name=ofd_packets/00070269 [14:07:54]NVStorageDeleteData [14:07:54]Write to MH i2c: 01 00 00 43 71 B4 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 43 71 00 00 00 00 00 E4 0C AB [14:07:54]RasterBufferAndPrint [14:07:54]line [14:07:54]line [14:07:54]line [14:07:54]line [14:07:54]line [14:07:54]written 0, free lines is 3306 [14:07:54]MH_Cut [14:07:54]Write to MH i2c: D1 01 00 4A 71 01 8D [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: D1 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: D1 01 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: D1 01 00 4A 71 00 8C [14:07:54]Write to MH i2c: 01 00 00 4B 71 BC [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]OFD Sender: No OFD packet to send [14:07:54]*** Cut start [14:07:54]*** Partial cut [14:07:54]*** CUTSNS_PIN = 1 [14:07:55]*** CUTSNS_PIN = 0 [14:07:55]*** Brake cut motor [14:07:55]Read from MH i2c: 01 [14:07:55]MH_I2C_Read... [14:07:55]*** Stop cut motor [14:07:55]*** Cut end [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 4B 71 00 00 00 00 00 FF 0F D1 [14:07:55]process_action close_receipt done [14:07:55]requested_data is exist [14:07:55]produce_requested_data [14:07:55]requested_item fm.sn is exist - process it [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 11 00 00 [14:07:55]Write to MH i2c: E2 08 00 4C 71 80 11 00 00 00 00 00 00 37 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 4C 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [14:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:07:55]wFMCommunicate OK [14:07:55]requested_item fd.num is exist - process it [14:07:55]SAM_PROTO_GetFieldsCounters [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 00 00 [14:07:55]Write to MH i2c: E2 08 00 4D 71 80 13 00 00 00 00 00 00 3A [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 4D 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 12 01 00 0E 04 04 00 C3 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 33 [14:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 12 01 00 0E 04 04 00 C3 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 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetFieldsCounters done [14:07:55]requested_item shift.num is exist - process it [14:07:55]requested_item shift.opened is exist - process it [14:07:55]req_shift_opened [14:07:55]FM_GetShiftState [14:07:55]SAM_PROTO_GetShiftState [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 01 00 [14:07:55]Write to MH i2c: E2 08 00 4E 71 80 13 01 00 00 00 00 00 3C [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 4E 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2A [14:07:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetShiftState done [14:07:55]FM_GetShiftState done [14:07:55]req_shift_opened done [14:07:55]requested_item shift.open_date is exist - process it [14:07:55]req_shift_open_date [14:07:55]req_shift_open_date done [14:07:55]produce_requested_data done [14:07:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70269,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:07:55]process_action_free close_receipt [14:07:55]json_value_free [14:07:55]json_value_free done [14:07:55]process_json_proto returns [14:07:55]Send response to host [14:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70269,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:07:55]free response buf [14:07:55]execute_script done [14:07:55]execute_script returns [14:07:55]free content buf [14:07:55]Sock 9.Close socket [14:07:55]Sock 9.Thread stoped [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:07]accept exits with 7 [14:08:07]New connection [14:08:07]New thread 3067026788 created [14:08:07]Thread 3067170148 joined [14:08:07]Waiting for new connection... [14:08:07] Sock 7.Parse request [14:08:07]Sock 7.Check first char [14:08:07]Sock 7.First char is OK [14:08:07]request: POST /json_proto HTTP/1.0 [14:08:07]Method: POST [14:08:07]URL: /json_proto [14:08:07]Method is POST - this is cgi request [14:08:07]url: /json_proto [14:08:07]query_string will be loaded in cgi processing [14:08:07]execute_cgi json_proto POST (null) [14:08:07]execute_cgi path=json_proto method=POST [14:08:07]POST find Content-Length [14:08:07]Host: 172.17.50.3:8080 [14:08:07]Content-Length: 683 [14:08:07]Content-Type: application/json [14:08:07] [14:08:07]POST finish read [14:08:07]Found Content-Length = 683 [14:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:08:07]execute_script... [14: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)2886036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:08:07]POST & json_proto [14:08:07]process_json_proto [14:08:07]json parsed OK: [14:08:07]protocol is kg_v1.0 [14:08:07]action value=close_receipt [14:08:07]process_action close_receipt [14:08:07]cmd_close_receipt [14:08:07]MH_GetDate [14:08:07]Write to MH i2c: F0 00 00 4F 71 AF [14:08:07]Write i2c OK [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 09 00 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 09 00 4F 71 00 CD B1 17 67 6B 98 1E 66 3B [14:08:07]GetLastDocTimeStamp 1729606077 [14:08:07]current date 1729606093 [14:08:07]FM_GetShiftState [14:08:07]SAM_PROTO_GetShiftState [14:08:07]wFMCommunicate request_size=4 [14:08:07]MH_SAM_APDU [14:08:07]CAPDU: 80 13 01 00 [14:08:07]Write to MH i2c: E2 08 00 50 71 80 13 01 00 00 00 00 00 3E [14:08:07]Write i2c OK [14:08:07]MH_I2C_Read... [14:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:07]Read from MH i2c: E2 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: E2 0E 00 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: E2 0E 00 50 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2C [14:08:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:08:07]wFMCommunicate OK [14:08:07]SAM_PROTO_GetShiftState done [14:08:07]FM_GetShiftState done [14:08:07]opened in 1729555832 [14:08:07]opened+sec_in_day 1729642232 [14:08:07]quantity*price = 100021 [14:08:07]sum+1 = 100023 [14:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 218 22.10.2024 14:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70270 ФПД: 13288490269886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70270&fm=13288490269886&tin=02508201610067®Number=0000000000156251&sum=100000 [14:08:08]StoreToDocumentArchive [14:08:08]shift 195 fd 70270 [14:08:08]save to /storage/0195/doc_00070270 [14:08:08]save last doc name /storage/0195/doc_00070270 to /storage/kkm_last_doc_name [14:08:08]save OK [14:08:08]Clear old archive folders... [14:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:08]tlvbuf is 010FF6F0 [14:08:08]SAM_PROTO_ClearQueue [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 09 00 00 [14:08:08]Write to MH i2c: E2 08 00 5D 71 80 09 00 00 00 00 00 00 40 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 5D 71 00 90 00 42 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]SAM_PROTO_ClearQueue done [14:08:08]KKMCreateOFDPacket [14:08:08]OFDProtocolAddRootSTLVToBuf [14:08:08]FM_MakeSignedData [14:08:08]FM_MakeSignedData [14:08:08]SAM_PROTO_SignData [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 0D 01 02 [14:08:08]Write to MH i2c: E2 08 00 5E 71 80 0D 01 02 00 00 00 00 48 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 5E 71 00 90 00 43 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]wFMCommunicate request_size=255 [14:08:08]MH_SAM_APDU [14: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 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 DA 00 00 00 F4 03 04 00 CD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 12 01 00 35 04 06 00 0C [14:08:08]Write to MH i2c: E2 02 01 5F 71 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 DA 00 00 00 F4 03 04 00 CD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 12 01 00 35 04 06 00 0C 00 00 24 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:09]Read from MH i2c: E2 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 03 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 03 00 5F 71 00 90 00 44 [14:08:09]RAPDU: 90 00 [14:08:09]wFMCommunicate OK [14:08:09]wFMCommunicate request_size=10 [14:08:09]MH_SAM_APDU [14:08:09]CAPDU: 80 0D 02 02 05 15 F7 BD FC BE [14:08:09]Write to MH i2c: E2 0D 00 60 71 80 0D 02 02 05 00 15 F7 BD FC BE 00 00 D8 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:09]Read from MH i2c: E2 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 03 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 03 00 60 71 00 90 00 45 [14:08:09]RAPDU: 90 00 [14:08:09]wFMCommunicate OK [14:08:09]wFMCommunicate request_size=4 [14:08:09]MH_SAM_APDU [14:08:09]CAPDU: 80 0D 03 02 [14:08:09]Write to MH i2c: E2 08 00 61 71 80 0D 03 02 00 00 00 00 4D [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:09]Read from MH i2c: E2 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 0B 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 0B 00 61 71 00 88 95 64 5D 49 FA 0B 32 90 00 AC [14:08:09]RAPDU: 88 95 64 5D 49 FA 0B 32 90 00 [14:08:09]wFMCommunicate OK [14:08:09]SAM_PROTO_SignData done [14:08:09]FM_MakeSignedData done [14:08:09]CreateOFDProtocolMessage [14:08:09]wFMCommunicate request_size=4 [14:08:09]MH_SAM_APDU [14:08:09]CAPDU: 80 11 00 00 [14:08:09]Write to MH i2c: E2 08 00 62 71 80 11 00 00 00 00 00 00 4D [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:09]Read from MH i2c: E2 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 17 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: E2 17 00 62 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [14:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:08:09]wFMCommunicate OK [14:08:09]CreateOFDProtocolMessage done [14:08:09]OFDSenderStorePacket 70270 [14:08:09]StoreOFDPacket docnum=70270 [14:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B DB 07 01 1B 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 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 DA 00 00 00 F4 03 04 00 CD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 12 01 00 35 04 06 00 0C 15 F7 BD FC BE 88 95 64 5D 49 FA 0B 32 [14:08:09]CheckFolder [14:08:09]dirname=/storage/ofd_packets [14:08:09]CheckFolder done [14:08:09]ProducePacketName [14:08:09]name=ofd_packets/00070270 [14:08:09]NVStorageSaveData ofd_packets/00070270 [14:08:09]File name is /storage/ofd_packets/00070270 [14:08:09]Write 301 bytes [14:08:09]NVStorageSaveData done [14:08:09]OFDSenderStorePacket done [14:08:09]KKMCreateOFDPacket done [14:08:09]NVStorageSaveData kkm_last_timestamp [14:08:09]File name is /storage/kkm_last_timestamp [14:08:09]Write 4 bytes [14:08:09]NVStorageSaveData done [14:08:09]ExternCall_PrintAddStr [14:08:09]wPrintStart [14:08:09]Write to MH i2c: 01 00 00 63 71 D4 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 63 71 00 00 00 00 00 FF 0F E9 [14:08:09]RasterBufferAndPrint [14:08:09]line Счет N : (1)2886036 [14:08:09]line ИНН: 02508201610067 [14:08:09]line Контрольно-Кассовый Чек [14:08:09]line ПРОДАЖА [14:08:09]line ТРК (МРК, ГНК) : 23 [14:08:09]line Товар: 2710124500 [14:08:09]line Аи-95-К-5 [14:08:09]line 13.480 * 74.20 [14:08:09]line = 1000.22 [14:08:09]line НДС 12% НСП 1% [14:08:09]line > о реализуемом товаре [14:08:09]line ОКРУГЛЕНИЕ: -0.22 [14:08:09]line ИТОГО: 1000.00 [14:08:09]line Внесено: 1000.00 [14:08:09]line СДАЧА: 0.00 [14:08:09]line НСП 1% : 8.85 [14:08:09]line НДС 12% : 106.22 [14:08:09]line Наличными: 1000.00 [14:08:09]line Безнал.: 0.00 [14:08:09]line Место: АЗС № 85 "Партнер Нефть" [14:08:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:08:09]line СНО: Общий режим [14:08:09]line Чек 218 22.10.2024 14:08 [14:08:09]line Смена: 195 ФФД: 1.0 [14:08:09]line ЗНМ: 0300000167 [14:08:09]line РНМ: 0000000000156251 [14:08:09]line Версия ККМ: v1.0 [14:08:09]line ФМ: 0000000000963346 [14:08:09]line ФД: 70270 [14:08:09]line ФПД: 13288490269886 [14:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70270&fm=13288490269886&tin=02508201610067®Number=0000000000156251&sum=100000 [14:08:09]written 0, free lines is 4095 [14:08:09]OFD Sender: Processing packet 70270 [packets to send 18, broken 17] [14:08:09]ProducePacketName [14:08:09]name=ofd_packets/00070270 [14:08:09]OFD Sender: To server: pG, [14:08:09]CommunicateWithHost lk.salyk.kg:30040 [14:08:09]ConnectInit lk.salyk.kg [14:08:09]Connected sock=10 [14: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 34 36 0F 01 00 00 5B DB 07 01 1B 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 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 DA 00 00 00 F4 03 04 00 CD B1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 12 01 00 35 04 06 00 0C 15 F7 BD FC BE 88 95 64 5D 49 FA 0B 32 [14: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 34 36 4F 00 00 00 A2 FF 47 00 52 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 12 01 00 F4 03 04 00 6D 5B 17 67 B6 04 01 00 00 33 2B F1 58 E1 72 44 CD [14:08:09]CommunicateWithHost err = 0 [14:08:09]CheckOFDResponse [14:08:09]1017 (14) - 77093643461234 [14:08:09]1041 (16) - 0000000000963346 [14:08:09]1040 (4) - 70270 [14:08:09]1012 (4) - 22.10.2024 07:59 [14:08:09]1206 (1) - 0 [14:08:09]OFD Sender: Remove packet 70270 [14:08:09]ProducePacketName [14:08:09]name=ofd_packets/00070270 [14:08:09]NVStorageDeleteData [14:08:09]Write to MH i2c: 01 00 00 8E 71 FF [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 8E 71 00 00 00 00 00 06 0D 19 [14:08:09]RasterBufferAndPrint [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]written 0, free lines is 3340 [14:08:09]MH_Cut [14:08:09]Write to MH i2c: D1 01 00 95 71 01 D8 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 01 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 01 00 95 71 00 D7 [14:08:09]Write to MH i2c: 01 00 00 96 71 07 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:10]OFD Sender: No OFD packet to send [14:08:10]*** Cut start [14:08:10]*** Partial cut [14:08:10]*** CUTSNS_PIN = 1 [14:08:10]*** CUTSNS_PIN = 0 [14:08:10]*** Brake cut motor [14:08:11]Read from MH i2c: 01 [14:08:11]MH_I2C_Read... [14:08:11]*** Stop cut motor [14:08:11]*** Cut end [14:08:11]Read from MH i2c: 01 07 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: 01 07 00 96 71 00 00 00 00 00 FF 0F 1C [14:08:11]process_action close_receipt done [14:08:11]requested_data is exist [14:08:11]produce_requested_data [14:08:11]requested_item fm.sn is exist - process it [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 11 00 00 [14:08:11]Write to MH i2c: E2 08 00 97 71 80 11 00 00 00 00 00 00 82 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 97 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [14:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:08:11]wFMCommunicate OK [14:08:11]requested_item fd.num is exist - process it [14:08:11]SAM_PROTO_GetFieldsCounters [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 13 00 00 [14:08:11]Write to MH i2c: E2 08 00 98 71 80 13 00 00 00 00 00 00 85 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 62 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 62 00 98 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 12 01 00 0E 04 04 00 C3 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 82 [14: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 12 01 00 0E 04 04 00 C3 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 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_GetFieldsCounters done [14:08:11]requested_item shift.num is exist - process it [14:08:11]requested_item shift.opened is exist - process it [14:08:11]req_shift_opened [14:08:11]FM_GetShiftState [14:08:11]SAM_PROTO_GetShiftState [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 13 01 00 [14:08:11]Write to MH i2c: E2 08 00 99 71 80 13 01 00 00 00 00 00 87 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0E 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0E 00 99 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 75 [14:08:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_GetShiftState done [14:08:11]FM_GetShiftState done [14:08:11]req_shift_opened done [14:08:11]requested_item shift.open_date is exist - process it [14:08:11]req_shift_open_date [14:08:11]req_shift_open_date done [14:08:11]produce_requested_data done [14:08:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70270,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:08:11]process_action_free close_receipt [14:08:11]json_value_free [14:08:11]json_value_free done [14:08:11]process_json_proto returns [14:08:11]Send response to host [14:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70270,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:08:11]free response buf [14:08:11]execute_script done [14:08:11]execute_script returns [14:08:11]free content buf [14:08:11]Sock 7.Close socket [14:08:11]Sock 7.Thread stoped [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:13]accept exits with 9 [14:10:13]New connection [14:10:13]New thread 3067170148 created [14:10:13]Thread 3067026788 joined [14:10:13]Waiting for new connection... [14:10:13] Sock 9.Parse request [14:10:13]Sock 9.Check first char [14:10:13]Sock 9.First char is OK [14:10:13]request: POST /json_proto HTTP/1.0 [14:10:13]Method: POST [14:10:13]URL: /json_proto [14:10:13]Method is POST - this is cgi request [14:10:13]url: /json_proto [14:10:13]query_string will be loaded in cgi processing [14:10:13]execute_cgi json_proto POST (null) [14:10:13]execute_cgi path=json_proto method=POST [14:10:13]POST find Content-Length [14:10:13]Host: 172.17.50.3:8080 [14:10:13]Content-Length: 680 [14:10:13]Content-Type: application/json [14:10:13] [14:10:13]POST finish read [14:10:13]Found Content-Length = 680 [14:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886037", "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" ] } } [14:10:13]execute_script... [14:10: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)2886037", "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" ] } } [14:10:13]POST & json_proto [14:10:13]process_json_proto [14:10:13]json parsed OK: [14:10:13]protocol is kg_v1.0 [14:10:13]action value=close_receipt [14:10:13]process_action close_receipt [14:10:13]cmd_close_receipt [14:10:13]MH_GetDate [14:10:13]Write to MH i2c: F0 00 00 9A 71 FA [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 09 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 09 00 9A 71 00 4B B2 17 67 6B 98 1E 66 05 [14:10:13]GetLastDocTimeStamp 1729606093 [14:10:13]current date 1729606219 [14:10:13]FM_GetShiftState [14:10:13]SAM_PROTO_GetShiftState [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 13 01 00 [14:10:13]Write to MH i2c: E2 08 00 9B 71 80 13 01 00 00 00 00 00 89 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 9B 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [14:10:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:10:13]wFMCommunicate OK [14:10:13]SAM_PROTO_GetShiftState done [14:10:13]FM_GetShiftState done [14:10:13]opened in 1729555832 [14:10:13]opened+sec_in_day 1729642232 [14:10:13]quantity*price = 300075 [14:10:13]sum+1 = 300077 [14:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 219 22.10.2024 14:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70271 ФПД: 265255237140748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70271&fm=265255237140748&tin=02508201610067®Number=0000000000156251&sum=300000 [14:10:14]StoreToDocumentArchive [14:10:14]shift 195 fd 70271 [14:10:14]save to /storage/0195/doc_00070271 [14:10:14]save last doc name /storage/0195/doc_00070271 to /storage/kkm_last_doc_name [14:10:14]save OK [14:10:14]Clear old archive folders... [14:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:10:14]tlvbuf is 011236C0 [14:10:14]SAM_PROTO_ClearQueue [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 09 00 00 [14:10:14]Write to MH i2c: E2 08 00 A8 71 80 09 00 00 00 00 00 00 8B [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:14]Read from MH i2c: E2 03 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 A8 71 00 90 00 8D [14:10:14]RAPDU: 90 00 [14:10:14]wFMCommunicate OK [14:10:14]SAM_PROTO_ClearQueue done [14:10:14]KKMCreateOFDPacket [14:10:14]OFDProtocolAddRootSTLVToBuf [14:10:14]FM_MakeSignedData [14:10:14]FM_MakeSignedData [14:10:14]SAM_PROTO_SignData [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 0D 01 02 [14:10:14]Write to MH i2c: E2 08 00 A9 71 80 0D 01 02 00 00 00 00 93 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 A9 71 00 90 00 8E [14:10:14]RAPDU: 90 00 [14:10:14]wFMCommunicate OK [14:10:14]wFMCommunicate request_size=255 [14:10:14]MH_SAM_APDU [14:10:14]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 DB 00 00 00 F4 03 04 00 4B B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 12 01 00 35 04 06 00 F1 3F 8C 2F [14:10:14]Write to MH i2c: E2 02 01 AA 71 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 DB 00 00 00 F4 03 04 00 4B B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 12 01 00 35 04 06 00 F1 3F 8C 2F 00 00 DF [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 AA 71 00 90 00 8F [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=7 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 02 02 02 41 0C [14:10:15]Write to MH i2c: E2 0A 00 AB 71 80 0D 02 02 02 00 41 0C 00 00 E7 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 AB 71 00 90 00 90 [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 03 02 [14:10:15]Write to MH i2c: E2 08 00 AC 71 80 0D 03 02 00 00 00 00 98 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 0B 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 0B 00 AC 71 00 CF E0 EA 83 C7 E5 16 E1 90 00 58 [14:10:15]RAPDU: CF E0 EA 83 C7 E5 16 E1 90 00 [14:10:15]wFMCommunicate OK [14:10:15]SAM_PROTO_SignData done [14:10:15]FM_MakeSignedData done [14:10:15]CreateOFDProtocolMessage [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 11 00 00 [14:10:15]Write to MH i2c: E2 08 00 AD 71 80 11 00 00 00 00 00 00 98 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 17 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 17 00 AD 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [14:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:10:15]wFMCommunicate OK [14:10:15]CreateOFDProtocolMessage done [14:10:15]OFDSenderStorePacket 70271 [14:10:15]StoreOFDPacket docnum=70271 [14:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 6D 50 04 01 A0 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 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 DB 00 00 00 F4 03 04 00 4B B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 12 01 00 35 04 06 00 F1 3F 8C 2F 41 0C CF E0 EA 83 C7 E5 16 E1 [14:10:15]CheckFolder [14:10:15]dirname=/storage/ofd_packets [14:10:15]CheckFolder done [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00070271 [14:10:15]NVStorageSaveData ofd_packets/00070271 [14:10:15]File name is /storage/ofd_packets/00070271 [14:10:15]Write 298 bytes [14:10:15]NVStorageSaveData done [14:10:15]OFDSenderStorePacket done [14:10:15]KKMCreateOFDPacket done [14:10:15]NVStorageSaveData kkm_last_timestamp [14:10:15]File name is /storage/kkm_last_timestamp [14:10:15]Write 4 bytes [14:10:15]NVStorageSaveData done [14:10:15]ExternCall_PrintAddStr [14:10:15]wPrintStart [14:10:15]Write to MH i2c: 01 00 00 AE 71 1F [14:10:15]OFD Sender: Processing packet 70271 [packets to send 18, broken 17] [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00070271 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 [14:10:15]MH_I2C_Read... [14:10:15]OFD Sender: To server: pG, [14:10:15]CommunicateWithHost lk.salyk.kg:30040 [14:10:15]ConnectInit lk.salyk.kg [14:10:15]Read from MH i2c: 01 07 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 AE 71 00 00 00 00 00 FF 0F 34 [14:10:15]RasterBufferAndPrint [14:10:15]line Счет N : (1)2886037 [14:10:15]line ИНН: 02508201610067 [14:10:15]line Контрольно-Кассовый Чек [14:10:15]line ПРОДАЖА [14:10:15]line ТРК (МРК, ГНК) : 51 [14:10:15]line Товар: 2710194210 [14:10:15]line ДТ-К-5 [14:10:15]line 39.380 * 76.20 [14:10:15]line = 3000.76 [14:10:15]line НДС 12% НСП 1% [14:10:15]line > о реализуемом товаре [14:10:15]line ОКРУГЛЕНИЕ: -0.76 [14:10:15]line ИТОГО: 3000.00 [14:10:15]line Внесено: 3000.00 [14:10:15]line СДАЧА: 0.00 [14:10:15]line НСП 1% : 26.55 [14:10:15]line НДС 12% : 318.66 [14:10:15]line Наличными: 3000.00 [14:10:15]line Безнал.: 0.00 [14:10:15]line Место: АЗС № 85 "Партнер Нефть" [14:10:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:10:15]line СНО: Общий режим [14:10:15]line Чек 219 22.10.2024 14:10 [14:10:15]line Смена: 195 ФФД: 1.0 [14:10:15]line ЗНМ: 0300000167 [14:10:15]line РНМ: 0000000000156251 [14:10:15]line Версия ККМ: v1.0 [14:10:15]line ФМ: 0000000000963346 [14:10:15]line ФД: 70271 [14:10:15]line ФПД: 265255237140748 [14:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70271&fm=265255237140748&tin=02508201610067®Number=0000000000156251&sum=300000 [14:10:15]written 0, free lines is 4095 [14:10:15]Connected sock=10 [14:10: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 34 36 0C 01 00 00 6D 50 04 01 A0 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 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 DB 00 00 00 F4 03 04 00 4B B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 12 01 00 35 04 06 00 F1 3F 8C 2F 41 0C CF E0 EA 83 C7 E5 16 E1 [14:10: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 34 36 4F 00 00 00 F6 98 47 00 7E A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 12 01 00 F4 03 04 00 EB 5B 17 67 B6 04 01 00 00 6D DB 95 FD 7B E3 16 F5 [14:10:15]CommunicateWithHost err = 0 [14:10:15]CheckOFDResponse [14:10:15]1017 (14) - 77093643461234 [14:10:15]1041 (16) - 0000000000963346 [14:10:15]1040 (4) - 70271 [14:10:15]1012 (4) - 22.10.2024 08:01 [14:10:15]1206 (1) - 0 [14:10:15]OFD Sender: Remove packet 70271 [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00070271 [14:10:15]NVStorageDeleteData [14:10:15]Write to MH i2c: 01 00 00 D9 71 4A [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 D9 71 00 00 00 00 00 EC 0C 49 [14:10:15]RasterBufferAndPrint [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]line [14:10:15]written 0, free lines is 3314 [14:10:15]MH_Cut [14:10:15]Write to MH i2c: D1 01 00 E0 71 01 23 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 01 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: D1 01 00 E0 71 00 22 [14:10:15]Write to MH i2c: 01 00 00 E1 71 52 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:16]OFD Sender: No OFD packet to send [14:10:16]*** Cut start [14:10:16]*** Partial cut [14:10:16]*** CUTSNS_PIN = 1 [14:10:16]*** CUTSNS_PIN = 0 [14:10:16]*** Brake cut motor [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]*** Stop cut motor [14:10:17]*** Cut end [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 E1 71 00 00 00 00 00 FF 0F 67 [14:10:17]process_action close_receipt done [14:10:17]requested_data is exist [14:10:17]produce_requested_data [14:10:17]requested_item fm.sn is exist - process it [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 11 00 00 [14:10:17]Write to MH i2c: E2 08 00 E2 71 80 11 00 00 00 00 00 00 CD [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 E2 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [14:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:10:17]wFMCommunicate OK [14:10:17]requested_item fd.num is exist - process it [14:10:17]SAM_PROTO_GetFieldsCounters [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 00 00 [14:10:17]Write to MH i2c: E2 08 00 E3 71 80 13 00 00 00 00 00 00 D0 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 E3 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 12 01 00 0E 04 04 00 C3 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 D1 [14:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 12 01 00 0E 04 04 00 C3 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 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_GetFieldsCounters done [14:10:17]requested_item shift.num is exist - process it [14:10:17]requested_item shift.opened is exist - process it [14:10:17]req_shift_opened [14:10:17]FM_GetShiftState [14:10:17]SAM_PROTO_GetShiftState [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 01 00 [14:10:17]Write to MH i2c: E2 08 00 E4 71 80 13 01 00 00 00 00 00 D2 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 E4 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C0 [14:10:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_GetShiftState done [14:10:17]FM_GetShiftState done [14:10:17]req_shift_opened done [14:10:17]requested_item shift.open_date is exist - process it [14:10:17]req_shift_open_date [14:10:17]req_shift_open_date done [14:10:17]produce_requested_data done [14:10:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70271,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:10:17]process_action_free close_receipt [14:10:17]json_value_free [14:10:17]json_value_free done [14:10:17]process_json_proto returns [14:10:17]Send response to host [14:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70271,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:10:17]free response buf [14:10:17]execute_script done [14:10:17]execute_script returns [14:10:17]free content buf [14:10:17]Sock 9.Close socket [14:10:17]Sock 9.Thread stoped [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:43]accept exits with 7 [14:10:43]New connection [14:10:43]New thread 3067026788 created [14:10:43]Thread 3067170148 joined [14:10:43]Waiting for new connection... [14:10:43] Sock 7.Parse request [14:10:43]Sock 7.Check first char [14:10:43]Sock 7.First char is OK [14:10:43]request: POST /json_proto HTTP/1.0 [14:10:43]Method: POST [14:10:43]URL: /json_proto [14:10:43]Method is POST - this is cgi request [14:10:43]url: /json_proto [14:10:43]query_string will be loaded in cgi processing [14:10:43]execute_cgi json_proto POST (null) [14:10:43]execute_cgi path=json_proto method=POST [14:10:43]POST find Content-Length [14:10:43]Host: 172.17.50.3:8080 [14:10:43]Content-Length: 684 [14:10:43]Content-Type: application/json [14:10:43] [14:10:43]POST finish read [14:10:43]Found Content-Length = 684 [14:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:10:43]execute_script... [14:10: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)2886038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:10:43]POST & json_proto [14:10:43]process_json_proto [14:10:43]json parsed OK: [14:10:43]protocol is kg_v1.0 [14:10:43]action value=close_receipt [14:10:43]process_action close_receipt [14:10:43]cmd_close_receipt [14:10:43]MH_GetDate [14:10:43]Write to MH i2c: F0 00 00 E5 71 45 [14:10:43]Write i2c OK [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: F0 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: F0 09 00 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: F0 09 00 E5 71 00 69 B2 17 67 6B 98 1E 66 6E [14:10:43]GetLastDocTimeStamp 1729606219 [14:10:43]current date 1729606249 [14:10:43]FM_GetShiftState [14:10:43]SAM_PROTO_GetShiftState [14:10:43]wFMCommunicate request_size=4 [14:10:43]MH_SAM_APDU [14:10:43]CAPDU: 80 13 01 00 [14:10:43]Write to MH i2c: E2 08 00 E6 71 80 13 01 00 00 00 00 00 D4 [14:10:43]Write i2c OK [14:10:43]MH_I2C_Read... [14:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:43]Read from MH i2c: E2 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: E2 0E 00 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: E2 0E 00 E6 71 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [14:10:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:10:43]wFMCommunicate OK [14:10:43]SAM_PROTO_GetShiftState done [14:10:43]FM_GetShiftState done [14:10:43]opened in 1729555832 [14:10:43]opened+sec_in_day 1729642232 [14:10:43]quantity*price = 50025 [14:10:43]sum+1 = 50027 [14:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 220 22.10.2024 14:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70272 ФПД: 129303302295740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70272&fm=129303302295740&tin=02508201610067®Number=0000000000156251&sum=50000 [14:10:44]StoreToDocumentArchive [14:10:44]shift 195 fd 70272 [14:10:44]save to /storage/0195/doc_00070272 [14:10:44]save last doc name /storage/0195/doc_00070272 to /storage/kkm_last_doc_name [14:10:44]save OK [14:10:44]Clear old archive folders... [14:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:10:44]tlvbuf is 011F71A0 [14:10:44]SAM_PROTO_ClearQueue [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 09 00 00 [14:10:44]Write to MH i2c: E2 08 00 F3 71 80 09 00 00 00 00 00 00 D6 [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 F3 71 00 90 00 D8 [14:10:45]RAPDU: 90 00 [14:10:45]wFMCommunicate OK [14:10:45]SAM_PROTO_ClearQueue done [14:10:45]KKMCreateOFDPacket [14:10:45]OFDProtocolAddRootSTLVToBuf [14:10:45]FM_MakeSignedData [14:10:45]FM_MakeSignedData [14:10:45]SAM_PROTO_SignData [14:10:45]wFMCommunicate request_size=4 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 0D 01 02 [14:10:45]Write to MH i2c: E2 08 00 F4 71 80 0D 01 02 00 00 00 00 DE [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 F4 71 00 90 00 D9 [14:10:45]RAPDU: 90 00 [14:10:45]wFMCommunicate OK [14:10:45]wFMCommunicate request_size=255 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 DC 00 00 00 F4 03 04 00 69 B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 12 01 [14:10:45]Write to MH i2c: E2 02 01 F5 71 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 DC 00 00 00 F4 03 04 00 69 B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 12 01 00 00 AB [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 F5 71 00 90 00 DA [14:10:45]RAPDU: 90 00 [14:10:45]wFMCommunicate OK [14:10:45]wFMCommunicate request_size=16 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 99 C5 66 D0 BC [14:10:45]Write to MH i2c: E2 13 00 F6 71 80 0D 02 02 0B 00 00 35 04 06 00 75 99 C5 66 D0 BC 00 00 FB [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 03 00 F6 71 00 90 00 DB [14:10:45]RAPDU: 90 00 [14:10:45]wFMCommunicate OK [14:10:45]wFMCommunicate request_size=4 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 0D 03 02 [14:10:45]Write to MH i2c: E2 08 00 F7 71 80 0D 03 02 00 00 00 00 E3 [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 0B 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 0B 00 F7 71 00 C6 B9 A9 FD 66 84 22 71 90 00 86 [14:10:45]RAPDU: C6 B9 A9 FD 66 84 22 71 90 00 [14:10:45]wFMCommunicate OK [14:10:45]SAM_PROTO_SignData done [14:10:45]FM_MakeSignedData done [14:10:45]CreateOFDProtocolMessage [14:10:45]wFMCommunicate request_size=4 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 11 00 00 [14:10:45]Write to MH i2c: E2 08 00 F8 71 80 11 00 00 00 00 00 00 E3 [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 17 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 17 00 F8 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [14:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:10:45]wFMCommunicate OK [14:10:45]CreateOFDProtocolMessage done [14:10:45]OFDSenderStorePacket 70272 [14:10:45]StoreOFDPacket docnum=70272 [14:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 15 51 0D 01 58 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 DC 00 00 00 F4 03 04 00 69 B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 12 01 00 35 04 06 00 75 99 C5 66 D0 BC C6 B9 A9 FD 66 84 22 71 [14:10:45]CheckFolder [14:10:45]dirname=/storage/ofd_packets [14:10:45]CheckFolder done [14:10:45]ProducePacketName [14:10:45]name=ofd_packets/00070272 [14:10:45]NVStorageSaveData ofd_packets/00070272 [14:10:45]File name is /storage/ofd_packets/00070272 [14:10:45]Write 307 bytes [14:10:45]NVStorageSaveData done [14:10:45]OFDSenderStorePacket done [14:10:45]KKMCreateOFDPacket done [14:10:45]NVStorageSaveData kkm_last_timestamp [14:10:45]File name is /storage/kkm_last_timestamp [14:10:45]Write 4 bytes [14:10:45]NVStorageSaveData done [14:10:45]ExternCall_PrintAddStr [14:10:45]wPrintStart [14:10:45]Write to MH i2c: 01 00 00 F9 71 6A [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 F9 71 00 00 00 00 00 FF 0F 7F [14:10:45]RasterBufferAndPrint [14:10:45]line Счет N : (1)2886038 [14:10:45]line ИНН: 02508201610067 [14:10:45]line Контрольно-Кассовый Чек [14:10:45]line ПРОДАЖА [14:10:45]line ТРК (МРК, ГНК) : 21 [14:10:45]line Товар: 2710194240 [14:10:45]line D-ENERGY Дт-К-2 [14:10:45]line 6.480 * 77.20 [14:10:45]line = 500.26 [14:10:45]line НДС 12% НСП 1% [14:10:45]line > о реализуемом товаре [14:10:45]line ОКРУГЛЕНИЕ: -0.26 [14:10:45]line ИТОГО: 500.00 [14:10:45]line Внесено: 500.00 [14:10:45]line СДАЧА: 0.00 [14:10:45]line НСП 1% : 4.43 [14:10:45]line НДС 12% : 53.12 [14:10:45]line Наличными: 500.00 [14:10:45]line Безнал.: 0.00 [14:10:45]line Место: АЗС № 85 "Партнер Нефть" [14:10:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:10:45]line СНО: Общий режим [14:10:45]line Чек 220 22.10.2024 14:10 [14:10:45]line Смена: 195 ФФД: 1.0 [14:10:45]line ЗНМ: 0300000167 [14:10:45]line РНМ: 0000000000156251 [14:10:45]line Версия ККМ: v1.0 [14:10:45]line ФМ: 0000000000963346 [14:10:45]line ФД: 70272 [14:10:45]line ФПД: 129303302295740 [14:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70272&fm=129303302295740&tin=02508201610067®Number=0000000000156251&sum=50000 [14:10:45]written 0, free lines is 4095 [14:10:45]OFD Sender: Processing packet 70272 [packets to send 18, broken 17] [14:10:45]ProducePacketName [14:10:45]name=ofd_packets/00070272 [14:10:45]OFD Sender: To server: pG, [14:10:45]CommunicateWithHost lk.salyk.kg:30040 [14:10:45]ConnectInit lk.salyk.kg [14:10:45]Connected sock=10 [14:10: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 34 36 15 01 00 00 15 51 0D 01 58 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 DC 00 00 00 F4 03 04 00 69 B2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 12 01 00 35 04 06 00 75 99 C5 66 D0 BC C6 B9 A9 FD 66 84 22 71 [14:10:45]Write to MH i2c: 01 00 00 24 72 96 [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 24 72 00 00 00 00 00 00 0D AA [14:10:45]RasterBufferAndPrint [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]written 0, free lines is 3334 [14:10:46]MH_Cut [14:10:46]Write to MH i2c: D1 01 00 2B 72 01 6F [14:10:46]Write i2c OK [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: D1 [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: D1 01 00 [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: D1 01 00 2B 72 00 6E [14:10:46]Write to MH i2c: 01 00 00 2C 72 9E [14:10:46]Write i2c OK [14:10:46]MH_I2C_Read... [14:10: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 34 36 4F 00 00 00 E3 E7 47 00 76 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 34 36 10 04 04 00 80 12 01 00 F4 03 04 00 0A 5C 17 67 B6 04 01 00 00 13 E2 47 6B EF EC C4 2D [14:10:46]CommunicateWithHost err = 0 [14:10:46]CheckOFDResponse [14:10:46]1017 (14) - 77093643461234 [14:10:46]1041 (16) - 0000000000963346 [14:10:46]1040 (4) - 70272 [14:10:46]1012 (4) - 22.10.2024 08:02 [14:10:46]1206 (1) - 0 [14:10:46]OFD Sender: Remove packet 70272 [14:10:46]ProducePacketName [14:10:46]name=ofd_packets/00070272 [14:10:46]NVStorageDeleteData [14:10:46]*** Cut start [14:10:46]*** Partial cut [14:10:46]*** CUTSNS_PIN = 1 [14:10:46]OFD Sender: No OFD packet to send [14:10:46]*** CUTSNS_PIN = 0 [14:10:46]*** Brake cut motor [14:10:47]Read from MH i2c: 01 [14:10:47]MH_I2C_Read... [14:10:47]*** Stop cut motor [14:10:47]*** Cut end [14:10:47]Read from MH i2c: 01 07 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: 01 07 00 2C 72 00 00 00 00 00 FF 0F B3 [14:10:47]process_action close_receipt done [14:10:47]requested_data is exist [14:10:47]produce_requested_data [14:10:47]requested_item fm.sn is exist - process it [14:10:47]wFMCommunicate request_size=4 [14:10:47]MH_SAM_APDU [14:10:47]CAPDU: 80 11 00 00 [14:10:47]Write to MH i2c: E2 08 00 2D 72 80 11 00 00 00 00 00 00 19 [14:10:47]Write i2c OK [14:10:47]MH_I2C_Read... [14:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:47]Read from MH i2c: E2 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 17 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 17 00 2D 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [14:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:10:47]wFMCommunicate OK [14:10:47]requested_item fd.num is exist - process it [14:10:47]SAM_PROTO_GetFieldsCounters [14:10:47]wFMCommunicate request_size=4 [14:10:47]MH_SAM_APDU [14:10:47]CAPDU: 80 13 00 00 [14:10:47]Write to MH i2c: E2 08 00 2E 72 80 13 00 00 00 00 00 00 1C [14:10:47]Write i2c OK [14:10:47]MH_I2C_Read... [14:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:47]Read from MH i2c: E2 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 62 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 62 00 2E 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 12 01 00 0E 04 04 00 C3 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 21 [14:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 12 01 00 0E 04 04 00 C3 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 [14:10:47]wFMCommunicate OK [14:10:47]SAM_PROTO_GetFieldsCounters done [14:10:47]requested_item shift.num is exist - process it [14:10:47]requested_item shift.opened is exist - process it [14:10:47]req_shift_opened [14:10:47]FM_GetShiftState [14:10:47]SAM_PROTO_GetShiftState [14:10:47]wFMCommunicate request_size=4 [14:10:47]MH_SAM_APDU [14:10:47]CAPDU: 80 13 01 00 [14:10:47]Write to MH i2c: E2 08 00 2F 72 80 13 01 00 00 00 00 00 1E [14:10:47]Write i2c OK [14:10:47]MH_I2C_Read... [14:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:47]Read from MH i2c: E2 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 0E 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 0E 00 2F 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0C [14:10:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:10:47]wFMCommunicate OK [14:10:47]SAM_PROTO_GetShiftState done [14:10:47]FM_GetShiftState done [14:10:47]req_shift_opened done [14:10:47]requested_item shift.open_date is exist - process it [14:10:47]req_shift_open_date [14:10:47]req_shift_open_date done [14:10:47]produce_requested_data done [14:10:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70272,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:10:47]process_action_free close_receipt [14:10:47]json_value_free [14:10:47]json_value_free done [14:10:47]process_json_proto returns [14:10:47]Send response to host [14:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70272,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:10:47]free response buf [14:10:47]execute_script done [14:10:47]execute_script returns [14:10:47]free content buf [14:10:47]Sock 7.Close socket [14:10:47]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]accept exits with 9 [14:16:01]New connection [14:16:01]New thread 3067170148 created [14:16:01]Thread 3067026788 joined [14:16:01]Waiting for new connection... [14:16:01] Sock 9.Parse request [14:16:01]Sock 9.Check first char [14:16:01]Sock 9.First char is OK [14:16:01]request: POST /json_proto HTTP/1.0 [14:16:01]Method: POST [14:16:01]URL: /json_proto [14:16:01]Method is POST - this is cgi request [14:16:01]url: /json_proto [14:16:01]query_string will be loaded in cgi processing [14:16:01]execute_cgi json_proto POST (null) [14:16:01]execute_cgi path=json_proto method=POST [14:16:01]POST find Content-Length [14:16:01]Host: 172.17.50.3:8080 [14:16:01]Content-Length: 686 [14:16:01]Content-Type: application/json [14:16:01] [14:16:01]POST finish read [14:16:01]Found Content-Length = 686 [14:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:16:01]execute_script... [14:16: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)2886039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:16:01]POST & json_proto [14:16:01]process_json_proto [14:16:01]json parsed OK: [14:16:01]protocol is kg_v1.0 [14:16:01]action value=close_receipt [14:16:01]process_action close_receipt [14:16:01]cmd_close_receipt [14:16:01]MH_GetDate [14:16:01]Write to MH i2c: F0 00 00 30 72 91 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: F0 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: F0 09 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: F0 09 00 30 72 00 A6 B3 17 67 6B 98 1E 66 F8 [14:16:01]GetLastDocTimeStamp 1729606249 [14:16:01]current date 1729606566 [14:16:01]FM_GetShiftState [14:16:01]SAM_PROTO_GetShiftState [14:16:01]wFMCommunicate request_size=4 [14:16:01]MH_SAM_APDU [14:16:01]CAPDU: 80 13 01 00 [14:16:01]Write to MH i2c: E2 08 00 31 72 80 13 01 00 00 00 00 00 20 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:01]Read from MH i2c: E2 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 0E 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 0E 00 31 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0E [14:16:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:16:01]wFMCommunicate OK [14:16:01]SAM_PROTO_GetShiftState done [14:16:01]FM_GetShiftState done [14:16:01]opened in 1729555832 [14:16:01]opened+sec_in_day 1729642232 [14:16:01]quantity*price = 100011 [14:16:01]sum+1 = 100013 [14:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 221 22.10.2024 14:16 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70273 ФПД: 173464623181260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70273&fm=173464623181260&tin=02508201610067®Number=0000000000156251&sum=100000 [14:16:02]StoreToDocumentArchive [14:16:02]shift 195 fd 70273 [14:16:02]save to /storage/0195/doc_00070273 [14:16:02]save last doc name /storage/0195/doc_00070273 to /storage/kkm_last_doc_name [14:16:02]save OK [14:16:02]Clear old archive folders... [14:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:16:02]tlvbuf is 011449B0 [14:16:02]SAM_PROTO_ClearQueue [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 09 00 00 [14:16:02]Write to MH i2c: E2 08 00 3E 72 80 09 00 00 00 00 00 00 22 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 3E 72 00 90 00 24 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_ClearQueue done [14:16:02]KKMCreateOFDPacket [14:16:02]OFDProtocolAddRootSTLVToBuf [14:16:02]FM_MakeSignedData [14:16:02]FM_MakeSignedData [14:16:02]SAM_PROTO_SignData [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 01 02 [14:16:02]Write to MH i2c: E2 08 00 3F 72 80 0D 01 02 00 00 00 00 2A [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 3F 72 00 90 00 25 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=255 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 F4 03 04 00 A6 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 12 01 00 35 04 06 00 9D C3 [14:16:02]Write to MH i2c: E2 02 01 40 72 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 F4 03 04 00 A6 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 12 01 00 35 04 06 00 9D C3 00 00 F9 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 40 72 00 90 00 26 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=9 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 02 02 04 E1 3E ED CC [14:16:02]Write to MH i2c: E2 0C 00 41 72 80 0D 02 02 04 00 E1 3E ED CC 00 00 0D [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 41 72 00 90 00 27 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 03 02 [14:16:02]Write to MH i2c: E2 08 00 42 72 80 0D 03 02 00 00 00 00 2F [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0B 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0B 00 42 72 00 84 84 6A 2D 9B E2 D2 0F 90 00 2D [14:16:02]RAPDU: 84 84 6A 2D 9B E2 D2 0F 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_SignData done [14:16:02]FM_MakeSignedData done [14:16:02]CreateOFDProtocolMessage [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 11 00 00 [14:16:02]Write to MH i2c: E2 08 00 43 72 80 11 00 00 00 00 00 00 2F [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 43 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [14:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:16:02]wFMCommunicate OK [14:16:02]CreateOFDProtocolMessage done [14:16:02]OFDSenderStorePacket 70273 [14:16:02]StoreOFDPacket docnum=70273 [14:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6F F5 06 01 B0 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 F4 03 04 00 A6 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 12 01 00 35 04 06 00 9D C3 E1 3E ED CC 84 84 6A 2D 9B E2 D2 0F [14:16:02]CheckFolder [14:16:02]dirname=/storage/ofd_packets [14:16:02]CheckFolder done [14:16:02]ProducePacketName [14:16:02]name=ofd_packets/00070273 [14:16:02]NVStorageSaveData ofd_packets/00070273 [14:16:02]File name is /storage/ofd_packets/00070273 [14:16:02]Write 300 bytes [14:16:02]NVStorageSaveData done [14:16:02]OFDSenderStorePacket done [14:16:02]KKMCreateOFDPacket done [14:16:02]NVStorageSaveData kkm_last_timestamp [14:16:02]File name is /storage/kkm_last_timestamp [14:16:02]OFD Sender: Processing packet 70273 [packets to send 18, broken 17] [14:16:02]ProducePacketName [14:16:02]name=ofd_packets/00070273 [14:16:02]OFD Sender: To server: pG, [14:16:02]CommunicateWithHost lk.salyk.kg:30040 [14:16:02]ConnectInit lk.salyk.kg [14:16:02]Write 4 bytes [14:16:02]NVStorageSaveData done [14:16:02]ExternCall_PrintAddStr [14:16:02]wPrintStart [14:16:02]Write to MH i2c: 01 00 00 44 72 B6 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 44 72 00 00 00 00 00 FF 0F CB [14:16:02]RasterBufferAndPrint [14:16:02]line Счет N : (1)2886039 [14:16:02]line ИНН: 02508201610067 [14:16:02]line Контрольно-Кассовый Чек [14:16:02]line ПРОДАЖА [14:16:02]line ТРК (МРК, ГНК) : 71 [14:16:02]line Товар: 2711129700 [14:16:02]line ГАЗ-К-3 [14:16:02]line 25.710 * 38.90 [14:16:02]line = 1000.12 [14:16:02]line НДС 12% НСП 1% [14:16:02]line > о реализуемом товаре [14:16:02]line ОКРУГЛЕНИЕ: -0.12 [14:16:02]line ИТОГО: 1000.00 [14:16:02]line Внесено: 1000.00 [14:16:02]line СДАЧА: 0.00 [14:16:02]line НСП 1% : 8.85 [14:16:02]line НДС 12% : 106.21 [14:16:02]line Наличными: 1000.00 [14:16:02]line Безнал.: 0.00 [14:16:02]line Место: АЗС № 85 "Партнер Нефть" [14:16:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:16:02]line СНО: Общий режим [14:16:02]line Чек 221 22.10.2024 14:16 [14:16:02]line Смена: 195 ФФД: 1.0 [14:16:02]line ЗНМ: 0300000167 [14:16:03]line РНМ: 0000000000156251 [14:16:03]line Версия ККМ: v1.0 [14:16:03]line ФМ: 0000000000963346 [14:16:03]line ФД: 70273 [14:16:03]line ФПД: 173464623181260 [14:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70273&fm=173464623181260&tin=02508201610067®Number=0000000000156251&sum=100000 [14:16:03]Connected sock=11 [14:16: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 34 36 0E 01 00 00 6F F5 06 01 B0 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 F4 03 04 00 A6 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 12 01 00 35 04 06 00 9D C3 E1 3E ED CC 84 84 6A 2D 9B E2 D2 0F [14:16:03]written 0, free lines is 4095 [14:16: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 34 36 4F 00 00 00 9A D0 47 00 F3 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 12 01 00 F4 03 04 00 47 5D 17 67 B6 04 01 00 00 FA 07 4E B6 21 A3 69 A0 [14:16:03]CommunicateWithHost err = 0 [14:16:03]CheckOFDResponse [14:16:03]1017 (14) - 77093643461234 [14:16:03]1041 (16) - 0000000000963346 [14:16:03]1040 (4) - 70273 [14:16:03]1012 (4) - 22.10.2024 08:07 [14:16:03]1206 (1) - 0 [14:16:03]OFD Sender: Remove packet 70273 [14:16:03]ProducePacketName [14:16:03]name=ofd_packets/00070273 [14:16:03]NVStorageDeleteData [14:16:03]Write to MH i2c: 01 00 00 6F 72 E1 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 07 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 07 00 6F 72 00 00 00 00 00 F0 0C E4 [14:16:03]RasterBufferAndPrint [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]written 0, free lines is 3321 [14:16:03]MH_Cut [14:16:03]Write to MH i2c: D1 01 00 76 72 01 BA [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 01 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 01 00 76 72 00 B9 [14:16:03]Write to MH i2c: 01 00 00 77 72 E9 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]OFD Sender: No OFD packet to send [14:16:04]*** Cut start [14:16:04]*** Partial cut [14:16:04]*** CUTSNS_PIN = 1 [14:16:04]*** CUTSNS_PIN = 0 [14:16:04]*** Brake cut motor [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]*** Stop cut motor [14:16:04]*** Cut end [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 77 72 00 00 00 00 00 FF 0F FE [14:16:04]process_action close_receipt done [14:16:04]requested_data is exist [14:16:04]produce_requested_data [14:16:04]requested_item fm.sn is exist - process it [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 11 00 00 [14:16:04]Write to MH i2c: E2 08 00 78 72 80 11 00 00 00 00 00 00 64 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 78 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [14:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:16:04]wFMCommunicate OK [14:16:04]requested_item fd.num is exist - process it [14:16:04]SAM_PROTO_GetFieldsCounters [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 13 00 00 [14:16:04]Write to MH i2c: E2 08 00 79 72 80 13 00 00 00 00 00 00 67 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 62 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 62 00 79 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 12 01 00 0E 04 04 00 C3 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 70 [14:16: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 12 01 00 0E 04 04 00 C3 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 [14:16:05]wFMCommunicate OK [14:16:05]SAM_PROTO_GetFieldsCounters done [14:16:05]requested_item shift.num is exist - process it [14:16:05]requested_item shift.opened is exist - process it [14:16:05]req_shift_opened [14:16:05]FM_GetShiftState [14:16:05]SAM_PROTO_GetShiftState [14:16:05]wFMCommunicate request_size=4 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 13 01 00 [14:16:05]Write to MH i2c: E2 08 00 7A 72 80 13 01 00 00 00 00 00 69 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 7A 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 57 [14:16:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:16:05]wFMCommunicate OK [14:16:05]SAM_PROTO_GetShiftState done [14:16:05]FM_GetShiftState done [14:16:05]req_shift_opened done [14:16:05]requested_item shift.open_date is exist - process it [14:16:05]req_shift_open_date [14:16:05]req_shift_open_date done [14:16:05]produce_requested_data done [14:16:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70273,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:16:05]process_action_free close_receipt [14:16:05]json_value_free [14:16:05]json_value_free done [14:16:05]process_json_proto returns [14:16:05]Send response to host [14:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70273,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:16:05]free response buf [14:16:05]execute_script done [14:16:05]execute_script returns [14:16:05]free content buf [14:16:05]Sock 9.Close socket [14:16:05]Sock 9.Thread stoped [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:17]accept exits with 7 [14:17:17]New connection [14:17:17]New thread 3067026788 created [14:17:17]Thread 3067170148 joined [14:17:17]Waiting for new connection... [14:17:17] Sock 7.Parse request [14:17:17]Sock 7.Check first char [14:17:17]Sock 7.First char is OK [14:17:17]request: POST /json_proto HTTP/1.0 [14:17:17]Method: POST [14:17:17]URL: /json_proto [14:17:17]Method is POST - this is cgi request [14:17:17]url: /json_proto [14:17:17]query_string will be loaded in cgi processing [14:17:17]execute_cgi json_proto POST (null) [14:17:17]execute_cgi path=json_proto method=POST [14:17:17]POST find Content-Length [14:17:17]Host: 172.17.50.3:8080 [14:17:17]Content-Length: 678 [14:17:17]Content-Type: application/json [14:17:17] [14:17:17]POST finish read [14:17:17]Found Content-Length = 678 [14:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:17:17]execute_script... [14:17: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)2886040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:17:17]POST & json_proto [14:17:17]process_json_proto [14:17:17]json parsed OK: [14:17:17]protocol is kg_v1.0 [14:17:17]action value=close_receipt [14:17:17]process_action close_receipt [14:17:17]cmd_close_receipt [14:17:17]MH_GetDate [14:17:17]Write to MH i2c: F0 00 00 7B 72 DC [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 09 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 09 00 7B 72 00 F3 B3 17 67 6B 98 1E 66 90 [14:17:17]GetLastDocTimeStamp 1729606566 [14:17:17]current date 1729606643 [14:17:17]FM_GetShiftState [14:17:17]SAM_PROTO_GetShiftState [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 13 01 00 [14:17:17]Write to MH i2c: E2 08 00 7C 72 80 13 01 00 00 00 00 00 6B [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 7C 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 59 [14:17:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetShiftState done [14:17:17]FM_GetShiftState done [14:17:17]opened in 1729555832 [14:17:17]opened+sec_in_day 1729642232 [14:17:17]quantity*price = 50041 [14:17:17]sum+1 = 50042 [14:17: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 222 22.10.2024 14:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70274 ФПД: 179813137685790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70274&fm=179813137685790&tin=02508201610067®Number=0000000000156251&sum=50000 [14:17:18]StoreToDocumentArchive [14:17:18]shift 195 fd 70274 [14:17:18]save to /storage/0195/doc_00070274 [14:17:18]save last doc name /storage/0195/doc_00070274 to /storage/kkm_last_doc_name [14:17:18]save OK [14:17:18]Clear old archive folders... [14:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:18]tlvbuf is 012A1660 [14:17:18]SAM_PROTO_ClearQueue [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 09 00 00 [14:17:18]Write to MH i2c: E2 08 00 89 72 80 09 00 00 00 00 00 00 6D [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 89 72 00 90 00 6F [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]SAM_PROTO_ClearQueue done [14:17:18]KKMCreateOFDPacket [14:17:18]OFDProtocolAddRootSTLVToBuf [14:17:18]FM_MakeSignedData [14:17:18]FM_MakeSignedData [14:17:18]SAM_PROTO_SignData [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 01 02 [14:17:18]Write to MH i2c: E2 08 00 8A 72 80 0D 01 02 00 00 00 00 75 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 8A 72 00 90 00 70 [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=255 [14:17:18]MH_SAM_APDU [14:17: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 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 DE 00 00 00 F4 03 04 00 F3 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 12 01 00 35 04 06 00 A3 [14:17:18]Write to MH i2c: E2 02 01 8B 72 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 DE 00 00 00 F4 03 04 00 F3 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 12 01 00 35 04 06 00 A3 00 00 FB [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 8B 72 00 90 00 71 [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=10 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 02 02 05 8A 02 32 9D 1E [14:17:18]Write to MH i2c: E2 0D 00 8C 72 80 0D 02 02 05 00 8A 02 32 9D 1E 00 00 FB [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:18]OFD Sender: No OFD packet to send [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 8C 72 00 90 00 72 [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 03 02 [14:17:18]Write to MH i2c: E2 08 00 8D 72 80 0D 03 02 00 00 00 00 7A [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0B 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0B 00 8D 72 00 0B 38 60 18 81 6D ED 5D 90 00 6E [14:17:18]RAPDU: 0B 38 60 18 81 6D ED 5D 90 00 [14:17:18]wFMCommunicate OK [14:17:18]SAM_PROTO_SignData done [14:17:18]FM_MakeSignedData done [14:17:18]CreateOFDProtocolMessage [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 11 00 00 [14:17:18]Write to MH i2c: E2 08 00 8E 72 80 11 00 00 00 00 00 00 7A [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 17 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 17 00 8E 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [14:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:17:18]wFMCommunicate OK [14:17:18]CreateOFDProtocolMessage done [14:17:18]OFDSenderStorePacket 70274 [14:17:18]StoreOFDPacket docnum=70274 [14:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CA 9E 07 01 5D 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 DE 00 00 00 F4 03 04 00 F3 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 12 01 00 35 04 06 00 A3 8A 02 32 9D 1E 0B 38 60 18 81 6D ED 5D [14:17:18]CheckFolder [14:17:18]dirname=/storage/ofd_packets [14:17:18]CheckFolder done [14:17:18]ProducePacketName [14:17:18]name=ofd_packets/00070274 [14:17:18]NVStorageSaveData ofd_packets/00070274 [14:17:18]File name is /storage/ofd_packets/00070274 [14:17:18]Write 301 bytes [14:17:18]NVStorageSaveData done [14:17:18]OFDSenderStorePacket done [14:17:18]KKMCreateOFDPacket done [14:17:18]NVStorageSaveData kkm_last_timestamp [14:17:18]File name is /storage/kkm_last_timestamp [14:17:18]Write 4 bytes [14:17:18]NVStorageSaveData done [14:17:18]ExternCall_PrintAddStr [14:17:18]wPrintStart [14:17:18]Write to MH i2c: 01 00 00 8F 72 01 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: 01 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: 01 07 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: 01 07 00 8F 72 00 00 00 00 00 FF 0F 16 [14:17:18]RasterBufferAndPrint [14:17:18]line Счет N : (1)2886040 [14:17:18]line ИНН: 02508201610067 [14:17:18]line Контрольно-Кассовый Чек [14:17:18]line ПРОДАЖА [14:17:18]line ТРК (МРК, ГНК) : 42 [14:17:18]line Товар: 2710124130 [14:17:18]line Аи-92-К-5 [14:17:18]line 7.480 * 66.90 [14:17:18]line = 500.41 [14:17:18]line НДС 12% НСП 1% [14:17:18]line > о реализуемом товаре [14:17:18]line ОКРУГЛЕНИЕ: -0.41 [14:17:18]line ИТОГО: 500.00 [14:17:18]line Внесено: 500.00 [14:17:18]line СДАЧА: 0.00 [14:17:18]line НСП 1% : 4.43 [14:17:18]line НДС 12% : 53.14 [14:17:18]line Наличными: 500.00 [14:17:18]line Безнал.: 0.00 [14:17:18]line Место: АЗС № 85 "Партнер Нефть" [14:17:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:17:19]line СНО: Общий режим [14:17:19]line Чек 222 22.10.2024 14:17 [14:17:19]line Смена: 195 ФФД: 1.0 [14:17:19]line ЗНМ: 0300000167 [14:17:19]line РНМ: 0000000000156251 [14:17:19]line Версия ККМ: v1.0 [14:17:19]line ФМ: 0000000000963346 [14:17:19]line ФД: 70274 [14:17:19]line ФПД: 179813137685790 [14:17:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70274&fm=179813137685790&tin=02508201610067®Number=0000000000156251&sum=50000 [14:17:19]OFD Sender: Processing packet 70274 [packets to send 18, broken 17] [14:17:19]ProducePacketName [14:17:19]name=ofd_packets/00070274 [14:17:19]OFD Sender: To server: pG, [14:17:19]CommunicateWithHost lk.salyk.kg:30040 [14:17:19]ConnectInit lk.salyk.kg [14:17:19]written 0, free lines is 4095 [14:17:19]Connected sock=10 [14:17: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 34 36 0F 01 00 00 CA 9E 07 01 5D 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 DE 00 00 00 F4 03 04 00 F3 B3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 12 01 00 35 04 06 00 A3 8A 02 32 9D 1E 0B 38 60 18 81 6D ED 5D [14:17: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 34 36 4F 00 00 00 A9 A2 47 00 14 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 34 36 10 04 04 00 82 12 01 00 F4 03 04 00 93 5D 17 67 B6 04 01 00 00 92 6F 5F F3 ED 75 8C 96 [14:17:19]CommunicateWithHost err = 0 [14:17:19]CheckOFDResponse [14:17:19]1017 (14) - 77093643461234 [14:17:19]1041 (16) - 0000000000963346 [14:17:19]1040 (4) - 70274 [14:17:19]1012 (4) - 22.10.2024 08:08 [14:17:19]1206 (1) - 0 [14:17:19]OFD Sender: Remove packet 70274 [14:17:19]ProducePacketName [14:17:19]name=ofd_packets/00070274 [14:17:19]NVStorageDeleteData [14:17:19]Write to MH i2c: 01 00 00 BA 72 2C [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 BA 72 00 00 00 00 00 FA 0C 39 [14:17:19]RasterBufferAndPrint [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]written 0, free lines is 3328 [14:17:19]MH_Cut [14:17:19]Write to MH i2c: D1 01 00 C1 72 01 05 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 01 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 01 00 C1 72 00 04 [14:17:19]Write to MH i2c: 01 00 00 C2 72 34 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:20]OFD Sender: No OFD packet to send [14:17:20]*** Cut start [14:17:20]*** Partial cut [14:17:20]*** CUTSNS_PIN = 1 [14:17:20]*** CUTSNS_PIN = 0 [14:17:20]*** Brake cut motor [14:17:21]Read from MH i2c: 01 [14:17:21]MH_I2C_Read... [14:17:21]*** Stop cut motor [14:17:21]*** Cut end [14:17:21]Read from MH i2c: 01 07 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 C2 72 00 00 00 00 00 FF 0F 49 [14:17:21]process_action close_receipt done [14:17:21]requested_data is exist [14:17:21]produce_requested_data [14:17:21]requested_item fm.sn is exist - process it [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 11 00 00 [14:17:21]Write to MH i2c: E2 08 00 C3 72 80 11 00 00 00 00 00 00 AF [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 17 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 17 00 C3 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [14:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:17:21]wFMCommunicate OK [14:17:21]requested_item fd.num is exist - process it [14:17:21]SAM_PROTO_GetFieldsCounters [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 13 00 00 [14:17:21]Write to MH i2c: E2 08 00 C4 72 80 13 00 00 00 00 00 00 B2 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 62 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 62 00 C4 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 12 01 00 0E 04 04 00 C3 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 BF [14:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 12 01 00 0E 04 04 00 C3 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 [14:17:21]wFMCommunicate OK [14:17:21]SAM_PROTO_GetFieldsCounters done [14:17:21]requested_item shift.num is exist - process it [14:17:21]requested_item shift.opened is exist - process it [14:17:21]req_shift_opened [14:17:21]FM_GetShiftState [14:17:21]SAM_PROTO_GetShiftState [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 13 01 00 [14:17:21]Write to MH i2c: E2 08 00 C5 72 80 13 01 00 00 00 00 00 B4 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 0E 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 0E 00 C5 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A2 [14:17:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:17:21]wFMCommunicate OK [14:17:21]SAM_PROTO_GetShiftState done [14:17:21]FM_GetShiftState done [14:17:21]req_shift_opened done [14:17:21]requested_item shift.open_date is exist - process it [14:17:21]req_shift_open_date [14:17:21]req_shift_open_date done [14:17:21]produce_requested_data done [14:17:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70274,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:17:21]process_action_free close_receipt [14:17:21]json_value_free [14:17:21]json_value_free done [14:17:21]process_json_proto returns [14:17:21]Send response to host [14:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70274,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:17:21]free response buf [14:17:21]execute_script done [14:17:21]execute_script returns [14:17:21]free content buf [14:17:21]Sock 7.Close socket [14:17:21]Sock 7.Thread stoped [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:12]accept exits with 9 [14:19:12]New connection [14:19:12]New thread 3067170148 created [14:19:12]Thread 3067026788 joined [14:19:12]Waiting for new connection... [14:19:12] Sock 9.Parse request [14:19:12]Sock 9.Check first char [14:19:12]Sock 9.First char is OK [14:19:12]request: POST /json_proto HTTP/1.0 [14:19:12]Method: POST [14:19:12]URL: /json_proto [14:19:12]Method is POST - this is cgi request [14:19:12]url: /json_proto [14:19:12]query_string will be loaded in cgi processing [14:19:12]execute_cgi json_proto POST (null) [14:19:12]execute_cgi path=json_proto method=POST [14:19:12]POST find Content-Length [14:19:12]Host: 172.17.50.3:8080 [14:19:12]Content-Length: 682 [14:19:12]Content-Type: application/json [14:19:12] [14:19:12]POST finish read [14:19:12]Found Content-Length = 682 [14:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:19:12]execute_script... [14:19: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 : (1)2886041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:19:12]POST & json_proto [14:19:12]process_json_proto [14:19:12]json parsed OK: [14:19:12]protocol is kg_v1.0 [14:19:12]action value=close_receipt [14:19:12]process_action close_receipt [14:19:12]cmd_close_receipt [14:19:12]MH_GetDate [14:19:12]Write to MH i2c: F0 00 00 C6 72 27 [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 09 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 09 00 C6 72 00 66 B4 17 67 6B 98 1E 66 4F [14:19:12]GetLastDocTimeStamp 1729606643 [14:19:12]current date 1729606758 [14:19:12]FM_GetShiftState [14:19:12]SAM_PROTO_GetShiftState [14:19:12]wFMCommunicate request_size=4 [14:19:12]MH_SAM_APDU [14:19:12]CAPDU: 80 13 01 00 [14:19:12]Write to MH i2c: E2 08 00 C7 72 80 13 01 00 00 00 00 00 B6 [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:12]Read from MH i2c: E2 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 C7 72 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A4 [14:19:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:19:12]wFMCommunicate OK [14:19:12]SAM_PROTO_GetShiftState done [14:19:12]FM_GetShiftState done [14:19:12]opened in 1729555832 [14:19:12]opened+sec_in_day 1729642232 [14:19:12]quantity*price = 50025 [14:19:12]sum+1 = 50026 [14:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 223 22.10.2024 14:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70275 ФПД: 82670159250284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141918&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70275&fm=82670159250284&tin=02508201610067®Number=0000000000156251&sum=50000 [14:19:13]StoreToDocumentArchive [14:19:13]shift 195 fd 70275 [14:19:13]save to /storage/0195/doc_00070275 [14:19:13]save last doc name /storage/0195/doc_00070275 to /storage/kkm_last_doc_name [14:19:13]save OK [14:19:13]Clear old archive folders... [14:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:19:13]tlvbuf is 0137CBB0 [14:19:13]SAM_PROTO_ClearQueue [14:19:13]wFMCommunicate request_size=4 [14:19:13]MH_SAM_APDU [14:19:13]CAPDU: 80 09 00 00 [14:19:13]Write to MH i2c: E2 08 00 D4 72 80 09 00 00 00 00 00 00 B8 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:13]Read from MH i2c: E2 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 03 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 03 00 D4 72 00 90 00 BA [14:19:13]RAPDU: 90 00 [14:19:13]wFMCommunicate OK [14:19:13]SAM_PROTO_ClearQueue done [14:19:13]KKMCreateOFDPacket [14:19:13]OFDProtocolAddRootSTLVToBuf [14:19:13]FM_MakeSignedData [14:19:13]FM_MakeSignedData [14:19:13]SAM_PROTO_SignData [14:19:13]wFMCommunicate request_size=4 [14:19:13]MH_SAM_APDU [14:19:13]CAPDU: 80 0D 01 02 [14:19:13]Write to MH i2c: E2 08 00 D5 72 80 0D 01 02 00 00 00 00 C0 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 D5 72 00 90 00 BB [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=255 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 DF 00 00 00 F4 03 04 00 66 B4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 12 01 00 35 04 06 00 4B 30 [14:19:14]Write to MH i2c: E2 02 01 D6 72 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 DF 00 00 00 F4 03 04 00 66 B4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 12 01 00 35 04 06 00 4B 30 00 00 4E [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 D6 72 00 90 00 BC [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=9 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 02 02 04 25 79 C3 6C [14:19:14]Write to MH i2c: E2 0C 00 D7 72 80 0D 02 02 04 00 25 79 C3 6C 00 00 98 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 D7 72 00 90 00 BD [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 03 02 [14:19:14]Write to MH i2c: E2 08 00 D8 72 80 0D 03 02 00 00 00 00 C5 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 0B 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 0B 00 D8 72 00 6F E6 4F C2 85 F6 07 A8 90 00 56 [14:19:14]RAPDU: 6F E6 4F C2 85 F6 07 A8 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_SignData done [14:19:14]FM_MakeSignedData done [14:19:14]CreateOFDProtocolMessage [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 11 00 00 [14:19:14]Write to MH i2c: E2 08 00 D9 72 80 11 00 00 00 00 00 00 C5 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 17 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 17 00 D9 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [14:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:19:14]wFMCommunicate OK [14:19:14]CreateOFDProtocolMessage done [14:19:14]OFDSenderStorePacket 70275 [14:19:14]StoreOFDPacket docnum=70275 [14:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E6 10 06 01 FD 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 DF 00 00 00 F4 03 04 00 66 B4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 12 01 00 35 04 06 00 4B 30 25 79 C3 6C 6F E6 4F C2 85 F6 07 A8 [14:19:14]CheckFolder [14:19:14]dirname=/storage/ofd_packets [14:19:14]CheckFolder done [14:19:14]ProducePacketName [14:19:14]name=ofd_packets/00070275 [14:19:14]NVStorageSaveData ofd_packets/00070275 [14:19:14]File name is /storage/ofd_packets/00070275 [14:19:14]Write 300 bytes [14:19:14]NVStorageSaveData done [14:19:14]OFDSenderStorePacket done [14:19:14]KKMCreateOFDPacket done [14:19:14]NVStorageSaveData kkm_last_timestamp [14:19:14]File name is /storage/kkm_last_timestamp [14:19:14]Write 4 bytes [14:19:14]NVStorageSaveData done [14:19:14]ExternCall_PrintAddStr [14:19:14]wPrintStart [14:19:14]Write to MH i2c: 01 00 00 DA 72 4C [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 07 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 07 00 DA 72 00 00 00 00 00 FF 0F 61 [14:19:14]RasterBufferAndPrint [14:19:14]line Счет N : (1)2886041 [14:19:14]line ИНН: 02508201610067 [14:19:14]line Контрольно-Кассовый Чек [14:19:14]line ПРОДАЖА [14:19:14]line ТРК (МРК, ГНК) : 71 [14:19:14]line Товар: 2711129700 [14:19:14]line ГАЗ-К-3 [14:19:14]line 12.860 * 38.90 [14:19:14]line = 500.25 [14:19:14]line НДС 12% НСП 1% [14:19:14]line > о реализуемом товаре [14:19:14]line ОКРУГЛЕНИЕ: -0.25 [14:19:14]line ИТОГО: 500.00 [14:19:14]line Внесено: 500.00 [14:19:14]line СДАЧА: 0.00 [14:19:14]line НСП 1% : 4.43 [14:19:14]line НДС 12% : 53.12 [14:19:14]line Наличными: 500.00 [14:19:14]line Безнал.: 0.00 [14:19:14]line Место: АЗС № 85 "Партнер Нефть" [14:19:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:19:14]line СНО: Общий режим [14:19:14]line Чек 223 22.10.2024 14:19 [14:19:14]line Смена: 195 ФФД: 1.0 [14:19:14]line ЗНМ: 0300000167 [14:19:14]line РНМ: 0000000000156251 [14:19:14]line Версия ККМ: v1.0 [14:19:14]line ФМ: 0000000000963346 [14:19:14]line ФД: 70275 [14:19:14]line ФПД: 82670159250284 [14:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141918&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70275&fm=82670159250284&tin=02508201610067®Number=0000000000156251&sum=50000 [14:19:14]OFD Sender: Processing packet 70275 [packets to send 18, broken 17] [14:19:14]ProducePacketName [14:19:14]name=ofd_packets/00070275 [14:19:14]OFD Sender: To server: pG, [14:19:14]CommunicateWithHost lk.salyk.kg:30040 [14:19:14]ConnectInit lk.salyk.kg [14:19:14]written 0, free lines is 4095 [14:19:14]Connected sock=10 [14:19: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 34 36 0E 01 00 00 E6 10 06 01 FD 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 DF 00 00 00 F4 03 04 00 66 B4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 12 01 00 35 04 06 00 4B 30 25 79 C3 6C 6F E6 4F C2 85 F6 07 A8 [14:19: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 34 36 4F 00 00 00 63 13 47 00 8A 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 34 36 10 04 04 00 83 12 01 00 F4 03 04 00 07 5E 17 67 B6 04 01 00 00 5B 42 F6 7E 55 EB 0F 3F [14:19:15]CommunicateWithHost err = 0 [14:19:15]CheckOFDResponse [14:19:15]1017 (14) - 77093643461234 [14:19:15]1041 (16) - 0000000000963346 [14:19:15]1040 (4) - 70275 [14:19:15]1012 (4) - 22.10.2024 08:10 [14:19:15]1206 (1) - 0 [14:19:15]OFD Sender: Remove packet 70275 [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00070275 [14:19:15]NVStorageDeleteData [14:19:15]Write to MH i2c: 01 00 00 05 73 78 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 05 73 00 00 00 00 00 EC 0C 77 [14:19:15]RasterBufferAndPrint [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]written 0, free lines is 3314 [14:19:15]MH_Cut [14:19:15]Write to MH i2c: D1 01 00 0C 73 01 51 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 0C 73 00 50 [14:19:15]Write to MH i2c: 01 00 00 0D 73 80 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]OFD Sender: No OFD packet to send [14:19:15]*** Cut start [14:19:15]*** Partial cut [14:19:15]*** CUTSNS_PIN = 1 [14:19:15]*** CUTSNS_PIN = 0 [14:19:16]*** Brake cut motor [14:19:16]Read from MH i2c: 01 [14:19:16]MH_I2C_Read... [14:19:16]*** Stop cut motor [14:19:16]*** Cut end [14:19:16]Read from MH i2c: 01 07 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 07 00 0D 73 00 00 00 00 00 FF 0F 95 [14:19:16]process_action close_receipt done [14:19:16]requested_data is exist [14:19:16]produce_requested_data [14:19:16]requested_item fm.sn is exist - process it [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 11 00 00 [14:19:16]Write to MH i2c: E2 08 00 0E 73 80 11 00 00 00 00 00 00 FB [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 17 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 17 00 0E 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [14:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:19:16]wFMCommunicate OK [14:19:16]requested_item fd.num is exist - process it [14:19:16]SAM_PROTO_GetFieldsCounters [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 13 00 00 [14:19:16]Write to MH i2c: E2 08 00 0F 73 80 13 00 00 00 00 00 00 FE [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 62 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 62 00 0F 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 12 01 00 0E 04 04 00 C3 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 0F [14:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 12 01 00 0E 04 04 00 C3 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 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_GetFieldsCounters done [14:19:16]requested_item shift.num is exist - process it [14:19:16]requested_item shift.opened is exist - process it [14:19:16]req_shift_opened [14:19:16]FM_GetShiftState [14:19:16]SAM_PROTO_GetShiftState [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 13 01 00 [14:19:16]Write to MH i2c: E2 08 00 10 73 80 13 01 00 00 00 00 00 00 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0E 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0E 00 10 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EE [14:19:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_GetShiftState done [14:19:16]FM_GetShiftState done [14:19:16]req_shift_opened done [14:19:16]requested_item shift.open_date is exist - process it [14:19:16]req_shift_open_date [14:19:16]req_shift_open_date done [14:19:16]produce_requested_data done [14:19:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70275,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:19:16]process_action_free close_receipt [14:19:16]json_value_free [14:19:16]json_value_free done [14:19:16]process_json_proto returns [14:19:16]Send response to host [14:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70275,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:19:16]free response buf [14:19:16]execute_script done [14:19:16]execute_script returns [14:19:16]free content buf [14:19:16]Sock 9.Close socket [14:19:16]Sock 9.Thread stoped [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20: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:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:09]accept exits with 7 [14:31:09]New connection [14:31:09]New thread 3067026788 created [14:31:09]Thread 3067170148 joined [14:31:09]Waiting for new connection... [14:31:09] Sock 7.Parse request [14:31:09]Sock 7.Check first char [14:31:09]Sock 7.First char is OK [14:31:09]request: POST /json_proto HTTP/1.0 [14:31:09]Method: POST [14:31:09]URL: /json_proto [14:31:09]Method is POST - this is cgi request [14:31:09]url: /json_proto [14:31:09]query_string will be loaded in cgi processing [14:31:09]execute_cgi json_proto POST (null) [14:31:09]execute_cgi path=json_proto method=POST [14:31:09]POST find Content-Length [14:31:09]Host: 172.17.50.3:8080 [14:31:09]Content-Length: 770 [14:31:09]Content-Type: application/json [14:31:09] [14:31:09]POST finish read [14:31:09]Found Content-Length = 770 [14:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.850, "sum" : 1324.47, "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" : 1324.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:09]execute_script... [14:31: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 : (1)2886043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.850, "sum" : 1324.47, "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" : 1324.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:09]POST & json_proto [14:31:09]process_json_proto [14:31:09]json parsed OK: [14:31:09]protocol is kg_v1.0 [14:31:09]action value=close_receipt [14:31:09]process_action close_receipt [14:31:09]cmd_close_receipt [14:31:09]MH_GetDate [14:31:09]Write to MH i2c: F0 00 00 11 73 73 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: F0 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: F0 09 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: F0 09 00 11 73 00 32 B7 17 67 6B 98 1E 66 6A [14:31:09]GetLastDocTimeStamp 1729606758 [14:31:09]current date 1729607474 [14:31:09]FM_GetShiftState [14:31:09]SAM_PROTO_GetShiftState [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 13 01 00 [14:31:09]Write to MH i2c: E2 08 00 12 73 80 13 01 00 00 00 00 00 02 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0E 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0E 00 12 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F0 [14:31:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:31:09]wFMCommunicate OK [14:31:09]SAM_PROTO_GetShiftState done [14:31:09]FM_GetShiftState done [14:31:09]opened in 1729555832 [14:31:09]opened+sec_in_day 1729642232 [14:31:09]quantity*price = 132447 [14:31:09]sum+1 = 132448 [14:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1324.47 НСП 1% : 11.72 НДС 12% : 140.65 Наличными: 0.00 Безнал.: 1324.47 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 224 22.10.2024 14:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70276 ФПД: 84019273943680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143114&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70276&fm=84019273943680&tin=02508201610067®Number=0000000000156251&sum=132447 [14:31:10]StoreToDocumentArchive [14:31:10]shift 195 fd 70276 [14:31:10]save to /storage/0195/doc_00070276 [14:31:10]save last doc name /storage/0195/doc_00070276 to /storage/kkm_last_doc_name [14:31:10]save OK [14:31:10]Clear old archive folders... [14:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:10]tlvbuf is 0137C710 [14:31:10]SAM_PROTO_ClearQueue [14:31:10]wFMCommunicate request_size=4 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 09 00 00 [14:31:10]Write to MH i2c: E2 08 00 1F 73 80 09 00 00 00 00 00 00 04 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 1F 73 00 90 00 06 [14:31:10]RAPDU: 90 00 [14:31:10]wFMCommunicate OK [14:31:10]SAM_PROTO_ClearQueue done [14:31:10]KKMCreateOFDPacket [14:31:10]OFDProtocolAddRootSTLVToBuf [14:31:10]FM_MakeSignedData [14:31:10]FM_MakeSignedData [14:31:10]SAM_PROTO_SignData [14:31:10]wFMCommunicate request_size=4 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 0D 01 02 [14:31:10]Write to MH i2c: E2 08 00 20 73 80 0D 01 02 00 00 00 00 0C [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 20 73 00 90 00 07 [14:31:10]RAPDU: 90 00 [14:31:10]wFMCommunicate OK [14:31:10]wFMCommunicate request_size=255 [14:31:10]MH_SAM_APDU [14:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 45 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 05 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 32 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 12 01 00 35 04 06 00 4C [14:31:10]Write to MH i2c: E2 02 01 21 73 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 BA 45 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 05 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 32 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 12 01 00 35 04 06 00 4C 00 00 09 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 21 73 00 90 00 08 [14:31:10]RAPDU: 90 00 [14:31:10]wFMCommunicate OK [14:31:10]wFMCommunicate request_size=10 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 0D 02 02 05 6A 42 FA 4A 80 [14:31:10]Write to MH i2c: E2 0D 00 22 73 80 0D 02 02 05 00 6A 42 FA 4A 80 00 00 89 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 03 00 22 73 00 90 00 09 [14:31:10]RAPDU: 90 00 [14:31:10]wFMCommunicate OK [14:31:10]wFMCommunicate request_size=4 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 0D 03 02 [14:31:10]Write to MH i2c: E2 08 00 23 73 80 0D 03 02 00 00 00 00 11 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 0B 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 0B 00 23 73 00 AF 0B 76 5E 76 7C 4A 24 90 00 00 [14:31:10]RAPDU: AF 0B 76 5E 76 7C 4A 24 90 00 [14:31:10]wFMCommunicate OK [14:31:10]SAM_PROTO_SignData done [14:31:10]FM_MakeSignedData done [14:31:10]CreateOFDProtocolMessage [14:31:10]wFMCommunicate request_size=4 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 11 00 00 [14:31:10]Write to MH i2c: E2 08 00 24 73 80 11 00 00 00 00 00 00 11 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:10]Read from MH i2c: E2 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 17 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: E2 17 00 24 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [14:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:31:10]wFMCommunicate OK [14:31:10]CreateOFDProtocolMessage done [14:31:10]OFDSenderStorePacket 70276 [14:31:10]StoreOFDPacket docnum=70276 [14:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 FE 07 01 E0 B9 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 BA 45 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 05 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 32 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 12 01 00 35 04 06 00 4C 6A 42 FA 4A 80 AF 0B 76 5E 76 7C 4A 24 [14:31:10]CheckFolder [14:31:10]dirname=/storage/ofd_packets [14:31:10]CheckFolder done [14:31:10]ProducePacketName [14:31:10]name=ofd_packets/00070276 [14:31:10]NVStorageSaveData ofd_packets/00070276 [14:31:10]File name is /storage/ofd_packets/00070276 [14:31:10]Write 301 bytes [14:31:10]NVStorageSaveData done [14:31:10]OFDSenderStorePacket done [14:31:10]KKMCreateOFDPacket done [14:31:10]NVStorageSaveData kkm_last_timestamp [14:31:10]File name is /storage/kkm_last_timestamp [14:31:10]Write 4 bytes [14:31:10]NVStorageSaveData done [14:31:10]ExternCall_PrintAddStr [14:31:10]wPrintStart [14:31:10]Write to MH i2c: 01 00 00 25 73 98 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 07 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 07 00 25 73 00 00 00 00 00 FF 0F AD [14:31:10]RasterBufferAndPrint [14:31:10]line Счет N : (1)2886043 [14:31:10]line ИНН: 02508201610067 [14:31:10]line Контрольно-Кассовый Чек [14:31:10]line ПРОДАЖА [14:31:10]line ТРК (МРК, ГНК) : 13 [14:31:10]line Товар: 2710124500 [14:31:10]line Аи-95-К-5 [14:31:10]line 17.850 * 74.20 [14:31:10]line = 1324.47 [14:31:10]line НДС 12% НСП 1% [14:31:10]line > о реализуемом товаре [14:31:10]line ИТОГО: 1324.47 [14:31:10]line НСП 1% : 11.72 [14:31:10]line НДС 12% : 140.65 [14:31:10]line Наличными: 0.00 [14:31:10]line Безнал.: 1324.47 [14:31:10]line Место: АЗС № 85 "Партнер Нефть" [14:31:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:31:10]line СНО: Общий режим [14:31:10]line Чек 224 22.10.2024 14:31 [14:31:10]line Смена: 195 ФФД: 1.0 [14:31:10]line ЗНМ: 0300000167 [14:31:10]line РНМ: 0000000000156251 [14:31:10]line Версия ККМ: v1.0 [14:31:10]line Платежная система: Mbank [14:31:10]line ФМ: 0000000000963346 [14:31:10]line ФД: 70276 [14:31:10]line ФПД: 84019273943680 [14:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143114&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70276&fm=84019273943680&tin=02508201610067®Number=0000000000156251&sum=132447 [14:31:11]written 0, free lines is 4095 [14:31:11]OFD Sender: Processing packet 70276 [packets to send 18, broken 17] [14:31:11]ProducePacketName [14:31:11]name=ofd_packets/00070276 [14:31:11]OFD Sender: To server: pG, [14:31:11]CommunicateWithHost lk.salyk.kg:30040 [14:31:11]ConnectInit lk.salyk.kg [14:31:11]Connected sock=10 [14:31: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 34 36 0F 01 00 00 D2 FE 07 01 E0 B9 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 BA 45 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5F 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 05 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 32 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 12 01 00 35 04 06 00 4C 6A 42 FA 4A 80 AF 0B 76 5E 76 7C 4A 24 [14:31: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 34 36 4F 00 00 00 AC 83 47 00 E3 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 12 01 00 F4 03 04 00 D3 60 17 67 B6 04 01 00 00 A3 21 7A 5F C6 BE E9 7A [14:31:11]CommunicateWithHost err = 0 [14:31:11]CheckOFDResponse [14:31:11]1017 (14) - 77093643461234 [14:31:11]1041 (16) - 0000000000963346 [14:31:11]1040 (4) - 70276 [14:31:11]1012 (4) - 22.10.2024 08:22 [14:31:11]1206 (1) - 0 [14:31:11]OFD Sender: Remove packet 70276 [14:31:11]ProducePacketName [14:31:11]name=ofd_packets/00070276 [14:31:11]NVStorageDeleteData [14:31:11]Write to MH i2c: 01 00 00 4E 73 C1 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: 01 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: 01 07 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: 01 07 00 4E 73 00 00 00 00 00 15 0D EA [14:31:11]RasterBufferAndPrint [14:31:11]line [14:31:11]line [14:31:11]line [14:31:11]line [14:31:11]line [14:31:11]written 0, free lines is 3356 [14:31:11]MH_Cut [14:31:11]Write to MH i2c: D1 01 00 55 73 01 9A [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: D1 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: D1 01 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: D1 01 00 55 73 00 99 [14:31:11]Write to MH i2c: 01 00 00 56 73 C9 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]OFD Sender: No OFD packet to send [14:31:12]*** Cut start [14:31:12]*** Partial cut [14:31:12]*** CUTSNS_PIN = 1 [14:31:12]*** CUTSNS_PIN = 0 [14:31:12]*** Brake cut motor [14:31:12]Read from MH i2c: 01 [14:31:12]MH_I2C_Read... [14:31:12]*** Stop cut motor [14:31:12]*** Cut end [14:31:12]Read from MH i2c: 01 07 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 07 00 56 73 00 00 00 00 00 FF 0F DE [14:31:12]process_action close_receipt done [14:31:12]requested_data is exist [14:31:12]produce_requested_data [14:31:12]requested_item fm.sn is exist - process it [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 11 00 00 [14:31:12]Write to MH i2c: E2 08 00 57 73 80 11 00 00 00 00 00 00 44 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 57 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [14:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:31:12]wFMCommunicate OK [14:31:12]requested_item fd.num is exist - process it [14:31:12]SAM_PROTO_GetFieldsCounters [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 13 00 00 [14:31:12]Write to MH i2c: E2 08 00 58 73 80 13 00 00 00 00 00 00 47 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 62 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 62 00 58 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 12 01 00 0E 04 04 00 C3 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 5C [14:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 12 01 00 0E 04 04 00 C3 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 [14:31:13]wFMCommunicate OK [14:31:13]SAM_PROTO_GetFieldsCounters done [14:31:13]requested_item shift.num is exist - process it [14:31:13]requested_item shift.opened is exist - process it [14:31:13]req_shift_opened [14:31:13]FM_GetShiftState [14:31:13]SAM_PROTO_GetShiftState [14:31:13]wFMCommunicate request_size=4 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 13 01 00 [14:31:13]Write to MH i2c: E2 08 00 59 73 80 13 01 00 00 00 00 00 49 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 0E 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 0E 00 59 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 37 [14:31:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:31:13]wFMCommunicate OK [14:31:13]SAM_PROTO_GetShiftState done [14:31:13]FM_GetShiftState done [14:31:13]req_shift_opened done [14:31:13]requested_item shift.open_date is exist - process it [14:31:13]req_shift_open_date [14:31:13]req_shift_open_date done [14:31:13]produce_requested_data done [14:31:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70276,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:31:13]process_action_free close_receipt [14:31:13]json_value_free [14:31:13]json_value_free done [14:31:13]process_json_proto returns [14:31:13]Send response to host [14:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70276,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:31:13]free response buf [14:31:13]execute_script done [14:31:13]execute_script returns [14:31:13]free content buf [14:31:13]Sock 7.Close socket [14:31:13]Sock 7.Thread stoped [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:53]accept exits with 9 [14:32:53]New connection [14:32:53]New thread 3067170148 created [14:32:53]Thread 3067026788 joined [14:32:53]Waiting for new connection... [14:32:53] Sock 9.Parse request [14:32:53]Sock 9.Check first char [14:32:53]Sock 9.First char is OK [14:32:53]request: POST /json_proto HTTP/1.0 [14:32:53]Method: POST [14:32:53]URL: /json_proto [14:32:53]Method is POST - this is cgi request [14:32:53]url: /json_proto [14:32:53]query_string will be loaded in cgi processing [14:32:53]execute_cgi json_proto POST (null) [14:32:53]execute_cgi path=json_proto method=POST [14:32:53]POST find Content-Length [14:32:53]Host: 172.17.50.3:8080 [14:32:53]Content-Length: 755 [14:32:53]Content-Type: application/json [14:32:53] [14:32:53]POST finish read [14:32:53]Found Content-Length = 755 [14:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30081261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:53]execute_script... [14:32: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)2886045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30081261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:53]POST & json_proto [14:32:53]process_json_proto [14:32:53]json parsed OK: [14:32:53]protocol is kg_v1.0 [14:32:53]action value=close_receipt [14:32:53]process_action close_receipt [14:32:53]cmd_close_receipt [14:32:53]MH_GetDate [14:32:53]Write to MH i2c: F0 00 00 5A 73 BC [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: F0 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: F0 09 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: F0 09 00 5A 73 00 9B B7 17 67 6B 98 1E 66 1C [14:32:53]GetLastDocTimeStamp 1729607474 [14:32:53]current date 1729607579 [14:32:53]FM_GetShiftState [14:32:53]SAM_PROTO_GetShiftState [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 13 01 00 [14:32:53]Write to MH i2c: E2 08 00 5B 73 80 13 01 00 00 00 00 00 4B [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0E 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0E 00 5B 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 39 [14:32:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_GetShiftState done [14:32:53]FM_GetShiftState done [14:32:53]opened in 1729555832 [14:32:53]opened+sec_in_day 1729642232 [14:32:53]quantity*price = 0 [14:32:53]sum+1 = 1 [14:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 225 22.10.2024 14:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30081261 ФМ: 0000000000963346 ФД: 70277 ФПД: 83380087063052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143259&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70277&fm=83380087063052&tin=02508201610067®Number=0000000000156251&sum=0 [14:32:54]StoreToDocumentArchive [14:32:54]shift 195 fd 70277 [14:32:54]save to /storage/0195/doc_00070277 [14:32:54]save last doc name /storage/0195/doc_00070277 to /storage/kkm_last_doc_name [14:32:54]save OK [14:32:54]Clear old archive folders... [14:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:54]tlvbuf is 01399260 [14:32:54]SAM_PROTO_ClearQueue [14:32:54]wFMCommunicate request_size=4 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 09 00 00 [14:32:54]Write to MH i2c: E2 08 00 68 73 80 09 00 00 00 00 00 00 4D [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 68 73 00 90 00 4F [14:32:55]RAPDU: 90 00 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_ClearQueue done [14:32:55]KKMCreateOFDPacket [14:32:55]OFDProtocolAddRootSTLVToBuf [14:32:55]FM_MakeSignedData [14:32:55]FM_MakeSignedData [14:32:55]SAM_PROTO_SignData [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 0D 01 02 [14:32:55]Write to MH i2c: E2 08 00 69 73 80 0D 01 02 00 00 00 00 55 [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 69 73 00 90 00 50 [14:32:55]RAPDU: 90 00 [14:32:55]wFMCommunicate OK [14:32:55]wFMCommunicate request_size=255 [14:32:55]MH_SAM_APDU [14:32: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 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 E1 00 00 00 F4 03 04 00 9B B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 12 01 00 35 04 06 00 4B [14:32:55]Write to MH i2c: E2 02 01 6A 73 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 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 E1 00 00 00 F4 03 04 00 9B B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 12 01 00 35 04 06 00 4B 00 00 59 [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 6A 73 00 90 00 51 [14:32:55]RAPDU: 90 00 [14:32:55]wFMCommunicate OK [14:32:55]wFMCommunicate request_size=10 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 0D 02 02 05 D5 70 78 82 0C [14:32:55]Write to MH i2c: E2 0D 00 6B 73 80 0D 02 02 05 00 D5 70 78 82 0C 00 00 AD [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 03 00 6B 73 00 90 00 52 [14:32:55]RAPDU: 90 00 [14:32:55]wFMCommunicate OK [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 0D 03 02 [14:32:55]Write to MH i2c: E2 08 00 6C 73 80 0D 03 02 00 00 00 00 5A [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0B 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0B 00 6C 73 00 02 3B F1 7C A3 6E 5D D5 90 00 48 [14:32:55]RAPDU: 02 3B F1 7C A3 6E 5D D5 90 00 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_SignData done [14:32:55]FM_MakeSignedData done [14:32:55]CreateOFDProtocolMessage [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 11 00 00 [14:32:55]Write to MH i2c: E2 08 00 6D 73 80 11 00 00 00 00 00 00 5A [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 17 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 17 00 6D 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [14:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:55]wFMCommunicate OK [14:32:55]CreateOFDProtocolMessage done [14:32:55]OFDSenderStorePacket 70277 [14:32:55]StoreOFDPacket docnum=70277 [14:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B5 B8 07 01 53 BD 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 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 E1 00 00 00 F4 03 04 00 9B B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 12 01 00 35 04 06 00 4B D5 70 78 82 0C 02 3B F1 7C A3 6E 5D D5 [14:32:55]CheckFolder [14:32:55]dirname=/storage/ofd_packets [14:32:55]CheckFolder done [14:32:55]ProducePacketName [14:32:55]name=ofd_packets/00070277 [14:32:55]NVStorageSaveData ofd_packets/00070277 [14:32:55]File name is /storage/ofd_packets/00070277 [14:32:55]Write 301 bytes [14:32:55]NVStorageSaveData done [14:32:55]OFDSenderStorePacket done [14:32:55]KKMCreateOFDPacket done [14:32:55]NVStorageSaveData kkm_last_timestamp [14:32:55]File name is /storage/kkm_last_timestamp [14:32:55]Write 4 bytes [14:32:55]NVStorageSaveData done [14:32:55]OFD Sender: Processing packet 70277 [packets to send 18, broken 17] [14:32:55]ProducePacketName [14:32:55]name=ofd_packets/00070277 [14:32:55]OFD Sender: To server: pG, [14:32:55]CommunicateWithHost lk.salyk.kg:30040 [14:32:55]ConnectInit lk.salyk.kg [14:32:55]ExternCall_PrintAddStr [14:32:55]wPrintStart [14:32:55]Write to MH i2c: 01 00 00 6E 73 E1 [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: 01 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: 01 07 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: 01 07 00 6E 73 00 00 00 00 00 FF 0F F6 [14:32:55]RasterBufferAndPrint [14:32:55]line Счет N : (1)2886045 [14:32:55]line ИНН: 02508201610067 [14:32:55]line Контрольно-Кассовый Чек [14:32:55]line ПРОДАЖА [14:32:55]line ТРК (МРК, ГНК) : 33 [14:32:55]line Товар: 2710124500 [14:32:55]line Аи-95-К-5 [14:32:55]line 30.000 * 0.00 [14:32:55]line = 0.00 [14:32:55]line НДС 12% НСП 1% [14:32:55]line > о реализуемом товаре [14:32:55]line ИТОГО: 0.00 [14:32:55]line НСП 1% : 0.00 [14:32:55]line НДС 12% : 0.00 [14:32:55]line Наличными: 0.00 [14:32:55]line Безнал.: 0.00 [14:32:55]line Место: АЗС № 85 "Партнер Нефть" [14:32:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:32:55]line СНО: Общий режим [14:32:55]line Чек 225 22.10.2024 14:32 [14:32:55]line Смена: 195 ФФД: 1.0 [14:32:55]line ЗНМ: 0300000167 [14:32:55]line РНМ: 0000000000156251 [14:32:55]line Версия ККМ: v1.0 [14:32:55]line Талоны: ТК ГПНА Online [14:32:55]line 30081261 [14:32:55]line ФМ: 0000000000963346 [14:32:55]line ФД: 70277 [14:32:55]line ФПД: 83380087063052 [14:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143259&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70277&fm=83380087063052&tin=02508201610067®Number=0000000000156251&sum=0 [14:32:55]Connected sock=11 [14:32: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 34 36 0F 01 00 00 B5 B8 07 01 53 BD 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 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 E1 00 00 00 F4 03 04 00 9B B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 12 01 00 35 04 06 00 4B D5 70 78 82 0C 02 3B F1 7C A3 6E 5D D5 [14:32:55]written 0, free lines is 4095 [14:32: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 34 36 4F 00 00 00 09 3E 47 00 A8 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 12 01 00 F4 03 04 00 3C 61 17 67 B6 04 01 00 00 C5 CF 68 87 0F D8 E7 FD [14:32:56]CommunicateWithHost err = 0 [14:32:56]CheckOFDResponse [14:32:56]1017 (14) - 77093643461234 [14:32:56]1041 (16) - 0000000000963346 [14:32:56]1040 (4) - 70277 [14:32:56]1012 (4) - 22.10.2024 08:24 [14:32:56]1206 (1) - 0 [14:32:56]OFD Sender: Remove packet 70277 [14:32:56]ProducePacketName [14:32:56]name=ofd_packets/00070277 [14:32:56]NVStorageDeleteData [14:32:56]Write to MH i2c: 01 00 00 98 73 0B [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: 01 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: 01 07 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: 01 07 00 98 73 00 00 00 00 00 FA 0C 18 [14:32:56]RasterBufferAndPrint [14:32:56]line [14:32:56]line [14:32:56]line [14:32:56]line [14:32:56]line [14:32:56]written 0, free lines is 3328 [14:32:56]MH_Cut [14:32:56]Write to MH i2c: D1 01 00 9F 73 01 E4 [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: D1 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: D1 01 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: D1 01 00 9F 73 00 E3 [14:32:56]Write to MH i2c: 01 00 00 A0 73 13 [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]OFD Sender: No OFD packet to send [14:32:56]*** Cut start [14:32:56]*** Partial cut [14:32:56]*** CUTSNS_PIN = 1 [14:32:57]*** CUTSNS_PIN = 0 [14:32:57]*** Brake cut motor [14:32:57]Read from MH i2c: 01 [14:32:57]MH_I2C_Read... [14:32:57]*** Stop cut motor [14:32:57]*** Cut end [14:32:57]Read from MH i2c: 01 07 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: 01 07 00 A0 73 00 00 00 00 00 FF 0F 28 [14:32:57]process_action close_receipt done [14:32:57]requested_data is exist [14:32:57]produce_requested_data [14:32:57]requested_item fm.sn is exist - process it [14:32:57]wFMCommunicate request_size=4 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 11 00 00 [14:32:57]Write to MH i2c: E2 08 00 A1 73 80 11 00 00 00 00 00 00 8E [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 17 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 17 00 A1 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [14:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:57]wFMCommunicate OK [14:32:57]requested_item fd.num is exist - process it [14:32:57]SAM_PROTO_GetFieldsCounters [14:32:57]wFMCommunicate request_size=4 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 13 00 00 [14:32:57]Write to MH i2c: E2 08 00 A2 73 80 13 00 00 00 00 00 00 91 [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 62 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 62 00 A2 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 12 01 00 0E 04 04 00 C3 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 AA [14:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 12 01 00 0E 04 04 00 C3 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 [14:32:57]wFMCommunicate OK [14:32:57]SAM_PROTO_GetFieldsCounters done [14:32:57]requested_item shift.num is exist - process it [14:32:57]requested_item shift.opened is exist - process it [14:32:57]req_shift_opened [14:32:57]FM_GetShiftState [14:32:57]SAM_PROTO_GetShiftState [14:32:57]wFMCommunicate request_size=4 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 13 01 00 [14:32:57]Write to MH i2c: E2 08 00 A3 73 80 13 01 00 00 00 00 00 93 [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 0E 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 0E 00 A3 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 81 [14:32:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:32:57]wFMCommunicate OK [14:32:57]SAM_PROTO_GetShiftState done [14:32:57]FM_GetShiftState done [14:32:57]req_shift_opened done [14:32:57]requested_item shift.open_date is exist - process it [14:32:57]req_shift_open_date [14:32:57]req_shift_open_date done [14:32:57]produce_requested_data done [14:32:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70277,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:32:57]process_action_free close_receipt [14:32:57]json_value_free [14:32:57]json_value_free done [14:32:57]process_json_proto returns [14:32:57]Send response to host [14:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70277,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:32:57]free response buf [14:32:57]execute_script done [14:32:57]execute_script returns [14:32:57]free content buf [14:32:57]Sock 9.Close socket [14:32:57]Sock 9.Thread stoped [14:32:58]accept exits with 7 [14:32:58]New connection [14:32:58]New thread 3067026788 created [14:32:58]Thread 3067170148 joined [14:32:58]Waiting for new connection... [14:32:58] Sock 7.Parse request [14:32:58]Sock 7.Check first char [14:32:58]Sock 7.First char is OK [14:32:58]request: POST /json_proto HTTP/1.0 [14:32:58]Method: POST [14:32:58]URL: /json_proto [14:32:58]Method is POST - this is cgi request [14:32:58]url: /json_proto [14:32:58]query_string will be loaded in cgi processing [14:32:58]execute_cgi json_proto POST (null) [14:32:58]execute_cgi path=json_proto method=POST [14:32:58]POST find Content-Length [14:32:58]Host: 172.17.50.3:8080 [14:32:58]Content-Length: 686 [14:32:58]Content-Type: application/json [14:32:58] [14:32:58]POST finish read [14:32:58]Found Content-Length = 686 [14:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 86.870, "sum" : 3379.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3379.00, "payments": [ { "type": 0, "sum" : 3379.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:58]execute_script... [14:32: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)2886042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 86.870, "sum" : 3379.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3379.00, "payments": [ { "type": 0, "sum" : 3379.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:58]POST & json_proto [14:32:58]process_json_proto [14:32:58]json parsed OK: [14:32:58]protocol is kg_v1.0 [14:32:58]action value=close_receipt [14:32:58]process_action close_receipt [14:32:58]cmd_close_receipt [14:32:58]MH_GetDate [14:32:58]Write to MH i2c: F0 00 00 A4 73 06 [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 09 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: F0 09 00 A4 73 00 A0 B7 17 67 6B 98 1E 66 6B [14:32:58]GetLastDocTimeStamp 1729607579 [14:32:58]current date 1729607584 [14:32:58]FM_GetShiftState [14:32:58]SAM_PROTO_GetShiftState [14:32:58]wFMCommunicate request_size=4 [14:32:58]MH_SAM_APDU [14:32:58]CAPDU: 80 13 01 00 [14:32:58]Write to MH i2c: E2 08 00 A5 73 80 13 01 00 00 00 00 00 95 [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:58]Read from MH i2c: E2 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: E2 0E 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: E2 0E 00 A5 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 83 [14:32:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:32:58]wFMCommunicate OK [14:32:58]SAM_PROTO_GetShiftState done [14:32:58]FM_GetShiftState done [14:32:58]opened in 1729555832 [14:32:58]opened+sec_in_day 1729642232 [14:32:58]quantity*price = 337924 [14:32:58]sum+1 = 337925 [14:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 3379.00 Внесено: 5000.00 СДАЧА: 1621.00 НСП 1% : 29.90 НДС 12% : 358.86 Наличными: 3379.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 226 22.10.2024 14:33 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70278 ФПД: 120212405101112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143304&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70278&fm=120212405101112&tin=02508201610067®Number=0000000000156251&sum=337900 [14:32:59]StoreToDocumentArchive [14:32:59]shift 195 fd 70278 [14:32:59]save to /storage/0195/doc_00070278 [14:32:59]save last doc name /storage/0195/doc_00070278 to /storage/kkm_last_doc_name [14:32:59]save OK [14:32:59]Clear old archive folders... [14:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:32:59]tlvbuf is B6F0FBC0 [14:32:59]SAM_PROTO_ClearQueue [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 09 00 00 [14:32:59]Write to MH i2c: E2 08 00 B2 73 80 09 00 00 00 00 00 00 97 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 B2 73 00 90 00 99 [14:32:59]RAPDU: 90 00 [14:32:59]wFMCommunicate OK [14:32:59]SAM_PROTO_ClearQueue done [14:32:59]KKMCreateOFDPacket [14:32:59]OFDProtocolAddRootSTLVToBuf [14:32:59]FM_MakeSignedData [14:32:59]FM_MakeSignedData [14:32:59]SAM_PROTO_SignData [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 0D 01 02 [14:32:59]Write to MH i2c: E2 08 00 B3 73 80 0D 01 02 00 00 00 00 9F [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 03 00 B3 73 00 90 00 9A [14:32:59]RAPDU: 90 00 [14:32:59]wFMCommunicate OK [14:32:59]wFMCommunicate request_size=255 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 56 53 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 28 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 27 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 8C 00 00 00 00 07 04 06 00 EC 27 05 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 A0 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 12 01 00 35 04 06 00 6D 55 [14:32:59]Write to MH i2c: E2 02 01 B4 73 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 56 53 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 28 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 27 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 8C 00 00 00 00 07 04 06 00 EC 27 05 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 A0 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 12 01 00 35 04 06 00 6D 55 00 00 E5 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 B4 73 00 90 00 9B [14:33:00]RAPDU: 90 00 [14:33:00]wFMCommunicate OK [14:33:00]wFMCommunicate request_size=9 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 0D 02 02 04 21 B4 22 38 [14:33:00]Write to MH i2c: E2 0C 00 B5 73 80 0D 02 02 04 00 21 B4 22 38 00 00 D9 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 03 00 B5 73 00 90 00 9C [14:33:00]RAPDU: 90 00 [14:33:00]wFMCommunicate OK [14:33:00]wFMCommunicate request_size=4 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 0D 03 02 [14:33:00]Write to MH i2c: E2 08 00 B6 73 80 0D 03 02 00 00 00 00 A4 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0B 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0B 00 B6 73 00 F3 54 D6 5F C1 B5 47 D7 90 00 B5 [14:33:00]RAPDU: F3 54 D6 5F C1 B5 47 D7 90 00 [14:33:00]wFMCommunicate OK [14:33:00]SAM_PROTO_SignData done [14:33:00]FM_MakeSignedData done [14:33:00]CreateOFDProtocolMessage [14:33:00]wFMCommunicate request_size=4 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 11 00 00 [14:33:00]Write to MH i2c: E2 08 00 B7 73 80 11 00 00 00 00 00 00 A4 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 17 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 17 00 B7 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [14:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:33:00]wFMCommunicate OK [14:33:00]CreateOFDProtocolMessage done [14:33:00]OFDSenderStorePacket 70278 [14:33:00]StoreOFDPacket docnum=70278 [14:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7F EF 06 01 28 AC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 56 53 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 28 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 27 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 8C 00 00 00 00 07 04 06 00 EC 27 05 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 A0 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 12 01 00 35 04 06 00 6D 55 21 B4 22 38 F3 54 D6 5F C1 B5 47 D7 [14:33:00]CheckFolder [14:33:00]dirname=/storage/ofd_packets [14:33:00]CheckFolder done [14:33:00]ProducePacketName [14:33:00]name=ofd_packets/00070278 [14:33:00]NVStorageSaveData ofd_packets/00070278 [14:33:00]File name is /storage/ofd_packets/00070278 [14:33:00]Write 300 bytes [14:33:00]NVStorageSaveData done [14:33:00]OFDSenderStorePacket done [14:33:00]KKMCreateOFDPacket done [14:33:00]NVStorageSaveData kkm_last_timestamp [14:33:00]File name is /storage/kkm_last_timestamp [14:33:00]Write 4 bytes [14:33:00]NVStorageSaveData done [14:33:00]ExternCall_PrintAddStr [14:33:00]wPrintStart [14:33:00]Write to MH i2c: 01 00 00 B8 73 2B [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 07 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: 01 07 00 B8 73 00 00 00 00 00 FF 0F 40 [14:33:00]RasterBufferAndPrint [14:33:00]line Счет N : (1)2886042 [14:33:00]line ИНН: 02508201610067 [14:33:00]line Контрольно-Кассовый Чек [14:33:00]line ПРОДАЖА [14:33:00]line ТРК (МРК, ГНК) : 71 [14:33:00]line Товар: 2711129700 [14:33:00]line ГАЗ-К-3 [14:33:00]line 86.870 * 38.90 [14:33:00]line = 3379.24 [14:33:00]line НДС 12% НСП 1% [14:33:00]line > о реализуемом товаре [14:33:00]line ОКРУГЛЕНИЕ: -0.24 [14:33:00]line ИТОГО: 3379.00 [14:33:00]line Внесено: 5000.00 [14:33:00]line СДАЧА: 1621.00 [14:33:00]line НСП 1% : 29.90 [14:33:00]line НДС 12% : 358.86 [14:33:00]line Наличными: 3379.00 [14:33:00]line Безнал.: 0.00 [14:33:00]line Место: АЗС № 85 "Партнер Нефть" [14:33:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:33:00]line СНО: Общий режим [14:33:00]line Чек 226 22.10.2024 14:33 [14:33:00]line Смена: 195 ФФД: 1.0 [14:33:00]line ЗНМ: 0300000167 [14:33:00]line РНМ: 0000000000156251 [14:33:00]line Версия ККМ: v1.0 [14:33:00]line ФМ: 0000000000963346 [14:33:00]line ФД: 70278 [14:33:00]line ФПД: 120212405101112 [14:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143304&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70278&fm=120212405101112&tin=02508201610067®Number=0000000000156251&sum=337900 [14:33:00]OFD Sender: Processing packet 70278 [packets to send 18, broken 17] [14:33:00]ProducePacketName [14:33:00]name=ofd_packets/00070278 [14:33:00]OFD Sender: To server: pG, [14:33:00]CommunicateWithHost lk.salyk.kg:30040 [14:33:00]ConnectInit lk.salyk.kg [14:33:00]written 0, free lines is 4095 [14:33:00]Connected sock=9 [14:33: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 34 36 0E 01 00 00 7F EF 06 01 28 AC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 56 53 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 28 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 27 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 8C 00 00 00 00 07 04 06 00 EC 27 05 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 A0 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 12 01 00 35 04 06 00 6D 55 21 B4 22 38 F3 54 D6 5F C1 B5 47 D7 [14:33: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 34 36 4F 00 00 00 A2 65 47 00 A5 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 34 36 10 04 04 00 86 12 01 00 F4 03 04 00 41 61 17 67 B6 04 01 00 00 AF 2D FD EE F7 1C BE 67 [14:33:01]CommunicateWithHost err = 0 [14:33:01]CheckOFDResponse [14:33:01]1017 (14) - 77093643461234 [14:33:01]1041 (16) - 0000000000963346 [14:33:01]1040 (4) - 70278 [14:33:01]1012 (4) - 22.10.2024 08:24 [14:33:01]1206 (1) - 0 [14:33:01]OFD Sender: Remove packet 70278 [14:33:01]ProducePacketName [14:33:01]name=ofd_packets/00070278 [14:33:01]NVStorageDeleteData [14:33:01]Write to MH i2c: 01 00 00 E3 73 56 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 07 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: 01 07 00 E3 73 00 00 00 00 00 FC 0C 65 [14:33:01]RasterBufferAndPrint [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]line [14:33:01]written 0, free lines is 3339 [14:33:01]MH_Cut [14:33:01]Write to MH i2c: D1 01 00 EA 73 01 2F [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 01 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: D1 01 00 EA 73 00 2E [14:33:01]Write to MH i2c: 01 00 00 EB 73 5E [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]OFD Sender: No OFD packet to send [14:33:01]*** Cut start [14:33:01]*** Partial cut [14:33:01]*** CUTSNS_PIN = 1 [14:33:01]*** CUTSNS_PIN = 0 [14:33:02]*** Brake cut motor [14:33:02]Read from MH i2c: 01 [14:33:02]MH_I2C_Read... [14:33:02]*** Stop cut motor [14:33:02]*** Cut end [14:33:02]Read from MH i2c: 01 07 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 EB 73 00 00 00 00 00 FF 0F 73 [14:33:02]process_action close_receipt done [14:33:02]requested_data is exist [14:33:02]produce_requested_data [14:33:02]requested_item fm.sn is exist - process it [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 11 00 00 [14:33:02]Write to MH i2c: E2 08 00 EC 73 80 11 00 00 00 00 00 00 D9 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 EC 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [14:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:33:02]wFMCommunicate OK [14:33:02]requested_item fd.num is exist - process it [14:33:02]SAM_PROTO_GetFieldsCounters [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 13 00 00 [14:33:02]Write to MH i2c: E2 08 00 ED 73 80 13 00 00 00 00 00 00 DC [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 62 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 62 00 ED 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 12 01 00 0E 04 04 00 C3 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 F9 [14:33: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 12 01 00 0E 04 04 00 C3 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 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_GetFieldsCounters done [14:33:02]requested_item shift.num is exist - process it [14:33:02]requested_item shift.opened is exist - process it [14:33:02]req_shift_opened [14:33:02]FM_GetShiftState [14:33:02]SAM_PROTO_GetShiftState [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 13 01 00 [14:33:02]Write to MH i2c: E2 08 00 EE 73 80 13 01 00 00 00 00 00 DE [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:02]Read from MH i2c: E2 0E 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0E 00 EE 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CC [14:33:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_GetShiftState done [14:33:02]FM_GetShiftState done [14:33:02]req_shift_opened done [14:33:02]requested_item shift.open_date is exist - process it [14:33:02]req_shift_open_date [14:33:02]req_shift_open_date done [14:33:02]produce_requested_data done [14:33:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70278,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:33:02]process_action_free close_receipt [14:33:02]json_value_free [14:33:02]json_value_free done [14:33:02]process_json_proto returns [14:33:02]Send response to host [14:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70278,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:33:02]free response buf [14:33:02]execute_script done [14:33:02]execute_script returns [14:33:02]free content buf [14:33:02]Sock 7.Close socket [14:33:02]Sock 7.Thread stoped [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:54]accept exits with 10 [14:33:54]New connection [14:33:54]New thread 3067170148 created [14:33:54]Thread 3067026788 joined [14:33:54]Waiting for new connection... [14:33:54] Sock 10.Parse request [14:33:54]Sock 10.Check first char [14:33:54]Sock 10.First char is OK [14:33:54]request: POST /json_proto HTTP/1.0 [14:33:54]Method: POST [14:33:54]URL: /json_proto [14:33:54]Method is POST - this is cgi request [14:33:54]url: /json_proto [14:33:54]query_string will be loaded in cgi processing [14:33:54]execute_cgi json_proto POST (null) [14:33:54]execute_cgi path=json_proto method=POST [14:33:54]POST find Content-Length [14:33:54]Host: 172.17.50.3:8080 [14:33:54]Content-Length: 678 [14:33:54]Content-Type: application/json [14:33:54] [14:33:54]POST finish read [14:33:54]Found Content-Length = 678 [14:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:54]execute_script... [14:33: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)2886046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:54]POST & json_proto [14:33:54]process_json_proto [14:33:54]json parsed OK: [14:33:54]protocol is kg_v1.0 [14:33:54]action value=close_receipt [14:33:54]process_action close_receipt [14:33:54]cmd_close_receipt [14:33:54]MH_GetDate [14:33:54]Write to MH i2c: F0 00 00 EF 73 51 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 EF 73 00 D8 B7 17 67 6B 98 1E 66 EE [14:33:54]GetLastDocTimeStamp 1729607584 [14:33:54]current date 1729607640 [14:33:54]FM_GetShiftState [14:33:54]SAM_PROTO_GetShiftState [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 13 01 00 [14:33:54]Write to MH i2c: E2 08 00 F0 73 80 13 01 00 00 00 00 00 E0 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0E 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0E 00 F0 73 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CE [14:33:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:33:54]wFMCommunicate OK [14:33:54]SAM_PROTO_GetShiftState done [14:33:54]FM_GetShiftState done [14:33:54]opened in 1729555832 [14:33:54]opened+sec_in_day 1729642232 [14:33:54]quantity*price = 50041 [14:33:54]sum+1 = 50042 [14:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 227 22.10.2024 14:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70279 ФПД: 32370527416749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70279&fm=32370527416749&tin=02508201610067®Number=0000000000156251&sum=50000 [14:33:55]StoreToDocumentArchive [14:33:55]shift 195 fd 70279 [14:33:55]save to /storage/0195/doc_00070279 [14:33:55]save last doc name /storage/0195/doc_00070279 to /storage/kkm_last_doc_name [14:33:55]save OK [14:33:55]Clear old archive folders... [14:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:55]tlvbuf is 013998C0 [14:33:55]SAM_PROTO_ClearQueue [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 09 00 00 [14:33:55]Write to MH i2c: E2 08 00 FD 73 80 09 00 00 00 00 00 00 E2 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 FD 73 00 90 00 E4 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_ClearQueue done [14:33:55]KKMCreateOFDPacket [14:33:55]OFDProtocolAddRootSTLVToBuf [14:33:55]FM_MakeSignedData [14:33:55]FM_MakeSignedData [14:33:55]SAM_PROTO_SignData [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 01 02 [14:33:55]Write to MH i2c: E2 08 00 FE 73 80 0D 01 02 00 00 00 00 EA [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 FE 73 00 90 00 E5 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=255 [14:33:55]MH_SAM_APDU [14:33: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 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 E3 00 00 00 F4 03 04 00 D8 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 12 01 00 35 04 06 00 1D [14:33:55]Write to MH i2c: E2 02 01 FF 73 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 E3 00 00 00 F4 03 04 00 D8 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 12 01 00 35 04 06 00 1D 00 00 DD [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 FF 73 00 90 00 E6 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=10 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 02 02 05 70 D9 C9 B1 AD [14:33:55]Write to MH i2c: E2 0D 00 00 74 80 0D 02 02 05 00 70 D9 C9 B1 AD 00 00 68 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 00 74 00 90 00 E8 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 03 02 [14:33:55]Write to MH i2c: E2 08 00 01 74 80 0D 03 02 00 00 00 00 F0 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0B 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0B 00 01 74 00 1D E6 CD DE 46 DC 63 50 90 00 74 [14:33:55]RAPDU: 1D E6 CD DE 46 DC 63 50 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_SignData done [14:33:55]FM_MakeSignedData done [14:33:55]CreateOFDProtocolMessage [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 11 00 00 [14:33:55]Write to MH i2c: E2 08 00 02 74 80 11 00 00 00 00 00 00 F0 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 02 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:33:55]wFMCommunicate OK [14:33:55]CreateOFDProtocolMessage done [14:33:55]OFDSenderStorePacket 70279 [14:33:55]StoreOFDPacket docnum=70279 [14:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 75 35 07 01 04 D2 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 E3 00 00 00 F4 03 04 00 D8 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 12 01 00 35 04 06 00 1D 70 D9 C9 B1 AD 1D E6 CD DE 46 DC 63 50 [14:33:55]CheckFolder [14:33:55]dirname=/storage/ofd_packets [14:33:55]CheckFolder done [14:33:55]ProducePacketName [14:33:55]name=ofd_packets/00070279 [14:33:55]NVStorageSaveData ofd_packets/00070279 [14:33:55]File name is /storage/ofd_packets/00070279 [14:33:55]Write 301 bytes [14:33:55]NVStorageSaveData done [14:33:55]OFDSenderStorePacket done [14:33:55]KKMCreateOFDPacket done [14:33:55]NVStorageSaveData kkm_last_timestamp [14:33:55]File name is /storage/kkm_last_timestamp [14:33:55]Write 4 bytes [14:33:55]NVStorageSaveData done [14:33:55]ExternCall_PrintAddStr [14:33:55]wPrintStart [14:33:55]Write to MH i2c: 01 00 00 03 74 77 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 03 74 00 00 00 00 00 FF 0F 8C [14:33:55]RasterBufferAndPrint [14:33:55]line Счет N : (1)2886046 [14:33:55]line ИНН: 02508201610067 [14:33:55]line Контрольно-Кассовый Чек [14:33:55]line ПРОДАЖА [14:33:55]line ТРК (МРК, ГНК) : 12 [14:33:55]line Товар: 2710124130 [14:33:55]line Аи-92-К-5 [14:33:55]line 7.480 * 66.90 [14:33:55]line = 500.41 [14:33:55]line НДС 12% НСП 1% [14:33:55]line > о реализуемом товаре [14:33:55]line ОКРУГЛЕНИЕ: -0.41 [14:33:55]line ИТОГО: 500.00 [14:33:55]line Внесено: 500.00 [14:33:55]line СДАЧА: 0.00 [14:33:55]line НСП 1% : 4.43 [14:33:55]line НДС 12% : 53.14 [14:33:55]line Наличными: 500.00 [14:33:55]line Безнал.: 0.00 [14:33:55]line Место: АЗС № 85 "Партнер Нефть" [14:33:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:33:55]line СНО: Общий режим [14:33:55]line Чек 227 22.10.2024 14:34 [14:33:55]line Смена: 195 ФФД: 1.0 [14:33:55]line ЗНМ: 0300000167 [14:33:55]line РНМ: 0000000000156251 [14:33:55]line Версия ККМ: v1.0 [14:33:55]line ФМ: 0000000000963346 [14:33:55]line ФД: 70279 [14:33:55]line ФПД: 32370527416749 [14:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70279&fm=32370527416749&tin=02508201610067®Number=0000000000156251&sum=50000 [14:33:56]OFD Sender: Processing packet 70279 [packets to send 18, broken 17] [14:33:56]ProducePacketName [14:33:56]name=ofd_packets/00070279 [14:33:56]OFD Sender: To server: pG, [14:33:56]CommunicateWithHost lk.salyk.kg:30040 [14:33:56]ConnectInit lk.salyk.kg [14:33:56]written 0, free lines is 4095 [14:33:56]Connected sock=11 [14:33: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 34 36 0F 01 00 00 75 35 07 01 04 D2 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 E3 00 00 00 F4 03 04 00 D8 B7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 12 01 00 35 04 06 00 1D 70 D9 C9 B1 AD 1D E6 CD DE 46 DC 63 50 [14:33: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 34 36 4F 00 00 00 C1 DD 47 00 C1 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 12 01 00 F4 03 04 00 78 61 17 67 B6 04 01 00 00 D5 3D 32 FA 83 69 49 E0 [14:33:56]CommunicateWithHost err = 0 [14:33:56]CheckOFDResponse [14:33:56]1017 (14) - 77093643461234 [14:33:56]1041 (16) - 0000000000963346 [14:33:56]1040 (4) - 70279 [14:33:56]1012 (4) - 22.10.2024 08:25 [14:33:56]1206 (1) - 0 [14:33:56]OFD Sender: Remove packet 70279 [14:33:56]ProducePacketName [14:33:56]name=ofd_packets/00070279 [14:33:56]NVStorageDeleteData [14:33:56]Write to MH i2c: 01 00 00 2E 74 A2 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 2E 74 00 00 00 00 00 F3 0C A8 [14:33:56]RasterBufferAndPrint [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]written 0, free lines is 3321 [14:33:56]MH_Cut [14:33:56]Write to MH i2c: D1 01 00 35 74 01 7B [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 01 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 01 00 35 74 00 7A [14:33:56]Write to MH i2c: 01 00 00 36 74 AA [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:57]OFD Sender: No OFD packet to send [14:33:57]*** Cut start [14:33:57]*** Partial cut [14:33:57]*** CUTSNS_PIN = 1 [14:33:57]*** CUTSNS_PIN = 0 [14:33:57]*** Brake cut motor [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]*** Stop cut motor [14:33:58]*** Cut end [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 36 74 00 00 00 00 00 FF 0F BF [14:33:58]process_action close_receipt done [14:33:58]requested_data is exist [14:33:58]produce_requested_data [14:33:58]requested_item fm.sn is exist - process it [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 11 00 00 [14:33:58]Write to MH i2c: E2 08 00 37 74 80 11 00 00 00 00 00 00 25 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 37 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [14:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:33:58]wFMCommunicate OK [14:33:58]requested_item fd.num is exist - process it [14:33:58]SAM_PROTO_GetFieldsCounters [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 13 00 00 [14:33:58]Write to MH i2c: E2 08 00 38 74 80 13 00 00 00 00 00 00 28 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 62 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 62 00 38 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 12 01 00 0E 04 04 00 C3 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 49 [14:33: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 12 01 00 0E 04 04 00 C3 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 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_GetFieldsCounters done [14:33:58]requested_item shift.num is exist - process it [14:33:58]requested_item shift.opened is exist - process it [14:33:58]req_shift_opened [14:33:58]FM_GetShiftState [14:33:58]SAM_PROTO_GetShiftState [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 13 01 00 [14:33:58]Write to MH i2c: E2 08 00 39 74 80 13 01 00 00 00 00 00 2A [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0E 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0E 00 39 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 18 [14:33:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_GetShiftState done [14:33:58]FM_GetShiftState done [14:33:58]req_shift_opened done [14:33:58]requested_item shift.open_date is exist - process it [14:33:58]req_shift_open_date [14:33:58]req_shift_open_date done [14:33:58]produce_requested_data done [14:33:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70279,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:33:58]process_action_free close_receipt [14:33:58]json_value_free [14:33:58]json_value_free done [14:33:58]process_json_proto returns [14:33:58]Send response to host [14:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70279,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:33:58]free response buf [14:33:58]execute_script done [14:33:58]execute_script returns [14:33:58]free content buf [14:33:58]Sock 10.Close socket [14:33:58]Sock 10.Thread stoped [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:51]accept exits with 7 [14:34:51]New connection [14:34:51]New thread 3067026788 created [14:34:51]Thread 3067170148 joined [14:34:51]Waiting for new connection... [14:34:51] Sock 7.Parse request [14:34:51]Sock 7.Check first char [14:34:51]Sock 7.First char is OK [14:34:51]request: POST /json_proto HTTP/1.0 [14:34:51]Method: POST [14:34:51]URL: /json_proto [14:34:51]Method is POST - this is cgi request [14:34:51]url: /json_proto [14:34:51]query_string will be loaded in cgi processing [14:34:51]execute_cgi json_proto POST (null) [14:34:51]execute_cgi path=json_proto method=POST [14:34:51]POST find Content-Length [14:34:51]Host: 172.17.50.3:8080 [14:34:51]Content-Length: 682 [14:34:51]Content-Type: application/json [14:34:51] [14:34:51]POST finish read [14:34:51]Found Content-Length = 682 [14:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:34:51]execute_script... [14:34: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)2886047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:34:51]POST & json_proto [14:34:51]process_json_proto [14:34:51]json parsed OK: [14:34:51]protocol is kg_v1.0 [14:34:51]action value=close_receipt [14:34:51]process_action close_receipt [14:34:51]cmd_close_receipt [14:34:51]MH_GetDate [14:34:51]Write to MH i2c: F0 00 00 3A 74 9D [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: F0 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: F0 09 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: F0 09 00 3A 74 00 11 B8 17 67 6B 98 1E 66 74 [14:34:51]GetLastDocTimeStamp 1729607640 [14:34:51]current date 1729607697 [14:34:51]FM_GetShiftState [14:34:51]SAM_PROTO_GetShiftState [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 13 01 00 [14:34:51]Write to MH i2c: E2 08 00 3B 74 80 13 01 00 00 00 00 00 2C [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0E 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0E 00 3B 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1A [14:34:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:34:51]wFMCommunicate OK [14:34:51]SAM_PROTO_GetShiftState done [14:34:51]FM_GetShiftState done [14:34:51]opened in 1729555832 [14:34:51]opened+sec_in_day 1729642232 [14:34:51]quantity*price = 50025 [14:34:51]sum+1 = 50026 [14:34:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 228 22.10.2024 14:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70280 ФПД: 95571029263051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70280&fm=95571029263051&tin=02508201610067®Number=0000000000156251&sum=50000 [14:34:52]StoreToDocumentArchive [14:34:52]shift 195 fd 70280 [14:34:52]save to /storage/0195/doc_00070280 [14:34:52]save last doc name /storage/0195/doc_00070280 to /storage/kkm_last_doc_name [14:34:52]save OK [14:34:52]Clear old archive folders... [14:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:34:52]tlvbuf is 0120E0F0 [14:34:52]SAM_PROTO_ClearQueue [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 09 00 00 [14:34:52]Write to MH i2c: E2 08 00 48 74 80 09 00 00 00 00 00 00 2E [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 48 74 00 90 00 30 [14:34:53]RAPDU: 90 00 [14:34:53]wFMCommunicate OK [14:34:53]SAM_PROTO_ClearQueue done [14:34:53]KKMCreateOFDPacket [14:34:53]OFDProtocolAddRootSTLVToBuf [14:34:53]FM_MakeSignedData [14:34:53]FM_MakeSignedData [14:34:53]SAM_PROTO_SignData [14:34:53]wFMCommunicate request_size=4 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 0D 01 02 [14:34:53]Write to MH i2c: E2 08 00 49 74 80 0D 01 02 00 00 00 00 36 [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 49 74 00 90 00 31 [14:34:53]RAPDU: 90 00 [14:34:53]wFMCommunicate OK [14:34:53]wFMCommunicate request_size=255 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E4 00 00 00 F4 03 04 00 11 B8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 12 01 00 35 04 06 00 56 EB [14:34:53]Write to MH i2c: E2 02 01 4A 74 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E4 00 00 00 F4 03 04 00 11 B8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 12 01 00 35 04 06 00 56 EB 00 00 43 [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 4A 74 00 90 00 32 [14:34:53]RAPDU: 90 00 [14:34:53]wFMCommunicate OK [14:34:53]wFMCommunicate request_size=9 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 0D 02 02 04 DD 40 02 CB [14:34:53]Write to MH i2c: E2 0C 00 4B 74 80 0D 02 02 04 00 DD 40 02 CB 00 00 2B [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 03 00 4B 74 00 90 00 33 [14:34:53]RAPDU: 90 00 [14:34:53]wFMCommunicate OK [14:34:53]wFMCommunicate request_size=4 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 0D 03 02 [14:34:53]Write to MH i2c: E2 08 00 4C 74 80 0D 03 02 00 00 00 00 3B [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 0B 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 0B 00 4C 74 00 1A 6B FA A7 7A E8 93 09 90 00 60 [14:34:53]RAPDU: 1A 6B FA A7 7A E8 93 09 90 00 [14:34:53]wFMCommunicate OK [14:34:53]SAM_PROTO_SignData done [14:34:53]FM_MakeSignedData done [14:34:53]CreateOFDProtocolMessage [14:34:53]wFMCommunicate request_size=4 [14:34:53]MH_SAM_APDU [14:34:53]CAPDU: 80 11 00 00 [14:34:53]Write to MH i2c: E2 08 00 4D 74 80 11 00 00 00 00 00 00 3B [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:53]Read from MH i2c: E2 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 17 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: E2 17 00 4D 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [14:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:34:53]wFMCommunicate OK [14:34:53]CreateOFDProtocolMessage done [14:34:53]OFDSenderStorePacket 70280 [14:34:53]StoreOFDPacket docnum=70280 [14:34:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 78 E2 06 01 6C C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E4 00 00 00 F4 03 04 00 11 B8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 12 01 00 35 04 06 00 56 EB DD 40 02 CB 1A 6B FA A7 7A E8 93 09 [14:34:53]CheckFolder [14:34:53]dirname=/storage/ofd_packets [14:34:53]CheckFolder done [14:34:53]ProducePacketName [14:34:53]name=ofd_packets/00070280 [14:34:53]NVStorageSaveData ofd_packets/00070280 [14:34:53]File name is /storage/ofd_packets/00070280 [14:34:53]Write 300 bytes [14:34:53]NVStorageSaveData done [14:34:53]OFDSenderStorePacket done [14:34:53]KKMCreateOFDPacket done [14:34:53]NVStorageSaveData kkm_last_timestamp [14:34:53]File name is /storage/kkm_last_timestamp [14:34:53]Write 4 bytes [14:34:53]NVStorageSaveData done [14:34:53]ExternCall_PrintAddStr [14:34:53]wPrintStart [14:34:53]Write to MH i2c: 01 00 00 4E 74 C2 [14:34:53]Write i2c OK [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: 01 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: 01 07 00 [14:34:53]MH_I2C_Read... [14:34:53]Read from MH i2c: 01 07 00 4E 74 00 00 00 00 00 FF 0F D7 [14:34:53]RasterBufferAndPrint [14:34:53]line Счет N : (1)2886047 [14:34:53]line ИНН: 02508201610067 [14:34:53]line Контрольно-Кассовый Чек [14:34:53]line ПРОДАЖА [14:34:53]line ТРК (МРК, ГНК) : 71 [14:34:53]line Товар: 2711129700 [14:34:53]line ГАЗ-К-3 [14:34:53]line 12.860 * 38.90 [14:34:53]line = 500.25 [14:34:53]line НДС 12% НСП 1% [14:34:53]line > о реализуемом товаре [14:34:53]line ОКРУГЛЕНИЕ: -0.25 [14:34:53]line ИТОГО: 500.00 [14:34:53]line Внесено: 500.00 [14:34:53]line СДАЧА: 0.00 [14:34:53]line НСП 1% : 4.43 [14:34:53]line НДС 12% : 53.12 [14:34:53]line Наличными: 500.00 [14:34:53]line Безнал.: 0.00 [14:34:53]line Место: АЗС № 85 "Партнер Нефть" [14:34:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:34:53]line СНО: Общий режим [14:34:53]line Чек 228 22.10.2024 14:34 [14:34:53]line Смена: 195 ФФД: 1.0 [14:34:53]line ЗНМ: 0300000167 [14:34:53]line РНМ: 0000000000156251 [14:34:53]line Версия ККМ: v1.0 [14:34:53]line ФМ: 0000000000963346 [14:34:53]line ФД: 70280 [14:34:53]line ФПД: 95571029263051 [14:34:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70280&fm=95571029263051&tin=02508201610067®Number=0000000000156251&sum=50000 [14:34:53]written 0, free lines is 4095 [14:34:53]OFD Sender: Processing packet 70280 [packets to send 18, broken 17] [14:34:53]ProducePacketName [14:34:53]name=ofd_packets/00070280 [14:34:53]OFD Sender: To server: pG, [14:34:53]CommunicateWithHost lk.salyk.kg:30040 [14:34:53]ConnectInit lk.salyk.kg [14:34:53]Connected sock=10 [14:34: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 34 36 0E 01 00 00 78 E2 06 01 6C C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E4 00 00 00 F4 03 04 00 11 B8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 12 01 00 35 04 06 00 56 EB DD 40 02 CB 1A 6B FA A7 7A E8 93 09 [14:34: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 34 36 4F 00 00 00 E4 BC 47 00 49 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 12 01 00 F4 03 04 00 B2 61 17 67 B6 04 01 00 00 86 9F 23 77 62 94 40 E9 [14:34:54]CommunicateWithHost err = 0 [14:34:54]CheckOFDResponse [14:34:54]1017 (14) - 77093643461234 [14:34:54]1041 (16) - 0000000000963346 [14:34:54]1040 (4) - 70280 [14:34:54]1012 (4) - 22.10.2024 08:26 [14:34:54]1206 (1) - 0 [14:34:54]OFD Sender: Remove packet 70280 [14:34:54]ProducePacketName [14:34:54]name=ofd_packets/00070280 [14:34:54]NVStorageDeleteData [14:34:54]Write to MH i2c: 01 00 00 79 74 ED [14:34:54]Write i2c OK [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: 01 [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: 01 07 00 [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: 01 07 00 79 74 00 00 00 00 00 ED 0C ED [14:34:54]RasterBufferAndPrint [14:34:54]line [14:34:54]line [14:34:54]line [14:34:54]line [14:34:54]line [14:34:54]written 0, free lines is 3315 [14:34:54]MH_Cut [14:34:54]Write to MH i2c: D1 01 00 80 74 01 C6 [14:34:54]Write i2c OK [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: D1 [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: D1 01 00 [14:34:54]MH_I2C_Read... [14:34:54]Read from MH i2c: D1 01 00 80 74 00 C5 [14:34:54]Write to MH i2c: 01 00 00 81 74 F5 [14:34:54]Write i2c OK [14:34:54]MH_I2C_Read... [14:34:54]OFD Sender: No OFD packet to send [14:34:54]*** Cut start [14:34:54]*** Partial cut [14:34:54]*** CUTSNS_PIN = 1 [14:34:55]*** CUTSNS_PIN = 0 [14:34:55]*** Brake cut motor [14:34:55]Read from MH i2c: 01 [14:34:55]MH_I2C_Read... [14:34:55]*** Stop cut motor [14:34:55]*** Cut end [14:34:55]Read from MH i2c: 01 07 00 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: 01 07 00 81 74 00 00 00 00 00 FF 0F 0A [14:34:55]process_action close_receipt done [14:34:55]requested_data is exist [14:34:55]produce_requested_data [14:34:55]requested_item fm.sn is exist - process it [14:34:55]wFMCommunicate request_size=4 [14:34:55]MH_SAM_APDU [14:34:55]CAPDU: 80 11 00 00 [14:34:55]Write to MH i2c: E2 08 00 82 74 80 11 00 00 00 00 00 00 70 [14:34:55]Write i2c OK [14:34:55]MH_I2C_Read... [14:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:55]Read from MH i2c: E2 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 17 00 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 17 00 82 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [14:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:34:55]wFMCommunicate OK [14:34:55]requested_item fd.num is exist - process it [14:34:55]SAM_PROTO_GetFieldsCounters [14:34:55]wFMCommunicate request_size=4 [14:34:55]MH_SAM_APDU [14:34:55]CAPDU: 80 13 00 00 [14:34:55]Write to MH i2c: E2 08 00 83 74 80 13 00 00 00 00 00 00 73 [14:34:55]Write i2c OK [14:34:55]MH_I2C_Read... [14:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:55]Read from MH i2c: E2 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 62 00 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 62 00 83 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 12 01 00 0E 04 04 00 C3 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 98 [14:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 12 01 00 0E 04 04 00 C3 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 [14:34:55]wFMCommunicate OK [14:34:55]SAM_PROTO_GetFieldsCounters done [14:34:55]requested_item shift.num is exist - process it [14:34:55]requested_item shift.opened is exist - process it [14:34:55]req_shift_opened [14:34:55]FM_GetShiftState [14:34:55]SAM_PROTO_GetShiftState [14:34:55]wFMCommunicate request_size=4 [14:34:55]MH_SAM_APDU [14:34:55]CAPDU: 80 13 01 00 [14:34:55]Write to MH i2c: E2 08 00 84 74 80 13 01 00 00 00 00 00 75 [14:34:55]Write i2c OK [14:34:55]MH_I2C_Read... [14:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:55]Read from MH i2c: E2 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 0E 00 [14:34:55]MH_I2C_Read... [14:34:55]Read from MH i2c: E2 0E 00 84 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 63 [14:34:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:34:55]wFMCommunicate OK [14:34:55]SAM_PROTO_GetShiftState done [14:34:55]FM_GetShiftState done [14:34:55]req_shift_opened done [14:34:55]requested_item shift.open_date is exist - process it [14:34:55]req_shift_open_date [14:34:55]req_shift_open_date done [14:34:55]produce_requested_data done [14:34:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70280,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:34:55]process_action_free close_receipt [14:34:55]json_value_free [14:34:55]json_value_free done [14:34:55]process_json_proto returns [14:34:55]Send response to host [14:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70280,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:34:55]free response buf [14:34:55]execute_script done [14:34:55]execute_script returns [14:34:55]free content buf [14:34:55]Sock 7.Close socket [14:34:55]Sock 7.Thread stoped [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:46:56]accept exits with 9 [14:46:56]New connection [14:46:56]New thread 3067170148 created [14:46:56]Thread 3067026788 joined [14:46:56]Waiting for new connection... [14:46:56] Sock 9.Parse request [14:46:56]Sock 9.Check first char [14:46:56]Sock 9.First char is OK [14:46:56]request: POST /json_proto HTTP/1.0 [14:46:56]Method: POST [14:46:56]URL: /json_proto [14:46:56]Method is POST - this is cgi request [14:46:56]url: /json_proto [14:46:56]query_string will be loaded in cgi processing [14:46:56]execute_cgi json_proto POST (null) [14:46:56]execute_cgi path=json_proto method=POST [14:46:56]POST find Content-Length [14:46:56]Host: 172.17.50.3:8080 [14:46:56]Content-Length: 752 [14:46:56]Content-Type: application/json [14:46:56] [14:46:56]POST finish read [14:46:56]Found Content-Length = 752 [14:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886049", "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" : 0.00, "quantity" : 40.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\u000A30138277", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]execute_script... [14: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 : (1)2886049", "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" : 0.00, "quantity" : 40.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\u000A30138277", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]POST & json_proto [14:46:56]process_json_proto [14:46:56]json parsed OK: [14:46:56]protocol is kg_v1.0 [14:46:56]action value=close_receipt [14:46:56]process_action close_receipt [14:46:56]cmd_close_receipt [14:46:56]MH_GetDate [14:46:56]Write to MH i2c: F0 00 00 85 74 E8 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 09 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 09 00 85 74 00 E6 BA 17 67 6B 98 1E 66 96 [14:46:56]GetLastDocTimeStamp 1729607697 [14:46:56]current date 1729608422 [14:46:56]FM_GetShiftState [14:46:56]SAM_PROTO_GetShiftState [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 01 00 [14:46:56]Write to MH i2c: E2 08 00 86 74 80 13 01 00 00 00 00 00 77 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 86 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 65 [14:46:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetShiftState done [14:46:56]FM_GetShiftState done [14:46:56]opened in 1729555832 [14:46:56]opened+sec_in_day 1729642232 [14:46:56]quantity*price = 0 [14:46:56]sum+1 = 1 [14:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 229 22.10.2024 14:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138277 ФМ: 0000000000963346 ФД: 70281 ФПД: 194475398384032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144702&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70281&fm=194475398384032&tin=02508201610067®Number=0000000000156251&sum=0 [14:46:57]StoreToDocumentArchive [14:46:57]shift 195 fd 70281 [14:46:57]save to /storage/0195/doc_00070281 [14:46:57]save last doc name /storage/0195/doc_00070281 to /storage/kkm_last_doc_name [14:46:57]save OK [14:46:57]Clear old archive folders... [14:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:57]tlvbuf is 012A13F0 [14:46:57]SAM_PROTO_ClearQueue [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 09 00 00 [14:46:57]Write to MH i2c: E2 08 00 93 74 80 09 00 00 00 00 00 00 79 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 03 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 03 00 93 74 00 90 00 7B [14:46:57]RAPDU: 90 00 [14:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_ClearQueue done [14:46:57]KKMCreateOFDPacket [14:46:57]OFDProtocolAddRootSTLVToBuf [14:46:57]FM_MakeSignedData [14:46:57]FM_MakeSignedData [14:46:57]SAM_PROTO_SignData [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 0D 01 02 [14:46:57]Write to MH i2c: E2 08 00 94 74 80 0D 01 02 00 00 00 00 81 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 03 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 03 00 94 74 00 90 00 7C [14:46:57]RAPDU: 90 00 [14:46:57]wFMCommunicate OK [14:46:57]wFMCommunicate request_size=255 [14:46:57]MH_SAM_APDU [14:46: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 40 9C 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 E5 00 00 00 F4 03 04 00 E6 BA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 12 01 00 35 04 06 00 B0 DF D5 09 [14:46:57]Write to MH i2c: E2 02 01 95 74 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 40 9C 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 E5 00 00 00 F4 03 04 00 E6 BA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 12 01 00 35 04 06 00 B0 DF D5 09 00 00 83 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 95 74 00 90 00 7D [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]wFMCommunicate request_size=7 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 02 02 02 C9 A0 [14:46:58]Write to MH i2c: E2 0A 00 96 74 80 0D 02 02 02 00 C9 A0 00 00 F1 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 96 74 00 90 00 7E [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 03 02 [14:46:58]Write to MH i2c: E2 08 00 97 74 80 0D 03 02 00 00 00 00 86 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0B 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0B 00 97 74 00 35 D6 E7 ED FF 39 FC 3E 90 00 D8 [14:46:58]RAPDU: 35 D6 E7 ED FF 39 FC 3E 90 00 [14:46:58]wFMCommunicate OK [14:46:58]SAM_PROTO_SignData done [14:46:58]FM_MakeSignedData done [14:46:58]CreateOFDProtocolMessage [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 11 00 00 [14:46:58]Write to MH i2c: E2 08 00 98 74 80 11 00 00 00 00 00 00 86 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 17 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 17 00 98 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [14:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:46:58]wFMCommunicate OK [14:46:58]CreateOFDProtocolMessage done [14:46:58]OFDSenderStorePacket 70281 [14:46:58]StoreOFDPacket docnum=70281 [14:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 69 4C 04 01 1E B4 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 40 9C 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 E5 00 00 00 F4 03 04 00 E6 BA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 12 01 00 35 04 06 00 B0 DF D5 09 C9 A0 35 D6 E7 ED FF 39 FC 3E [14:46:58]CheckFolder [14:46:58]dirname=/storage/ofd_packets [14:46:58]CheckFolder done [14:46:58]ProducePacketName [14:46:58]name=ofd_packets/00070281 [14:46:58]NVStorageSaveData ofd_packets/00070281 [14:46:58]File name is /storage/ofd_packets/00070281 [14:46:58]Write 298 bytes [14:46:58]NVStorageSaveData done [14:46:58]OFDSenderStorePacket done [14:46:58]KKMCreateOFDPacket done [14:46:58]NVStorageSaveData kkm_last_timestamp [14:46:58]File name is /storage/kkm_last_timestamp [14:46:58]Write 4 bytes [14:46:58]NVStorageSaveData done [14:46:58]ExternCall_PrintAddStr [14:46:58]wPrintStart [14:46:58]Write to MH i2c: 01 00 00 99 74 0D [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 99 74 00 00 00 00 00 FF 0F 22 [14:46:58]RasterBufferAndPrint [14:46:58]line Счет N : (1)2886049 [14:46:58]line ИНН: 02508201610067 [14:46:58]line Контрольно-Кассовый Чек [14:46:58]line ПРОДАЖА [14:46:58]line ТРК (МРК, ГНК) : 51 [14:46:58]line Товар: 2710194210 [14:46:58]line ДТ-К-5 [14:46:58]line 40.000 * 0.00 [14:46:58]line = 0.00 [14:46:58]line НДС 12% НСП 1% [14:46:58]line > о реализуемом товаре [14:46:58]line ИТОГО: 0.00 [14:46:58]line НСП 1% : 0.00 [14:46:58]line НДС 12% : 0.00 [14:46:58]line Наличными: 0.00 [14:46:58]line Безнал.: 0.00 [14:46:58]line Место: АЗС № 85 "Партнер Нефть" [14:46:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:46:58]line СНО: Общий режим [14:46:58]line Чек 229 22.10.2024 14:47 [14:46:58]line Смена: 195 ФФД: 1.0 [14:46:58]line ЗНМ: 0300000167 [14:46:58]line РНМ: 0000000000156251 [14:46:58]line Версия ККМ: v1.0 [14:46:58]line Талоны: ТК ГПНА Online [14:46:58]line 30138277 [14:46:58]line ФМ: 0000000000963346 [14:46:58]line ФД: 70281 [14:46:58]line ФПД: 194475398384032 [14:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144702&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70281&fm=194475398384032&tin=02508201610067®Number=0000000000156251&sum=0 [14:46:58]OFD Sender: Processing packet 70281 [packets to send 18, broken 17] [14:46:58]ProducePacketName [14:46:58]name=ofd_packets/00070281 [14:46:58]OFD Sender: To server: pG, [14:46:58]CommunicateWithHost lk.salyk.kg:30040 [14:46:58]ConnectInit lk.salyk.kg [14:46:58]written 0, free lines is 4095 [14:46:58]Connected sock=10 [14: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 34 36 0C 01 00 00 69 4C 04 01 1E B4 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 40 9C 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 E5 00 00 00 F4 03 04 00 E6 BA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 12 01 00 35 04 06 00 B0 DF D5 09 C9 A0 35 D6 E7 ED FF 39 FC 3E [14: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 34 36 4F 00 00 00 40 0F 47 00 B8 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 12 01 00 F4 03 04 00 86 64 17 67 B6 04 01 00 00 AC BC A5 D8 F9 4C E0 C4 [14:46:58]CommunicateWithHost err = 0 [14:46:58]CheckOFDResponse [14:46:58]1017 (14) - 77093643461234 [14:46:58]1041 (16) - 0000000000963346 [14:46:58]1040 (4) - 70281 [14:46:58]1012 (4) - 22.10.2024 08:38 [14:46:58]1206 (1) - 0 [14:46:58]OFD Sender: Remove packet 70281 [14:46:58]ProducePacketName [14:46:58]name=ofd_packets/00070281 [14:46:58]NVStorageDeleteData [14:46:58]Write to MH i2c: 01 00 00 C3 74 37 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 C3 74 00 00 00 00 00 FF 0C 49 [14:46:58]RasterBufferAndPrint [14:46:58]line [14:46:58]line [14:46:58]line [14:46:58]line [14:46:58]line [14:46:58]written 0, free lines is 3333 [14:46:59]MH_Cut [14:46:59]Write to MH i2c: D1 01 00 CA 74 01 10 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 01 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 01 00 CA 74 00 0F [14:46:59]Write to MH i2c: 01 00 00 CB 74 3F [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]OFD Sender: No OFD packet to send [14:46:59]*** Cut start [14:46:59]*** Partial cut [14:46:59]*** CUTSNS_PIN = 1 [14:46:59]*** CUTSNS_PIN = 0 [14:46:59]*** Brake cut motor [14:47:00]Read from MH i2c: 01 [14:47:00]MH_I2C_Read... [14:47:00]*** Stop cut motor [14:47:00]*** Cut end [14:47:00]Read from MH i2c: 01 07 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: 01 07 00 CB 74 00 00 00 00 00 FF 0F 54 [14:47:00]process_action close_receipt done [14:47:00]requested_data is exist [14:47:00]produce_requested_data [14:47:00]requested_item fm.sn is exist - process it [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 11 00 00 [14:47:00]Write to MH i2c: E2 08 00 CC 74 80 11 00 00 00 00 00 00 BA [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 CC 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [14:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:47:00]wFMCommunicate OK [14:47:00]requested_item fd.num is exist - process it [14:47:00]SAM_PROTO_GetFieldsCounters [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 00 00 [14:47:00]Write to MH i2c: E2 08 00 CD 74 80 13 00 00 00 00 00 00 BD [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 62 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 62 00 CD 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 12 01 00 0E 04 04 00 C3 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 E6 [14: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 12 01 00 0E 04 04 00 C3 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 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetFieldsCounters done [14:47:00]requested_item shift.num is exist - process it [14:47:00]requested_item shift.opened is exist - process it [14:47:00]req_shift_opened [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 CE 74 80 13 01 00 00 00 00 00 BF [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 CE 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AD [14:47:00]RAPDU: 09 00 01 78 ED 16 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]req_shift_opened done [14:47:00]requested_item shift.open_date is exist - process it [14:47:00]req_shift_open_date [14:47:00]req_shift_open_date done [14:47:00]produce_requested_data done [14:47:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70281,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:47:00]process_action_free close_receipt [14:47:00]json_value_free [14:47:00]json_value_free done [14:47:00]process_json_proto returns [14:47:00]Send response to host [14:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70281,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:47:00]free response buf [14:47:00]execute_script done [14:47:00]execute_script returns [14:47:00]free content buf [14:47:00]Sock 9.Close socket [14:47:00]Sock 9.Thread stoped [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [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]accept exits with 7 [14:55:14]New connection [14:55:14]New thread 3067026788 created [14:55:14]Thread 3067170148 joined [14:55:14]Waiting for new connection... [14:55:14] Sock 7.Parse request [14:55:14]Sock 7.Check first char [14:55:14]Sock 7.First char is OK [14:55:14]request: POST /json_proto HTTP/1.0 [14:55:14]Method: POST [14:55:14]URL: /json_proto [14:55:14]Method is POST - this is cgi request [14:55:14]url: /json_proto [14:55:14]query_string will be loaded in cgi processing [14:55:14]execute_cgi json_proto POST (null) [14:55:14]execute_cgi path=json_proto method=POST [14:55:14]POST find Content-Length [14:55:14]Host: 172.17.50.3:8080 [14:55:14]Content-Length: 683 [14:55:14]Content-Type: application/json [14:55:14] [14:55:14]POST finish read [14:55:14]Found Content-Length = 683 [14:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [14:55:14]execute_script... [14:55: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)2886050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [14:55:14]POST & json_proto [14:55:14]process_json_proto [14:55:14]json parsed OK: [14:55:14]protocol is kg_v1.0 [14:55:14]action value=close_receipt [14:55:14]process_action close_receipt [14:55:14]cmd_close_receipt [14:55:14]MH_GetDate [14:55:14]Write to MH i2c: F0 00 00 CF 74 32 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: F0 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: F0 09 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: F0 09 00 CF 74 00 D8 BC 17 67 6B 98 1E 66 D4 [14:55:14]GetLastDocTimeStamp 1729608422 [14:55:14]current date 1729608920 [14:55:14]FM_GetShiftState [14:55:14]SAM_PROTO_GetShiftState [14:55:14]wFMCommunicate request_size=4 [14:55:14]MH_SAM_APDU [14:55:14]CAPDU: 80 13 01 00 [14:55:14]Write to MH i2c: E2 08 00 D0 74 80 13 01 00 00 00 00 00 C1 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0E 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0E 00 D0 74 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AF [14:55:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:55:14]wFMCommunicate OK [14:55:14]SAM_PROTO_GetShiftState done [14:55:14]FM_GetShiftState done [14:55:14]opened in 1729555832 [14:55:14]opened+sec_in_day 1729642232 [14:55:14]quantity*price = 200043 [14:55:14]sum+1 = 200044 [14:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 230 22.10.2024 14:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70282 ФПД: 41976415571965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70282&fm=41976415571965&tin=02508201610067®Number=0000000000156251&sum=200000 [14:55:15]StoreToDocumentArchive [14:55:15]shift 195 fd 70282 [14:55:15]save to /storage/0195/doc_00070282 [14:55:15]save last doc name /storage/0195/doc_00070282 to /storage/kkm_last_doc_name [14:55:15]save OK [14:55:15]Clear old archive folders... [14:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:15]tlvbuf is 011F6DF0 [14:55:15]SAM_PROTO_ClearQueue [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 09 00 00 [14:55:15]Write to MH i2c: E2 08 00 DD 74 80 09 00 00 00 00 00 00 C3 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 03 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 03 00 DD 74 00 90 00 C5 [14:55:15]RAPDU: 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_ClearQueue done [14:55:15]KKMCreateOFDPacket [14:55:15]OFDProtocolAddRootSTLVToBuf [14:55:15]FM_MakeSignedData [14:55:15]FM_MakeSignedData [14:55:15]SAM_PROTO_SignData [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 0D 01 02 [14:55:15]Write to MH i2c: E2 08 00 DE 74 80 0D 01 02 00 00 00 00 CB [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 03 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 03 00 DE 74 00 90 00 C6 [14:55:15]RAPDU: 90 00 [14:55:15]wFMCommunicate OK [14:55:15]wFMCommunicate request_size=255 [14:55:15]MH_SAM_APDU [14:55: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 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 E6 00 00 00 F4 03 04 00 D8 BC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 12 01 00 35 04 06 00 26 [14:55:15]Write to MH i2c: E2 02 01 DF 74 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 E6 00 00 00 F4 03 04 00 D8 BC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 12 01 00 35 04 06 00 26 00 00 7A [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 DF 74 00 90 00 C7 [14:55:16]RAPDU: 90 00 [14:55:16]wFMCommunicate OK [14:55:16]wFMCommunicate request_size=10 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 0D 02 02 05 2D 65 56 CF FD [14:55:16]Write to MH i2c: E2 0D 00 E0 74 80 0D 02 02 05 00 2D 65 56 CF FD 00 00 8C [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 E0 74 00 90 00 C8 [14:55:16]RAPDU: 90 00 [14:55:16]wFMCommunicate OK [14:55:16]wFMCommunicate request_size=4 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 0D 03 02 [14:55:16]Write to MH i2c: E2 08 00 E1 74 80 0D 03 02 00 00 00 00 D0 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 0B 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 0B 00 E1 74 00 82 1E 63 1E 2A D2 AF 13 90 00 B0 [14:55:16]RAPDU: 82 1E 63 1E 2A D2 AF 13 90 00 [14:55:16]wFMCommunicate OK [14:55:16]SAM_PROTO_SignData done [14:55:16]FM_MakeSignedData done [14:55:16]CreateOFDProtocolMessage [14:55:16]wFMCommunicate request_size=4 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 11 00 00 [14:55:16]Write to MH i2c: E2 08 00 E2 74 80 11 00 00 00 00 00 00 D0 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 17 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 17 00 E2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [14:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:55:16]wFMCommunicate OK [14:55:16]CreateOFDProtocolMessage done [14:55:16]OFDSenderStorePacket 70282 [14:55:16]StoreOFDPacket docnum=70282 [14:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 65 07 01 62 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 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 E6 00 00 00 F4 03 04 00 D8 BC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 12 01 00 35 04 06 00 26 2D 65 56 CF FD 82 1E 63 1E 2A D2 AF 13 [14:55:16]CheckFolder [14:55:16]dirname=/storage/ofd_packets [14:55:16]CheckFolder done [14:55:16]ProducePacketName [14:55:16]name=ofd_packets/00070282 [14:55:16]NVStorageSaveData ofd_packets/00070282 [14:55:16]File name is /storage/ofd_packets/00070282 [14:55:16]Write 301 bytes [14:55:16]NVStorageSaveData done [14:55:16]OFDSenderStorePacket done [14:55:16]KKMCreateOFDPacket done [14:55:16]NVStorageSaveData kkm_last_timestamp [14:55:16]File name is /storage/kkm_last_timestamp [14:55:16]Write 4 bytes [14:55:16]NVStorageSaveData done [14:55:16]ExternCall_PrintAddStr [14:55:16]wPrintStart [14:55:16]Write to MH i2c: 01 00 00 E3 74 57 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: 01 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: 01 07 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: 01 07 00 E3 74 00 00 00 00 00 FF 0F 6C [14:55:16]RasterBufferAndPrint [14:55:16]line Счет N : (1)2886050 [14:55:16]line ИНН: 02508201610067 [14:55:16]line Контрольно-Кассовый Чек [14:55:16]line ПРОДАЖА [14:55:16]line ТРК (МРК, ГНК) : 33 [14:55:16]line Товар: 2710124500 [14:55:16]line Аи-95-К-5 [14:55:16]line 26.960 * 74.20 [14:55:16]line = 2000.43 [14:55:16]line НДС 12% НСП 1% [14:55:16]line > о реализуемом товаре [14:55:16]line ОКРУГЛЕНИЕ: -0.43 [14:55:16]line ИТОГО: 2000.00 [14:55:16]line Внесено: 2000.00 [14:55:16]line СДАЧА: 0.00 [14:55:16]line НСП 1% : 17.70 [14:55:16]line НДС 12% : 212.43 [14:55:16]line Наличными: 2000.00 [14:55:16]line Безнал.: 0.00 [14:55:16]line Место: АЗС № 85 "Партнер Нефть" [14:55:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:55:16]line СНО: Общий режим [14:55:16]line Чек 230 22.10.2024 14:55 [14:55:16]line Смена: 195 ФФД: 1.0 [14:55:16]line ЗНМ: 0300000167 [14:55:16]line РНМ: 0000000000156251 [14:55:16]line Версия ККМ: v1.0 [14:55:16]line ФМ: 0000000000963346 [14:55:16]line ФД: 70282 [14:55:16]line ФПД: 41976415571965 [14:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70282&fm=41976415571965&tin=02508201610067®Number=0000000000156251&sum=200000 [14:55:16]OFD Sender: Processing packet 70282 [packets to send 18, broken 17] [14:55:16]ProducePacketName [14:55:16]name=ofd_packets/00070282 [14:55:16]OFD Sender: To server: pG, [14:55:16]CommunicateWithHost lk.salyk.kg:30040 [14:55:16]ConnectInit lk.salyk.kg [14:55:16]written 0, free lines is 4095 [14:55:16]Connected sock=10 [14:55: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 34 36 0F 01 00 00 AE 65 07 01 62 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 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 E6 00 00 00 F4 03 04 00 D8 BC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 12 01 00 35 04 06 00 26 2D 65 56 CF FD 82 1E 63 1E 2A D2 AF 13 [14:55: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 34 36 4F 00 00 00 66 B3 47 00 2D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 12 01 00 F4 03 04 00 79 66 17 67 B6 04 01 00 00 74 80 D8 18 C2 B5 87 87 [14:55:16]CommunicateWithHost err = 0 [14:55:16]CheckOFDResponse [14:55:16]1017 (14) - 77093643461234 [14:55:16]1041 (16) - 0000000000963346 [14:55:16]1040 (4) - 70282 [14:55:16]1012 (4) - 22.10.2024 08:46 [14:55:16]1206 (1) - 0 [14:55:16]OFD Sender: Remove packet 70282 [14:55:16]ProducePacketName [14:55:16]name=ofd_packets/00070282 [14:55:16]NVStorageDeleteData [14:55:17]Write to MH i2c: 01 00 00 0E 75 83 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 0E 75 00 00 00 00 00 FA 0C 90 [14:55:17]RasterBufferAndPrint [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]written 0, free lines is 3331 [14:55:17]MH_Cut [14:55:17]Write to MH i2c: D1 01 00 15 75 01 5C [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: D1 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: D1 01 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: D1 01 00 15 75 00 5B [14:55:17]Write to MH i2c: 01 00 00 16 75 8B [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]OFD Sender: No OFD packet to send [14:55:17]*** Cut start [14:55:17]*** Partial cut [14:55:17]*** CUTSNS_PIN = 1 [14:55:17]*** CUTSNS_PIN = 0 [14:55:18]*** Brake cut motor [14:55:18]Read from MH i2c: 01 [14:55:18]MH_I2C_Read... [14:55:18]*** Stop cut motor [14:55:18]*** Cut end [14:55:18]Read from MH i2c: 01 07 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: 01 07 00 16 75 00 00 00 00 00 FF 0F A0 [14:55:18]process_action close_receipt done [14:55:18]requested_data is exist [14:55:18]produce_requested_data [14:55:18]requested_item fm.sn is exist - process it [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 11 00 00 [14:55:18]Write to MH i2c: E2 08 00 17 75 80 11 00 00 00 00 00 00 06 [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 17 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 17 00 17 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [14:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:55:18]wFMCommunicate OK [14:55:18]requested_item fd.num is exist - process it [14:55:18]SAM_PROTO_GetFieldsCounters [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 13 00 00 [14:55:18]Write to MH i2c: E2 08 00 18 75 80 13 00 00 00 00 00 00 09 [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 18 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 12 01 00 0E 04 04 00 C3 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 36 [14:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 12 01 00 0E 04 04 00 C3 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 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetFieldsCounters done [14:55:18]requested_item shift.num is exist - process it [14:55:18]requested_item shift.opened is exist - process it [14:55:18]req_shift_opened [14:55:18]FM_GetShiftState [14:55:18]SAM_PROTO_GetShiftState [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 13 01 00 [14:55:18]Write to MH i2c: E2 08 00 19 75 80 13 01 00 00 00 00 00 0B [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 0E 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 0E 00 19 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [14:55:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetShiftState done [14:55:18]FM_GetShiftState done [14:55:18]req_shift_opened done [14:55:18]requested_item shift.open_date is exist - process it [14:55:18]req_shift_open_date [14:55:18]req_shift_open_date done [14:55:18]produce_requested_data done [14:55:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70282,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [14:55:18]process_action_free close_receipt [14:55:18]json_value_free [14:55:18]json_value_free done [14:55:18]process_json_proto returns [14:55:18]Send response to host [14:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70282,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [14:55:18]free response buf [14:55:18]execute_script done [14:55:18]execute_script returns [14:55:18]free content buf [14:55:18]Sock 7.Close socket [14:55:18]Sock 7.Thread stoped [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:01]accept exits with 9 [15:06:01]New connection [15:06:01]New thread 3067170148 created [15:06:01]Thread 3067026788 joined [15:06:01]Waiting for new connection... [15:06:01] Sock 9.Parse request [15:06:01]Sock 9.Check first char [15:06:01]Sock 9.First char is OK [15:06:01]request: POST /json_proto HTTP/1.0 [15:06:01]Method: POST [15:06:01]URL: /json_proto [15:06:01]Method is POST - this is cgi request [15:06:01]url: /json_proto [15:06:01]query_string will be loaded in cgi processing [15:06:01]execute_cgi json_proto POST (null) [15:06:01]execute_cgi path=json_proto method=POST [15:06:01]POST find Content-Length [15:06:01]Host: 172.17.50.3:8080 [15:06:01]Content-Length: 776 [15:06:01]Content-Type: application/json [15:06:01] [15:06:01]POST finish read [15:06:01]Found Content-Length = 776 [15:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:06:01]execute_script... [15:06: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)2886052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:06:01]POST & json_proto [15:06:01]process_json_proto [15:06:01]json parsed OK: [15:06:01]protocol is kg_v1.0 [15:06:01]action value=close_receipt [15:06:01]process_action close_receipt [15:06:01]cmd_close_receipt [15:06:01]MH_GetDate [15:06:01]Write to MH i2c: F0 00 00 1A 75 7E [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 09 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 09 00 1A 75 00 5F BF 17 67 6B 98 1E 66 AA [15:06:01]GetLastDocTimeStamp 1729608920 [15:06:01]current date 1729609567 [15:06:01]FM_GetShiftState [15:06:01]SAM_PROTO_GetShiftState [15:06:01]wFMCommunicate request_size=4 [15:06:01]MH_SAM_APDU [15:06:01]CAPDU: 80 13 01 00 [15:06:01]Write to MH i2c: E2 08 00 1B 75 80 13 01 00 00 00 00 00 0D [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:01]Read from MH i2c: E2 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: E2 0E 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: E2 0E 00 1B 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [15:06:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:06:01]wFMCommunicate OK [15:06:01]SAM_PROTO_GetShiftState done [15:06:01]FM_GetShiftState done [15:06:01]opened in 1729555832 [15:06:01]opened+sec_in_day 1729642232 [15:06:01]quantity*price = 100051 [15:06:01]sum+1 = 100052 [15:06:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 231 22.10.2024 15:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70283 ФПД: 190238629980849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150607&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70283&fm=190238629980849&tin=02508201610067®Number=0000000000156251&sum=100051 [15:06:02]StoreToDocumentArchive [15:06:02]shift 195 fd 70283 [15:06:02]save to /storage/0195/doc_00070283 [15:06:02]save last doc name /storage/0195/doc_00070283 to /storage/kkm_last_doc_name [15:06:02]save OK [15:06:02]Clear old archive folders... [15:06:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:06:02]tlvbuf is 012A14D0 [15:06:02]SAM_PROTO_ClearQueue [15:06:02]wFMCommunicate request_size=4 [15:06:02]MH_SAM_APDU [15:06:02]CAPDU: 80 09 00 00 [15:06:02]Write to MH i2c: E2 08 00 28 75 80 09 00 00 00 00 00 00 0F [15:06:02]Write i2c OK [15:06:02]MH_I2C_Read... [15:06:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:02]Read from MH i2c: E2 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 03 00 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 03 00 28 75 00 90 00 11 [15:06:02]RAPDU: 90 00 [15:06:02]wFMCommunicate OK [15:06:02]SAM_PROTO_ClearQueue done [15:06:02]KKMCreateOFDPacket [15:06:02]OFDProtocolAddRootSTLVToBuf [15:06:02]FM_MakeSignedData [15:06:02]FM_MakeSignedData [15:06:02]SAM_PROTO_SignData [15:06:02]wFMCommunicate request_size=4 [15:06:02]MH_SAM_APDU [15:06:02]CAPDU: 80 0D 01 02 [15:06:02]Write to MH i2c: E2 08 00 29 75 80 0D 01 02 00 00 00 00 17 [15:06:02]Write i2c OK [15:06:02]MH_I2C_Read... [15:06:02]OFD Sender: No OFD packet to send [15:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 29 75 00 90 00 12 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=255 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E7 00 00 00 F4 03 04 00 5F BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 12 01 [15:06:03]Write to MH i2c: E2 02 01 2A 75 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E7 00 00 00 F4 03 04 00 5F BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 12 01 00 00 B3 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 2A 75 00 90 00 13 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=16 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AD 05 61 F6 6A B1 [15:06:03]Write to MH i2c: E2 13 00 2B 75 80 0D 02 02 0B 00 00 35 04 06 00 AD 05 61 F6 6A B1 00 00 93 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 2B 75 00 90 00 14 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 03 02 [15:06:03]Write to MH i2c: E2 08 00 2C 75 80 0D 03 02 00 00 00 00 1C [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0B 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0B 00 2C 75 00 19 0C CE 99 AF 62 B5 CA 90 00 39 [15:06:03]RAPDU: 19 0C CE 99 AF 62 B5 CA 90 00 [15:06:03]wFMCommunicate OK [15:06:03]SAM_PROTO_SignData done [15:06:03]FM_MakeSignedData done [15:06:03]CreateOFDProtocolMessage [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 11 00 00 [15:06:03]Write to MH i2c: E2 08 00 2D 75 80 11 00 00 00 00 00 00 1C [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 17 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 17 00 2D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [15:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:06:03]wFMCommunicate OK [15:06:03]CreateOFDProtocolMessage done [15:06:03]OFDSenderStorePacket 70283 [15:06:03]StoreOFDPacket docnum=70283 [15:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0C 78 0D 01 B3 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E7 00 00 00 F4 03 04 00 5F BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 12 01 00 35 04 06 00 AD 05 61 F6 6A B1 19 0C CE 99 AF 62 B5 CA [15:06:03]CheckFolder [15:06:03]dirname=/storage/ofd_packets [15:06:03]CheckFolder done [15:06:03]ProducePacketName [15:06:03]name=ofd_packets/00070283 [15:06:03]NVStorageSaveData ofd_packets/00070283 [15:06:03]File name is /storage/ofd_packets/00070283 [15:06:03]Write 307 bytes [15:06:03]NVStorageSaveData done [15:06:03]OFDSenderStorePacket done [15:06:03]KKMCreateOFDPacket done [15:06:03]NVStorageSaveData kkm_last_timestamp [15:06:03]File name is /storage/kkm_last_timestamp [15:06:03]Write 4 bytes [15:06:03]NVStorageSaveData done [15:06:03]ExternCall_PrintAddStr [15:06:03]wPrintStart [15:06:03]Write to MH i2c: 01 00 00 2E 75 A3 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 07 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 07 00 2E 75 00 00 00 00 00 FF 0F B8 [15:06:03]RasterBufferAndPrint [15:06:03]line Счет N : (1)2886052 [15:06:03]line ИНН: 02508201610067 [15:06:03]line Контрольно-Кассовый Чек [15:06:03]line ПРОДАЖА [15:06:03]line ТРК (МРК, ГНК) : 11 [15:06:03]line Товар: 2710194240 [15:06:03]line D-ENERGY Дт-К-2 [15:06:03]line 12.960 * 77.20 [15:06:03]line = 1000.51 [15:06:03]line НДС 12% НСП 1% [15:06:03]line > о реализуемом товаре [15:06:03]line ИТОГО: 1000.51 [15:06:03]line НСП 1% : 8.85 [15:06:03]line НДС 12% : 106.25 [15:06:03]line Наличными: 0.00 [15:06:03]line Безнал.: 1000.51 [15:06:03]line Место: АЗС № 85 "Партнер Нефть" [15:06:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:06:03]line СНО: Общий режим [15:06:03]line Чек 231 22.10.2024 15:06 [15:06:03]line Смена: 195 ФФД: 1.0 [15:06:03]line ЗНМ: 0300000167 [15:06:03]line РНМ: 0000000000156251 [15:06:03]line Версия ККМ: v1.0 [15:06:03]line Платежная система: Mbank [15:06:03]line ФМ: 0000000000963346 [15:06:03]line ФД: 70283 [15:06:03]line ФПД: 190238629980849 [15:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150607&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70283&fm=190238629980849&tin=02508201610067®Number=0000000000156251&sum=100051 [15:06:03]OFD Sender: Processing packet 70283 [packets to send 18, broken 17] [15:06:03]ProducePacketName [15:06:03]name=ofd_packets/00070283 [15:06:03]OFD Sender: To server: pG, [15:06:03]CommunicateWithHost lk.salyk.kg:30040 [15:06:03]ConnectInit lk.salyk.kg [15:06:03]written 0, free lines is 4095 [15:06:03]Connected sock=10 [15:06: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 34 36 15 01 00 00 0C 78 0D 01 B3 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E7 00 00 00 F4 03 04 00 5F BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 12 01 00 35 04 06 00 AD 05 61 F6 6A B1 19 0C CE 99 AF 62 B5 CA [15:06: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 34 36 4F 00 00 00 DF 09 47 00 98 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 12 01 00 F4 03 04 00 00 69 17 67 B6 04 01 00 00 21 09 3C 1D 46 B8 2B 4F [15:06:04]CommunicateWithHost err = 0 [15:06:04]CheckOFDResponse [15:06:04]1017 (14) - 77093643461234 [15:06:04]1041 (16) - 0000000000963346 [15:06:04]1040 (4) - 70283 [15:06:04]1012 (4) - 22.10.2024 08:57 [15:06:04]1206 (1) - 0 [15:06:04]OFD Sender: Remove packet 70283 [15:06:04]ProducePacketName [15:06:04]name=ofd_packets/00070283 [15:06:04]NVStorageDeleteData [15:06:04]Write to MH i2c: 01 00 00 57 75 CC [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 07 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 07 00 57 75 00 00 00 00 00 1C 0D FC [15:06:04]RasterBufferAndPrint [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]written 0, free lines is 3361 [15:06:04]MH_Cut [15:06:04]Write to MH i2c: D1 01 00 5E 75 01 A5 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 01 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 01 00 5E 75 00 A4 [15:06:04]Write to MH i2c: 01 00 00 5F 75 D4 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]OFD Sender: No OFD packet to send [15:06:04]*** Cut start [15:06:04]*** Partial cut [15:06:04]*** CUTSNS_PIN = 1 [15:06:04]*** CUTSNS_PIN = 0 [15:06:05]*** Brake cut motor [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]*** Stop cut motor [15:06:05]*** Cut end [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 5F 75 00 00 00 00 00 FF 0F E9 [15:06:05]process_action close_receipt done [15:06:05]requested_data is exist [15:06:05]produce_requested_data [15:06:05]requested_item fm.sn is exist - process it [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 11 00 00 [15:06:05]Write to MH i2c: E2 08 00 60 75 80 11 00 00 00 00 00 00 4F [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 60 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [15:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:06:05]wFMCommunicate OK [15:06:05]requested_item fd.num is exist - process it [15:06:05]SAM_PROTO_GetFieldsCounters [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 00 00 [15:06:05]Write to MH i2c: E2 08 00 61 75 80 13 00 00 00 00 00 00 52 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 62 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 62 00 61 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 12 01 00 0E 04 04 00 C3 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 83 [15:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 12 01 00 0E 04 04 00 C3 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:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_GetFieldsCounters done [15:06:05]requested_item shift.num is exist - process it [15:06:05]requested_item shift.opened is exist - process it [15:06:05]req_shift_opened [15:06:05]FM_GetShiftState [15:06:05]SAM_PROTO_GetShiftState [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 01 00 [15:06:05]Write to MH i2c: E2 08 00 62 75 80 13 01 00 00 00 00 00 54 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:05]Read from MH i2c: E2 0E 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0E 00 62 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 42 [15:06:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_GetShiftState done [15:06:05]FM_GetShiftState done [15:06:05]req_shift_opened done [15:06:05]requested_item shift.open_date is exist - process it [15:06:05]req_shift_open_date [15:06:05]req_shift_open_date done [15:06:05]produce_requested_data done [15:06:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70283,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:06:05]process_action_free close_receipt [15:06:05]json_value_free [15:06:05]json_value_free done [15:06:05]process_json_proto returns [15:06:05]Send response to host [15:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70283,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:06:05]free response buf [15:06:05]execute_script done [15:06:05]execute_script returns [15:06:05]free content buf [15:06:05]Sock 9.Close socket [15:06:05]Sock 9.Thread stoped [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [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:50]accept exits with 7 [15:06:50]New connection [15:06:50]New thread 3067026788 created [15:06:50]Thread 3067170148 joined [15:06:50]Waiting for new connection... [15:06:50] Sock 7.Parse request [15:06:50]Sock 7.Check first char [15:06:50]Sock 7.First char is OK [15:06:50]request: POST /json_proto HTTP/1.0 [15:06:50]Method: POST [15:06:50]URL: /json_proto [15:06:50]Method is POST - this is cgi request [15:06:50]url: /json_proto [15:06:50]query_string will be loaded in cgi processing [15:06:50]execute_cgi json_proto POST (null) [15:06:50]execute_cgi path=json_proto method=POST [15:06:50]POST find Content-Length [15:06:50]Host: 172.17.50.3:8080 [15:06:50]Content-Length: 978 [15:06:50]Content-Type: application/json [15:06:50] [15:06:50]POST finish read [15:06:50]Found Content-Length = 978 [15:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886051", "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" : 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 85\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" ] } } [15:06:50]execute_script... [15:06: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)2886051", "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" : 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 85\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" ] } } [15:06:50]POST & json_proto [15:06:50]process_json_proto [15:06:50]json parsed OK: [15:06:50]protocol is kg_v1.0 [15:06:50]action value=close_receipt [15:06:50]process_action close_receipt [15:06:50]cmd_close_receipt [15:06:50]MH_GetDate [15:06:50]Write to MH i2c: F0 00 00 63 75 C7 [15:06:50]Write i2c OK [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 09 00 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 09 00 63 75 00 8F BF 17 67 6B 98 1E 66 23 [15:06:50]GetLastDocTimeStamp 1729609567 [15:06:50]current date 1729609615 [15:06:50]FM_GetShiftState [15:06:50]SAM_PROTO_GetShiftState [15:06:50]wFMCommunicate request_size=4 [15:06:50]MH_SAM_APDU [15:06:50]CAPDU: 80 13 01 00 [15:06:50]Write to MH i2c: E2 08 00 64 75 80 13 01 00 00 00 00 00 56 [15:06:50]Write i2c OK [15:06:50]MH_I2C_Read... [15:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:50]Read from MH i2c: E2 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: E2 0E 00 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: E2 0E 00 64 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [15:06:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:06:50]wFMCommunicate OK [15:06:50]SAM_PROTO_GetShiftState done [15:06:50]FM_GetShiftState done [15:06:50]opened in 1729555832 [15:06:50]opened+sec_in_day 1729642232 [15:06:50]quantity*price = 500004 [15:06:50]sum+1 = 500006 [15:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 232 22.10.2024 15:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70284 ФПД: 242358522159245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70284&fm=242358522159245&tin=02508201610067®Number=0000000000156251&sum=500000 [15:06:51]StoreToDocumentArchive [15:06:51]shift 195 fd 70284 [15:06:51]save to /storage/0195/doc_00070284 [15:06:51]save last doc name /storage/0195/doc_00070284 to /storage/kkm_last_doc_name [15:06:51]save OK [15:06:51]Clear old archive folders... [15:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:06:51]tlvbuf is 01144FA0 [15:06:51]SAM_PROTO_ClearQueue [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 09 00 00 [15:06:51]Write to MH i2c: E2 08 00 71 75 80 09 00 00 00 00 00 00 58 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 71 75 00 90 00 5A [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]SAM_PROTO_ClearQueue done [15:06:51]KKMCreateOFDPacket [15:06:51]OFDProtocolAddRootSTLVToBuf [15:06:51]FM_MakeSignedData [15:06:51]FM_MakeSignedData [15:06:51]SAM_PROTO_SignData [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 01 02 [15:06:51]Write to MH i2c: E2 08 00 72 75 80 0D 01 02 00 00 00 00 60 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 72 75 00 90 00 5B [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=255 [15:06:51]MH_SAM_APDU [15:06: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 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 E8 00 00 00 F4 03 04 00 90 BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 12 01 00 35 04 06 00 DC 6C 7D 9F [15:06:51]Write to MH i2c: E2 02 01 73 75 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 E8 00 00 00 F4 03 04 00 90 BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 12 01 00 35 04 06 00 DC 6C 7D 9F 00 00 5D [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 73 75 00 90 00 5C [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=7 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 02 02 02 20 8D [15:06:51]Write to MH i2c: E2 0A 00 74 75 80 0D 02 02 02 00 20 8D 00 00 14 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 74 75 00 90 00 5D [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 03 02 [15:06:51]Write to MH i2c: E2 08 00 75 75 80 0D 03 02 00 00 00 00 65 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 0B 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 0B 00 75 75 00 2C E9 60 C7 41 81 F9 6B 90 00 C8 [15:06:51]RAPDU: 2C E9 60 C7 41 81 F9 6B 90 00 [15:06:51]wFMCommunicate OK [15:06:51]SAM_PROTO_SignData done [15:06:51]FM_MakeSignedData done [15:06:51]CreateOFDProtocolMessage [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 11 00 00 [15:06:51]Write to MH i2c: E2 08 00 76 75 80 11 00 00 00 00 00 00 65 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 17 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 17 00 76 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [15:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:06:51]wFMCommunicate OK [15:06:51]CreateOFDProtocolMessage done [15:06:51]OFDSenderStorePacket 70284 [15:06:51]StoreOFDPacket docnum=70284 [15:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 69 04 01 54 58 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 E8 00 00 00 F4 03 04 00 90 BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 12 01 00 35 04 06 00 DC 6C 7D 9F 20 8D 2C E9 60 C7 41 81 F9 6B [15:06:51]CheckFolder [15:06:51]dirname=/storage/ofd_packets [15:06:51]CheckFolder done [15:06:51]ProducePacketName [15:06:51]name=ofd_packets/00070284 [15:06:51]NVStorageSaveData ofd_packets/00070284 [15:06:51]File name is /storage/ofd_packets/00070284 [15:06:51]Write 298 bytes [15:06:51]NVStorageSaveData done [15:06:51]OFDSenderStorePacket done [15:06:51]KKMCreateOFDPacket done [15:06:51]NVStorageSaveData kkm_last_timestamp [15:06:51]File name is /storage/kkm_last_timestamp [15:06:51]Write 4 bytes [15:06:51]OFD Sender: Processing packet 70284 [packets to send 18, broken 17] [15:06:51]ProducePacketName [15:06:51]name=ofd_packets/00070284 [15:06:51]OFD Sender: To server: pG, [15:06:51]CommunicateWithHost lk.salyk.kg:30040 [15:06:51]ConnectInit lk.salyk.kg [15:06:51]NVStorageSaveData done [15:06:51]ExternCall_PrintAddStr [15:06:51]wPrintStart [15:06:51]Write to MH i2c: 01 00 00 77 75 EC [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 07 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 07 00 77 75 00 00 00 00 00 FF 0F 01 [15:06:51]RasterBufferAndPrint [15:06:51]line Счет N : (1)2886051 [15:06:51]line ИНН: 02508201610067 [15:06:51]line Контрольно-Кассовый Чек [15:06:51]line ПРОДАЖА [15:06:51]line ТРК (МРК, ГНК) : 51 [15:06:51]line Товар: 2710194210 [15:06:51]line ДТ-К-5 [15:06:51]line 66.490 * 75.20 [15:06:51]line = 5000.05 [15:06:51]line НДС 12% НСП 1% [15:06:51]line > о реализуемом товаре [15:06:51]line ОКРУГЛЕНИЕ: -0.05 [15:06:51]line ИТОГО: 5000.00 [15:06:51]line Внесено: 5000.00 [15:06:51]line СДАЧА: 0.00 [15:06:51]line НСП 1% : 44.25 [15:06:51]line НДС 12% : 530.98 [15:06:51]line Наличными: 5000.00 [15:06:51]line Безнал.: 0.00 [15:06:51]line Место: АЗС № 85 "Партнер Нефть" [15:06:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:06:51]line СНО: Общий режим [15:06:51]line Чек 232 22.10.2024 15:06 [15:06:51]line Смена: 195 ФФД: 1.0 [15:06:51]line ЗНМ: 0300000167 [15:06:51]line РНМ: 0000000000156251 [15:06:52]line Версия ККМ: v1.0 [15:06:52]line [15:06:52]line Дисконтная программа [15:06:52]line ДТ [15:06:52]line номер 85 [15:06:52]line сэкономлено 66.49 сом [15:06:52]line ФМ: 0000000000963346 [15:06:52]line ФД: 70284 [15:06:52]line ФПД: 242358522159245 [15:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70284&fm=242358522159245&tin=02508201610067®Number=0000000000156251&sum=500000 [15:06:52]Connected sock=11 [15:06: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 34 36 0C 01 00 00 3B 69 04 01 54 58 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 E8 00 00 00 F4 03 04 00 90 BF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 12 01 00 35 04 06 00 DC 6C 7D 9F 20 8D 2C E9 60 C7 41 81 F9 6B [15:06:52]written 0, free lines is 4095 [15:06: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 34 36 4F 00 00 00 B3 FC 47 00 11 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 34 36 10 04 04 00 8C 12 01 00 F4 03 04 00 30 69 17 67 B6 04 01 00 00 60 E6 4A 81 E6 22 48 68 [15:06:52]CommunicateWithHost err = 0 [15:06:52]CheckOFDResponse [15:06:52]1017 (14) - 77093643461234 [15:06:52]1041 (16) - 0000000000963346 [15:06:52]1040 (4) - 70284 [15:06:52]1012 (4) - 22.10.2024 08:58 [15:06:52]1206 (1) - 0 [15:06:52]OFD Sender: Remove packet 70284 [15:06:52]ProducePacketName [15:06:52]name=ofd_packets/00070284 [15:06:52]NVStorageDeleteData [15:06:52]Write to MH i2c: 01 00 00 A7 75 1C [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 07 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 07 00 A7 75 00 00 00 00 00 A2 0C D1 [15:06:52]RasterBufferAndPrint [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]written 0, free lines is 3240 [15:06:52]MH_Cut [15:06:52]Write to MH i2c: D1 01 00 AE 75 01 F5 [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 01 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 01 00 AE 75 00 F4 [15:06:52]Write to MH i2c: 01 00 00 AF 75 24 [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]OFD Sender: No OFD packet to send [15:06:53]*** Cut start [15:06:53]*** Partial cut [15:06:53]*** CUTSNS_PIN = 1 [15:06:53]*** CUTSNS_PIN = 0 [15:06:53]*** Brake cut motor [15:06:53]Read from MH i2c: 01 [15:06:53]MH_I2C_Read... [15:06:53]*** Stop cut motor [15:06:53]*** Cut end [15:06:53]Read from MH i2c: 01 07 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: 01 07 00 AF 75 00 00 00 00 00 FF 0F 39 [15:06:53]process_action close_receipt done [15:06:53]requested_data is exist [15:06:53]produce_requested_data [15:06:53]requested_item fm.sn is exist - process it [15:06:53]wFMCommunicate request_size=4 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 11 00 00 [15:06:53]Write to MH i2c: E2 08 00 B0 75 80 11 00 00 00 00 00 00 9F [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 B0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [15:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:06:54]wFMCommunicate OK [15:06:54]requested_item fd.num is exist - process it [15:06:54]SAM_PROTO_GetFieldsCounters [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 13 00 00 [15:06:54]Write to MH i2c: E2 08 00 B1 75 80 13 00 00 00 00 00 00 A2 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 62 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 62 00 B1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 12 01 00 0E 04 04 00 C3 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 D7 [15:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 12 01 00 0E 04 04 00 C3 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:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_GetFieldsCounters done [15:06:54]requested_item shift.num is exist - process it [15:06:54]requested_item shift.opened is exist - process it [15:06:54]req_shift_opened [15:06:54]FM_GetShiftState [15:06:54]SAM_PROTO_GetShiftState [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 13 01 00 [15:06:54]Write to MH i2c: E2 08 00 B2 75 80 13 01 00 00 00 00 00 A4 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0E 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0E 00 B2 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 92 [15:06:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_GetShiftState done [15:06:54]FM_GetShiftState done [15:06:54]req_shift_opened done [15:06:54]requested_item shift.open_date is exist - process it [15:06:54]req_shift_open_date [15:06:54]req_shift_open_date done [15:06:54]produce_requested_data done [15:06:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70284,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:06:54]process_action_free close_receipt [15:06:54]json_value_free [15:06:54]json_value_free done [15:06:54]process_json_proto returns [15:06:54]Send response to host [15:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70284,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:06:54]free response buf [15:06:54]execute_script done [15:06:54]execute_script returns [15:06:54]free content buf [15:06:54]Sock 7.Close socket [15:06:54]Sock 7.Thread stoped [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [15:09:30]accept exits with 10 [15:09:30]New connection [15:09:30]New thread 3067170148 created [15:09:30]Thread 3067026788 joined [15:09:30]Waiting for new connection... [15:09:30] Sock 10.Parse request [15:09:30]Sock 10.Check first char [15:09:30]Sock 10.First char is OK [15:09:30]request: POST /json_proto HTTP/1.0 [15:09:30]Method: POST [15:09:30]URL: /json_proto [15:09:30]Method is POST - this is cgi request [15:09:30]url: /json_proto [15:09:30]query_string will be loaded in cgi processing [15:09:30]execute_cgi json_proto POST (null) [15:09:30]execute_cgi path=json_proto method=POST [15:09:30]POST find Content-Length [15:09:30]Host: 172.17.50.3:8080 [15:09:30]Content-Length: 682 [15:09:30]Content-Type: application/json [15:09:30] [15:09:30]POST finish read [15:09:30]Found Content-Length = 682 [15:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:09:30]execute_script... [15:09: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)2886053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:09:30]POST & json_proto [15:09:30]process_json_proto [15:09:30]json parsed OK: [15:09:30]protocol is kg_v1.0 [15:09:30]action value=close_receipt [15:09:30]process_action close_receipt [15:09:30]cmd_close_receipt [15:09:30]MH_GetDate [15:09:30]Write to MH i2c: F0 00 00 B3 75 17 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 B3 75 00 30 C0 17 67 6B 98 1E 66 15 [15:09:30]GetLastDocTimeStamp 1729609616 [15:09:30]current date 1729609776 [15:09:30]FM_GetShiftState [15:09:30]SAM_PROTO_GetShiftState [15:09:30]wFMCommunicate request_size=4 [15:09:30]MH_SAM_APDU [15:09:30]CAPDU: 80 13 01 00 [15:09:30]Write to MH i2c: E2 08 00 B4 75 80 13 01 00 00 00 00 00 A6 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:30]Read from MH i2c: E2 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 B4 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 94 [15:09:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:09:30]wFMCommunicate OK [15:09:30]SAM_PROTO_GetShiftState done [15:09:30]FM_GetShiftState done [15:09:30]opened in 1729555832 [15:09:30]opened+sec_in_day 1729642232 [15:09:30]quantity*price = 50025 [15:09:30]sum+1 = 50026 [15:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 233 22.10.2024 15:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70285 ФПД: 175643250353152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70285&fm=175643250353152&tin=02508201610067®Number=0000000000156251&sum=50000 [15:09:31]StoreToDocumentArchive [15:09:31]shift 195 fd 70285 [15:09:31]save to /storage/0195/doc_00070285 [15:09:31]save last doc name /storage/0195/doc_00070285 to /storage/kkm_last_doc_name [15:09:31]save OK [15:09:31]Clear old archive folders... [15:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:09:31]tlvbuf is 01399350 [15:09:31]SAM_PROTO_ClearQueue [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 09 00 00 [15:09:31]Write to MH i2c: E2 08 00 C1 75 80 09 00 00 00 00 00 00 A8 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 C1 75 00 90 00 AA [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_ClearQueue done [15:09:31]KKMCreateOFDPacket [15:09:31]OFDProtocolAddRootSTLVToBuf [15:09:31]FM_MakeSignedData [15:09:31]FM_MakeSignedData [15:09:31]SAM_PROTO_SignData [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 01 02 [15:09:31]Write to MH i2c: E2 08 00 C2 75 80 0D 01 02 00 00 00 00 B0 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 C2 75 00 90 00 AB [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=255 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E9 00 00 00 F4 03 04 00 30 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 12 01 00 35 04 06 00 9F BF [15:09:31]Write to MH i2c: E2 02 01 C3 75 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E9 00 00 00 F4 03 04 00 30 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 12 01 00 35 04 06 00 9F BF 00 00 0B [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 03 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 03 00 C3 75 00 90 00 AC [15:09:32]RAPDU: 90 00 [15:09:32]wFMCommunicate OK [15:09:32]wFMCommunicate request_size=9 [15:09:32]MH_SAM_APDU [15:09:32]CAPDU: 80 0D 02 02 04 21 8B 64 00 [15:09:32]Write to MH i2c: E2 0C 00 C4 75 80 0D 02 02 04 00 21 8B 64 00 00 00 CB [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 03 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 03 00 C4 75 00 90 00 AD [15:09:32]RAPDU: 90 00 [15:09:32]wFMCommunicate OK [15:09:32]wFMCommunicate request_size=4 [15:09:32]MH_SAM_APDU [15:09:32]CAPDU: 80 0D 03 02 [15:09:32]Write to MH i2c: E2 08 00 C5 75 80 0D 03 02 00 00 00 00 B5 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 0B 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 0B 00 C5 75 00 53 05 13 A7 D8 53 0A 7F 90 00 7C [15:09:32]RAPDU: 53 05 13 A7 D8 53 0A 7F 90 00 [15:09:32]wFMCommunicate OK [15:09:32]SAM_PROTO_SignData done [15:09:32]FM_MakeSignedData done [15:09:32]CreateOFDProtocolMessage [15:09:32]wFMCommunicate request_size=4 [15:09:32]MH_SAM_APDU [15:09:32]CAPDU: 80 11 00 00 [15:09:32]Write to MH i2c: E2 08 00 C6 75 80 11 00 00 00 00 00 00 B5 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 C6 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [15:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:09:32]wFMCommunicate OK [15:09:32]CreateOFDProtocolMessage done [15:09:32]OFDSenderStorePacket 70285 [15:09:32]StoreOFDPacket docnum=70285 [15:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A8 52 06 01 4B C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E9 00 00 00 F4 03 04 00 30 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 12 01 00 35 04 06 00 9F BF 21 8B 64 00 53 05 13 A7 D8 53 0A 7F [15:09:32]CheckFolder [15:09:32]dirname=/storage/ofd_packets [15:09:32]CheckFolder done [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00070285 [15:09:32]NVStorageSaveData ofd_packets/00070285 [15:09:32]File name is /storage/ofd_packets/00070285 [15:09:32]Write 300 bytes [15:09:32]NVStorageSaveData done [15:09:32]OFDSenderStorePacket done [15:09:32]KKMCreateOFDPacket done [15:09:32]NVStorageSaveData kkm_last_timestamp [15:09:32]File name is /storage/kkm_last_timestamp [15:09:32]Write 4 bytes [15:09:32]NVStorageSaveData done [15:09:32]ExternCall_PrintAddStr [15:09:32]wPrintStart [15:09:32]Write to MH i2c: 01 00 00 C7 75 3C [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 C7 75 00 00 00 00 00 FF 0F 51 [15:09:32]RasterBufferAndPrint [15:09:32]line Счет N : (1)2886053 [15:09:32]line ИНН: 02508201610067 [15:09:32]line Контрольно-Кассовый Чек [15:09:32]line ПРОДАЖА [15:09:32]line ТРК (МРК, ГНК) : 71 [15:09:32]line Товар: 2711129700 [15:09:32]line ГАЗ-К-3 [15:09:32]line 12.860 * 38.90 [15:09:32]line = 500.25 [15:09:32]line НДС 12% НСП 1% [15:09:32]line > о реализуемом товаре [15:09:32]line ОКРУГЛЕНИЕ: -0.25 [15:09:32]line ИТОГО: 500.00 [15:09:32]line Внесено: 500.00 [15:09:32]line СДАЧА: 0.00 [15:09:32]line НСП 1% : 4.43 [15:09:32]line НДС 12% : 53.12 [15:09:32]line Наличными: 500.00 [15:09:32]line Безнал.: 0.00 [15:09:32]line Место: АЗС № 85 "Партнер Нефть" [15:09:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:09:32]line СНО: Общий режим [15:09:32]line Чек 233 22.10.2024 15:09 [15:09:32]line Смена: 195 ФФД: 1.0 [15:09:32]line ЗНМ: 0300000167 [15:09:32]line РНМ: 0000000000156251 [15:09:32]line Версия ККМ: v1.0 [15:09:32]line ФМ: 0000000000963346 [15:09:32]line ФД: 70285 [15:09:32]line ФПД: 175643250353152 [15:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70285&fm=175643250353152&tin=02508201610067®Number=0000000000156251&sum=50000 [15:09:32]OFD Sender: Processing packet 70285 [packets to send 18, broken 17] [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00070285 [15:09:32]OFD Sender: To server: pG, [15:09:32]CommunicateWithHost lk.salyk.kg:30040 [15:09:32]ConnectInit lk.salyk.kg [15:09:32]written 0, free lines is 4095 [15:09:32]Connected sock=9 [15:09: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 34 36 0E 01 00 00 A8 52 06 01 4B C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 E9 00 00 00 F4 03 04 00 30 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 12 01 00 35 04 06 00 9F BF 21 8B 64 00 53 05 13 A7 D8 53 0A 7F [15:09: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 34 36 4F 00 00 00 19 33 47 00 34 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 34 36 10 04 04 00 8D 12 01 00 F4 03 04 00 D1 69 17 67 B6 04 01 00 00 40 0E B0 2E 11 02 4D 27 [15:09:33]CommunicateWithHost err = 0 [15:09:33]CheckOFDResponse [15:09:33]1017 (14) - 77093643461234 [15:09:33]1041 (16) - 0000000000963346 [15:09:33]1040 (4) - 70285 [15:09:33]1012 (4) - 22.10.2024 09:01 [15:09:33]1206 (1) - 0 [15:09:33]OFD Sender: Remove packet 70285 [15:09:33]ProducePacketName [15:09:33]name=ofd_packets/00070285 [15:09:33]NVStorageDeleteData [15:09:33]Write to MH i2c: 01 00 00 F2 75 67 [15:09:33]Write i2c OK [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: 01 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: 01 07 00 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: 01 07 00 F2 75 00 00 00 00 00 00 0D 7B [15:09:33]RasterBufferAndPrint [15:09:33]line [15:09:33]line [15:09:33]line [15:09:33]line [15:09:33]line [15:09:33]written 0, free lines is 3337 [15:09:33]MH_Cut [15:09:33]Write to MH i2c: D1 01 00 F9 75 01 40 [15:09:33]Write i2c OK [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: D1 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: D1 01 00 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: D1 01 00 F9 75 00 3F [15:09:33]Write to MH i2c: 01 00 00 FA 75 6F [15:09:33]Write i2c OK [15:09:33]MH_I2C_Read... [15:09:33]OFD Sender: No OFD packet to send [15:09:33]*** Cut start [15:09:33]*** Partial cut [15:09:33]*** CUTSNS_PIN = 1 [15:09:33]*** CUTSNS_PIN = 0 [15:09:34]*** Brake cut motor [15:09:34]Read from MH i2c: 01 [15:09:34]MH_I2C_Read... [15:09:34]*** Stop cut motor [15:09:34]*** Cut end [15:09:34]Read from MH i2c: 01 07 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: 01 07 00 FA 75 00 00 00 00 00 FF 0F 84 [15:09:34]process_action close_receipt done [15:09:34]requested_data is exist [15:09:34]produce_requested_data [15:09:34]requested_item fm.sn is exist - process it [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 11 00 00 [15:09:34]Write to MH i2c: E2 08 00 FB 75 80 11 00 00 00 00 00 00 EA [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 FB 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [15:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:09:34]wFMCommunicate OK [15:09:34]requested_item fd.num is exist - process it [15:09:34]SAM_PROTO_GetFieldsCounters [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 00 00 [15:09:34]Write to MH i2c: E2 08 00 FC 75 80 13 00 00 00 00 00 00 ED [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 FC 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 12 01 00 0E 04 04 00 C3 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 26 [15:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 12 01 00 0E 04 04 00 C3 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:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetFieldsCounters done [15:09:34]requested_item shift.num is exist - process it [15:09:34]requested_item shift.opened is exist - process it [15:09:34]req_shift_opened [15:09:34]FM_GetShiftState [15:09:34]SAM_PROTO_GetShiftState [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 FD 75 80 13 01 00 00 00 00 00 EF [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 FD 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DD [15:09:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]req_shift_opened done [15:09:34]requested_item shift.open_date is exist - process it [15:09:34]req_shift_open_date [15:09:34]req_shift_open_date done [15:09:34]produce_requested_data done [15:09:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70285,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:09:34]process_action_free close_receipt [15:09:34]json_value_free [15:09:34]json_value_free done [15:09:34]process_json_proto returns [15:09:34]Send response to host [15:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70285,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:09:34]free response buf [15:09:34]execute_script done [15:09:34]execute_script returns [15:09:34]free content buf [15:09:34]Sock 10.Close socket [15:09:34]Sock 10.Thread stoped [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [15:11:59]accept exits with 7 [15:11:59]New connection [15:11:59]New thread 3067026788 created [15:11:59]Thread 3067170148 joined [15:11:59]Waiting for new connection... [15:11:59] Sock 7.Parse request [15:11:59]Sock 7.Check first char [15:11:59]Sock 7.First char is OK [15:11:59]request: POST /json_proto HTTP/1.0 [15:11:59]Method: POST [15:11:59]URL: /json_proto [15:11:59]Method is POST - this is cgi request [15:11:59]url: /json_proto [15:11:59]query_string will be loaded in cgi processing [15:11:59]execute_cgi json_proto POST (null) [15:11:59]execute_cgi path=json_proto method=POST [15:11:59]POST find Content-Length [15:11:59]Host: 172.17.50.3:8080 [15:11:59]Content-Length: 689 [15:11:59]Content-Type: application/json [15:11:59] [15:11:59]POST finish read [15:11:59]Found Content-Length = 689 [15:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.070, "sum" : 1240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]execute_script... [15:11: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)2886054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.070, "sum" : 1240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]POST & json_proto [15:11:59]process_json_proto [15:11:59]json parsed OK: [15:11:59]protocol is kg_v1.0 [15:11:59]action value=close_receipt [15:11:59]process_action close_receipt [15:11:59]cmd_close_receipt [15:11:59]MH_GetDate [15:11:59]Write to MH i2c: F0 00 00 FE 75 62 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 FE 75 00 C5 C0 17 67 6B 98 1E 66 F5 [15:11:59]GetLastDocTimeStamp 1729609776 [15:11:59]current date 1729609925 [15:11:59]FM_GetShiftState [15:11:59]SAM_PROTO_GetShiftState [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 13 01 00 [15:11:59]Write to MH i2c: E2 08 00 FF 75 80 13 01 00 00 00 00 00 F1 [15:11:59]Write i2c OK [15:11:59]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 FF 75 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DF [15:12:00]RAPDU: 09 00 01 78 ED 16 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]opened in 1729555832 [15:12:00]opened+sec_in_day 1729642232 [15:12:00]quantity*price = 124060 [15:12:00]sum+1 = 124061 [15:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1240.00 Внесено: 5000.00 СДАЧА: 3760.00 НСП 1% : 10.98 НДС 12% : 131.74 Наличными: 1240.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 234 22.10.2024 15:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70286 ФПД: 214943072674392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70286&fm=214943072674392&tin=02508201610067®Number=0000000000156251&sum=124000 [15:12:01]StoreToDocumentArchive [15:12:01]shift 195 fd 70286 [15:12:01]save to /storage/0195/doc_00070286 [15:12:01]save last doc name /storage/0195/doc_00070286 to /storage/kkm_last_doc_name [15:12:01]save OK [15:12:01]Clear old archive folders... [15:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:12:01]tlvbuf is 013B8260 [15:12:01]SAM_PROTO_ClearQueue [15:12:01]wFMCommunicate request_size=4 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 09 00 00 [15:12:01]Write to MH i2c: E2 08 00 0C 76 80 09 00 00 00 00 00 00 F4 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 0C 76 00 90 00 F6 [15:12:01]RAPDU: 90 00 [15:12:01]wFMCommunicate OK [15:12:01]SAM_PROTO_ClearQueue done [15:12:01]KKMCreateOFDPacket [15:12:01]OFDProtocolAddRootSTLVToBuf [15:12:01]FM_MakeSignedData [15:12:01]FM_MakeSignedData [15:12:01]SAM_PROTO_SignData [15:12:01]wFMCommunicate request_size=4 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 0D 01 02 [15:12:01]Write to MH i2c: E2 08 00 0D 76 80 0D 01 02 00 00 00 00 FC [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 0D 76 00 90 00 F7 [15:12:01]RAPDU: 90 00 [15:12:01]wFMCommunicate OK [15:12:01]wFMCommunicate request_size=255 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 33 00 00 00 00 07 04 06 00 60 E4 01 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 C5 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 12 01 [15:12:01]Write to MH i2c: E2 02 01 0E 76 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 33 00 00 00 00 07 04 06 00 60 E4 01 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 C5 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 12 01 00 00 09 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 0E 76 00 90 00 F8 [15:12:01]RAPDU: 90 00 [15:12:01]wFMCommunicate OK [15:12:01]wFMCommunicate request_size=16 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C3 7D 55 7E 62 58 [15:12:01]Write to MH i2c: E2 13 00 0F 76 80 0D 02 02 0B 00 00 35 04 06 00 C3 7D 55 7E 62 58 00 00 21 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 03 00 0F 76 00 90 00 F9 [15:12:01]RAPDU: 90 00 [15:12:01]wFMCommunicate OK [15:12:01]wFMCommunicate request_size=4 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 0D 03 02 [15:12:01]Write to MH i2c: E2 08 00 10 76 80 0D 03 02 00 00 00 00 01 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 0B 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 0B 00 10 76 00 B4 02 49 7A 3A 99 CD 73 90 00 8E [15:12:01]RAPDU: B4 02 49 7A 3A 99 CD 73 90 00 [15:12:01]wFMCommunicate OK [15:12:01]SAM_PROTO_SignData done [15:12:01]FM_MakeSignedData done [15:12:01]CreateOFDProtocolMessage [15:12:01]wFMCommunicate request_size=4 [15:12:01]MH_SAM_APDU [15:12:01]CAPDU: 80 11 00 00 [15:12:01]Write to MH i2c: E2 08 00 11 76 80 11 00 00 00 00 00 00 01 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:01]Read from MH i2c: E2 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 17 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: E2 17 00 11 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [15:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:12:01]wFMCommunicate OK [15:12:01]CreateOFDProtocolMessage done [15:12:01]OFDSenderStorePacket 70286 [15:12:01]StoreOFDPacket docnum=70286 [15:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 24 95 0D 01 00 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 33 00 00 00 00 07 04 06 00 60 E4 01 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 C5 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 12 01 00 35 04 06 00 C3 7D 55 7E 62 58 B4 02 49 7A 3A 99 CD 73 [15:12:01]CheckFolder [15:12:01]dirname=/storage/ofd_packets [15:12:01]CheckFolder done [15:12:01]ProducePacketName [15:12:01]name=ofd_packets/00070286 [15:12:01]NVStorageSaveData ofd_packets/00070286 [15:12:01]File name is /storage/ofd_packets/00070286 [15:12:01]Write 307 bytes [15:12:01]NVStorageSaveData done [15:12:01]OFDSenderStorePacket done [15:12:01]KKMCreateOFDPacket done [15:12:01]NVStorageSaveData kkm_last_timestamp [15:12:01]File name is /storage/kkm_last_timestamp [15:12:01]Write 4 bytes [15:12:01]NVStorageSaveData done [15:12:01]ExternCall_PrintAddStr [15:12:01]wPrintStart [15:12:01]Write to MH i2c: 01 00 00 12 76 88 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 12 76 00 00 00 00 00 FF 0F 9D [15:12:01]RasterBufferAndPrint [15:12:01]line Счет N : (1)2886054 [15:12:01]line ИНН: 02508201610067 [15:12:01]line Контрольно-Кассовый Чек [15:12:01]line ПРОДАЖА [15:12:01]line ТРК (МРК, ГНК) : 31 [15:12:01]line Товар: 2710194240 [15:12:01]line D-ENERGY Дт-К-2 [15:12:01]line 16.070 * 77.20 [15:12:01]line = 1240.60 [15:12:01]line НДС 12% НСП 1% [15:12:01]line > о реализуемом товаре [15:12:01]line ОКРУГЛЕНИЕ: -0.60 [15:12:01]line ИТОГО: 1240.00 [15:12:01]line Внесено: 5000.00 [15:12:01]line СДАЧА: 3760.00 [15:12:01]line НСП 1% : 10.98 [15:12:01]line НДС 12% : 131.74 [15:12:01]line Наличными: 1240.00 [15:12:01]line Безнал.: 0.00 [15:12:01]line Место: АЗС № 85 "Партнер Нефть" [15:12:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:12:01]line СНО: Общий режим [15:12:01]line Чек 234 22.10.2024 15:12 [15:12:01]line Смена: 195 ФФД: 1.0 [15:12:01]line ЗНМ: 0300000167 [15:12:01]line РНМ: 0000000000156251 [15:12:01]line Версия ККМ: v1.0 [15:12:01]line ФМ: 0000000000963346 [15:12:01]line ФД: 70286 [15:12:01]line ФПД: 214943072674392 [15:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70286&fm=214943072674392&tin=02508201610067®Number=0000000000156251&sum=124000 [15:12:02]OFD Sender: Processing packet 70286 [packets to send 18, broken 17] [15:12:02]ProducePacketName [15:12:02]name=ofd_packets/00070286 [15:12:02]OFD Sender: To server: pG, [15:12:02]CommunicateWithHost lk.salyk.kg:30040 [15:12:02]ConnectInit lk.salyk.kg [15:12:02]written 0, free lines is 4095 [15:12:02]Connected sock=10 [15:12: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 34 36 15 01 00 00 24 95 0D 01 00 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 33 00 00 00 00 07 04 06 00 60 E4 01 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 C5 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 12 01 00 35 04 06 00 C3 7D 55 7E 62 58 B4 02 49 7A 3A 99 CD 73 [15:12: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 34 36 4F 00 00 00 D7 23 47 00 7B F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 12 01 00 F4 03 04 00 66 6A 17 67 B6 04 01 00 00 32 2E C7 42 63 C3 C7 23 [15:12:02]CommunicateWithHost err = 0 [15:12:02]CheckOFDResponse [15:12:02]1017 (14) - 77093643461234 [15:12:02]1041 (16) - 0000000000963346 [15:12:02]1040 (4) - 70286 [15:12:02]1012 (4) - 22.10.2024 09:03 [15:12:02]1206 (1) - 0 [15:12:02]OFD Sender: Remove packet 70286 [15:12:02]ProducePacketName [15:12:02]name=ofd_packets/00070286 [15:12:02]NVStorageDeleteData [15:12:02]Write to MH i2c: 01 00 00 3D 76 B3 [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: 01 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: 01 07 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: 01 07 00 3D 76 00 00 00 00 00 F4 0C BA [15:12:02]RasterBufferAndPrint [15:12:02]line [15:12:02]line [15:12:02]line [15:12:02]line [15:12:02]line [15:12:02]written 0, free lines is 3323 [15:12:02]MH_Cut [15:12:02]Write to MH i2c: D1 01 00 44 76 01 8C [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: D1 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: D1 01 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: D1 01 00 44 76 00 8B [15:12:02]Write to MH i2c: 01 00 00 45 76 BB [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]OFD Sender: No OFD packet to send [15:12:03]*** Cut start [15:12:03]*** Partial cut [15:12:03]*** CUTSNS_PIN = 1 [15:12:03]*** CUTSNS_PIN = 0 [15:12:03]*** Brake cut motor [15:12:03]Read from MH i2c: 01 [15:12:03]MH_I2C_Read... [15:12:03]*** Stop cut motor [15:12:03]*** Cut end [15:12:03]Read from MH i2c: 01 07 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: 01 07 00 45 76 00 00 00 00 00 FF 0F D0 [15:12:03]process_action close_receipt done [15:12:03]requested_data is exist [15:12:03]produce_requested_data [15:12:03]requested_item fm.sn is exist - process it [15:12:03]wFMCommunicate request_size=4 [15:12:03]MH_SAM_APDU [15:12:03]CAPDU: 80 11 00 00 [15:12:03]Write to MH i2c: E2 08 00 46 76 80 11 00 00 00 00 00 00 36 [15:12:03]Write i2c OK [15:12:03]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 17 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 17 00 46 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [15:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:12:03]wFMCommunicate OK [15:12:03]requested_item fd.num is exist - process it [15:12:03]SAM_PROTO_GetFieldsCounters [15:12:03]wFMCommunicate request_size=4 [15:12:03]MH_SAM_APDU [15:12:03]CAPDU: 80 13 00 00 [15:12:03]Write to MH i2c: E2 08 00 47 76 80 13 00 00 00 00 00 00 39 [15:12:03]Write i2c OK [15:12:03]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 62 00 [15:12:03]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 62 00 47 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 12 01 00 0E 04 04 00 C3 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 76 [15:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 12 01 00 0E 04 04 00 C3 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:12:04]wFMCommunicate OK [15:12:04]SAM_PROTO_GetFieldsCounters done [15:12:04]requested_item shift.num is exist - process it [15:12:04]requested_item shift.opened is exist - process it [15:12:04]req_shift_opened [15:12:04]FM_GetShiftState [15:12:04]SAM_PROTO_GetShiftState [15:12:04]wFMCommunicate request_size=4 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 13 01 00 [15:12:04]Write to MH i2c: E2 08 00 48 76 80 13 01 00 00 00 00 00 3B [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 0E 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 0E 00 48 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [15:12:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:12:04]wFMCommunicate OK [15:12:04]SAM_PROTO_GetShiftState done [15:12:04]FM_GetShiftState done [15:12:04]req_shift_opened done [15:12:04]requested_item shift.open_date is exist - process it [15:12:04]req_shift_open_date [15:12:04]req_shift_open_date done [15:12:04]produce_requested_data done [15:12:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70286,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:12:04]process_action_free close_receipt [15:12:04]json_value_free [15:12:04]json_value_free done [15:12:04]process_json_proto returns [15:12:04]Send response to host [15:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70286,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:12:04]free response buf [15:12:04]execute_script done [15:12:04]execute_script returns [15:12:04]free content buf [15:12:04]Sock 7.Close socket [15:12:04]Sock 7.Thread stoped [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:14]accept exits with 9 [15:12:14]New connection [15:12:14]New thread 3067170148 created [15:12:14]Thread 3067026788 joined [15:12:14]Waiting for new connection... [15:12:14] Sock 9.Parse request [15:12:14]Sock 9.Check first char [15:12:14]Sock 9.First char is OK [15:12:14]request: POST /json_proto HTTP/1.0 [15:12:14]Method: POST [15:12:14]URL: /json_proto [15:12:14]Method is POST - this is cgi request [15:12:14]url: /json_proto [15:12:14]query_string will be loaded in cgi processing [15:12:14]execute_cgi json_proto POST (null) [15:12:14]execute_cgi path=json_proto method=POST [15:12:14]POST find Content-Length [15:12:14]Host: 172.17.50.3:8080 [15:12:14]Content-Length: 683 [15:12:14]Content-Type: application/json [15:12:14] [15:12:14]POST finish read [15:12:14]Found Content-Length = 683 [15:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:12:14]execute_script... [15: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)2886055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:12:14]POST & json_proto [15:12:14]process_json_proto [15:12:14]json parsed OK: [15:12:14]protocol is kg_v1.0 [15:12:14]action value=close_receipt [15:12:14]process_action close_receipt [15:12:14]cmd_close_receipt [15:12:14]MH_GetDate [15:12:14]Write to MH i2c: F0 00 00 49 76 AE [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 09 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 09 00 49 76 00 D4 C0 17 67 6B 98 1E 66 50 [15:12:14]GetLastDocTimeStamp 1729609925 [15:12:14]current date 1729609940 [15:12:14]FM_GetShiftState [15:12:14]SAM_PROTO_GetShiftState [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 13 01 00 [15:12:14]Write to MH i2c: E2 08 00 4A 76 80 13 01 00 00 00 00 00 3D [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0E 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0E 00 4A 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [15:12:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:12:14]wFMCommunicate OK [15:12:14]SAM_PROTO_GetShiftState done [15:12:14]FM_GetShiftState done [15:12:14]opened in 1729555832 [15:12:14]opened+sec_in_day 1729642232 [15:12:14]quantity*price = 100021 [15:12:14]sum+1 = 100023 [15:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 235 22.10.2024 15:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70287 ФПД: 230494429644883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70287&fm=230494429644883&tin=02508201610067®Number=0000000000156251&sum=100000 [15:12:15]StoreToDocumentArchive [15:12:15]shift 195 fd 70287 [15:12:15]save to /storage/0195/doc_00070287 [15:12:15]save last doc name /storage/0195/doc_00070287 to /storage/kkm_last_doc_name [15:12:15]save OK [15:12:15]Clear old archive folders... [15:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:15]tlvbuf is 013A71A0 [15:12:15]SAM_PROTO_ClearQueue [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 09 00 00 [15:12:15]Write to MH i2c: E2 08 00 57 76 80 09 00 00 00 00 00 00 3F [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 57 76 00 90 00 41 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]SAM_PROTO_ClearQueue done [15:12:15]KKMCreateOFDPacket [15:12:15]OFDProtocolAddRootSTLVToBuf [15:12:15]FM_MakeSignedData [15:12:15]FM_MakeSignedData [15:12:15]SAM_PROTO_SignData [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 0D 01 02 [15:12:15]Write to MH i2c: E2 08 00 58 76 80 0D 01 02 00 00 00 00 47 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 58 76 00 90 00 42 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]wFMCommunicate request_size=255 [15:12:15]MH_SAM_APDU [15: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 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 EB 00 00 00 F4 03 04 00 D4 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 12 01 00 35 04 06 00 D1 [15:12:15]Write to MH i2c: E2 02 01 59 76 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 EB 00 00 00 F4 03 04 00 D4 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 12 01 00 35 04 06 00 D1 00 00 20 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 03 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 03 00 59 76 00 90 00 43 [15:12:16]RAPDU: 90 00 [15:12:16]wFMCommunicate OK [15:12:16]wFMCommunicate request_size=10 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 0D 02 02 05 A2 2A 9A 08 53 [15:12:16]Write to MH i2c: E2 0D 00 5A 76 80 0D 02 02 05 00 A2 2A 9A 08 53 00 00 15 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 03 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 03 00 5A 76 00 90 00 44 [15:12:16]RAPDU: 90 00 [15:12:16]wFMCommunicate OK [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 0D 03 02 [15:12:16]Write to MH i2c: E2 08 00 5B 76 80 0D 03 02 00 00 00 00 4C [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0B 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0B 00 5B 76 00 CD 14 2A 4E 30 42 4E EA 90 00 50 [15:12:16]RAPDU: CD 14 2A 4E 30 42 4E EA 90 00 [15:12:16]wFMCommunicate OK [15:12:16]SAM_PROTO_SignData done [15:12:16]FM_MakeSignedData done [15:12:16]CreateOFDProtocolMessage [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 11 00 00 [15:12:16]Write to MH i2c: E2 08 00 5C 76 80 11 00 00 00 00 00 00 4C [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 5C 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [15:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:12:16]wFMCommunicate OK [15:12:16]CreateOFDProtocolMessage done [15:12:16]OFDSenderStorePacket 70287 [15:12:16]StoreOFDPacket docnum=70287 [15:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 6A 07 01 61 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 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 EB 00 00 00 F4 03 04 00 D4 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 12 01 00 35 04 06 00 D1 A2 2A 9A 08 53 CD 14 2A 4E 30 42 4E EA [15:12:16]CheckFolder [15:12:16]dirname=/storage/ofd_packets [15:12:16]CheckFolder done [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00070287 [15:12:16]NVStorageSaveData ofd_packets/00070287 [15:12:16]File name is /storage/ofd_packets/00070287 [15:12:16]Write 301 bytes [15:12:16]NVStorageSaveData done [15:12:16]OFDSenderStorePacket done [15:12:16]KKMCreateOFDPacket done [15:12:16]NVStorageSaveData kkm_last_timestamp [15:12:16]File name is /storage/kkm_last_timestamp [15:12:16]Write 4 bytes [15:12:16]NVStorageSaveData done [15:12:16]ExternCall_PrintAddStr [15:12:16]wPrintStart [15:12:16]Write to MH i2c: 01 00 00 5D 76 D3 [15:12:16]OFD Sender: Processing packet 70287 [packets to send 18, broken 17] [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00070287 [15:12:16]OFD Sender: To server: pG, [15:12:16]CommunicateWithHost lk.salyk.kg:30040 [15:12:16]ConnectInit lk.salyk.kg [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 5D 76 00 00 00 00 00 FF 0F E8 [15:12:16]RasterBufferAndPrint [15:12:16]line Счет N : (1)2886055 [15:12:16]line ИНН: 02508201610067 [15:12:16]line Контрольно-Кассовый Чек [15:12:16]line ПРОДАЖА [15:12:16]line ТРК (МРК, ГНК) : 13 [15:12:16]line Товар: 2710124500 [15:12:16]line Аи-95-К-5 [15:12:16]line 13.480 * 74.20 [15:12:16]line = 1000.22 [15:12:16]line НДС 12% НСП 1% [15:12:16]line > о реализуемом товаре [15:12:16]line ОКРУГЛЕНИЕ: -0.22 [15:12:16]line ИТОГО: 1000.00 [15:12:16]line Внесено: 1000.00 [15:12:16]line СДАЧА: 0.00 [15:12:16]line НСП 1% : 8.85 [15:12:16]line НДС 12% : 106.22 [15:12:16]line Наличными: 1000.00 [15:12:16]line Безнал.: 0.00 [15:12:16]line Место: АЗС № 85 "Партнер Нефть" [15:12:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:12:16]line СНО: Общий режим [15:12:16]line Чек 235 22.10.2024 15:12 [15:12:16]line Смена: 195 ФФД: 1.0 [15:12:16]line ЗНМ: 0300000167 [15:12:16]line РНМ: 0000000000156251 [15:12:16]line Версия ККМ: v1.0 [15:12:16]line ФМ: 0000000000963346 [15:12:16]line ФД: 70287 [15:12:16]line ФПД: 230494429644883 [15:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70287&fm=230494429644883&tin=02508201610067®Number=0000000000156251&sum=100000 [15:12:16]Connected sock=10 [15: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 34 36 0F 01 00 00 2C 6A 07 01 61 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 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 EB 00 00 00 F4 03 04 00 D4 C0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 12 01 00 35 04 06 00 D1 A2 2A 9A 08 53 CD 14 2A 4E 30 42 4E EA [15:12:16]written 0, free lines is 4095 [15: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 34 36 4F 00 00 00 81 80 47 00 29 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 12 01 00 F4 03 04 00 74 6A 17 67 B6 04 01 00 00 BE 28 02 62 E3 39 00 59 [15:12:16]CommunicateWithHost err = 0 [15:12:16]CheckOFDResponse [15:12:16]1017 (14) - 77093643461234 [15:12:16]1041 (16) - 0000000000963346 [15:12:16]1040 (4) - 70287 [15:12:16]1012 (4) - 22.10.2024 09:03 [15:12:16]1206 (1) - 0 [15:12:16]OFD Sender: Remove packet 70287 [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00070287 [15:12:16]NVStorageDeleteData [15:12:17]Write to MH i2c: 01 00 00 88 76 FE [15:12:17]Write i2c OK [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: 01 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: 01 07 00 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: 01 07 00 88 76 00 00 00 00 00 F0 0C 01 [15:12:17]RasterBufferAndPrint [15:12:17]line [15:12:17]line [15:12:17]line [15:12:17]line [15:12:17]line [15:12:17]written 0, free lines is 3321 [15:12:17]MH_Cut [15:12:17]Write to MH i2c: D1 01 00 8F 76 01 D7 [15:12:17]Write i2c OK [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: D1 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: D1 01 00 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: D1 01 00 8F 76 00 D6 [15:12:17]Write to MH i2c: 01 00 00 90 76 06 [15:12:17]Write i2c OK [15:12:17]MH_I2C_Read... [15:12:17]OFD Sender: No OFD packet to send [15:12:17]*** Cut start [15:12:17]*** Partial cut [15:12:17]*** CUTSNS_PIN = 1 [15:12:17]*** CUTSNS_PIN = 0 [15:12:17]*** Brake cut motor [15:12:18]Read from MH i2c: 01 [15:12:18]MH_I2C_Read... [15:12:18]*** Stop cut motor [15:12:18]*** Cut end [15:12:18]Read from MH i2c: 01 07 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: 01 07 00 90 76 00 00 00 00 00 FF 0F 1B [15:12:18]process_action close_receipt done [15:12:18]requested_data is exist [15:12:18]produce_requested_data [15:12:18]requested_item fm.sn is exist - process it [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 11 00 00 [15:12:18]Write to MH i2c: E2 08 00 91 76 80 11 00 00 00 00 00 00 81 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 17 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 17 00 91 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [15:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:12:18]wFMCommunicate OK [15:12:18]requested_item fd.num is exist - process it [15:12:18]SAM_PROTO_GetFieldsCounters [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 13 00 00 [15:12:18]Write to MH i2c: E2 08 00 92 76 80 13 00 00 00 00 00 00 84 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 62 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 62 00 92 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 12 01 00 0E 04 04 00 C3 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 C5 [15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 12 01 00 0E 04 04 00 C3 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:12:18]wFMCommunicate OK [15:12:18]SAM_PROTO_GetFieldsCounters done [15:12:18]requested_item shift.num is exist - process it [15:12:18]requested_item shift.opened is exist - process it [15:12:18]req_shift_opened [15:12:18]FM_GetShiftState [15:12:18]SAM_PROTO_GetShiftState [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 13 01 00 [15:12:18]Write to MH i2c: E2 08 00 93 76 80 13 01 00 00 00 00 00 86 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0E 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0E 00 93 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 74 [15:12:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:12:18]wFMCommunicate OK [15:12:18]SAM_PROTO_GetShiftState done [15:12:18]FM_GetShiftState done [15:12:18]req_shift_opened done [15:12:18]requested_item shift.open_date is exist - process it [15:12:18]req_shift_open_date [15:12:18]req_shift_open_date done [15:12:18]produce_requested_data done [15:12:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70287,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:12:18]process_action_free close_receipt [15:12:18]json_value_free [15:12:18]json_value_free done [15:12:18]process_json_proto returns [15:12:18]Send response to host [15:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70287,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:12:18]free response buf [15:12:18]execute_script done [15:12:18]execute_script returns [15:12:18]free content buf [15:12:18]Sock 9.Close socket [15:12:18]Sock 9.Thread stoped [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:13]accept exits with 7 [15:20:13]New connection [15:20:13]New thread 3067026788 created [15:20:13]Thread 3067170148 joined [15:20:13]Waiting for new connection... [15:20:13] Sock 7.Parse request [15:20:13]Sock 7.Check first char [15:20:13]Sock 7.First char is OK [15:20:13]request: POST /json_proto HTTP/1.0 [15:20:13]Method: POST [15:20:13]URL: /json_proto [15:20:13]Method is POST - this is cgi request [15:20:13]url: /json_proto [15:20:13]query_string will be loaded in cgi processing [15:20:13]execute_cgi json_proto POST (null) [15:20:13]execute_cgi path=json_proto method=POST [15:20:13]POST find Content-Length [15:20:13]Host: 172.17.50.3:8080 [15:20:13]Content-Length: 686 [15:20:13]Content-Type: application/json [15:20:13] [15:20:13]POST finish read [15:20:13]Found Content-Length = 686 [15:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 62.760, "sum" : 2441.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:13]execute_script... [15:20: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)2886056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 62.760, "sum" : 2441.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:13]POST & json_proto [15:20:13]process_json_proto [15:20:13]json parsed OK: [15:20:13]protocol is kg_v1.0 [15:20:13]action value=close_receipt [15:20:13]process_action close_receipt [15:20:13]cmd_close_receipt [15:20:13]MH_GetDate [15:20:13]Write to MH i2c: F0 00 00 94 76 F9 [15:20:13]Write i2c OK [15:20:13]MH_I2C_Read... [15:20:13]Read from MH i2c: F0 [15:20:13]MH_I2C_Read... [15:20:13]Read from MH i2c: F0 09 00 [15:20:13]MH_I2C_Read... [15:20:13]Read from MH i2c: F0 09 00 94 76 00 B3 C2 17 67 6B 98 1E 66 7C [15:20:13]GetLastDocTimeStamp 1729609940 [15:20:13]current date 1729610419 [15:20:13]FM_GetShiftState [15:20:13]SAM_PROTO_GetShiftState [15:20:13]wFMCommunicate request_size=4 [15:20:13]MH_SAM_APDU [15:20:13]CAPDU: 80 13 01 00 [15:20:13]Write to MH i2c: E2 08 00 95 76 80 13 01 00 00 00 00 00 88 [15:20:13]Write i2c OK [15:20:13]MH_I2C_Read... [15:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:13]Read from MH i2c: E2 [15:20:13]MH_I2C_Read... [15:20:13]Read from MH i2c: E2 0E 00 [15:20:13]MH_I2C_Read... [15:20:13]Read from MH i2c: E2 0E 00 95 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 76 [15:20:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:20:13]wFMCommunicate OK [15:20:13]SAM_PROTO_GetShiftState done [15:20:13]FM_GetShiftState done [15:20:13]opened in 1729555832 [15:20:13]opened+sec_in_day 1729642232 [15:20:13]quantity*price = 244136 [15:20:13]sum+1 = 244137 [15:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 2441.00 Внесено: 4000.00 СДАЧА: 1559.00 НСП 1% : 21.60 НДС 12% : 259.26 Наличными: 2441.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 236 22.10.2024 15:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70288 ФПД: 254292606408156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70288&fm=254292606408156&tin=02508201610067®Number=0000000000156251&sum=244100 [15:20:15]StoreToDocumentArchive [15:20:15]shift 195 fd 70288 [15:20:15]save to /storage/0195/doc_00070288 [15:20:15]save last doc name /storage/0195/doc_00070288 to /storage/kkm_last_doc_name [15:20:15]save OK [15:20:15]Clear old archive folders... [15:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:20:15]tlvbuf is 011CD8F0 [15:20:15]SAM_PROTO_ClearQueue [15:20:15]wFMCommunicate request_size=4 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 09 00 00 [15:20:15]Write to MH i2c: E2 08 00 A2 76 80 09 00 00 00 00 00 00 8A [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 A2 76 00 90 00 8C [15:20:15]RAPDU: 90 00 [15:20:15]wFMCommunicate OK [15:20:15]SAM_PROTO_ClearQueue done [15:20:15]KKMCreateOFDPacket [15:20:15]OFDProtocolAddRootSTLVToBuf [15:20:15]FM_MakeSignedData [15:20:15]FM_MakeSignedData [15:20:15]SAM_PROTO_SignData [15:20:15]wFMCommunicate request_size=4 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 0D 01 02 [15:20:15]Write to MH i2c: E2 08 00 A3 76 80 0D 01 02 00 00 00 00 92 [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 A3 76 00 90 00 8D [15:20:15]RAPDU: 90 00 [15:20:15]wFMCommunicate OK [15:20:15]wFMCommunicate request_size=255 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 F5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 65 00 00 00 00 07 04 06 00 84 B9 03 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 B3 C2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 12 01 00 35 04 06 00 E7 47 [15:20:15]Write to MH i2c: E2 02 01 A4 76 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 F5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 65 00 00 00 00 07 04 06 00 84 B9 03 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 B3 C2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 12 01 00 35 04 06 00 E7 47 00 00 1C [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 A4 76 00 90 00 8E [15:20:15]RAPDU: 90 00 [15:20:15]wFMCommunicate OK [15:20:15]wFMCommunicate request_size=9 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 0D 02 02 04 1C 79 55 DC [15:20:15]Write to MH i2c: E2 0C 00 A5 76 80 0D 02 02 04 00 1C 79 55 DC 00 00 63 [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 03 00 A5 76 00 90 00 8F [15:20:15]RAPDU: 90 00 [15:20:15]wFMCommunicate OK [15:20:15]wFMCommunicate request_size=4 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 0D 03 02 [15:20:15]Write to MH i2c: E2 08 00 A6 76 80 0D 03 02 00 00 00 00 97 [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 0B 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 0B 00 A6 76 00 27 AB B9 E9 1D 39 96 3B 90 00 33 [15:20:15]RAPDU: 27 AB B9 E9 1D 39 96 3B 90 00 [15:20:15]wFMCommunicate OK [15:20:15]SAM_PROTO_SignData done [15:20:15]FM_MakeSignedData done [15:20:15]CreateOFDProtocolMessage [15:20:15]wFMCommunicate request_size=4 [15:20:15]MH_SAM_APDU [15:20:15]CAPDU: 80 11 00 00 [15:20:15]Write to MH i2c: E2 08 00 A7 76 80 11 00 00 00 00 00 00 97 [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:15]Read from MH i2c: E2 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 17 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: E2 17 00 A7 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [15:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:20:15]wFMCommunicate OK [15:20:15]CreateOFDProtocolMessage done [15:20:15]OFDSenderStorePacket 70288 [15:20:15]StoreOFDPacket docnum=70288 [15:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 33 74 06 01 B3 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 F5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 65 00 00 00 00 07 04 06 00 84 B9 03 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 B3 C2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 12 01 00 35 04 06 00 E7 47 1C 79 55 DC 27 AB B9 E9 1D 39 96 3B [15:20:15]CheckFolder [15:20:15]dirname=/storage/ofd_packets [15:20:15]CheckFolder done [15:20:15]ProducePacketName [15:20:15]name=ofd_packets/00070288 [15:20:15]NVStorageSaveData ofd_packets/00070288 [15:20:15]File name is /storage/ofd_packets/00070288 [15:20:15]Write 300 bytes [15:20:15]NVStorageSaveData done [15:20:15]OFDSenderStorePacket done [15:20:15]KKMCreateOFDPacket done [15:20:15]NVStorageSaveData kkm_last_timestamp [15:20:15]File name is /storage/kkm_last_timestamp [15:20:15]Write 4 bytes [15:20:15]NVStorageSaveData done [15:20:15]ExternCall_PrintAddStr [15:20:15]wPrintStart [15:20:15]Write to MH i2c: 01 00 00 A8 76 1E [15:20:15]OFD Sender: Processing packet 70288 [packets to send 18, broken 17] [15:20:15]ProducePacketName [15:20:15]name=ofd_packets/00070288 [15:20:15]OFD Sender: To server: pG, [15:20:15]CommunicateWithHost lk.salyk.kg:30040 [15:20:15]ConnectInit lk.salyk.kg [15:20:15]Write i2c OK [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: 01 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: 01 07 00 [15:20:15]MH_I2C_Read... [15:20:15]Read from MH i2c: 01 07 00 A8 76 00 00 00 00 00 FF 0F 33 [15:20:15]RasterBufferAndPrint [15:20:15]line Счет N : (1)2886056 [15:20:15]line ИНН: 02508201610067 [15:20:15]line Контрольно-Кассовый Чек [15:20:15]line ПРОДАЖА [15:20:15]line ТРК (МРК, ГНК) : 71 [15:20:15]line Товар: 2711129700 [15:20:15]line ГАЗ-К-3 [15:20:15]line 62.760 * 38.90 [15:20:15]line = 2441.36 [15:20:15]line НДС 12% НСП 1% [15:20:15]line > о реализуемом товаре [15:20:15]line ОКРУГЛЕНИЕ: -0.36 [15:20:15]line ИТОГО: 2441.00 [15:20:15]line Внесено: 4000.00 [15:20:15]line СДАЧА: 1559.00 [15:20:15]line НСП 1% : 21.60 [15:20:15]line НДС 12% : 259.26 [15:20:15]line Наличными: 2441.00 [15:20:15]line Безнал.: 0.00 [15:20:15]line Место: АЗС № 85 "Партнер Нефть" [15:20:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:20:15]line СНО: Общий режим [15:20:15]line Чек 236 22.10.2024 15:20 [15:20:15]line Смена: 195 ФФД: 1.0 [15:20:15]line ЗНМ: 0300000167 [15:20:15]line РНМ: 0000000000156251 [15:20:15]line Версия ККМ: v1.0 [15:20:15]line ФМ: 0000000000963346 [15:20:15]line ФД: 70288 [15:20:15]line ФПД: 254292606408156 [15:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70288&fm=254292606408156&tin=02508201610067®Number=0000000000156251&sum=244100 [15:20:15]Connected sock=10 [15:20: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 34 36 0E 01 00 00 33 74 06 01 B3 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 F5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A8 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 65 00 00 00 00 07 04 06 00 84 B9 03 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 B3 C2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 12 01 00 35 04 06 00 E7 47 1C 79 55 DC 27 AB B9 E9 1D 39 96 3B [15:20:15]written 0, free lines is 4095 [15:20: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 34 36 4F 00 00 00 66 AB 47 00 5D 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 34 36 10 04 04 00 90 12 01 00 F4 03 04 00 54 6C 17 67 B6 04 01 00 00 1C 36 7E 7C 96 40 E0 33 [15:20:16]CommunicateWithHost err = 0 [15:20:16]CheckOFDResponse [15:20:16]1017 (14) - 77093643461234 [15:20:16]1041 (16) - 0000000000963346 [15:20:16]1040 (4) - 70288 [15:20:16]1012 (4) - 22.10.2024 09:11 [15:20:16]1206 (1) - 0 [15:20:16]OFD Sender: Remove packet 70288 [15:20:16]ProducePacketName [15:20:16]name=ofd_packets/00070288 [15:20:16]NVStorageDeleteData [15:20:16]Write to MH i2c: 01 00 00 D3 76 49 [15:20:16]Write i2c OK [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: 01 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: 01 07 00 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: 01 07 00 D3 76 00 00 00 00 00 ED 0C 49 [15:20:16]RasterBufferAndPrint [15:20:16]line [15:20:16]line [15:20:16]line [15:20:16]line [15:20:16]line [15:20:16]written 0, free lines is 3318 [15:20:16]MH_Cut [15:20:16]Write to MH i2c: D1 01 00 DA 76 01 22 [15:20:16]Write i2c OK [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: D1 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: D1 01 00 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: D1 01 00 DA 76 00 21 [15:20:16]Write to MH i2c: 01 00 00 DB 76 51 [15:20:16]Write i2c OK [15:20:16]MH_I2C_Read... [15:20:16]OFD Sender: No OFD packet to send [15:20:17]*** Cut start [15:20:17]*** Partial cut [15:20:17]*** CUTSNS_PIN = 1 [15:20:17]*** CUTSNS_PIN = 0 [15:20:17]*** Brake cut motor [15:20:17]Read from MH i2c: 01 [15:20:17]MH_I2C_Read... [15:20:17]*** Stop cut motor [15:20:17]*** Cut end [15:20:17]Read from MH i2c: 01 07 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: 01 07 00 DB 76 00 00 00 00 00 FF 0F 66 [15:20:17]process_action close_receipt done [15:20:17]requested_data is exist [15:20:17]produce_requested_data [15:20:17]requested_item fm.sn is exist - process it [15:20:17]wFMCommunicate request_size=4 [15:20:17]MH_SAM_APDU [15:20:17]CAPDU: 80 11 00 00 [15:20:17]Write to MH i2c: E2 08 00 DC 76 80 11 00 00 00 00 00 00 CC [15:20:17]Write i2c OK [15:20:17]MH_I2C_Read... [15:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:17]Read from MH i2c: E2 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 17 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 17 00 DC 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [15:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:20:17]wFMCommunicate OK [15:20:17]requested_item fd.num is exist - process it [15:20:17]SAM_PROTO_GetFieldsCounters [15:20:17]wFMCommunicate request_size=4 [15:20:17]MH_SAM_APDU [15:20:17]CAPDU: 80 13 00 00 [15:20:17]Write to MH i2c: E2 08 00 DD 76 80 13 00 00 00 00 00 00 CF [15:20:17]Write i2c OK [15:20:17]MH_I2C_Read... [15:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:17]Read from MH i2c: E2 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 62 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 62 00 DD 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 12 01 00 0E 04 04 00 C3 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 14 [15:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 12 01 00 0E 04 04 00 C3 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:20:17]wFMCommunicate OK [15:20:17]SAM_PROTO_GetFieldsCounters done [15:20:17]requested_item shift.num is exist - process it [15:20:17]requested_item shift.opened is exist - process it [15:20:17]req_shift_opened [15:20:17]FM_GetShiftState [15:20:17]SAM_PROTO_GetShiftState [15:20:17]wFMCommunicate request_size=4 [15:20:17]MH_SAM_APDU [15:20:17]CAPDU: 80 13 01 00 [15:20:17]Write to MH i2c: E2 08 00 DE 76 80 13 01 00 00 00 00 00 D1 [15:20:17]Write i2c OK [15:20:17]MH_I2C_Read... [15:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:17]Read from MH i2c: E2 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 0E 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 0E 00 DE 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [15:20:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:20:17]wFMCommunicate OK [15:20:17]SAM_PROTO_GetShiftState done [15:20:17]FM_GetShiftState done [15:20:17]req_shift_opened done [15:20:17]requested_item shift.open_date is exist - process it [15:20:17]req_shift_open_date [15:20:17]req_shift_open_date done [15:20:17]produce_requested_data done [15:20:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70288,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:20:17]process_action_free close_receipt [15:20:17]json_value_free [15:20:17]json_value_free done [15:20:17]process_json_proto returns [15:20:17]Send response to host [15:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70288,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:20:17]free response buf [15:20:17]execute_script done [15:20:17]execute_script returns [15:20:17]free content buf [15:20:17]Sock 7.Close socket [15:20:17]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [15:22:13]New connection [15:22:13]New thread 3067170148 created [15:22:13]Thread 3067026788 joined [15:22:13]Waiting for new connection... [15:22:13] Sock 9.Parse request [15:22:13]Sock 9.Check first char [15:22:13]Sock 9.First char is OK [15:22:13]request: POST /json_proto HTTP/1.0 [15:22:13]Method: POST [15:22:13]URL: /json_proto [15:22:13]Method is POST - this is cgi request [15:22:13]url: /json_proto [15:22:13]query_string will be loaded in cgi processing [15:22:13]execute_cgi json_proto POST (null) [15:22:13]execute_cgi path=json_proto method=POST [15:22:13]POST find Content-Length [15:22:13]Host: 172.17.50.3:8080 [15:22:13]Content-Length: 680 [15:22:13]Content-Type: application/json [15:22:13] [15:22:13]POST finish read [15:22:13]Found Content-Length = 680 [15:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [15:22:13]execute_script... [15:22: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)2886057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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" ] } } [15:22:13]POST & json_proto [15:22:13]process_json_proto [15:22:13]json parsed OK: [15:22:13]protocol is kg_v1.0 [15:22:13]action value=close_receipt [15:22:13]process_action close_receipt [15:22:13]cmd_close_receipt [15:22:13]MH_GetDate [15:22:13]Write to MH i2c: F0 00 00 DF 76 44 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 09 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 09 00 DF 76 00 2B C3 17 67 6B 98 1E 66 40 [15:22:13]GetLastDocTimeStamp 1729610419 [15:22:13]current date 1729610539 [15:22:13]FM_GetShiftState [15:22:13]SAM_PROTO_GetShiftState [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 13 01 00 [15:22:13]Write to MH i2c: E2 08 00 E0 76 80 13 01 00 00 00 00 00 D3 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 E0 76 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C1 [15:22:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:22:13]wFMCommunicate OK [15:22:13]SAM_PROTO_GetShiftState done [15:22:13]FM_GetShiftState done [15:22:13]opened in 1729555832 [15:22:13]opened+sec_in_day 1729642232 [15:22:13]quantity*price = 200025 [15:22:13]sum+1 = 200026 [15:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 237 22.10.2024 15:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70289 ФПД: 159593489376343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152219&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70289&fm=159593489376343&tin=02508201610067®Number=0000000000156251&sum=200000 [15:22:14]StoreToDocumentArchive [15:22:14]shift 195 fd 70289 [15:22:14]save to /storage/0195/doc_00070289 [15:22:14]save last doc name /storage/0195/doc_00070289 to /storage/kkm_last_doc_name [15:22:14]save OK [15:22:14]Clear old archive folders... [15:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:14]tlvbuf is 012A1440 [15:22:14]SAM_PROTO_ClearQueue [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 09 00 00 [15:22:14]Write to MH i2c: E2 08 00 ED 76 80 09 00 00 00 00 00 00 D5 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 ED 76 00 90 00 D7 [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]SAM_PROTO_ClearQueue done [15:22:14]KKMCreateOFDPacket [15:22:14]OFDProtocolAddRootSTLVToBuf [15:22:14]FM_MakeSignedData [15:22:14]FM_MakeSignedData [15:22:14]SAM_PROTO_SignData [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 0D 01 02 [15:22:14]Write to MH i2c: E2 08 00 EE 76 80 0D 01 02 00 00 00 00 DD [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 EE 76 00 90 00 D8 [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]wFMCommunicate request_size=255 [15:22:14]MH_SAM_APDU [15:22:14]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 ED 00 00 00 F4 03 04 00 2B C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 12 01 00 35 04 06 00 91 26 41 3E [15:22:14]Write to MH i2c: E2 02 01 EF 76 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 ED 00 00 00 F4 03 04 00 2B C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 12 01 00 35 04 06 00 91 26 41 3E 00 00 40 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 EF 76 00 90 00 D9 [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]wFMCommunicate request_size=7 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 0D 02 02 02 24 57 [15:22:14]Write to MH i2c: E2 0A 00 F0 76 80 0D 02 02 02 00 24 57 00 00 5F [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 F0 76 00 90 00 DA [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 0D 03 02 [15:22:14]Write to MH i2c: E2 08 00 F1 76 80 0D 03 02 00 00 00 00 E2 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 0B 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 0B 00 F1 76 00 D9 28 76 22 AB 5D 4C FC 90 00 CC [15:22:14]RAPDU: D9 28 76 22 AB 5D 4C FC 90 00 [15:22:14]wFMCommunicate OK [15:22:14]SAM_PROTO_SignData done [15:22:14]FM_MakeSignedData done [15:22:14]CreateOFDProtocolMessage [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 11 00 00 [15:22:14]Write to MH i2c: E2 08 00 F2 76 80 11 00 00 00 00 00 00 E2 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 17 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 17 00 F2 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [15:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:14]wFMCommunicate OK [15:22:14]CreateOFDProtocolMessage done [15:22:14]OFDSenderStorePacket 70289 [15:22:14]StoreOFDPacket docnum=70289 [15:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 65 B0 04 01 0E C6 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 ED 00 00 00 F4 03 04 00 2B C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 12 01 00 35 04 06 00 91 26 41 3E 24 57 D9 28 76 22 AB 5D 4C FC [15:22:14]CheckFolder [15:22:14]dirname=/storage/ofd_packets [15:22:14]CheckFolder done [15:22:14]ProducePacketName [15:22:14]name=ofd_packets/00070289 [15:22:14]NVStorageSaveData ofd_packets/00070289 [15:22:14]File name is /storage/ofd_packets/00070289 [15:22:14]Write 298 bytes [15:22:14]NVStorageSaveData done [15:22:14]OFDSenderStorePacket done [15:22:14]KKMCreateOFDPacket done [15:22:14]NVStorageSaveData kkm_last_timestamp [15:22:14]File name is /storage/kkm_last_timestamp [15:22:14]Write 4 bytes [15:22:14]NVStorageSaveData done [15:22:14]ExternCall_PrintAddStr [15:22:14]wPrintStart [15:22:14]Write to MH i2c: 01 00 00 F3 76 69 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 07 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 07 00 F3 76 00 00 00 00 00 FF 0F 7E [15:22:14]RasterBufferAndPrint [15:22:14]line Счет N : (1)2886057 [15:22:14]line ИНН: 02508201610067 [15:22:14]line Контрольно-Кассовый Чек [15:22:14]line ПРОДАЖА [15:22:14]line ТРК (МРК, ГНК) : 61 [15:22:14]line Товар: 2710194210 [15:22:14]line ДТ-К-5 [15:22:14]line 26.250 * 76.20 [15:22:14]line = 2000.25 [15:22:14]line НДС 12% НСП 1% [15:22:14]line > о реализуемом товаре [15:22:14]line ОКРУГЛЕНИЕ: -0.25 [15:22:14]line ИТОГО: 2000.00 [15:22:14]line Внесено: 2000.00 [15:22:14]line СДАЧА: 0.00 [15:22:14]line НСП 1% : 17.70 [15:22:14]line НДС 12% : 212.42 [15:22:14]line Наличными: 2000.00 [15:22:14]line Безнал.: 0.00 [15:22:14]line Место: АЗС № 85 "Партнер Нефть" [15:22:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:22:14]line СНО: Общий режим [15:22:14]line Чек 237 22.10.2024 15:22 [15:22:14]line Смена: 195 ФФД: 1.0 [15:22:14]line ЗНМ: 0300000167 [15:22:14]line РНМ: 0000000000156251 [15:22:14]line Версия ККМ: v1.0 [15:22:14]line ФМ: 0000000000963346 [15:22:14]line ФД: 70289 [15:22:14]line ФПД: 159593489376343 [15:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152219&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70289&fm=159593489376343&tin=02508201610067®Number=0000000000156251&sum=200000 [15:22:15]OFD Sender: Processing packet 70289 [packets to send 18, broken 17] [15:22:15]ProducePacketName [15:22:15]name=ofd_packets/00070289 [15:22:15]OFD Sender: To server: pG, [15:22:15]CommunicateWithHost lk.salyk.kg:30040 [15:22:15]ConnectInit lk.salyk.kg [15:22:15]written 0, free lines is 4095 [15:22:15]Connected sock=10 [15:22: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 34 36 0C 01 00 00 65 B0 04 01 0E C6 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 ED 00 00 00 F4 03 04 00 2B C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 12 01 00 35 04 06 00 91 26 41 3E 24 57 D9 28 76 22 AB 5D 4C FC [15:22: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 34 36 4F 00 00 00 5E 8B 47 00 30 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 34 36 10 04 04 00 91 12 01 00 F4 03 04 00 CB 6C 17 67 B6 04 01 00 00 AE D8 D3 45 2A 0C 54 FE [15:22:15]CommunicateWithHost err = 0 [15:22:15]CheckOFDResponse [15:22:15]1017 (14) - 77093643461234 [15:22:15]1041 (16) - 0000000000963346 [15:22:15]1040 (4) - 70289 [15:22:15]1012 (4) - 22.10.2024 09:13 [15:22:15]1206 (1) - 0 [15:22:15]OFD Sender: Remove packet 70289 [15:22:15]ProducePacketName [15:22:15]name=ofd_packets/00070289 [15:22:15]NVStorageDeleteData [15:22:15]Write to MH i2c: 01 00 00 1E 77 95 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 1E 77 00 00 00 00 00 FA 0C A2 [15:22:15]RasterBufferAndPrint [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]written 0, free lines is 3328 [15:22:15]MH_Cut [15:22:15]Write to MH i2c: D1 01 00 25 77 01 6E [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: D1 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: D1 01 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: D1 01 00 25 77 00 6D [15:22:15]Write to MH i2c: 01 00 00 26 77 9D [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]OFD Sender: No OFD packet to send [15:22:16]*** Cut start [15:22:16]*** Partial cut [15:22:16]*** CUTSNS_PIN = 1 [15:22:16]*** CUTSNS_PIN = 0 [15:22:16]*** Brake cut motor [15:22:16]Read from MH i2c: 01 [15:22:16]MH_I2C_Read... [15:22:16]*** Stop cut motor [15:22:16]*** Cut end [15:22:16]Read from MH i2c: 01 07 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 07 00 26 77 00 00 00 00 00 FF 0F B2 [15:22:16]process_action close_receipt done [15:22:16]requested_data is exist [15:22:16]produce_requested_data [15:22:16]requested_item fm.sn is exist - process it [15:22:16]wFMCommunicate request_size=4 [15:22:16]MH_SAM_APDU [15:22:16]CAPDU: 80 11 00 00 [15:22:16]Write to MH i2c: E2 08 00 27 77 80 11 00 00 00 00 00 00 18 [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:16]Read from MH i2c: E2 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 17 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 17 00 27 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [15:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:16]wFMCommunicate OK [15:22:16]requested_item fd.num is exist - process it [15:22:16]SAM_PROTO_GetFieldsCounters [15:22:16]wFMCommunicate request_size=4 [15:22:16]MH_SAM_APDU [15:22:16]CAPDU: 80 13 00 00 [15:22:16]Write to MH i2c: E2 08 00 28 77 80 13 00 00 00 00 00 00 1B [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:17]Read from MH i2c: E2 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 62 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 62 00 28 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 12 01 00 0E 04 04 00 C3 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 64 [15:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 12 01 00 0E 04 04 00 C3 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:22:17]wFMCommunicate OK [15:22:17]SAM_PROTO_GetFieldsCounters done [15:22:17]requested_item shift.num is exist - process it [15:22:17]requested_item shift.opened is exist - process it [15:22:17]req_shift_opened [15:22:17]FM_GetShiftState [15:22:17]SAM_PROTO_GetShiftState [15:22:17]wFMCommunicate request_size=4 [15:22:17]MH_SAM_APDU [15:22:17]CAPDU: 80 13 01 00 [15:22:17]Write to MH i2c: E2 08 00 29 77 80 13 01 00 00 00 00 00 1D [15:22:17]Write i2c OK [15:22:17]MH_I2C_Read... [15:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:17]Read from MH i2c: E2 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 0E 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 0E 00 29 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0B [15:22:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:22:17]wFMCommunicate OK [15:22:17]SAM_PROTO_GetShiftState done [15:22:17]FM_GetShiftState done [15:22:17]req_shift_opened done [15:22:17]requested_item shift.open_date is exist - process it [15:22:17]req_shift_open_date [15:22:17]req_shift_open_date done [15:22:17]produce_requested_data done [15:22:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70289,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:22:17]process_action_free close_receipt [15:22:17]json_value_free [15:22:17]json_value_free done [15:22:17]process_json_proto returns [15:22:17]Send response to host [15:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70289,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:22:17]free response buf [15:22:17]execute_script done [15:22:17]execute_script returns [15:22:17]free content buf [15:22:17]Sock 9.Close socket [15:22:17]Sock 9.Thread stoped [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]accept exits with 7 [15:22:40]New connection [15:22:40]New thread 3067026788 created [15:22:40]Thread 3067170148 joined [15:22:40]Waiting for new connection... [15:22:40] Sock 7.Parse request [15:22:40]Sock 7.Check first char [15:22:40]Sock 7.First char is OK [15:22:40]request: POST /json_proto HTTP/1.0 [15:22:40]Method: POST [15:22:40]URL: /json_proto [15:22:40]Method is POST - this is cgi request [15:22:40]url: /json_proto [15:22:40]query_string will be loaded in cgi processing [15:22:40]execute_cgi json_proto POST (null) [15:22:40]execute_cgi path=json_proto method=POST [15:22:40]POST find Content-Length [15:22:40]Host: 172.17.50.3:8080 [15:22:40]Content-Length: 678 [15:22:40]Content-Type: application/json [15:22:40] [15:22:40]POST finish read [15:22:40]Found Content-Length = 678 [15:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.720, "sum" : 350.22, "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:22:40]execute_script... [15:22: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)2886059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.720, "sum" : 350.22, "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:22:40]POST & json_proto [15:22:40]process_json_proto [15:22:40]json parsed OK: [15:22:40]protocol is kg_v1.0 [15:22:40]action value=close_receipt [15:22:40]process_action close_receipt [15:22:40]cmd_close_receipt [15:22:40]MH_GetDate [15:22:40]Write to MH i2c: F0 00 00 2A 77 90 [15:22:40]Write i2c OK [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: F0 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: F0 09 00 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: F0 09 00 2A 77 00 46 C3 17 67 6B 98 1E 66 A7 [15:22:40]GetLastDocTimeStamp 1729610539 [15:22:40]current date 1729610566 [15:22:40]FM_GetShiftState [15:22:40]SAM_PROTO_GetShiftState [15:22:40]wFMCommunicate request_size=4 [15:22:40]MH_SAM_APDU [15:22:40]CAPDU: 80 13 01 00 [15:22:40]Write to MH i2c: E2 08 00 2B 77 80 13 01 00 00 00 00 00 1F [15:22:40]Write i2c OK [15:22:40]MH_I2C_Read... [15:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:40]Read from MH i2c: E2 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 0E 00 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 0E 00 2B 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0D [15:22:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:22:40]wFMCommunicate OK [15:22:40]SAM_PROTO_GetShiftState done [15:22:40]FM_GetShiftState done [15:22:40]opened in 1729555832 [15:22:40]opened+sec_in_day 1729642232 [15:22:40]quantity*price = 35022 [15:22:40]sum+1 = 35023 [15:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 238 22.10.2024 15:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70290 ФПД: 123748646938351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70290&fm=123748646938351&tin=02508201610067®Number=0000000000156251&sum=35000 [15:22:41]StoreToDocumentArchive [15:22:41]shift 195 fd 70290 [15:22:41]save to /storage/0195/doc_00070290 [15:22:41]save last doc name /storage/0195/doc_00070290 to /storage/kkm_last_doc_name [15:22:41]save OK [15:22:41]Clear old archive folders... [15:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:41]tlvbuf is 0137A4A0 [15:22:41]SAM_PROTO_ClearQueue [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 09 00 00 [15:22:41]Write to MH i2c: E2 08 00 38 77 80 09 00 00 00 00 00 00 21 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 38 77 00 90 00 23 [15:22:41]RAPDU: 90 00 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_ClearQueue done [15:22:41]KKMCreateOFDPacket [15:22:41]OFDProtocolAddRootSTLVToBuf [15:22:41]FM_MakeSignedData [15:22:41]FM_MakeSignedData [15:22:41]SAM_PROTO_SignData [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 0D 01 02 [15:22:41]Write to MH i2c: E2 08 00 39 77 80 0D 01 02 00 00 00 00 29 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 39 77 00 90 00 24 [15:22:41]RAPDU: 90 00 [15:22:41]wFMCommunicate OK [15:22:41]wFMCommunicate request_size=255 [15:22:41]MH_SAM_APDU [15:22: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 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 EE 00 00 00 F4 03 04 00 46 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 12 01 00 35 04 06 00 70 [15:22:41]Write to MH i2c: E2 02 01 3A 77 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 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 EE 00 00 00 F4 03 04 00 46 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 12 01 00 35 04 06 00 70 00 00 BA [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 3A 77 00 90 00 25 [15:22:41]RAPDU: 90 00 [15:22:41]wFMCommunicate OK [15:22:41]wFMCommunicate request_size=10 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 0D 02 02 05 8C 7A 24 66 EF [15:22:41]Write to MH i2c: E2 0D 00 3B 77 80 0D 02 02 05 00 8C 7A 24 66 EF 00 00 B5 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 03 00 3B 77 00 90 00 26 [15:22:41]RAPDU: 90 00 [15:22:41]wFMCommunicate OK [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 0D 03 02 [15:22:41]Write to MH i2c: E2 08 00 3C 77 80 0D 03 02 00 00 00 00 2E [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0B 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0B 00 3C 77 00 05 CC 32 DB 2B 25 A5 D6 90 00 D8 [15:22:41]RAPDU: 05 CC 32 DB 2B 25 A5 D6 90 00 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_SignData done [15:22:41]FM_MakeSignedData done [15:22:41]CreateOFDProtocolMessage [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 11 00 00 [15:22:41]Write to MH i2c: E2 08 00 3D 77 80 11 00 00 00 00 00 00 2E [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 17 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 17 00 3D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [15:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:41]wFMCommunicate OK [15:22:41]CreateOFDProtocolMessage done [15:22:41]OFDSenderStorePacket 70290 [15:22:41]StoreOFDPacket docnum=70290 [15:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9A AE 07 01 C0 8D 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 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 EE 00 00 00 F4 03 04 00 46 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 12 01 00 35 04 06 00 70 8C 7A 24 66 EF 05 CC 32 DB 2B 25 A5 D6 [15:22:41]CheckFolder [15:22:41]dirname=/storage/ofd_packets [15:22:41]CheckFolder done [15:22:41]ProducePacketName [15:22:41]name=ofd_packets/00070290 [15:22:41]NVStorageSaveData ofd_packets/00070290 [15:22:41]File name is /storage/ofd_packets/00070290 [15:22:41]Write 301 bytes [15:22:41]NVStorageSaveData done [15:22:41]OFDSenderStorePacket done [15:22:41]KKMCreateOFDPacket done [15:22:41]NVStorageSaveData kkm_last_timestamp [15:22:41]File name is /storage/kkm_last_timestamp [15:22:41]Write 4 bytes [15:22:41]NVStorageSaveData done [15:22:41]ExternCall_PrintAddStr [15:22:41]wPrintStart [15:22:41]Write to MH i2c: 01 00 00 3E 77 B5 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: 01 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: 01 07 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: 01 07 00 3E 77 00 00 00 00 00 FF 0F CA [15:22:41]RasterBufferAndPrint [15:22:41]line Счет N : (1)2886059 [15:22:41]line ИНН: 02508201610067 [15:22:41]line Контрольно-Кассовый Чек [15:22:41]line ПРОДАЖА [15:22:41]line ТРК (МРК, ГНК) : 13 [15:22:41]line Товар: 2710124500 [15:22:41]line Аи-95-К-5 [15:22:41]line 4.720 * 74.20 [15:22:41]line = 350.22 [15:22:41]line НДС 12% НСП 1% [15:22:41]line > о реализуемом товаре [15:22:41]line ОКРУГЛЕНИЕ: -0.22 [15:22:41]line ИТОГО: 350.00 [15:22:41]line Внесено: 350.00 [15:22:41]line СДАЧА: 0.00 [15:22:41]line НСП 1% : 3.10 [15:22:41]line НДС 12% : 37.19 [15:22:41]line Наличными: 350.00 [15:22:41]line Безнал.: 0.00 [15:22:41]line Место: АЗС № 85 "Партнер Нефть" [15:22:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:22:41]line СНО: Общий режим [15:22:41]line Чек 238 22.10.2024 15:22 [15:22:41]line Смена: 195 ФФД: 1.0 [15:22:41]line ЗНМ: 0300000167 [15:22:41]line РНМ: 0000000000156251 [15:22:41]line Версия ККМ: v1.0 [15:22:41]line ФМ: 0000000000963346 [15:22:41]line ФД: 70290 [15:22:41]line ФПД: 123748646938351 [15:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70290&fm=123748646938351&tin=02508201610067®Number=0000000000156251&sum=35000 [15:22:42]OFD Sender: Processing packet 70290 [packets to send 18, broken 17] [15:22:42]ProducePacketName [15:22:42]name=ofd_packets/00070290 [15:22:42]OFD Sender: To server: pG, [15:22:42]CommunicateWithHost lk.salyk.kg:30040 [15:22:42]ConnectInit lk.salyk.kg [15:22:42]written 0, free lines is 4095 [15:22:42]Connected sock=9 [15:22: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 34 36 0F 01 00 00 9A AE 07 01 C0 8D 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 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 EE 00 00 00 F4 03 04 00 46 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 12 01 00 35 04 06 00 70 8C 7A 24 66 EF 05 CC 32 DB 2B 25 A5 D6 [15:22: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 34 36 4F 00 00 00 5A A4 47 00 5E 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 34 36 10 04 04 00 92 12 01 00 F4 03 04 00 E6 6C 17 67 B6 04 01 00 00 08 7B F5 FB 07 3A 3D 37 [15:22:42]CommunicateWithHost err = 0 [15:22:42]CheckOFDResponse [15:22:42]1017 (14) - 77093643461234 [15:22:42]1041 (16) - 0000000000963346 [15:22:42]1040 (4) - 70290 [15:22:42]1012 (4) - 22.10.2024 09:14 [15:22:42]1206 (1) - 0 [15:22:42]OFD Sender: Remove packet 70290 [15:22:42]ProducePacketName [15:22:42]name=ofd_packets/00070290 [15:22:42]NVStorageDeleteData [15:22:42]Write to MH i2c: 01 00 00 69 77 E0 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 07 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 07 00 69 77 00 00 00 00 00 FF 0C F2 [15:22:42]RasterBufferAndPrint [15:22:42]line [15:22:42]line [15:22:42]line [15:22:42]line [15:22:42]line [15:22:42]written 0, free lines is 3336 [15:22:42]MH_Cut [15:22:42]Write to MH i2c: D1 01 00 70 77 01 B9 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: D1 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: D1 01 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: D1 01 00 70 77 00 B8 [15:22:42]Write to MH i2c: 01 00 00 71 77 E8 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:43]OFD Sender: No OFD packet to send [15:22:43]*** Cut start [15:22:43]*** Partial cut [15:22:43]*** CUTSNS_PIN = 1 [15:22:43]*** CUTSNS_PIN = 0 [15:22:43]*** Brake cut motor [15:22:44]Read from MH i2c: 01 [15:22:44]MH_I2C_Read... [15:22:44]*** Stop cut motor [15:22:44]*** Cut end [15:22:44]Read from MH i2c: 01 07 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: 01 07 00 71 77 00 00 00 00 00 FF 0F FD [15:22:44]process_action close_receipt done [15:22:44]requested_data is exist [15:22:44]produce_requested_data [15:22:44]requested_item fm.sn is exist - process it [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 11 00 00 [15:22:44]Write to MH i2c: E2 08 00 72 77 80 11 00 00 00 00 00 00 63 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 17 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 17 00 72 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [15:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:44]wFMCommunicate OK [15:22:44]requested_item fd.num is exist - process it [15:22:44]SAM_PROTO_GetFieldsCounters [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 13 00 00 [15:22:44]Write to MH i2c: E2 08 00 73 77 80 13 00 00 00 00 00 00 66 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 62 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 62 00 73 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 12 01 00 0E 04 04 00 C3 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 B3 [15:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 12 01 00 0E 04 04 00 C3 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 [15:22:44]wFMCommunicate OK [15:22:44]SAM_PROTO_GetFieldsCounters done [15:22:44]requested_item shift.num is exist - process it [15:22:44]requested_item shift.opened is exist - process it [15:22:44]req_shift_opened [15:22:44]FM_GetShiftState [15:22:44]SAM_PROTO_GetShiftState [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 13 01 00 [15:22:44]Write to MH i2c: E2 08 00 74 77 80 13 01 00 00 00 00 00 68 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 74 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 56 [15:22:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:22:44]wFMCommunicate OK [15:22:44]SAM_PROTO_GetShiftState done [15:22:44]FM_GetShiftState done [15:22:44]req_shift_opened done [15:22:44]requested_item shift.open_date is exist - process it [15:22:44]req_shift_open_date [15:22:44]req_shift_open_date done [15:22:44]produce_requested_data done [15:22:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70290,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:22:44]process_action_free close_receipt [15:22:44]json_value_free [15:22:44]json_value_free done [15:22:44]process_json_proto returns [15:22:44]Send response to host [15:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70290,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:22:44]free response buf [15:22:44]execute_script done [15:22:44]execute_script returns [15:22:44]free content buf [15:22:44]Sock 7.Close socket [15:22:44]Sock 7.Thread stoped [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:24]accept exits with 10 [15:23:24]New connection [15:23:24]New thread 3067170148 created [15:23:24]Thread 3067026788 joined [15:23:24]Waiting for new connection... [15:23:24] Sock 10.Parse request [15:23:24]Sock 10.Check first char [15:23:24]Sock 10.First char is OK [15:23:24]request: POST /json_proto HTTP/1.0 [15:23:24]Method: POST [15:23:24]URL: /json_proto [15:23:24]Method is POST - this is cgi request [15:23:24]url: /json_proto [15:23:24]query_string will be loaded in cgi processing [15:23:24]execute_cgi json_proto POST (null) [15:23:24]execute_cgi path=json_proto method=POST [15:23:24]POST find Content-Length [15:23:24]Host: 172.17.50.3:8080 [15:23:24]Content-Length: 686 [15:23:24]Content-Type: application/json [15:23:24] [15:23:24]POST finish read [15:23:24]Found Content-Length = 686 [15:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:23:24]execute_script... [15:23: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)2886058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:23:24]POST & json_proto [15:23:24]process_json_proto [15:23:24]json parsed OK: [15:23:24]protocol is kg_v1.0 [15:23:24]action value=close_receipt [15:23:24]process_action close_receipt [15:23:24]cmd_close_receipt [15:23:24]MH_GetDate [15:23:24]Write to MH i2c: F0 00 00 75 77 DB [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: F0 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: F0 09 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: F0 09 00 75 77 00 72 C3 17 67 6B 98 1E 66 1E [15:23:24]GetLastDocTimeStamp 1729610566 [15:23:24]current date 1729610610 [15:23:24]FM_GetShiftState [15:23:24]SAM_PROTO_GetShiftState [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 13 01 00 [15:23:24]Write to MH i2c: E2 08 00 76 77 80 13 01 00 00 00 00 00 6A [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0E 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0E 00 76 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 58 [15:23:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_GetShiftState done [15:23:24]FM_GetShiftState done [15:23:24]opened in 1729555832 [15:23:24]opened+sec_in_day 1729642232 [15:23:24]quantity*price = 150037 [15:23:24]sum+1 = 150038 [15:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 239 22.10.2024 15:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70291 ФПД: 143362558489388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152330&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70291&fm=143362558489388&tin=02508201610067®Number=0000000000156251&sum=150000 [15:23:25]StoreToDocumentArchive [15:23:25]shift 195 fd 70291 [15:23:25]save to /storage/0195/doc_00070291 [15:23:25]save last doc name /storage/0195/doc_00070291 to /storage/kkm_last_doc_name [15:23:25]save OK [15:23:25]Clear old archive folders... [15:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:23:25]tlvbuf is 011239B0 [15:23:25]SAM_PROTO_ClearQueue [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 09 00 00 [15:23:25]Write to MH i2c: E2 08 00 83 77 80 09 00 00 00 00 00 00 6C [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 03 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 03 00 83 77 00 90 00 6E [15:23:25]RAPDU: 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_ClearQueue done [15:23:25]KKMCreateOFDPacket [15:23:25]OFDProtocolAddRootSTLVToBuf [15:23:25]FM_MakeSignedData [15:23:25]FM_MakeSignedData [15:23:25]SAM_PROTO_SignData [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 0D 01 02 [15:23:25]Write to MH i2c: E2 08 00 84 77 80 0D 01 02 00 00 00 00 74 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 03 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 03 00 84 77 00 90 00 6F [15:23:25]RAPDU: 90 00 [15:23:25]wFMCommunicate OK [15:23:25]wFMCommunicate request_size=255 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 EF 00 00 00 F4 03 04 00 72 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 12 01 00 35 04 06 00 82 63 [15:23:25]Write to MH i2c: E2 02 01 85 77 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 EF 00 00 00 F4 03 04 00 72 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 12 01 00 35 04 06 00 82 63 00 00 1E [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 85 77 00 90 00 70 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]wFMCommunicate request_size=9 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 02 02 04 32 5F 73 2C [15:23:26]Write to MH i2c: E2 0C 00 86 77 80 0D 02 02 04 00 32 5F 73 2C 00 00 AF [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 86 77 00 90 00 71 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 03 02 [15:23:26]Write to MH i2c: E2 08 00 87 77 80 0D 03 02 00 00 00 00 79 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0B 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0B 00 87 77 00 DA 4C 76 DB 97 A5 D8 C8 90 00 CD [15:23:26]RAPDU: DA 4C 76 DB 97 A5 D8 C8 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_SignData done [15:23:26]FM_MakeSignedData done [15:23:26]CreateOFDProtocolMessage [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 11 00 00 [15:23:26]Write to MH i2c: E2 08 00 88 77 80 11 00 00 00 00 00 00 79 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 88 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [15:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:26]wFMCommunicate OK [15:23:26]CreateOFDProtocolMessage done [15:23:26]OFDSenderStorePacket 70291 [15:23:26]StoreOFDPacket docnum=70291 [15:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B7 9C 06 01 3B 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 EF 00 00 00 F4 03 04 00 72 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 12 01 00 35 04 06 00 82 63 32 5F 73 2C DA 4C 76 DB 97 A5 D8 C8 [15:23:26]CheckFolder [15:23:26]dirname=/storage/ofd_packets [15:23:26]CheckFolder done [15:23:26]ProducePacketName [15:23:26]name=ofd_packets/00070291 [15:23:26]NVStorageSaveData ofd_packets/00070291 [15:23:26]File name is /storage/ofd_packets/00070291 [15:23:26]Write 300 bytes [15:23:26]NVStorageSaveData done [15:23:26]OFDSenderStorePacket done [15:23:26]KKMCreateOFDPacket done [15:23:26]NVStorageSaveData kkm_last_timestamp [15:23:26]File name is /storage/kkm_last_timestamp [15:23:26]Write 4 bytes [15:23:26]NVStorageSaveData done [15:23:26]ExternCall_PrintAddStr [15:23:26]wPrintStart [15:23:26]Write to MH i2c: 01 00 00 89 77 00 [15:23:26]OFD Sender: Processing packet 70291 [packets to send 18, broken 17] [15:23:26]ProducePacketName [15:23:26]name=ofd_packets/00070291 [15:23:26]OFD Sender: To server: pG, [15:23:26]CommunicateWithHost lk.salyk.kg:30040 [15:23:26]ConnectInit lk.salyk.kg [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 89 77 00 00 00 00 00 FF 0F 15 [15:23:26]RasterBufferAndPrint [15:23:26]line Счет N : (1)2886058 [15:23:26]line ИНН: 02508201610067 [15:23:26]line Контрольно-Кассовый Чек [15:23:26]line ПРОДАЖА [15:23:26]line ТРК (МРК, ГНК) : 71 [15:23:26]line Товар: 2711129700 [15:23:26]line ГАЗ-К-3 [15:23:26]line 38.570 * 38.90 [15:23:26]line = 1500.37 [15:23:26]line НДС 12% НСП 1% [15:23:26]line > о реализуемом товаре [15:23:26]line ОКРУГЛЕНИЕ: -0.37 [15:23:26]line ИТОГО: 1500.00 [15:23:26]line Внесено: 1500.00 [15:23:26]line СДАЧА: 0.00 [15:23:26]line НСП 1% : 13.28 [15:23:26]line НДС 12% : 159.33 [15:23:26]line Наличными: 1500.00 [15:23:26]line Безнал.: 0.00 [15:23:26]line Место: АЗС № 85 "Партнер Нефть" [15:23:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:26]line СНО: Общий режим [15:23:26]line Чек 239 22.10.2024 15:23 [15:23:26]line Смена: 195 ФФД: 1.0 [15:23:26]line ЗНМ: 0300000167 [15:23:26]line РНМ: 0000000000156251 [15:23:26]line Версия ККМ: v1.0 [15:23:26]line ФМ: 0000000000963346 [15:23:26]line ФД: 70291 [15:23:26]line ФПД: 143362558489388 [15:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152330&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70291&fm=143362558489388&tin=02508201610067®Number=0000000000156251&sum=150000 [15:23:26]Connected sock=9 [15:23: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 34 36 0E 01 00 00 B7 9C 06 01 3B 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 EF 00 00 00 F4 03 04 00 72 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 12 01 00 35 04 06 00 82 63 32 5F 73 2C DA 4C 76 DB 97 A5 D8 C8 [15:23:26]written 0, free lines is 4095 [15:23: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 34 36 4F 00 00 00 A2 72 47 00 19 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 34 36 10 04 04 00 93 12 01 00 F4 03 04 00 13 6D 17 67 B6 04 01 00 00 96 F6 C7 A3 68 E8 8D 25 [15:23:26]CommunicateWithHost err = 0 [15:23:26]CheckOFDResponse [15:23:26]1017 (14) - 77093643461234 [15:23:26]1041 (16) - 0000000000963346 [15:23:26]1040 (4) - 70291 [15:23:26]1012 (4) - 22.10.2024 09:14 [15:23:26]1206 (1) - 0 [15:23:26]OFD Sender: Remove packet 70291 [15:23:26]ProducePacketName [15:23:26]name=ofd_packets/00070291 [15:23:26]NVStorageDeleteData [15:23:27]Write to MH i2c: 01 00 00 B4 77 2B [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 B4 77 00 00 00 00 00 00 0D 3F [15:23:27]RasterBufferAndPrint [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]written 0, free lines is 3337 [15:23:27]MH_Cut [15:23:27]Write to MH i2c: D1 01 00 BB 77 01 04 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 01 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 01 00 BB 77 00 03 [15:23:27]Write to MH i2c: 01 00 00 BC 77 33 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]OFD Sender: No OFD packet to send [15:23:27]*** Cut start [15:23:27]*** Partial cut [15:23:27]*** CUTSNS_PIN = 1 [15:23:27]*** CUTSNS_PIN = 0 [15:23:28]*** Brake cut motor [15:23:28]Read from MH i2c: 01 [15:23:28]MH_I2C_Read... [15:23:28]*** Stop cut motor [15:23:28]*** Cut end [15:23:28]Read from MH i2c: 01 07 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: 01 07 00 BC 77 00 00 00 00 00 FF 0F 48 [15:23:28]process_action close_receipt done [15:23:28]requested_data is exist [15:23:28]produce_requested_data [15:23:28]requested_item fm.sn is exist - process it [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 11 00 00 [15:23:28]Write to MH i2c: E2 08 00 BD 77 80 11 00 00 00 00 00 00 AE [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:28]Read from MH i2c: E2 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 17 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 17 00 BD 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [15:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:28]wFMCommunicate OK [15:23:28]requested_item fd.num is exist - process it [15:23:28]SAM_PROTO_GetFieldsCounters [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 13 00 00 [15:23:28]Write to MH i2c: E2 08 00 BE 77 80 13 00 00 00 00 00 00 B1 [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:28]Read from MH i2c: E2 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 62 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 62 00 BE 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 12 01 00 0E 04 04 00 C3 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 02 [15:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 12 01 00 0E 04 04 00 C3 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 [15:23:28]wFMCommunicate OK [15:23:28]SAM_PROTO_GetFieldsCounters done [15:23:28]requested_item shift.num is exist - process it [15:23:28]requested_item shift.opened is exist - process it [15:23:28]req_shift_opened [15:23:28]FM_GetShiftState [15:23:28]SAM_PROTO_GetShiftState [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 13 01 00 [15:23:28]Write to MH i2c: E2 08 00 BF 77 80 13 01 00 00 00 00 00 B3 [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:28]Read from MH i2c: E2 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 0E 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 0E 00 BF 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A1 [15:23:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:23:28]wFMCommunicate OK [15:23:28]SAM_PROTO_GetShiftState done [15:23:28]FM_GetShiftState done [15:23:28]req_shift_opened done [15:23:28]requested_item shift.open_date is exist - process it [15:23:28]req_shift_open_date [15:23:28]req_shift_open_date done [15:23:28]produce_requested_data done [15:23:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70291,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:23:28]process_action_free close_receipt [15:23:28]json_value_free [15:23:28]json_value_free done [15:23:28]process_json_proto returns [15:23:28]Send response to host [15:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70291,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:23:28]free response buf [15:23:28]execute_script done [15:23:28]execute_script returns [15:23:28]free content buf [15:23:28]Sock 10.Close socket [15:23:28]Sock 10.Thread stoped [15:23:29]accept exits with 7 [15:23:29]New connection [15:23:29]New thread 3067026788 created [15:23:29]Thread 3067170148 joined [15:23:29]Waiting for new connection... [15:23:29] Sock 7.Parse request [15:23:29]Sock 7.Check first char [15:23:29]Sock 7.First char is OK [15:23:29]request: POST /json_proto HTTP/1.0 [15:23:29]Method: POST [15:23:29]URL: /json_proto [15:23:29]Method is POST - this is cgi request [15:23:29]url: /json_proto [15:23:29]query_string will be loaded in cgi processing [15:23:29]execute_cgi json_proto POST (null) [15:23:29]execute_cgi path=json_proto method=POST [15:23:29]POST find Content-Length [15:23:29]Host: 172.17.50.3:8080 [15:23:29]Content-Length: 679 [15:23:29]Content-Type: application/json [15:23:29] [15:23:29]POST finish read [15:23:29]Found Content-Length = 679 [15:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [15:23:29]execute_script... [15: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 : (1)2886060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [15:23:29]POST & json_proto [15:23:29]process_json_proto [15:23:29]json parsed OK: [15:23:29]protocol is kg_v1.0 [15:23:29]action value=close_receipt [15:23:29]process_action close_receipt [15:23:29]cmd_close_receipt [15:23:29]MH_GetDate [15:23:29]Write to MH i2c: F0 00 00 C0 77 26 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 C0 77 00 77 C3 17 67 6B 98 1E 66 6E [15:23:29]GetLastDocTimeStamp 1729610610 [15:23:29]current date 1729610615 [15:23:29]FM_GetShiftState [15:23:29]SAM_PROTO_GetShiftState [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 01 00 [15:23:29]Write to MH i2c: E2 08 00 C1 77 80 13 01 00 00 00 00 00 B5 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 C1 77 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A3 [15:23:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetShiftState done [15:23:29]FM_GetShiftState done [15:23:29]opened in 1729555832 [15:23:29]opened+sec_in_day 1729642232 [15:23:29]quantity*price = 70044 [15:23:29]sum+1 = 70045 [15:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 240 22.10.2024 15:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70292 ФПД: 71196044982912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70292&fm=71196044982912&tin=02508201610067®Number=0000000000156251&sum=70000 [15:23:30]StoreToDocumentArchive [15:23:30]shift 195 fd 70292 [15:23:30]save to /storage/0195/doc_00070292 [15:23:30]save last doc name /storage/0195/doc_00070292 to /storage/kkm_last_doc_name [15:23:30]save OK [15:23:30]Clear old archive folders... [15:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:30]tlvbuf is 011D1530 [15:23:30]SAM_PROTO_ClearQueue [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 09 00 00 [15:23:30]Write to MH i2c: E2 08 00 CE 77 80 09 00 00 00 00 00 00 B7 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 CE 77 00 90 00 B9 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_ClearQueue done [15:23:30]KKMCreateOFDPacket [15:23:30]OFDProtocolAddRootSTLVToBuf [15:23:30]FM_MakeSignedData [15:23:30]FM_MakeSignedData [15:23:30]SAM_PROTO_SignData [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 01 02 [15:23:30]Write to MH i2c: E2 08 00 CF 77 80 0D 01 02 00 00 00 00 BF [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 CF 77 00 90 00 BA [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=255 [15:23:30]MH_SAM_APDU [15:23: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 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 F0 00 00 00 F4 03 04 00 77 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 12 01 00 35 04 06 00 40 [15:23:31]Write to MH i2c: E2 02 01 D0 77 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 F0 00 00 00 F4 03 04 00 77 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 12 01 00 35 04 06 00 40 00 00 AA [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 D0 77 00 90 00 BB [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=10 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 02 02 05 C0 9E F8 7A 80 [15:23:31]Write to MH i2c: E2 0D 00 D1 77 80 0D 02 02 05 00 C0 9E F8 7A 80 00 00 1C [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 D1 77 00 90 00 BC [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 03 02 [15:23:31]Write to MH i2c: E2 08 00 D2 77 80 0D 03 02 00 00 00 00 C4 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 D2 77 00 10 79 F3 33 66 D5 DF 07 90 00 95 [15:23:31]RAPDU: 10 79 F3 33 66 D5 DF 07 90 00 [15:23:31]wFMCommunicate OK [15:23:31]SAM_PROTO_SignData done [15:23:31]FM_MakeSignedData done [15:23:31]CreateOFDProtocolMessage [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 11 00 00 [15:23:31]Write to MH i2c: E2 08 00 D3 77 80 11 00 00 00 00 00 00 C4 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 D3 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [15:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:31]wFMCommunicate OK [15:23:31]CreateOFDProtocolMessage done [15:23:31]OFDSenderStorePacket 70292 [15:23:31]StoreOFDPacket docnum=70292 [15:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A 27 07 01 C1 DC 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 F0 00 00 00 F4 03 04 00 77 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 12 01 00 35 04 06 00 40 C0 9E F8 7A 80 10 79 F3 33 66 D5 DF 07 [15:23:31]CheckFolder [15:23:31]dirname=/storage/ofd_packets [15:23:31]CheckFolder done [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00070292 [15:23:31]NVStorageSaveData ofd_packets/00070292 [15:23:31]File name is /storage/ofd_packets/00070292 [15:23:31]Write 301 bytes [15:23:31]NVStorageSaveData done [15:23:31]OFDSenderStorePacket done [15:23:31]KKMCreateOFDPacket done [15:23:31]NVStorageSaveData kkm_last_timestamp [15:23:31]File name is /storage/kkm_last_timestamp [15:23:31]Write 4 bytes [15:23:31]NVStorageSaveData done [15:23:31]ExternCall_PrintAddStr [15:23:31]wPrintStart [15:23:31]Write to MH i2c: 01 00 00 D4 77 4B [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 D4 77 00 00 00 00 00 FF 0F 60 [15:23:31]RasterBufferAndPrint [15:23:31]line Счет N : (1)2886060 [15:23:31]line ИНН: 02508201610067 [15:23:31]line Контрольно-Кассовый Чек [15:23:31]line ПРОДАЖА [15:23:31]line ТРК (МРК, ГНК) : 42 [15:23:31]line Товар: 2710124130 [15:23:31]line Аи-92-К-5 [15:23:31]line 10.470 * 66.90 [15:23:31]line = 700.44 [15:23:31]line НДС 12% НСП 1% [15:23:31]line > о реализуемом товаре [15:23:31]line ОКРУГЛЕНИЕ: -0.44 [15:23:31]line ИТОГО: 700.00 [15:23:31]line Внесено: 700.00 [15:23:31]line СДАЧА: 0.00 [15:23:31]line НСП 1% : 6.20 [15:23:31]line НДС 12% : 74.38 [15:23:31]line Наличными: 700.00 [15:23:31]line Безнал.: 0.00 [15:23:31]line Место: АЗС № 85 "Партнер Нефть" [15:23:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:31]line СНО: Общий режим [15:23:31]line Чек 240 22.10.2024 15:23 [15:23:31]line Смена: 195 ФФД: 1.0 [15:23:31]line ЗНМ: 0300000167 [15:23:31]line РНМ: 0000000000156251 [15:23:31]line Версия ККМ: v1.0 [15:23:31]line ФМ: 0000000000963346 [15:23:31]line ФД: 70292 [15:23:31]line ФПД: 71196044982912 [15:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70292&fm=71196044982912&tin=02508201610067®Number=0000000000156251&sum=70000 [15:23:31]OFD Sender: Processing packet 70292 [packets to send 18, broken 17] [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00070292 [15:23:31]OFD Sender: To server: pG, [15:23:31]CommunicateWithHost lk.salyk.kg:30040 [15:23:31]ConnectInit lk.salyk.kg [15:23:31]written 0, free lines is 4095 [15:23:31]Connected sock=10 [15:23: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 34 36 0F 01 00 00 7A 27 07 01 C1 DC 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 F0 00 00 00 F4 03 04 00 77 C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 12 01 00 35 04 06 00 40 C0 9E F8 7A 80 10 79 F3 33 66 D5 DF 07 [15: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 34 36 4F 00 00 00 A9 1C 47 00 E4 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 34 36 10 04 04 00 94 12 01 00 F4 03 04 00 17 6D 17 67 B6 04 01 00 00 D3 A9 01 F6 2C 68 E1 29 [15:23:31]CommunicateWithHost err = 0 [15:23:31]CheckOFDResponse [15:23:31]1017 (14) - 77093643461234 [15:23:31]1041 (16) - 0000000000963346 [15:23:31]1040 (4) - 70292 [15:23:31]1012 (4) - 22.10.2024 09:15 [15:23:31]1206 (1) - 0 [15:23:31]OFD Sender: Remove packet 70292 [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00070292 [15:23:31]NVStorageDeleteData [15:23:31]Write to MH i2c: 01 00 00 FF 77 76 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 FF 77 00 00 00 00 00 09 0D 93 [15:23:32]RasterBufferAndPrint [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]written 0, free lines is 3352 [15:23:32]MH_Cut [15:23:32]Write to MH i2c: D1 01 00 06 78 01 50 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 06 78 00 4F [15:23:32]Write to MH i2c: 01 00 00 07 78 7F [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]OFD Sender: No OFD packet to send [15:23:32]*** Cut start [15:23:32]*** Partial cut [15:23:32]*** CUTSNS_PIN = 1 [15:23:32]*** CUTSNS_PIN = 0 [15:23:32]*** Brake cut motor [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]*** Stop cut motor [15:23:33]*** Cut end [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 07 78 00 00 00 00 00 FF 0F 94 [15:23:33]process_action close_receipt done [15:23:33]requested_data is exist [15:23:33]produce_requested_data [15:23:33]requested_item fm.sn is exist - process it [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 08 78 80 11 00 00 00 00 00 00 FA [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 08 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [15:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:33]wFMCommunicate OK [15:23:33]requested_item fd.num is exist - process it [15:23:33]SAM_PROTO_GetFieldsCounters [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 00 00 [15:23:33]Write to MH i2c: E2 08 00 09 78 80 13 00 00 00 00 00 00 FD [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 09 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 12 01 00 0E 04 04 00 C3 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 52 [15:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 12 01 00 0E 04 04 00 C3 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 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetFieldsCounters done [15:23:33]requested_item shift.num is exist - process it [15:23:33]requested_item shift.opened is exist - process it [15:23:33]req_shift_opened [15:23:33]FM_GetShiftState [15:23:33]SAM_PROTO_GetShiftState [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 01 00 [15:23:33]Write to MH i2c: E2 08 00 0A 78 80 13 01 00 00 00 00 00 FF [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 0A 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 ED [15:23:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetShiftState done [15:23:33]FM_GetShiftState done [15:23:33]req_shift_opened done [15:23:33]requested_item shift.open_date is exist - process it [15:23:33]req_shift_open_date [15:23:33]req_shift_open_date done [15:23:33]produce_requested_data done [15:23:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70292,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:23:33]process_action_free close_receipt [15:23:33]json_value_free [15:23:33]json_value_free done [15:23:33]process_json_proto returns [15:23:33]Send response to host [15:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70292,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:23:33]free response buf [15:23:33]execute_script done [15:23:33]execute_script returns [15:23:33]free content buf [15:23:33]Sock 7.Close socket [15:23:33]Sock 7.Thread stoped [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:41]accept exits with 9 [15:25:41]New connection [15:25:41]New thread 3067170148 created [15:25:41]Thread 3067026788 joined [15:25:41]Waiting for new connection... [15:25:41] Sock 9.Parse request [15:25:41]Sock 9.Check first char [15:25:41]Sock 9.First char is OK [15:25:41]request: POST /json_proto HTTP/1.0 [15:25:41]Method: POST [15:25:41]URL: /json_proto [15:25:41]Method is POST - this is cgi request [15:25:41]url: /json_proto [15:25:41]query_string will be loaded in cgi processing [15:25:41]execute_cgi json_proto POST (null) [15:25:41]execute_cgi path=json_proto method=POST [15:25:41]POST find Content-Length [15:25:41]Host: 172.17.50.3:8080 [15:25:41]Content-Length: 678 [15:25:41]Content-Type: application/json [15:25:41] [15:25:41]POST finish read [15:25:41]Found Content-Length = 678 [15:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:25:41]execute_script... [15:25: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)2886061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:25:41]POST & json_proto [15:25:41]process_json_proto [15:25:41]json parsed OK: [15:25:41]protocol is kg_v1.0 [15:25:41]action value=close_receipt [15:25:41]process_action close_receipt [15:25:41]cmd_close_receipt [15:25:41]MH_GetDate [15:25:41]Write to MH i2c: F0 00 00 0B 78 72 [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 09 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 09 00 0B 78 00 FB C3 17 67 6B 98 1E 66 3E [15:25:41]GetLastDocTimeStamp 1729610615 [15:25:41]current date 1729610747 [15:25:41]FM_GetShiftState [15:25:41]SAM_PROTO_GetShiftState [15:25:41]wFMCommunicate request_size=4 [15:25:41]MH_SAM_APDU [15:25:41]CAPDU: 80 13 01 00 [15:25:41]Write to MH i2c: E2 08 00 0C 78 80 13 01 00 00 00 00 00 01 [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:41]Read from MH i2c: E2 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: E2 0E 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: E2 0E 00 0C 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EF [15:25:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:25:41]wFMCommunicate OK [15:25:41]SAM_PROTO_GetShiftState done [15:25:41]FM_GetShiftState done [15:25:41]opened in 1729555832 [15:25:41]opened+sec_in_day 1729642232 [15:25:41]quantity*price = 30038 [15:25:41]sum+1 = 30039 [15:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 241 22.10.2024 15:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70293 ФПД: 63950973227860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70293&fm=63950973227860&tin=02508201610067®Number=0000000000156251&sum=30000 [15:25:42]StoreToDocumentArchive [15:25:42]shift 195 fd 70293 [15:25:42]save to /storage/0195/doc_00070293 [15:25:42]save last doc name /storage/0195/doc_00070293 to /storage/kkm_last_doc_name [15:25:42]save OK [15:25:42]Clear old archive folders... [15:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:42]tlvbuf is 011CDC30 [15:25:42]SAM_PROTO_ClearQueue [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 09 00 00 [15:25:42]Write to MH i2c: E2 08 00 19 78 80 09 00 00 00 00 00 00 03 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 19 78 00 90 00 05 [15:25:42]RAPDU: 90 00 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_ClearQueue done [15:25:42]KKMCreateOFDPacket [15:25:42]OFDProtocolAddRootSTLVToBuf [15:25:42]FM_MakeSignedData [15:25:42]FM_MakeSignedData [15:25:42]SAM_PROTO_SignData [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 0D 01 02 [15:25:42]Write to MH i2c: E2 08 00 1A 78 80 0D 01 02 00 00 00 00 0B [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 1A 78 00 90 00 06 [15:25:42]RAPDU: 90 00 [15:25:42]wFMCommunicate OK [15:25:42]wFMCommunicate request_size=255 [15:25:42]MH_SAM_APDU [15:25:42]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 F1 00 00 00 F4 03 04 00 FB C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 12 01 00 35 04 06 00 3A [15:25:42]Write to MH i2c: E2 02 01 1B 78 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 F1 00 00 00 F4 03 04 00 FB C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 12 01 00 35 04 06 00 3A 00 00 5A [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 03 00 1B 78 00 90 00 07 [15:25:42]RAPDU: 90 00 [15:25:42]wFMCommunicate OK [15:25:42]wFMCommunicate request_size=10 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 0D 02 02 05 29 BF 0A D3 54 [15:25:42]Write to MH i2c: E2 0D 00 1C 78 80 0D 02 02 05 00 29 BF 0A D3 54 00 00 31 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 1C 78 00 90 00 08 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 03 02 [15:25:43]Write to MH i2c: E2 08 00 1D 78 80 0D 03 02 00 00 00 00 10 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 1D 78 00 24 17 4A 1B B0 F4 CD C4 90 00 E6 [15:25:43]RAPDU: 24 17 4A 1B B0 F4 CD C4 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_SignData done [15:25:43]FM_MakeSignedData done [15:25:43]CreateOFDProtocolMessage [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 11 00 00 [15:25:43]Write to MH i2c: E2 08 00 1E 78 80 11 00 00 00 00 00 00 10 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 1E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [15:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:25:43]wFMCommunicate OK [15:25:43]CreateOFDProtocolMessage done [15:25:43]OFDSenderStorePacket 70293 [15:25:43]StoreOFDPacket docnum=70293 [15:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 87 3D 07 01 27 99 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 F1 00 00 00 F4 03 04 00 FB C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 12 01 00 35 04 06 00 3A 29 BF 0A D3 54 24 17 4A 1B B0 F4 CD C4 [15:25:43]CheckFolder [15:25:43]dirname=/storage/ofd_packets [15:25:43]CheckFolder done [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00070293 [15:25:43]NVStorageSaveData ofd_packets/00070293 [15:25:43]File name is /storage/ofd_packets/00070293 [15:25:43]Write 301 bytes [15:25:43]NVStorageSaveData done [15:25:43]OFDSenderStorePacket done [15:25:43]KKMCreateOFDPacket done [15:25:43]NVStorageSaveData kkm_last_timestamp [15:25:43]File name is /storage/kkm_last_timestamp [15:25:43]Write 4 bytes [15:25:43]NVStorageSaveData done [15:25:43]ExternCall_PrintAddStr [15:25:43]wPrintStart [15:25:43]Write to MH i2c: 01 00 00 1F 78 97 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 1F 78 00 00 00 00 00 FF 0F AC [15:25:43]RasterBufferAndPrint [15:25:43]line Счет N : (1)2886061 [15:25:43]line ИНН: 02508201610067 [15:25:43]line Контрольно-Кассовый Чек [15:25:43]line ПРОДАЖА [15:25:43]line ТРК (МРК, ГНК) : 42 [15:25:43]line Товар: 2710124130 [15:25:43]line Аи-92-К-5 [15:25:43]line 4.490 * 66.90 [15:25:43]line = 300.38 [15:25:43]line НДС 12% НСП 1% [15:25:43]line > о реализуемом товаре [15:25:43]line ОКРУГЛЕНИЕ: -0.38 [15:25:43]line ИТОГО: 300.00 [15:25:43]line Внесено: 300.00 [15:25:43]line СДАЧА: 0.00 [15:25:43]line НСП 1% : 2.66 [15:25:43]line НДС 12% : 31.90 [15:25:43]line Наличными: 300.00 [15:25:43]line Безнал.: 0.00 [15:25:43]line Место: АЗС № 85 "Партнер Нефть" [15:25:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:25:43]line СНО: Общий режим [15:25:43]line Чек 241 22.10.2024 15:25 [15:25:43]line Смена: 195 ФФД: 1.0 [15:25:43]line ЗНМ: 0300000167 [15:25:43]line РНМ: 0000000000156251 [15:25:43]line Версия ККМ: v1.0 [15:25:43]line ФМ: 0000000000963346 [15:25:43]line ФД: 70293 [15:25:43]line ФПД: 63950973227860 [15:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70293&fm=63950973227860&tin=02508201610067®Number=0000000000156251&sum=30000 [15:25:43]OFD Sender: Processing packet 70293 [packets to send 18, broken 17] [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00070293 [15:25:43]OFD Sender: To server: pG, [15:25:43]CommunicateWithHost lk.salyk.kg:30040 [15:25:43]ConnectInit lk.salyk.kg [15:25:43]written 0, free lines is 4095 [15:25:43]Connected sock=10 [15:25: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 34 36 0F 01 00 00 87 3D 07 01 27 99 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 F1 00 00 00 F4 03 04 00 FB C3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 12 01 00 35 04 06 00 3A 29 BF 0A D3 54 24 17 4A 1B B0 F4 CD C4 [15:25: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 34 36 4F 00 00 00 A8 9C 47 00 84 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 12 01 00 F4 03 04 00 9B 6D 17 67 B6 04 01 00 00 FD B6 E7 B5 2C 6D D0 B8 [15:25:43]CommunicateWithHost err = 0 [15:25:43]CheckOFDResponse [15:25:43]1017 (14) - 77093643461234 [15:25:43]1041 (16) - 0000000000963346 [15:25:43]1040 (4) - 70293 [15:25:43]1012 (4) - 22.10.2024 09:17 [15:25:43]1206 (1) - 0 [15:25:43]OFD Sender: Remove packet 70293 [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00070293 [15:25:43]NVStorageDeleteData [15:25:43]Write to MH i2c: 01 00 00 4A 78 C2 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 4A 78 00 00 00 00 00 F9 0C CE [15:25:43]RasterBufferAndPrint [15:25:43]line [15:25:43]line [15:25:43]line [15:25:43]line [15:25:43]line [15:25:43]written 0, free lines is 3331 [15:25:43]MH_Cut [15:25:43]Write to MH i2c: D1 01 00 51 78 01 9B [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: D1 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: D1 01 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: D1 01 00 51 78 00 9A [15:25:43]Write to MH i2c: 01 00 00 52 78 CA [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:44]OFD Sender: No OFD packet to send [15:25:44]*** Cut start [15:25:44]*** Partial cut [15:25:44]*** CUTSNS_PIN = 1 [15:25:44]*** CUTSNS_PIN = 0 [15:25:44]*** Brake cut motor [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]*** Stop cut motor [15:25:45]*** Cut end [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 52 78 00 00 00 00 00 FF 0F DF [15:25:45]process_action close_receipt done [15:25:45]requested_data is exist [15:25:45]produce_requested_data [15:25:45]requested_item fm.sn is exist - process it [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 11 00 00 [15:25:45]Write to MH i2c: E2 08 00 53 78 80 11 00 00 00 00 00 00 45 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 53 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [15:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:25:45]wFMCommunicate OK [15:25:45]requested_item fd.num is exist - process it [15:25:45]SAM_PROTO_GetFieldsCounters [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 00 00 [15:25:45]Write to MH i2c: E2 08 00 54 78 80 13 00 00 00 00 00 00 48 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 62 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 62 00 54 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 12 01 00 0E 04 04 00 C3 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 A1 [15:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 12 01 00 0E 04 04 00 C3 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 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetFieldsCounters done [15:25:45]requested_item shift.num is exist - process it [15:25:45]requested_item shift.opened is exist - process it [15:25:45]req_shift_opened [15:25:45]FM_GetShiftState [15:25:45]SAM_PROTO_GetShiftState [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 01 00 [15:25:45]Write to MH i2c: E2 08 00 55 78 80 13 01 00 00 00 00 00 4A [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 55 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 38 [15:25:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetShiftState done [15:25:45]FM_GetShiftState done [15:25:45]req_shift_opened done [15:25:45]requested_item shift.open_date is exist - process it [15:25:45]req_shift_open_date [15:25:45]req_shift_open_date done [15:25:45]produce_requested_data done [15:25:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70293,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:25:45]process_action_free close_receipt [15:25:45]json_value_free [15:25:45]json_value_free done [15:25:45]process_json_proto returns [15:25:45]Send response to host [15:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70293,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:25:45]free response buf [15:25:45]execute_script done [15:25:45]execute_script returns [15:25:45]free content buf [15:25:45]Sock 9.Close socket [15:25:45]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]accept exits with 7 [15:36:24]New connection [15:36:24]New thread 3067026788 created [15:36:24]Thread 3067170148 joined [15:36:24]Waiting for new connection... [15:36:24] Sock 7.Parse request [15:36:24]Sock 7.Check first char [15:36:24]Sock 7.First char is OK [15:36:24]request: POST /json_proto HTTP/1.0 [15:36:24]Method: POST [15:36:24]URL: /json_proto [15:36:24]Method is POST - this is cgi request [15:36:24]url: /json_proto [15:36:24]query_string will be loaded in cgi processing [15:36:24]execute_cgi json_proto POST (null) [15:36:24]execute_cgi path=json_proto method=POST [15:36:24]POST find Content-Length [15:36:24]Host: 172.17.50.3:8080 [15:36:24]Content-Length: 801 [15:36:24]Content-Type: application/json [15:36:24] [15:36:24]POST finish read [15:36:24]Found Content-Length = 801 [15:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4235146", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:24]execute_script... [15:36: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)2886062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4235146", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:24]POST & json_proto [15:36:24]process_json_proto [15:36:24]json parsed OK: [15:36:24]protocol is kg_v1.0 [15:36:24]action value=close_receipt [15:36:24]process_action close_receipt [15:36:24]cmd_close_receipt [15:36:24]MH_GetDate [15:36:24]Write to MH i2c: F0 00 00 56 78 BD [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: F0 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: F0 09 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: F0 09 00 56 78 00 7E C6 17 67 6B 98 1E 66 0F [15:36:24]GetLastDocTimeStamp 1729610747 [15:36:24]current date 1729611390 [15:36:24]FM_GetShiftState [15:36:24]SAM_PROTO_GetShiftState [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 13 01 00 [15:36:24]Write to MH i2c: E2 08 00 57 78 80 13 01 00 00 00 00 00 4C [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 0E 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 0E 00 57 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3A [15:36:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:36:24]wFMCommunicate OK [15:36:24]SAM_PROTO_GetShiftState done [15:36:24]FM_GetShiftState done [15:36:24]opened in 1729555832 [15:36:24]opened+sec_in_day 1729642232 [15:36:24]quantity*price = 0 [15:36:24]sum+1 = 1 [15:36:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 242 22.10.2024 15:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4235146 ФМ: 0000000000963346 ФД: 70294 ФПД: 83451132048349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70294&fm=83451132048349&tin=02508201610067®Number=0000000000156251&sum=0 [15:36:25]StoreToDocumentArchive [15:36:25]shift 195 fd 70294 [15:36:25]save to /storage/0195/doc_00070294 [15:36:25]save last doc name /storage/0195/doc_00070294 to /storage/kkm_last_doc_name [15:36:25]save OK [15:36:25]Clear old archive folders... [15:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:25]tlvbuf is 01308630 [15:36:25]SAM_PROTO_ClearQueue [15:36:25]wFMCommunicate request_size=4 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 09 00 00 [15:36:25]Write to MH i2c: E2 08 00 64 78 80 09 00 00 00 00 00 00 4E [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 64 78 00 90 00 50 [15:36:25]RAPDU: 90 00 [15:36:25]wFMCommunicate OK [15:36:25]SAM_PROTO_ClearQueue done [15:36:25]KKMCreateOFDPacket [15:36:25]OFDProtocolAddRootSTLVToBuf [15:36:25]FM_MakeSignedData [15:36:25]FM_MakeSignedData [15:36:25]SAM_PROTO_SignData [15:36:25]wFMCommunicate request_size=4 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 0D 01 02 [15:36:25]Write to MH i2c: E2 08 00 65 78 80 0D 01 02 00 00 00 00 56 [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 65 78 00 90 00 51 [15:36:25]RAPDU: 90 00 [15:36:25]wFMCommunicate OK [15:36:25]wFMCommunicate request_size=255 [15:36:25]MH_SAM_APDU [15:36: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 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 F2 00 00 00 F4 03 04 00 7E C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 12 01 00 35 04 06 00 4B [15:36:25]Write to MH i2c: E2 02 01 66 78 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 F2 00 00 00 F4 03 04 00 7E C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 12 01 00 35 04 06 00 4B 00 00 FC [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 66 78 00 90 00 52 [15:36:25]RAPDU: 90 00 [15:36:25]wFMCommunicate OK [15:36:25]wFMCommunicate request_size=10 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 0D 02 02 05 E5 FB 14 F3 DD [15:36:25]Write to MH i2c: E2 0D 00 67 78 80 0D 02 02 05 00 E5 FB 14 F3 DD 00 00 27 [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 03 00 67 78 00 90 00 53 [15:36:25]RAPDU: 90 00 [15:36:25]wFMCommunicate OK [15:36:25]wFMCommunicate request_size=4 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 0D 03 02 [15:36:25]Write to MH i2c: E2 08 00 68 78 80 0D 03 02 00 00 00 00 5B [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:26]Read from MH i2c: E2 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: E2 0B 00 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: E2 0B 00 68 78 00 24 94 FA 53 47 80 18 0D 90 00 4D [15:36:26]RAPDU: 24 94 FA 53 47 80 18 0D 90 00 [15:36:26]wFMCommunicate OK [15:36:26]SAM_PROTO_SignData done [15:36:26]FM_MakeSignedData done [15:36:26]CreateOFDProtocolMessage [15:36:26]wFMCommunicate request_size=4 [15:36:26]MH_SAM_APDU [15:36:26]CAPDU: 80 11 00 00 [15:36:26]Write to MH i2c: E2 08 00 69 78 80 11 00 00 00 00 00 00 5B [15:36:26]Write i2c OK [15:36:26]MH_I2C_Read... [15:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:26]Read from MH i2c: E2 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: E2 17 00 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: E2 17 00 69 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [15:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:26]wFMCommunicate OK [15:36:26]CreateOFDProtocolMessage done [15:36:26]OFDSenderStorePacket 70294 [15:36:26]StoreOFDPacket docnum=70294 [15:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4B 6B 07 01 0D 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 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 F2 00 00 00 F4 03 04 00 7E C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 12 01 00 35 04 06 00 4B E5 FB 14 F3 DD 24 94 FA 53 47 80 18 0D [15:36:26]CheckFolder [15:36:26]dirname=/storage/ofd_packets [15:36:26]CheckFolder done [15:36:26]ProducePacketName [15:36:26]name=ofd_packets/00070294 [15:36:26]NVStorageSaveData ofd_packets/00070294 [15:36:26]File name is /storage/ofd_packets/00070294 [15:36:26]Write 301 bytes [15:36:26]NVStorageSaveData done [15:36:26]OFDSenderStorePacket done [15:36:26]KKMCreateOFDPacket done [15:36:26]NVStorageSaveData kkm_last_timestamp [15:36:26]File name is /storage/kkm_last_timestamp [15:36:26]Write 4 bytes [15:36:26]NVStorageSaveData done [15:36:26]ExternCall_PrintAddStr [15:36:26]wPrintStart [15:36:26]Write to MH i2c: 01 00 00 6A 78 E2 [15:36:26]Write i2c OK [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 07 00 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 07 00 6A 78 00 00 00 00 00 FF 0F F7 [15:36:26]RasterBufferAndPrint [15:36:26]line Счет N : (1)2886062 [15:36:26]line ИНН: 02508201610067 [15:36:26]line Контрольно-Кассовый Чек [15:36:26]line ПРОДАЖА [15:36:26]line ТРК (МРК, ГНК) : 42 [15:36:26]line Товар: 2710124130 [15:36:26]line Аи-92-К-5 [15:36:26]line 10.000 * 0.00 [15:36:26]line = 0.00 [15:36:26]line НДС 12% НСП 1% [15:36:26]line > о реализуемом товаре [15:36:26]line ИТОГО: 0.00 [15:36:26]line НСП 1% : 0.00 [15:36:26]line НДС 12% : 0.00 [15:36:26]line Наличными: 0.00 [15:36:26]line Безнал.: 0.00 [15:36:26]line Место: АЗС № 85 "Партнер Нефть" [15:36:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:36:26]line СНО: Общий режим [15:36:26]line Чек 242 22.10.2024 15:36 [15:36:26]line Смена: 195 ФФД: 1.0 [15:36:26]line ЗНМ: 0300000167 [15:36:26]line РНМ: 0000000000156251 [15:36:26]line Версия ККМ: v1.0 [15:36:26]line Талоны: Топливные Талоны [15:36:26]line 4235146 [15:36:26]line ФМ: 0000000000963346 [15:36:26]line ФД: 70294 [15:36:26]line ФПД: 83451132048349 [15:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70294&fm=83451132048349&tin=02508201610067®Number=0000000000156251&sum=0 [15:36:26]OFD Sender: Processing packet 70294 [packets to send 18, broken 17] [15:36:26]ProducePacketName [15:36:26]name=ofd_packets/00070294 [15:36:26]OFD Sender: To server: pG, [15:36:26]CommunicateWithHost lk.salyk.kg:30040 [15:36:26]ConnectInit lk.salyk.kg [15:36:26]written 0, free lines is 4095 [15:36:26]Connected sock=10 [15:36: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 34 36 0F 01 00 00 4B 6B 07 01 0D 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 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 F2 00 00 00 F4 03 04 00 7E C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 12 01 00 35 04 06 00 4B E5 FB 14 F3 DD 24 94 FA 53 47 80 18 0D [15:36: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 34 36 4F 00 00 00 71 B5 47 00 5F 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 34 36 10 04 04 00 96 12 01 00 F4 03 04 00 1E 70 17 67 B6 04 01 00 00 DA 8A 04 1D 16 08 AC 8D [15:36:26]CommunicateWithHost err = 0 [15:36:26]CheckOFDResponse [15:36:26]1017 (14) - 77093643461234 [15:36:26]1041 (16) - 0000000000963346 [15:36:26]1040 (4) - 70294 [15:36:26]1012 (4) - 22.10.2024 09:27 [15:36:26]1206 (1) - 0 [15:36:26]OFD Sender: Remove packet 70294 [15:36:26]ProducePacketName [15:36:26]name=ofd_packets/00070294 [15:36:26]NVStorageDeleteData [15:36:26]Write to MH i2c: 01 00 00 94 78 0C [15:36:26]Write i2c OK [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 07 00 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: 01 07 00 94 78 00 00 00 00 00 07 0D 27 [15:36:26]RasterBufferAndPrint [15:36:26]line [15:36:26]line [15:36:26]line [15:36:26]line [15:36:26]line [15:36:26]written 0, free lines is 3346 [15:36:26]MH_Cut [15:36:26]Write to MH i2c: D1 01 00 9B 78 01 E5 [15:36:26]Write i2c OK [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: D1 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: D1 01 00 [15:36:26]MH_I2C_Read... [15:36:26]Read from MH i2c: D1 01 00 9B 78 00 E4 [15:36:26]Write to MH i2c: 01 00 00 9C 78 14 [15:36:26]Write i2c OK [15:36:26]MH_I2C_Read... [15:36:27]OFD Sender: No OFD packet to send [15:36:27]*** Cut start [15:36:27]*** Partial cut [15:36:27]*** CUTSNS_PIN = 1 [15:36:27]*** CUTSNS_PIN = 0 [15:36:27]*** Brake cut motor [15:36:28]Read from MH i2c: 01 [15:36:28]MH_I2C_Read... [15:36:28]*** Stop cut motor [15:36:28]*** Cut end [15:36:28]Read from MH i2c: 01 07 00 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: 01 07 00 9C 78 00 00 00 00 00 FF 0F 29 [15:36:28]process_action close_receipt done [15:36:28]requested_data is exist [15:36:28]produce_requested_data [15:36:28]requested_item fm.sn is exist - process it [15:36:28]wFMCommunicate request_size=4 [15:36:28]MH_SAM_APDU [15:36:28]CAPDU: 80 11 00 00 [15:36:28]Write to MH i2c: E2 08 00 9D 78 80 11 00 00 00 00 00 00 8F [15:36:28]Write i2c OK [15:36:28]MH_I2C_Read... [15:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:28]Read from MH i2c: E2 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 17 00 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 17 00 9D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [15:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:28]wFMCommunicate OK [15:36:28]requested_item fd.num is exist - process it [15:36:28]SAM_PROTO_GetFieldsCounters [15:36:28]wFMCommunicate request_size=4 [15:36:28]MH_SAM_APDU [15:36:28]CAPDU: 80 13 00 00 [15:36:28]Write to MH i2c: E2 08 00 9E 78 80 13 00 00 00 00 00 00 92 [15:36:28]Write i2c OK [15:36:28]MH_I2C_Read... [15:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:28]Read from MH i2c: E2 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 62 00 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 62 00 9E 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 12 01 00 0E 04 04 00 C3 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 EF [15:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 12 01 00 0E 04 04 00 C3 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 [15:36:28]wFMCommunicate OK [15:36:28]SAM_PROTO_GetFieldsCounters done [15:36:28]requested_item shift.num is exist - process it [15:36:28]requested_item shift.opened is exist - process it [15:36:28]req_shift_opened [15:36:28]FM_GetShiftState [15:36:28]SAM_PROTO_GetShiftState [15:36:28]wFMCommunicate request_size=4 [15:36:28]MH_SAM_APDU [15:36:28]CAPDU: 80 13 01 00 [15:36:28]Write to MH i2c: E2 08 00 9F 78 80 13 01 00 00 00 00 00 94 [15:36:28]Write i2c OK [15:36:28]MH_I2C_Read... [15:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:28]Read from MH i2c: E2 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 0E 00 [15:36:28]MH_I2C_Read... [15:36:28]Read from MH i2c: E2 0E 00 9F 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 82 [15:36:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:36:28]wFMCommunicate OK [15:36:28]SAM_PROTO_GetShiftState done [15:36:28]FM_GetShiftState done [15:36:28]req_shift_opened done [15:36:28]requested_item shift.open_date is exist - process it [15:36:28]req_shift_open_date [15:36:28]req_shift_open_date done [15:36:28]produce_requested_data done [15:36:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70294,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:36:28]process_action_free close_receipt [15:36:28]json_value_free [15:36:28]json_value_free done [15:36:28]process_json_proto returns [15:36:28]Send response to host [15:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70294,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:36:28]free response buf [15:36:28]execute_script done [15:36:28]execute_script returns [15:36:28]free content buf [15:36:28]Sock 7.Close socket [15:36:28]Sock 7.Thread stoped [15:36:32]OFD Sender: No OFD packet to send [15:36:35]accept exits with 9 [15:36:35]New connection [15:36:35]New thread 3067170148 created [15:36:35]Thread 3067026788 joined [15:36:35]Waiting for new connection... [15:36:35] Sock 9.Parse request [15:36:35]Sock 9.Check first char [15:36:35]Sock 9.First char is OK [15:36:35]request: POST /json_proto HTTP/1.0 [15:36:35]Method: POST [15:36:35]URL: /json_proto [15:36:35]Method is POST - this is cgi request [15:36:35]url: /json_proto [15:36:35]query_string will be loaded in cgi processing [15:36:35]execute_cgi json_proto POST (null) [15:36:35]execute_cgi path=json_proto method=POST [15:36:35]POST find Content-Length [15:36:35]Host: 172.17.50.3:8080 [15:36:35]Content-Length: 678 [15:36:35]Content-Type: application/json [15:36:35] [15:36:35]POST finish read [15:36:35]Found Content-Length = 678 [15:36:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [15:36:35]execute_script... [15:36: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)2886063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [15:36:35]POST & json_proto [15:36:35]process_json_proto [15:36:35]json parsed OK: [15:36:35]protocol is kg_v1.0 [15:36:35]action value=close_receipt [15:36:35]process_action close_receipt [15:36:35]cmd_close_receipt [15:36:35]MH_GetDate [15:36:35]Write to MH i2c: F0 00 00 A0 78 07 [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: F0 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: F0 09 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: F0 09 00 A0 78 00 89 C6 17 67 6B 98 1E 66 64 [15:36:35]GetLastDocTimeStamp 1729611390 [15:36:35]current date 1729611401 [15:36:35]FM_GetShiftState [15:36:35]SAM_PROTO_GetShiftState [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 13 01 00 [15:36:35]Write to MH i2c: E2 08 00 A1 78 80 13 01 00 00 00 00 00 96 [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 0E 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 0E 00 A1 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 84 [15:36:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:36:35]wFMCommunicate OK [15:36:35]SAM_PROTO_GetShiftState done [15:36:35]FM_GetShiftState done [15:36:35]opened in 1729555832 [15:36:35]opened+sec_in_day 1729642232 [15:36:35]quantity*price = 70044 [15:36:35]sum+1 = 70046 [15:36:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 243 22.10.2024 15:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70295 ФПД: 127648113707878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70295&fm=127648113707878&tin=02508201610067®Number=0000000000156251&sum=70000 [15:36:36]StoreToDocumentArchive [15:36:36]shift 195 fd 70295 [15:36:36]save to /storage/0195/doc_00070295 [15:36:36]save last doc name /storage/0195/doc_00070295 to /storage/kkm_last_doc_name [15:36:36]save OK [15:36:36]Clear old archive folders... [15:36:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:36]tlvbuf is 011235E0 [15:36:36]SAM_PROTO_ClearQueue [15:36:36]wFMCommunicate request_size=4 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 09 00 00 [15:36:36]Write to MH i2c: E2 08 00 AE 78 80 09 00 00 00 00 00 00 98 [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 AE 78 00 90 00 9A [15:36:36]RAPDU: 90 00 [15:36:36]wFMCommunicate OK [15:36:36]SAM_PROTO_ClearQueue done [15:36:36]KKMCreateOFDPacket [15:36:36]OFDProtocolAddRootSTLVToBuf [15:36:36]FM_MakeSignedData [15:36:36]FM_MakeSignedData [15:36:36]SAM_PROTO_SignData [15:36:36]wFMCommunicate request_size=4 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 0D 01 02 [15:36:36]Write to MH i2c: E2 08 00 AF 78 80 0D 01 02 00 00 00 00 A0 [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 AF 78 00 90 00 9B [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=255 [15:36:37]MH_SAM_APDU [15:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F3 00 00 00 F4 03 04 00 89 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 12 01 00 35 04 06 00 74 [15:36:37]Write to MH i2c: E2 02 01 B0 78 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F3 00 00 00 F4 03 04 00 89 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 12 01 00 35 04 06 00 74 00 00 B1 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]OFD Sender: No OFD packet to send [15:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 B0 78 00 90 00 9C [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=10 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 02 02 05 18 64 79 4B 66 [15:36:37]Write to MH i2c: E2 0D 00 B1 78 80 0D 02 02 05 00 18 64 79 4B 66 00 00 53 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 B1 78 00 90 00 9D [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 03 02 [15:36:37]Write to MH i2c: E2 08 00 B2 78 80 0D 03 02 00 00 00 00 A5 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0B 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0B 00 B2 78 00 6A BB BB 7E 9A CA C2 97 90 00 C1 [15:36:37]RAPDU: 6A BB BB 7E 9A CA C2 97 90 00 [15:36:37]wFMCommunicate OK [15:36:37]SAM_PROTO_SignData done [15:36:37]FM_MakeSignedData done [15:36:37]CreateOFDProtocolMessage [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 11 00 00 [15:36:37]Write to MH i2c: E2 08 00 B3 78 80 11 00 00 00 00 00 00 A5 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 B3 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [15:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:37]wFMCommunicate OK [15:36:37]CreateOFDProtocolMessage done [15:36:37]OFDSenderStorePacket 70295 [15:36:37]StoreOFDPacket docnum=70295 [15:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E9 2B 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F3 00 00 00 F4 03 04 00 89 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 12 01 00 35 04 06 00 74 18 64 79 4B 66 6A BB BB 7E 9A CA C2 97 [15:36:37]CheckFolder [15:36:37]dirname=/storage/ofd_packets [15:36:37]CheckFolder done [15:36:37]ProducePacketName [15:36:37]name=ofd_packets/00070295 [15:36:37]NVStorageSaveData ofd_packets/00070295 [15:36:37]File name is /storage/ofd_packets/00070295 [15:36:37]Write 301 bytes [15:36:37]NVStorageSaveData done [15:36:37]OFDSenderStorePacket done [15:36:37]KKMCreateOFDPacket done [15:36:37]NVStorageSaveData kkm_last_timestamp [15:36:37]File name is /storage/kkm_last_timestamp [15:36:37]Write 4 bytes [15:36:37]NVStorageSaveData done [15:36:37]ExternCall_PrintAddStr [15:36:37]wPrintStart [15:36:37]Write to MH i2c: 01 00 00 B4 78 2C [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 B4 78 00 00 00 00 00 FF 0F 41 [15:36:37]RasterBufferAndPrint [15:36:37]line Счет N : (1)2886063 [15:36:37]line ИНН: 02508201610067 [15:36:37]line Контрольно-Кассовый Чек [15:36:37]line ПРОДАЖА [15:36:37]line ТРК (МРК, ГНК) : 23 [15:36:37]line Товар: 2710124500 [15:36:37]line Аи-95-К-5 [15:36:37]line 9.440 * 74.20 [15:36:37]line = 700.45 [15:36:37]line НДС 12% НСП 1% [15:36:37]line > о реализуемом товаре [15:36:37]line ОКРУГЛЕНИЕ: -0.45 [15:36:37]line ИТОГО: 700.00 [15:36:37]line Внесено: 700.00 [15:36:37]line СДАЧА: 0.00 [15:36:37]line НСП 1% : 6.20 [15:36:37]line НДС 12% : 74.38 [15:36:37]line Наличными: 700.00 [15:36:37]line Безнал.: 0.00 [15:36:37]line Место: АЗС № 85 "Партнер Нефть" [15:36:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:36:37]line СНО: Общий режим [15:36:37]line Чек 243 22.10.2024 15:36 [15:36:37]line Смена: 195 ФФД: 1.0 [15:36:37]line ЗНМ: 0300000167 [15:36:37]line РНМ: 0000000000156251 [15:36:37]line Версия ККМ: v1.0 [15:36:37]OFD Sender: Processing packet 70295 [packets to send 18, broken 17] [15:36:37]ProducePacketName [15:36:37]name=ofd_packets/00070295 [15:36:37]OFD Sender: To server: pG, [15:36:37]CommunicateWithHost lk.salyk.kg:30040 [15:36:37]ConnectInit lk.salyk.kg [15:36:37]line ФМ: 0000000000963346 [15:36:37]line ФД: 70295 [15:36:37]line ФПД: 127648113707878 [15:36:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70295&fm=127648113707878&tin=02508201610067®Number=0000000000156251&sum=70000 [15:36:37]written 0, free lines is 4095 [15:36:37]Connected sock=10 [15:36: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 34 36 0F 01 00 00 E9 2B 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F3 00 00 00 F4 03 04 00 89 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 12 01 00 35 04 06 00 74 18 64 79 4B 66 6A BB BB 7E 9A CA C2 97 [15:36: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 34 36 4F 00 00 00 05 5B 47 00 FD 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 12 01 00 F4 03 04 00 29 70 17 67 B6 04 01 00 00 ED A1 9C 3C F1 E4 78 73 [15:36:37]CommunicateWithHost err = 0 [15:36:37]CheckOFDResponse [15:36:37]1017 (14) - 77093643461234 [15:36:37]1041 (16) - 0000000000963346 [15:36:37]1040 (4) - 70295 [15:36:37]1012 (4) - 22.10.2024 09:28 [15:36:37]1206 (1) - 0 [15:36:37]OFD Sender: Remove packet 70295 [15:36:37]ProducePacketName [15:36:37]name=ofd_packets/00070295 [15:36:37]NVStorageDeleteData [15:36:37]Write to MH i2c: 01 00 00 DF 78 57 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 DF 78 00 00 00 00 00 FA 0C 64 [15:36:37]RasterBufferAndPrint [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]written 0, free lines is 3334 [15:36:37]MH_Cut [15:36:37]Write to MH i2c: D1 01 00 E6 78 01 30 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 01 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 01 00 E6 78 00 2F [15:36:37]Write to MH i2c: 01 00 00 E7 78 5F [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:38]OFD Sender: No OFD packet to send [15:36:38]*** Cut start [15:36:38]*** Partial cut [15:36:38]*** CUTSNS_PIN = 1 [15:36:38]*** CUTSNS_PIN = 0 [15:36:38]*** Brake cut motor [15:36:39]Read from MH i2c: 01 [15:36:39]MH_I2C_Read... [15:36:39]*** Stop cut motor [15:36:39]*** Cut end [15:36:39]Read from MH i2c: 01 07 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: 01 07 00 E7 78 00 00 00 00 00 FF 0F 74 [15:36:39]process_action close_receipt done [15:36:39]requested_data is exist [15:36:39]produce_requested_data [15:36:39]requested_item fm.sn is exist - process it [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 11 00 00 [15:36:39]Write to MH i2c: E2 08 00 E8 78 80 11 00 00 00 00 00 00 DA [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 17 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 17 00 E8 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [15:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:39]wFMCommunicate OK [15:36:39]requested_item fd.num is exist - process it [15:36:39]SAM_PROTO_GetFieldsCounters [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 13 00 00 [15:36:39]Write to MH i2c: E2 08 00 E9 78 80 13 00 00 00 00 00 00 DD [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 62 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 62 00 E9 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 12 01 00 0E 04 04 00 C3 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 3E [15:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 12 01 00 0E 04 04 00 C3 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 [15:36:39]wFMCommunicate OK [15:36:39]SAM_PROTO_GetFieldsCounters done [15:36:39]requested_item shift.num is exist - process it [15:36:39]requested_item shift.opened is exist - process it [15:36:39]req_shift_opened [15:36:39]FM_GetShiftState [15:36:39]SAM_PROTO_GetShiftState [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 13 01 00 [15:36:39]Write to MH i2c: E2 08 00 EA 78 80 13 01 00 00 00 00 00 DF [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 0E 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 0E 00 EA 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CD [15:36:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:36:39]wFMCommunicate OK [15:36:39]SAM_PROTO_GetShiftState done [15:36:39]FM_GetShiftState done [15:36:39]req_shift_opened done [15:36:39]requested_item shift.open_date is exist - process it [15:36:39]req_shift_open_date [15:36:39]req_shift_open_date done [15:36:39]produce_requested_data done [15:36:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70295,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:36:39]process_action_free close_receipt [15:36:39]json_value_free [15:36:39]json_value_free done [15:36:39]process_json_proto returns [15:36:39]Send response to host [15:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70295,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:36:39]free response buf [15:36:39]execute_script done [15:36:39]execute_script returns [15:36:39]free content buf [15:36:39]Sock 9.Close socket [15:36:39]Sock 9.Thread stoped [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:39]accept exits with 7 [15:37:39]New connection [15:37:39]New thread 3067026788 created [15:37:39]Thread 3067170148 joined [15:37:39]Waiting for new connection... [15:37:39] Sock 7.Parse request [15:37:39]Sock 7.Check first char [15:37:39]Sock 7.First char is OK [15:37:39]request: POST /json_proto HTTP/1.0 [15:37:39]Method: POST [15:37:39]URL: /json_proto [15:37:39]Method is POST - this is cgi request [15:37:39]url: /json_proto [15:37:39]query_string will be loaded in cgi processing [15:37:39]execute_cgi json_proto POST (null) [15:37:39]execute_cgi path=json_proto method=POST [15:37:39]POST find Content-Length [15:37:39]Host: 172.17.50.3:8080 [15:37:39]Content-Length: 767 [15:37:39]Content-Type: application/json [15:37:39] [15:37:39]POST finish read [15:37:39]Found Content-Length = 767 [15:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:37:39]execute_script... [15:37: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)2886064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:37:39]POST & json_proto [15:37:39]process_json_proto [15:37:39]json parsed OK: [15:37:39]protocol is kg_v1.0 [15:37:39]action value=close_receipt [15:37:39]process_action close_receipt [15:37:39]cmd_close_receipt [15:37:39]MH_GetDate [15:37:39]Write to MH i2c: F0 00 00 EB 78 52 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 09 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 09 00 EB 78 00 C9 C6 17 67 6B 98 1E 66 EF [15:37:39]GetLastDocTimeStamp 1729611401 [15:37:39]current date 1729611465 [15:37:39]FM_GetShiftState [15:37:39]SAM_PROTO_GetShiftState [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 13 01 00 [15:37:39]Write to MH i2c: E2 08 00 EC 78 80 13 01 00 00 00 00 00 E1 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 EC 78 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CF [15:37:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_GetShiftState done [15:37:39]FM_GetShiftState done [15:37:39]opened in 1729555832 [15:37:39]opened+sec_in_day 1729642232 [15:37:39]quantity*price = 50041 [15:37:39]sum+1 = 50042 [15:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 244 22.10.2024 15:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70296 ФПД: 102197152438760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70296&fm=102197152438760&tin=02508201610067®Number=0000000000156251&sum=50041 [15:37:40]StoreToDocumentArchive [15:37:40]shift 195 fd 70296 [15:37:40]save to /storage/0195/doc_00070296 [15:37:40]save last doc name /storage/0195/doc_00070296 to /storage/kkm_last_doc_name [15:37:40]save OK [15:37:40]Clear old archive folders... [15:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:40]tlvbuf is 011448F0 [15:37:40]SAM_PROTO_ClearQueue [15:37:40]wFMCommunicate request_size=4 [15:37:40]MH_SAM_APDU [15:37:40]CAPDU: 80 09 00 00 [15:37:40]Write to MH i2c: E2 08 00 F9 78 80 09 00 00 00 00 00 00 E3 [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:40]Read from MH i2c: E2 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: E2 03 00 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: E2 03 00 F9 78 00 90 00 E5 [15:37:40]RAPDU: 90 00 [15:37:40]wFMCommunicate OK [15:37:40]SAM_PROTO_ClearQueue done [15:37:40]KKMCreateOFDPacket [15:37:40]OFDProtocolAddRootSTLVToBuf [15:37:40]FM_MakeSignedData [15:37:40]FM_MakeSignedData [15:37:40]SAM_PROTO_SignData [15:37:40]wFMCommunicate request_size=4 [15:37:40]MH_SAM_APDU [15:37:40]CAPDU: 80 0D 01 02 [15:37:40]Write to MH i2c: E2 08 00 FA 78 80 0D 01 02 00 00 00 00 EB [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:40]Read from MH i2c: E2 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: E2 03 00 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: E2 03 00 FA 78 00 90 00 E6 [15:37:40]RAPDU: 90 00 [15:37:40]wFMCommunicate OK [15:37:40]wFMCommunicate request_size=255 [15:37:40]MH_SAM_APDU [15:37: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 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 F4 00 00 00 F4 03 04 00 C9 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 12 01 00 35 04 06 00 5C [15:37:40]Write to MH i2c: E2 02 01 FB 78 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 F4 00 00 00 F4 03 04 00 C9 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 12 01 00 35 04 06 00 5C 00 00 91 [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 FB 78 00 90 00 E7 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]wFMCommunicate request_size=10 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 02 02 05 F2 A0 F7 D9 E8 [15:37:41]Write to MH i2c: E2 0D 00 FC 78 80 0D 02 02 05 00 F2 A0 F7 D9 E8 00 00 42 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 FC 78 00 90 00 E8 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 03 02 [15:37:41]Write to MH i2c: E2 08 00 FD 78 80 0D 03 02 00 00 00 00 F0 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0B 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0B 00 FD 78 00 C9 2D C2 E2 CE AC D5 CE 90 00 A8 [15:37:41]RAPDU: C9 2D C2 E2 CE AC D5 CE 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_SignData done [15:37:41]FM_MakeSignedData done [15:37:41]CreateOFDProtocolMessage [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 11 00 00 [15:37:41]Write to MH i2c: E2 08 00 FE 78 80 11 00 00 00 00 00 00 F0 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 FE 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [15:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:37:41]wFMCommunicate OK [15:37:41]CreateOFDProtocolMessage done [15:37:41]OFDSenderStorePacket 70296 [15:37:41]StoreOFDPacket docnum=70296 [15:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 52 56 07 01 64 2F 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 F4 00 00 00 F4 03 04 00 C9 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 12 01 00 35 04 06 00 5C F2 A0 F7 D9 E8 C9 2D C2 E2 CE AC D5 CE [15:37:41]CheckFolder [15:37:41]dirname=/storage/ofd_packets [15:37:41]CheckFolder done [15:37:41]ProducePacketName [15:37:41]name=ofd_packets/00070296 [15:37:41]NVStorageSaveData ofd_packets/00070296 [15:37:41]File name is /storage/ofd_packets/00070296 [15:37:41]Write 301 bytes [15:37:41]NVStorageSaveData done [15:37:41]OFDSenderStorePacket done [15:37:41]KKMCreateOFDPacket done [15:37:41]NVStorageSaveData kkm_last_timestamp [15:37:41]File name is /storage/kkm_last_timestamp [15:37:41]Write 4 bytes [15:37:41]NVStorageSaveData done [15:37:41]ExternCall_PrintAddStr [15:37:41]wPrintStart [15:37:41]Write to MH i2c: 01 00 00 FF 78 77 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 07 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 07 00 FF 78 00 00 00 00 00 FF 0F 8C [15:37:41]RasterBufferAndPrint [15:37:41]line Счет N : (1)2886064 [15:37:41]line ИНН: 02508201610067 [15:37:41]line Контрольно-Кассовый Чек [15:37:41]line ПРОДАЖА [15:37:41]line ТРК (МРК, ГНК) : 32 [15:37:41]line Товар: 2710124130 [15:37:41]line Аи-92-К-5 [15:37:41]line 7.480 * 66.90 [15:37:41]line = 500.41 [15:37:41]line НДС 12% НСП 1% [15:37:41]line > о реализуемом товаре [15:37:41]line ИТОГО: 500.41 [15:37:41]line НСП 1% : 4.43 [15:37:41]line НДС 12% : 53.14 [15:37:41]line Наличными: 0.00 [15:37:41]line Безнал.: 500.41 [15:37:41]line Место: АЗС № 85 "Партнер Нефть" [15:37:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:37:41]line СНО: Общий режим [15:37:41]line Чек 244 22.10.2024 15:37 [15:37:41]line Смена: 195 ФФД: 1.0 [15:37:41]line ЗНМ: 0300000167 [15:37:41]line РНМ: 0000000000156251 [15:37:41]line Версия ККМ: v1.0 [15:37:41]line Платежная система: Mbank [15:37:41]line ФМ: 0000000000963346 [15:37:41]line ФД: 70296 [15:37:41]line ФПД: 102197152438760 [15:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70296&fm=102197152438760&tin=02508201610067®Number=0000000000156251&sum=50041 [15:37:41]OFD Sender: Processing packet 70296 [packets to send 18, broken 17] [15:37:41]ProducePacketName [15:37:41]name=ofd_packets/00070296 [15:37:41]OFD Sender: To server: pG, [15:37:41]CommunicateWithHost lk.salyk.kg:30040 [15:37:41]ConnectInit lk.salyk.kg [15:37:41]written 0, free lines is 4095 [15:37:41]Connected sock=10 [15:37: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 34 36 0F 01 00 00 52 56 07 01 64 2F 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 F4 00 00 00 F4 03 04 00 C9 C6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 12 01 00 35 04 06 00 5C F2 A0 F7 D9 E8 C9 2D C2 E2 CE AC D5 CE [15:37: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 34 36 4F 00 00 00 97 2D 47 00 F0 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 34 36 10 04 04 00 98 12 01 00 F4 03 04 00 6A 70 17 67 B6 04 01 00 00 4D 7C 87 FB E2 47 E1 F8 [15:37:41]CommunicateWithHost err = 0 [15:37:41]CheckOFDResponse [15:37:41]1017 (14) - 77093643461234 [15:37:41]1041 (16) - 0000000000963346 [15:37:41]1040 (4) - 70296 [15:37:41]1012 (4) - 22.10.2024 09:29 [15:37:41]1206 (1) - 0 [15:37:41]OFD Sender: Remove packet 70296 [15:37:41]ProducePacketName [15:37:41]name=ofd_packets/00070296 [15:37:41]NVStorageDeleteData [15:37:42]Write to MH i2c: 01 00 00 28 79 A1 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 07 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 07 00 28 79 00 00 00 00 00 26 0D DB [15:37:42]RasterBufferAndPrint [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]written 0, free lines is 3376 [15:37:42]MH_Cut [15:37:42]Write to MH i2c: D1 01 00 2F 79 01 7A [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 01 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 01 00 2F 79 00 79 [15:37:42]Write to MH i2c: 01 00 00 30 79 A9 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]OFD Sender: No OFD packet to send [15:37:42]*** Cut start [15:37:42]*** Partial cut [15:37:42]*** CUTSNS_PIN = 1 [15:37:42]*** CUTSNS_PIN = 0 [15:37:42]*** Brake cut motor [15:37:43]Read from MH i2c: 01 [15:37:43]MH_I2C_Read... [15:37:43]*** Stop cut motor [15:37:43]*** Cut end [15:37:43]Read from MH i2c: 01 07 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 30 79 00 00 00 00 00 FF 0F BE [15:37:43]process_action close_receipt done [15:37:43]requested_data is exist [15:37:43]produce_requested_data [15:37:43]requested_item fm.sn is exist - process it [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 11 00 00 [15:37:43]Write to MH i2c: E2 08 00 31 79 80 11 00 00 00 00 00 00 24 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 31 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [15:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:37:43]wFMCommunicate OK [15:37:43]requested_item fd.num is exist - process it [15:37:43]SAM_PROTO_GetFieldsCounters [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 13 00 00 [15:37:43]Write to MH i2c: E2 08 00 32 79 80 13 00 00 00 00 00 00 27 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 62 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 62 00 32 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 12 01 00 0E 04 04 00 C3 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 8C [15:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 12 01 00 0E 04 04 00 C3 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 [15:37:43]wFMCommunicate OK [15:37:43]SAM_PROTO_GetFieldsCounters done [15:37:43]requested_item shift.num is exist - process it [15:37:43]requested_item shift.opened is exist - process it [15:37:43]req_shift_opened [15:37:43]FM_GetShiftState [15:37:43]SAM_PROTO_GetShiftState [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 13 01 00 [15:37:43]Write to MH i2c: E2 08 00 33 79 80 13 01 00 00 00 00 00 29 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 0E 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 0E 00 33 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 17 [15:37:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:37:43]wFMCommunicate OK [15:37:43]SAM_PROTO_GetShiftState done [15:37:43]FM_GetShiftState done [15:37:43]req_shift_opened done [15:37:43]requested_item shift.open_date is exist - process it [15:37:43]req_shift_open_date [15:37:43]req_shift_open_date done [15:37:43]produce_requested_data done [15:37:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70296,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:37:43]process_action_free close_receipt [15:37:43]json_value_free [15:37:43]json_value_free done [15:37:43]process_json_proto returns [15:37:43]Send response to host [15:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70296,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:37:43]free response buf [15:37:43]execute_script done [15:37:43]execute_script returns [15:37:43]free content buf [15:37:43]Sock 7.Close socket [15:37:43]Sock 7.Thread stoped [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:15]accept exits with 9 [15:39:15]New connection [15:39:15]New thread 3067170148 created [15:39:15]Thread 3067026788 joined [15:39:15]Waiting for new connection... [15:39:15] Sock 9.Parse request [15:39:15]Sock 9.Check first char [15:39:15]Sock 9.First char is OK [15:39:15]request: POST /json_proto HTTP/1.0 [15:39:15]Method: POST [15:39:15]URL: /json_proto [15:39:15]Method is POST - this is cgi request [15:39:15]url: /json_proto [15:39:15]query_string will be loaded in cgi processing [15:39:15]execute_cgi json_proto POST (null) [15:39:15]execute_cgi path=json_proto method=POST [15:39:15]POST find Content-Length [15:39:15]Host: 172.17.50.3:8080 [15:39:15]Content-Length: 798 [15:39:15]Content-Type: application/json [15:39:15] [15:39:15]POST finish read [15:39:15]Found Content-Length = 798 [15:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886065", "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" : 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\u000A4292225", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]execute_script... [15: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)2886065", "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" : 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\u000A4292225", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]POST & json_proto [15:39:15]process_json_proto [15:39:15]json parsed OK: [15:39:15]protocol is kg_v1.0 [15:39:15]action value=close_receipt [15:39:15]process_action close_receipt [15:39:15]cmd_close_receipt [15:39:15]MH_GetDate [15:39:15]Write to MH i2c: F0 00 00 34 79 9C [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 34 79 00 29 C7 17 67 6B 98 1E 66 9A [15:39:15]GetLastDocTimeStamp 1729611465 [15:39:15]current date 1729611561 [15:39:15]FM_GetShiftState [15:39:15]SAM_PROTO_GetShiftState [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 13 01 00 [15:39:15]Write to MH i2c: E2 08 00 35 79 80 13 01 00 00 00 00 00 2B [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 35 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 19 [15:39:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_GetShiftState done [15:39:15]FM_GetShiftState done [15:39:15]opened in 1729555832 [15:39:15]opened+sec_in_day 1729642232 [15:39:15]quantity*price = 0 [15:39:15]sum+1 = 1 [15:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 245 22.10.2024 15:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4292225 ФМ: 0000000000963346 ФД: 70297 ФПД: 44003824907121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70297&fm=44003824907121&tin=02508201610067®Number=0000000000156251&sum=0 [15:39:16]StoreToDocumentArchive [15:39:16]shift 195 fd 70297 [15:39:16]save to /storage/0195/doc_00070297 [15:39:16]save last doc name /storage/0195/doc_00070297 to /storage/kkm_last_doc_name [15:39:16]save OK [15:39:16]Clear old archive folders... [15:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:39:16]tlvbuf is 011552B0 [15:39:16]SAM_PROTO_ClearQueue [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 09 00 00 [15:39:16]Write to MH i2c: E2 08 00 42 79 80 09 00 00 00 00 00 00 2D [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 42 79 00 90 00 2F [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_ClearQueue done [15:39:16]KKMCreateOFDPacket [15:39:16]OFDProtocolAddRootSTLVToBuf [15:39:16]FM_MakeSignedData [15:39:16]FM_MakeSignedData [15:39:16]SAM_PROTO_SignData [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 01 02 [15:39:16]Write to MH i2c: E2 08 00 43 79 80 0D 01 02 00 00 00 00 35 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 43 79 00 90 00 30 [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=255 [15:39:16]MH_SAM_APDU [15:39: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 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 F5 00 00 00 F4 03 04 00 29 C7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 12 01 00 35 04 06 00 28 05 70 5A [15:39:16]Write to MH i2c: E2 02 01 44 79 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 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 F5 00 00 00 F4 03 04 00 29 C7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 12 01 00 35 04 06 00 28 05 70 5A 00 00 8C [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 44 79 00 90 00 31 [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=7 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 02 02 02 33 71 [15:39:16]Write to MH i2c: E2 0A 00 45 79 80 0D 02 02 02 00 33 71 00 00 E0 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 45 79 00 90 00 32 [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 03 02 [15:39:16]Write to MH i2c: E2 08 00 46 79 80 0D 03 02 00 00 00 00 3A [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0B 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0B 00 46 79 00 95 4D 1A B1 22 4B 8C BD 90 00 9E [15:39:16]RAPDU: 95 4D 1A B1 22 4B 8C BD 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_SignData done [15:39:16]FM_MakeSignedData done [15:39:16]CreateOFDProtocolMessage [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 11 00 00 [15:39:16]Write to MH i2c: E2 08 00 47 79 80 11 00 00 00 00 00 00 3A [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 47 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [15:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:16]wFMCommunicate OK [15:39:16]CreateOFDProtocolMessage done [15:39:16]OFDSenderStorePacket 70297 [15:39:16]StoreOFDPacket docnum=70297 [15:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 83 A9 04 01 3A 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 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 F5 00 00 00 F4 03 04 00 29 C7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 12 01 00 35 04 06 00 28 05 70 5A 33 71 95 4D 1A B1 22 4B 8C BD [15:39:16]CheckFolder [15:39:16]dirname=/storage/ofd_packets [15:39:16]CheckFolder done [15:39:16]ProducePacketName [15:39:16]name=ofd_packets/00070297 [15:39:16]NVStorageSaveData ofd_packets/00070297 [15:39:16]File name is /storage/ofd_packets/00070297 [15:39:16]Write 298 bytes [15:39:16]NVStorageSaveData done [15:39:16]OFDSenderStorePacket done [15:39:16]KKMCreateOFDPacket done [15:39:16]NVStorageSaveData kkm_last_timestamp [15:39:16]File name is /storage/kkm_last_timestamp [15:39:16]Write 4 bytes [15:39:16]NVStorageSaveData done [15:39:16]ExternCall_PrintAddStr [15:39:16]wPrintStart [15:39:16]Write to MH i2c: 01 00 00 48 79 C1 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 48 79 00 00 00 00 00 FF 0F D6 [15:39:16]RasterBufferAndPrint [15:39:16]line Счет N : (1)2886065 [15:39:16]line ИНН: 02508201610067 [15:39:16]line Контрольно-Кассовый Чек [15:39:16]line ПРОДАЖА [15:39:16]line ТРК (МРК, ГНК) : 51 [15:39:16]line Товар: 2710194210 [15:39:16]line ДТ-К-5 [15:39:16]line 10.000 * 0.00 [15:39:16]line = 0.00 [15:39:16]line НДС 12% НСП 1% [15:39:16]line > о реализуемом товаре [15:39:16]line ИТОГО: 0.00 [15:39:16]line НСП 1% : 0.00 [15:39:16]line НДС 12% : 0.00 [15:39:16]line Наличными: 0.00 [15:39:16]line Безнал.: 0.00 [15:39:16]line Место: АЗС № 85 "Партнер Нефть" [15:39:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:39:16]line СНО: Общий режим [15:39:16]line Чек 245 22.10.2024 15:39 [15:39:16]line Смена: 195 ФФД: 1.0 [15:39:16]line ЗНМ: 0300000167 [15:39:16]line РНМ: 0000000000156251 [15:39:16]line Версия ККМ: v1.0 [15:39:16]line Талоны: Топливные Талоны [15:39:16]line 4292225 [15:39:16]line ФМ: 0000000000963346 [15:39:16]line ФД: 70297 [15:39:16]line ФПД: 44003824907121 [15:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70297&fm=44003824907121&tin=02508201610067®Number=0000000000156251&sum=0 [15:39:17]OFD Sender: Processing packet 70297 [packets to send 18, broken 17] [15:39:17]ProducePacketName [15:39:17]name=ofd_packets/00070297 [15:39:17]OFD Sender: To server: pG, [15:39:17]CommunicateWithHost lk.salyk.kg:30040 [15:39:17]ConnectInit lk.salyk.kg [15:39:17]written 0, free lines is 4095 [15:39:17]Connected sock=10 [15: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 34 36 0C 01 00 00 83 A9 04 01 3A 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 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 F5 00 00 00 F4 03 04 00 29 C7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 12 01 00 35 04 06 00 28 05 70 5A 33 71 95 4D 1A B1 22 4B 8C BD [15: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 34 36 4F 00 00 00 F4 63 47 00 E6 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 34 36 10 04 04 00 99 12 01 00 F4 03 04 00 C9 70 17 67 B6 04 01 00 00 0C 4C 30 E6 0D 70 2E AB [15:39:17]CommunicateWithHost err = 0 [15:39:17]CheckOFDResponse [15:39:17]1017 (14) - 77093643461234 [15:39:17]1041 (16) - 0000000000963346 [15:39:17]1040 (4) - 70297 [15:39:17]1012 (4) - 22.10.2024 09:30 [15:39:17]1206 (1) - 0 [15:39:17]OFD Sender: Remove packet 70297 [15:39:17]ProducePacketName [15:39:17]name=ofd_packets/00070297 [15:39:17]NVStorageDeleteData [15:39:17]Write to MH i2c: 01 00 00 72 79 EB [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 72 79 00 00 00 00 00 FE 0C FC [15:39:17]RasterBufferAndPrint [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]written 0, free lines is 3332 [15:39:17]MH_Cut [15:39:17]Write to MH i2c: D1 01 00 79 79 01 C4 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 79 79 00 C3 [15:39:17]Write to MH i2c: 01 00 00 7A 79 F3 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]OFD Sender: No OFD packet to send [15:39:18]*** Cut start [15:39:18]*** Partial cut [15:39:18]*** CUTSNS_PIN = 1 [15:39:18]*** CUTSNS_PIN = 0 [15:39:18]*** Brake cut motor [15:39:18]Read from MH i2c: 01 [15:39:18]MH_I2C_Read... [15:39:18]*** Stop cut motor [15:39:18]*** Cut end [15:39:18]Read from MH i2c: 01 07 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 7A 79 00 00 00 00 00 FF 0F 08 [15:39:18]process_action close_receipt done [15:39:18]requested_data is exist [15:39:18]produce_requested_data [15:39:18]requested_item fm.sn is exist - process it [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 11 00 00 [15:39:18]Write to MH i2c: E2 08 00 7B 79 80 11 00 00 00 00 00 00 6E [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 7B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [15:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:18]wFMCommunicate OK [15:39:18]requested_item fd.num is exist - process it [15:39:18]SAM_PROTO_GetFieldsCounters [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 13 00 00 [15:39:18]Write to MH i2c: E2 08 00 7C 79 80 13 00 00 00 00 00 00 71 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:19]Read from MH i2c: E2 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 62 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 62 00 7C 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 12 01 00 0E 04 04 00 C3 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 DA [15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 12 01 00 0E 04 04 00 C3 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 [15:39:19]wFMCommunicate OK [15:39:19]SAM_PROTO_GetFieldsCounters done [15:39:19]requested_item shift.num is exist - process it [15:39:19]requested_item shift.opened is exist - process it [15:39:19]req_shift_opened [15:39:19]FM_GetShiftState [15:39:19]SAM_PROTO_GetShiftState [15:39:19]wFMCommunicate request_size=4 [15:39:19]MH_SAM_APDU [15:39:19]CAPDU: 80 13 01 00 [15:39:19]Write to MH i2c: E2 08 00 7D 79 80 13 01 00 00 00 00 00 73 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:19]Read from MH i2c: E2 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 0E 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 0E 00 7D 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 61 [15:39:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:39:19]wFMCommunicate OK [15:39:19]SAM_PROTO_GetShiftState done [15:39:19]FM_GetShiftState done [15:39:19]req_shift_opened done [15:39:19]requested_item shift.open_date is exist - process it [15:39:19]req_shift_open_date [15:39:19]req_shift_open_date done [15:39:19]produce_requested_data done [15:39:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70297,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:39:19]process_action_free close_receipt [15:39:19]json_value_free [15:39:19]json_value_free done [15:39:19]process_json_proto returns [15:39:19]Send response to host [15:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70297,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:39:19]free response buf [15:39:19]execute_script done [15:39:19]execute_script returns [15:39:19]free content buf [15:39:19]Sock 9.Close socket [15:39:19]Sock 9.Thread stoped [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:46]accept exits with 7 [15:43:46]New connection [15:43:46]New thread 3067026788 created [15:43:46]Thread 3067170148 joined [15:43:46]Waiting for new connection... [15:43:46] Sock 7.Parse request [15:43:46]Sock 7.Check first char [15:43:46]Sock 7.First char is OK [15:43:46]request: POST /json_proto HTTP/1.0 [15:43:46]Method: POST [15:43:46]URL: /json_proto [15:43:46]Method is POST - this is cgi request [15:43:46]url: /json_proto [15:43:46]query_string will be loaded in cgi processing [15:43:46]execute_cgi json_proto POST (null) [15:43:46]execute_cgi path=json_proto method=POST [15:43:46]POST find Content-Length [15:43:46]Host: 172.17.50.3:8080 [15:43:46]Content-Length: 683 [15:43:46]Content-Type: application/json [15:43:46] [15:43:46]POST finish read [15:43:46]Found Content-Length = 683 [15:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [15:43:46]execute_script... [15:43: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)2886066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [15:43:46]POST & json_proto [15:43:46]process_json_proto [15:43:46]json parsed OK: [15:43:46]protocol is kg_v1.0 [15:43:46]action value=close_receipt [15:43:46]process_action close_receipt [15:43:46]cmd_close_receipt [15:43:46]MH_GetDate [15:43:46]Write to MH i2c: F0 00 00 7E 79 E6 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: F0 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: F0 09 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: F0 09 00 7E 79 00 38 C8 17 67 6B 98 1E 66 F4 [15:43:46]GetLastDocTimeStamp 1729611561 [15:43:46]current date 1729611832 [15:43:46]FM_GetShiftState [15:43:46]SAM_PROTO_GetShiftState [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 13 01 00 [15:43:46]Write to MH i2c: E2 08 00 7F 79 80 13 01 00 00 00 00 00 75 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0E 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0E 00 7F 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 63 [15:43:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_GetShiftState done [15:43:46]FM_GetShiftState done [15:43:46]opened in 1729555832 [15:43:46]opened+sec_in_day 1729642232 [15:43:46]quantity*price = 200031 [15:43:46]sum+1 = 200032 [15:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 246 22.10.2024 15:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70298 ФПД: 185154062792111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70298&fm=185154062792111&tin=02508201610067®Number=0000000000156251&sum=200000 [15:43:47]StoreToDocumentArchive [15:43:47]shift 195 fd 70298 [15:43:47]save to /storage/0195/doc_00070298 [15:43:47]save last doc name /storage/0195/doc_00070298 to /storage/kkm_last_doc_name [15:43:47]save OK [15:43:47]Clear old archive folders... [15:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:47]tlvbuf is 011CD770 [15:43:47]SAM_PROTO_ClearQueue [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 09 00 00 [15:43:47]Write to MH i2c: E2 08 00 8C 79 80 09 00 00 00 00 00 00 77 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 8C 79 00 90 00 79 [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_ClearQueue done [15:43:47]KKMCreateOFDPacket [15:43:47]OFDProtocolAddRootSTLVToBuf [15:43:47]FM_MakeSignedData [15:43:47]FM_MakeSignedData [15:43:47]SAM_PROTO_SignData [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 01 02 [15:43:47]Write to MH i2c: E2 08 00 8D 79 80 0D 01 02 00 00 00 00 7F [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 8D 79 00 90 00 7A [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=255 [15:43:47]MH_SAM_APDU [15:43: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 F6 00 00 00 F4 03 04 00 38 C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 12 01 00 35 04 06 00 A8 [15:43:47]Write to MH i2c: E2 02 01 8E 79 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 F6 00 00 00 F4 03 04 00 38 C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 12 01 00 35 04 06 00 A8 00 00 D6 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 8E 79 00 90 00 7B [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=10 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 02 02 05 65 8A 24 35 AF [15:43:47]Write to MH i2c: E2 0D 00 8F 79 80 0D 02 02 05 00 65 8A 24 35 AF 00 00 83 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 8F 79 00 90 00 7C [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 03 02 [15:43:47]Write to MH i2c: E2 08 00 90 79 80 0D 03 02 00 00 00 00 84 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0B 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0B 00 90 79 00 96 1F 69 35 7E C2 23 DE 90 00 19 [15:43:47]RAPDU: 96 1F 69 35 7E C2 23 DE 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_SignData done [15:43:47]FM_MakeSignedData done [15:43:47]CreateOFDProtocolMessage [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 11 00 00 [15:43:47]Write to MH i2c: E2 08 00 91 79 80 11 00 00 00 00 00 00 84 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 91 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [15:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:43:47]wFMCommunicate OK [15:43:47]CreateOFDProtocolMessage done [15:43:47]OFDSenderStorePacket 70298 [15:43:47]StoreOFDPacket docnum=70298 [15:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E1 40 07 01 33 7F 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 F6 00 00 00 F4 03 04 00 38 C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 12 01 00 35 04 06 00 A8 65 8A 24 35 AF 96 1F 69 35 7E C2 23 DE [15:43:47]CheckFolder [15:43:47]dirname=/storage/ofd_packets [15:43:47]CheckFolder done [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00070298 [15:43:47]NVStorageSaveData ofd_packets/00070298 [15:43:47]File name is /storage/ofd_packets/00070298 [15:43:47]Write 301 bytes [15:43:47]NVStorageSaveData done [15:43:47]OFDSenderStorePacket done [15:43:47]KKMCreateOFDPacket done [15:43:47]NVStorageSaveData kkm_last_timestamp [15:43:47]File name is /storage/kkm_last_timestamp [15:43:47]Write 4 bytes [15:43:47]NVStorageSaveData done [15:43:47]ExternCall_PrintAddStr [15:43:47]wPrintStart [15:43:47]Write to MH i2c: 01 00 00 92 79 0B [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 92 79 00 00 00 00 00 FF 0F 20 [15:43:47]RasterBufferAndPrint [15:43:47]line Счет N : (1)2886066 [15:43:47]line ИНН: 02508201610067 [15:43:47]line Контрольно-Кассовый Чек [15:43:47]line ПРОДАЖА [15:43:47]line ТРК (МРК, ГНК) : 32 [15:43:47]line Товар: 2710124130 [15:43:47]line Аи-92-К-5 [15:43:47]line 29.900 * 66.90 [15:43:47]line = 2000.31 [15:43:47]line НДС 12% НСП 1% [15:43:47]line > о реализуемом товаре [15:43:47]line ОКРУГЛЕНИЕ: -0.31 [15:43:47]line ИТОГО: 2000.00 [15:43:47]line Внесено: 2000.00 [15:43:47]line СДАЧА: 0.00 [15:43:47]line НСП 1% : 17.70 [15:43:47]line НДС 12% : 212.42 [15:43:47]line Наличными: 2000.00 [15:43:47]line Безнал.: 0.00 [15:43:47]line Место: АЗС № 85 "Партнер Нефть" [15:43:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:43:47]line СНО: Общий режим [15:43:47]line Чек 246 22.10.2024 15:43 [15:43:47]line Смена: 195 ФФД: 1.0 [15:43:47]line ЗНМ: 0300000167 [15:43:47]line РНМ: 0000000000156251 [15:43:47]line Версия ККМ: v1.0 [15:43:47]line ФМ: 0000000000963346 [15:43:47]line ФД: 70298 [15:43:47]line ФПД: 185154062792111 [15:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70298&fm=185154062792111&tin=02508201610067®Number=0000000000156251&sum=200000 [15:43:48]OFD Sender: Processing packet 70298 [packets to send 18, broken 17] [15:43:48]ProducePacketName [15:43:48]name=ofd_packets/00070298 [15:43:48]OFD Sender: To server: pG, [15:43:48]CommunicateWithHost lk.salyk.kg:30040 [15:43:48]ConnectInit lk.salyk.kg [15:43:48]written 0, free lines is 4095 [15:43:48]Write to MH i2c: 01 00 00 BD 79 36 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 BD 79 00 00 00 00 00 F3 0C 3C [15:43:48]RasterBufferAndPrint [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]written 0, free lines is 3321 [15:43:48]MH_Cut [15:43:48]Write to MH i2c: D1 01 00 C4 79 01 0F [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 01 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 01 00 C4 79 00 0E [15:43:48]Write to MH i2c: 01 00 00 C5 79 3E [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:49]*** Cut start [15:43:49]*** Partial cut [15:43:49]*** CUTSNS_PIN = 1 [15:43:49]*** CUTSNS_PIN = 0 [15:43:49]*** Brake cut motor [15:43:49]Read from MH i2c: 01 [15:43:49]MH_I2C_Read... [15:43:49]*** Stop cut motor [15:43:49]*** Cut end [15:43:49]Read from MH i2c: 01 07 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 07 00 C5 79 00 00 00 00 00 FF 0F 53 [15:43:49]process_action close_receipt done [15:43:49]requested_data is exist [15:43:49]produce_requested_data [15:43:49]requested_item fm.sn is exist - process it [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 11 00 00 [15:43:49]Write to MH i2c: E2 08 00 C6 79 80 11 00 00 00 00 00 00 B9 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 C6 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [15:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:43:49]wFMCommunicate OK [15:43:49]requested_item fd.num is exist - process it [15:43:49]SAM_PROTO_GetFieldsCounters [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 00 00 [15:43:49]Write to MH i2c: E2 08 00 C7 79 80 13 00 00 00 00 00 00 BC [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 C7 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 12 01 00 0E 04 04 00 C3 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 29 [15:43: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 12 01 00 0E 04 04 00 C3 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 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetFieldsCounters done [15:43:49]requested_item shift.num is exist - process it [15:43:49]requested_item shift.opened is exist - process it [15:43:49]req_shift_opened [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 C8 79 80 13 01 00 00 00 00 00 BE [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0E 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0E 00 C8 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AC [15:43:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:43:50]wFMCommunicate OK [15:43:50]SAM_PROTO_GetShiftState done [15:43:50]FM_GetShiftState done [15:43:50]req_shift_opened done [15:43:50]requested_item shift.open_date is exist - process it [15:43:50]req_shift_open_date [15:43:50]req_shift_open_date done [15:43:50]produce_requested_data done [15:43:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70298,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:43:50]process_action_free close_receipt [15:43:50]json_value_free [15:43:50]json_value_free done [15:43:50]process_json_proto returns [15:43:50]Send response to host [15:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70298,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:43:50]free response buf [15:43:50]execute_script done [15:43:50]execute_script returns [15:43:50]free content buf [15:43:50]Sock 7.Close socket [15:43:50]Sock 7.Thread stoped [15:45:57]accept exits with 9 [15:45:57]New connection [15:45:57]New thread 3067170148 created [15:45:57]Thread 3067026788 joined [15:45:57]Waiting for new connection... [15:45:57] Sock 9.Parse request [15:45:57]Sock 9.Check first char [15:45:57]Sock 9.First char is OK [15:45:57]request: POST /json_proto HTTP/1.0 [15:45:57]Method: POST [15:45:57]URL: /json_proto [15:45:57]Method is POST - this is cgi request [15:45:57]url: /json_proto [15:45:57]query_string will be loaded in cgi processing [15:45:57]execute_cgi json_proto POST (null) [15:45:57]execute_cgi path=json_proto method=POST [15:45:57]POST find Content-Length [15:45:57]Host: 172.17.50.3:8080 [15:45:57]Content-Length: 792 [15:45:57]Content-Type: application/json [15:45:57] [15:45:57]POST finish read [15:45:57]Found Content-Length = 792 [15:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 8.970, "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\u000A72835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]execute_script... [15:45: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)2886067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 8.970, "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\u000A72835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]POST & json_proto [15:45:57]process_json_proto [15:45:57]json parsed OK: [15:45:57]protocol is kg_v1.0 [15:45:57]action value=close_receipt [15:45:57]process_action close_receipt [15:45:57]cmd_close_receipt [15:45:57]MH_GetDate [15:45:57]Write to MH i2c: F0 00 00 C9 79 31 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 C9 79 00 BB C8 17 67 6B 98 1E 66 C2 [15:45:57]GetLastDocTimeStamp 1729611832 [15:45:57]current date 1729611963 [15:45:57]FM_GetShiftState [15:45:57]SAM_PROTO_GetShiftState [15:45:57]wFMCommunicate request_size=4 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 13 01 00 [15:45:57]Write to MH i2c: E2 08 00 CA 79 80 13 01 00 00 00 00 00 C0 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:57]Read from MH i2c: E2 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 CA 79 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AE [15:45:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:45:57]wFMCommunicate OK [15:45:57]SAM_PROTO_GetShiftState done [15:45:57]FM_GetShiftState done [15:45:57]opened in 1729555832 [15:45:57]opened+sec_in_day 1729642232 [15:45:57]quantity*price = 0 [15:45:57]sum+1 = 1 [15:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 247 22.10.2024 15:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 72835 ФМ: 0000000000963346 ФД: 70299 ФПД: 249545487471813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154603&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70299&fm=249545487471813&tin=02508201610067®Number=0000000000156251&sum=0 [15:45:58]StoreToDocumentArchive [15:45:58]shift 195 fd 70299 [15:45:58]save to /storage/0195/doc_00070299 [15:45:58]save last doc name /storage/0195/doc_00070299 to /storage/kkm_last_doc_name [15:45:58]save OK [15:45:58]Clear old archive folders... [15:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:58]tlvbuf is 011CD810 [15:45:58]SAM_PROTO_ClearQueue [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 09 00 00 [15:45:58]Write to MH i2c: E2 08 00 D7 79 80 09 00 00 00 00 00 00 C2 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 D7 79 00 90 00 C4 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]SAM_PROTO_ClearQueue done [15:45:58]KKMCreateOFDPacket [15:45:58]OFDProtocolAddRootSTLVToBuf [15:45:58]FM_MakeSignedData [15:45:58]FM_MakeSignedData [15:45:58]SAM_PROTO_SignData [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 01 02 [15:45:58]Write to MH i2c: E2 08 00 D8 79 80 0D 01 02 00 00 00 00 CA [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 D8 79 00 90 00 C5 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=255 [15:45:58]MH_SAM_APDU [15:45: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 0A 23 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 F7 00 00 00 F4 03 04 00 BB C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 12 01 00 35 04 06 00 E2 [15:45:58]Write to MH i2c: E2 02 01 D9 79 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 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 F7 00 00 00 F4 03 04 00 BB C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 12 01 00 35 04 06 00 E2 00 00 46 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=10 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 02 02 05 F5 D6 22 D4 C5 [15:45:58]Write to MH i2c: E2 0D 00 DA 79 80 0D 02 02 05 00 F5 D6 22 D4 C5 00 00 5D [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 DA 79 00 90 00 C7 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 03 02 [15:45:58]Write to MH i2c: E2 08 00 DB 79 80 0D 03 02 00 00 00 00 CF [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 DB 79 00 BF 8F FC CF 5A 40 22 39 90 00 DE [15:45:59]RAPDU: BF 8F FC CF 5A 40 22 39 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_SignData done [15:45:59]FM_MakeSignedData done [15:45:59]CreateOFDProtocolMessage [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 DC 79 80 11 00 00 00 00 00 00 CF [15:45:59]Write i2c OK [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 [15:45:59]MH_I2C_Read... [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 DC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [15:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:45:59]wFMCommunicate OK [15:45:59]CreateOFDProtocolMessage done [15:45:59]OFDSenderStorePacket 70299 [15:45:59]StoreOFDPacket docnum=70299 [15:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D BD 07 01 56 71 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 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 F7 00 00 00 F4 03 04 00 BB C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 12 01 00 35 04 06 00 E2 F5 D6 22 D4 C5 BF 8F FC CF 5A 40 22 39 [15:45:59]CheckFolder [15:45:59]dirname=/storage/ofd_packets [15:45:59]CheckFolder done [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00070299 [15:45:59]NVStorageSaveData ofd_packets/00070299 [15:45:59]File name is /storage/ofd_packets/00070299 [15:45:59]Write 301 bytes [15:45:59]NVStorageSaveData done [15:45:59]OFDSenderStorePacket done [15:45:59]KKMCreateOFDPacket done [15:45:59]NVStorageSaveData kkm_last_timestamp [15:45:59]File name is /storage/kkm_last_timestamp [15:45:59]Write 4 bytes [15:45:59]NVStorageSaveData done [15:45:59]ExternCall_PrintAddStr [15:45:59]wPrintStart [15:45:59]Write to MH i2c: 01 00 00 DD 79 56 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [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 DD 79 00 00 00 00 00 FF 0F 6B [15:45:59]RasterBufferAndPrint [15:45:59]line Счет N : (1)2886067 [15:45:59]line ИНН: 02508201610067 [15:45:59]line Контрольно-Кассовый Чек [15:45:59]line ПРОДАЖА [15:45:59]line ТРК (МРК, ГНК) : 42 [15:45:59]line Товар: 2710124130 [15:45:59]line Аи-92-К-5 [15:45:59]line 8.970 * 0.00 [15:45:59]line = 0.00 [15:45:59]line НДС 12% НСП 1% [15:45:59]line > о реализуемом товаре [15:45:59]line ИТОГО: 0.00 [15:45:59]line НСП 1% : 0.00 [15:45:59]line НДС 12% : 0.00 [15:45:59]line Наличными: 0.00 [15:45:59]line Безнал.: 0.00 [15:45:59]line Место: АЗС № 85 "Партнер Нефть" [15:45:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:45:59]line СНО: Общий режим [15:45:59]line Чек 247 22.10.2024 15:46 [15:45:59]line Смена: 195 ФФД: 1.0 [15:45:59]line ЗНМ: 0300000167 [15:45:59]line РНМ: 0000000000156251 [15:45:59]line Версия ККМ: v1.0 [15:45:59]line Талоны: Топливная Карта [15:45:59]line 72835 [15:45:59]line ФМ: 0000000000963346 [15:45:59]line ФД: 70299 [15:45:59]line ФПД: 249545487471813 [15:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154603&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70299&fm=249545487471813&tin=02508201610067®Number=0000000000156251&sum=0 [15:45:59]OFD Sender: Processing packet 70298 [packets to send 19, broken 17] [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00070298 [15:45:59]OFD Sender: To server: pG, [15:45:59]CommunicateWithHost lk.salyk.kg:30040 [15:45:59]ConnectInit lk.salyk.kg [15:45:59]written 0, free lines is 4095 [15:45:59]Connected sock=10 [15:45: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 34 36 0F 01 00 00 E1 40 07 01 33 7F 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 F6 00 00 00 F4 03 04 00 38 C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 12 01 00 35 04 06 00 A8 65 8A 24 35 AF 96 1F 69 35 7E C2 23 DE [15:45: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 34 36 4F 00 00 00 7B 89 47 00 B7 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 12 01 00 F4 03 04 00 5B 72 17 67 B6 04 01 00 00 5D 6D 85 4A DD 3E 23 B2 [15:45:59]CommunicateWithHost err = 0 [15:45:59]CheckOFDResponse [15:45:59]1017 (14) - 77093643461234 [15:45:59]1041 (16) - 0000000000963346 [15:45:59]1040 (4) - 70298 [15:45:59]1012 (4) - 22.10.2024 09:37 [15:45:59]1206 (1) - 0 [15:45:59]OFD Sender: Remove packet 70298 [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00070298 [15:45:59]NVStorageDeleteData [15:45:59]Write to MH i2c: 01 00 00 07 7A 81 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [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 07 7A 00 00 00 00 00 0C 0D A1 [15:45:59]RasterBufferAndPrint [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]written 0, free lines is 3346 [15:45:59]MH_Cut [15:45:59]Write to MH i2c: D1 01 00 0E 7A 01 5A [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 01 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 01 00 0E 7A 00 59 [15:45:59]Write to MH i2c: 01 00 00 0F 7A 89 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:46:00]OFD Sender: Processing packet 70299 [packets to send 18, broken 17] [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00070299 [15:46:00]OFD Sender: To server: pG, [15:46:00]CommunicateWithHost lk.salyk.kg:30040 [15:46:00]ConnectInit lk.salyk.kg [15:46:00]Connected sock=10 [15:46: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 34 36 0F 01 00 00 6D BD 07 01 56 71 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 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 F7 00 00 00 F4 03 04 00 BB C8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 12 01 00 35 04 06 00 E2 F5 D6 22 D4 C5 BF 8F FC CF 5A 40 22 39 [15:46:00]*** Cut start [15:46:00]*** Partial cut [15:46:00]*** CUTSNS_PIN = 1 [15:46: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 34 36 4F 00 00 00 DD 3B 47 00 94 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 34 36 10 04 04 00 9B 12 01 00 F4 03 04 00 5C 72 17 67 B6 04 01 00 00 CE E4 CE E8 67 82 02 DE [15:46:00]CommunicateWithHost err = 0 [15:46:00]CheckOFDResponse [15:46:00]1017 (14) - 77093643461234 [15:46:00]1041 (16) - 0000000000963346 [15:46:00]1040 (4) - 70299 [15:46:00]1012 (4) - 22.10.2024 09:37 [15:46:00]1206 (1) - 0 [15:46:00]OFD Sender: Remove packet 70299 [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00070299 [15:46:00]NVStorageDeleteData [15:46:00]*** CUTSNS_PIN = 0 [15:46:00]*** Brake cut motor [15:46:01]OFD Sender: No OFD packet to send [15:46:01]Read from MH i2c: 01 [15:46:01]MH_I2C_Read... [15:46:01]*** Stop cut motor [15:46:01]*** Cut end [15:46:01]Read from MH i2c: 01 07 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 07 00 0F 7A 00 00 00 00 00 FF 0F 9E [15:46:01]process_action close_receipt done [15:46:01]requested_data is exist [15:46:01]produce_requested_data [15:46:01]requested_item fm.sn is exist - process it [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 11 00 00 [15:46:01]Write to MH i2c: E2 08 00 10 7A 80 11 00 00 00 00 00 00 04 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 10 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [15:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:46:01]wFMCommunicate OK [15:46:01]requested_item fd.num is exist - process it [15:46:01]SAM_PROTO_GetFieldsCounters [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 00 00 [15:46:01]Write to MH i2c: E2 08 00 11 7A 80 13 00 00 00 00 00 00 07 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 11 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 12 01 00 0E 04 04 00 C3 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 78 [15:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 12 01 00 0E 04 04 00 C3 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 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetFieldsCounters done [15:46:01]requested_item shift.num is exist - process it [15:46:01]requested_item shift.opened is exist - process it [15:46:01]req_shift_opened [15:46:01]FM_GetShiftState [15:46:01]SAM_PROTO_GetShiftState [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 01 00 [15:46:01]Write to MH i2c: E2 08 00 12 7A 80 13 01 00 00 00 00 00 09 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 12 7A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F7 [15:46:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetShiftState done [15:46:01]FM_GetShiftState done [15:46:01]req_shift_opened done [15:46:01]requested_item shift.open_date is exist - process it [15:46:01]req_shift_open_date [15:46:01]req_shift_open_date done [15:46:01]produce_requested_data done [15:46:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70299,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:46:01]process_action_free close_receipt [15:46:01]json_value_free [15:46:01]json_value_free done [15:46:01]process_json_proto returns [15:46:01]Send response to host [15:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70299,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:46:01]free response buf [15:46:01]execute_script done [15:46:01]execute_script returns [15:46:01]free content buf [15:46:01]Sock 9.Close socket [15:46:01]Sock 9.Thread stoped [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:05]accept exits with 7 [15:47:05]New connection [15:47:05]New thread 3067026788 created [15:47:05]Thread 3067170148 joined [15:47:05]Waiting for new connection... [15:47:05] Sock 7.Parse request [15:47:05]Sock 7.Check first char [15:47:05]Sock 7.First char is OK [15:47:05]request: POST /json_proto HTTP/1.0 [15:47:05]Method: POST [15:47:05]URL: /json_proto [15:47:05]Method is POST - this is cgi request [15:47:05]url: /json_proto [15:47:05]query_string will be loaded in cgi processing [15:47:05]execute_cgi json_proto POST (null) [15:47:05]execute_cgi path=json_proto method=POST [15:47:05]POST find Content-Length [15:47:05]Host: 172.17.50.3:8080 [15:47:05]Content-Length: 793 [15:47:05]Content-Type: application/json [15:47:05] [15:47:05]POST finish read [15:47:05]Found Content-Length = 793 [15:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:05]execute_script... [15:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:05]POST & json_proto [15:47:05]process_json_proto [15:47:05]json parsed OK: [15:47:05]protocol is kg_v1.0 [15:47:05]action value=close_receipt [15:47:05]process_action close_receipt [15:47:05]cmd_close_receipt [15:47:05]MH_GetDate [15:47:05]Write to MH i2c: F0 00 00 13 7A 7C [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: F0 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: F0 09 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: F0 09 00 13 7A 00 FF C8 17 67 6B 98 1E 66 51 [15:47:05]GetLastDocTimeStamp 1729611963 [15:47:05]current date 1729612031 [15:47:05]FM_GetShiftState [15:47:05]SAM_PROTO_GetShiftState [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 13 01 00 [15:47:05]Write to MH i2c: E2 08 00 14 7A 80 13 01 00 00 00 00 00 0B [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 0E 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 0E 00 14 7A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [15:47:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:47:05]wFMCommunicate OK [15:47:05]SAM_PROTO_GetShiftState done [15:47:05]FM_GetShiftState done [15:47:05]opened in 1729555832 [15:47:05]opened+sec_in_day 1729642232 [15:47:05]quantity*price = 0 [15:47:05]sum+1 = 1 [15:47:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 249 22.10.2024 15:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 03044 ФМ: 0000000000963346 ФД: 70301 ФПД: 168858839814483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155535&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70301&fm=168858839814483&tin=02508201610067®Number=0000000000156251&sum=0 [15:55:36]StoreToDocumentArchive [15:55:36]shift 195 fd 70301 [15:55:36]save to /storage/0195/doc_00070301 [15:55:36]save last doc name /storage/0195/doc_00070301 to /storage/kkm_last_doc_name [15:55:36]save OK [15:55:36]Clear old archive folders... [15:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:36]tlvbuf is 00B112E0 [15:55:36]SAM_PROTO_ClearQueue [15:55:36]wFMCommunicate request_size=4 [15:55:36]MH_SAM_APDU [15:55:36]CAPDU: 80 09 00 00 [15:55:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:36]Read from MH i2c: E2 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:55:36]RAPDU: 90 00 [15:55:36]wFMCommunicate OK [15:55:36]SAM_PROTO_ClearQueue done [15:55:36]KKMCreateOFDPacket [15:55:36]OFDProtocolAddRootSTLVToBuf [15:55:36]FM_MakeSignedData [15:55:36]FM_MakeSignedData [15:55:36]SAM_PROTO_SignData [15:55:36]wFMCommunicate request_size=4 [15:55:36]MH_SAM_APDU [15:55:36]CAPDU: 80 0D 01 02 [15:55:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:36]Read from MH i2c: E2 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:55:36]RAPDU: 90 00 [15:55:36]wFMCommunicate OK [15:55:36]wFMCommunicate request_size=255 [15:55:36]MH_SAM_APDU [15:55: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 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 F9 00 00 00 F4 03 04 00 F7 CA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 12 01 00 35 04 06 00 99 [15:55:36]Write to MH i2c: E2 02 01 2D 00 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 F9 00 00 00 F4 03 04 00 F7 CA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 12 01 00 35 04 06 00 99 00 00 5B [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:36]Read from MH i2c: E2 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:55:36]RAPDU: 90 00 [15:55:36]wFMCommunicate OK [15:55:36]wFMCommunicate request_size=10 [15:55:36]MH_SAM_APDU [15:55:36]CAPDU: 80 0D 02 02 05 93 83 2A 11 53 [15:55:36]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 93 83 2A 11 53 00 00 56 [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:37]Read from MH i2c: E2 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 03 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:55:37]RAPDU: 90 00 [15:55:37]wFMCommunicate OK [15:55:37]wFMCommunicate request_size=4 [15:55:37]MH_SAM_APDU [15:55:37]CAPDU: 80 0D 03 02 [15:55:37]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:55:37]Write i2c OK [15:55:37]MH_I2C_Read... [15:55:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:37]Read from MH i2c: E2 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0B 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0B 00 2F 00 00 6F 3F 6A B1 BD 14 77 E5 90 00 A1 [15:55:37]RAPDU: 6F 3F 6A B1 BD 14 77 E5 90 00 [15:55:37]wFMCommunicate OK [15:55:37]SAM_PROTO_SignData done [15:55:37]FM_MakeSignedData done [15:55:37]CreateOFDProtocolMessage [15:55:37]wFMCommunicate request_size=4 [15:55:37]MH_SAM_APDU [15:55:37]CAPDU: 80 11 00 00 [15:55:37]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:55:37]Write i2c OK [15:55:37]MH_I2C_Read... [15:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:37]Read from MH i2c: E2 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 17 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [15:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:37]wFMCommunicate OK [15:55:37]CreateOFDProtocolMessage done [15:55:37]OFDSenderStorePacket 70301 [15:55:37]StoreOFDPacket docnum=70301 [15:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A5 5B 07 01 66 F5 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 F9 00 00 00 F4 03 04 00 F7 CA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 12 01 00 35 04 06 00 99 93 83 2A 11 53 6F 3F 6A B1 BD 14 77 E5 [15:55:37]CheckFolder [15:55:37]dirname=/storage/ofd_packets [15:55:37]CheckFolder done [15:55:37]ProducePacketName [15:55:37]name=ofd_packets/00070301 [15:55:37]NVStorageSaveData ofd_packets/00070301 [15:55:37]File name is /storage/ofd_packets/00070301 [15:55:37]Write 301 bytes [15:55:37]NVStorageSaveData done [15:55:37]OFDSenderStorePacket done [15:55:37]KKMCreateOFDPacket done [15:55:37]NVStorageSaveData kkm_last_timestamp [15:55:37]File name is /storage/kkm_last_timestamp [15:55:37]Write 4 bytes [15:55:37]NVStorageSaveData done [15:55:37]ExternCall_PrintAddStr [15:55:37]wPrintStart [15:55:37]Write to MH i2c: 01 00 00 31 00 31 [15:55:37]Write i2c OK [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: 01 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: 01 07 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:55:37]RasterBufferAndPrint [15:55:37]line Счет N : (1)2886068 [15:55:37]line ИНН: 02508201610067 [15:55:37]line Контрольно-Кассовый Чек [15:55:37]line ПРОДАЖА [15:55:37]line ТРК (МРК, ГНК) : 22 [15:55:37]line Товар: 2710124130 [15:55:37]line Аи-92-К-5 [15:55:37]line 20.000 * 0.00 [15:55:37]line = 0.00 [15:55:37]line НДС 12% НСП 1% [15:55:37]line > о реализуемом товаре [15:55:37]line ИТОГО: 0.00 [15:55:37]line НСП 1% : 0.00 [15:55:37]line НДС 12% : 0.00 [15:55:37]line Наличными: 0.00 [15:55:37]line Безнал.: 0.00 [15:55:37]line Место: АЗС № 85 "Партнер Нефть" [15:55:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:55:37]line СНО: Общий режим [15:55:37]line Чек 249 22.10.2024 15:55 [15:55:37]line Смена: 195 ФФД: 1.0 [15:55:37]line ЗНМ: 0300000167 [15:55:37]line РНМ: 0000000000156251 [15:55:37]line Версия ККМ: v1.0 [15:55:37]line Талоны: Топливная Карта [15:55:37]line 03044 [15:55:37]line ФМ: 0000000000963346 [15:55:37]line ФД: 70301 [15:55:37]line ФПД: 168858839814483 [15:55:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155535&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70301&fm=168858839814483&tin=02508201610067®Number=0000000000156251&sum=0 [15:55:37]OFD Sender: Processing packet 70301 [packets to send 18, broken 17] [15:55:37]ProducePacketName [15:55:37]name=ofd_packets/00070301 [15:55:37]OFD Sender: To server: pG, [15:55:37]CommunicateWithHost lk.salyk.kg:30040 [15:55:37]ConnectInit lk.salyk.kg [15:55:37]written 0, free lines is 4095 [15:55:37]Connected sock=10 [15:55: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 34 36 0F 01 00 00 A5 5B 07 01 66 F5 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 F9 00 00 00 F4 03 04 00 F7 CA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 12 01 00 35 04 06 00 99 93 83 2A 11 53 6F 3F 6A B1 BD 14 77 E5 [15:55: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 34 36 4F 00 00 00 FC B3 47 00 2A 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 12 01 00 F4 03 04 00 98 74 17 67 B6 04 01 00 00 11 3B 71 8F 91 BA C0 0A [15:55:37]CommunicateWithHost err = 0 [15:55:37]CheckOFDResponse [15:55:37]1017 (14) - 77093643461234 [15:55:37]1041 (16) - 0000000000963346 [15:55:37]1040 (4) - 70301 [15:55:37]1012 (4) - 22.10.2024 09:47 [15:55:37]1206 (1) - 0 [15:55:37]OFD Sender: Remove packet 70301 [15:55:37]ProducePacketName [15:55:37]name=ofd_packets/00070301 [15:55:37]NVStorageDeleteData [15:55:38]Write to MH i2c: 01 00 00 5B 00 5B [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 07 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 22 0D 91 [15:55:38]RasterBufferAndPrint [15:55:38]line [15:55:38]line [15:55:38]line [15:55:38]line [15:55:38]line [15:55:38]written 0, free lines is 3381 [15:55:38]MH_Cut [15:55:38]Write to MH i2c: D1 01 00 62 00 01 34 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: D1 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: D1 01 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: D1 01 00 62 00 00 33 [15:55:38]Write to MH i2c: 01 00 00 63 00 63 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]OFD Sender: No OFD packet to send [15:55:38]*** Cut start [15:55:38]*** Partial cut [15:55:38]*** CUTSNS_PIN = 1 [15:55:38]*** CUTSNS_PIN = 0 [15:55:38]*** Brake cut motor [15:55:39]Read from MH i2c: 01 [15:55:39]MH_I2C_Read... [15:55:39]*** Stop cut motor [15:55:39]*** Cut end [15:55:39]Read from MH i2c: 01 07 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [15:55:39]process_action close_receipt done [15:55:39]requested_data is exist [15:55:39]produce_requested_data [15:55:39]requested_item fm.sn is exist - process it [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 11 00 00 [15:55:39]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 17 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [15:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:39]wFMCommunicate OK [15:55:39]requested_item fd.num is exist - process it [15:55:39]SAM_PROTO_GetFieldsCounters [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 13 00 00 [15:55:39]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 62 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 62 00 65 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 12 01 00 0E 04 04 00 C3 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 5A [15:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 12 01 00 0E 04 04 00 C3 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 [15:55:39]wFMCommunicate OK [15:55:39]SAM_PROTO_GetFieldsCounters done [15:55:39]requested_item shift.num is exist - process it [15:55:39]requested_item shift.opened is exist - process it [15:55:39]req_shift_opened [15:55:39]FM_GetShiftState [15:55:39]SAM_PROTO_GetShiftState [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 13 01 00 [15:55:39]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0E 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D1 [15:55:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:55:39]wFMCommunicate OK [15:55:39]SAM_PROTO_GetShiftState done [15:55:39]FM_GetShiftState done [15:55:39]req_shift_opened done [15:55:39]requested_item shift.open_date is exist - process it [15:55:39]req_shift_open_date [15:55:39]req_shift_open_date done [15:55:39]produce_requested_data done [15:55:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70301,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:55:39]process_action_free close_receipt [15:55:39]json_value_free [15:55:39]json_value_free done [15:55:39]process_json_proto returns [15:55:39]Send response to host [15:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70301,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:55:39]free response buf [15:55:39]execute_script done [15:55:39]execute_script returns [15:55:39]free content buf [15:55:39]Sock 9.Close socket [15:55:39]Sock 9.Thread stoped [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:26]accept exits with 7 [15:56:26]New connection [15:56:26]New thread 3066555748 created [15:56:26]Thread 3066699108 joined [15:56:26]Waiting for new connection... [15:56:26] Sock 7.Parse request [15:56:26]Sock 7.Check first char [15:56:26]Sock 7.First char is OK [15:56:26]request: POST /json_proto HTTP/1.0 [15:56:26]Method: POST [15:56:26]URL: /json_proto [15:56:26]Method is POST - this is cgi request [15:56:26]url: /json_proto [15:56:26]query_string will be loaded in cgi processing [15:56:26]execute_cgi json_proto POST (null) [15:56:26]execute_cgi path=json_proto method=POST [15:56:26]POST find Content-Length [15:56:26]Host: 172.17.50.3:8080 [15:56:26]Content-Length: 683 [15:56:26]Content-Type: application/json [15:56:26] [15:56:26]POST finish read [15:56:26]Found Content-Length = 683 [15:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:56:26]execute_script... [15:56: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)2886069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:56:26]POST & json_proto [15:56:26]process_json_proto [15:56:26]json parsed OK: [15:56:26]protocol is kg_v1.0 [15:56:26]action value=close_receipt [15:56:26]process_action close_receipt [15:56:26]cmd_close_receipt [15:56:26]MH_GetDate [15:56:26]Write to MH i2c: F0 00 00 67 00 56 [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 09 00 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 09 00 67 00 00 2A CB 17 67 6B 98 1E 66 59 [15:56:26]GetLastDocTimeStamp 1729612535 [15:56:26]current date 1729612586 [15:56:26]FM_GetShiftState [15:56:26]SAM_PROTO_GetShiftState [15:56:26]wFMCommunicate request_size=4 [15:56:26]MH_SAM_APDU [15:56:26]CAPDU: 80 13 01 00 [15:56:26]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:26]Read from MH i2c: E2 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D3 [15:56:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:56:26]wFMCommunicate OK [15:56:26]SAM_PROTO_GetShiftState done [15:56:26]FM_GetShiftState done [15:56:26]opened in 1729555832 [15:56:26]opened+sec_in_day 1729642232 [15:56:26]quantity*price = 150056 [15:56:26]sum+1 = 150058 [15:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 250 22.10.2024 15:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70302 ФПД: 98968591932987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70302&fm=98968591932987&tin=02508201610067®Number=0000000000156251&sum=150000 [15:56:27]StoreToDocumentArchive [15:56:27]shift 195 fd 70302 [15:56:27]save to /storage/0195/doc_00070302 [15:56:27]save last doc name /storage/0195/doc_00070302 to /storage/kkm_last_doc_name [15:56:27]save OK [15:56:27]Clear old archive folders... [15:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:27]tlvbuf is 00ABFBB0 [15:56:27]SAM_PROTO_ClearQueue [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 09 00 00 [15:56:27]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]SAM_PROTO_ClearQueue done [15:56:27]KKMCreateOFDPacket [15:56:27]OFDProtocolAddRootSTLVToBuf [15:56:27]FM_MakeSignedData [15:56:27]FM_MakeSignedData [15:56:27]SAM_PROTO_SignData [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 01 02 [15:56:27]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=255 [15:56:27]MH_SAM_APDU [15:56: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 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 FA 00 00 00 F4 03 04 00 2A CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 12 01 00 35 04 06 00 5A [15:56:27]Write to MH i2c: E2 02 01 77 00 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 FA 00 00 00 F4 03 04 00 2A CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 12 01 00 35 04 06 00 5A 00 00 FC [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=10 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 02 02 05 02 EB C4 1E 3B [15:56:27]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 02 EB C4 1E 3B 00 00 06 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 03 02 [15:56:27]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:28]Read from MH i2c: E2 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: E2 0B 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: E2 0B 00 79 00 00 9C D2 79 C0 D2 B1 04 65 90 00 88 [15:56:28]RAPDU: 9C D2 79 C0 D2 B1 04 65 90 00 [15:56:28]wFMCommunicate OK [15:56:28]SAM_PROTO_SignData done [15:56:28]FM_MakeSignedData done [15:56:28]CreateOFDProtocolMessage [15:56:28]wFMCommunicate request_size=4 [15:56:28]MH_SAM_APDU [15:56:28]CAPDU: 80 11 00 00 [15:56:28]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:28]Read from MH i2c: E2 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: E2 17 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [15:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:28]wFMCommunicate OK [15:56:28]CreateOFDProtocolMessage done [15:56:28]OFDSenderStorePacket 70302 [15:56:28]StoreOFDPacket docnum=70302 [15:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 87 07 01 CA E3 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 FA 00 00 00 F4 03 04 00 2A CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 12 01 00 35 04 06 00 5A 02 EB C4 1E 3B 9C D2 79 C0 D2 B1 04 65 [15:56:28]CheckFolder [15:56:28]dirname=/storage/ofd_packets [15:56:28]CheckFolder done [15:56:28]ProducePacketName [15:56:28]name=ofd_packets/00070302 [15:56:28]NVStorageSaveData ofd_packets/00070302 [15:56:28]File name is /storage/ofd_packets/00070302 [15:56:28]Write 301 bytes [15:56:28]NVStorageSaveData done [15:56:28]OFDSenderStorePacket done [15:56:28]KKMCreateOFDPacket done [15:56:28]NVStorageSaveData kkm_last_timestamp [15:56:28]File name is /storage/kkm_last_timestamp [15:56:28]Write 4 bytes [15:56:28]NVStorageSaveData done [15:56:28]ExternCall_PrintAddStr [15:56:28]wPrintStart [15:56:28]Write to MH i2c: 01 00 00 7B 00 7B [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [15:56:28]RasterBufferAndPrint [15:56:28]line Счет N : (1)2886069 [15:56:28]line ИНН: 02508201610067 [15:56:28]line Контрольно-Кассовый Чек [15:56:28]line ПРОДАЖА [15:56:28]line ТРК (МРК, ГНК) : 42 [15:56:28]line Товар: 2710124130 [15:56:28]line Аи-92-К-5 [15:56:28]line 22.430 * 66.90 [15:56:28]line = 1500.57 [15:56:28]line НДС 12% НСП 1% [15:56:28]line > о реализуемом товаре [15:56:28]line ОКРУГЛЕНИЕ: -0.57 [15:56:28]line ИТОГО: 1500.00 [15:56:28]line Внесено: 1500.00 [15:56:28]line СДАЧА: 0.00 [15:56:28]line НСП 1% : 13.28 [15:56:28]line НДС 12% : 159.35 [15:56:28]line Наличными: 1500.00 [15:56:28]line Безнал.: 0.00 [15:56:28]line Место: АЗС № 85 "Партнер Нефть" [15:56:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:28]line СНО: Общий режим [15:56:28]line Чек 250 22.10.2024 15:56 [15:56:28]line Смена: 195 ФФД: 1.0 [15:56:28]line ЗНМ: 0300000167 [15:56:28]line РНМ: 0000000000156251 [15:56:28]line Версия ККМ: v1.0 [15:56:28]line ФМ: 0000000000963346 [15:56:28]line ФД: 70302 [15:56:28]line ФПД: 98968591932987 [15:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70302&fm=98968591932987&tin=02508201610067®Number=0000000000156251&sum=150000 [15:56:28]OFD Sender: Processing packet 70302 [packets to send 18, broken 17] [15:56:28]ProducePacketName [15:56:28]name=ofd_packets/00070302 [15:56:28]OFD Sender: To server: pG, [15:56:28]CommunicateWithHost lk.salyk.kg:30040 [15:56:28]ConnectInit lk.salyk.kg [15:56:28]written 0, free lines is 4095 [15:56:28]Connected sock=10 [15:56: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 34 36 0F 01 00 00 C4 87 07 01 CA E3 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 FA 00 00 00 F4 03 04 00 2A CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 12 01 00 35 04 06 00 5A 02 EB C4 1E 3B 9C D2 79 C0 D2 B1 04 65 [15:56: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 34 36 4F 00 00 00 3A FD 47 00 73 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 34 36 10 04 04 00 9E 12 01 00 F4 03 04 00 CA 74 17 67 B6 04 01 00 00 ED 40 EC 27 C6 8D E3 02 [15:56:28]CommunicateWithHost err = 0 [15:56:28]CheckOFDResponse [15:56:28]1017 (14) - 77093643461234 [15:56:28]1041 (16) - 0000000000963346 [15:56:28]1040 (4) - 70302 [15:56:28]1012 (4) - 22.10.2024 09:47 [15:56:28]1206 (1) - 0 [15:56:28]OFD Sender: Remove packet 70302 [15:56:28]ProducePacketName [15:56:28]name=ofd_packets/00070302 [15:56:28]NVStorageDeleteData [15:56:28]Write to MH i2c: 01 00 00 A6 00 A6 [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FC 0C B5 [15:56:28]RasterBufferAndPrint [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]written 0, free lines is 3330 [15:56:28]MH_Cut [15:56:28]Write to MH i2c: D1 01 00 AD 00 01 7F [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 01 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 01 00 AD 00 00 7E [15:56:28]Write to MH i2c: 01 00 00 AE 00 AE [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:29]OFD Sender: No OFD packet to send [15:56:29]*** Cut start [15:56:29]*** Partial cut [15:56:29]*** CUTSNS_PIN = 1 [15:56:29]*** CUTSNS_PIN = 0 [15:56:29]*** Brake cut motor [15:56:30]Read from MH i2c: 01 [15:56:30]MH_I2C_Read... [15:56:30]*** Stop cut motor [15:56:30]*** Cut end [15:56:30]Read from MH i2c: 01 07 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [15:56:30]process_action close_receipt done [15:56:30]requested_data is exist [15:56:30]produce_requested_data [15:56:30]requested_item fm.sn is exist - process it [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 11 00 00 [15:56:30]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [15:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:30]wFMCommunicate OK [15:56:30]requested_item fd.num is exist - process it [15:56:30]SAM_PROTO_GetFieldsCounters [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 00 00 [15:56:30]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 B0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 12 01 00 0E 04 04 00 C3 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 A9 [15:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 12 01 00 0E 04 04 00 C3 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 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetFieldsCounters done [15:56:30]requested_item shift.num is exist - process it [15:56:30]requested_item shift.opened is exist - process it [15:56:30]req_shift_opened [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1C [15:56:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]req_shift_opened done [15:56:30]requested_item shift.open_date is exist - process it [15:56:30]req_shift_open_date [15:56:30]req_shift_open_date done [15:56:30]produce_requested_data done [15:56:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70302,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:56:30]process_action_free close_receipt [15:56:30]json_value_free [15:56:30]json_value_free done [15:56:30]process_json_proto returns [15:56:30]Send response to host [15:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70302,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:56:30]free response buf [15:56:30]execute_script done [15:56:30]execute_script returns [15:56:30]free content buf [15:56:30]Sock 7.Close socket [15:56:30]Sock 7.Thread stoped [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:45]accept exits with 9 [15:56:45]New connection [15:56:45]New thread 3066699108 created [15:56:45]Thread 3066555748 joined [15:56:45]Waiting for new connection... [15:56:45] Sock 9.Parse request [15:56:45]Sock 9.Check first char [15:56:45]Sock 9.First char is OK [15:56:45]request: POST /json_proto HTTP/1.0 [15:56:45]Method: POST [15:56:45]URL: /json_proto [15:56:45]Method is POST - this is cgi request [15:56:45]url: /json_proto [15:56:45]query_string will be loaded in cgi processing [15:56:45]execute_cgi json_proto POST (null) [15:56:45]execute_cgi path=json_proto method=POST [15:56:45]POST find Content-Length [15:56:45]Host: 172.17.50.3:8080 [15:56:45]Content-Length: 767 [15:56:45]Content-Type: application/json [15:56:45] [15:56:45]POST finish read [15:56:45]Found Content-Length = 767 [15:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:45]execute_script... [15:56: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)2886071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:45]POST & json_proto [15:56:45]process_json_proto [15:56:45]json parsed OK: [15:56:45]protocol is kg_v1.0 [15:56:45]action value=close_receipt [15:56:45]process_action close_receipt [15:56:45]cmd_close_receipt [15:56:45]MH_GetDate [15:56:45]Write to MH i2c: F0 00 00 B2 00 A1 [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: F0 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: F0 09 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: F0 09 00 B2 00 00 3E CB 17 67 6B 98 1E 66 B8 [15:56:45]GetLastDocTimeStamp 1729612586 [15:56:45]current date 1729612606 [15:56:45]FM_GetShiftState [15:56:45]SAM_PROTO_GetShiftState [15:56:45]wFMCommunicate request_size=4 [15:56:45]MH_SAM_APDU [15:56:45]CAPDU: 80 13 01 00 [15:56:45]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:45]Read from MH i2c: E2 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 0E 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1E [15:56:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:56:45]wFMCommunicate OK [15:56:45]SAM_PROTO_GetShiftState done [15:56:45]FM_GetShiftState done [15:56:45]opened in 1729555832 [15:56:45]opened+sec_in_day 1729642232 [15:56:45]quantity*price = 60027 [15:56:45]sum+1 = 60029 [15:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 251 22.10.2024 15:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70303 ФПД: 218625637275110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70303&fm=218625637275110&tin=02508201610067®Number=0000000000156251&sum=60028 [15:56:47]StoreToDocumentArchive [15:56:47]shift 195 fd 70303 [15:56:47]save to /storage/0195/doc_00070303 [15:56:47]save last doc name /storage/0195/doc_00070303 to /storage/kkm_last_doc_name [15:56:47]save OK [15:56:47]Clear old archive folders... [15:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:47]tlvbuf is 00B32300 [15:56:47]SAM_PROTO_ClearQueue [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 09 00 00 [15:56:47]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:56:47]RAPDU: 90 00 [15:56:47]wFMCommunicate OK [15:56:47]SAM_PROTO_ClearQueue done [15:56:47]KKMCreateOFDPacket [15:56:47]OFDProtocolAddRootSTLVToBuf [15:56:47]FM_MakeSignedData [15:56:47]FM_MakeSignedData [15:56:47]SAM_PROTO_SignData [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 0D 01 02 [15:56:47]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:56:47]RAPDU: 90 00 [15:56:47]wFMCommunicate OK [15:56:47]wFMCommunicate request_size=255 [15:56:47]MH_SAM_APDU [15:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3E CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 12 01 00 35 04 06 00 C6 [15:56:47]Write to MH i2c: E2 02 01 C2 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3E CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 12 01 00 35 04 06 00 C6 00 00 16 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:56:47]RAPDU: 90 00 [15:56:47]wFMCommunicate OK [15:56:47]wFMCommunicate request_size=10 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 0D 02 02 05 D6 BF 72 D5 E6 [15:56:47]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 D6 BF 72 D5 E6 00 00 09 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [15:56:47]RAPDU: 90 00 [15:56:47]wFMCommunicate OK [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 0D 03 02 [15:56:47]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0B 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0B 00 C4 00 00 04 15 CC BE 41 BF 73 52 90 00 A8 [15:56:47]RAPDU: 04 15 CC BE 41 BF 73 52 90 00 [15:56:47]wFMCommunicate OK [15:56:47]SAM_PROTO_SignData done [15:56:47]FM_MakeSignedData done [15:56:47]CreateOFDProtocolMessage [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 11 00 00 [15:56:47]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 17 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [15:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:47]wFMCommunicate OK [15:56:47]CreateOFDProtocolMessage done [15:56:47]OFDSenderStorePacket 70303 [15:56:47]StoreOFDPacket docnum=70303 [15:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AC E3 07 01 CE 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3E CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 12 01 00 35 04 06 00 C6 D6 BF 72 D5 E6 04 15 CC BE 41 BF 73 52 [15:56:47]CheckFolder [15:56:47]dirname=/storage/ofd_packets [15:56:47]CheckFolder done [15:56:47]ProducePacketName [15:56:47]name=ofd_packets/00070303 [15:56:47]NVStorageSaveData ofd_packets/00070303 [15:56:47]File name is /storage/ofd_packets/00070303 [15:56:47]Write 301 bytes [15:56:47]NVStorageSaveData done [15:56:47]OFDSenderStorePacket done [15:56:47]KKMCreateOFDPacket done [15:56:47]NVStorageSaveData kkm_last_timestamp [15:56:47]File name is /storage/kkm_last_timestamp [15:56:47]Write 4 bytes [15:56:47]NVStorageSaveData done [15:56:47]ExternCall_PrintAddStr [15:56:47]wPrintStart [15:56:47]Write to MH i2c: 01 00 00 C6 00 C6 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: 01 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: 01 07 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [15:56:47]RasterBufferAndPrint [15:56:47]line Счет N : (1)2886071 [15:56:47]line ИНН: 02508201610067 [15:56:47]line Контрольно-Кассовый Чек [15:56:47]line ПРОДАЖА [15:56:47]line ТРК (МРК, ГНК) : 23 [15:56:47]line Товар: 2710124500 [15:56:47]line Аи-95-К-5 [15:56:47]line 8.090 * 74.20 [15:56:47]line = 600.28 [15:56:47]line НДС 12% НСП 1% [15:56:47]line > о реализуемом товаре [15:56:47]line ИТОГО: 600.28 [15:56:47]line НСП 1% : 5.31 [15:56:47]line НДС 12% : 63.75 [15:56:47]line Наличными: 0.00 [15:56:47]line Безнал.: 600.28 [15:56:47]line Место: АЗС № 85 "Партнер Нефть" [15:56:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:47]line СНО: Общий режим [15:56:47]line Чек 251 22.10.2024 15:56 [15:56:47]line Смена: 195 ФФД: 1.0 [15:56:47]line ЗНМ: 0300000167 [15:56:47]line РНМ: 0000000000156251 [15:56:47]line Версия ККМ: v1.0 [15:56:47]line Платежная система: Mbank [15:56:47]line ФМ: 0000000000963346 [15:56:47]line ФД: 70303 [15:56:47]line ФПД: 218625637275110 [15:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70303&fm=218625637275110&tin=02508201610067®Number=0000000000156251&sum=60028 [15:56:47]OFD Sender: Processing packet 70303 [packets to send 18, broken 17] [15:56:47]ProducePacketName [15:56:47]name=ofd_packets/00070303 [15:56:47]OFD Sender: To server: pG, [15:56:47]CommunicateWithHost lk.salyk.kg:30040 [15:56:47]ConnectInit lk.salyk.kg [15:56:47]written 0, free lines is 4095 [15:56:48]Write to MH i2c: 01 00 00 EF 00 EF [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 07 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 10 0D 13 [15:56:48]RasterBufferAndPrint [15:56:48]line [15:56:48]line [15:56:48]line [15:56:48]line [15:56:48]line [15:56:48]written 0, free lines is 3350 [15:56:48]MH_Cut [15:56:48]Write to MH i2c: D1 01 00 F6 00 01 C8 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: D1 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: D1 01 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: D1 01 00 F6 00 00 C7 [15:56:48]Write to MH i2c: 01 00 00 F7 00 F7 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:49]*** Cut start [15:56:49]*** Partial cut [15:56:49]*** CUTSNS_PIN = 1 [15:56:49]*** CUTSNS_PIN = 0 [15:56:49]*** Brake cut motor [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]*** Stop cut motor [15:56:49]*** Cut end [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [15:56:49]process_action close_receipt done [15:56:49]requested_data is exist [15:56:49]produce_requested_data [15:56:49]requested_item fm.sn is exist - process it [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 11 00 00 [15:56:49]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [15:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:49]wFMCommunicate OK [15:56:49]requested_item fd.num is exist - process it [15:56:49]SAM_PROTO_GetFieldsCounters [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 13 00 00 [15:56:49]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 62 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 62 00 F9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 12 01 00 0E 04 04 00 C3 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 F6 [15:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 12 01 00 0E 04 04 00 C3 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 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_GetFieldsCounters done [15:56:49]requested_item shift.num is exist - process it [15:56:49]requested_item shift.opened is exist - process it [15:56:49]req_shift_opened [15:56:49]FM_GetShiftState [15:56:49]SAM_PROTO_GetShiftState [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 13 01 00 [15:56:49]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0E 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 65 [15:56:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_GetShiftState done [15:56:49]FM_GetShiftState done [15:56:49]req_shift_opened done [15:56:49]requested_item shift.open_date is exist - process it [15:56:49]req_shift_open_date [15:56:49]req_shift_open_date done [15:56:49]produce_requested_data done [15:56:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70303,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:56:49]process_action_free close_receipt [15:56:49]json_value_free [15:56:49]json_value_free done [15:56:49]process_json_proto returns [15:56:49]Send response to host [15:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70303,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:56:49]free response buf [15:56:49]execute_script done [15:56:49]execute_script returns [15:56:49]free content buf [15:56:49]Sock 9.Close socket [15:56:49]Sock 9.Thread stoped [15:58:55]accept exits with 7 [15:58:55]New connection [15:58:55]New thread 3066555748 created [15:58:55]Thread 3066699108 joined [15:58:55]Waiting for new connection... [15:58:55] Sock 7.Parse request [15:58:55]Sock 7.Check first char [15:58:55]Sock 7.First char is OK [15:58:55]request: POST /json_proto HTTP/1.0 [15:58:55]Method: POST [15:58:55]URL: /json_proto [15:58:55]Method is POST - this is cgi request [15:58:55]url: /json_proto [15:58:55]query_string will be loaded in cgi processing [15:58:55]execute_cgi json_proto POST (null) [15:58:55]execute_cgi path=json_proto method=POST [15:58:55]POST find Content-Length [15:58:55]Host: 172.17.50.3:8080 [15:58:55]Content-Length: 682 [15:58:55]Content-Type: application/json [15:58:55] [15:58:55]POST finish read [15:58:55]Found Content-Length = 682 [15:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:58:55]execute_script... [15:58: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)2886073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:58:55]POST & json_proto [15:58:55]process_json_proto [15:58:55]json parsed OK: [15:58:55]protocol is kg_v1.0 [15:58:55]action value=close_receipt [15:58:55]process_action close_receipt [15:58:55]cmd_close_receipt [15:58:55]MH_GetDate [15:58:55]Write to MH i2c: F0 00 00 FB 00 EA [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 09 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 09 00 FB 00 00 BF CB 17 67 6B 98 1E 66 82 [15:58:55]GetLastDocTimeStamp 1729612606 [15:58:55]current date 1729612735 [15:58:55]FM_GetShiftState [15:58:55]SAM_PROTO_GetShiftState [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 13 01 00 [15:58:55]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 67 [15:58:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_GetShiftState done [15:58:55]FM_GetShiftState done [15:58:55]opened in 1729555832 [15:58:55]opened+sec_in_day 1729642232 [15:58:55]quantity*price = 50025 [15:58:55]sum+1 = 50026 [15:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 252 22.10.2024 15:58 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70304 ФПД: 226599768601818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70304&fm=226599768601818&tin=02508201610067®Number=0000000000156251&sum=50000 [15:58:56]StoreToDocumentArchive [15:58:56]shift 195 fd 70304 [15:58:56]save to /storage/0195/doc_00070304 [15:58:56]save last doc name /storage/0195/doc_00070304 to /storage/kkm_last_doc_name [15:58:56]save OK [15:58:56]Clear old archive folders... [15:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:58:56]tlvbuf is 00B3FFB0 [15:58:56]SAM_PROTO_ClearQueue [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 09 00 00 [15:58:56]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]SAM_PROTO_ClearQueue done [15:58:56]KKMCreateOFDPacket [15:58:56]OFDProtocolAddRootSTLVToBuf [15:58:56]FM_MakeSignedData [15:58:56]FM_MakeSignedData [15:58:56]SAM_PROTO_SignData [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 01 02 [15:58:56]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]wFMCommunicate request_size=255 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 FC 00 00 00 F4 03 04 00 BF CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 12 01 00 35 04 06 00 CE 17 [15:58:56]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 FC 00 00 00 F4 03 04 00 BF CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 12 01 00 35 04 06 00 CE 17 00 00 26 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [15:58:57]RAPDU: 90 00 [15:58:57]wFMCommunicate OK [15:58:57]wFMCommunicate request_size=9 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 0D 02 02 04 5E B6 B4 DA [15:58:57]Write to MH i2c: E2 0C 00 0C 01 80 0D 02 02 04 00 5E B6 B4 DA 00 00 31 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:58:57]RAPDU: 90 00 [15:58:57]wFMCommunicate OK [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 0D 03 02 [15:58:57]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 0B 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 0B 00 0D 01 00 89 53 46 C9 FF 52 3D 52 90 00 55 [15:58:57]RAPDU: 89 53 46 C9 FF 52 3D 52 90 00 [15:58:57]wFMCommunicate OK [15:58:57]SAM_PROTO_SignData done [15:58:57]FM_MakeSignedData done [15:58:57]CreateOFDProtocolMessage [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 11 00 00 [15:58:57]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [15:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:58:57]wFMCommunicate OK [15:58:57]CreateOFDProtocolMessage done [15:58:57]OFDSenderStorePacket 70304 [15:58:57]StoreOFDPacket docnum=70304 [15:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 BE 99 06 01 59 DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 FC 00 00 00 F4 03 04 00 BF CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 12 01 00 35 04 06 00 CE 17 5E B6 B4 DA 89 53 46 C9 FF 52 3D 52 [15:58:57]CheckFolder [15:58:57]dirname=/storage/ofd_packets [15:58:57]CheckFolder done [15:58:57]ProducePacketName [15:58:57]name=ofd_packets/00070304 [15:58:57]NVStorageSaveData ofd_packets/00070304 [15:58:57]File name is /storage/ofd_packets/00070304 [15:58:57]Write 300 bytes [15:58:57]NVStorageSaveData done [15:58:57]OFDSenderStorePacket done [15:58:57]KKMCreateOFDPacket done [15:58:57]NVStorageSaveData kkm_last_timestamp [15:58:57]File name is /storage/kkm_last_timestamp [15:58:57]Write 4 bytes [15:58:57]NVStorageSaveData done [15:58:57]ExternCall_PrintAddStr [15:58:57]wPrintStart [15:58:57]Write to MH i2c: 01 00 00 0F 01 10 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [15:58:57]RasterBufferAndPrint [15:58:57]line Счет N : (1)2886073 [15:58:57]line ИНН: 02508201610067 [15:58:57]line Контрольно-Кассовый Чек [15:58:57]line ПРОДАЖА [15:58:57]line ТРК (МРК, ГНК) : 71 [15:58:57]line Товар: 2711129700 [15:58:57]line ГАЗ-К-3 [15:58:57]line 12.860 * 38.90 [15:58:57]line = 500.25 [15:58:57]line НДС 12% НСП 1% [15:58:57]line > о реализуемом товаре [15:58:57]line ОКРУГЛЕНИЕ: -0.25 [15:58:57]line ИТОГО: 500.00 [15:58:57]line Внесено: 500.00 [15:58:57]line СДАЧА: 0.00 [15:58:57]line НСП 1% : 4.43 [15:58:57]line НДС 12% : 53.12 [15:58:57]line Наличными: 500.00 [15:58:57]line Безнал.: 0.00 [15:58:57]line Место: АЗС № 85 "Партнер Нефть" [15:58:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:58:57]line СНО: Общий режим [15:58:57]line Чек 252 22.10.2024 15:58 [15:58:57]line Смена: 195 ФФД: 1.0 [15:58:57]line ЗНМ: 0300000167 [15:58:57]line РНМ: 0000000000156251 [15:58:57]line Версия ККМ: v1.0 [15:58:57]line ФМ: 0000000000963346 [15:58:57]line ФД: 70304 [15:58:57]line ФПД: 226599768601818 [15:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70304&fm=226599768601818&tin=02508201610067®Number=0000000000156251&sum=50000 [15:58:57]written 0, free lines is 4095 [15:58:57]Write to MH i2c: 01 00 00 3A 01 3B [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 EF 0C 3D [15:58:57]RasterBufferAndPrint [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]written 0, free lines is 3317 [15:58:57]MH_Cut [15:58:57]Write to MH i2c: D1 01 00 41 01 01 14 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 41 01 00 13 [15:58:57]Write to MH i2c: 01 00 00 42 01 43 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:58]*** Cut start [15:58:58]*** Partial cut [15:58:58]*** CUTSNS_PIN = 1 [15:58:58]*** CUTSNS_PIN = 0 [15:58:58]*** Brake cut motor [15:58:59]Read from MH i2c: 01 [15:58:59]MH_I2C_Read... [15:58:59]*** Stop cut motor [15:58:59]*** Cut end [15:58:59]Read from MH i2c: 01 07 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [15:58:59]process_action close_receipt done [15:58:59]requested_data is exist [15:58:59]produce_requested_data [15:58:59]requested_item fm.sn is exist - process it [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 11 00 00 [15:58:59]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [15:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:58:59]wFMCommunicate OK [15:58:59]requested_item fd.num is exist - process it [15:58:59]SAM_PROTO_GetFieldsCounters [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 00 00 [15:58:59]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 44 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 12 01 00 0E 04 04 00 C3 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 46 [15:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 12 01 00 0E 04 04 00 C3 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 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetFieldsCounters done [15:58:59]requested_item shift.num is exist - process it [15:58:59]requested_item shift.opened is exist - process it [15:58:59]req_shift_opened [15:58:59]FM_GetShiftState [15:58:59]SAM_PROTO_GetShiftState [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 01 00 [15:58:59]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B1 [15:58:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetShiftState done [15:58:59]FM_GetShiftState done [15:58:59]req_shift_opened done [15:58:59]requested_item shift.open_date is exist - process it [15:58:59]req_shift_open_date [15:58:59]req_shift_open_date done [15:58:59]produce_requested_data done [15:58:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70304,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:58:59]process_action_free close_receipt [15:58:59]json_value_free [15:58:59]json_value_free done [15:58:59]process_json_proto returns [15:58:59]Send response to host [15:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70304,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:58:59]free response buf [15:58:59]execute_script done [15:58:59]execute_script returns [15:58:59]free content buf [15:58:59]Sock 7.Close socket [15:58:59]Sock 7.Thread stoped [15:58:59]ConnectInit Can't connect to host [15:58:59]CommunicateWithHost connect error [15:58:59]CommunicateWithHost err = -1 [15:58:59]OFD Sender: Server communicate error [15:58:59]OFD Sender: Processing packet 70303 [packets to send 19, broken 17] [15:58:59]ProducePacketName [15:58:59]name=ofd_packets/00070303 [15:58:59]OFD Sender: To server: pG, [15:58:59]CommunicateWithHost lk.salyk.kg:30040 [15:58:59]ConnectInit lk.salyk.kg [15:58:59]Connected sock=7 [15:58: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 34 36 0F 01 00 00 AC E3 07 01 CE 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3E CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 12 01 00 35 04 06 00 C6 D6 BF 72 D5 E6 04 15 CC BE 41 BF 73 52 [15:59:00]accept exits with 9 [15:59:00]New connection [15:59:00]New thread 3066699108 created [15:59:00]Thread 3066555748 joined [15:59:00]Waiting for new connection... [15:59:00] Sock 9.Parse request [15:59:00]Sock 9.Check first char [15:59:00]Sock 9.First char is OK [15:59:00]request: POST /json_proto HTTP/1.0 [15:59:00]Method: POST [15:59:00]URL: /json_proto [15:59:00]Method is POST - this is cgi request [15:59:00]url: /json_proto [15:59:00]query_string will be loaded in cgi processing [15:59:00]execute_cgi json_proto POST (null) [15:59:00]execute_cgi path=json_proto method=POST [15:59:00]POST find Content-Length [15:59:00]Host: 172.17.50.3:8080 [15:59:00]Content-Length: 683 [15:59:00]Content-Type: application/json [15:59:00] [15:59:00]POST finish read [15:59:00]Found Content-Length = 683 [15:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:59:00]execute_script... [15:59: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)2886072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:59:00]POST & json_proto [15:59:00]process_json_proto [15:59:00]json parsed OK: [15:59:00]protocol is kg_v1.0 [15:59:00]action value=close_receipt [15:59:00]process_action close_receipt [15:59:00]cmd_close_receipt [15:59:00]MH_GetDate [15:59:00]Write to MH i2c: F0 00 00 46 01 36 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 46 01 00 C4 CB 17 67 6B 98 1E 66 D3 [15:59:00]GetLastDocTimeStamp 1729612735 [15:59:00]current date 1729612740 [15:59:00]FM_GetShiftState [15:59:00]SAM_PROTO_GetShiftState [15:59:00]wFMCommunicate request_size=4 [15:59:00]MH_SAM_APDU [15:59:00]CAPDU: 80 13 01 00 [15:59:00]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 [15:59:00]MH_I2C_Read... [15:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:00]Read from MH i2c: E2 0E 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [15:59:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:59:00]wFMCommunicate OK [15:59:00]SAM_PROTO_GetShiftState done [15:59:00]FM_GetShiftState done [15:59:00]opened in 1729555832 [15:59:00]opened+sec_in_day 1729642232 [15:59:00]quantity*price = 100015 [15:59:00]sum+1 = 100017 [15:59: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 253 22.10.2024 15:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70305 ФПД: 193826028569934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70305&fm=193826028569934&tin=02508201610067®Number=0000000000156251&sum=100000 [15:59:01]StoreToDocumentArchive [15:59:01]shift 195 fd 70305 [15:59:01]save to /storage/0195/doc_00070305 [15:59:01]save last doc name /storage/0195/doc_00070305 to /storage/kkm_last_doc_name [15:59:01]save OK [15:59:01]Clear old archive folders... [15:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:01]tlvbuf is 00B151D0 [15:59:01]SAM_PROTO_ClearQueue [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 09 00 00 [15:59:01]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]SAM_PROTO_ClearQueue done [15:59:01]KKMCreateOFDPacket [15:59:01]OFDProtocolAddRootSTLVToBuf [15:59:01]FM_MakeSignedData [15:59:01]FM_MakeSignedData [15:59:01]SAM_PROTO_SignData [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 01 02 [15:59:01]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=255 [15:59:01]MH_SAM_APDU [15:59: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 FD 00 00 00 F4 03 04 00 C4 CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 12 01 00 35 04 06 00 B0 [15:59:01]Write to MH i2c: E2 02 01 56 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 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 FD 00 00 00 F4 03 04 00 C4 CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 12 01 00 35 04 06 00 B0 00 00 83 [15:59:02]OFD Sender: No OFD packet to send [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=10 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 02 02 05 48 A3 94 C5 4E [15:59:02]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 48 A3 94 C5 4E 00 00 6E [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 03 02 [15:59:02]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 58 01 00 9B 39 03 B7 9A 5D 96 4A 90 00 3A [15:59:02]RAPDU: 9B 39 03 B7 9A 5D 96 4A 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_SignData done [15:59:02]FM_MakeSignedData done [15:59:02]CreateOFDProtocolMessage [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 11 00 00 [15:59:02]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [15:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:02]wFMCommunicate OK [15:59:02]CreateOFDProtocolMessage done [15:59:02]OFDSenderStorePacket 70305 [15:59:02]StoreOFDPacket docnum=70305 [15:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 AA 07 01 F7 B4 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 FD 00 00 00 F4 03 04 00 C4 CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 12 01 00 35 04 06 00 B0 48 A3 94 C5 4E 9B 39 03 B7 9A 5D 96 4A [15:59:02]CheckFolder [15:59:02]dirname=/storage/ofd_packets [15:59:02]CheckFolder done [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00070305 [15:59:02]NVStorageSaveData ofd_packets/00070305 [15:59:02]File name is /storage/ofd_packets/00070305 [15:59:02]Write 301 bytes [15:59:02]NVStorageSaveData done [15:59:02]OFDSenderStorePacket done [15:59:02]KKMCreateOFDPacket done [15:59:02]NVStorageSaveData kkm_last_timestamp [15:59:02]File name is /storage/kkm_last_timestamp [15:59:02]Write 4 bytes [15:59:02]NVStorageSaveData done [15:59:02]ExternCall_PrintAddStr [15:59:02]wPrintStart [15:59:02]Write to MH i2c: 01 00 00 5A 01 5B [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [15:59:02]RasterBufferAndPrint [15:59:02]line Счет N : (1)2886072 [15:59:02]line ИНН: 02508201610067 [15:59:02]line Контрольно-Кассовый Чек [15:59:02]line ПРОДАЖА [15:59:02]line ТРК (МРК, ГНК) : 42 [15:59:02]line Товар: 2710124130 [15:59:02]line Аи-92-К-5 [15:59:02]line 14.950 * 66.90 [15:59:02]line = 1000.16 [15:59:02]line НДС 12% НСП 1% [15:59:02]line > о реализуемом товаре [15:59:02]line ОКРУГЛЕНИЕ: -0.16 [15:59:02]line ИТОГО: 1000.00 [15:59:02]line Внесено: 1000.00 [15:59:02]line СДАЧА: 0.00 [15:59:02]line НСП 1% : 8.85 [15:59:02]line НДС 12% : 106.21 [15:59:02]line Наличными: 1000.00 [15:59:02]line Безнал.: 0.00 [15:59:02]line Место: АЗС № 85 "Партнер Нефть" [15:59:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:59:02]line СНО: Общий режим [15:59:02]line Чек 253 22.10.2024 15:59 [15:59:02]line Смена: 195 ФФД: 1.0 [15:59:02]line ЗНМ: 0300000167 [15:59:02]line РНМ: 0000000000156251 [15:59:02]line Версия ККМ: v1.0 [15:59:02]line ФМ: 0000000000963346 [15:59:02]line ФД: 70305 [15:59:02]line ФПД: 193826028569934 [15:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70305&fm=193826028569934&tin=02508201610067®Number=0000000000156251&sum=100000 [15:59:02]written 0, free lines is 4095 [15:59:02]OFD Sender: Processing packet 70305 [packets to send 18, broken 17] [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00070305 [15:59:02]OFD Sender: To server: pG, [15:59:02]CommunicateWithHost lk.salyk.kg:30040 [15:59:02]ConnectInit lk.salyk.kg [15:59:02]Connected sock=7 [15:59: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 34 36 0F 01 00 00 F1 AA 07 01 F7 B4 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 FD 00 00 00 F4 03 04 00 C4 CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 12 01 00 35 04 06 00 B0 48 A3 94 C5 4E 9B 39 03 B7 9A 5D 96 4A [15:59: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 34 36 4F 00 00 00 0A B0 47 00 D6 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 12 01 00 F4 03 04 00 65 75 17 67 B6 04 01 00 00 C9 16 81 B1 E1 EA 0E 45 [15:59:03]CommunicateWithHost err = 0 [15:59:03]CheckOFDResponse [15:59:03]1017 (14) - 77093643461234 [15:59:03]1041 (16) - 0000000000963346 [15:59:03]1040 (4) - 70305 [15:59:03]1012 (4) - 22.10.2024 09:50 [15:59:03]1206 (1) - 0 [15:59:03]OFD Sender: Remove packet 70305 [15:59:03]ProducePacketName [15:59:03]name=ofd_packets/00070305 [15:59:03]NVStorageDeleteData [15:59:03]Write to MH i2c: 01 00 00 85 01 86 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 12 0D AC [15:59:03]RasterBufferAndPrint [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]written 0, free lines is 3361 [15:59:03]MH_Cut [15:59:03]Write to MH i2c: D1 01 00 8C 01 01 5F [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 01 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 01 00 8C 01 00 5E [15:59:03]Write to MH i2c: 01 00 00 8D 01 8E [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]OFD Sender: No OFD packet to send [15:59:03]*** Cut start [15:59:03]*** Partial cut [15:59:03]*** CUTSNS_PIN = 1 [15:59:03]*** CUTSNS_PIN = 0 [15:59:04]*** Brake cut motor [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]*** Stop cut motor [15:59:04]*** Cut end [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [15:59:04]process_action close_receipt done [15:59:04]requested_data is exist [15:59:04]produce_requested_data [15:59:04]requested_item fm.sn is exist - process it [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:04]wFMCommunicate OK [15:59:04]requested_item fd.num is exist - process it [15:59:04]SAM_PROTO_GetFieldsCounters [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 00 00 [15:59:04]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 62 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 62 00 8F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 12 01 00 0E 04 04 00 C3 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 95 [15:59: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 12 01 00 0E 04 04 00 C3 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 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetFieldsCounters done [15:59:04]requested_item shift.num is exist - process it [15:59:04]requested_item shift.opened is exist - process it [15:59:04]req_shift_opened [15:59:04]FM_GetShiftState [15:59:04]SAM_PROTO_GetShiftState [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 01 00 [15:59:04]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FC [15:59:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetShiftState done [15:59:04]FM_GetShiftState done [15:59:04]req_shift_opened done [15:59:04]requested_item shift.open_date is exist - process it [15:59:04]req_shift_open_date [15:59:04]req_shift_open_date done [15:59:04]produce_requested_data done [15:59:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70305,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:59:04]process_action_free close_receipt [15:59:04]json_value_free [15:59:04]json_value_free done [15:59:04]process_json_proto returns [15:59:04]Send response to host [15:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70305,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:59:04]free response buf [15:59:04]execute_script done [15:59:04]execute_script returns [15:59:04]free content buf [15:59:04]Sock 9.Close socket [15:59:04]Sock 9.Thread stoped [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:40]accept exits with 10 [15:59:40]New connection [15:59:40]New thread 3066555748 created [15:59:40]Thread 3066699108 joined [15:59:40]Waiting for new connection... [15:59:40] Sock 10.Parse request [15:59:40]Sock 10.Check first char [15:59:40]Sock 10.First char is OK [15:59:40]request: POST /json_proto HTTP/1.0 [15:59:40]Method: POST [15:59:40]URL: /json_proto [15:59:40]Method is POST - this is cgi request [15:59:40]url: /json_proto [15:59:40]query_string will be loaded in cgi processing [15:59:40]execute_cgi json_proto POST (null) [15:59:40]execute_cgi path=json_proto method=POST [15:59:40]POST find Content-Length [15:59:40]Host: 172.17.50.3:8080 [15:59:40]Content-Length: 689 [15:59:40]Content-Type: application/json [15:59:40] [15:59:40]POST finish read [15:59:40]Found Content-Length = 689 [15:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [15:59:40]execute_script... [15:59: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)2886070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [15:59:40]POST & json_proto [15:59:40]process_json_proto [15:59:40]json parsed OK: [15:59:40]protocol is kg_v1.0 [15:59:40]action value=close_receipt [15:59:40]process_action close_receipt [15:59:40]cmd_close_receipt [15:59:40]MH_GetDate [15:59:40]Write to MH i2c: F0 00 00 91 01 81 [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: F0 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: F0 09 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: F0 09 00 91 01 00 EC CB 17 67 6B 98 1E 66 46 [15:59:40]GetLastDocTimeStamp 1729612740 [15:59:40]current date 1729612780 [15:59:40]FM_GetShiftState [15:59:40]SAM_PROTO_GetShiftState [15:59:40]wFMCommunicate request_size=4 [15:59:40]MH_SAM_APDU [15:59:40]CAPDU: 80 13 01 00 [15:59:40]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:40]Read from MH i2c: E2 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 0E 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FE [15:59:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:59:40]wFMCommunicate OK [15:59:40]SAM_PROTO_GetShiftState done [15:59:40]FM_GetShiftState done [15:59:40]opened in 1729555832 [15:59:40]opened+sec_in_day 1729642232 [15:59:40]quantity*price = 500024 [15:59:40]sum+1 = 500025 [15:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 254 22.10.2024 15:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70306 ФПД: 208030153329630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70306&fm=208030153329630&tin=02508201610067®Number=0000000000156251&sum=500000 [15:59:41]StoreToDocumentArchive [15:59:41]shift 195 fd 70306 [15:59:41]save to /storage/0195/doc_00070306 [15:59:41]save last doc name /storage/0195/doc_00070306 to /storage/kkm_last_doc_name [15:59:41]save OK [15:59:41]Clear old archive folders... [15:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:59:41]tlvbuf is 00B30650 [15:59:41]SAM_PROTO_ClearQueue [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 09 00 00 [15:59:41]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]SAM_PROTO_ClearQueue done [15:59:42]KKMCreateOFDPacket [15:59:42]OFDProtocolAddRootSTLVToBuf [15:59:42]FM_MakeSignedData [15:59:42]FM_MakeSignedData [15:59:42]SAM_PROTO_SignData [15:59:42]wFMCommunicate request_size=4 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 01 02 [15:59:42]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]wFMCommunicate request_size=255 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 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 6C 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 FE 00 00 00 F4 03 04 00 ED CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 12 01 [15:59:42]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 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 6C 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 FE 00 00 00 F4 03 04 00 ED CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 12 01 00 00 80 [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]wFMCommunicate request_size=16 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BD 33 CB 64 4B DE [15:59:42]Write to MH i2c: E2 13 00 A2 01 80 0D 02 02 0B 00 00 35 04 06 00 BD 33 CB 64 4B DE 00 00 BA [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [15:59:42]RAPDU: 90 00 [15:59:42]wFMCommunicate OK [15:59:42]wFMCommunicate request_size=4 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 0D 03 02 [15:59:42]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 0B 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 0B 00 A3 01 00 59 EF 9B F7 FF 26 91 8F 90 00 3F [15:59:42]RAPDU: 59 EF 9B F7 FF 26 91 8F 90 00 [15:59:42]wFMCommunicate OK [15:59:42]SAM_PROTO_SignData done [15:59:42]FM_MakeSignedData done [15:59:42]CreateOFDProtocolMessage [15:59:42]wFMCommunicate request_size=4 [15:59:42]MH_SAM_APDU [15:59:42]CAPDU: 80 11 00 00 [15:59:42]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:42]Read from MH i2c: E2 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 17 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [15:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:42]wFMCommunicate OK [15:59:42]CreateOFDProtocolMessage done [15:59:42]OFDSenderStorePacket 70306 [15:59:42]StoreOFDPacket docnum=70306 [15:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C2 DC 0D 01 A4 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 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 6C 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 FE 00 00 00 F4 03 04 00 ED CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 12 01 00 35 04 06 00 BD 33 CB 64 4B DE 59 EF 9B F7 FF 26 91 8F [15:59:42]CheckFolder [15:59:42]dirname=/storage/ofd_packets [15:59:42]CheckFolder done [15:59:42]ProducePacketName [15:59:42]name=ofd_packets/00070306 [15:59:42]NVStorageSaveData ofd_packets/00070306 [15:59:42]File name is /storage/ofd_packets/00070306 [15:59:42]Write 307 bytes [15:59:42]NVStorageSaveData done [15:59:42]OFDSenderStorePacket done [15:59:42]KKMCreateOFDPacket done [15:59:42]NVStorageSaveData kkm_last_timestamp [15:59:42]File name is /storage/kkm_last_timestamp [15:59:42]Write 4 bytes [15:59:42]NVStorageSaveData done [15:59:42]ExternCall_PrintAddStr [15:59:42]wPrintStart [15:59:42]Write to MH i2c: 01 00 00 A5 01 A6 [15:59:42]Write i2c OK [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: 01 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: 01 07 00 [15:59:42]MH_I2C_Read... [15:59:42]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [15:59:42]RasterBufferAndPrint [15:59:42]line Счет N : (1)2886070 [15:59:42]line ИНН: 02508201610067 [15:59:42]line Контрольно-Кассовый Чек [15:59:42]line ПРОДАЖА [15:59:42]line ТРК (МРК, ГНК) : 31 [15:59:42]line Товар: 2710194240 [15:59:42]line D-ENERGY Дт-К-2 [15:59:42]line 64.770 * 77.20 [15:59:42]line = 5000.24 [15:59:42]line НДС 12% НСП 1% [15:59:42]line > о реализуемом товаре [15:59:42]line ОКРУГЛЕНИЕ: -0.24 [15:59:42]line ИТОГО: 5000.00 [15:59:42]line Внесено: 5000.00 [15:59:42]line СДАЧА: 0.00 [15:59:42]line НСП 1% : 44.25 [15:59:42]line НДС 12% : 531.00 [15:59:42]line Наличными: 5000.00 [15:59:42]line Безнал.: 0.00 [15:59:42]line Место: АЗС № 85 "Партнер Нефть" [15:59:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:59:42]line СНО: Общий режим [15:59:42]line Чек 254 22.10.2024 15:59 [15:59:42]line Смена: 195 ФФД: 1.0 [15:59:42]line ЗНМ: 0300000167 [15:59:42]line РНМ: 0000000000156251 [15:59:42]line Версия ККМ: v1.0 [15:59:42]line ФМ: 0000000000963346 [15:59:42]line ФД: 70306 [15:59:42]line ФПД: 208030153329630 [15:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70306&fm=208030153329630&tin=02508201610067®Number=0000000000156251&sum=500000 [15:59:42]OFD Sender: Processing packet 70306 [packets to send 18, broken 17] [15:59:42]ProducePacketName [15:59:42]name=ofd_packets/00070306 [15:59:42]OFD Sender: To server: pG, [15:59:42]CommunicateWithHost lk.salyk.kg:30040 [15:59:42]ConnectInit lk.salyk.kg [15:59:42]written 0, free lines is 4095 [15:59:42]Connected sock=9 [15:59: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 34 36 15 01 00 00 C2 DC 0D 01 A4 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 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 6C 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 FE 00 00 00 F4 03 04 00 ED CB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 12 01 00 35 04 06 00 BD 33 CB 64 4B DE 59 EF 9B F7 FF 26 91 8F [15:59: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 34 36 4F 00 00 00 B6 FA 47 00 70 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 34 36 10 04 04 00 A2 12 01 00 F4 03 04 00 8D 75 17 67 B6 04 01 00 00 CF 51 EB 37 0C 86 DB 3E [15:59:43]CommunicateWithHost err = 0 [15:59:43]CheckOFDResponse [15:59:43]1017 (14) - 77093643461234 [15:59:43]1041 (16) - 0000000000963346 [15:59:43]1040 (4) - 70306 [15:59:43]1012 (4) - 22.10.2024 09:51 [15:59:43]1206 (1) - 0 [15:59:43]OFD Sender: Remove packet 70306 [15:59:43]ProducePacketName [15:59:43]name=ofd_packets/00070306 [15:59:43]NVStorageDeleteData [15:59:43]Write to MH i2c: 01 00 00 D0 01 D1 [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 FA 0C DE [15:59:43]RasterBufferAndPrint [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]line [15:59:43]written 0, free lines is 3329 [15:59:43]MH_Cut [15:59:43]Write to MH i2c: D1 01 00 D7 01 01 AA [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: D1 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: D1 01 00 [15:59:43]MH_I2C_Read... [15:59:43]Read from MH i2c: D1 01 00 D7 01 00 A9 [15:59:43]Write to MH i2c: 01 00 00 D8 01 D9 [15:59:43]Write i2c OK [15:59:43]MH_I2C_Read... [15:59:43]OFD Sender: No OFD packet to send [15:59:43]*** Cut start [15:59:43]*** Partial cut [15:59:43]*** CUTSNS_PIN = 1 [15:59:44]*** CUTSNS_PIN = 0 [15:59:44]*** Brake cut motor [15:59:44]Read from MH i2c: 01 [15:59:44]MH_I2C_Read... [15:59:44]*** Stop cut motor [15:59:44]*** Cut end [15:59:44]Read from MH i2c: 01 07 00 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [15:59:44]process_action close_receipt done [15:59:44]requested_data is exist [15:59:44]produce_requested_data [15:59:44]requested_item fm.sn is exist - process it [15:59:44]wFMCommunicate request_size=4 [15:59:44]MH_SAM_APDU [15:59:44]CAPDU: 80 11 00 00 [15:59:44]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [15:59:44]Write i2c OK [15:59:44]MH_I2C_Read... [15:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:44]Read from MH i2c: E2 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 17 00 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [15:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:44]wFMCommunicate OK [15:59:44]requested_item fd.num is exist - process it [15:59:44]SAM_PROTO_GetFieldsCounters [15:59:44]wFMCommunicate request_size=4 [15:59:44]MH_SAM_APDU [15:59:44]CAPDU: 80 13 00 00 [15:59:44]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [15:59:44]Write i2c OK [15:59:44]MH_I2C_Read... [15:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:44]Read from MH i2c: E2 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 62 00 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 62 00 DA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 12 01 00 0E 04 04 00 C3 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 E4 [15:59: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 12 01 00 0E 04 04 00 C3 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 [15:59:44]wFMCommunicate OK [15:59:44]SAM_PROTO_GetFieldsCounters done [15:59:44]requested_item shift.num is exist - process it [15:59:44]requested_item shift.opened is exist - process it [15:59:44]req_shift_opened [15:59:44]FM_GetShiftState [15:59:44]SAM_PROTO_GetShiftState [15:59:44]wFMCommunicate request_size=4 [15:59:44]MH_SAM_APDU [15:59:44]CAPDU: 80 13 01 00 [15:59:44]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [15:59:44]Write i2c OK [15:59:44]MH_I2C_Read... [15:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:44]Read from MH i2c: E2 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 0E 00 [15:59:44]MH_I2C_Read... [15:59:44]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 47 [15:59:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [15:59:44]wFMCommunicate OK [15:59:44]SAM_PROTO_GetShiftState done [15:59:44]FM_GetShiftState done [15:59:44]req_shift_opened done [15:59:44]requested_item shift.open_date is exist - process it [15:59:44]req_shift_open_date [15:59:44]req_shift_open_date done [15:59:44]produce_requested_data done [15:59:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70306,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [15:59:44]process_action_free close_receipt [15:59:44]json_value_free [15:59:44]json_value_free done [15:59:44]process_json_proto returns [15:59:44]Send response to host [15:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70306,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [15:59:44]free response buf [15:59:44]execute_script done [15:59:44]execute_script returns [15:59:44]free content buf [15:59:44]Sock 10.Close socket [15:59:44]Sock 10.Thread stoped [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:36]accept exits with 7 [16:01:36]New connection [16:01:36]New thread 3066699108 created [16:01:36]Thread 3066555748 joined [16:01:36]Waiting for new connection... [16:01:36] Sock 7.Parse request [16:01:36]Sock 7.Check first char [16:01:36]Sock 7.First char is OK [16:01:36]request: POST /json_proto HTTP/1.0 [16:01:36]Method: POST [16:01:36]URL: /json_proto [16:01:36]Method is POST - this is cgi request [16:01:36]url: /json_proto [16:01:36]query_string will be loaded in cgi processing [16:01:36]execute_cgi json_proto POST (null) [16:01:36]execute_cgi path=json_proto method=POST [16:01:36]POST find Content-Length [16:01:36]Host: 172.17.50.3:8080 [16:01:36]Content-Length: 678 [16:01:36]Content-Type: application/json [16:01:36] [16:01:36]POST finish read [16:01:36]Found Content-Length = 678 [16:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [16:01:36]execute_script... [16:01: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)2886074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [16:01:36]POST & json_proto [16:01:36]process_json_proto [16:01:36]json parsed OK: [16:01:36]protocol is kg_v1.0 [16:01:36]action value=close_receipt [16:01:36]process_action close_receipt [16:01:36]cmd_close_receipt [16:01:36]MH_GetDate [16:01:36]Write to MH i2c: F0 00 00 DC 01 CC [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: F0 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: F0 09 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: F0 09 00 DC 01 00 60 CC 17 67 6B 98 1E 66 06 [16:01:36]GetLastDocTimeStamp 1729612781 [16:01:36]current date 1729612896 [16:01:36]FM_GetShiftState [16:01:36]SAM_PROTO_GetShiftState [16:01:36]wFMCommunicate request_size=4 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 13 01 00 [16:01:36]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:36]Read from MH i2c: E2 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 0E 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 49 [16:01:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:01:36]wFMCommunicate OK [16:01:36]SAM_PROTO_GetShiftState done [16:01:36]FM_GetShiftState done [16:01:36]opened in 1729555832 [16:01:36]opened+sec_in_day 1729642232 [16:01:36]quantity*price = 20034 [16:01:36]sum+1 = 20035 [16:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 255 22.10.2024 16:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70307 ФПД: 29281856445458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160136&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70307&fm=29281856445458&tin=02508201610067®Number=0000000000156251&sum=20000 [16:01:37]StoreToDocumentArchive [16:01:37]shift 195 fd 70307 [16:01:37]save to /storage/0195/doc_00070307 [16:01:37]save last doc name /storage/0195/doc_00070307 to /storage/kkm_last_doc_name [16:01:37]save OK [16:01:37]Clear old archive folders... [16:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:37]tlvbuf is B6E9CBC0 [16:01:37]SAM_PROTO_ClearQueue [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 09 00 00 [16:01:37]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_ClearQueue done [16:01:37]KKMCreateOFDPacket [16:01:37]OFDProtocolAddRootSTLVToBuf [16:01:37]FM_MakeSignedData [16:01:37]FM_MakeSignedData [16:01:37]SAM_PROTO_SignData [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 0D 01 02 [16:01:37]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]wFMCommunicate request_size=255 [16:01:37]MH_SAM_APDU [16:01: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 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 FF 00 00 00 F4 03 04 00 60 CC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 12 01 00 35 04 06 00 1A [16:01:37]Write to MH i2c: E2 02 01 EC 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 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 FF 00 00 00 F4 03 04 00 60 CC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 12 01 00 35 04 06 00 1A 00 00 CB [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]wFMCommunicate request_size=10 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 0D 02 02 05 A1 B6 A6 DC 12 [16:01:37]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 A1 B6 A6 DC 12 00 00 5D [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 0D 03 02 [16:01:37]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0B 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0B 00 EE 01 00 2E A3 69 E9 50 CF AA C7 90 00 1E [16:01:37]RAPDU: 2E A3 69 E9 50 CF AA C7 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_SignData done [16:01:37]FM_MakeSignedData done [16:01:37]CreateOFDProtocolMessage [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 11 00 00 [16:01:37]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 17 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [16:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:01:37]wFMCommunicate OK [16:01:37]CreateOFDProtocolMessage done [16:01:37]OFDSenderStorePacket 70307 [16:01:37]StoreOFDPacket docnum=70307 [16:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 43 09 07 01 9B 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 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 FF 00 00 00 F4 03 04 00 60 CC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 12 01 00 35 04 06 00 1A A1 B6 A6 DC 12 2E A3 69 E9 50 CF AA C7 [16:01:37]CheckFolder [16:01:37]dirname=/storage/ofd_packets [16:01:37]CheckFolder done [16:01:37]ProducePacketName [16:01:37]name=ofd_packets/00070307 [16:01:37]NVStorageSaveData ofd_packets/00070307 [16:01:37]File name is /storage/ofd_packets/00070307 [16:01:37]Write 301 bytes [16:01:37]NVStorageSaveData done [16:01:37]OFDSenderStorePacket done [16:01:37]KKMCreateOFDPacket done [16:01:37]NVStorageSaveData kkm_last_timestamp [16:01:37]File name is /storage/kkm_last_timestamp [16:01:37]Write 4 bytes [16:01:37]NVStorageSaveData done [16:01:37]ExternCall_PrintAddStr [16:01:37]wPrintStart [16:01:37]Write to MH i2c: 01 00 00 F0 01 F1 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 07 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [16:01:37]RasterBufferAndPrint [16:01:37]line Счет N : (1)2886074 [16:01:37]line ИНН: 02508201610067 [16:01:37]line Контрольно-Кассовый Чек [16:01:37]line ПРОДАЖА [16:01:37]line ТРК (МРК, ГНК) : 33 [16:01:37]line Товар: 2710124500 [16:01:37]line Аи-95-К-5 [16:01:37]line 2.700 * 74.20 [16:01:37]line = 200.34 [16:01:37]line НДС 12% НСП 1% [16:01:37]line > о реализуемом товаре [16:01:37]line ОКРУГЛЕНИЕ: -0.34 [16:01:37]line ИТОГО: 200.00 [16:01:37]line Внесено: 200.00 [16:01:37]line СДАЧА: 0.00 [16:01:37]line НСП 1% : 1.77 [16:01:37]line НДС 12% : 21.27 [16:01:37]line Наличными: 200.00 [16:01:37]line Безнал.: 0.00 [16:01:37]line Место: АЗС № 85 "Партнер Нефть" [16:01:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:01:37]line СНО: Общий режим [16:01:37]line Чек 255 22.10.2024 16:01 [16:01:37]line Смена: 195 ФФД: 1.0 [16:01:37]line ЗНМ: 0300000167 [16:01:37]line РНМ: 0000000000156251 [16:01:37]line Версия ККМ: v1.0 [16:01:37]line ФМ: 0000000000963346 [16:01:37]line ФД: 70307 [16:01:37]line ФПД: 29281856445458 [16:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160136&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70307&fm=29281856445458&tin=02508201610067®Number=0000000000156251&sum=20000 [16:01:38]OFD Sender: Processing packet 70307 [packets to send 18, broken 17] [16:01:38]ProducePacketName [16:01:38]name=ofd_packets/00070307 [16:01:38]OFD Sender: To server: pG, [16:01:38]CommunicateWithHost lk.salyk.kg:30040 [16:01:38]ConnectInit lk.salyk.kg [16:01:38]written 0, free lines is 4095 [16:01:38]Connected sock=10 [16:01: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 34 36 0F 01 00 00 43 09 07 01 9B 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 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 FF 00 00 00 F4 03 04 00 60 CC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 12 01 00 35 04 06 00 1A A1 B6 A6 DC 12 2E A3 69 E9 50 CF AA C7 [16:01: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 34 36 4F 00 00 00 1D 57 47 00 49 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 34 36 10 04 04 00 A3 12 01 00 F4 03 04 00 00 76 17 67 B6 04 01 00 00 B0 AD 28 B9 BE C0 41 E0 [16:01:38]CommunicateWithHost err = 0 [16:01:38]CheckOFDResponse [16:01:38]1017 (14) - 77093643461234 [16:01:38]1041 (16) - 0000000000963346 [16:01:38]1040 (4) - 70307 [16:01:38]1012 (4) - 22.10.2024 09:53 [16:01:38]1206 (1) - 0 [16:01:38]OFD Sender: Remove packet 70307 [16:01:38]ProducePacketName [16:01:38]name=ofd_packets/00070307 [16:01:38]NVStorageDeleteData [16:01:38]Write to MH i2c: 01 00 00 1B 02 1D [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 07 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 E0 0C 10 [16:01:38]RasterBufferAndPrint [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]written 0, free lines is 3302 [16:01:38]MH_Cut [16:01:38]Write to MH i2c: D1 01 00 22 02 01 F6 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 01 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 01 00 22 02 00 F5 [16:01:38]Write to MH i2c: 01 00 00 23 02 25 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:39]OFD Sender: No OFD packet to send [16:01:39]*** Cut start [16:01:39]*** Partial cut [16:01:39]*** CUTSNS_PIN = 1 [16:01:39]*** CUTSNS_PIN = 0 [16:01:39]*** Brake cut motor [16:01:40]Read from MH i2c: 01 [16:01:40]MH_I2C_Read... [16:01:40]*** Stop cut motor [16:01:40]*** Cut end [16:01:40]Read from MH i2c: 01 07 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [16:01:40]process_action close_receipt done [16:01:40]requested_data is exist [16:01:40]produce_requested_data [16:01:40]requested_item fm.sn is exist - process it [16:01:40]wFMCommunicate request_size=4 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 11 00 00 [16:01:40]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:40]Read from MH i2c: E2 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 17 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [16:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:01:40]wFMCommunicate OK [16:01:40]requested_item fd.num is exist - process it [16:01:40]SAM_PROTO_GetFieldsCounters [16:01:40]wFMCommunicate request_size=4 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 13 00 00 [16:01:40]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:40]Read from MH i2c: E2 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 62 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 62 00 25 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 12 01 00 0E 04 04 00 C3 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 35 [16:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 12 01 00 0E 04 04 00 C3 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:01:40]wFMCommunicate OK [16:01:40]SAM_PROTO_GetFieldsCounters done [16:01:40]requested_item shift.num is exist - process it [16:01:40]requested_item shift.opened is exist - process it [16:01:40]req_shift_opened [16:01:40]FM_GetShiftState [16:01:40]SAM_PROTO_GetShiftState [16:01:40]wFMCommunicate request_size=4 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 13 01 00 [16:01:40]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:40]Read from MH i2c: E2 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 0E 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 93 [16:01:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:01:40]wFMCommunicate OK [16:01:40]SAM_PROTO_GetShiftState done [16:01:40]FM_GetShiftState done [16:01:40]req_shift_opened done [16:01:40]requested_item shift.open_date is exist - process it [16:01:40]req_shift_open_date [16:01:40]req_shift_open_date done [16:01:40]produce_requested_data done [16:01:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70307,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:01:40]process_action_free close_receipt [16:01:40]json_value_free [16:01:40]json_value_free done [16:01:40]process_json_proto returns [16:01:40]Send response to host [16:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70307,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:01:40]free response buf [16:01:40]execute_script done [16:01:40]execute_script returns [16:01:40]free content buf [16:01:40]Sock 7.Close socket [16:01:40]Sock 7.Thread stoped [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:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]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:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:27]accept exits with 9 [16:04:27]New connection [16:04:27]New thread 3066555748 created [16:04:27]Thread 3066699108 joined [16:04:27]Waiting for new connection... [16:04:27] Sock 9.Parse request [16:04:27]Sock 9.Check first char [16:04:27]Sock 9.First char is OK [16:04:27]request: POST /json_proto HTTP/1.0 [16:04:27]Method: POST [16:04:27]URL: /json_proto [16:04:27]Method is POST - this is cgi request [16:04:27]url: /json_proto [16:04:27]query_string will be loaded in cgi processing [16:04:27]execute_cgi json_proto POST (null) [16:04:27]execute_cgi path=json_proto method=POST [16:04:27]POST find Content-Length [16:04:27]Host: 172.17.50.3:8080 [16:04:27]Content-Length: 682 [16:04:27]Content-Type: application/json [16:04:27] [16:04:27]POST finish read [16:04:27]Found Content-Length = 682 [16:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "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:04:27]execute_script... [16:04: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)2886075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "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:04:27]POST & json_proto [16:04:27]process_json_proto [16:04:27]json parsed OK: [16:04:27]protocol is kg_v1.0 [16:04:27]action value=close_receipt [16:04:27]process_action close_receipt [16:04:27]cmd_close_receipt [16:04:27]MH_GetDate [16:04:27]Write to MH i2c: F0 00 00 27 02 18 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: F0 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: F0 09 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: F0 09 00 27 02 00 0C CD 17 67 6B 98 1E 66 FF [16:04:27]GetLastDocTimeStamp 1729612896 [16:04:27]current date 1729613068 [16:04:27]FM_GetShiftState [16:04:27]SAM_PROTO_GetShiftState [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 01 00 [16:04:27]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [16:04:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetShiftState done [16:04:27]FM_GetShiftState done [16:04:27]opened in 1729555832 [16:04:27]opened+sec_in_day 1729642232 [16:04:27]quantity*price = 40028 [16:04:27]sum+1 = 40029 [16:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 256 22.10.2024 16:04 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70308 ФПД: 157164188905472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160428&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70308&fm=157164188905472&tin=02508201610067®Number=0000000000156251&sum=40000 [16:04:29]StoreToDocumentArchive [16:04:29]shift 195 fd 70308 [16:04:29]save to /storage/0195/doc_00070308 [16:04:29]save last doc name /storage/0195/doc_00070308 to /storage/kkm_last_doc_name [16:04:29]save OK [16:04:29]Clear old archive folders... [16:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:04:29]tlvbuf is 00B38C90 [16:04:29]SAM_PROTO_ClearQueue [16:04:29]wFMCommunicate request_size=4 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 09 00 00 [16:04:29]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [16:04:29]RAPDU: 90 00 [16:04:29]wFMCommunicate OK [16:04:29]SAM_PROTO_ClearQueue done [16:04:29]KKMCreateOFDPacket [16:04:29]OFDProtocolAddRootSTLVToBuf [16:04:29]FM_MakeSignedData [16:04:29]FM_MakeSignedData [16:04:29]SAM_PROTO_SignData [16:04:29]wFMCommunicate request_size=4 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 0D 01 02 [16:04:29]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [16:04:29]RAPDU: 90 00 [16:04:29]wFMCommunicate OK [16:04:29]wFMCommunicate request_size=255 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 00 01 00 00 F4 03 04 00 0C CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 12 01 00 35 04 06 00 8E F0 [16:04:29]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 00 01 00 00 F4 03 04 00 0C CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 12 01 00 35 04 06 00 8E F0 00 00 0C [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]OFD Sender: No OFD packet to send [16:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [16:04:29]RAPDU: 90 00 [16:04:29]wFMCommunicate OK [16:04:29]wFMCommunicate request_size=9 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 0D 02 02 04 A3 A6 B0 00 [16:04:29]Write to MH i2c: E2 0C 00 38 02 80 0D 02 02 04 00 A3 A6 B0 00 00 00 B5 [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [16:04:29]RAPDU: 90 00 [16:04:29]wFMCommunicate OK [16:04:29]wFMCommunicate request_size=4 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 0D 03 02 [16:04:29]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 0B 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 0B 00 39 02 00 51 22 FF B9 DD DD 0E E1 90 00 8B [16:04:29]RAPDU: 51 22 FF B9 DD DD 0E E1 90 00 [16:04:29]wFMCommunicate OK [16:04:29]SAM_PROTO_SignData done [16:04:29]FM_MakeSignedData done [16:04:29]CreateOFDProtocolMessage [16:04:29]wFMCommunicate request_size=4 [16:04:29]MH_SAM_APDU [16:04:29]CAPDU: 80 11 00 00 [16:04:29]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 17 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [16:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:04:29]wFMCommunicate OK [16:04:29]CreateOFDProtocolMessage done [16:04:29]OFDSenderStorePacket 70308 [16:04:29]StoreOFDPacket docnum=70308 [16:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 80 6B 06 01 C9 DB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 00 01 00 00 F4 03 04 00 0C CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 12 01 00 35 04 06 00 8E F0 A3 A6 B0 00 51 22 FF B9 DD DD 0E E1 [16:04:29]CheckFolder [16:04:29]dirname=/storage/ofd_packets [16:04:29]CheckFolder done [16:04:29]ProducePacketName [16:04:29]name=ofd_packets/00070308 [16:04:29]NVStorageSaveData ofd_packets/00070308 [16:04:29]File name is /storage/ofd_packets/00070308 [16:04:29]Write 300 bytes [16:04:29]NVStorageSaveData done [16:04:29]OFDSenderStorePacket done [16:04:29]KKMCreateOFDPacket done [16:04:29]NVStorageSaveData kkm_last_timestamp [16:04:29]File name is /storage/kkm_last_timestamp [16:04:29]Write 4 bytes [16:04:29]NVStorageSaveData done [16:04:29]ExternCall_PrintAddStr [16:04:29]wPrintStart [16:04:29]Write to MH i2c: 01 00 00 3B 02 3D [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: 01 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: 01 07 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [16:04:29]RasterBufferAndPrint [16:04:29]line Счет N : (1)2886075 [16:04:29]line ИНН: 02508201610067 [16:04:29]line Контрольно-Кассовый Чек [16:04:29]line ПРОДАЖА [16:04:29]line ТРК (МРК, ГНК) : 71 [16:04:29]line Товар: 2711129700 [16:04:29]line ГАЗ-К-3 [16:04:29]line 10.290 * 38.90 [16:04:29]line = 400.28 [16:04:29]line НДС 12% НСП 1% [16:04:29]line > о реализуемом товаре [16:04:29]line ОКРУГЛЕНИЕ: -0.28 [16:04:29]line ИТОГО: 400.00 [16:04:29]line Внесено: 400.00 [16:04:29]line СДАЧА: 0.00 [16:04:29]line НСП 1% : 3.54 [16:04:29]line НДС 12% : 42.51 [16:04:29]line Наличными: 400.00 [16:04:29]line Безнал.: 0.00 [16:04:29]line Место: АЗС № 85 "Партнер Нефть" [16:04:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:04:29]line СНО: Общий режим [16:04:29]line Чек 256 22.10.2024 16:04 [16:04:29]line Смена: 195 ФФД: 1.0 [16:04:29]line ЗНМ: 0300000167 [16:04:29]line РНМ: 0000000000156251 [16:04:29]line Версия ККМ: v1.0 [16:04:29]line ФМ: 0000000000963346 [16:04:29]line ФД: 70308 [16:04:29]line ФПД: 157164188905472 [16:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160428&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70308&fm=157164188905472&tin=02508201610067®Number=0000000000156251&sum=40000 [16:04:29]OFD Sender: Processing packet 70308 [packets to send 18, broken 17] [16:04:29]ProducePacketName [16:04:29]name=ofd_packets/00070308 [16:04:29]OFD Sender: To server: pG, [16:04:29]CommunicateWithHost lk.salyk.kg:30040 [16:04:29]ConnectInit lk.salyk.kg [16:04:29]written 0, free lines is 4095 [16:04:30]Connected sock=10 [16:04: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 34 36 0E 01 00 00 80 6B 06 01 C9 DB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 00 01 00 00 F4 03 04 00 0C CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 12 01 00 35 04 06 00 8E F0 A3 A6 B0 00 51 22 FF B9 DD DD 0E E1 [16:04: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 34 36 4F 00 00 00 20 22 47 00 60 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 12 01 00 F4 03 04 00 AC 76 17 67 B6 04 01 00 00 6D DE C0 A4 AF DF 8B 97 [16:04:30]CommunicateWithHost err = 0 [16:04:30]CheckOFDResponse [16:04:30]1017 (14) - 77093643461234 [16:04:30]1041 (16) - 0000000000963346 [16:04:30]1040 (4) - 70308 [16:04:30]1012 (4) - 22.10.2024 09:55 [16:04:30]1206 (1) - 0 [16:04:30]OFD Sender: Remove packet 70308 [16:04:30]ProducePacketName [16:04:30]name=ofd_packets/00070308 [16:04:30]NVStorageDeleteData [16:04:30]Write to MH i2c: 01 00 00 66 02 68 [16:04:30]Write i2c OK [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: 01 [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: 01 07 00 [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 EC 0C 67 [16:04:30]RasterBufferAndPrint [16:04:30]line [16:04:30]line [16:04:30]line [16:04:30]line [16:04:30]line [16:04:30]written 0, free lines is 3314 [16:04:30]MH_Cut [16:04:30]Write to MH i2c: D1 01 00 6D 02 01 41 [16:04:30]Write i2c OK [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: D1 [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: D1 01 00 [16:04:30]MH_I2C_Read... [16:04:30]Read from MH i2c: D1 01 00 6D 02 00 40 [16:04:30]Write to MH i2c: 01 00 00 6E 02 70 [16:04:30]Write i2c OK [16:04:30]MH_I2C_Read... [16:04:30]OFD Sender: No OFD packet to send [16:04:31]*** Cut start [16:04:31]*** Partial cut [16:04:31]*** CUTSNS_PIN = 1 [16:04:31]*** CUTSNS_PIN = 0 [16:04:31]*** Brake cut motor [16:04:31]Read from MH i2c: 01 [16:04:31]MH_I2C_Read... [16:04:31]*** Stop cut motor [16:04:31]*** Cut end [16:04:31]Read from MH i2c: 01 07 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [16:04:31]process_action close_receipt done [16:04:31]requested_data is exist [16:04:31]produce_requested_data [16:04:31]requested_item fm.sn is exist - process it [16:04:31]wFMCommunicate request_size=4 [16:04:31]MH_SAM_APDU [16:04:31]CAPDU: 80 11 00 00 [16:04:31]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [16:04:31]Write i2c OK [16:04:31]MH_I2C_Read... [16:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:31]Read from MH i2c: E2 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 17 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [16:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:04:31]wFMCommunicate OK [16:04:31]requested_item fd.num is exist - process it [16:04:31]SAM_PROTO_GetFieldsCounters [16:04:31]wFMCommunicate request_size=4 [16:04:31]MH_SAM_APDU [16:04:31]CAPDU: 80 13 00 00 [16:04:31]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [16:04:31]Write i2c OK [16:04:31]MH_I2C_Read... [16:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:31]Read from MH i2c: E2 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 62 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 62 00 70 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 12 01 00 0E 04 04 00 C3 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 86 [16:04: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 12 01 00 0E 04 04 00 C3 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:04:31]wFMCommunicate OK [16:04:31]SAM_PROTO_GetFieldsCounters done [16:04:31]requested_item shift.num is exist - process it [16:04:31]requested_item shift.opened is exist - process it [16:04:31]req_shift_opened [16:04:31]FM_GetShiftState [16:04:31]SAM_PROTO_GetShiftState [16:04:31]wFMCommunicate request_size=4 [16:04:31]MH_SAM_APDU [16:04:31]CAPDU: 80 13 01 00 [16:04:31]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [16:04:31]Write i2c OK [16:04:31]MH_I2C_Read... [16:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:31]Read from MH i2c: E2 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 0E 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DE [16:04:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:04:31]wFMCommunicate OK [16:04:31]SAM_PROTO_GetShiftState done [16:04:31]FM_GetShiftState done [16:04:31]req_shift_opened done [16:04:31]requested_item shift.open_date is exist - process it [16:04:31]req_shift_open_date [16:04:31]req_shift_open_date done [16:04:31]produce_requested_data done [16:04:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70308,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:04:31]process_action_free close_receipt [16:04:31]json_value_free [16:04:31]json_value_free done [16:04:31]process_json_proto returns [16:04:31]Send response to host [16:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70308,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:04:31]free response buf [16:04:31]execute_script done [16:04:31]execute_script returns [16:04:31]free content buf [16:04:31]Sock 9.Close socket [16:04:31]Sock 9.Thread stoped [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:29]accept exits with 7 [16:06:29]New connection [16:06:29]New thread 3066699108 created [16:06:29]Thread 3066555748 joined [16:06:29]Waiting for new connection... [16:06:29] Sock 7.Parse request [16:06:29]Sock 7.Check first char [16:06:29]Sock 7.First char is OK [16:06:29]request: POST /json_proto HTTP/1.0 [16:06:29]Method: POST [16:06:29]URL: /json_proto [16:06:29]Method is POST - this is cgi request [16:06:29]url: /json_proto [16:06:29]query_string will be loaded in cgi processing [16:06:29]execute_cgi json_proto POST (null) [16:06:29]execute_cgi path=json_proto method=POST [16:06:29]POST find Content-Length [16:06:29]Host: 172.17.50.3:8080 [16:06:29]Content-Length: 689 [16:06:29]Content-Type: application/json [16:06:29] [16:06:29]POST finish read [16:06:29]Found Content-Length = 689 [16:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:29]execute_script... [16:06: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)2886076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:29]POST & json_proto [16:06:29]process_json_proto [16:06:29]json parsed OK: [16:06:29]protocol is kg_v1.0 [16:06:29]action value=close_receipt [16:06:29]process_action close_receipt [16:06:29]cmd_close_receipt [16:06:29]MH_GetDate [16:06:29]Write to MH i2c: F0 00 00 72 02 63 [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: F0 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: F0 09 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: F0 09 00 72 02 00 85 CD 17 67 6B 98 1E 66 C3 [16:06:29]GetLastDocTimeStamp 1729613068 [16:06:29]current date 1729613189 [16:06:29]FM_GetShiftState [16:06:29]SAM_PROTO_GetShiftState [16:06:29]wFMCommunicate request_size=4 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 13 01 00 [16:06:29]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0E 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E0 [16:06:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:06:29]wFMCommunicate OK [16:06:29]SAM_PROTO_GetShiftState done [16:06:29]FM_GetShiftState done [16:06:29]opened in 1729555832 [16:06:29]opened+sec_in_day 1729642232 [16:06:29]quantity*price = 120046 [16:06:29]sum+1 = 120047 [16:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 257 22.10.2024 16:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70309 ФПД: 59214196254556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70309&fm=59214196254556&tin=02508201610067®Number=0000000000156251&sum=120000 [16:06:30]StoreToDocumentArchive [16:06:30]shift 195 fd 70309 [16:06:30]save to /storage/0195/doc_00070309 [16:06:30]save last doc name /storage/0195/doc_00070309 to /storage/kkm_last_doc_name [16:06:30]save OK [16:06:30]Clear old archive folders... [16:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:06:30]tlvbuf is 00B39F90 [16:06:30]SAM_PROTO_ClearQueue [16:06:30]wFMCommunicate request_size=4 [16:06:30]MH_SAM_APDU [16:06:30]CAPDU: 80 09 00 00 [16:06:30]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 [16:06:30]MH_I2C_Read... [16:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:30]Read from MH i2c: E2 03 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [16:06:30]RAPDU: 90 00 [16:06:30]wFMCommunicate OK [16:06:30]SAM_PROTO_ClearQueue done [16:06:30]KKMCreateOFDPacket [16:06:30]OFDProtocolAddRootSTLVToBuf [16:06:30]FM_MakeSignedData [16:06:30]FM_MakeSignedData [16:06:30]SAM_PROTO_SignData [16:06:30]wFMCommunicate request_size=4 [16:06:30]MH_SAM_APDU [16:06:30]CAPDU: 80 0D 01 02 [16:06:30]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:30]Read from MH i2c: E2 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 03 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [16:06:30]RAPDU: 90 00 [16:06:30]wFMCommunicate OK [16:06:30]wFMCommunicate request_size=255 [16:06:30]MH_SAM_APDU [16:06:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 85 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 12 01 [16:06:30]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 85 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 12 01 00 00 0D [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]OFD Sender: No OFD packet to send [16:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:30]Read from MH i2c: E2 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 03 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [16:06:30]RAPDU: 90 00 [16:06:30]wFMCommunicate OK [16:06:30]wFMCommunicate request_size=16 [16:06:30]MH_SAM_APDU [16:06:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 35 DA E1 22 27 5C [16:06:30]Write to MH i2c: E2 13 00 83 02 80 0D 02 02 0B 00 00 35 04 06 00 35 DA E1 22 27 5C 00 00 E9 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 03 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [16:06:31]RAPDU: 90 00 [16:06:31]wFMCommunicate OK [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 0D 03 02 [16:06:31]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 0B 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 0B 00 84 02 00 BA B0 30 46 ED 04 BC 94 90 00 23 [16:06:31]RAPDU: BA B0 30 46 ED 04 BC 94 90 00 [16:06:31]wFMCommunicate OK [16:06:31]SAM_PROTO_SignData done [16:06:31]FM_MakeSignedData done [16:06:31]CreateOFDProtocolMessage [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 11 00 00 [16:06:31]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 17 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [16:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:06:31]wFMCommunicate OK [16:06:31]CreateOFDProtocolMessage done [16:06:31]OFDSenderStorePacket 70309 [16:06:31]StoreOFDPacket docnum=70309 [16:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E1 84 0D 01 0F F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 85 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 12 01 00 35 04 06 00 35 DA E1 22 27 5C BA B0 30 46 ED 04 BC 94 [16:06:31]CheckFolder [16:06:31]dirname=/storage/ofd_packets [16:06:31]CheckFolder done [16:06:31]ProducePacketName [16:06:31]name=ofd_packets/00070309 [16:06:31]NVStorageSaveData ofd_packets/00070309 [16:06:31]File name is /storage/ofd_packets/00070309 [16:06:31]Write 307 bytes [16:06:31]NVStorageSaveData done [16:06:31]OFDSenderStorePacket done [16:06:31]KKMCreateOFDPacket done [16:06:31]NVStorageSaveData kkm_last_timestamp [16:06:31]File name is /storage/kkm_last_timestamp [16:06:31]Write 4 bytes [16:06:31]NVStorageSaveData done [16:06:31]ExternCall_PrintAddStr [16:06:31]wPrintStart [16:06:31]Write to MH i2c: 01 00 00 86 02 88 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 07 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [16:06:31]RasterBufferAndPrint [16:06:31]line Счет N : (1)2886076 [16:06:31]line ИНН: 02508201610067 [16:06:31]line Контрольно-Кассовый Чек [16:06:31]line ПРОДАЖА [16:06:31]line ТРК (МРК, ГНК) : 31 [16:06:31]line Товар: 2710194240 [16:06:31]line D-ENERGY Дт-К-2 [16:06:31]line 15.550 * 77.20 [16:06:31]line = 1200.46 [16:06:31]line НДС 12% НСП 1% [16:06:31]line > о реализуемом товаре [16:06:31]line ОКРУГЛЕНИЕ: -0.46 [16:06:31]line ИТОГО: 1200.00 [16:06:31]line Внесено: 1200.00 [16:06:31]line СДАЧА: 0.00 [16:06:31]line НСП 1% : 10.62 [16:06:31]line НДС 12% : 127.48 [16:06:31]line Наличными: 1200.00 [16:06:31]line Безнал.: 0.00 [16:06:31]line Место: АЗС № 85 "Партнер Нефть" [16:06:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:06:31]line СНО: Общий режим [16:06:31]line Чек 257 22.10.2024 16:06 [16:06:31]line Смена: 195 ФФД: 1.0 [16:06:31]line ЗНМ: 0300000167 [16:06:31]line РНМ: 0000000000156251 [16:06:31]line Версия ККМ: v1.0 [16:06:31]line ФМ: 0000000000963346 [16:06:31]line ФД: 70309 [16:06:31]line ФПД: 59214196254556 [16:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70309&fm=59214196254556&tin=02508201610067®Number=0000000000156251&sum=120000 [16:06:31]OFD Sender: Processing packet 70309 [packets to send 18, broken 17] [16:06:31]ProducePacketName [16:06:31]name=ofd_packets/00070309 [16:06:31]OFD Sender: To server: pG, [16:06:31]CommunicateWithHost lk.salyk.kg:30040 [16:06:31]ConnectInit lk.salyk.kg [16:06:31]written 0, free lines is 4095 [16:06:31]Connected sock=10 [16:06: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 34 36 15 01 00 00 E1 84 0D 01 0F F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 85 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 12 01 00 35 04 06 00 35 DA E1 22 27 5C BA B0 30 46 ED 04 BC 94 [16:06: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 34 36 4F 00 00 00 20 87 47 00 71 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 12 01 00 F4 03 04 00 25 77 17 67 B6 04 01 00 00 95 80 93 72 5E 14 A3 0E [16:06:31]CommunicateWithHost err = 0 [16:06:31]CheckOFDResponse [16:06:31]1017 (14) - 77093643461234 [16:06:31]1041 (16) - 0000000000963346 [16:06:31]1040 (4) - 70309 [16:06:31]1012 (4) - 22.10.2024 09:57 [16:06:31]1206 (1) - 0 [16:06:31]OFD Sender: Remove packet 70309 [16:06:31]ProducePacketName [16:06:31]name=ofd_packets/00070309 [16:06:31]NVStorageDeleteData [16:06:31]Write to MH i2c: 01 00 00 B1 02 B3 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 07 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 ED 0C B3 [16:06:31]RasterBufferAndPrint [16:06:31]line [16:06:31]line [16:06:31]line [16:06:31]line [16:06:31]line [16:06:31]written 0, free lines is 3315 [16:06:31]MH_Cut [16:06:31]Write to MH i2c: D1 01 00 B8 02 01 8C [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: D1 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: D1 01 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: D1 01 00 B8 02 00 8B [16:06:31]Write to MH i2c: 01 00 00 B9 02 BB [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:32]OFD Sender: No OFD packet to send [16:06:32]*** Cut start [16:06:32]*** Partial cut [16:06:32]*** CUTSNS_PIN = 1 [16:06:32]*** CUTSNS_PIN = 0 [16:06:32]*** Brake cut motor [16:06:33]Read from MH i2c: 01 [16:06:33]MH_I2C_Read... [16:06:33]*** Stop cut motor [16:06:33]*** Cut end [16:06:33]Read from MH i2c: 01 07 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [16:06:33]process_action close_receipt done [16:06:33]requested_data is exist [16:06:33]produce_requested_data [16:06:33]requested_item fm.sn is exist - process it [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 11 00 00 [16:06:33]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 17 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [16:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:06:33]wFMCommunicate OK [16:06:33]requested_item fd.num is exist - process it [16:06:33]SAM_PROTO_GetFieldsCounters [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 13 00 00 [16:06:33]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 62 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 62 00 BB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 12 01 00 0E 04 04 00 C3 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 D5 [16:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 12 01 00 0E 04 04 00 C3 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:06:33]wFMCommunicate OK [16:06:33]SAM_PROTO_GetFieldsCounters done [16:06:33]requested_item shift.num is exist - process it [16:06:33]requested_item shift.opened is exist - process it [16:06:33]req_shift_opened [16:06:33]FM_GetShiftState [16:06:33]SAM_PROTO_GetShiftState [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 13 01 00 [16:06:33]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:33]Read from MH i2c: E2 0E 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [16:06:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:06:33]wFMCommunicate OK [16:06:33]SAM_PROTO_GetShiftState done [16:06:33]FM_GetShiftState done [16:06:33]req_shift_opened done [16:06:33]requested_item shift.open_date is exist - process it [16:06:33]req_shift_open_date [16:06:33]req_shift_open_date done [16:06:33]produce_requested_data done [16:06:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70309,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:06:33]process_action_free close_receipt [16:06:33]json_value_free [16:06:33]json_value_free done [16:06:33]process_json_proto returns [16:06:33]Send response to host [16:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70309,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:06:33]free response buf [16:06:33]execute_script done [16:06:33]execute_script returns [16:06:33]free content buf [16:06:33]Sock 7.Close socket [16:06:33]Sock 7.Thread stoped [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:29]accept exits with 9 [16:07:29]New connection [16:07:29]New thread 3066555748 created [16:07:29]Thread 3066699108 joined [16:07:29]Waiting for new connection... [16:07:29] Sock 9.Parse request [16:07:29]Sock 9.Check first char [16:07:29]Sock 9.First char is OK [16:07:29]request: POST /json_proto HTTP/1.0 [16:07:29]Method: POST [16:07:29]URL: /json_proto [16:07:29]Method is POST - this is cgi request [16:07:29]url: /json_proto [16:07:29]query_string will be loaded in cgi processing [16:07:29]execute_cgi json_proto POST (null) [16:07:29]execute_cgi path=json_proto method=POST [16:07:29]POST find Content-Length [16:07:29]Host: 172.17.50.3:8080 [16:07:29]Content-Length: 680 [16:07:29]Content-Type: application/json [16:07:29] [16:07:29]POST finish read [16:07:29]Found Content-Length = 680 [16:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886077", "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" : 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:07:29]execute_script... [16:07: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)2886077", "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" : 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:07:29]POST & json_proto [16:07:29]process_json_proto [16:07:29]json parsed OK: [16:07:29]protocol is kg_v1.0 [16:07:29]action value=close_receipt [16:07:29]process_action close_receipt [16:07:29]cmd_close_receipt [16:07:29]MH_GetDate [16:07:29]Write to MH i2c: F0 00 00 BD 02 AE [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 09 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 09 00 BD 02 00 C2 CD 17 67 6B 98 1E 66 4B [16:07:29]GetLastDocTimeStamp 1729613189 [16:07:29]current date 1729613250 [16:07:29]FM_GetShiftState [16:07:29]SAM_PROTO_GetShiftState [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 13 01 00 [16:07:29]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [16:07:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_GetShiftState done [16:07:29]FM_GetShiftState done [16:07:29]opened in 1729555832 [16:07:29]opened+sec_in_day 1729642232 [16:07:29]quantity*price = 150037 [16:07:29]sum+1 = 150039 [16:07:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 258 22.10.2024 16:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70310 ФПД: 94351138394587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70310&fm=94351138394587&tin=02508201610067®Number=0000000000156251&sum=150000 [16:07:31]StoreToDocumentArchive [16:07:31]shift 195 fd 70310 [16:07:31]save to /storage/0195/doc_00070310 [16:07:31]save last doc name /storage/0195/doc_00070310 to /storage/kkm_last_doc_name [16:07:31]save OK [16:07:31]Clear old archive folders... [16:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:07:31]tlvbuf is 00AC17F0 [16:07:31]SAM_PROTO_ClearQueue [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 09 00 00 [16:07:31]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [16:07:31]RAPDU: 90 00 [16:07:31]wFMCommunicate OK [16:07:31]SAM_PROTO_ClearQueue done [16:07:31]KKMCreateOFDPacket [16:07:31]OFDProtocolAddRootSTLVToBuf [16:07:31]FM_MakeSignedData [16:07:31]FM_MakeSignedData [16:07:31]SAM_PROTO_SignData [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 0D 01 02 [16:07:31]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [16:07:31]RAPDU: 90 00 [16:07:31]wFMCommunicate OK [16:07:31]wFMCommunicate request_size=255 [16:07:31]MH_SAM_APDU [16:07: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 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 02 01 00 00 F4 03 04 00 C2 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 12 01 00 35 04 06 00 55 CF D6 16 [16:07:31]Write to MH i2c: E2 02 01 CD 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 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 02 01 00 00 F4 03 04 00 C2 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 12 01 00 35 04 06 00 55 CF D6 16 00 00 D9 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [16:07:31]RAPDU: 90 00 [16:07:31]wFMCommunicate OK [16:07:31]wFMCommunicate request_size=7 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 0D 02 02 02 91 DB [16:07:31]Write to MH i2c: E2 0A 00 CE 02 80 0D 02 02 02 00 91 DB 00 00 BA [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [16:07:31]RAPDU: 90 00 [16:07:31]wFMCommunicate OK [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 0D 03 02 [16:07:31]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 0B 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 0B 00 CF 02 00 89 79 8B B7 26 B9 34 E4 90 00 88 [16:07:31]RAPDU: 89 79 8B B7 26 B9 34 E4 90 00 [16:07:31]wFMCommunicate OK [16:07:31]SAM_PROTO_SignData done [16:07:31]FM_MakeSignedData done [16:07:31]CreateOFDProtocolMessage [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 11 00 00 [16:07:31]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 17 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [16:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:07:31]wFMCommunicate OK [16:07:31]CreateOFDProtocolMessage done [16:07:31]OFDSenderStorePacket 70310 [16:07:31]StoreOFDPacket docnum=70310 [16:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B4 C8 04 01 67 34 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 02 01 00 00 F4 03 04 00 C2 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 12 01 00 35 04 06 00 55 CF D6 16 91 DB 89 79 8B B7 26 B9 34 E4 [16:07:31]CheckFolder [16:07:31]dirname=/storage/ofd_packets [16:07:31]CheckFolder done [16:07:31]ProducePacketName [16:07:31]name=ofd_packets/00070310 [16:07:31]NVStorageSaveData ofd_packets/00070310 [16:07:31]File name is /storage/ofd_packets/00070310 [16:07:31]Write 298 bytes [16:07:31]NVStorageSaveData done [16:07:31]OFDSenderStorePacket done [16:07:31]KKMCreateOFDPacket done [16:07:31]NVStorageSaveData kkm_last_timestamp [16:07:31]File name is /storage/kkm_last_timestamp [16:07:31]Write 4 bytes [16:07:31]NVStorageSaveData done [16:07:31]ExternCall_PrintAddStr [16:07:31]wPrintStart [16:07:31]Write to MH i2c: 01 00 00 D1 02 D3 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [16:07:31]RasterBufferAndPrint [16:07:31]line Счет N : (1)2886077 [16:07:31]line ИНН: 02508201610067 [16:07:31]line Контрольно-Кассовый Чек [16:07:31]line ПРОДАЖА [16:07:31]line ТРК (МРК, ГНК) : 51 [16:07:31]line Товар: 2710194210 [16:07:31]line ДТ-К-5 [16:07:31]line 19.690 * 76.20 [16:07:31]line = 1500.38 [16:07:31]line НДС 12% НСП 1% [16:07:31]line > о реализуемом товаре [16:07:31]line ОКРУГЛЕНИЕ: -0.38 [16:07:31]line ИТОГО: 1500.00 [16:07:31]line Внесено: 1500.00 [16:07:31]line СДАЧА: 0.00 [16:07:31]line НСП 1% : 13.28 [16:07:31]line НДС 12% : 159.33 [16:07:31]line Наличными: 1500.00 [16:07:31]line Безнал.: 0.00 [16:07:31]line Место: АЗС № 85 "Партнер Нефть" [16:07:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:07:31]line СНО: Общий режим [16:07:31]line Чек 258 22.10.2024 16:07 [16:07:31]line Смена: 195 ФФД: 1.0 [16:07:31]line ЗНМ: 0300000167 [16:07:31]line РНМ: 0000000000156251 [16:07:31]line Версия ККМ: v1.0 [16:07:31]line ФМ: 0000000000963346 [16:07:31]line ФД: 70310 [16:07:31]line ФПД: 94351138394587 [16:07:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70310&fm=94351138394587&tin=02508201610067®Number=0000000000156251&sum=150000 [16:07:31]OFD Sender: Processing packet 70310 [packets to send 18, broken 17] [16:07:31]ProducePacketName [16:07:31]name=ofd_packets/00070310 [16:07:31]OFD Sender: To server: pG, [16:07:31]CommunicateWithHost lk.salyk.kg:30040 [16:07:31]ConnectInit lk.salyk.kg [16:07:31]written 0, free lines is 4095 [16:07:32]Connected sock=11 [16:07: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 34 36 0C 01 00 00 B4 C8 04 01 67 34 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 02 01 00 00 F4 03 04 00 C2 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 12 01 00 35 04 06 00 55 CF D6 16 91 DB 89 79 8B B7 26 B9 34 E4 [16:07: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 34 36 4F 00 00 00 11 B0 47 00 DD 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 34 36 10 04 04 00 A6 12 01 00 F4 03 04 00 62 77 17 67 B6 04 01 00 00 BD D5 47 DB 70 06 6A 44 [16:07:32]CommunicateWithHost err = 0 [16:07:32]CheckOFDResponse [16:07:32]1017 (14) - 77093643461234 [16:07:32]1041 (16) - 0000000000963346 [16:07:32]1040 (4) - 70310 [16:07:32]1012 (4) - 22.10.2024 09:58 [16:07:32]1206 (1) - 0 [16:07:32]OFD Sender: Remove packet 70310 [16:07:32]ProducePacketName [16:07:32]name=ofd_packets/00070310 [16:07:32]NVStorageDeleteData [16:07:32]Write to MH i2c: 01 00 00 FC 02 FE [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: 01 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: 01 07 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 E9 0C FA [16:07:32]RasterBufferAndPrint [16:07:32]line [16:07:32]line [16:07:32]line [16:07:32]line [16:07:32]line [16:07:32]written 0, free lines is 3311 [16:07:32]MH_Cut [16:07:32]Write to MH i2c: D1 01 00 03 03 01 D8 [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: D1 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: D1 01 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: D1 01 00 03 03 00 D7 [16:07:32]Write to MH i2c: 01 00 00 04 03 07 [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]OFD Sender: No OFD packet to send [16:07:33]*** Cut start [16:07:33]*** Partial cut [16:07:33]*** CUTSNS_PIN = 1 [16:07:33]*** CUTSNS_PIN = 0 [16:07:33]*** Brake cut motor [16:07:33]Read from MH i2c: 01 [16:07:33]MH_I2C_Read... [16:07:33]*** Stop cut motor [16:07:33]*** Cut end [16:07:33]Read from MH i2c: 01 07 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [16:07:33]process_action close_receipt done [16:07:33]requested_data is exist [16:07:33]produce_requested_data [16:07:33]requested_item fm.sn is exist - process it [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 11 00 00 [16:07:33]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 17 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [16:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:07:33]wFMCommunicate OK [16:07:33]requested_item fd.num is exist - process it [16:07:33]SAM_PROTO_GetFieldsCounters [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 13 00 00 [16:07:33]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 62 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 62 00 06 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 12 01 00 0E 04 04 00 C3 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 25 [16:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 12 01 00 0E 04 04 00 C3 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:07:33]wFMCommunicate OK [16:07:33]SAM_PROTO_GetFieldsCounters done [16:07:33]requested_item shift.num is exist - process it [16:07:33]requested_item shift.opened is exist - process it [16:07:33]req_shift_opened [16:07:33]FM_GetShiftState [16:07:33]SAM_PROTO_GetShiftState [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 13 01 00 [16:07:33]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 0E 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 75 [16:07:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:07:33]wFMCommunicate OK [16:07:33]SAM_PROTO_GetShiftState done [16:07:33]FM_GetShiftState done [16:07:33]req_shift_opened done [16:07:33]requested_item shift.open_date is exist - process it [16:07:33]req_shift_open_date [16:07:33]req_shift_open_date done [16:07:33]produce_requested_data done [16:07:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70310,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:07:33]process_action_free close_receipt [16:07:33]json_value_free [16:07:33]json_value_free done [16:07:33]process_json_proto returns [16:07:33]Send response to host [16:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70310,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:07:33]free response buf [16:07:33]execute_script done [16:07:33]execute_script returns [16:07:33]free content buf [16:07:33]Sock 9.Close socket [16:07:33]Sock 9.Thread stoped [16:07:34]accept exits with 7 [16:07:34]New connection [16:07:34]New thread 3066699108 created [16:07:34]Thread 3066555748 joined [16:07:34]Waiting for new connection... [16:07:34] Sock 7.Parse request [16:07:34]Sock 7.Check first char [16:07:34]Sock 7.First char is OK [16:07:34]request: POST /json_proto HTTP/1.0 [16:07:34]Method: POST [16:07:34]URL: /json_proto [16:07:34]Method is POST - this is cgi request [16:07:34]url: /json_proto [16:07:34]query_string will be loaded in cgi processing [16:07:34]execute_cgi json_proto POST (null) [16:07:34]execute_cgi path=json_proto method=POST [16:07:34]POST find Content-Length [16:07:34]Host: 172.17.50.3:8080 [16:07:34]Content-Length: 767 [16:07:34]Content-Type: application/json [16:07:34] [16:07:34]POST finish read [16:07:34]Found Content-Length = 767 [16:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]execute_script... [16:07: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)2886078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]POST & json_proto [16:07:34]process_json_proto [16:07:34]json parsed OK: [16:07:34]protocol is kg_v1.0 [16:07:34]action value=close_receipt [16:07:34]process_action close_receipt [16:07:34]cmd_close_receipt [16:07:34]MH_GetDate [16:07:34]Write to MH i2c: F0 00 00 08 03 FA [16:07:34]Write i2c OK [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 09 00 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 09 00 08 03 00 C6 CD 17 67 6B 98 1E 66 9B [16:07:34]GetLastDocTimeStamp 1729613250 [16:07:34]current date 1729613254 [16:07:34]FM_GetShiftState [16:07:34]SAM_PROTO_GetShiftState [16:07:34]wFMCommunicate request_size=4 [16:07:34]MH_SAM_APDU [16:07:34]CAPDU: 80 13 01 00 [16:07:34]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [16:07:34]Write i2c OK [16:07:34]MH_I2C_Read... [16:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:34]Read from MH i2c: E2 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: E2 0E 00 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [16:07:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:07:34]wFMCommunicate OK [16:07:34]SAM_PROTO_GetShiftState done [16:07:34]FM_GetShiftState done [16:07:34]opened in 1729555832 [16:07:34]opened+sec_in_day 1729642232 [16:07:34]quantity*price = 70044 [16:07:34]sum+1 = 70046 [16:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 259 22.10.2024 16:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70311 ФПД: 61320957282734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70311&fm=61320957282734&tin=02508201610067®Number=0000000000156251&sum=70045 [16:07:35]StoreToDocumentArchive [16:07:35]shift 195 fd 70311 [16:07:35]save to /storage/0195/doc_00070311 [16:07:35]save last doc name /storage/0195/doc_00070311 to /storage/kkm_last_doc_name [16:07:35]save OK [16:07:35]Clear old archive folders... [16:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:35]tlvbuf is 00AC3420 [16:07:35]SAM_PROTO_ClearQueue [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 09 00 00 [16:07:35]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]SAM_PROTO_ClearQueue done [16:07:35]KKMCreateOFDPacket [16:07:35]OFDProtocolAddRootSTLVToBuf [16:07:35]FM_MakeSignedData [16:07:35]FM_MakeSignedData [16:07:35]SAM_PROTO_SignData [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 0D 01 02 [16:07:35]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]wFMCommunicate request_size=255 [16:07:35]MH_SAM_APDU [16:07:35]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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C6 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 12 01 00 35 04 06 00 37 [16:07:35]Write to MH i2c: E2 02 01 18 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C6 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 12 01 00 35 04 06 00 37 00 00 26 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]wFMCommunicate request_size=10 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 02 02 05 C5 65 E0 49 AE [16:07:36]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 C5 65 E0 49 AE 00 00 A1 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 03 02 [16:07:36]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 0B 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 0B 00 1A 03 00 CC F5 2A 3D 20 A3 7C 26 90 00 26 [16:07:36]RAPDU: CC F5 2A 3D 20 A3 7C 26 90 00 [16:07:36]wFMCommunicate OK [16:07:36]SAM_PROTO_SignData done [16:07:36]FM_MakeSignedData done [16:07:36]CreateOFDProtocolMessage [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 11 00 00 [16:07:36]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 17 00 [16:07:36]MH_I2C_Read... [16:07:36]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 34 36 90 00 EA [16:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:07:36]wFMCommunicate OK [16:07:36]CreateOFDProtocolMessage done [16:07:36]OFDSenderStorePacket 70311 [16:07:36]StoreOFDPacket docnum=70311 [16:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E8 04 07 01 88 B1 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C6 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 12 01 00 35 04 06 00 37 C5 65 E0 49 AE CC F5 2A 3D 20 A3 7C 26 [16:07:36]CheckFolder [16:07:36]dirname=/storage/ofd_packets [16:07:36]CheckFolder done [16:07:36]ProducePacketName [16:07:36]name=ofd_packets/00070311 [16:07:36]NVStorageSaveData ofd_packets/00070311 [16:07:36]File name is /storage/ofd_packets/00070311 [16:07:36]Write 301 bytes [16:07:36]NVStorageSaveData done [16:07:36]OFDSenderStorePacket done [16:07:36]KKMCreateOFDPacket done [16:07:36]NVStorageSaveData kkm_last_timestamp [16:07:36]File name is /storage/kkm_last_timestamp [16:07:36]Write 4 bytes [16:07:36]NVStorageSaveData done [16:07:36]ExternCall_PrintAddStr [16:07:36]wPrintStart [16:07:36]Write to MH i2c: 01 00 00 1C 03 1F [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [16:07:36]RasterBufferAndPrint [16:07:36]line Счет N : (1)2886078 [16:07:36]line ИНН: 02508201610067 [16:07:36]line Контрольно-Кассовый Чек [16:07:36]line ПРОДАЖА [16:07:36]line ТРК (МРК, ГНК) : 13 [16:07:36]line Товар: 2710124500 [16:07:36]line Аи-95-К-5 [16:07:36]line 9.440 * 74.20 [16:07:36]line = 700.45 [16:07:36]line НДС 12% НСП 1% [16:07:36]line > о реализуемом товаре [16:07:36]line ИТОГО: 700.45 [16:07:36]line НСП 1% : 6.20 [16:07:36]line НДС 12% : 74.38 [16:07:36]line Наличными: 0.00 [16:07:36]line Безнал.: 700.45 [16:07:36]line Место: АЗС № 85 "Партнер Нефть" [16:07:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:07:36]line СНО: Общий режим [16:07:36]line Чек 259 22.10.2024 16:07 [16:07:36]line Смена: 195 ФФД: 1.0 [16:07:36]line ЗНМ: 0300000167 [16:07:36]line РНМ: 0000000000156251 [16:07:36]line Версия ККМ: v1.0 [16:07:36]line Платежная система: Mbank [16:07:36]line ФМ: 0000000000963346 [16:07:36]line ФД: 70311 [16:07:36]line ФПД: 61320957282734 [16:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70311&fm=61320957282734&tin=02508201610067®Number=0000000000156251&sum=70045 [16:07:36]written 0, free lines is 4095 [16:07:36]OFD Sender: Processing packet 70311 [packets to send 18, broken 17] [16:07:36]ProducePacketName [16:07:36]name=ofd_packets/00070311 [16:07:36]OFD Sender: To server: pG, [16:07:36]CommunicateWithHost lk.salyk.kg:30040 [16:07:36]ConnectInit lk.salyk.kg [16:07:36]Connected sock=10 [16: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 34 36 0F 01 00 00 E8 04 07 01 88 B1 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C6 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 12 01 00 35 04 06 00 37 C5 65 E0 49 AE CC F5 2A 3D 20 A3 7C 26 [16:07: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 34 36 4F 00 00 00 90 DC 47 00 12 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 34 36 10 04 04 00 A7 12 01 00 F4 03 04 00 67 77 17 67 B6 04 01 00 00 01 A1 44 C3 BF 3A D8 28 [16:07:36]CommunicateWithHost err = 0 [16:07:36]CheckOFDResponse [16:07:36]1017 (14) - 77093643461234 [16:07:36]1041 (16) - 0000000000963346 [16:07:36]1040 (4) - 70311 [16:07:36]1012 (4) - 22.10.2024 09:59 [16:07:36]1206 (1) - 0 [16:07:36]OFD Sender: Remove packet 70311 [16:07:36]ProducePacketName [16:07:36]name=ofd_packets/00070311 [16:07:36]NVStorageDeleteData [16:07:36]Write to MH i2c: 01 00 00 45 03 48 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 27 0D 83 [16:07:36]RasterBufferAndPrint [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]written 0, free lines is 3380 [16:07:36]MH_Cut [16:07:36]Write to MH i2c: D1 01 00 4C 03 01 21 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 01 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 01 00 4C 03 00 20 [16:07:36]Write to MH i2c: 01 00 00 4D 03 50 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:37]OFD Sender: No OFD packet to send [16:07:37]*** Cut start [16:07:37]*** Partial cut [16:07:37]*** CUTSNS_PIN = 1 [16:07:37]*** CUTSNS_PIN = 0 [16:07:37]*** Brake cut motor [16:07:38]Read from MH i2c: 01 [16:07:38]MH_I2C_Read... [16:07:38]*** Stop cut motor [16:07:38]*** Cut end [16:07:38]Read from MH i2c: 01 07 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [16:07:38]process_action close_receipt done [16:07:38]requested_data is exist [16:07:38]produce_requested_data [16:07:38]requested_item fm.sn is exist - process it [16:07:38]wFMCommunicate request_size=4 [16:07:38]MH_SAM_APDU [16:07:38]CAPDU: 80 11 00 00 [16:07:38]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:38]Read from MH i2c: E2 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 17 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [16:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:07:38]wFMCommunicate OK [16:07:38]requested_item fd.num is exist - process it [16:07:38]SAM_PROTO_GetFieldsCounters [16:07:38]wFMCommunicate request_size=4 [16:07:38]MH_SAM_APDU [16:07:38]CAPDU: 80 13 00 00 [16:07:38]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:38]Read from MH i2c: E2 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 62 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 62 00 4F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 12 01 00 0E 04 04 00 C3 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 72 [16: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 12 01 00 0E 04 04 00 C3 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:07:38]wFMCommunicate OK [16:07:38]SAM_PROTO_GetFieldsCounters done [16:07:38]requested_item shift.num is exist - process it [16:07:38]requested_item shift.opened is exist - process it [16:07:38]req_shift_opened [16:07:38]FM_GetShiftState [16:07:38]SAM_PROTO_GetShiftState [16:07:38]wFMCommunicate request_size=4 [16:07:38]MH_SAM_APDU [16:07:38]CAPDU: 80 13 01 00 [16:07:38]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:38]Read from MH i2c: E2 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 0E 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BE [16:07:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:07:38]wFMCommunicate OK [16:07:38]SAM_PROTO_GetShiftState done [16:07:38]FM_GetShiftState done [16:07:38]req_shift_opened done [16:07:38]requested_item shift.open_date is exist - process it [16:07:38]req_shift_open_date [16:07:38]req_shift_open_date done [16:07:38]produce_requested_data done [16:07:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70311,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:07:38]process_action_free close_receipt [16:07:38]json_value_free [16:07:38]json_value_free done [16:07:38]process_json_proto returns [16:07:38]Send response to host [16:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70311,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:07:38]free response buf [16:07:38]execute_script done [16:07:38]execute_script returns [16:07:38]free content buf [16:07:38]Sock 7.Close socket [16:07:38]Sock 7.Thread stoped [16:07:42]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [16:08:03]New connection [16:08:03]New thread 3066555748 created [16:08:03]Thread 3066699108 joined [16:08:03]Waiting for new connection... [16:08:03] Sock 9.Parse request [16:08:03]Sock 9.Check first char [16:08:03]Sock 9.First char is OK [16:08:03]request: POST /json_proto HTTP/1.0 [16:08:03]Method: POST [16:08:03]URL: /json_proto [16:08:03]Method is POST - this is cgi request [16:08:03]url: /json_proto [16:08:03]query_string will be loaded in cgi processing [16:08:03]execute_cgi json_proto POST (null) [16:08:03]execute_cgi path=json_proto method=POST [16:08:03]POST find Content-Length [16:08:03]Host: 172.17.50.3:8080 [16:08:03]Content-Length: 678 [16:08:03]Content-Type: application/json [16:08:03] [16:08:03]POST finish read [16:08:03]Found Content-Length = 678 [16:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [16:08:03]execute_script... [16: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 : (1)2886079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [16:08:03]POST & json_proto [16:08:03]process_json_proto [16:08:03]json parsed OK: [16:08:03]protocol is kg_v1.0 [16:08:03]action value=close_receipt [16:08:03]process_action close_receipt [16:08:03]cmd_close_receipt [16:08:03]MH_GetDate [16:08:03]Write to MH i2c: F0 00 00 51 03 43 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: F0 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: F0 09 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: F0 09 00 51 03 00 E3 CD 17 67 6B 98 1E 66 01 [16:08:03]GetLastDocTimeStamp 1729613254 [16:08:03]current date 1729613283 [16:08:03]FM_GetShiftState [16:08:03]SAM_PROTO_GetShiftState [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 13 01 00 [16:08:03]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C0 [16:08:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_GetShiftState done [16:08:03]FM_GetShiftState done [16:08:03]opened in 1729555832 [16:08:03]opened+sec_in_day 1729642232 [16:08:03]quantity*price = 50010 [16:08:03]sum+1 = 50012 [16:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 260 22.10.2024 16:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70312 ФПД: 190405647750509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70312&fm=190405647750509&tin=02508201610067®Number=0000000000156251&sum=50000 [16:08:04]StoreToDocumentArchive [16:08:04]shift 195 fd 70312 [16:08:04]save to /storage/0195/doc_00070312 [16:08:04]save last doc name /storage/0195/doc_00070312 to /storage/kkm_last_doc_name [16:08:04]save OK [16:08:04]Clear old archive folders... [16:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:04]tlvbuf is 00AC27C0 [16:08:04]SAM_PROTO_ClearQueue [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 09 00 00 [16:08:04]Write to MH i2c: E2 08 00 5F 03 80 09 00 00 00 00 00 00 D4 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_ClearQueue done [16:08:04]KKMCreateOFDPacket [16:08:04]OFDProtocolAddRootSTLVToBuf [16:08:04]FM_MakeSignedData [16:08:04]FM_MakeSignedData [16:08:04]SAM_PROTO_SignData [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 01 02 [16:08:04]Write to MH i2c: E2 08 00 60 03 80 0D 01 02 00 00 00 00 DC [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=255 [16:08:04]MH_SAM_APDU [16:08: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 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 04 01 00 00 F4 03 04 00 E3 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 12 01 00 35 04 06 00 AD [16:08:04]Write to MH i2c: E2 02 01 61 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 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 04 01 00 00 F4 03 04 00 E3 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 12 01 00 35 04 06 00 AD 00 00 9B [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=10 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 02 02 05 2C 44 FF 55 6D [16:08:04]Write to MH i2c: E2 0D 00 62 03 80 0D 02 02 05 00 2C 44 FF 55 6D 00 00 1A [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 03 02 [16:08:04]Write to MH i2c: E2 08 00 63 03 80 0D 03 02 00 00 00 00 E1 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0B 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0B 00 63 03 00 A9 B6 94 F3 A9 FF D3 38 90 00 7B [16:08:04]RAPDU: A9 B6 94 F3 A9 FF D3 38 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_SignData done [16:08:04]FM_MakeSignedData done [16:08:04]CreateOFDProtocolMessage [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 11 00 00 [16:08:04]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [16:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:04]wFMCommunicate OK [16:08:04]CreateOFDProtocolMessage done [16:08:04]OFDSenderStorePacket 70312 [16:08:04]StoreOFDPacket docnum=70312 [16:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F B8 07 01 80 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 E3 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 12 01 00 35 04 06 00 AD 2C 44 FF 55 6D A9 B6 94 F3 A9 FF D3 38 [16:08:04]CheckFolder [16:08:04]dirname=/storage/ofd_packets [16:08:04]CheckFolder done [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00070312 [16:08:04]NVStorageSaveData ofd_packets/00070312 [16:08:04]File name is /storage/ofd_packets/00070312 [16:08:04]Write 301 bytes [16:08:04]NVStorageSaveData done [16:08:04]OFDSenderStorePacket done [16:08:04]KKMCreateOFDPacket done [16:08:04]NVStorageSaveData kkm_last_timestamp [16:08:04]File name is /storage/kkm_last_timestamp [16:08:04]Write 4 bytes [16:08:04]NVStorageSaveData done [16:08:04]ExternCall_PrintAddStr [16:08:04]wPrintStart [16:08:04]Write to MH i2c: 01 00 00 65 03 68 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 [16:08:04]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [16:08:05]RasterBufferAndPrint [16:08:05]line Счет N : (1)2886079 [16:08:05]line ИНН: 02508201610067 [16:08:05]line Контрольно-Кассовый Чек [16:08:05]line ПРОДАЖА [16:08:05]line ТРК (МРК, ГНК) : 13 [16:08:05]line Товар: 2710124500 [16:08:05]line Аи-95-К-5 [16:08:05]line 6.740 * 74.20 [16:08:05]line = 500.11 [16:08:05]line НДС 12% НСП 1% [16:08:05]line > о реализуемом товаре [16:08:05]line ОКРУГЛЕНИЕ: -0.11 [16:08:05]line ИТОГО: 500.00 [16:08:05]line Внесено: 500.00 [16:08:05]line СДАЧА: 0.00 [16:08:05]line НСП 1% : 4.43 [16:08:05]line НДС 12% : 53.11 [16:08:05]line Наличными: 500.00 [16:08:05]line Безнал.: 0.00 [16:08:05]line Место: АЗС № 85 "Партнер Нефть" [16:08:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:08:05]line СНО: Общий режим [16:08:05]line Чек 260 22.10.2024 16:08 [16:08:05]line Смена: 195 ФФД: 1.0 [16:08:05]line ЗНМ: 0300000167 [16:08:05]line РНМ: 0000000000156251 [16:08:05]line Версия ККМ: v1.0 [16:08:05]line ФМ: 0000000000963346 [16:08:05]line ФД: 70312 [16:08:05]line ФПД: 190405647750509 [16:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70312&fm=190405647750509&tin=02508201610067®Number=0000000000156251&sum=50000 [16:08:05]OFD Sender: Processing packet 70312 [packets to send 18, broken 17] [16:08:05]ProducePacketName [16:08:05]name=ofd_packets/00070312 [16:08:05]OFD Sender: To server: pG, [16:08:05]CommunicateWithHost lk.salyk.kg:30040 [16:08:05]ConnectInit lk.salyk.kg [16:08:05]written 0, free lines is 4095 [16:08:05]Connected sock=10 [16:08: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 34 36 0F 01 00 00 7F B8 07 01 80 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 E3 CD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 12 01 00 35 04 06 00 AD 2C 44 FF 55 6D A9 B6 94 F3 A9 FF D3 38 [16: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 34 36 4F 00 00 00 32 A3 47 00 23 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 34 36 10 04 04 00 A8 12 01 00 F4 03 04 00 83 77 17 67 B6 04 01 00 00 C6 35 D3 67 A6 B4 AB 3A [16:08:05]CommunicateWithHost err = 0 [16:08:05]CheckOFDResponse [16:08:05]1017 (14) - 77093643461234 [16:08:05]1041 (16) - 0000000000963346 [16:08:05]1040 (4) - 70312 [16:08:05]1012 (4) - 22.10.2024 09:59 [16:08:05]1206 (1) - 0 [16:08:05]OFD Sender: Remove packet 70312 [16:08:05]ProducePacketName [16:08:05]name=ofd_packets/00070312 [16:08:05]NVStorageDeleteData [16:08:05]Write to MH i2c: 01 00 00 90 03 93 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 F3 0C 99 [16:08:05]RasterBufferAndPrint [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]written 0, free lines is 3321 [16:08:05]MH_Cut [16:08:05]Write to MH i2c: D1 01 00 97 03 01 6C [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 01 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 01 00 97 03 00 6B [16:08:05]Write to MH i2c: 01 00 00 98 03 9B [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:06]OFD Sender: No OFD packet to send [16:08:06]*** Cut start [16:08:06]*** Partial cut [16:08:06]*** CUTSNS_PIN = 1 [16:08:06]*** CUTSNS_PIN = 0 [16:08:06]*** Brake cut motor [16:08:07]Read from MH i2c: 01 [16:08:07]MH_I2C_Read... [16:08:07]*** Stop cut motor [16:08:07]*** Cut end [16:08:07]Read from MH i2c: 01 07 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [16:08:07]process_action close_receipt done [16:08:07]requested_data is exist [16:08:07]produce_requested_data [16:08:07]requested_item fm.sn is exist - process it [16:08:07]wFMCommunicate request_size=4 [16:08:07]MH_SAM_APDU [16:08:07]CAPDU: 80 11 00 00 [16:08:07]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:07]Read from MH i2c: E2 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 17 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [16:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:07]wFMCommunicate OK [16:08:07]requested_item fd.num is exist - process it [16:08:07]SAM_PROTO_GetFieldsCounters [16:08:07]wFMCommunicate request_size=4 [16:08:07]MH_SAM_APDU [16:08:07]CAPDU: 80 13 00 00 [16:08:07]Write to MH i2c: E2 08 00 9A 03 80 13 00 00 00 00 00 00 19 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:07]Read from MH i2c: E2 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 62 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 62 00 9A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 12 01 00 0E 04 04 00 C3 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 C1 [16:08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 12 01 00 0E 04 04 00 C3 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:08:07]wFMCommunicate OK [16:08:07]SAM_PROTO_GetFieldsCounters done [16:08:07]requested_item shift.num is exist - process it [16:08:07]requested_item shift.opened is exist - process it [16:08:07]req_shift_opened [16:08:07]FM_GetShiftState [16:08:07]SAM_PROTO_GetShiftState [16:08:07]wFMCommunicate request_size=4 [16:08:07]MH_SAM_APDU [16:08:07]CAPDU: 80 13 01 00 [16:08:07]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:07]Read from MH i2c: E2 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 0E 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 09 [16:08:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:08:07]wFMCommunicate OK [16:08:07]SAM_PROTO_GetShiftState done [16:08:07]FM_GetShiftState done [16:08:07]req_shift_opened done [16:08:07]requested_item shift.open_date is exist - process it [16:08:07]req_shift_open_date [16:08:07]req_shift_open_date done [16:08:07]produce_requested_data done [16:08:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70312,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:08:07]process_action_free close_receipt [16:08:07]json_value_free [16:08:07]json_value_free done [16:08:07]process_json_proto returns [16:08:07]Send response to host [16:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70312,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:08:07]free response buf [16:08:07]execute_script done [16:08:07]execute_script returns [16:08:07]free content buf [16:08:07]Sock 9.Close socket [16:08:07]Sock 9.Thread stoped [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:56:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 03 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [16:56:31]RAPDU: 90 00 [16:56:31]wFMCommunicate OK [16:56:31]wFMCommunicate request_size=25 [16:56:31]MH_SAM_APDU [16:56:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [16:56:31]Write to MH i2c: E2 1C 00 4E 08 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 33 [16:56:31]OFD Sender: No OFD packet to send [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 03 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [16:56:31]RAPDU: 90 00 [16:56:31]wFMCommunicate OK [16:56:31]wFMCommunicate request_size=4 [16:56:31]MH_SAM_APDU [16:56:31]CAPDU: 80 15 03 00 [16:56:31]Write to MH i2c: E2 08 00 4F 08 80 15 03 00 00 00 00 00 D8 [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [16:56:31]Read from MH i2c: E2 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 40 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: E2 40 00 4F 08 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 15 01 00 00 35 04 06 00 1E 33 4A BA CA 49 90 00 DA [16:56:31]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 15 01 00 00 35 04 06 00 1E 33 4A BA CA 49 90 00 [16:56:31]wFMCommunicate OK [16:56:31]SAM_PROTO_ProcessDocument answer len = 59 [16:56:31]SAM_PROTO_ProcessDocument done [16:56:31]SetTLVBufToDocument [16:56:31]Processing tag 1209 (04B9) [16:56:31]Malloc new data [16:56:31]Processing tag 1041 (0411) [16:56:31]Processing tag 1040 (0410) [16:56:31]Malloc new data [16:56:31]Processing tag 1038 (040E) [16:56:32]Malloc new data [16:56:32]Processing tag 1042 (0412) [16:56:32]Malloc new data [16:56:32]Processing tag 1077 (0435) [16:56:32]Malloc new data [16:56:32]SetTLVBufToDocument err=0 [16:56:32]KKMLoadAndSignReceiptData store KKM data [16:56:32]KKMLoadAndSignReceiptData err=0 [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 11 00 00 [16:56:32]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 17 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [16:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:32]wFMCommunicate OK [16:56:32]Счет N : (1)2886099 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-5 29.900 * 66.90 = 2000.31 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 277 22.10.2024 16:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70329 ФПД: 33205645920841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70329&fm=33205645920841&tin=02508201610067®Number=0000000000156251&sum=200000 [16:56:32]StoreToDocumentArchive [16:56:32]shift 195 fd 70329 [16:56:32]save to /storage/0195/doc_00070329 [16:56:32]save last doc name /storage/0195/doc_00070329 to /storage/kkm_last_doc_name [16:56:32]save OK [16:56:32]Clear old archive folders... [16:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:32]tlvbuf is 00CC96D0 [16:56:32]SAM_PROTO_ClearQueue [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 09 00 00 [16:56:32]Write to MH i2c: E2 08 00 51 08 80 09 00 00 00 00 00 00 CB [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 03 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [16:56:32]RAPDU: 90 00 [16:56:32]wFMCommunicate OK [16:56:32]SAM_PROTO_ClearQueue done [16:56:32]KKMCreateOFDPacket [16:56:32]OFDProtocolAddRootSTLVToBuf [16:56:32]FM_MakeSignedData [16:56:32]FM_MakeSignedData [16:56:32]SAM_PROTO_SignData [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 0D 01 02 [16:56:32]Write to MH i2c: E2 08 00 52 08 80 0D 01 02 00 00 00 00 D3 [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 03 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [16:56:32]RAPDU: 90 00 [16:56:32]wFMCommunicate OK [16:56:32]wFMCommunicate request_size=255 [16:56:32]MH_SAM_APDU [16:56: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 3E D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 35 04 06 00 1E [16:56:32]Write to MH i2c: E2 02 01 53 08 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 3E D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 35 04 06 00 1E 00 00 F6 [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:33]Read from MH i2c: E2 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 03 00 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [16:56:33]RAPDU: 90 00 [16:56:33]wFMCommunicate OK [16:56:33]wFMCommunicate request_size=10 [16:56:33]MH_SAM_APDU [16:56:33]CAPDU: 80 0D 02 02 05 33 4A BA CA 49 [16:56:33]Write to MH i2c: E2 0D 00 54 08 80 0D 02 02 05 00 33 4A BA CA 49 00 00 2A [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:33]Read from MH i2c: E2 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 03 00 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [16:56:33]RAPDU: 90 00 [16:56:33]wFMCommunicate OK [16:56:33]wFMCommunicate request_size=4 [16:56:33]MH_SAM_APDU [16:56:33]CAPDU: 80 0D 03 02 [16:56:33]Write to MH i2c: E2 08 00 55 08 80 0D 03 02 00 00 00 00 D8 [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:33]Read from MH i2c: E2 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 0B 00 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 0B 00 55 08 00 69 F0 16 DF AE 94 8B 50 90 00 44 [16:56:33]RAPDU: 69 F0 16 DF AE 94 8B 50 90 00 [16:56:33]wFMCommunicate OK [16:56:33]SAM_PROTO_SignData done [16:56:33]FM_MakeSignedData done [16:56:33]CreateOFDProtocolMessage [16:56:33]wFMCommunicate request_size=4 [16:56:33]MH_SAM_APDU [16:56:33]CAPDU: 80 11 00 00 [16:56:33]Write to MH i2c: E2 08 00 56 08 80 11 00 00 00 00 00 00 D8 [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 17 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 17 00 56 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [16:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:34]wFMCommunicate OK [16:56:34]CreateOFDProtocolMessage done [16:56:34]OFDSenderStorePacket 70329 [16:56:34]StoreOFDPacket docnum=70329 [16:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 38 33 07 01 26 07 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 3E D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 35 04 06 00 1E 33 4A BA CA 49 69 F0 16 DF AE 94 8B 50 [16:56:34]CheckFolder [16:56:34]dirname=/storage/ofd_packets [16:56:34]CheckFolder done [16:56:34]ProducePacketName [16:56:34]name=ofd_packets/00070329 [16:56:34]NVStorageSaveData ofd_packets/00070329 [16:56:34]File name is /storage/ofd_packets/00070329 [16:56:34]Write 301 bytes [16:56:34]NVStorageSaveData done [16:56:34]OFDSenderStorePacket done [16:56:34]KKMCreateOFDPacket done [16:56:34]NVStorageSaveData kkm_last_timestamp [16:56:34]File name is /storage/kkm_last_timestamp [16:56:34]Write 4 bytes [16:56:34]NVStorageSaveData done [16:56:34]ExternCall_PrintAddStr [16:56:34]wPrintStart [16:56:34]Write to MH i2c: 01 00 00 57 08 5F [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 07 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 FF 0F 74 [16:56:34]RasterBufferAndPrint [16:56:34]line Счет N : (1)2886099 [16:56:34]line ИНН: 02508201610067 [16:56:34]line Контрольно-Кассовый Чек [16:56:34]line ПРОДАЖА [16:56:34]line ТРК (МРК, ГНК) : 12 [16:56:34]line Товар: 2710124130 [16:56:34]line Аи-92-К-5 [16:56:34]line 29.900 * 66.90 [16:56:34]line = 2000.31 [16:56:34]line НДС 12% НСП 1% [16:56:34]line > о реализуемом товаре [16:56:34]line ОКРУГЛЕНИЕ: -0.31 [16:56:34]line ИТОГО: 2000.00 [16:56:34]line Внесено: 2000.00 [16:56:34]line СДАЧА: 0.00 [16:56:34]line НСП 1% : 17.70 [16:56:34]line НДС 12% : 212.42 [16:56:34]line Наличными: 2000.00 [16:56:34]line Безнал.: 0.00 [16:56:34]line Место: АЗС № 85 "Партнер Нефть" [16:56:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:56:34]line СНО: Общий режим [16:56:34]line Чек 277 22.10.2024 16:56 [16:56:34]line Смена: 195 ФФД: 1.0 [16:56:34]line ЗНМ: 0300000167 [16:56:34]line РНМ: 0000000000156251 [16:56:34]line Версия ККМ: v1.0 [16:56:34]line ФМ: 0000000000963346 [16:56:34]line ФД: 70329 [16:56:34]line ФПД: 33205645920841 [16:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70329&fm=33205645920841&tin=02508201610067®Number=0000000000156251&sum=200000 [16:56:34]OFD Sender: Processing packet 70329 [packets to send 18, broken 17] [16:56:34]ProducePacketName [16:56:34]name=ofd_packets/00070329 [16:56:34]OFD Sender: To server: pG, [16:56:34]CommunicateWithHost lk.salyk.kg:30040 [16:56:34]ConnectInit lk.salyk.kg [16:56:34]written 0, free lines is 4095 [16:56:34]Connected sock=11 [16:56: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 34 36 0F 01 00 00 38 33 07 01 26 07 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 3E D9 17 67 0E 04 04 00 C3 00 00 Write to MH i2c: 00 01 B9 00 04 00 01 82 00 08 01 8A 0D [16:56:35]04 Write i2c OK [16:56:35]10 MH_I2C_Read... [16:56:35]00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 35 04 06 00 1E 33 4A BA CA 49 69 F0 16 DF AE 94 8B 50 [16:56:35]Read from MH i2c: 01 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: 01 07 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 4B 0E EA [16:56:35]RasterBufferAndPrint [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]written 0, free lines is 4054 [16:56:35]MH_Cut [16:56:35]Write to MH i2c: D1 01 00 89 08 01 63 [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 01 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 01 00 89 08 00 62 [16:56:35]Write to MH i2c: 01 00 00 8A 08 92 [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56: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 34 36 4F 00 00 00 43 1B 47 00 77 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 *** Cut start [16:56:35]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 12 01 00 F4 03 04 00 E1 82 17 67 B6 04 01 00 00 69 B7 DB D3 BC 43 93 16 [16:56:35]*** Partial cut [16:56:35]CommunicateWithHost err = 0 [16:56:35]CheckOFDResponse [16:56:35]1017 (14) - 77093643461234 [16:56:35]1041 (16) - 0000000000963346 [16:56:35]1040 (4) - 70329 [16:56:35]1012 (4) - 22.10.2024 10:48 [16:56:35]1206 (1) - 0 [16:56:35]OFD Sender: Remove packet 70329 [16:56:35]ProducePacketName [16:56:35]*** CUTSNS_PIN = 1 [16:56:35]name=ofd_packets/00070329 [16:56:35]NVStorageDeleteData [16:56:35]*** CUTSNS_PIN = 0 [16:56:35]*** Brake cut motor [16:56:36]Read from MH i2c: *** Stop cut motor [16:56:36]01 *** Cut end [16:56:36] [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: 01 07 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [16:56:36]process_action close_receipt done [16:56:36]requested_data is exist [16:56:36]produce_requested_data [16:56:36]requested_item fm.sn is exist - process it [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 11 00 00 [16:56:36]Write to MH i2c: E2 08 00 8B 08 80 11 00 00 00 00 00 00 0D [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]OFD Sender: No OFD packet to send [16:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 17 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 17 00 8B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [16:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:36]wFMCommunicate OK [16:56:36]requested_item fd.num is exist - process it [16:56:36]SAM_PROTO_GetFieldsCounters [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 13 00 00 [16:56:36]Write to MH i2c: E2 08 00 8C 08 80 13 00 00 00 00 00 00 10 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 62 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 62 00 8C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 12 01 00 0E 04 04 00 C3 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 FC [16:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 12 01 00 0E 04 04 00 C3 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 [16:56:36]wFMCommunicate OK [16:56:36]SAM_PROTO_GetFieldsCounters done [16:56:36]requested_item shift.num is exist - process it [16:56:36]requested_item shift.opened is exist - process it [16:56:36]req_shift_opened [16:56:36]FM_GetShiftState [16:56:36]SAM_PROTO_GetShiftState [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 13 01 00 [16:56:36]Write to MH i2c: E2 08 00 8D 08 80 13 01 00 00 00 00 00 12 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:37]Read from MH i2c: E2 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 0E 00 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 0E 00 8D 08 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 00 [16:56:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:56:37]wFMCommunicate OK [16:56:37]SAM_PROTO_GetShiftState done [16:56:37]FM_GetShiftState done [16:56:37]req_shift_opened done [16:56:37]requested_item shift.open_date is exist - process it [16:56:37]req_shift_open_date [16:56:37]req_shift_open_date done [16:56:37]produce_requested_data done [16:56:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70329,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:56:37]process_action_free close_receipt [16:56:37]json_value_free [16:56:37]json_value_free done [16:56:37]process_json_proto returns [16:56:37]Send response to host [16:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70329,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:56:37]free response buf [16:56:37]execute_script done [16:56:37]execute_script returns [16:56:37]free content buf [16:56:37]Sock 9.Close socket [16:56:37]Sock 9.Thread stoped [16:56:41]OFD Sender: No OFD packet to send [16:56:43]accept exits with 10 [16:56:43]New connection [16:56:43]New thread 3066555748 created [16:56:43]Thread 3066699108 joined [16:56:43]Waiting for new connection... [16:56:43] Sock 10.Parse request [16:56:43]Sock 10.Check first char [16:56:43]Sock 10.First char is OK [16:56:43]request: POST /json_proto HTTP/1.0 [16:56:43]Method: POST [16:56:43]URL: /json_proto [16:56:43]Method is POST - this is cgi request [16:56:43]url: /json_proto [16:56:43]query_string will be loaded in cgi processing [16:56:43]execute_cgi json_proto POST (null) [16:56:43]execute_cgi path=json_proto method=POST [16:56:43]POST find Content-Length [16:56:43]Host: 172.17.50.3:8080 [16:56:43]Content-Length: 682 [16:56:43]Content-Type: application/json [16:56:43] [16:56:43]POST finish read [16:56:43]Found Content-Length = 682 [16:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:56:43]execute_script... [16:56: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)2886100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:56:43]POST & json_proto [16:56:43]process_json_proto [16:56:43]json parsed OK: [16:56:43]protocol is kg_v1.0 [16:56:43]action value=close_receipt [16:56:43]process_action close_receipt [16:56:43]cmd_close_receipt [16:56:43]MH_GetDate [16:56:43]Write to MH i2c: F0 00 00 8E 08 85 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 8E 08 00 4C D9 17 67 6B 98 1E 66 B8 [16:56:44]GetLastDocTimeStamp 1729616190 [16:56:44]current date 1729616204 [16:56:44]FM_GetShiftState [16:56:44]SAM_PROTO_GetShiftState [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 13 01 00 [16:56:44]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 02 [16:56:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetShiftState done [16:56:44]FM_GetShiftState done [16:56:44]opened in 1729555832 [16:56:44]opened+sec_in_day 1729642232 [16:56:44]quantity*price = 50025 [16:56:44]sum+1 = 50026 [16:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 278 22.10.2024 16:56 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70330 ФПД: 179494324464019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70330&fm=179494324464019&tin=02508201610067®Number=0000000000156251&sum=50000 [16:56:46]StoreToDocumentArchive [16:56:46]shift 195 fd 70330 [16:56:46]save to /storage/0195/doc_00070330 [16:56:46]save last doc name /storage/0195/doc_00070330 to /storage/kkm_last_doc_name [16:56:46]save OK [16:56:46]Clear old archive folders... [16:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:56:46]tlvbuf is 00CD38C0 [16:56:46]SAM_PROTO_ClearQueue [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 09 00 00 [16:56:46]Write to MH i2c: E2 08 00 9C 08 80 09 00 00 00 00 00 00 16 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [16:56:46]RAPDU: 90 00 [16:56:46]wFMCommunicate OK [16:56:46]SAM_PROTO_ClearQueue done [16:56:46]KKMCreateOFDPacket [16:56:46]OFDProtocolAddRootSTLVToBuf [16:56:46]FM_MakeSignedData [16:56:46]FM_MakeSignedData [16:56:46]SAM_PROTO_SignData [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 0D 01 02 [16:56:47]Write to MH i2c: E2 08 00 9D 08 80 0D 01 02 00 00 00 00 1E [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=255 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 16 01 00 00 F4 03 04 00 4C D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 12 01 00 35 04 06 00 A3 3F [16:56:47]Write to MH i2c: E2 02 01 9E 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 16 01 00 00 F4 03 04 00 4C D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 12 01 00 35 04 06 00 A3 3F 00 00 8D [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 03 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [16:56:48]RAPDU: 90 00 [16:56:48]wFMCommunicate OK [16:56:48]wFMCommunicate request_size=9 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 0D 02 02 04 C7 72 E9 93 [16:56:48]Write to MH i2c: E2 0C 00 9F 08 80 0D 02 02 04 00 C7 72 E9 93 00 00 DE [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 03 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [16:56:48]RAPDU: 90 00 [16:56:48]wFMCommunicate OK [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 0D 03 02 [16:56:48]Write to MH i2c: E2 08 00 A0 08 80 0D 03 02 00 00 00 00 23 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 0B 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 0B 00 A0 08 00 DB 9B 25 18 30 C5 35 FE 90 00 FF [16:56:48]RAPDU: DB 9B 25 18 30 C5 35 FE 90 00 [16:56:48]wFMCommunicate OK [16:56:48]SAM_PROTO_SignData done [16:56:48]FM_MakeSignedData done [16:56:48]CreateOFDProtocolMessage [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 11 00 00 [16:56:48]Write to MH i2c: E2 08 00 A1 08 80 11 00 00 00 00 00 00 23 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 17 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 17 00 A1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [16:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:48]wFMCommunicate OK [16:56:48]CreateOFDProtocolMessage done [16:56:48]OFDSenderStorePacket 70330 [16:56:48]StoreOFDPacket docnum=70330 [16:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6C 95 06 01 E3 3B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 16 01 00 00 F4 03 04 00 4C D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 12 01 00 35 04 06 00 A3 3F C7 72 E9 93 DB 9B 25 18 30 C5 35 FE [16:56:48]CheckFolder [16:56:48]dirname=/storage/ofd_packets [16:56:48]CheckFolder done [16:56:48]ProducePacketName [16:56:48]name=ofd_packets/00070330 [16:56:48]NVStorageSaveData ofd_packets/00070330 [16:56:48]File name is /storage/ofd_packets/00070330 [16:56:48]Write 300 bytes [16:56:48]NVStorageSaveData done [16:56:48]OFDSenderStorePacket done [16:56:48]KKMCreateOFDPacket done [16:56:48]NVStorageSaveData kkm_last_timestamp [16:56:48]File name is /storage/kkm_last_timestamp [16:56:48]Write 4 bytes [16:56:48]NVStorageSaveData done [16:56:48]ExternCall_PrintAddStr [16:56:48]wPrintStart [16:56:48]Write to MH i2c: 01 00 00 A2 08 AA [16:56:48]OFD Sender: Processing packet 70330 [packets to send 18, broken 17] [16:56:48]ProducePacketName [16:56:48]name=ofd_packets/00070330 [16:56:48]OFD Sender: To server: pG, [16:56:48]CommunicateWithHost lk.salyk.kg:30040 [16:56:48]Write i2c OK [16:56:48]ConnectInit lk.salyk.kg [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 07 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 07 00 A2 08 00 00 00 00 00 FF 0F BF [16:56:49]RasterBufferAndPrint [16:56:49]line Счет N : (1)2886100 [16:56:49]line ИНН: 02508201610067 [16:56:49]line Контрольно-Кассовый Чек [16:56:49]line ПРОДАЖА [16:56:49]line ТРК (МРК, ГНК) : 71 [16:56:49]line Товар: 2711129700 [16:56:49]line ГАЗ-К-3 [16:56:49]line 12.860 * 38.90 [16:56:49]line = 500.25 [16:56:49]line НДС 12% НСП 1% [16:56:49]line > о реализуемом товаре [16:56:49]line ОКРУГЛЕНИЕ: -0.25 [16:56:49]line ИТОГО: 500.00 [16:56:49]line Внесено: 500.00 [16:56:49]line СДАЧА: 0.00 [16:56:49]line НСП 1% : 4.43 [16:56:49]line НДС 12% : 53.12 [16:56:49]line Наличными: 500.00 [16:56:49]line Безнал.: 0.00 [16:56:49]line Место: АЗС № 85 "Партнер Нефть" [16:56:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:56:49]Connected sock=11 [16:56:49]line СНО: Общий режим [16:56:49]Data to sent: line Чек 278 22.10.2024 16:56 [16:56:49]87 line Смена: 195 ФФД: 1.0 [16:56:49]95 line ЗНМ: 0300000167 [16:56:49]F6 line РНМ: 0000000000156251 [16:56:49]70 line Версия ККМ: v1.0 [16:56:49]47 line ФМ: 0000000000963346 [16:56:49]line ФД: 70330 [16:56:49]line ФПД: 179494324464019 [16:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70330&fm=179494324464019&tin=02508201610067®Number=0000000000156251&sum=50000 [16:56:49]2C 01 written 0, free lines is 4095 [16:56:49]00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6C 95 06 01 E3 3B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 16 01 00 00 F4 03 Write to MH i2c: 04 01 00 00 4C 00 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 CD 33 08 33 D5 34 [16:56:49]36 10 04 04 00 BA 12 01 Write i2c OK [16:56:49]00 MH_I2C_Read... [16:56:49]35 04 06 00 A3 3F C7 Read from MH i2c: 72 01 E9 [16:56:49]93 DB 9B 25 18 30 MH_I2C_Read... [16:56:49]C5 Read from MH i2c: 35 01 FE [16:56:49]07 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 35 0E 1F [16:56:49]RasterBufferAndPrint [16:56:49]line [16:56:49]line [16:56:49]line [16:56:49]line [16:56:49]line [16:56:49]written 0, free lines is 3816 [16:56:49]MH_Cut [16:56:49]Write to MH i2c: D1 01 00 D4 08 01 AE [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: D1 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: D1 01 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: D1 01 00 D4 08 00 AD [16:56:49]Write to MH i2c: 01 00 00 D5 08 DD [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56: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 34 36 4F 00 00 00 EB 0B 47 00 A8 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 34 36 10 04 04 00 BA 12 01 00 F4 03 04 00 F0 82 17 67 B6 04 01 00 00 17 *** Cut start [16:56:50]28 0F 7A C7 77 99 A2 [16:56:50]CommunicateWithHost err = 0 [16:56:50]CheckOFDResponse [16:56:50]1017 (14) - 77093643461234 [16:56:50]1041 (16) - 0000000000963346 [16:56:50]1040 (4) - 70330 [16:56:50]1012 (4) - 22.10.2024 10:48 [16:56:50]1206 (1) - 0 [16:56:50]OFD Sender: Remove packet 70330 [16:56:50]ProducePacketName [16:56:50]name=ofd_packets/00070330 [16:56:50]NVStorageDeleteData [16:56:50]*** Partial cut [16:56:50]*** CUTSNS_PIN = 1 [16:56:50]*** CUTSNS_PIN = 0 [16:56:50]*** Brake cut motor [16:56:50]OFD Sender: No OFD packet to send [16:56:50]Read from MH i2c: 01 [16:56:50]MH_I2C_Read... [16:56:50]*** Stop cut motor [16:56:50]*** Cut end [16:56:50]Read from MH i2c: 01 07 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [16:56:50]process_action close_receipt done [16:56:50]requested_data is exist [16:56:50]produce_requested_data [16:56:50]requested_item fm.sn is exist - process it [16:56:50]wFMCommunicate request_size=4 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 11 00 00 [16:56:50]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 17 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [16:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:51]wFMCommunicate OK [16:56:51]requested_item fd.num is exist - process it [16:56:51]SAM_PROTO_GetFieldsCounters [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 13 00 00 [16:56:51]Write to MH i2c: E2 08 00 D7 08 80 13 00 00 00 00 00 00 5B [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 62 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 62 00 D7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 12 01 00 0E 04 04 00 C3 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 4B [16:56: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 12 01 00 0E 04 04 00 C3 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 [16:56:51]wFMCommunicate OK [16:56:51]SAM_PROTO_GetFieldsCounters done [16:56:51]requested_item shift.num is exist - process it [16:56:51]requested_item shift.opened is exist - process it [16:56:51]req_shift_opened [16:56:51]FM_GetShiftState [16:56:51]SAM_PROTO_GetShiftState [16:56:51]wFMCommunicate request_size=4 [16:56:51]MH_SAM_APDU [16:56:51]CAPDU: 80 13 01 00 [16:56:51]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 0E 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4B [16:56:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:56:51]wFMCommunicate OK [16:56:51]SAM_PROTO_GetShiftState done [16:56:51]FM_GetShiftState done [16:56:51]req_shift_opened done [16:56:51]requested_item shift.open_date is exist - process it [16:56:51]req_shift_open_date [16:56:51]req_shift_open_date done [16:56:51]produce_requested_data done [16:56:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70330,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:56:51]process_action_free close_receipt [16:56:51]json_value_free [16:56:51]json_value_free done [16:56:51]process_json_proto returns [16:56:51]Send response to host [16:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70330,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:56:51]free response buf [16:56:51]execute_script done [16:56:51]execute_script returns [16:56:51]free content buf [16:56:51]Sock 10.Close socket [16:56:51]Sock 10.Thread stoped [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:01]accept exits with 9 [16:57:01]New connection [16:57:01]New thread 3066699108 created [16:57:01]Thread 3066555748 joined [16:57:01]Waiting for new connection... [16:57:01] Sock 9.Parse request [16:57:01]Sock 9.Check first char [16:57:01]Sock 9.First char is OK [16:57:01]request: POST /json_proto HTTP/1.0 [16:57:01]Method: POST [16:57:01]URL: /json_proto [16:57:01]Method is POST - this is cgi request [16:57:01]url: /json_proto [16:57:01]query_string will be loaded in cgi processing [16:57:01]execute_cgi json_proto POST (null) [16:57:01]execute_cgi path=json_proto method=POST [16:57:01]POST find Content-Length [16:57:01]Host: 172.17.50.3:8080 [16:57:01]Content-Length: 689 [16:57:01]Content-Type: application/json [16:57:01] [16:57:01]POST finish read [16:57:01]Found Content-Length = 689 [16:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [16:57:01]execute_script... [16:57: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)2886098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [16:57:01]POST & json_proto [16:57:01]process_json_proto [16:57:01]json parsed OK: [16:57:01]protocol is kg_v1.0 [16:57:01]action value=close_receipt [16:57:01]process_action close_receipt [16:57:01]cmd_close_receipt [16:57:01]MH_GetDate [16:57:01]Write to MH i2c: F0 00 00 D9 08 D0 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 09 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: F0 09 00 D9 08 00 5D D9 17 67 6B 98 1E 66 14 [16:57:01]GetLastDocTimeStamp 1729616204 [16:57:01]current date 1729616221 [16:57:01]FM_GetShiftState [16:57:01]SAM_PROTO_GetShiftState [16:57:01]wFMCommunicate request_size=4 [16:57:01]MH_SAM_APDU [16:57:01]CAPDU: 80 13 01 00 [16:57:01]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:01]Read from MH i2c: E2 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4D [16:57:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:57:01]wFMCommunicate OK [16:57:01]SAM_PROTO_GetShiftState done [16:57:01]FM_GetShiftState done [16:57:01]opened in 1729555832 [16:57:01]opened+sec_in_day 1729642232 [16:57:01]quantity*price = 160035 [16:57:01]sum+1 = 160037 [16:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 279 22.10.2024 16:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70331 ФПД: 112025498339871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70331&fm=112025498339871&tin=02508201610067®Number=0000000000156251&sum=160000 [16:57:04]StoreToDocumentArchive [16:57:04]shift 195 fd 70331 [16:57:04]save to /storage/0195/doc_00070331 [16:57:04]save last doc name /storage/0195/doc_00070331 to /storage/kkm_last_doc_name [16:57:04]save OK [16:57:04]Clear old archive folders... [16:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:57:04]tlvbuf is 00D100E0 [16:57:04]SAM_PROTO_ClearQueue [16:57:04]wFMCommunicate request_size=4 [16:57:04]MH_SAM_APDU [16:57:04]CAPDU: 80 09 00 00 [16:57:04]Write to MH i2c: E2 08 00 E7 08 80 09 00 00 00 00 00 00 61 [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:04]Read from MH i2c: E2 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: E2 03 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [16:57:04]RAPDU: 90 00 [16:57:04]wFMCommunicate OK [16:57:04]SAM_PROTO_ClearQueue done [16:57:04]KKMCreateOFDPacket [16:57:04]OFDProtocolAddRootSTLVToBuf [16:57:04]FM_MakeSignedData [16:57:04]FM_MakeSignedData [16:57:04]SAM_PROTO_SignData [16:57:04]wFMCommunicate request_size=4 [16:57:04]MH_SAM_APDU [16:57:04]CAPDU: 80 0D 01 02 [16:57:04]Write to MH i2c: E2 08 00 E8 08 80 0D 01 02 00 00 00 00 69 [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:04]Read from MH i2c: E2 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: E2 03 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [16:57:04]RAPDU: 90 00 [16:57:04]wFMCommunicate OK [16:57:04]wFMCommunicate request_size=255 [16:57:04]MH_SAM_APDU [16:57:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 17 01 00 00 F4 03 04 00 5D D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 12 01 [16:57:05]Write to MH i2c: E2 02 01 E9 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 17 01 00 00 F4 03 04 00 5D D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 12 01 00 00 75 [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:05]Read from MH i2c: E2 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 03 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [16:57:05]RAPDU: 90 00 [16:57:05]wFMCommunicate OK [16:57:05]wFMCommunicate request_size=16 [16:57:05]MH_SAM_APDU [16:57:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 E2 F8 08 CA 1F [16:57:05]Write to MH i2c: E2 13 00 EA 08 80 0D 02 02 0B 00 00 35 04 06 00 OFD Sender: No OFD packet to send [16:57:05]65 E2 F8 08 CA 1F 00 00 F1 [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:05]Read from MH i2c: E2 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: E2 03 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [16:57:06]RAPDU: 90 00 [16:57:06]wFMCommunicate OK [16:57:06]wFMCommunicate request_size=4 [16:57:06]MH_SAM_APDU [16:57:06]CAPDU: 80 0D 03 02 [16:57:06]Write to MH i2c: E2 08 00 EB 08 80 0D 03 02 00 00 00 00 6E [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:06]Read from MH i2c: E2 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 0B 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 0B 00 EB 08 00 1D 9A B1 A4 0B 2A 3A 04 90 00 EE [16:57:06]RAPDU: 1D 9A B1 A4 0B 2A 3A 04 90 00 [16:57:06]wFMCommunicate OK [16:57:06]SAM_PROTO_SignData done [16:57:06]FM_MakeSignedData done [16:57:06]CreateOFDProtocolMessage [16:57:06]wFMCommunicate request_size=4 [16:57:06]MH_SAM_APDU [16:57:06]CAPDU: 80 11 00 00 [16:57:06]Write to MH i2c: E2 08 00 EC 08 80 11 00 00 00 00 00 00 6E [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:06]Read from MH i2c: E2 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 17 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 17 00 EC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [16:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:06]wFMCommunicate OK [16:57:06]CreateOFDProtocolMessage done [16:57:06]OFDSenderStorePacket 70331 [16:57:06]StoreOFDPacket docnum=70331 [16:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 67 45 0D 01 A8 67 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 17 01 00 00 F4 03 04 00 5D D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 12 01 00 35 04 06 00 65 E2 F8 08 CA 1F 1D 9A B1 A4 0B 2A 3A 04 [16:57:06]CheckFolder [16:57:06]dirname=/storage/ofd_packets [16:57:06]CheckFolder done [16:57:06]ProducePacketName [16:57:06]name=ofd_packets/00070331 [16:57:06]NVStorageSaveData ofd_packets/00070331 [16:57:06]File name is /storage/ofd_packets/00070331 [16:57:06]Write 307 bytes [16:57:06]NVStorageSaveData done [16:57:06]OFDSenderStorePacket done [16:57:06]KKMCreateOFDPacket done [16:57:06]NVStorageSaveData kkm_last_timestamp [16:57:06]File name is /storage/kkm_last_timestamp [16:57:06]Write 4 bytes [16:57:06]NVStorageSaveData done [16:57:06]ExternCall_PrintAddStr [16:57:06]wPrintStart [16:57:06]Write to MH i2c: 01 00 00 ED 08 F5 [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 07 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 07 00 ED 08 00 OFD Sender: Processing packet 70331 [packets to send 18, broken 17] [16:57:06]00 ConnectInit Can't connect to host [16:57:06]00 00 00 FF ProducePacketName [16:57:06]0F name=ofd_packets/00070331 [16:57:06]0A OFD Sender: To server: pG, [16:57:06] [16:57:06]CommunicateWithHost lk.salyk.kg:30040 [16:57:06]RasterBufferAndPrint [16:57:06]ConnectInit lk.salyk.kg [16:57:06]line Счет N : (1)2886098 [16:57:06]line ИНН: 02508201610067 [16:57:06]line Контрольно-Кассовый Чек [16:57:06]line ПРОДАЖА [16:57:06]line ТРК (МРК, ГНК) : 31 [16:57:06]line Товар: 2710194240 [16:57:06]line D-ENERGY Дт-К-2 [16:57:06]line 20.730 * 77.20 [16:57:06]line = 1600.36 [16:57:06]line НДС 12% НСП 1% [16:57:06]line > о реализуемом товаре [16:57:06]line ОКРУГЛЕНИЕ: -0.36 [16:57:06]line ИТОГО: 1600.00 [16:57:06]line Внесено: 1600.00 [16:57:06]line СДАЧА: 0.00 [16:57:06]line НСП 1% : 14.16 [16:57:06]line НДС 12% : 169.95 [16:57:06]line Наличными: 1600.00 [16:57:06]line Безнал.: 0.00 [16:57:06]line Место: АЗС № 85 "Партнер Нефть" [16:57:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:57:06]line СНО: Общий режим [16:57:06]line Чек 279 22.10.2024 16:57 [16:57:06]line Смена: 195 ФФД: 1.0 [16:57:06]line ЗНМ: 0300000167 [16:57:06]line РНМ: 0000000000156251 [16:57:06]line Версия ККМ: v1.0 [16:57:06]line ФМ: 0000000000963346 [16:57:06]line ФД: 70331 [16:57:06]line ФПД: 112025498339871 [16:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70331&fm=112025498339871&tin=02508201610067®Number=0000000000156251&sum=160000 [16:57:06]written 0, free lines is 4095 [16:57:06]Connected sock=7 [16:57: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 34 36 15 01 00 00 67 45 0D 01 A8 67 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 17 01 00 00 F4 03 04 00 5D D9 17 67 Write to MH i2c: 01 0E 00 04 00 04 18 00 09 C3 21 00 00 00 B9 04 01 00 [16:57:07]01 0D 04 10 Write i2c OK [16:57:07]00 MH_I2C_Read... [16:57:07]30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 [16:57:07]MH_I2C_Read... [16:57:07]30 Read from MH i2c: 31 01 35 07 36 00 32 [16:57:07]35 MH_I2C_Read... [16:57:07]31 Read from MH i2c: 11 01 04 07 10 00 00 18 30 09 30 30 30 30 30 30 00 00 30 00 30 00 00 57 0D 8C [16:57:07]RasterBufferAndPrint [16:57:07]line [16:57:07]line [16:57:07]line [16:57:07]line [16:57:07]line [16:57:07]30 39 36 33 33 34 36 10 04 04 00 BB 12 01 00 35 04 06 00 65 E2 F8 written 0, free lines is 3756 [16:57:07]08 CA 1F 1D 9A B1 A4 MH_Cut [16:57:07]0B Write to MH i2c: 2A D1 3A 01 00 1F 09 01 FA 04 [16:57:07] [16:57:07]Write i2c OK [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: D1 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: D1 01 00 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: D1 01 00 1F 09 00 F9 [16:57:07]Write to MH i2c: 01 00 00 20 09 29 [16:57:07]Write i2c OK [16:57:07]MH_I2C_Read... [16:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 *** Cut start [16:57:07]30 30 30 *** Partial cut [16:57:07]39 *** CUTSNS_PIN = 1 [16:57:07]36 33 33 34 36 *** CUTSNS_PIN = 0 [16:57:07]4F 00 00 00 B1 E5 47 00 B3 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 *** Brake cut motor [16:57:08]30 30 30 39 36 33 33 34 36 10 04 04 00 BB 12 01 00 F4 03 04 00 02 83 17 67 B6 04 01 00 00 23 C6 A7 6B 05 0B BF 71 [16:57:08]CommunicateWithHost err = 0 [16:57:08]CheckOFDResponse [16:57:08]1017 (14) - 77093643461234 [16:57:08]1041 (16) - 0000000000963346 [16:57:08]1040 (4) - 70331 [16:57:08]1012 (4) - 22.10.2024 10:48 [16:57:08]1206 (1) - 0 [16:57:08]OFD Sender: Remove packet 70331 [16:57:08]ProducePacketName [16:57:08]name=ofd_packets/00070331 [16:57:08]NVStorageDeleteData [16:57:08]Read from MH i2c: 01 [16:57:08]MH_I2C_Read... [16:57:08]*** Stop cut motor [16:57:08]*** Cut end [16:57:08]Read from MH i2c: 01 07 00 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [16:57:08]process_action close_receipt done [16:57:08]requested_data is exist [16:57:08]produce_requested_data [16:57:08]requested_item fm.sn is exist - process it [16:57:08]wFMCommunicate request_size=4 [16:57:08]MH_SAM_APDU [16:57:08]CAPDU: 80 11 00 00 [16:57:08]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [16:57:08]Write i2c OK [16:57:08]MH_I2C_Read... [16:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:08]Read from MH i2c: E2 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 17 00 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [16:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:08]wFMCommunicate OK [16:57:08]requested_item fd.num is exist - process it [16:57:08]SAM_PROTO_GetFieldsCounters [16:57:08]wFMCommunicate request_size=4 [16:57:08]MH_SAM_APDU [16:57:08]CAPDU: 80 13 00 00 [16:57:08]Write to MH i2c: E2 08 00 22 09 80 13 00 00 00 00 00 00 A7 [16:57:08]Write i2c OK [16:57:08]MH_I2C_Read... [16:57:08]OFD Sender: No OFD packet to send [16:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:08]Read from MH i2c: E2 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 62 00 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 62 00 22 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 12 01 00 0E 04 04 00 C3 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 9B [16:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 12 01 00 0E 04 04 00 C3 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 [16:57:09]wFMCommunicate OK [16:57:09]SAM_PROTO_GetFieldsCounters done [16:57:09]requested_item shift.num is exist - process it [16:57:09]requested_item shift.opened is exist - process it [16:57:09]req_shift_opened [16:57:09]FM_GetShiftState [16:57:09]SAM_PROTO_GetShiftState [16:57:09]wFMCommunicate request_size=4 [16:57:09]MH_SAM_APDU [16:57:09]CAPDU: 80 13 01 00 [16:57:09]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [16:57:09]Write i2c OK [16:57:09]MH_I2C_Read... [16:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:09]Read from MH i2c: E2 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 0E 00 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 97 [16:57:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:57:09]wFMCommunicate OK [16:57:09]SAM_PROTO_GetShiftState done [16:57:09]FM_GetShiftState done [16:57:09]req_shift_opened done [16:57:09]requested_item shift.open_date is exist - process it [16:57:09]req_shift_open_date [16:57:09]req_shift_open_date done [16:57:09]produce_requested_data done [16:57:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70331,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:57:09]process_action_free close_receipt [16:57:09]json_value_free [16:57:09]json_value_free done [16:57:09]process_json_proto returns [16:57:09]Send response to host [16:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70331,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:57:09]free response buf [16:57:09]execute_script done [16:57:09]execute_script returns [16:57:09]free content buf [16:57:09]Sock 9.Close socket [16:57:09]Sock 9.Thread stoped [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:20]int [16:57:20]Write to MH i2c: 01 00 00 24 09 2D [16:57:20]*** FLAG_PRN_PAP1 set [16:57:20]*** FLAG_PRN_PAP2 set [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 07 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 07 00 24 09 00 03 00 00 00 FF 0F 45 [16:57:20]state=0 [16:57:20]No paper [16:57:20]Cover opened [16:57:20]int [16:57:20]Write to MH i2c: 01 00 00 25 09 2E [16:57:21]*** FLAG_PRN_PAP2 reset [16:57:21]*** FLAG_PRN_PAP2 set [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 25 09 00 03 00 00 00 FF 0F 46 [16:57:21]state=3 [16:57:21]No paper [16:57:21]Cover opened [16:57:22]int [16:57:22]Write to MH i2c: 01 00 00 26 09 2F [16:57:22]*** FLAG_PRN_PAP2 reset [16:57:22]*** FLAG_PRN_PAP1 reset [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 07 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [16:57:22]state=3 [16:57:22]Cover closed [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:36]accept exits with 10 [16:57:36]New connection [16:57:36]New thread 3066555748 created [16:57:36]Thread 3066699108 joined [16:57:36]Waiting for new connection... [16:57:36] Sock 10.Parse request [16:57:36]Sock 10.Check first char [16:57:36]Sock 10.First char is OK [16:57:36]request: POST /json_proto HTTP/1.0 [16:57:36]Method: POST [16:57:36]URL: /json_proto [16:57:36]Method is POST - this is cgi request [16:57:36]url: /json_proto [16:57:36]query_string will be loaded in cgi processing [16:57:36]execute_cgi json_proto POST (null) [16:57:36]execute_cgi path=json_proto method=POST [16:57:36]POST find Content-Length [16:57:36]Host: 172.17.50.3:8080 [16:57:36]Content-Length: 978 [16:57:36]Content-Type: application/json [16:57:36] [16:57:36]POST finish read [16:57:36]Found Content-Length = 978 [16:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886097", "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" : 75.20, "quantity" : 82.320, "sum" : 6190.46, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 82.32 \u0441\u043E\u043C", "deposit" : 6190.00, "total" : 6190.00, "payments": [ { "type": 0, "sum" : 6190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:36]execute_script... [16:57: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)2886097", "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" : 75.20, "quantity" : 82.320, "sum" : 6190.46, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 82.32 \u0441\u043E\u043C", "deposit" : 6190.00, "total" : 6190.00, "payments": [ { "type": 0, "sum" : 6190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:36]POST & json_proto [16:57:36]process_json_proto [16:57:36]json parsed OK: [16:57:36]protocol is kg_v1.0 [16:57:36]action value=close_receipt [16:57:36]process_action close_receipt [16:57:36]cmd_close_receipt [16:57:36]MH_GetDate [16:57:36]Write to MH i2c: F0 00 00 27 09 1F [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: F0 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: F0 09 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: F0 09 00 27 09 00 81 D9 17 67 6B 98 1E 66 87 [16:57:36]GetLastDocTimeStamp 1729616221 [16:57:36]current date 1729616257 [16:57:36]FM_GetShiftState [16:57:36]SAM_PROTO_GetShiftState [16:57:36]wFMCommunicate request_size=4 [16:57:36]MH_SAM_APDU [16:57:36]CAPDU: 80 13 01 00 [16:57:36]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:36]Read from MH i2c: E2 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 0E 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9C [16:57:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:57:36]wFMCommunicate OK [16:57:36]SAM_PROTO_GetShiftState done [16:57:36]FM_GetShiftState done [16:57:37]opened in 1729555832 [16:57:37]opened+sec_in_day 1729642232 [16:57:37]quantity*price = 619046 [16:57:37]sum+1 = 619047 [16:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 6190.00 Внесено: 6190.00 СДАЧА: 0.00 НСП 1% : 54.78 НДС 12% : 657.39 Наличными: 6190.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 280 22.10.2024 16:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 82.32 сом ФМ: 0000000000963346 ФД: 70332 ФПД: 8615436453242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70332&fm=8615436453242&tin=02508201610067®Number=0000000000156251&sum=619000 [16:57:39]StoreToDocumentArchive [16:57:39]shift 195 fd 70332 [16:57:39]save to /storage/0195/doc_00070332 [16:57:39]save last doc name /storage/0195/doc_00070332 to /storage/kkm_last_doc_name [16:57:39]save OK [16:57:39]Clear old archive folders... [16:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:39]tlvbuf is 00D318D0 [16:57:39]SAM_PROTO_ClearQueue [16:57:39]wFMCommunicate request_size=4 [16:57:39]MH_SAM_APDU [16:57:39]CAPDU: 80 09 00 00 [16:57:39]Write to MH i2c: E2 08 00 35 09 80 09 00 00 00 00 00 00 B0 [16:57:39]Write i2c OK [16:57:39]MH_I2C_Read... [16:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:40]Read from MH i2c: E2 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 03 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [16:57:40]RAPDU: 90 00 [16:57:40]wFMCommunicate OK [16:57:40]SAM_PROTO_ClearQueue done [16:57:40]KKMCreateOFDPacket [16:57:40]OFDProtocolAddRootSTLVToBuf [16:57:40]FM_MakeSignedData [16:57:40]FM_MakeSignedData [16:57:40]SAM_PROTO_SignData [16:57:40]wFMCommunicate request_size=4 [16:57:40]MH_SAM_APDU [16:57:40]CAPDU: 80 0D 01 02 [16:57:40]Write to MH i2c: E2 08 00 36 09 80 0D 01 02 00 00 00 00 B8 [16:57:40]Write i2c OK [16:57:40]MH_I2C_Read... [16:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:40]Read from MH i2c: E2 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 03 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [16:57:40]RAPDU: 90 00 [16:57:40]wFMCommunicate OK [16:57:40]wFMCommunicate request_size=255 [16:57:40]MH_SAM_APDU [16:57:40]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 90 41 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 26 72 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 71 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 00 01 00 00 00 07 04 06 00 F8 71 09 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 81 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 12 01 00 35 04 06 00 07 D5 F0 07 [16:57:40]Write to MH i2c: E2 02 01 37 09 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 90 41 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 26 72 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 71 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 00 01 00 00 00 07 04 06 00 F8 71 09 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 81 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 12 01 00 35 04 06 00 07 D5 F0 07 00 00 80 [16:57:41]Write i2c OK [16:57:41]MH_I2C_Read... [16:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:41]Read from MH i2c: E2 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 03 00 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [16:57:41]RAPDU: 90 00 [16:57:41]wFMCommunicate OK [16:57:41]wFMCommunicate request_size=7 [16:57:41]MH_SAM_APDU [16:57:41]CAPDU: 80 0D 02 02 02 85 7A [16:57:41]Write to MH i2c: E2 0A 00 38 09 80 0D 02 02 02 00 85 7A 00 00 BE [16:57:41]Write i2c OK [16:57:41]MH_I2C_Read... [16:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:41]Read from MH i2c: E2 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 03 00 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [16:57:41]RAPDU: 90 00 [16:57:41]wFMCommunicate OK [16:57:41]wFMCommunicate request_size=4 [16:57:41]MH_SAM_APDU [16:57:41]CAPDU: 80 0D 03 02 [16:57:41]Write to MH i2c: E2 08 00 39 09 80 0D 03 02 00 00 00 00 BD [16:57:41]Write i2c OK [16:57:41]MH_I2C_Read... [16:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:41]Read from MH i2c: E2 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 0B 00 [16:57:41]MH_I2C_Read... [16:57:41]Read from MH i2c: E2 0B 00 39 09 00 D5 38 AF 95 98 D5 79 96 90 00 8B [16:57:41]RAPDU: D5 38 AF 95 98 D5 79 96 90 00 [16:57:41]wFMCommunicate OK [16:57:41]SAM_PROTO_SignData done [16:57:41]FM_MakeSignedData done [16:57:41]CreateOFDProtocolMessage [16:57:41]wFMCommunicate request_size=4 [16:57:41]MH_SAM_APDU [16:57:41]CAPDU: 80 11 00 00 [16:57:41]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [16:57:41]Write i2c OK [16:57:41]MH_I2C_Read... [16:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:42]Read from MH i2c: E2 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: E2 17 00 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [16:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:42]wFMCommunicate OK [16:57:42]CreateOFDProtocolMessage done [16:57:42]OFDSenderStorePacket 70332 [16:57:42]StoreOFDPacket docnum=70332 [16:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 14 04 01 A4 89 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 90 41 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 26 72 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 71 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 00 01 00 00 00 07 04 06 00 F8 71 09 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 81 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 12 01 00 35 04 06 00 07 D5 F0 07 85 7A D5 38 AF 95 98 D5 79 96 [16:57:42]CheckFolder [16:57:42]dirname=/storage/ofd_packets [16:57:42]CheckFolder done [16:57:42]ProducePacketName [16:57:42]name=ofd_packets/00070332 [16:57:42]NVStorageSaveData ofd_packets/00070332 [16:57:42]File name is /storage/ofd_packets/00070332 [16:57:42]Write 298 bytes [16:57:42]NVStorageSaveData done [16:57:42]OFDSenderStorePacket done [16:57:42]KKMCreateOFDPacket done [16:57:42]NVStorageSaveData kkm_last_timestamp [16:57:42]File name is /storage/kkm_last_timestamp [16:57:42]Write 4 bytes [16:57:42]NVStorageSaveData done [16:57:42]ExternCall_PrintAddStr [16:57:42]wPrintStart [16:57:42]Write to MH i2c: 01 00 00 3B 09 44 [16:57:42]OFD Sender: Processing packet 70332 [packets to send 18, broken 17] [16:57:42]ProducePacketName [16:57:42]name=ofd_packets/00070332 [16:57:42]OFD Sender: To server: pG, [16:57:42]CommunicateWithHost lk.salyk.kg:30040 [16:57:42]ConnectInit lk.salyk.kg [16:57:42]Write i2c OK [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: 01 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: 01 07 00 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [16:57:42]RasterBufferAndPrint [16:57:42]line Счет N : (1)2886097 [16:57:42]line ИНН: 02508201610067 [16:57:42]line Контрольно-Кассовый Чек [16:57:42]line ПРОДАЖА [16:57:42]line ТРК (МРК, ГНК) : 51 [16:57:42]line Товар: 2710194210 [16:57:42]line ДТ-К-5 [16:57:42]line 82.320 * 75.20 [16:57:42]line = 6190.46 [16:57:42]line НДС 12% НСП 1% [16:57:42]line > о реализуемом товаре [16:57:42]line ОКРУГЛЕНИЕ: -0.46 [16:57:42]line ИТОГО: 6190.00 [16:57:42]line Внесено: 6190.00 [16:57:42]line СДАЧА: 0.00 [16:57:42]line НСП 1% : 54.78 [16:57:42]line НДС 12% : 657.39 [16:57:42]line Наличными: 6190.00 [16:57:42]line Безнал.: 0.00 [16:57:42]line Место: АЗС № 85 "Партнер Нефть" [16:57:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:57:42]line СНО: Общий режим [16:57:42]line Чек 280 22.10.2024 16:57 [16:57:42]line Смена: 195 ФФД: 1.0 [16:57:42]line ЗНМ: 0300000167 [16:57:42]line РНМ: 0000000000156251 [16:57:42]line Версия ККМ: v1.0 [16:57:42]line [16:57:42]line Дисконтная программа [16:57:42]line ДТ [16:57:42]line номер 85 [16:57:42]line сэкономлено 82.32 сом [16:57:42]line ФМ: 0000000000963346 [16:57:42]line ФД: 70332 [16:57:42]line ФПД: 8615436453242 [16:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70332&fm=8615436453242&tin=02508201610067®Number=0000000000156251&sum=619000 [16:57:42]Connected sock=11 [16:57:42]Data to sent: written 0, free lines is 4095 [16:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 14 04 01 A4 89 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 90 41 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 26 72 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 71 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 00 01 00 00 00 07 04 06 00 F8 71 09 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 81 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 Write to MH i2c: 32 01 35 00 31 00 11 04 10 00 30 30 6B 30 09 30 74 30 [16:57:43]30 30 30 30 30 39 Write i2c OK [16:57:43]36 MH_I2C_Read... [16:57:43]33 33 Read from MH i2c: 34 01 36 [16:57:43]10 MH_I2C_Read... [16:57:43]04 04 00 Read from MH i2c: BC 01 12 07 01 00 00 [16:57:43]35 04 06 00 07 D5 MH_I2C_Read... [16:57:43]F0 07 85 7A Read from MH i2c: D5 01 38 07 00 6B 09 00 00 00 00 00 F5 0C 7C [16:57:43]RasterBufferAndPrint [16:57:43]line [16:57:43]line [16:57:43]line [16:57:43]line [16:57:43]line [16:57:43]AF 95 98 D5 79 96 written 0, free lines is 3616 [16:57:43] [16:57:43]MH_Cut [16:57:43]Write to MH i2c: D1 01 00 72 09 01 4D [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: D1 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: D1 01 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: D1 01 00 72 09 00 4C [16:57:43]Write to MH i2c: 01 00 00 73 09 7C [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57: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 34 36 4F 00 00 00 EC 27 47 00 F3 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 12 01 00 F4 03 04 00 25 83 17 67 B6 04 01 *** Cut start [16:57:43]00 *** Partial cut [16:57:43]00 D8 41 52 *** CUTSNS_PIN = 1 [16:57:43]90 76 F9 38 6E [16:57:43]CommunicateWithHost err = 0 [16:57:43]CheckOFDResponse [16:57:43]1017 (14) - 77093643461234 [16:57:43]*** CUTSNS_PIN = 0 [16:57:43]1041 (16) - 0000000000963346 [16:57:43]1040 (4) - 70332 [16:57:43]1012 (4) - 22.10.2024 10:49 [16:57:43]1206 (1) - 0 [16:57:43]OFD Sender: Remove packet 70332 [16:57:43]ProducePacketName [16:57:43]name=ofd_packets/00070332 [16:57:43]NVStorageDeleteData [16:57:43]*** Brake cut motor [16:57:44]OFD Sender: No OFD packet to send [16:57:44]Read from MH i2c: 01 [16:57:44]MH_I2C_Read... [16:57:44]*** Stop cut motor [16:57:44]*** Cut end [16:57:44]Read from MH i2c: 01 07 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [16:57:44]process_action close_receipt done [16:57:44]requested_data is exist [16:57:44]produce_requested_data [16:57:44]requested_item fm.sn is exist - process it [16:57:44]wFMCommunicate request_size=4 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 11 00 00 [16:57:44]Write to MH i2c: E2 08 00 74 09 80 11 00 00 00 00 00 00 F7 [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:44]Read from MH i2c: E2 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 17 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 17 00 74 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [16:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:44]wFMCommunicate OK [16:57:44]requested_item fd.num is exist - process it [16:57:44]SAM_PROTO_GetFieldsCounters [16:57:44]wFMCommunicate request_size=4 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 13 00 00 [16:57:44]Write to MH i2c: E2 08 00 75 09 80 13 00 00 00 00 00 00 FA [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:44]Read from MH i2c: E2 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 62 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 62 00 75 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 12 01 00 0E 04 04 00 C3 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 F2 [16:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 12 01 00 0E 04 04 00 C3 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 [16:57:45]wFMCommunicate OK [16:57:45]SAM_PROTO_GetFieldsCounters done [16:57:45]requested_item shift.num is exist - process it [16:57:45]requested_item shift.opened is exist - process it [16:57:45]req_shift_opened [16:57:45]FM_GetShiftState [16:57:45]SAM_PROTO_GetShiftState [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 13 01 00 [16:57:45]Write to MH i2c: E2 08 00 76 09 80 13 01 00 00 00 00 00 FC [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0E 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0E 00 76 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EA [16:57:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:57:45]wFMCommunicate OK [16:57:45]SAM_PROTO_GetShiftState done [16:57:45]FM_GetShiftState done [16:57:45]req_shift_opened done [16:57:45]requested_item shift.open_date is exist - process it [16:57:45]req_shift_open_date [16:57:45]req_shift_open_date done [16:57:45]produce_requested_data done [16:57:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70332,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:57:45]process_action_free close_receipt [16:57:45]json_value_free [16:57:45]json_value_free done [16:57:45]process_json_proto returns [16:57:45]Send response to host [16:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70332,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:57:45]free response buf [16:57:45]execute_script done [16:57:45]execute_script returns [16:57:45]free content buf [16:57:45]Sock 10.Close socket [16:57:45]Sock 10.Thread stoped [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:24]ConnectInit Can't connect to host [16:59:29]OFD Sender: No OFD packet to send [16:59:32]accept exits with 9 [16:59:32]New connection [16:59:32]New thread 3066699108 created [16:59:32]Thread 3066555748 joined [16:59:32]Waiting for new connection... [16:59:32] Sock 9.Parse request [16:59:32]Sock 9.Check first char [16:59:32]Sock 9.First char is OK [16:59:32]request: POST /json_proto HTTP/1.0 [16:59:32]Method: POST [16:59:32]URL: /json_proto [16:59:32]Method is POST - this is cgi request [16:59:32]url: /json_proto [16:59:32]query_string will be loaded in cgi processing [16:59:32]execute_cgi json_proto POST (null) [16:59:32]execute_cgi path=json_proto method=POST [16:59:32]POST find Content-Length [16:59:32]Host: 172.17.50.3:8080 [16:59:32]Content-Length: 790 [16:59:32]Content-Type: application/json [16:59:32] [16:59:32]POST finish read [16:59:32]Found Content-Length = 790 [16:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886101", "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" : 0.00, "quantity" : 50.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:32]execute_script... [16:59: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)2886101", "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" : 0.00, "quantity" : 50.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:32]POST & json_proto [16:59:32]process_json_proto [16:59:32]json parsed OK: [16:59:32]protocol is kg_v1.0 [16:59:32]action value=close_receipt [16:59:32]process_action close_receipt [16:59:32]cmd_close_receipt [16:59:32]MH_GetDate [16:59:32]Write to MH i2c: F0 00 00 77 09 6F [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 09 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 09 00 77 09 00 F5 D9 17 67 6B 98 1E 66 4B [16:59:32]GetLastDocTimeStamp 1729616257 [16:59:32]current date 1729616373 [16:59:32]FM_GetShiftState [16:59:32]SAM_PROTO_GetShiftState [16:59:32]wFMCommunicate request_size=4 [16:59:32]MH_SAM_APDU [16:59:32]CAPDU: 80 13 01 00 [16:59:32]Write to MH i2c: E2 08 00 78 09 80 13 01 00 00 00 00 00 FE [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:32]Read from MH i2c: E2 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 0E 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 0E 00 78 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EC [16:59:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:59:32]wFMCommunicate OK [16:59:32]SAM_PROTO_GetShiftState done [16:59:32]FM_GetShiftState done [16:59:32]opened in 1729555832 [16:59:32]opened+sec_in_day 1729642232 [16:59:33]quantity*price = 0 [16:59:33]sum+1 = 1 [16:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 281 22.10.2024 16:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 70333 ФПД: 167462445374721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70333&fm=167462445374721&tin=02508201610067®Number=0000000000156251&sum=0 [16:59:35]StoreToDocumentArchive [16:59:35]shift 195 fd 70333 [16:59:35]save to /storage/0195/doc_00070333 [16:59:35]save last doc name /storage/0195/doc_00070333 to /storage/kkm_last_doc_name [16:59:35]save OK [16:59:35]Clear old archive folders... [16:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:35]tlvbuf is 00D4BE30 [16:59:36]SAM_PROTO_ClearQueue [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 09 00 00 [16:59:36]Write to MH i2c: E2 08 00 85 09 80 09 00 00 00 00 00 00 00 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 03 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [16:59:36]RAPDU: 90 00 [16:59:36]wFMCommunicate OK [16:59:36]SAM_PROTO_ClearQueue done [16:59:36]KKMCreateOFDPacket [16:59:36]OFDProtocolAddRootSTLVToBuf [16:59:36]FM_MakeSignedData [16:59:36]FM_MakeSignedData [16:59:36]SAM_PROTO_SignData [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 0D 01 02 [16:59:36]Write to MH i2c: E2 08 00 86 09 80 0D 01 02 00 00 00 00 08 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 03 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [16:59:36]RAPDU: 90 00 [16:59:36]wFMCommunicate OK [16:59:36]wFMCommunicate request_size=255 [16:59:36]MH_SAM_APDU [16:59: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 50 C3 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 19 01 00 00 F4 03 04 00 F5 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 12 01 00 35 04 06 00 98 4E 63 91 [16:59:36]Write to MH i2c: E2 02 01 87 09 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 50 C3 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 19 01 00 00 F4 03 04 00 F5 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 12 01 00 35 04 06 00 98 4E 63 91 00 00 45 [16:59:37]Write i2c OK [16:59:37]MH_I2C_Read... [16:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:37]Read from MH i2c: E2 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 03 00 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [16:59:37]RAPDU: 90 00 [16:59:37]wFMCommunicate OK [16:59:37]wFMCommunicate request_size=7 [16:59:37]MH_SAM_APDU [16:59:37]CAPDU: 80 0D 02 02 02 DD 01 [16:59:37]Write to MH i2c: E2 0A 00 88 09 80 0D 02 02 02 00 DD 01 00 00 ED [16:59:37]Write i2c OK [16:59:37]MH_I2C_Read... [16:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:37]Read from MH i2c: E2 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 03 00 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [16:59:37]RAPDU: 90 00 [16:59:37]wFMCommunicate OK [16:59:37]wFMCommunicate request_size=4 [16:59:37]MH_SAM_APDU [16:59:37]CAPDU: 80 0D 03 02 [16:59:37]Write to MH i2c: E2 08 00 89 09 80 0D 03 02 00 00 00 00 0D [16:59:37]Write i2c OK [16:59:37]MH_I2C_Read... [16:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:37]Read from MH i2c: E2 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: E2 0B 00 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: E2 0B 00 89 09 00 47 21 17 72 3E 5F FC C1 90 00 59 [16:59:38]RAPDU: 47 21 17 72 3E 5F FC C1 90 00 [16:59:38]wFMCommunicate OK [16:59:38]SAM_PROTO_SignData done [16:59:38]FM_MakeSignedData done [16:59:38]CreateOFDProtocolMessage [16:59:38]wFMCommunicate request_size=4 [16:59:38]MH_SAM_APDU [16:59:38]CAPDU: 80 11 00 00 [16:59:38]Write to MH i2c: E2 08 00 8A 09 80 11 00 00 00 00 00 00 0D [16:59:38]Write i2c OK [16:59:38]MH_I2C_Read... [16:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:38]Read from MH i2c: E2 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: E2 17 00 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: E2 17 00 8A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [16:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:38]wFMCommunicate OK [16:59:38]CreateOFDProtocolMessage done [16:59:38]OFDSenderStorePacket 70333 [16:59:38]StoreOFDPacket docnum=70333 [16:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F0 A8 04 01 55 99 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 50 C3 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 19 01 00 00 F4 03 04 00 F5 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 12 01 00 35 04 06 00 98 4E 63 91 DD 01 47 21 17 72 3E 5F FC C1 [16:59:38]CheckFolder [16:59:38]dirname=/storage/ofd_packets [16:59:38]CheckFolder done [16:59:38]ProducePacketName [16:59:38]name=ofd_packets/00070333 [16:59:38]NVStorageSaveData ofd_packets/00070333 [16:59:38]File name is /storage/ofd_packets/00070333 [16:59:38]Write 298 bytes [16:59:38]NVStorageSaveData done [16:59:38]OFDSenderStorePacket done [16:59:38]KKMCreateOFDPacket done [16:59:38]NVStorageSaveData kkm_last_timestamp [16:59:38]File name is /storage/kkm_last_timestamp [16:59:38]Write 4 bytes [16:59:38]NVStorageSaveData done [16:59:38]ExternCall_PrintAddStr [16:59:38]wPrintStart [16:59:38]Write to MH i2c: 01 00 00 8B 09 94 [16:59:38]Write i2c OK [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 07 00 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [16:59:38]RasterBufferAndPrint [16:59:38]line Счет N : (1)2886101 [16:59:38]line ИНН: 02508201610067 [16:59:38]line Контрольно-Кассовый Чек [16:59:38]line ПРОДАЖА [16:59:38]line ТРК (МРК, ГНК) : 51 [16:59:38]line Товар: 2710194210 [16:59:38]line ДТ-К-5 [16:59:38]line 50.000 * 0.00 [16:59:38]line = 0.00 [16:59:38]line НДС 12% НСП 1% [16:59:38]line > о реализуемом товаре [16:59:38]line ИТОГО: 0.00 [16:59:38]line НСП 1% : 0.00 [16:59:38]line НДС 12% : 0.00 [16:59:38]line Наличными: 0.00 [16:59:38]line Безнал.: 0.00 [16:59:38]line Место: АЗС № 85 "Партнер Нефть" [16:59:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:59:38]line СНО: Общий режим [16:59:38]line Чек 281 22.10.2024 16:59 [16:59:38]line Смена: 195 ФФД: 1.0 [16:59:38]line ЗНМ: 0300000167 [16:59:38]line РНМ: 0000000000156251 [16:59:38]line Версия ККМ: v1.0 [16:59:38]line Талоны: Топливная Карта [16:59:38]line 31095 [16:59:38]line ФМ: 0000000000963346 [16:59:38]line ФД: 70333 [16:59:38]line ФПД: 167462445374721 [16:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70333&fm=167462445374721&tin=02508201610067®Number=0000000000156251&sum=0 [16:59:38]OFD Sender: Processing packet 70333 [packets to send 18, broken 17] [16:59:38]ProducePacketName [16:59:38]name=ofd_packets/00070333 [16:59:38]OFD Sender: To server: pG, [16:59:38]CommunicateWithHost lk.salyk.kg:30040 [16:59:38]ConnectInit lk.salyk.kg [16:59:38]written 0, free lines is 4095 [16:59:38]Connected sock=11 [16:59: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 34 36 0C 01 00 00 F0 A8 04 01 55 99 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 50 C3 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 Write to MH i2c: F7 01 03 00 06 00 00 B5 00 00 00 00 00 09 00 BE EE [16:59:39]03 Write i2c OK [16:59:39]0F MH_I2C_Read... [16:59:39]00 F2 03 01 00 Read from MH i2c: 01 01 F3 [16:59:39]03 MH_I2C_Read... [16:59:39]06 Read from MH i2c: 00 01 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 [16:59:39]00 00 00 39 04 06 MH_I2C_Read... [16:59:39]00 Read from MH i2c: 00 01 00 07 00 00 B5 09 00 00 00 00 00 FA 0D CC [16:59:39]RasterBufferAndPrint [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 F5 D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 written 0, free lines is 3902 [16:59:39]0D 04 10 00 30 30 30 MH_Cut [16:59:39]30 Write to MH i2c: 30 30 30 30 30 30 D1 31 01 35 00 36 BC 32 09 35 31 11 04 10 01 00 97 30 [16:59:39]30 Write i2c OK [16:59:39]30 MH_I2C_Read... [16:59:39]30 30 30 30 30 Read from MH i2c: 30 D1 30 [16:59:39]39 MH_I2C_Read... [16:59:39]36 33 33 Read from MH i2c: 34 D1 36 10 04 04 00 BD 01 12 00 01 [16:59:39]00 MH_I2C_Read... [16:59:39]35 Read from MH i2c: D1 01 00 BC 09 04 00 06 96 00 [16:59:39]98 Write to MH i2c: 4E 01 63 00 91 DD 01 00 47 21 17 BD 72 09 *** Cut start [16:59:39]C6 *** Partial cut [16:59:39]*** CUTSNS_PIN = 1 [16:59:39]*** CUTSNS_PIN = 0 [16:59:39] [16:59:39]3E 5F FC C1 [16:59:39]Write i2c OK [16:59:39]MH_I2C_Read... [16:59:40]Received data: 87 95 F6 70 47 2C 01 00 *** Brake cut motor [16:59:40]30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 1C 47 00 77 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 Read from MH i2c: 30 01 [16:59:40]30 MH_I2C_Read... [16:59:40]30 *** Stop cut motor [16:59:40]39 *** Cut end [16:59:40]36 Read from MH i2c: 33 01 07 00 [16:59:40]MH_I2C_Read... [16:59:40]33 Read from MH i2c: 34 01 36 07 10 00 04 BD 09 00 00 00 04 00 00 00 BD FF 12 0F 01 DB 00 [16:59:40]F4 03 04 00 9A 83 process_action close_receipt done [16:59:40]17 requested_data is exist [16:59:40]67 produce_requested_data [16:59:40]requested_item fm.sn is exist - process it [16:59:40]wFMCommunicate request_size=4 [16:59:40]MH_SAM_APDU [16:59:40]CAPDU: 80 11 00 00 [16:59:40]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [16:59:40]B6 04 01 00 00 DC 51 44 E4 9D 03 5E 73 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:40]Write i2c OK [16:59:40]MH_I2C_Read... [16:59:40] [16:59:40]CommunicateWithHost err = 0 [16:59:40]CheckOFDResponse [16:59:40]Read from MH i2c: 1017 (14) - 77093643461234 [16:59:40]E2 1041 (16) - 0000000000963346 [16:59:40]1040 (4) - 70333 [16:59:40]1012 (4) - 22.10.2024 10:51 [16:59:40]1206 (1) - 0 [16:59:40]OFD Sender: Remove packet 70333 [16:59:40] [16:59:40]ProducePacketName [16:59:40]MH_I2C_Read... [16:59:40]name=ofd_packets/00070333 [16:59:40]NVStorageDeleteData [16:59:40]Read from MH i2c: E2 17 00 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [16:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:41]wFMCommunicate OK [16:59:41]requested_item fd.num is exist - process it [16:59:41]SAM_PROTO_GetFieldsCounters [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 13 00 00 [16:59:41]Write to MH i2c: E2 08 00 BF 09 80 13 00 00 00 00 00 00 44 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 62 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 62 00 BF 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 12 01 00 0E 04 04 00 C3 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 40 [16:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 OFD Sender: No OFD packet to send [16:59:41]00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 12 01 00 0E 04 04 00 C3 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 [16:59:41]wFMCommunicate OK [16:59:41]SAM_PROTO_GetFieldsCounters done [16:59:41]requested_item shift.num is exist - process it [16:59:41]requested_item shift.opened is exist - process it [16:59:41]req_shift_opened [16:59:41]FM_GetShiftState [16:59:41]SAM_PROTO_GetShiftState [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 13 01 00 [16:59:41]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 0E 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [16:59:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_GetShiftState done [16:59:42]FM_GetShiftState done [16:59:42]req_shift_opened done [16:59:42]requested_item shift.open_date is exist - process it [16:59:42]req_shift_open_date [16:59:42]req_shift_open_date done [16:59:42]produce_requested_data done [16:59:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70333,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:59:42]process_action_free close_receipt [16:59:42]json_value_free [16:59:42]json_value_free done [16:59:42]process_json_proto returns [16:59:42]Send response to host [16:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70333,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:59:42]free response buf [16:59:42]execute_script done [16:59:42]execute_script returns [16:59:42]free content buf [16:59:42]Sock 9.Close socket [16:59:42]Sock 9.Thread stoped [16:59:42]accept exits with 10 [16:59:42]New connection [16:59:42]New thread 3066555748 created [16:59:42]Thread 3066699108 joined [16:59:42]Waiting for new connection... [16:59:42] Sock 10.Parse request [16:59:42]Sock 10.Check first char [16:59:42]Sock 10.First char is OK [16:59:42]request: POST /json_proto HTTP/1.0 [16:59:42]Method: POST [16:59:42]URL: /json_proto [16:59:42]Method is POST - this is cgi request [16:59:42]url: /json_proto [16:59:42]query_string will be loaded in cgi processing [16:59:42]execute_cgi json_proto POST (null) [16:59:42]execute_cgi path=json_proto method=POST [16:59:42]POST find Content-Length [16:59:42]Host: 172.17.50.3:8080 [16:59:42]Content-Length: 770 [16:59:42]Content-Type: application/json [16:59:42] [16:59:42]POST finish read [16:59:42]Found Content-Length = 770 [16:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:42]execute_script... [16:59: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)2886102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:42]POST & json_proto [16:59:42]process_json_proto [16:59:42]json parsed OK: [16:59:42]protocol is kg_v1.0 [16:59:42]action value=close_receipt [16:59:42]process_action close_receipt [16:59:42]cmd_close_receipt [16:59:42]MH_GetDate [16:59:42]Write to MH i2c: F0 00 00 C1 09 B9 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: F0 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: F0 09 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: F0 09 00 C1 09 00 FE D9 17 67 6B 98 1E 66 9E [16:59:42]GetLastDocTimeStamp 1729616373 [16:59:42]current date 1729616382 [16:59:42]FM_GetShiftState [16:59:42]SAM_PROTO_GetShiftState [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 13 01 00 [16:59:42]Write to MH i2c: E2 08 00 C2 09 80 13 01 00 00 00 00 00 48 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0E 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0E 00 C2 09 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [16:59:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_GetShiftState done [16:59:42]FM_GetShiftState done [16:59:42]opened in 1729555832 [16:59:42]opened+sec_in_day 1729642232 [16:59:42]quantity*price = 150056 [16:59:42]sum+1 = 150058 [16:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 282 22.10.2024 16:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70334 ФПД: 190845240653891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70334&fm=190845240653891&tin=02508201610067®Number=0000000000156251&sum=150057 [16:59:46]StoreToDocumentArchive [16:59:46]shift 195 fd 70334 [16:59:46]save to /storage/0195/doc_00070334 [16:59:46]save last doc name /storage/0195/doc_00070334 to /storage/kkm_last_doc_name [16:59:46]save OK [16:59:46]Clear old archive folders... [16:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:46]tlvbuf is 00D64A80 [16:59:46]SAM_PROTO_ClearQueue [16:59:46]wFMCommunicate request_size=4 [16:59:46]MH_SAM_APDU [16:59:46]CAPDU: 80 09 00 00 [16:59:46]Write to MH i2c: E2 08 00 CF 09 80 09 00 00 00 00 00 00 4A [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:46]Read from MH i2c: E2 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 03 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [16:59:46]RAPDU: 90 00 [16:59:46]wFMCommunicate OK [16:59:46]SAM_PROTO_ClearQueue done [16:59:46]KKMCreateOFDPacket [16:59:46]OFDProtocolAddRootSTLVToBuf [16:59:46]FM_MakeSignedData [16:59:46]FM_MakeSignedData [16:59:46]SAM_PROTO_SignData [16:59:46]wFMCommunicate request_size=4 [16:59:46]MH_SAM_APDU [16:59:46]CAPDU: 80 0D 01 02 [16:59:46]Write to MH i2c: E2 08 00 D0 09 80 0D 01 02 00 00 00 00 52 [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:46]Read from MH i2c: E2 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 03 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [16:59:46]RAPDU: 90 00 [16:59:46]wFMCommunicate OK [16:59:46]wFMCommunicate request_size=255 [16:59:46]MH_SAM_APDU [16:59:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 OFD Sender: No OFD packet to send [16:59:46]00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 4A 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 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FF D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 12 01 00 35 04 06 00 AD [16:59:47]Write to MH i2c: E2 02 01 D1 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 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 29 4A 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 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FF D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 12 01 00 35 04 06 00 AD 00 00 4A [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=10 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 02 02 05 92 9E C6 B8 43 [16:59:48]Write to MH i2c: E2 0D 00 D2 09 80 0D 02 02 05 00 92 9E C6 B8 43 00 00 50 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 03 02 [16:59:48]Write to MH i2c: E2 08 00 D3 09 80 0D 03 02 00 00 00 00 57 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0B 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0B 00 D3 09 00 82 CD 0A A2 89 AB EA 90 90 00 01 [16:59:48]RAPDU: 82 CD 0A A2 89 AB EA 90 90 00 [16:59:48]wFMCommunicate OK [16:59:48]SAM_PROTO_SignData done [16:59:48]FM_MakeSignedData done [16:59:48]CreateOFDProtocolMessage [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 11 00 00 [16:59:48]Write to MH i2c: E2 08 00 D4 09 80 11 00 00 00 00 00 00 57 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 D4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [16:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:48]wFMCommunicate OK [16:59:48]CreateOFDProtocolMessage done [16:59:48]OFDSenderStorePacket 70334 [16:59:48]StoreOFDPacket docnum=70334 [16:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 2E 07 01 47 2A 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 29 4A 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 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FF D9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 12 01 00 35 04 06 00 AD 92 9E C6 B8 43 82 CD 0A A2 89 AB EA 90 [16:59:48]CheckFolder [16:59:48]dirname=/storage/ofd_packets [16:59:48]CheckFolder done [16:59:48]ProducePacketName [16:59:48]name=ofd_packets/00070334 [16:59:48]NVStorageSaveData ofd_packets/00070334 [16:59:48]File name is /storage/ofd_packets/00070334 [16:59:48]Write 301 bytes [16:59:48]NVStorageSaveData done [16:59:48]OFDSenderStorePacket done [16:59:48]KKMCreateOFDPacket done [16:59:48]NVStorageSaveData kkm_last_timestamp [16:59:48]File name is /storage/kkm_last_timestamp [16:59:48]Write 4 bytes [16:59:48]NVStorageSaveData done [16:59:48]ExternCall_PrintAddStr [16:59:48]wPrintStart [16:59:48]Write to MH i2c: 01 00 00 D5 09 DE [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 [16:59:48]MH_I2C_Read... [16:59:48]OFD Sender: Processing packet 70334 [packets to send 18, broken 17] [16:59:48]ProducePacketName [16:59:48]name=ofd_packets/00070334 [16:59:48]OFD Sender: To server: pG, [16:59:48]CommunicateWithHost lk.salyk.kg:30040 [16:59:48]ConnectInit lk.salyk.kg [16:59:48]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [16:59:49]RasterBufferAndPrint [16:59:49]line Счет N : (1)2886102 [16:59:49]line ИНН: 02508201610067 [16:59:49]line Контрольно-Кассовый Чек [16:59:49]line ПРОДАЖА [16:59:49]line ТРК (МРК, ГНК) : 32 [16:59:49]line Товар: 2710124130 [16:59:49]line Аи-92-К-5 [16:59:49]line 22.430 * 66.90 [16:59:49]line = 1500.57 [16:59:49]line НДС 12% НСП 1% [16:59:49]line > о реализуемом товаре [16:59:49]line ИТОГО: 1500.57 [16:59:49]line НСП 1% : 13.28 [16:59:49]line НДС 12% : 159.35 [16:59:49]line Наличными: 0.00 [16:59:49]line Безнал.: 1500.57 [16:59:49]line Место: АЗС № 85 "Партнер Нефть" [16:59:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:59:49]line СНО: Общий режим [16:59:49]line Чек 282 22.10.2024 16:59 [16:59:49]line Смена: 195 ФФД: 1.0 [16:59:49]Connected sock=11 [16:59:49]line ЗНМ: 0300000167 [16:59:49]Data to sent: line РНМ: 0000000000156251 [16:59:49]87 line Версия ККМ: v1.0 [16:59:49]95 line Платежная система: Mbank [16:59:49]F6 line ФМ: 0000000000963346 [16:59:49]70 line ФД: 70334 [16:59:49]line ФПД: 190845240653891 [16:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70334&fm=190845240653891&tin=02508201610067®Number=0000000000156251&sum=150057 [16:59:49]47 written 0, free lines is 4095 [16:59:49]2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 2E 07 01 47 2A 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 29 4A 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 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 Write to MH i2c: 04 01 00 1A 01 00 00 00 F4 00 03 FE 09 07 [16:59:49]04 00 FF D9 17 67 0E 04 04 00 C3 00 00 00 Write i2c OK [16:59:49]B9 MH_I2C_Read... [16:59:49]04 01 00 01 0D 04 Read from MH i2c: 10 01 00 30 30 30 30 30 [16:59:49]30 MH_I2C_Read... [16:59:49]30 Read from MH i2c: 30 01 30 07 30 31 35 36 32 00 35 [16:59:49]31 MH_I2C_Read... [16:59:49]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 Read from MH i2c: 36 01 10 04 04 00 BE 07 12 00 01 FE 00 09 35 00 04 00 06 00 00 AD 00 92 00 9E C6 B8 43 82 67 CD 0D 0A A2 82 89 [16:59:49]AB EA 90 [16:59:49]RasterBufferAndPrint [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]written 0, free lines is 3996 [16:59:49]MH_Cut [16:59:49]Write to MH i2c: D1 01 00 05 0A 01 E1 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: D1 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: D1 01 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: D1 01 00 05 0A 00 E0 [16:59:50]Write to MH i2c: 01 00 00 06 0A 10 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59: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 34 36 4F 00 00 00 FD 82 *** Cut start [16:59:50]47 *** Partial cut [16:59:50]00 55 2F A5 *** CUTSNS_PIN = 1 [16:59:50]07 01 00 07 00 3B 00 *** CUTSNS_PIN = 0 [16:59:50]F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 12 01 00 F4 03 04 00 A4 83 17 67 B6 04 01 00 00 F8 60 DC 37 6E 67 A4 1B [16:59:50]CommunicateWithHost err = 0 [16:59:50]CheckOFDResponse [16:59:50]*** Brake cut motor [16:59:50]1017 (14) - 77093643461234 [16:59:50]1041 (16) - 0000000000963346 [16:59:50]1040 (4) - 70334 [16:59:50]1012 (4) - 22.10.2024 10:51 [16:59:50]1206 (1) - 0 [16:59:50]OFD Sender: Remove packet 70334 [16:59:50]ProducePacketName [16:59:50]name=ofd_packets/00070334 [16:59:50]NVStorageDeleteData [16:59:50]Read from MH i2c: 01 [16:59:50]MH_I2C_Read... [16:59:50]*** Stop cut motor [16:59:50]*** Cut end [16:59:50]Read from MH i2c: 01 07 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: 01 07 00 06 0A 00 00 00 00 00 FF 0F 25 [16:59:50]process_action close_receipt done [16:59:50]requested_data is exist [16:59:50]produce_requested_data [16:59:50]requested_item fm.sn is exist - process it [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 11 00 00 [16:59:50]Write to MH i2c: E2 08 00 07 0A 80 11 00 00 00 00 00 00 8B [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]OFD Sender: No OFD packet to send [16:59:51]Read from MH i2c: E2 17 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 17 00 07 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [16:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:51]wFMCommunicate OK [16:59:51]requested_item fd.num is exist - process it [16:59:51]SAM_PROTO_GetFieldsCounters [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 13 00 00 [16:59:51]Write to MH i2c: E2 08 00 08 0A 80 13 00 00 00 00 00 00 8E [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 62 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 62 00 08 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 12 01 00 0E 04 04 00 C3 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 8E [16:59: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 12 01 00 0E 04 04 00 C3 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 [16:59:51]wFMCommunicate OK [16:59:51]SAM_PROTO_GetFieldsCounters done [16:59:51]requested_item shift.num is exist - process it [16:59:51]requested_item shift.opened is exist - process it [16:59:51]req_shift_opened [16:59:51]FM_GetShiftState [16:59:51]SAM_PROTO_GetShiftState [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 13 01 00 [16:59:51]Write to MH i2c: E2 08 00 09 0A 80 13 01 00 00 00 00 00 90 [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:52]Read from MH i2c: E2 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: E2 0E 00 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: E2 0E 00 09 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7E [16:59:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:59:52]wFMCommunicate OK [16:59:52]SAM_PROTO_GetShiftState done [16:59:52]FM_GetShiftState done [16:59:52]req_shift_opened done [16:59:52]requested_item shift.open_date is exist - process it [16:59:52]req_shift_open_date [16:59:52]req_shift_open_date done [16:59:52]produce_requested_data done [16:59:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70334,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [16:59:52]process_action_free close_receipt [16:59:52]json_value_free [16:59:52]json_value_free done [16:59:52]process_json_proto returns [16:59:52]Send response to host [16:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70334,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [16:59:52]free response buf [16:59:52]execute_script done [16:59:52]execute_script returns [16:59:52]free content buf [16:59:52]Sock 10.Close socket [16:59:52]Sock 10.Thread stoped [16:59:54]accept exits with 9 [16:59:54]New connection [16:59:54]New thread 3066699108 created [16:59:54]Thread 3066555748 joined [16:59:54]Waiting for new connection... [16:59:54] Sock 9.Parse request [16:59:54]Sock 9.Check first char [16:59:54]Sock 9.First char is OK [16:59:54]request: POST /json_proto HTTP/1.0 [16:59:54]Method: POST [16:59:54]URL: /json_proto [16:59:54]Method is POST - this is cgi request [16:59:54]url: /json_proto [16:59:54]query_string will be loaded in cgi processing [16:59:54]execute_cgi json_proto POST (null) [16:59:54]execute_cgi path=json_proto method=POST [16:59:54]POST find Content-Length [16:59:54]Host: 172.17.50.3:8080 [16:59:54]Content-Length: 689 [16:59:54]Content-Type: application/json [16:59:54] [16:59:54]POST finish read [16:59:54]Found Content-Length = 689 [16:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:59:54]execute_script... [16:59: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)2886103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:59:54]POST & json_proto [16:59:54]process_json_proto [16:59:54]json parsed OK: [16:59:54]protocol is kg_v1.0 [16:59:54]action value=close_receipt [16:59:54]process_action close_receipt [16:59:54]cmd_close_receipt [16:59:54]MH_GetDate [16:59:54]Write to MH i2c: F0 00 00 0A 0A 03 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 09 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 09 00 0A 0A 00 0B DA 17 67 6B 98 1E 66 F6 [16:59:54]GetLastDocTimeStamp 1729616383 [16:59:54]current date 1729616395 [16:59:54]FM_GetShiftState [16:59:54]SAM_PROTO_GetShiftState [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 13 01 00 [16:59:54]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 80 [16:59:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [16:59:55]wFMCommunicate OK [16:59:55]SAM_PROTO_GetShiftState done [16:59:55]FM_GetShiftState done [16:59:55]opened in 1729555832 [16:59:55]opened+sec_in_day 1729642232 [16:59:55]quantity*price = 100051 [16:59:55]sum+1 = 100052 [16:59: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 283 22.10.2024 16:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70335 ФПД: 17416787449432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70335&fm=17416787449432&tin=02508201610067®Number=0000000000156251&sum=100000 [16:59:58]StoreToDocumentArchive [16:59:58]shift 195 fd 70335 [16:59:58]save to /storage/0195/doc_00070335 [16:59:58]save last doc name /storage/0195/doc_00070335 to /storage/kkm_last_doc_name [16:59:58]save OK [16:59:58]Clear old archive folders... [16:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:59:58]tlvbuf is 00DBFEF0 [16:59:58]SAM_PROTO_ClearQueue [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 09 00 00 [16:59:58]Write to MH i2c: E2 08 00 18 0A 80 09 00 00 00 00 00 00 94 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [16:59:58]RAPDU: 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_ClearQueue done [16:59:58]KKMCreateOFDPacket [16:59:58]OFDProtocolAddRootSTLVToBuf [16:59:58]FM_MakeSignedData [16:59:58]FM_MakeSignedData [16:59:58]SAM_PROTO_SignData [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 0D 01 02 [16:59:58]Write to MH i2c: E2 08 00 19 0A 80 0D 01 02 00 00 00 00 9C [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [16:59:58]RAPDU: 90 00 [16:59:58]wFMCommunicate OK [16:59:58]wFMCommunicate request_size=255 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1B 01 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 12 01 [16:59:59]Write to MH i2c: E2 02 01 1A 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1B 01 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 12 01 00 00 02 [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:00]Read from MH i2c: E2 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 03 00 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [17:00:00]RAPDU: 90 00 [17:00:00]wFMCommunicate OK [17:00:00]wFMCommunicate request_size=16 [17:00:00]MH_SAM_APDU [17:00:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0F D7 29 6D D6 58 [17:00:00]Write to MH i2c: E2 13 00 1B 0A 80 0D 02 02 0B 00 00 35 04 06 00 0F D7 29 6D D6 58 00 00 9E [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:00]Read from MH i2c: E2 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 03 00 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [17:00:00]RAPDU: 90 00 [17:00:00]wFMCommunicate OK [17:00:00]wFMCommunicate request_size=4 [17:00:00]MH_SAM_APDU [17:00:00]CAPDU: 80 0D 03 02 [17:00:00]Write to MH i2c: E2 08 00 1C 0A 80 0D 03 02 00 00 00 00 A1 [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:00]Read from MH i2c: E2 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 0B 00 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 0B 00 1C 0A 00 35 76 0B 53 90 DC 81 64 90 00 FC [17:00:00]RAPDU: 35 76 0B 53 90 DC 81 64 90 00 [17:00:00]wFMCommunicate OK [17:00:00]SAM_PROTO_SignData done [17:00:00]FM_MakeSignedData done [17:00:00]CreateOFDProtocolMessage [17:00:00]wFMCommunicate request_size=4 [17:00:00]MH_SAM_APDU [17:00:00]CAPDU: 80 11 00 00 [17:00:00]Write to MH i2c: E2 08 00 1D 0A 80 11 00 00 00 00 00 00 A1 [17:00:00]Write i2c OK [17:00:00]MH_I2C_Read... [17:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:00]Read from MH i2c: E2 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 17 00 [17:00:00]MH_I2C_Read... [17:00:00]Read from MH i2c: E2 17 00 1D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [17:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:00:01]wFMCommunicate OK [17:00:01]CreateOFDProtocolMessage done [17:00:01]OFDSenderStorePacket 70335 [17:00:01]StoreOFDPacket docnum=70335 [17:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 93 33 0D 01 47 9B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1B 01 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 12 01 00 35 04 06 00 0F D7 29 6D D6 58 35 76 0B 53 90 DC 81 64 [17:00:01]CheckFolder [17:00:01]dirname=/storage/ofd_packets [17:00:01]CheckFolder done [17:00:01]ProducePacketName [17:00:01]name=ofd_packets/00070335 [17:00:01]NVStorageSaveData ofd_packets/00070335 [17:00:01]File name is /storage/ofd_packets/00070335 [17:00:01]Write 307 bytes [17:00:01]NVStorageSaveData done [17:00:01]OFDSenderStorePacket done [17:00:01]KKMCreateOFDPacket done [17:00:01]NVStorageSaveData kkm_last_timestamp [17:00:01]File name is /storage/kkm_last_timestamp [17:00:01]Write 4 bytes [17:00:01]NVStorageSaveData done [17:00:01]ExternCall_PrintAddStr [17:00:01]wPrintStart [17:00:01]Write to MH i2c: 01 00 00 1E 0A 28 [17:00:01]Write i2c OK [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: 01 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: 01 07 00 [17:00:01]MH_I2C_Read... [17:00:01]Read from MH i2c: 01 07 00 1E 0A 00 00 00 OFD Sender: Processing packet 70335 [packets to send 18, broken 17] [17:00:01]00 ProducePacketName [17:00:01]name=ofd_packets/00070335 [17:00:01]OFD Sender: To server: pG, [17:00:01]CommunicateWithHost lk.salyk.kg:30040 [17:00:01]ConnectInit lk.salyk.kg [17:00:01]00 FF 0F 3D [17:00:01]RasterBufferAndPrint [17:00:01]line Счет N : (1)2886103 [17:00:01]line ИНН: 02508201610067 [17:00:01]line Контрольно-Кассовый Чек [17:00:01]line ПРОДАЖА [17:00:01]line ТРК (МРК, ГНК) : 11 [17:00:01]line Товар: 2710194240 [17:00:01]line D-ENERGY Дт-К-2 [17:00:01]line 12.960 * 77.20 [17:00:01]line = 1000.51 [17:00:01]line НДС 12% НСП 1% [17:00:01]line > о реализуемом товаре [17:00:01]line ОКРУГЛЕНИЕ: -0.51 [17:00:01]line ИТОГО: 1000.00 [17:00:01]line Внесено: 1000.00 [17:00:01]line СДАЧА: 0.00 [17:00:01]line НСП 1% : 8.85 [17:00:01]line НДС 12% : 106.25 [17:00:01]line Наличными: 1000.00 [17:00:01]line Безнал.: 0.00 [17:00:01]line Место: АЗС № 85 "Партнер Нефть" [17:00:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:00:01]line СНО: Общий режим [17:00:01]line Чек 283 22.10.2024 16:59 [17:00:01]line Смена: 195 ФФД: 1.0 [17:00:01]line ЗНМ: 0300000167 [17:00:01]line РНМ: 0000000000156251 [17:00:01]line Версия ККМ: v1.0 [17:00:01]Connected sock=11 [17:00:01]line ФМ: 0000000000963346 [17:00:01]line ФД: 70335 [17:00:01]Data to sent: line ФПД: 17416787449432 [17:00:01]87 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T165955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70335&fm=17416787449432&tin=02508201610067®Number=0000000000156251&sum=100000 [17:00:01]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 93 33 0D 01 47 9B 5A 03 01 00 03 00 written 0, free lines is 4095 [17:00:01]01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1B 01 00 00 F4 03 04 00 0B DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 Write to MH i2c: 10 01 00 00 30 00 30 30 30 30 30 30 49 30 0A 30 30 31 35 36 53 32 [17:00:02]35 31 11 04 10 Write i2c OK [17:00:02]00 MH_I2C_Read... [17:00:02]30 30 30 30 30 Read from MH i2c: 30 01 30 [17:00:02]30 MH_I2C_Read... [17:00:02]30 30 39 36 33 33 34 36 10 04 04 00 BF 12 01 00 35 04 Read from MH i2c: 06 01 00 07 0F 00 D7 [17:00:02]29 MH_I2C_Read... [17:00:02]6D Read from MH i2c: D6 01 58 07 35 00 76 49 0B 0A 53 00 90 00 DC 00 81 64 [17:00:02]00 00 F4 0E 5C [17:00:02]RasterBufferAndPrint [17:00:02]line [17:00:02]line [17:00:02]line [17:00:02]line [17:00:02]line [17:00:02]written 0, free lines is 4095 [17:00:02]MH_Cut [17:00:02]Write to MH i2c: D1 01 00 50 0A 01 2C [17:00:02]Write i2c OK [17:00:02]MH_I2C_Read... [17:00:02]Read from MH i2c: D1 [17:00:02]MH_I2C_Read... [17:00:02]Read from MH i2c: D1 01 00 [17:00:02]MH_I2C_Read... [17:00:02]Read from MH i2c: D1 01 00 50 0A 00 2B [17:00:02]Write to MH i2c: 01 00 00 51 0A 5B [17:00:02]Write i2c OK [17:00:02]MH_I2C_Read... [17:00: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 34 36 4F 00 00 00 AA E6 47 00 0A 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 *** Cut start [17:00:02]30 30 30 30 *** Partial cut [17:00:03]30 *** CUTSNS_PIN = 1 [17:00:03]30 *** CUTSNS_PIN = 0 [17:00:03]30 30 30 39 36 33 33 34 36 10 04 04 00 BF 12 01 00 F4 03 04 00 B1 83 17 67 B6 04 01 00 00 71 CD 5A *** Brake cut motor [17:00:03]D2 C6 D9 4C 3E [17:00:03]CommunicateWithHost err = 0 [17:00:03]CheckOFDResponse [17:00:03]1017 (14) - 77093643461234 [17:00:03]1041 (16) - 0000000000963346 [17:00:03]1040 (4) - 70335 [17:00:03]1012 (4) - 22.10.2024 10:51 [17:00:03]1206 (1) - 0 [17:00:03]OFD Sender: Remove packet 70335 [17:00:03]ProducePacketName [17:00:03]name=ofd_packets/00070335 [17:00:03]NVStorageDeleteData [17:00:03]Read from MH i2c: 01 [17:00:03]MH_I2C_Read... [17:00:03]*** Stop cut motor [17:00:03]*** Cut end [17:00:03]Read from MH i2c: 01 07 00 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 FF 0F 70 [17:00:03]process_action close_receipt done [17:00:03]requested_data is exist [17:00:03]produce_requested_data [17:00:03]requested_item fm.sn is exist - process it [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 11 00 00 [17:00:03]Write to MH i2c: E2 08 00 52 0A 80 11 00 00 00 00 00 00 D6 [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:03]Read from MH i2c: E2 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 17 00 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 17 00 52 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [17:00:03]RAPDU: 11 OFD Sender: No OFD packet to send [17:00:03]04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:00:03]wFMCommunicate OK [17:00:03]requested_item fd.num is exist - process it [17:00:03]SAM_PROTO_GetFieldsCounters [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 13 00 00 [17:00:03]Write to MH i2c: E2 08 00 53 0A 80 13 00 00 00 00 00 00 D9 [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 62 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 62 00 53 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 12 01 00 0E 04 04 00 C3 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 DD [17:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 12 01 00 0E 04 04 00 C3 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:00:04]wFMCommunicate OK [17:00:04]SAM_PROTO_GetFieldsCounters done [17:00:04]requested_item shift.num is exist - process it [17:00:04]requested_item shift.opened is exist - process it [17:00:04]req_shift_opened [17:00:04]FM_GetShiftState [17:00:04]SAM_PROTO_GetShiftState [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 13 01 00 [17:00:04]Write to MH i2c: E2 08 00 54 0A 80 13 01 00 00 00 00 00 DB [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 0E 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 0E 00 54 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [17:00:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:00:04]wFMCommunicate OK [17:00:04]SAM_PROTO_GetShiftState done [17:00:04]FM_GetShiftState done [17:00:04]req_shift_opened done [17:00:04]requested_item shift.open_date is exist - process it [17:00:04]req_shift_open_date [17:00:04]req_shift_open_date done [17:00:04]produce_requested_data done [17:00:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70335,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:00:04]process_action_free close_receipt [17:00:04]json_value_free [17:00:04]json_value_free done [17:00:04]process_json_proto returns [17:00:04]Send response to host [17:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70335,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:00:04]free response buf [17:00:04]execute_script done [17:00:04]execute_script returns [17:00:04]free content buf [17:00:04]Sock 9.Close socket [17:00:04]Sock 9.Thread stoped [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:14]accept exits with 10 [17:00:14]New connection [17:00:14]New thread 3066555748 created [17:00:14]Thread 3066699108 joined [17:00:14]Waiting for new connection... [17:00:14] Sock 10.Parse request [17:00:14]Sock 10.Check first char [17:00:14]Sock 10.First char is OK [17:00:14]request: POST /json_proto HTTP/1.0 [17:00:14]Method: POST [17:00:14]URL: /json_proto [17:00:14]Method is POST - this is cgi request [17:00:14]url: /json_proto [17:00:14]query_string will be loaded in cgi processing [17:00:14]execute_cgi json_proto POST (null) [17:00:14]execute_cgi path=json_proto method=POST [17:00:14]POST find Content-Length [17:00:14]Host: 172.17.50.3:8080 [17:00:14]Content-Length: 678 [17:00:14]Content-Type: application/json [17:00:14] [17:00:14]POST finish read [17:00:14]Found Content-Length = 678 [17:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:00:14]execute_script... [17:00: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)2886105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:00:14]POST & json_proto [17:00:14]process_json_proto [17:00:14]json parsed OK: [17:00:14]protocol is kg_v1.0 [17:00:14]action value=close_receipt [17:00:14]process_action close_receipt [17:00:14]cmd_close_receipt [17:00:14]MH_GetDate [17:00:14]Write to MH i2c: F0 00 00 55 0A 4E [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 09 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 09 00 55 0A 00 1F DA 17 67 6B 98 1E 66 55 [17:00:15]GetLastDocTimeStamp 1729616395 [17:00:15]current date 1729616415 [17:00:15]FM_GetShiftState [17:00:15]SAM_PROTO_GetShiftState [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 13 01 00 [17:00:15]Write to MH i2c: E2 08 00 56 0A 80 13 01 00 00 00 00 00 DD [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0E 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0E 00 56 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CB [17:00:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:00:15]wFMCommunicate OK [17:00:15]SAM_PROTO_GetShiftState done [17:00:15]FM_GetShiftState done [17:00:15]opened in 1729555832 [17:00:15]opened+sec_in_day 1729642232 [17:00:15]quantity*price = 50010 [17:00:15]sum+1 = 50012 [17:00: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 284 22.10.2024 17:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70336 ФПД: 96797971132405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170015&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70336&fm=96797971132405&tin=02508201610067®Number=0000000000156251&sum=50000 [17:00:18]StoreToDocumentArchive [17:00:18]shift 195 fd 70336 [17:00:18]save to /storage/0195/doc_00070336 [17:00:18]save last doc name /storage/0195/doc_00070336 to /storage/kkm_last_doc_name [17:00:18]save OK [17:00:18]Clear old archive folders... [17:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:18]tlvbuf is 00DBF7B0 [17:00:18]SAM_PROTO_ClearQueue [17:00:18]wFMCommunicate request_size=4 [17:00:18]MH_SAM_APDU [17:00:18]CAPDU: 80 09 00 00 [17:00:18]Write to MH i2c: E2 08 00 63 0A 80 09 00 00 00 00 00 00 DF [17:00:18]Write i2c OK [17:00:18]MH_I2C_Read... [17:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:18]Read from MH i2c: E2 [17:00:18]MH_I2C_Read... [17:00:18]OFD Sender: No OFD packet to send [17:00:18]Read from MH i2c: E2 03 00 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [17:00:18]RAPDU: 90 00 [17:00:18]wFMCommunicate OK [17:00:18]SAM_PROTO_ClearQueue done [17:00:18]KKMCreateOFDPacket [17:00:18]OFDProtocolAddRootSTLVToBuf [17:00:18]FM_MakeSignedData [17:00:18]FM_MakeSignedData [17:00:18]SAM_PROTO_SignData [17:00:18]wFMCommunicate request_size=4 [17:00:18]MH_SAM_APDU [17:00:18]CAPDU: 80 0D 01 02 [17:00:18]Write to MH i2c: E2 08 00 64 0A 80 0D 01 02 00 00 00 00 E7 [17:00:19]Write i2c OK [17:00:19]MH_I2C_Read... [17:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:19]Read from MH i2c: E2 [17:00:19]MH_I2C_Read... [17:00:19]Read from MH i2c: E2 03 00 [17:00:19]MH_I2C_Read... [17:00:19]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [17:00:19]RAPDU: 90 00 [17:00:19]wFMCommunicate OK [17:00:19]wFMCommunicate request_size=255 [17:00:19]MH_SAM_APDU [17:00: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 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 1C 01 00 00 F4 03 04 00 1F DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 12 01 00 35 04 06 00 58 [17:00:19]Write to MH i2c: E2 02 01 65 0A 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 1C 01 00 00 F4 03 04 00 1F DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 12 01 00 35 04 06 00 58 00 00 CA [17:00:20]Write i2c OK [17:00:20]MH_I2C_Read... [17:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:20]Read from MH i2c: E2 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 03 00 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [17:00:20]RAPDU: 90 00 [17:00:20]wFMCommunicate OK [17:00:20]wFMCommunicate request_size=10 [17:00:20]MH_SAM_APDU [17:00:20]CAPDU: 80 0D 02 02 05 09 88 AF 2F F5 [17:00:20]Write to MH i2c: E2 0D 00 66 0A 80 0D 02 02 05 00 09 88 AF 2F F5 00 00 58 [17:00:20]Write i2c OK [17:00:20]MH_I2C_Read... [17:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:20]Read from MH i2c: E2 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 03 00 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [17:00:20]RAPDU: 90 00 [17:00:20]wFMCommunicate OK [17:00:20]wFMCommunicate request_size=4 [17:00:20]MH_SAM_APDU [17:00:20]CAPDU: 80 0D 03 02 [17:00:21]Write to MH i2c: E2 08 00 67 0A 80 0D 03 02 00 00 00 00 EC [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 0B 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 0B 00 67 0A 00 17 FD FA EA 9B 7D E5 26 90 00 08 [17:00:21]RAPDU: 17 FD FA EA 9B 7D E5 26 90 00 [17:00:21]wFMCommunicate OK [17:00:21]SAM_PROTO_SignData done [17:00:21]FM_MakeSignedData done [17:00:21]CreateOFDProtocolMessage [17:00:21]wFMCommunicate request_size=4 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 11 00 00 [17:00:21]Write to MH i2c: E2 08 00 68 0A 80 11 00 00 00 00 00 00 EC [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 17 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 17 00 68 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [17:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:00:21]wFMCommunicate OK [17:00:21]CreateOFDProtocolMessage done [17:00:21]OFDSenderStorePacket 70336 [17:00:21]StoreOFDPacket docnum=70336 [17:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B6 FA 07 01 D2 D9 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 1C 01 00 00 F4 03 04 00 1F DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 12 01 00 35 04 06 00 58 09 88 AF 2F F5 17 FD FA EA 9B 7D E5 26 [17:00:21]CheckFolder [17:00:21]dirname=/storage/ofd_packets [17:00:21]CheckFolder done [17:00:21]ProducePacketName [17:00:21]name=ofd_packets/00070336 [17:00:21]NVStorageSaveData ofd_packets/00070336 [17:00:21]File name is /storage/ofd_packets/00070336 [17:00:21]Write 301 bytes [17:00:21]NVStorageSaveData done [17:00:21]OFDSenderStorePacket done [17:00:21]KKMCreateOFDPacket done [17:00:21]NVStorageSaveData kkm_last_timestamp [17:00:21]File name is /storage/kkm_last_timestamp [17:00:21]Write 4 bytes [17:00:21]NVStorageSaveData done [17:00:21]ExternCall_PrintAddStr [17:00:21]wPrintStart [17:00:21]Write to MH i2c: 01 00 00 69 0A 73 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: 01 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: 01 07 00 [17:00:21]MH_I2C_Read... [17:00:21]OFD Sender: Processing packet 70336 [packets to send 18, broken 17] [17:00:21]Read from MH i2c: ProducePacketName [17:00:21]01 07 00 69 0A name=ofd_packets/00070336 [17:00:21]00 OFD Sender: To server: pG, [17:00:21]00 00 00 00 FF CommunicateWithHost lk.salyk.kg:30040 [17:00:21]0F ConnectInit lk.salyk.kg [17:00:21]88 [17:00:21]RasterBufferAndPrint [17:00:21]line Счет N : (1)2886105 [17:00:21]line ИНН: 02508201610067 [17:00:21]line Контрольно-Кассовый Чек [17:00:21]line ПРОДАЖА [17:00:21]line ТРК (МРК, ГНК) : 43 [17:00:21]line Товар: 2710124500 [17:00:21]line Аи-95-К-5 [17:00:21]line 6.740 * 74.20 [17:00:21]line = 500.11 [17:00:21]line НДС 12% НСП 1% [17:00:21]line > о реализуемом товаре [17:00:21]line ОКРУГЛЕНИЕ: -0.11 [17:00:21]line ИТОГО: 500.00 [17:00:21]line Внесено: 500.00 [17:00:21]line СДАЧА: 0.00 [17:00:21]line НСП 1% : 4.43 [17:00:21]line НДС 12% : 53.11 [17:00:21]line Наличными: 500.00 [17:00:21]line Безнал.: 0.00 [17:00:21]line Место: АЗС № 85 "Партнер Нефть" [17:00:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:00:21]line СНО: Общий режим [17:00:21]line Чек 284 22.10.2024 17:00 [17:00:21]line Смена: 195 ФФД: 1.0 [17:00:21]line ЗНМ: 0300000167 [17:00:21]line РНМ: 0000000000156251 [17:00:21]line Версия ККМ: v1.0 [17:00:21]line ФМ: 0000000000963346 [17:00:21]line ФД: 70336 [17:00:21]line ФПД: 96797971132405 [17:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170015&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70336&fm=96797971132405&tin=02508201610067®Number=0000000000156251&sum=50000 [17:00:21]Connected sock=11 [17:00:21]Data to sent: 87 95 written 0, free lines is 4095 [17:00:21]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B6 FA 07 01 D2 D9 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 Write to MH i2c: 50 01 C3 00 00 00 00 94 00 0A 00 9E 39 [17:00:22]04 06 00 00 00 00 Write i2c OK [17:00:22]00 MH_I2C_Read... [17:00:22]00 Read from MH i2c: 00 1F 01 04 [17:00:22]02 MH_I2C_Read... [17:00:22]00 01 00 12 Read from MH i2c: 04 01 04 00 1C 01 00 07 00 00 F4 03 04 00 1F DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 [17:00:22]04 MH_I2C_Read... [17:00:22]Read from MH i2c: 01 07 00 10 94 00 0A 00 00 00 00 30 00 30 65 0D 17 [17:00:22]30 RasterBufferAndPrint [17:00:22]30 line [17:00:22]30 line [17:00:22]30 line [17:00:22]30 line [17:00:22]30 line [17:00:22]30 written 0, free lines is 4063 [17:00:22]30 39 36 33 MH_Cut [17:00:22]33 Write to MH i2c: 34 D1 36 01 10 00 04 9B 04 0A 00 01 C0 77 12 [17:00:22]01 00 35 04 06 00 Write i2c OK [17:00:22]58 MH_I2C_Read... [17:00:22]09 Read from MH i2c: 88 D1 AF [17:00:22]2F MH_I2C_Read... [17:00:22]F5 Read from MH i2c: 17 D1 01 00 [17:00:22]MH_I2C_Read... [17:00:22]FD FA EA 9B 7D E5 26 [17:00:23]Read from MH i2c: D1 01 00 9B 0A 00 76 [17:00:23]Write to MH i2c: 01 00 00 9C 0A A6 [17:00:23]*** Cut start [17:00:23]*** Partial cut [17:00:23]*** CUTSNS_PIN = 1 [17:00:23]*** CUTSNS_PIN = 0 [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00: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 34 36 *** Brake cut motor [17:00:23]4F 00 00 00 DC 88 47 00 09 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 Read from MH i2c: 33 01 34 11 04 10 00 30 30 30 [17:00:23]30 MH_I2C_Read... [17:00:23]30 Read from MH i2c: 30 01 30 07 30 00 30 [17:00:23]MH_I2C_Read... [17:00:23]30 39 36 Read from MH i2c: 33 01 33 34 36 10 04 04 07 00 C0 12 00 01 00 F4 9C 03 04 0A 00 00 *** Stop cut motor [17:00:23]*** Cut end [17:00:23]C5 00 83 00 17 67 B6 04 01 00 00 00 00 2B DE 1F FF CA 0F 1C 35 DC DB [17:00:23]BB CommunicateWithHost err = 0 [17:00:23] [17:00:23]CheckOFDResponse [17:00:23]1017 (14) - 77093643461234 [17:00:23]1041 (16) - 0000000000963346 [17:00:23]1040 (4) - 70336 [17:00:23]1012 (4) - 22.10.2024 10:51 [17:00:23]process_action close_receipt done [17:00:23]1206 (1) - 0 [17:00:23]requested_data is exist [17:00:24]OFD Sender: Remove packet 70336 [17:00:24]produce_requested_data [17:00:24]ProducePacketName [17:00:24]requested_item fm.sn is exist - process it [17:00:24]name=ofd_packets/00070336 [17:00:24]wFMCommunicate request_size=4 [17:00:24]NVStorageDeleteData [17:00:24]MH_SAM_APDU [17:00:24]CAPDU: 80 11 00 00 [17:00:24]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:24]Read from MH i2c: E2 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 17 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [17:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:00:24]wFMCommunicate OK [17:00:24]requested_item fd.num is exist - process it [17:00:24]SAM_PROTO_GetFieldsCounters [17:00:24]wFMCommunicate request_size=4 [17:00:24]MH_SAM_APDU [17:00:24]CAPDU: 80 13 00 00 [17:00:24]Write to MH i2c: E2 08 00 9E 0A 80 13 00 00 00 00 00 00 24 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:24]Read from MH i2c: E2 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 62 00 [17:00:24]MH_I2C_Read... [17:00:24]OFD Sender: No OFD packet to send [17:00:24]Read from MH i2c: E2 62 00 9E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 12 01 00 0E 04 04 00 C3 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 2C [17:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 12 01 00 0E 04 04 00 C3 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:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_GetFieldsCounters done [17:00:25]requested_item shift.num is exist - process it [17:00:25]requested_item shift.opened is exist - process it [17:00:25]req_shift_opened [17:00:25]FM_GetShiftState [17:00:25]SAM_PROTO_GetShiftState [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 13 01 00 [17:00:25]Write to MH i2c: E2 08 00 9F 0A 80 13 01 00 00 00 00 00 26 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 9F 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 14 [17:00:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_GetShiftState done [17:00:25]FM_GetShiftState done [17:00:25]req_shift_opened done [17:00:25]requested_item shift.open_date is exist - process it [17:00:25]req_shift_open_date [17:00:25]req_shift_open_date done [17:00:25]produce_requested_data done [17:00:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70336,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:00:25]process_action_free close_receipt [17:00:25]json_value_free [17:00:25]json_value_free done [17:00:25]process_json_proto returns [17:00:25]Send response to host [17:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70336,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:00:25]free response buf [17:00:25]execute_script done [17:00:25]execute_script returns [17:00:25]free content buf [17:00:25]Sock 10.Close socket [17:00:25]Sock 10.Thread stoped [17:00:25]accept exits with 9 [17:00:25]New connection [17:00:25]New thread 3066699108 created [17:00:25]Thread 3066555748 joined [17:00:25]Waiting for new connection... [17:00:25] Sock 9.Parse request [17:00:25]Sock 9.Check first char [17:00:25]Sock 9.First char is OK [17:00:25]request: POST /json_proto HTTP/1.0 [17:00:25]Method: POST [17:00:25]URL: /json_proto [17:00:25]Method is POST - this is cgi request [17:00:25]url: /json_proto [17:00:25]query_string will be loaded in cgi processing [17:00:25]execute_cgi json_proto POST (null) [17:00:25]execute_cgi path=json_proto method=POST [17:00:25]POST find Content-Length [17:00:25]Host: 172.17.50.3:8080 [17:00:25]Content-Length: 682 [17:00:25]Content-Type: application/json [17:00:25] [17:00:25]POST finish read [17:00:25]Found Content-Length = 682 [17:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:00:25]execute_script... [17:00: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)2886104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:00:25]POST & json_proto [17:00:25]process_json_proto [17:00:25]json parsed OK: [17:00:25]protocol is kg_v1.0 [17:00:25]action value=close_receipt [17:00:25]process_action close_receipt [17:00:25]cmd_close_receipt [17:00:25]MH_GetDate [17:00:25]Write to MH i2c: F0 00 00 A0 0A 99 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 09 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: F0 09 00 A0 0A 00 2A DA 17 67 6B 98 1E 66 AB [17:00:25]GetLastDocTimeStamp 1729616415 [17:00:25]current date 1729616426 [17:00:25]FM_GetShiftState [17:00:25]SAM_PROTO_GetShiftState [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 13 01 00 [17:00:25]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [17:00:26]Write i2c OK [17:00:26]MH_I2C_Read... [17:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:26]Read from MH i2c: E2 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 0E 00 [17:00:26]MH_I2C_Read... [17:00:26]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 16 [17:00:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:00:26]wFMCommunicate OK [17:00:26]SAM_PROTO_GetShiftState done [17:00:26]FM_GetShiftState done [17:00:26]opened in 1729555832 [17:00:26]opened+sec_in_day 1729642232 [17:00:26]quantity*price = 50025 [17:00:26]sum+1 = 50026 [17:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 285 22.10.2024 17:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70337 ФПД: 157807395706114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70337&fm=157807395706114&tin=02508201610067®Number=0000000000156251&sum=50000 [17:00:30]StoreToDocumentArchive [17:00:30]shift 195 fd 70337 [17:00:30]save to /storage/0195/doc_00070337 [17:00:30]save last doc name /storage/0195/doc_00070337 to /storage/kkm_last_doc_name [17:00:30]save OK [17:00:30]Clear old archive folders... [17:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:00:30]tlvbuf is 00E05590 [17:00:30]SAM_PROTO_ClearQueue [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 09 00 00 [17:00:30]Write to MH i2c: E2 08 00 AE 0A 80 09 00 00 00 00 00 00 2A [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]SAM_PROTO_ClearQueue done [17:00:30]KKMCreateOFDPacket [17:00:30]OFDProtocolAddRootSTLVToBuf [17:00:30]FM_MakeSignedData [17:00:30]FM_MakeSignedData [17:00:30]SAM_PROTO_SignData [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 01 02 [17:00:30]Write to MH i2c: E2 08 00 AF 0A 80 0D 01 02 00 00 00 00 32 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]wFMCommunicate request_size=255 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 1D 01 00 00 F4 03 04 00 2A DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 12 01 00 35 04 06 00 8F 86 [17:00:31]Write to MH i2c: E2 02 01 B0 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 1D 01 00 00 F4 03 04 00 2A DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 12 01 00 35 04 06 00 8F 86 00 00 C1 [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 03 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [17:00:32]RAPDU: 90 00 [17:00:32]wFMCommunicate OK [17:00:32]wFMCommunicate request_size=9 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 0D 02 02 04 65 C3 95 02 [17:00:32]Write to MH i2c: E2 0C 00 B1 0A 80 0D 02 02 04 00 65 C3 95 02 00 00 FC [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 03 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [17:00:32]RAPDU: 90 00 [17:00:32]wFMCommunicate OK [17:00:32]wFMCommunicate request_size=4 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 0D 03 02 [17:00:32]Write to MH i2c: E2 08 00 B2 0A 80 0D 03 02 00 00 00 00 37 [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 0B 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 0B 00 B2 0A 00 D2 26 8E 10 5D B5 67 8D 90 00 D4 [17:00:32]RAPDU: D2 26 8E 10 5D B5 67 8D 90 00 [17:00:32]wFMCommunicate OK [17:00:32]SAM_PROTO_SignData done [17:00:32]FM_MakeSignedData done [17:00:32]CreateOFDProtocolMessage [17:00:32]wFMCommunicate request_size=4 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 11 00 00 [17:00:32]Write to MH i2c: E2 08 00 B3 0A 80 11 00 00 00 00 00 00 37 [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 17 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 17 00 B3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [17:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:00:33]wFMCommunicate OK [17:00:33]CreateOFDProtocolMessage done [17:00:33]OFDSenderStorePacket 70337 [17:00:33]StoreOFDPacket docnum=70337 [17:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7F 7F 06 01 CF 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 1D 01 00 00 F4 03 04 00 2A DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 12 01 00 35 04 06 00 8F 86 65 C3 95 02 D2 26 8E 10 5D B5 67 8D [17:00:33]CheckFolder [17:00:33]dirname=/storage/ofd_packets [17:00:33]CheckFolder done [17:00:33]ProducePacketName [17:00:33]name=ofd_packets/00070337 [17:00:33]NVStorageSaveData ofd_packets/00070337 [17:00:33]File name is /storage/ofd_packets/00070337 [17:00:33]Write 300 bytes [17:00:33]NVStorageSaveData done [17:00:33]OFDSenderStorePacket done [17:00:33]KKMCreateOFDPacket done [17:00:33]NVStorageSaveData kkm_last_timestamp [17:00:33]File name is /storage/kkm_last_timestamp [17:00:33]Write 4 bytes [17:00:33]NVStorageSaveData done [17:00:33]ExternCall_PrintAddStr [17:00:33]wPrintStart [17:00:33]Write to MH i2c: 01 00 00 B4 0A BE [17:00:33]Write i2c OK [17:00:33]MH_I2C_Read... [17:00:33]Read from MH i2c: 01 [17:00:33]MH_I2C_Read... [17:00:33]Read from MH i2c: 01 07 00 [17:00:33]MH_I2C_Read... [17:00:33]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [17:00:33]OFD Sender: Processing packet 70337 [packets to send 18, broken 17] [17:00:33]RasterBufferAndPrint [17:00:33]ProducePacketName [17:00:33]line Счет N : (1)2886104 [17:00:33]line ИНН: 02508201610067 [17:00:33]line Контрольно-Кассовый Чек [17:00:33]line ПРОДАЖА [17:00:33]name=ofd_packets/00070337 [17:00:33]line ТРК (МРК, ГНК) : 71 [17:00:33]OFD Sender: To server: pG, [17:00:33]line Товар: 2711129700 [17:00:33]line ГАЗ-К-3 [17:00:33]line 12.860 * 38.90 [17:00:33]line = 500.25 [17:00:33]CommunicateWithHost lk.salyk.kg:30040 [17:00:33]line НДС 12% НСП 1% [17:00:33]ConnectInit lk.salyk.kg [17:00:33]line > о реализуемом товаре [17:00:33]line ОКРУГЛЕНИЕ: -0.25 [17:00:33]line ИТОГО: 500.00 [17:00:33]line Внесено: 500.00 [17:00:33]line СДАЧА: 0.00 [17:00:33]line НСП 1% : 4.43 [17:00:33]line НДС 12% : 53.12 [17:00:33]line Наличными: 500.00 [17:00:33]line Безнал.: 0.00 [17:00:33]line Место: АЗС № 85 "Партнер Нефть" [17:00:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:00:33]line СНО: Общий режим [17:00:33]line Чек 285 22.10.2024 17:00 [17:00:33]line Смена: 195 ФФД: 1.0 [17:00:33]line ЗНМ: 0300000167 [17:00:33]line РНМ: 0000000000156251 [17:00:33]line Версия ККМ: v1.0 [17:00:33]line ФМ: 0000000000963346 [17:00:33]line ФД: 70337 [17:00:33]line ФПД: 157807395706114 [17:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70337&fm=157807395706114&tin=02508201610067®Number=0000000000156251&sum=50000 [17:00:33]written 0, free lines is 4095 [17:00:33]Connected sock=11 [17:00: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 34 36 0E 01 00 00 7F 7F 06 01 CF 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 Write to MH i2c: 01 01 00 00 00 00 00 DF 00 0A EE E9 03 [17:00:33]0F 00 F2 03 01 Write i2c OK [17:00:33]00 MH_I2C_Read... [17:00:33]01 F3 03 06 Read from MH i2c: 00 01 C0 14 00 00 00 [17:00:34]00 MH_I2C_Read... [17:00:34]07 Read from MH i2c: 04 01 06 07 00 00 50 [17:00:34]C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 MH_I2C_Read... [17:00:34]00 Read from MH i2c: 01 01 00 07 12 00 04 DF 04 0A 00 00 00 00 00 5C 0D 59 [17:00:34]RasterBufferAndPrint [17:00:34]line [17:00:34]line [17:00:34]line [17:00:34]line [17:00:34]line [17:00:34]00 1D 01 00 written 0, free lines is 4004 [17:00:34]00 F4 03 04 00 2A MH_Cut [17:00:34]DA Write to MH i2c: 17 D1 67 01 0E 00 04 04 00 C3 00 E6 00 0A 00 B9 04 01 00 01 01 C2 0D [17:00:34]04 10 00 30 30 30 Write i2c OK [17:00:34]30 MH_I2C_Read... [17:00:34]30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 Read from MH i2c: D1 [17:00:34]MH_I2C_Read... [17:00:34]30 *** Cut start [17:00:34]30 *** Partial cut [17:00:34]30 *** CUTSNS_PIN = 1 [17:00:34]30 *** CUTSNS_PIN = 0 [17:00:34]30 Read from MH i2c: D1 01 00 [17:00:34]30 MH_I2C_Read... [17:00:34]30 39 36 Read from MH i2c: 33 D1 33 34 36 10 04 01 04 00 00 E6 C1 0A 12 00 01 C1 00 [17:00:34]Write to MH i2c: 01 00 35 00 04 E7 0A F1 [17:00:34]06 00 8F 86 65 Write i2c OK [17:00:34]C3 MH_I2C_Read... [17:00:34]95 02 D2 26 8E 10 5D B5 67 8D [17:00:34]*** Brake cut motor [17:00:35]Received data: 87 95 F6 70 Read from MH i2c: 47 01 2C [17:00:35]01 MH_I2C_Read... [17:00:35]00 Read from MH i2c: 30 01 30 07 30 00 30 [17:00:35]30 MH_I2C_Read... [17:00:35]30 Read from MH i2c: 30 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [17:00:35]process_action close_receipt done [17:00:35]requested_data is exist [17:00:35]produce_requested_data [17:00:35]30 requested_item fm.sn is exist - process it [17:00:35]wFMCommunicate request_size=4 [17:00:35]MH_SAM_APDU [17:00:35]30 *** Stop cut motor [17:00:35]30 CAPDU: 39 *** Cut end [17:00:35]36 80 33 11 33 00 34 00 36 [17:00:35]4F Write to MH i2c: E2 08 00 E8 00 0A 00 80 11 00 00 00 00 35 00 DF 00 47 00 00 6C 8A [17:00:35]61 Write i2c OK [17:00:35]A5 07 01 00 07 00 MH_I2C_Read... [17:00:35]3B 00 F9 03 0E 00 37 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:35]37 30 Read from MH i2c: 39 E2 33 [17:00:35]36 MH_I2C_Read... [17:00:35]34 Read from MH i2c: 33 E2 17 00 [17:00:35]MH_I2C_Read... [17:00:35]34 36 31 32 33 34 11 04 10 00 30 Read from MH i2c: 30 E2 17 00 E8 0A 30 00 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 39 36 36 33 33 34 36 33 10 33 04 04 00 C1 12 34 01 36 00 90 F4 00 03 BE 04 [17:00:36]00 RAPDU: D1 83 17 67 B6 11 04 04 01 10 00 00 00 30 44 30 30 30 30 30 98 30 24 30 30 9A 30 22 33 20 B3 [17:00:36]CommunicateWithHost err = 0 [17:00:36]CheckOFDResponse [17:00:36]1017 (14) - 77093643461234 [17:00:36]1041 (16) - 0000000000963346 [17:00:36]1040 (4) - 70337 [17:00:36]1012 (4) - 22.10.2024 10:52 [17:00:36]1206 (1) - 0 [17:00:36]OFD Sender: Remove packet 70337 [17:00:36]ProducePacketName [17:00:36]name=ofd_packets/00070337 [17:00:36]NVStorageDeleteData [17:00:36]39 36 33 33 34 36 90 00 [17:00:36]wFMCommunicate OK [17:00:36]requested_item fd.num is exist - process it [17:00:36]SAM_PROTO_GetFieldsCounters [17:00:36]wFMCommunicate request_size=4 [17:00:36]MH_SAM_APDU [17:00:36]CAPDU: 80 13 00 00 [17:00:36]Write to MH i2c: E2 08 00 E9 0A 80 13 00 00 00 00 00 00 6F [17:00:36]Write i2c OK [17:00:36]MH_I2C_Read... [17:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:36]Read from MH i2c: E2 [17:00:36]MH_I2C_Read... [17:00:36]Read from MH i2c: E2 62 00 [17:00:36]MH_I2C_Read... [17:00:36]Read from MH i2c: E2 62 00 E9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 12 01 00 0E 04 04 00 C3 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 OFD Sender: No OFD packet to send [17:00:36]00 90 00 7B [17:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 12 01 00 0E 04 04 00 C3 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:00:37]wFMCommunicate OK [17:00:37]SAM_PROTO_GetFieldsCounters done [17:00:37]requested_item shift.num is exist - process it [17:00:37]requested_item shift.opened is exist - process it [17:00:37]req_shift_opened [17:00:37]FM_GetShiftState [17:00:37]SAM_PROTO_GetShiftState [17:00:37]wFMCommunicate request_size=4 [17:00:37]MH_SAM_APDU [17:00:37]CAPDU: 80 13 01 00 [17:00:37]Write to MH i2c: E2 08 00 EA 0A 80 13 01 00 00 00 00 00 71 [17:00:37]Write i2c OK [17:00:37]MH_I2C_Read... [17:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:37]Read from MH i2c: E2 [17:00:37]MH_I2C_Read... [17:00:37]Read from MH i2c: E2 0E 00 [17:00:37]MH_I2C_Read... [17:00:37]Read from MH i2c: E2 0E 00 EA 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [17:00:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:00:37]wFMCommunicate OK [17:00:37]SAM_PROTO_GetShiftState done [17:00:37]FM_GetShiftState done [17:00:37]req_shift_opened done [17:00:37]requested_item shift.open_date is exist - process it [17:00:37]req_shift_open_date [17:00:37]req_shift_open_date done [17:00:37]produce_requested_data done [17:00:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70337,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:00:37]process_action_free close_receipt [17:00:37]json_value_free [17:00:37]json_value_free done [17:00:37]process_json_proto returns [17:00:37]Send response to host [17:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70337,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:00:37]free response buf [17:00:37]execute_script done [17:00:37]execute_script returns [17:00:37]free content buf [17:00:37]Sock 9.Close socket [17:00:37]Sock 9.Thread stoped [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:22]accept exits with 10 [17:01:22]New connection [17:01:22]New thread 3066555748 created [17:01:22]Thread 3066699108 joined [17:01:22]Waiting for new connection... [17:01:22] Sock 10.Parse request [17:01:22]Sock 10.Check first char [17:01:22]Sock 10.First char is OK [17:01:22]request: POST /json_proto HTTP/1.0 [17:01:22]Method: POST [17:01:22]URL: /json_proto [17:01:22]Method is POST - this is cgi request [17:01:22]url: /json_proto [17:01:22]query_string will be loaded in cgi processing [17:01:22]execute_cgi json_proto POST (null) [17:01:22]execute_cgi path=json_proto method=POST [17:01:22]POST find Content-Length [17:01:22]Host: 172.17.50.3:8080 [17:01:22]Content-Length: 679 [17:01:22]Content-Type: application/json [17:01:22] [17:01:22]POST finish read [17:01:22]Found Content-Length = 679 [17:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:01:22]execute_script... [17:01: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)2886106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:01:22]POST & json_proto [17:01:22]process_json_proto [17:01:22]json parsed OK: [17:01:22]protocol is kg_v1.0 [17:01:22]action value=close_receipt [17:01:22]process_action close_receipt [17:01:22]cmd_close_receipt [17:01:22]MH_GetDate [17:01:22]Write to MH i2c: F0 00 00 EB 0A E4 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: F0 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: F0 09 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: F0 09 00 EB 0A 00 63 DA 17 67 6B 98 1E 66 2F [17:01:22]GetLastDocTimeStamp 1729616426 [17:01:22]current date 1729616483 [17:01:22]FM_GetShiftState [17:01:22]SAM_PROTO_GetShiftState [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 13 01 00 [17:01:22]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:22]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0E 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 61 [17:01:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:01:23]wFMCommunicate OK [17:01:23]SAM_PROTO_GetShiftState done [17:01:23]FM_GetShiftState done [17:01:23]opened in 1729555832 [17:01:23]opened+sec_in_day 1729642232 [17:01:23]quantity*price = 70044 [17:01:23]sum+1 = 70045 [17:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 286 22.10.2024 17:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70338 ФПД: 234593458919949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170123&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70338&fm=234593458919949&tin=02508201610067®Number=0000000000156251&sum=70000 [17:01:26]StoreToDocumentArchive [17:01:26]shift 195 fd 70338 [17:01:26]save to /storage/0195/doc_00070338 [17:01:26]save last doc name /storage/0195/doc_00070338 to /storage/kkm_last_doc_name [17:01:26]OFD Sender: No OFD packet to send [17:01:26]save OK [17:01:26]Clear old archive folders... [17:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:26]tlvbuf is 00E13230 [17:01:26]SAM_PROTO_ClearQueue [17:01:26]wFMCommunicate request_size=4 [17:01:26]MH_SAM_APDU [17:01:26]CAPDU: 80 09 00 00 [17:01:26]Write to MH i2c: E2 08 00 F9 0A 80 09 00 00 00 00 00 00 75 [17:01:26]Write i2c OK [17:01:26]MH_I2C_Read... [17:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:27]Read from MH i2c: E2 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [17:01:27]RAPDU: 90 00 [17:01:27]wFMCommunicate OK [17:01:27]SAM_PROTO_ClearQueue done [17:01:27]KKMCreateOFDPacket [17:01:27]OFDProtocolAddRootSTLVToBuf [17:01:27]FM_MakeSignedData [17:01:27]FM_MakeSignedData [17:01:27]SAM_PROTO_SignData [17:01:27]wFMCommunicate request_size=4 [17:01:27]MH_SAM_APDU [17:01:27]CAPDU: 80 0D 01 02 [17:01:27]Write to MH i2c: E2 08 00 FA 0A 80 0D 01 02 00 00 00 00 7D [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:27]Read from MH i2c: E2 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [17:01:27]RAPDU: 90 00 [17:01:27]wFMCommunicate OK [17:01:27]wFMCommunicate request_size=255 [17:01:27]MH_SAM_APDU [17:01: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 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 1E 01 00 00 F4 03 04 00 63 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 12 01 00 35 04 06 00 D5 [17:01:28]Write to MH i2c: E2 02 01 FB 0A 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 1E 01 00 00 F4 03 04 00 63 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 12 01 00 35 04 06 00 D5 00 00 5D [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 [17:01:29]MH_I2C_Read... [17:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:29]Read from MH i2c: E2 03 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [17:01:29]RAPDU: 90 00 [17:01:29]wFMCommunicate OK [17:01:29]wFMCommunicate request_size=10 [17:01:29]MH_SAM_APDU [17:01:29]CAPDU: 80 0D 02 02 05 5C 8B C9 1A 0D [17:01:29]Write to MH i2c: E2 0D 00 FC 0A 80 0D 02 02 05 00 5C 8B C9 1A 0D 00 00 61 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:29]Read from MH i2c: E2 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 03 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [17:01:29]RAPDU: 90 00 [17:01:29]wFMCommunicate OK [17:01:29]wFMCommunicate request_size=4 [17:01:29]MH_SAM_APDU [17:01:29]CAPDU: 80 0D 03 02 [17:01:29]Write to MH i2c: E2 08 00 FD 0A 80 0D 03 02 00 00 00 00 82 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:29]Read from MH i2c: E2 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 0B 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 0B 00 FD 0A 00 C4 7D AF 33 06 6E F0 05 90 00 0F [17:01:29]RAPDU: C4 7D AF 33 06 6E F0 05 90 00 [17:01:29]wFMCommunicate OK [17:01:29]SAM_PROTO_SignData done [17:01:29]FM_MakeSignedData done [17:01:29]CreateOFDProtocolMessage [17:01:29]wFMCommunicate request_size=4 [17:01:29]MH_SAM_APDU [17:01:29]CAPDU: 80 11 00 00 [17:01:29]Write to MH i2c: E2 08 00 FE 0A 80 11 00 00 00 00 00 00 82 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:29]Read from MH i2c: E2 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 17 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: E2 17 00 FE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [17:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:29]wFMCommunicate OK [17:01:29]CreateOFDProtocolMessage done [17:01:29]OFDSenderStorePacket 70338 [17:01:29]StoreOFDPacket docnum=70338 [17:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FA 20 07 01 75 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 1E 01 00 00 F4 03 04 00 63 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 12 01 00 35 04 06 00 D5 5C 8B C9 1A 0D C4 7D AF 33 06 6E F0 05 [17:01:29]CheckFolder [17:01:29]dirname=/storage/ofd_packets [17:01:29]CheckFolder done [17:01:29]ProducePacketName [17:01:29]name=ofd_packets/00070338 [17:01:29]NVStorageSaveData ofd_packets/00070338 [17:01:29]File name is /storage/ofd_packets/00070338 [17:01:29]Write 301 bytes [17:01:29]NVStorageSaveData done [17:01:29]OFDSenderStorePacket done [17:01:29]KKMCreateOFDPacket done [17:01:29]NVStorageSaveData kkm_last_timestamp [17:01:29]File name is /storage/kkm_last_timestamp [17:01:29]Write 4 bytes [17:01:29]NVStorageSaveData done [17:01:29]ExternCall_PrintAddStr [17:01:29]wPrintStart [17:01:29]Write to MH i2c: 01 00 00 FF 0A 09 [17:01:29]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: 01 [17:01:30]MH_I2C_Read... [17:01:30]OFD Sender: Processing packet 70338 [packets to send 18, broken 17] [17:01:30]ProducePacketName [17:01:30]name=ofd_packets/00070338 [17:01:30]OFD Sender: To server: pG, [17:01:30]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [17:01:30]01 07 00 [17:01:30]MH_I2C_Read... [17:01:30]ConnectInit lk.salyk.kg [17:01:30]Read from MH i2c: 01 07 00 FF 0A 00 00 00 00 00 FF 0F 1E [17:01:30]RasterBufferAndPrint [17:01:30]line Счет N : (1)2886106 [17:01:30]line ИНН: 02508201610067 [17:01:30]line Контрольно-Кассовый Чек [17:01:30]line ПРОДАЖА [17:01:30]line ТРК (МРК, ГНК) : 22 [17:01:30]line Товар: 2710124130 [17:01:30]line Аи-92-К-5 [17:01:30]line 10.470 * 66.90 [17:01:30]line = 700.44 [17:01:30]line НДС 12% НСП 1% [17:01:30]line > о реализуемом товаре [17:01:30]line ОКРУГЛЕНИЕ: -0.44 [17:01:30]line ИТОГО: 700.00 [17:01:30]line Внесено: 700.00 [17:01:30]line СДАЧА: 0.00 [17:01:30]Connected sock=11 [17:01:30]line НСП 1% : 6.20 [17:01:30]line НДС 12% : 74.38 [17:01:30]line Наличными: 700.00 [17:01:30]line Безнал.: 0.00 [17:01:30]Data to sent: line Место: АЗС № 85 "Партнер Нефть" [17:01:30]87 line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:01:30]line СНО: Общий режим [17:01:30]line Чек 286 22.10.2024 17:01 [17:01:30]line Смена: 195 ФФД: 1.0 [17:01:30]95 line ЗНМ: 0300000167 [17:01:30]F6 line РНМ: 0000000000156251 [17:01:30]70 line Версия ККМ: v1.0 [17:01:30]47 line ФМ: 0000000000963346 [17:01:30]2C line ФД: 70338 [17:01:30]line ФПД: 234593458919949 [17:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170123&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70338&fm=234593458919949&tin=02508201610067®Number=0000000000156251&sum=70000 [17:01:30]01 written 0, free lines is 4095 [17:01:30]00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FA 20 07 01 75 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 Write to MH i2c: 03 01 26 00 00 EF 03 0F 00 00 F6 2A 03 01 00 01 0B F7 35 03 06 00 6C 02 [17:01:30]00 00 00 00 EE 03 0F 00 F2 03 Write i2c OK [17:01:30]01 MH_I2C_Read... [17:01:30]00 Read from MH i2c: 01 01 F3 [17:01:30]03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 MH_I2C_Read... [17:01:30]00 00 39 04 06 Read from MH i2c: 00 01 00 00 00 00 07 00 00 00 1F 04 02 00 [17:01:31]01 MH_I2C_Read... [17:01:31]00 Read from MH i2c: 12 01 04 07 04 00 1E 01 00 00 00 2A F4 0B 03 00 04 00 00 00 63 00 DA 17 67 0E 04 00 04 7F 00 0D C3 C8 [17:01:31]RasterBufferAndPrint [17:01:31]line [17:01:31]line [17:01:31]line [17:01:31]line [17:01:31]line [17:01:31]00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 written 0, free lines is 4079 [17:01:31]30 30 30 30 30 30 MH_Cut [17:01:31]31 Write to MH i2c: 35 36 32 D1 35 31 11 04 10 00 30 30 30 01 30 00 30 31 30 0B 30 01 30 0E [17:01:31]30 30 39 36 33 33 34 36 10 04 04 00 C2 12 Write i2c OK [17:01:31]01 MH_I2C_Read... [17:01:31]00 35 04 06 Read from MH i2c: 00 D1 D5 5C 8B C9 1A [17:01:31]0D MH_I2C_Read... [17:01:31]C4 Read from MH i2c: 7D D1 AF 01 33 *** Cut start [17:01:31]06 *** Partial cut [17:01:31]6E *** CUTSNS_PIN = 1 [17:01:31]F0 00 [17:01:31]MH_I2C_Read... [17:01:31]05 [17:01:31]*** CUTSNS_PIN = 0 [17:01:31]Read from MH i2c: D1 01 00 31 0B 00 0D [17:01:31]Write to MH i2c: 01 00 00 32 0B 3D [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 *** Brake cut motor [17:01:31]30 30 30 39 36 33 33 34 36 4F 00 00 00 8C 41 47 00 38 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 12 01 00 F4 03 04 00 0A 84 17 67 B6 04 01 00 00 95 A8 66 D9 55 A1 0F *** Stop cut motor [17:01:32]B1 *** Cut end [17:01:32]Read from MH i2c: 01 [17:01:32]MH_I2C_Read... [17:01:32] [17:01:32]CommunicateWithHost err = 0 [17:01:32]CheckOFDResponse [17:01:32]1017 (14) - 77093643461234 [17:01:32]1041 (16) - 0000000000963346 [17:01:32]1040 (4) - 70338 [17:01:32]1012 (4) - 22.10.2024 10:52 [17:01:32]Read from MH i2c: 1206 (1) - 0 [17:01:32]01 OFD Sender: Remove packet 70338 [17:01:32]07 ProducePacketName [17:01:32]00 name=ofd_packets/00070338 [17:01:32] [17:01:32]NVStorageDeleteData [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [17:01:32]process_action close_receipt done [17:01:32]requested_data is exist [17:01:32]produce_requested_data [17:01:32]requested_item fm.sn is exist - process it [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 11 00 00 [17:01:32]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [17:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:32]wFMCommunicate OK [17:01:32]requested_item fd.num is exist - process it [17:01:32]SAM_PROTO_GetFieldsCounters [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 13 00 00 [17:01:32]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]OFD Sender: No OFD packet to send [17:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 62 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 62 00 34 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 12 01 00 0E 04 04 00 C3 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 CB [17:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 12 01 00 0E 04 04 00 C3 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:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_GetFieldsCounters done [17:01:33]requested_item shift.num is exist - process it [17:01:33]requested_item shift.opened is exist - process it [17:01:33]req_shift_opened [17:01:33]FM_GetShiftState [17:01:33]SAM_PROTO_GetShiftState [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 13 01 00 [17:01:33]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0E 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AB [17:01:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_GetShiftState done [17:01:33]FM_GetShiftState done [17:01:33]req_shift_opened done [17:01:33]requested_item shift.open_date is exist - process it [17:01:33]req_shift_open_date [17:01:33]req_shift_open_date done [17:01:33]produce_requested_data done [17:01:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70338,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:01:33]process_action_free close_receipt [17:01:33]json_value_free [17:01:33]json_value_free done [17:01:33]process_json_proto returns [17:01:33]Send response to host [17:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70338,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:01:33]free response buf [17:01:33]execute_script done [17:01:33]execute_script returns [17:01:33]free content buf [17:01:33]Sock 10.Close socket [17:01:34]Sock 10.Thread stoped [17:01:36]accept exits with 9 [17:01:36]New connection [17:01:36]New thread 3066699108 created [17:01:36]Thread 3066555748 joined [17:01:36]Waiting for new connection... [17:01:36] Sock 9.Parse request [17:01:36]Sock 9.Check first char [17:01:36]Sock 9.First char is OK [17:01:36]request: POST /json_proto HTTP/1.0 [17:01:36]Method: POST [17:01:36]URL: /json_proto [17:01:36]Method is POST - this is cgi request [17:01:36]url: /json_proto [17:01:36]query_string will be loaded in cgi processing [17:01:36]execute_cgi json_proto POST (null) [17:01:36]execute_cgi path=json_proto method=POST [17:01:37]POST find Content-Length [17:01:37]Host: 172.17.50.3:8080 [17:01:37]Content-Length: 767 [17:01:37]Content-Type: application/json [17:01:37] [17:01:37]POST finish read [17:01:37]Found Content-Length = 767 [17:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:01:37]execute_script... [17:01: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)2886108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:01:37]POST & json_proto [17:01:37]process_json_proto [17:01:37]json parsed OK: [17:01:37]protocol is kg_v1.0 [17:01:37]action value=close_receipt [17:01:37]process_action close_receipt [17:01:37]cmd_close_receipt [17:01:37]MH_GetDate [17:01:37]Write to MH i2c: F0 00 00 36 0B 30 [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: F0 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: F0 09 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: F0 09 00 36 0B 00 71 DA 17 67 6B 98 1E 66 89 [17:01:37]GetLastDocTimeStamp 1729616483 [17:01:37]current date 1729616497 [17:01:37]FM_GetShiftState [17:01:37]SAM_PROTO_GetShiftState [17:01:37]wFMCommunicate request_size=4 [17:01:37]MH_SAM_APDU [17:01:37]CAPDU: 80 13 01 00 [17:01:37]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:37]Read from MH i2c: E2 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 0E 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AD [17:01:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:01:37]wFMCommunicate OK [17:01:37]SAM_PROTO_GetShiftState done [17:01:37]FM_GetShiftState done [17:01:37]opened in 1729555832 [17:01:37]opened+sec_in_day 1729642232 [17:01:37]quantity*price = 50041 [17:01:37]sum+1 = 50042 [17:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 287 22.10.2024 17:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70339 ФПД: 188355090065179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70339&fm=188355090065179&tin=02508201610067®Number=0000000000156251&sum=50041 [17:01:41]StoreToDocumentArchive [17:01:41]shift 195 fd 70339 [17:01:41]save to /storage/0195/doc_00070339 [17:01:41]save last doc name /storage/0195/doc_00070339 to /storage/kkm_last_doc_name [17:01:41]save OK [17:01:41]Clear old archive folders... [17:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:41]tlvbuf is 00E60F60 [17:01:41]SAM_PROTO_ClearQueue [17:01:41]wFMCommunicate request_size=4 [17:01:41]MH_SAM_APDU [17:01:41]CAPDU: 80 09 00 00 [17:01:41]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [17:01:41]Write i2c OK [17:01:41]MH_I2C_Read... [17:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:41]Read from MH i2c: E2 [17:01:41]MH_I2C_Read... [17:01:41]Read from MH i2c: E2 03 00 [17:01:41]MH_I2C_Read... [17:01:41]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [17:01:41]RAPDU: 90 00 [17:01:41]wFMCommunicate OK [17:01:41]SAM_PROTO_ClearQueue done [17:01:41]KKMCreateOFDPacket [17:01:41]OFDProtocolAddRootSTLVToBuf [17:01:41]FM_MakeSignedData [17:01:41]FM_MakeSignedData [17:01:41]SAM_PROTO_SignData [17:01:41]wFMCommunicate request_size=4 [17:01:41]MH_SAM_APDU [17:01:41]CAPDU: 80 0D 01 02 [17:01:41]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [17:01:41]Write i2c OK [17:01:41]MH_I2C_Read... [17:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:41]Read from MH i2c: E2 [17:01:41]MH_I2C_Read... [17:01:41]Read from MH i2c: E2 03 00 [17:01:41]MH_I2C_Read... [17:01:41]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [17:01:41]RAPDU: 90 00 [17:01:41]wFMCommunicate OK [17:01:41]wFMCommunicate request_size=255 [17:01:41]MH_SAM_APDU [17:01: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 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 1F 01 00 00 F4 03 04 00 71 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 12 01 00 35 04 06 00 AB [17:01:42]Write to MH i2c: E2 02 01 46 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 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 ConnectInit Can't connect to host [17:01:43]OFD Sender: No OFD packet to send [17:01:43]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 1F 01 00 00 F4 03 04 00 71 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 12 01 00 35 04 06 00 AB 00 00 D1 [17:01:43]Write i2c OK [17:01:43]MH_I2C_Read... [17:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:43]Read from MH i2c: E2 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: E2 03 00 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [17:01:43]RAPDU: 90 00 [17:01:43]wFMCommunicate OK [17:01:43]wFMCommunicate request_size=10 [17:01:43]MH_SAM_APDU [17:01:43]CAPDU: 80 0D 02 02 05 4E D6 3C 27 1B [17:01:43]Write to MH i2c: E2 0D 00 47 0B 80 0D 02 02 05 00 4E D6 3C 27 1B 00 00 78 [17:01:43]Write i2c OK [17:01:43]MH_I2C_Read... [17:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:43]Read from MH i2c: E2 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: E2 03 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [17:01:44]RAPDU: 90 00 [17:01:44]wFMCommunicate OK [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 0D 03 02 [17:01:44]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 0B 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 0B 00 48 0B 00 0D 29 BB 27 1A 28 B0 46 90 00 1F [17:01:44]RAPDU: 0D 29 BB 27 1A 28 B0 46 90 00 [17:01:44]wFMCommunicate OK [17:01:44]SAM_PROTO_SignData done [17:01:44]FM_MakeSignedData done [17:01:44]CreateOFDProtocolMessage [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 11 00 00 [17:01:44]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 17 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [17:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:44]wFMCommunicate OK [17:01:44]CreateOFDProtocolMessage done [17:01:44]OFDSenderStorePacket 70339 [17:01:44]StoreOFDPacket docnum=70339 [17:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 EB 07 01 55 76 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 1F 01 00 00 F4 03 04 00 71 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 12 01 00 35 04 06 00 AB 4E D6 3C 27 1B 0D 29 BB 27 1A 28 B0 46 [17:01:44]CheckFolder [17:01:44]dirname=/storage/ofd_packets [17:01:44]CheckFolder done [17:01:44]ProducePacketName [17:01:44]name=ofd_packets/00070339 [17:01:44]NVStorageSaveData ofd_packets/00070339 [17:01:44]File name is /storage/ofd_packets/00070339 [17:01:44]Write 301 bytes [17:01:44]NVStorageSaveData done [17:01:44]OFDSenderStorePacket done [17:01:44]KKMCreateOFDPacket done [17:01:44]NVStorageSaveData kkm_last_timestamp [17:01:44]File name is /storage/kkm_last_timestamp [17:01:44]Write 4 bytes [17:01:44]NVStorageSaveData done [17:01:44]ExternCall_PrintAddStr [17:01:44]wPrintStart [17:01:44]Write to MH i2c: 01 00 00 4A 0B 55 [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 07 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [17:01:44]RasterBufferAndPrint [17:01:44]line Счет N : (1)2886108 [17:01:44]line ИНН: 02508201610067 [17:01:44]line Контрольно-Кассовый Чек [17:01:44]line ПРОДАЖА [17:01:44]line ТРК (МРК, ГНК) : 32 [17:01:44]line Товар: 2710124130 [17:01:44]line Аи-92-К-5 [17:01:44]line 7.480 * 66.90 [17:01:44]line = 500.41 [17:01:44]line НДС 12% НСП 1% [17:01:44]line > о реализуемом товаре [17:01:44]line ИТОГО: 500.41 [17:01:44]line НСП 1% : 4.43 [17:01:44]line НДС 12% : 53.14 [17:01:44]line Наличными: 0.00 [17:01:44]line Безнал.: 500.41 [17:01:44]line Место: АЗС № 85 "Партнер Нефть" [17:01:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:01:44]line СНО: Общий режим [17:01:44]line Чек 287 22.10.2024 17:01 [17:01:44]line Смена: 195 ФФД: 1.0 [17:01:44]line ЗНМ: 0300000167 [17:01:45]line РНМ: 0000000000156251 [17:01:45]line Версия ККМ: v1.0 [17:01:45]line Платежная система: Mbank [17:01:45]OFD Sender: Processing packet 70339 [packets to send 18, broken 17] [17:01:45]line ФМ: 0000000000963346 [17:01:45]ProducePacketName [17:01:45]name=ofd_packets/00070339 [17:01:45]line ФД: 70339 [17:01:45]OFD Sender: To server: pG, [17:01:45]line ФПД: 188355090065179 [17:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70339&fm=188355090065179&tin=02508201610067®Number=0000000000156251&sum=50041 [17:01:45]CommunicateWithHost lk.salyk.kg:30040 [17:01:45]ConnectInit lk.salyk.kg [17:01:45]written 0, free lines is 4095 [17:01:45]Connected sock=7 [17:01: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 34 36 0F 01 00 00 C1 EB 07 01 55 76 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 Write to MH i2c: 01 FC 03 06 00 79 00 C3 00 00 73 00 00 00 EB 03 0B 26 7E 00 [17:01:45]EF Write i2c OK [17:01:45]03 MH_I2C_Read... [17:01:45]0F 00 F6 03 01 Read from MH i2c: 00 01 01 [17:01:45]F7 MH_I2C_Read... [17:01:45]03 Read from MH i2c: 06 00 BB 01 00 01 00 07 00 00 00 EE 03 0F 00 [17:01:45]F2 MH_I2C_Read... [17:01:45]03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 Read from MH i2c: 07 01 04 07 06 00 73 0B 00 00 00 00 00 00 00 FB 00 0E 00 8E [17:01:46]RasterBufferAndPrint [17:01:46]line [17:01:46]00 line [17:01:46]00 line [17:01:46]00 line [17:01:46]line [17:01:46]39 04 06 00 79 C3 00 00 00 00 1F 04 02 written 0, free lines is 4095 [17:01:46]00 01 00 12 04 MH_Cut [17:01:46]04 Write to MH i2c: 00 D1 1F 01 00 00 F4 03 04 00 71 DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 01 0D 00 04 7A 10 0B 00 01 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 57 30 [17:01:46]30 30 Write i2c OK [17:01:46]*** Cut start [17:01:46]MH_I2C_Read... [17:01:46]30 30 30 39 36 33 33 34 36 10 04 04 00 C3 12 01 00 35 04 06 00 AB 4E D6 3C 27 1B 0D 29 BB 27 1A 28 B0 46 [17:01:46]Read from MH i2c: *** Partial cut [17:01:46]D1 *** CUTSNS_PIN = 1 [17:01:46] [17:01:46]MH_I2C_Read... [17:01:46]*** CUTSNS_PIN = 0 [17:01:46]*** Brake cut motor [17:01:46]Read from MH i2c: D1 01 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: D1 01 00 7A 0B 00 56 [17:01:46]Write to MH i2c: 01 00 00 7B 0B 86 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01: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 34 36 4F 00 00 00 Read from MH i2c: AA 01 *** Stop cut motor [17:01:47]*** Cut end [17:01:47]C2 47 [17:01:47]00 MH_I2C_Read... [17:01:47]0D Read from MH i2c: 00 A5 07 01 00 01 07 07 00 00 3B 00 F9 03 0E [17:01:47]00 MH_I2C_Read... [17:01:47]37 Read from MH i2c: 37 30 39 33 36 01 34 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [17:01:47]process_action close_receipt done [17:01:47]requested_data is exist [17:01:47]produce_requested_data [17:01:47]requested_item fm.sn is exist - process it [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 33 11 34 00 00 [17:01:47]Write to MH i2c: 36 E2 31 08 32 00 33 7C 34 0B 80 11 00 11 00 04 00 10 00 00 00 30 00 01 [17:01:47]Write i2c OK [17:01:47]30 MH_I2C_Read... [17:01:47]30 30 30 30 30 30 30 30 39 36 33 33 34 36 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:47]10 04 04 00 C3 12 01 00 F4 03 04 00 19 84 17 67 B6 04 01 00 00 0D F9 3A Read from MH i2c: 77 E2 8C [17:01:47]85 46 D5 [17:01:47]CommunicateWithHost err = 0 [17:01:47]MH_I2C_Read... [17:01:47]CheckOFDResponse [17:01:47]1017 (14) - 77093643461234 [17:01:47]1041 (16) - 0000000000963346 [17:01:47]1040 (4) - 70339 [17:01:47]1012 (4) - 22.10.2024 10:53 [17:01:47]Read from MH i2c: 1206 (1) - 0 [17:01:47]E2 OFD Sender: Remove packet 70339 [17:01:47]17 ProducePacketName [17:01:47]name=ofd_packets/00070339 [17:01:48]NVStorageDeleteData [17:01:48]00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 17 00 7C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [17:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:48]wFMCommunicate OK [17:01:48]requested_item fd.num is exist - process it [17:01:48]SAM_PROTO_GetFieldsCounters [17:01:48]wFMCommunicate request_size=4 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 13 00 00 [17:01:48]Write to MH i2c: E2 08 00 7D 0B 80 13 00 00 00 00 00 00 04 [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 62 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 62 00 7D 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 34 36 0D 04 10 00 30 30 30 OFD Sender: No OFD packet to send [17:01:48]30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 12 01 00 0E 04 04 00 C3 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 18 [17:01: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 12 01 00 0E 04 04 00 C3 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:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_GetFieldsCounters done [17:01:49]requested_item shift.num is exist - process it [17:01:49]requested_item shift.opened is exist - process it [17:01:49]req_shift_opened [17:01:49]FM_GetShiftState [17:01:49]SAM_PROTO_GetShiftState [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 13 01 00 [17:01:49]Write to MH i2c: E2 08 00 7E 0B 80 13 01 00 00 00 00 00 06 [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0E 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0E 00 7E 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F4 [17:01:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_GetShiftState done [17:01:49]FM_GetShiftState done [17:01:49]req_shift_opened done [17:01:49]requested_item shift.open_date is exist - process it [17:01:49]req_shift_open_date [17:01:49]req_shift_open_date done [17:01:49]produce_requested_data done [17:01:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70339,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:01:49]process_action_free close_receipt [17:01:49]json_value_free [17:01:49]json_value_free done [17:01:49]process_json_proto returns [17:01:49]Send response to host [17:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70339,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:01:49]free response buf [17:01:49]execute_script done [17:01:49]execute_script returns [17:01:49]free content buf [17:01:49]Sock 9.Close socket [17:01:49]Sock 9.Thread stoped [17:01:49]accept exits with 10 [17:01:49]New connection [17:01:49]New thread 3066555748 created [17:01:49]Thread 3066699108 joined [17:01:49]Waiting for new connection... [17:01:49] Sock 10.Parse request [17:01:49]Sock 10.Check first char [17:01:49]Sock 10.First char is OK [17:01:49]request: POST /json_proto HTTP/1.0 [17:01:49]Method: POST [17:01:49]URL: /json_proto [17:01:49]Method is POST - this is cgi request [17:01:49]url: /json_proto [17:01:49]query_string will be loaded in cgi processing [17:01:49]execute_cgi json_proto POST (null) [17:01:49]execute_cgi path=json_proto method=POST [17:01:49]POST find Content-Length [17:01:49]Host: 172.17.50.3:8080 [17:01:49]Content-Length: 680 [17:01:49]Content-Type: application/json [17:01:49] [17:01:49]POST finish read [17:01:49]Found Content-Length = 680 [17:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886107", "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" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:49]execute_script... [17:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886107", "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" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:49]POST & json_proto [17:01:49]process_json_proto [17:01:49]json parsed OK: [17:01:49]protocol is kg_v1.0 [17:01:49]action value=close_receipt [17:01:49]process_action close_receipt [17:01:49]cmd_close_receipt [17:01:49]MH_GetDate [17:01:49]Write to MH i2c: F0 00 00 7F 0B 79 [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: F0 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: F0 09 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: F0 09 00 7F 0B 00 7E DA 17 67 6B 98 1E 66 DF [17:01:49]GetLastDocTimeStamp 1729616497 [17:01:49]current date 1729616510 [17:01:49]FM_GetShiftState [17:01:49]SAM_PROTO_GetShiftState [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:50]CAPDU: 80 13 01 00 [17:01:50]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0E 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F6 [17:01:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:01:50]wFMCommunicate OK [17:01:50]SAM_PROTO_GetShiftState done [17:01:50]FM_GetShiftState done [17:01:50]opened in 1729555832 [17:01:50]opened+sec_in_day 1729642232 [17:01:50]quantity*price = 140055 [17:01:50]sum+1 = 140057 [17:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 288 22.10.2024 17:01 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70340 ФПД: 62286024137886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70340&fm=62286024137886&tin=02508201610067®Number=0000000000156251&sum=140000 [17:01:54]StoreToDocumentArchive [17:01:54]shift 195 fd 70340 [17:01:54]save to /storage/0195/doc_00070340 [17:01:54]save last doc name /storage/0195/doc_00070340 to /storage/kkm_last_doc_name [17:01:54]save OK [17:01:54]Clear old archive folders... [17:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:54]tlvbuf is 00E8E930 [17:01:54]SAM_PROTO_ClearQueue [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 09 00 00 [17:01:54]Write to MH i2c: E2 08 00 8D 0B 80 09 00 00 00 00 00 00 0A [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [17:01:54]RAPDU: 90 00 [17:01:54]wFMCommunicate OK [17:01:54]SAM_PROTO_ClearQueue done [17:01:54]KKMCreateOFDPacket [17:01:54]OFDProtocolAddRootSTLVToBuf [17:01:54]FM_MakeSignedData [17:01:54]FM_MakeSignedData [17:01:54]SAM_PROTO_SignData [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 0D 01 02 [17:01:54]Write to MH i2c: E2 08 00 8E 0B 80 0D 01 02 00 00 00 00 12 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:54]Read from MH i2c: E2 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [17:01:55]RAPDU: 90 00 [17:01:55]wFMCommunicate OK [17:01:55]wFMCommunicate request_size=255 [17:01:55]MH_SAM_APDU [17:01: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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 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 7E DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 12 01 00 35 04 06 00 38 A6 18 57 [17:01:55]Write to MH i2c: E2 02 01 8F 0B 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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 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 7E DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 12 01 00 35 04 06 00 38 A6 18 57 00 00 AE [17:01:56]Write i2c OK [17:01:56]MH_I2C_Read... [17:01:56]Read from MH i2c: E2 [17:01:56]MH_I2C_Read... [17:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:56]Read from MH i2c: E2 03 00 [17:01:56]MH_I2C_Read... [17:01:56]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [17:01:57]RAPDU: 90 00 [17:01:57]wFMCommunicate OK [17:01:57]wFMCommunicate request_size=7 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 0D 02 02 02 DC 9E [17:01:57]Write to MH i2c: E2 0A 00 90 0B 80 0D 02 02 02 00 DC 9E 00 00 93 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:57]Read from MH i2c: E2 03 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [17:01:57]RAPDU: 90 00 [17:01:57]wFMCommunicate OK [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 0D 03 02 [17:01:57]Write to MH i2c: E2 08 00 91 0B 80 0D 03 02 00 00 00 00 17 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0B 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0B 00 91 0B 00 01 DD 78 2F 63 AB 5C 0C 90 00 13 [17:01:57]RAPDU: 01 DD 78 2F 63 AB 5C 0C 90 00 [17:01:57]wFMCommunicate OK [17:01:57]SAM_PROTO_SignData done [17:01:57]FM_MakeSignedData done [17:01:57]CreateOFDProtocolMessage [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 11 00 00 [17:01:57]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 17 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 17 00 92 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [17:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:57]wFMCommunicate OK [17:01:57]CreateOFDProtocolMessage done [17:01:57]OFDSenderStorePacket 70340 [17:01:57]StoreOFDPacket docnum=70340 [17:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 62 B7 04 01 7D CF 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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 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 7E DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 12 01 00 35 04 06 00 38 A6 18 57 DC 9E 01 DD 78 2F 63 AB 5C 0C [17:01:57]CheckFolder [17:01:57]dirname=/storage/ofd_packets [17:01:57]CheckFolder done [17:01:57]ProducePacketName [17:01:57]name=ofd_packets/00070340 [17:01:57]NVStorageSaveData ofd_packets/00070340 [17:01:57]File name is /storage/ofd_packets/00070340 [17:01:57]Write 298 bytes [17:01:57]NVStorageSaveData done [17:01:57]OFDSenderStorePacket done [17:01:57]KKMCreateOFDPacket done [17:01:57]NVStorageSaveData kkm_last_timestamp [17:01:57]File name is /storage/kkm_last_timestamp [17:01:57]Write 4 bytes [17:01:57]NVStorageSaveData done [17:01:57]ExternCall_PrintAddStr [17:01:57]wPrintStart [17:01:57]Write to MH i2c: 01 00 00 93 0B 9E [17:01:57]OFD Sender: Processing packet 70340 [packets to send 18, broken 17] [17:01:57]ProducePacketName [17:01:57]name=ofd_packets/00070340 [17:01:57]OFD Sender: To server: pG, [17:01:57]CommunicateWithHost lk.salyk.kg:30040 [17:01:57]ConnectInit lk.salyk.kg [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 07 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 FF 0F B3 [17:01:58]RasterBufferAndPrint [17:01:58]line Счет N : (1)2886107 [17:01:58]line ИНН: 02508201610067 [17:01:58]line Контрольно-Кассовый Чек [17:01:58]line ПРОДАЖА [17:01:58]line ТРК (МРК, ГНК) : 51 [17:01:58]line Товар: 2710194210 [17:01:58]line ДТ-К-5 [17:01:58]line 18.380 * 76.20 [17:01:58]line = 1400.56 [17:01:58]line НДС 12% НСП 1% [17:01:58]line > о реализуемом товаре [17:01:58]line ОКРУГЛЕНИЕ: -0.56 [17:01:58]line ИТОГО: 1400.00 [17:01:58]line Внесено: 1400.00 [17:01:58]line СДАЧА: 0.00 [17:01:58]line НСП 1% : 12.39 [17:01:58]line НДС 12% : 148.73 [17:01:58]line Наличными: 1400.00 [17:01:58]Connected sock=11 [17:01:58]line Безнал.: 0.00 [17:01:58]Data to sent: 87 line Место: АЗС № 85 "Партнер Нефть" [17:01:58]95 line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:01:58]line СНО: Общий режим [17:01:58]line Чек 288 22.10.2024 17:01 [17:01:58]line Смена: 195 ФФД: 1.0 [17:01:58]F6 line ЗНМ: 0300000167 [17:01:58]70 line РНМ: 0000000000156251 [17:01:58]47 line Версия ККМ: v1.0 [17:01:58]line ФМ: 0000000000963346 [17:01:58]line ФД: 70340 [17:01:58]line ФПД: 62286024137886 [17:01:58]2C line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70340&fm=62286024137886&tin=02508201610067®Number=0000000000156251&sum=140000 [17:01:58]01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 62 B7 04 01 7D CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 written 0, free lines is 4095 [17:01:58]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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 Write to MH i2c: 06 01 00 00 00 00 00 BE 00 00 00 00 0B 1F C9 04 [17:01:59]02 Write i2c OK [17:01:59]00 MH_I2C_Read... [17:01:59]01 00 12 04 Read from MH i2c: 04 01 00 [17:01:59]20 01 00 00 F4 MH_I2C_Read... [17:01:59]03 04 00 7E DA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 Read from MH i2c: 00 01 01 07 0D 00 [17:01:59]MH_I2C_Read... [17:01:59]04 10 00 30 30 30 30 Read from MH i2c: 30 01 30 30 30 30 07 30 00 31 BE 35 36 32 35 31 0B 11 00 04 00 10 00 30 30 00 30 00 30 30 30 30 00 30 33 0E 11 [17:01:59]RasterBufferAndPrint [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]30 30 39 36 33 33 34 36 10 04 04 00 C4 12 01 00 35 04 06 00 38 written 0, free lines is 4095 [17:01:59]A6 18 57 DC 9E MH_Cut [17:01:59]01 DD 78 2F 63 Write to MH i2c: AB D1 5C 01 0C [17:01:59]00 C5 0B 01 A2 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 01 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 01 00 C5 0B 00 A1 [17:01:59]Write to MH i2c: 01 00 00 C6 0B D1 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02: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 34 36 4F 00 00 00 E3 36 *** Cut start [17:02:00]47 00 *** Partial cut [17:02:00]B1 9D *** CUTSNS_PIN = 1 [17:02:00]A5 07 *** CUTSNS_PIN = 0 [17:02:00]01 00 *** Brake cut motor [17:02:00]07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 *** Stop cut motor [17:02:00]30 *** Cut end [17:02:00]Read from MH i2c: 01 [17:02:00]MH_I2C_Read... [17:02:00]39 36 33 33 34 36 10 04 04 00 C4 12 01 Read from MH i2c: 00 01 F4 07 03 00 04 [17:02:00]00 26 84 17 MH_I2C_Read... [17:02:00]67 B6 Read from MH i2c: 04 01 01 07 00 00 C6 0B 00 00 C2 00 78 00 00 00 FF 0F B9 E6 04 [17:02:01]AB process_action close_receipt done [17:02:01]requested_data is exist [17:02:01]produce_requested_data [17:02:01]requested_item fm.sn is exist - process it [17:02:01]wFMCommunicate request_size=4 [17:02:01]56 MH_SAM_APDU [17:02:01]AA CAPDU: 74 80 11 00 00 [17:02:01]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [17:02:01] [17:02:01]CommunicateWithHost err = 0 [17:02:01]CheckOFDResponse [17:02:01]1017 (14) - 77093643461234 [17:02:01]1041 (16) - 0000000000963346 [17:02:01]Write i2c OK [17:02:01]1040 (4) - 70340 [17:02:01]MH_I2C_Read... [17:02:01]1012 (4) - 22.10.2024 10:53 [17:02:01]Read from MH i2c: 1206 (1) - 0 [17:02:01]E2 OFD Sender: Remove packet 70340 [17:02:01] [17:02:01]ProducePacketName [17:02:01]MH_I2C_Read... [17:02:01]name=ofd_packets/00070340 [17:02:01]NVStorageDeleteData [17:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:01]Read from MH i2c: E2 17 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [17:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:02:01]wFMCommunicate OK [17:02:01]requested_item fd.num is exist - process it [17:02:01]SAM_PROTO_GetFieldsCounters [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 13 00 00 [17:02:01]Write to MH i2c: E2 08 00 C8 0B 80 13 00 00 00 00 00 00 4F [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 62 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 62 00 C8 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 34 36 0D 04 10 00 30 30 30 30 30 OFD Sender: No OFD packet to send [17:02:02]30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 12 01 00 0E 04 04 00 C3 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 67 [17:02: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 12 01 00 0E 04 04 00 C3 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 [17:02:02]wFMCommunicate OK [17:02:02]SAM_PROTO_GetFieldsCounters done [17:02:02]requested_item shift.num is exist - process it [17:02:02]requested_item shift.opened is exist - process it [17:02:02]req_shift_opened [17:02:02]FM_GetShiftState [17:02:02]SAM_PROTO_GetShiftState [17:02:02]wFMCommunicate request_size=4 [17:02:02]MH_SAM_APDU [17:02:02]CAPDU: 80 13 01 00 [17:02:02]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [17:02:02]Write i2c OK [17:02:02]MH_I2C_Read... [17:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:02]Read from MH i2c: E2 [17:02:02]MH_I2C_Read... [17:02:02]Read from MH i2c: E2 0E 00 [17:02:02]MH_I2C_Read... [17:02:02]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3F [17:02:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:02:02]wFMCommunicate OK [17:02:02]SAM_PROTO_GetShiftState done [17:02:02]FM_GetShiftState done [17:02:02]req_shift_opened done [17:02:02]requested_item shift.open_date is exist - process it [17:02:02]req_shift_open_date [17:02:02]req_shift_open_date done [17:02:02]produce_requested_data done [17:02:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70340,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:02:02]process_action_free close_receipt [17:02:02]json_value_free [17:02:02]json_value_free done [17:02:02]process_json_proto returns [17:02:02]Send response to host [17:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70340,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:02:02]free response buf [17:02:02]execute_script done [17:02:02]execute_script returns [17:02:02]free content buf [17:02:02]Sock 10.Close socket [17:02:02]Sock 10.Thread stoped [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:57]OFD Sender: No OFD packet to send [17:04:01]ConnectInit Can't connect to host [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:56]accept exits with 9 [17:05:56]New connection [17:05:56]New thread 3066699108 created [17:05:56]Thread 3066555748 joined [17:05:56]Waiting for new connection... [17:05:56] Sock 9.Parse request [17:05:56]Sock 9.Check first char [17:05:56]Sock 9.First char is OK [17:05:56]request: POST /json_proto HTTP/1.0 [17:05:56]Method: POST [17:05:56]URL: /json_proto [17:05:56]Method is POST - this is cgi request [17:05:56]url: /json_proto [17:05:56]query_string will be loaded in cgi processing [17:05:56]execute_cgi json_proto POST (null) [17:05:56]execute_cgi path=json_proto method=POST [17:05:56]POST find Content-Length [17:05:56]Host: 172.17.50.3:8080 [17:05:56]Content-Length: 774 [17:05:56]Content-Type: application/json [17:05:56] [17:05:56]POST finish read [17:05:56]Found Content-Length = 774 [17:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:56]execute_script... [17: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 : (1)2886109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:56]POST & json_proto [17:05:56]process_json_proto [17:05:56]json parsed OK: [17:05:56]protocol is kg_v1.0 [17:05:56]action value=close_receipt [17:05:56]process_action close_receipt [17:05:56]cmd_close_receipt [17:05:56]MH_GetDate [17:05:56]Write to MH i2c: F0 00 00 CA 0B C4 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 09 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 09 00 CA 0B 00 74 DB 17 67 6B 98 1E 66 21 [17:05:56]GetLastDocTimeStamp 1729616510 [17:05:56]current date 1729616756 [17:05:56]FM_GetShiftState [17:05:56]SAM_PROTO_GetShiftState [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 13 01 00 [17:05:56]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0E 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 41 [17:05:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:05:56]wFMCommunicate OK [17:05:56]SAM_PROTO_GetShiftState done [17:05:56]FM_GetShiftState done [17:05:56]opened in 1729555832 [17:05:56]opened+sec_in_day 1729642232 [17:05:56]quantity*price = 80056 [17:05:56]sum+1 = 80057 [17:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 289 22.10.2024 17:05 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70341 ФПД: 10163548639021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70341&fm=10163548639021&tin=02508201610067®Number=0000000000156251&sum=80056 [17:06:00]StoreToDocumentArchive [17:06:00]shift 195 fd 70341 [17:06:00]save to /storage/0195/doc_00070341 [17:06:00]save last doc name /storage/0195/doc_00070341 to /storage/kkm_last_doc_name [17:06:00]save OK [17:06:00]Clear old archive folders... [17:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:06:00]tlvbuf is 00BDCB60 [17:06:00]SAM_PROTO_ClearQueue [17:06:00]wFMCommunicate request_size=4 [17:06:00]MH_SAM_APDU [17:06:00]CAPDU: 80 09 00 00 [17:06:00]Write to MH i2c: E2 08 00 D8 0B 80 09 00 00 00 00 00 00 55 [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]SAM_PROTO_ClearQueue done [17:06:01]KKMCreateOFDPacket [17:06:01]OFDProtocolAddRootSTLVToBuf [17:06:01]FM_MakeSignedData [17:06:01]FM_MakeSignedData [17:06:01]SAM_PROTO_SignData [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 0D 01 02 [17:06:01]Write to MH i2c: E2 08 00 D9 0B 80 0D 01 02 00 00 00 00 5D [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]wFMCommunicate request_size=255 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 75 DB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 12 01 [17:06:02]Write to MH i2c: E2 02 01 DA 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 OFD Sender: No OFD packet to send [17:06:02]07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 75 DB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 12 01 00 00 37 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]wFMCommunicate request_size=16 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 09 3E 62 B4 CF 2D [17:06:03]Write to MH i2c: E2 13 00 DB 0B 80 0D 02 02 0B 00 00 35 04 06 00 09 3E 62 B4 CF 2D 00 00 0E [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 03 02 [17:06:03]Write to MH i2c: E2 08 00 DC 0B 80 0D 03 02 00 00 00 00 62 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 0B 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 0B 00 DC 0B 00 4B 5F A7 AB DB CD 54 08 90 00 63 [17:06:03]RAPDU: 4B 5F A7 AB DB CD 54 08 90 00 [17:06:03]wFMCommunicate OK [17:06:03]SAM_PROTO_SignData done [17:06:03]FM_MakeSignedData done [17:06:03]CreateOFDProtocolMessage [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 11 00 00 [17:06:03]Write to MH i2c: E2 08 00 DD 0B 80 11 00 00 00 00 00 00 62 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:04]Read from MH i2c: E2 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 17 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 17 00 DD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [17:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:06:04]wFMCommunicate OK [17:06:04]CreateOFDProtocolMessage done [17:06:04]OFDSenderStorePacket 70341 [17:06:04]StoreOFDPacket docnum=70341 [17:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 59 88 0D 01 56 C5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 75 DB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 12 01 00 35 04 06 00 09 3E 62 B4 CF 2D 4B 5F A7 AB DB CD 54 08 [17:06:04]CheckFolder [17:06:04]dirname=/storage/ofd_packets [17:06:04]CheckFolder done [17:06:04]ProducePacketName [17:06:04]name=ofd_packets/00070341 [17:06:04]NVStorageSaveData ofd_packets/00070341 [17:06:04]File name is /storage/ofd_packets/00070341 [17:06:04]Write 307 bytes [17:06:04]NVStorageSaveData done [17:06:04]OFDSenderStorePacket done [17:06:04]KKMCreateOFDPacket done [17:06:04]NVStorageSaveData kkm_last_timestamp [17:06:04]File name is /storage/kkm_last_timestamp [17:06:04]Write 4 bytes [17:06:04]NVStorageSaveData done [17:06:04]ExternCall_PrintAddStr [17:06:04]wPrintStart [17:06:04]Write to MH i2c: 01 00 00 DE 0B E9 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 07 00 [17:06:04]MH_I2C_Read... [17:06:04]OFD Sender: Processing packet 70341 [packets to send 18, broken 17] [17:06:04]ProducePacketName [17:06:04]name=ofd_packets/00070341 [17:06:04]OFD Sender: To server: pG, [17:06:04]CommunicateWithHost lk.salyk.kg:30040 [17:06:04]ConnectInit lk.salyk.kg [17:06:04]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [17:06:04]RasterBufferAndPrint [17:06:04]line Счет N : (1)2886109 [17:06:04]line ИНН: 02508201610067 [17:06:04]line Контрольно-Кассовый Чек [17:06:04]line ПРОДАЖА [17:06:04]line ТРК (МРК, ГНК) : 41 [17:06:04]line Товар: 2710194240 [17:06:04]line D-ENERGY Дт-К-2 [17:06:04]line 10.370 * 77.20 [17:06:04]line = 800.56 [17:06:04]line НДС 12% НСП 1% [17:06:04]line > о реализуемом товаре [17:06:04]Connected sock=11 [17:06:04]line ИТОГО: 800.56 [17:06:04]Data to sent: line НСП 1% : 7.08 [17:06:04]87 line НДС 12% : 85.01 [17:06:04]line Наличными: 0.00 [17:06:04]line Безнал.: 800.56 [17:06:04]line Место: АЗС № 85 "Партнер Нефть" [17:06:04]95 line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:06:04]F6 line СНО: Общий режим [17:06:04]70 line Чек 289 22.10.2024 17:05 [17:06:04]line Смена: 195 ФФД: 1.0 [17:06:04]line ЗНМ: 0300000167 [17:06:04]line РНМ: 0000000000156251 [17:06:04]47 line Версия ККМ: v1.0 [17:06:04]2C line Платежная система: Mbank [17:06:04]01 line ФМ: 0000000000963346 [17:06:04]line ФД: 70341 [17:06:04]line ФПД: 10163548639021 [17:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70341&fm=10163548639021&tin=02508201610067®Number=0000000000156251&sum=80056 [17:06:04]00 30 30 30 written 0, free lines is 4095 [17:06:04]30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 59 88 0D 01 56 C5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 Write to MH i2c: 03 01 00 01 01 00 F7 00 03 07 06 00 C4 02 0C 00 13 [17:06:05]00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 Write i2c OK [17:06:05]B8 MH_I2C_Read... [17:06:05]38 Read from MH i2c: 01 00 00 00 01 1F [17:06:05]04 MH_I2C_Read... [17:06:05]02 00 Read from MH i2c: 01 01 00 07 12 04 04 00 21 01 00 00 F4 03 04 00 75 DB 17 67 0E 04 04 00 C3 00 00 00 00 B9 [17:06:05]04 MH_I2C_Read... [17:06:05]01 00 Read from MH i2c: 01 01 07 00 07 0C 00 00 00 00 00 AA 0D D1 0D [17:06:05]04 RasterBufferAndPrint [17:06:05]10 line [17:06:05]00 30 30 30 line [17:06:05]30 line [17:06:05]30 line [17:06:05]30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 12 01 00 35 line [17:06:06]04 06 00 09 3E 62 B4 CF 2D 4B 5F A7 AB written 0, free lines is 4095 [17:06:06]DB CD 54 08 [17:06:06]MH_Cut [17:06:06]Write to MH i2c: D1 01 00 0E 0C 01 EC [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: D1 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: D1 01 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: D1 01 00 0E 0C 00 EB [17:06:06]Write to MH i2c: 01 00 00 0F 0C 1B [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06: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 34 36 4F 00 00 00 *** Cut start [17:06:06]74 *** Partial cut [17:06:06]F8 47 00 6B *** CUTSNS_PIN = 1 [17:06:06]BD *** CUTSNS_PIN = 0 [17:06: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 34 36 *** Brake cut motor [17:06:06]10 04 04 00 C5 12 01 00 F4 03 04 00 1C 85 17 67 B6 04 01 00 00 D2 DD 8A F3 B1 F7 7A 92 [17:06:06]CommunicateWithHost err = 0 [17:06:06]CheckOFDResponse [17:06:06]1017 (14) - 77093643461234 [17:06:06]1041 (16) - 0000000000963346 [17:06:06]1040 (4) - 70341 [17:06:06]1012 (4) - 22.10.2024 10:57 [17:06:06]1206 (1) - 0 [17:06:06]OFD Sender: Remove packet 70341 [17:06:06]ProducePacketName [17:06:06]name=ofd_packets/00070341 [17:06:06]NVStorageDeleteData [17:06:07]Read from MH i2c: *** Stop cut motor [17:06:07]01 *** Cut end [17:06:07] [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 FF 0F 30 [17:06:07]process_action close_receipt done [17:06:07]requested_data is exist [17:06:07]produce_requested_data [17:06:07]requested_item fm.sn is exist - process it [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 11 00 00 [17:06:07]Write to MH i2c: E2 08 00 10 0C 80 11 00 00 00 00 00 00 96 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 10 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [17:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:06:07]wFMCommunicate OK [17:06:07]requested_item fd.num is exist - process it [17:06:07]SAM_PROTO_GetFieldsCounters [17:06:07]wFMCommunicate request_size=4 [17:06:07]OFD Sender: No OFD packet to send [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 13 00 00 [17:06:07]Write to MH i2c: E2 08 00 11 0C 80 13 00 00 00 00 00 00 99 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 62 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 62 00 11 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 12 01 00 0E 04 04 00 C3 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 B5 [17:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 12 01 00 0E 04 04 00 C3 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 [17:06:08]wFMCommunicate OK [17:06:08]SAM_PROTO_GetFieldsCounters done [17:06:08]requested_item shift.num is exist - process it [17:06:08]requested_item shift.opened is exist - process it [17:06:08]req_shift_opened [17:06:08]FM_GetShiftState [17:06:08]SAM_PROTO_GetShiftState [17:06:08]wFMCommunicate request_size=4 [17:06:08]MH_SAM_APDU [17:06:08]CAPDU: 80 13 01 00 [17:06:08]Write to MH i2c: E2 08 00 12 0C 80 13 01 00 00 00 00 00 9B [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:08]Read from MH i2c: E2 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: E2 0E 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: E2 0E 00 12 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 89 [17:06:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:06:08]wFMCommunicate OK [17:06:08]SAM_PROTO_GetShiftState done [17:06:08]FM_GetShiftState done [17:06:08]req_shift_opened done [17:06:08]requested_item shift.open_date is exist - process it [17:06:08]req_shift_open_date [17:06:08]req_shift_open_date done [17:06:08]produce_requested_data done [17:06:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70341,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:06:08]process_action_free close_receipt [17:06:08]json_value_free [17:06:08]json_value_free done [17:06:08]process_json_proto returns [17:06:08]Send response to host [17:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70341,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:06:08]free response buf [17:06:08]execute_script done [17:06:08]execute_script returns [17:06:08]free content buf [17:06:08]Sock 9.Close socket [17:06:08]Sock 9.Thread stoped [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:19]ConnectInit Can't connect to host [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]accept exits with 10 [17:08:17]New connection [17:08:17]New thread 3066555748 created [17:08:17]Thread 3066699108 joined [17:08:17]Waiting for new connection... [17:08:17] Sock 10.Parse request [17:08:17]Sock 10.Check first char [17:08:17]Sock 10.First char is OK [17:08:17]request: POST /json_proto HTTP/1.0 [17:08:17]Method: POST [17:08:17]URL: /json_proto [17:08:17]Method is POST - this is cgi request [17:08:17]url: /json_proto [17:08:17]query_string will be loaded in cgi processing [17:08:17]execute_cgi json_proto POST (null) [17:08:17]execute_cgi path=json_proto method=POST [17:08:17]POST find Content-Length [17:08:17]Host: 172.17.50.3:8080 [17:08:17]Content-Length: 678 [17:08:17]Content-Type: application/json [17:08:17] [17:08:17]POST finish read [17:08:17]Found Content-Length = 678 [17:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [17:08:17]execute_script... [17:08: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)2886110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [17:08:17]POST & json_proto [17:08:17]process_json_proto [17:08:17]json parsed OK: [17:08:17]protocol is kg_v1.0 [17:08:17]action value=close_receipt [17:08:17]process_action close_receipt [17:08:17]cmd_close_receipt [17:08:17]MH_GetDate [17:08:17]Write to MH i2c: F0 00 00 13 0C 0E [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 09 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 09 00 13 0C 00 01 DC 17 67 6B 98 1E 66 F9 [17:08:17]GetLastDocTimeStamp 1729616757 [17:08:17]current date 1729616897 [17:08:17]FM_GetShiftState [17:08:17]SAM_PROTO_GetShiftState [17:08:17]wFMCommunicate request_size=4 [17:08:17]MH_SAM_APDU [17:08:17]CAPDU: 80 13 01 00 [17:08:17]Write to MH i2c: E2 08 00 14 0C 80 13 01 00 00 00 00 00 9D [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:17]Read from MH i2c: E2 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 14 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8B [17:08:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:08:17]wFMCommunicate OK [17:08:17]SAM_PROTO_GetShiftState done [17:08:17]FM_GetShiftState done [17:08:17]opened in 1729555832 [17:08:17]opened+sec_in_day 1729642232 [17:08:17]quantity*price = 60027 [17:08:17]sum+1 = 60029 [17:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 290 22.10.2024 17:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70342 ФПД: 269309090879308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70342&fm=269309090879308&tin=02508201610067®Number=0000000000156251&sum=60000 [17:08:22]StoreToDocumentArchive [17:08:22]shift 195 fd 70342 [17:08:22]save to /storage/0195/doc_00070342 [17:08:22]save last doc name /storage/0195/doc_00070342 to /storage/kkm_last_doc_name [17:08:22]save OK [17:08:22]Clear old archive folders... [17:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:22]tlvbuf is 00BED4E0 [17:08:22]SAM_PROTO_ClearQueue [17:08:22]wFMCommunicate request_size=4 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 09 00 00 [17:08:22]Write to MH i2c: E2 08 00 21 0C 80 09 00 00 00 00 00 00 9F [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [17:08:22]RAPDU: 90 00 [17:08:22]wFMCommunicate OK [17:08:22]SAM_PROTO_ClearQueue done [17:08:22]KKMCreateOFDPacket [17:08:22]OFDProtocolAddRootSTLVToBuf [17:08:22]FM_MakeSignedData [17:08:22]FM_MakeSignedData [17:08:22]SAM_PROTO_SignData [17:08:22]wFMCommunicate request_size=4 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 0D 01 02 [17:08:22]Write to MH i2c: E2 08 00 22 0C 80 0D 01 02 00 00 00 00 A7 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [17:08:22]RAPDU: 90 00 [17:08:22]wFMCommunicate OK [17:08:22]wFMCommunicate request_size=255 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 OFD Sender: No OFD packet to send [17:08:23]02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 02 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 12 01 00 35 04 06 00 F4 [17:08:23]Write to MH i2c: E2 02 01 23 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 22 01 00 00 F4 03 04 00 02 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 12 01 00 35 04 06 00 F4 00 00 9D [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:24]Read from MH i2c: E2 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 03 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [17:08:24]RAPDU: 90 00 [17:08:24]wFMCommunicate OK [17:08:24]wFMCommunicate request_size=10 [17:08:24]MH_SAM_APDU [17:08:24]CAPDU: 80 0D 02 02 05 EF 68 B2 57 4C [17:08:24]Write to MH i2c: E2 0D 00 24 0C 80 0D 02 02 05 00 EF 68 B2 57 4C 00 00 60 [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:24]Read from MH i2c: E2 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 03 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [17:08:24]RAPDU: 90 00 [17:08:24]wFMCommunicate OK [17:08:24]wFMCommunicate request_size=4 [17:08:24]MH_SAM_APDU [17:08:24]CAPDU: 80 0D 03 02 [17:08:24]Write to MH i2c: E2 08 00 25 0C 80 0D 03 02 00 00 00 00 AC [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0B 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0B 00 25 0C 00 EA 02 B3 FB 76 74 73 5B 90 00 FF [17:08:25]RAPDU: EA 02 B3 FB 76 74 73 5B 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_SignData done [17:08:25]FM_MakeSignedData done [17:08:25]CreateOFDProtocolMessage [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 11 00 00 [17:08:25]Write to MH i2c: E2 08 00 26 0C 80 11 00 00 00 00 00 00 AC [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 26 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [17:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:25]wFMCommunicate OK [17:08:25]CreateOFDProtocolMessage done [17:08:25]OFDSenderStorePacket 70342 [17:08:25]StoreOFDPacket docnum=70342 [17:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 59 07 01 80 0F 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 22 01 00 00 F4 03 04 00 02 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 12 01 00 35 04 06 00 F4 EF 68 B2 57 4C EA 02 B3 FB 76 74 73 5B [17:08:25]CheckFolder [17:08:25]dirname=/storage/ofd_packets [17:08:25]CheckFolder done [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00070342 [17:08:25]NVStorageSaveData ofd_packets/00070342 [17:08:25]File name is /storage/ofd_packets/00070342 [17:08:25]Write 301 bytes [17:08:25]NVStorageSaveData done [17:08:25]OFDSenderStorePacket done [17:08:25]KKMCreateOFDPacket done [17:08:25]NVStorageSaveData kkm_last_timestamp [17:08:25]File name is /storage/kkm_last_timestamp [17:08:25]Write 4 bytes [17:08:25]NVStorageSaveData done [17:08:25]ExternCall_PrintAddStr [17:08:25]wPrintStart [17:08:25]Write to MH i2c: 01 00 00 27 0C 33 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 [17:08:25]MH_I2C_Read... [17:08:25]OFD Sender: Processing packet 70342 [packets to send 18, broken 17] [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00070342 [17:08:25]OFD Sender: To server: pG, [17:08:25]CommunicateWithHost lk.salyk.kg:30040 [17:08:25]ConnectInit lk.salyk.kg [17:08:25]Read from MH i2c: 01 07 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 07 00 27 0C 00 00 00 00 00 FF 0F 48 [17:08:25]RasterBufferAndPrint [17:08:25]line Счет N : (1)2886110 [17:08:25]line ИНН: 02508201610067 [17:08:25]line Контрольно-Кассовый Чек [17:08:25]line ПРОДАЖА [17:08:25]line ТРК (МРК, ГНК) : 43 [17:08:25]line Товар: 2710124500 [17:08:25]line Аи-95-К-5 [17:08:25]line 8.090 * 74.20 [17:08:25]line = 600.28 [17:08:25]line НДС 12% НСП 1% [17:08:25]line > о реализуемом товаре [17:08:25]line ОКРУГЛЕНИЕ: -0.28 [17:08:25]line ИТОГО: 600.00 [17:08:25]line Внесено: 600.00 [17:08:25]line СДАЧА: 0.00 [17:08:25]line НСП 1% : 5.31 [17:08:25]Connected sock=11 [17:08:25]line НДС 12% : 63.75 [17:08:25]Data to sent: line Наличными: 600.00 [17:08:25]87 line Безнал.: 0.00 [17:08:25]line Место: АЗС № 85 "Партнер Нефть" [17:08:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:08:25]line СНО: Общий режим [17:08:25]95 line Чек 290 22.10.2024 17:08 [17:08:25]F6 line Смена: 195 ФФД: 1.0 [17:08:25]70 line ЗНМ: 0300000167 [17:08:26]line РНМ: 0000000000156251 [17:08:26]line Версия ККМ: v1.0 [17:08:26]line ФМ: 0000000000963346 [17:08:26]47 line ФД: 70342 [17:08:26]2C line ФПД: 269309090879308 [17:08:26]01 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70342&fm=269309090879308&tin=02508201610067®Number=0000000000156251&sum=60000 [17:08:26]00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 59 07 01 80 0F 5A 03 01 00 written 0, free lines is 4095 [17:08:26]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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 Write to MH i2c: 03 01 0F 00 00 F2 03 01 00 00 52 01 0C F3 03 06 00 E7 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 5E 04 [17:08:27]02 00 01 00 Write i2c OK [17:08:27]12 04 04 00 MH_I2C_Read... [17:08:27]22 Read from MH i2c: 01 01 00 00 F4 03 [17:08:27]04 MH_I2C_Read... [17:08:27]00 Read from MH i2c: 02 DC 17 67 01 0E 07 04 00 04 [17:08:27]MH_I2C_Read... [17:08:27]00 Read from MH i2c: C3 01 00 00 00 B9 04 01 00 07 01 00 0D 52 04 10 00 30 0C 00 30 30 30 30 00 30 00 30 00 30 30 30 31 00 35 2E 36 0F 32 35 31 11 A2 04 [17:08:27]10 RasterBufferAndPrint [17:08:27]00 line [17:08:27]30 line [17:08:27]line [17:08:27]line [17:08:27]line [17:08:27]30 30 30 written 0, free lines is 4095 [17:08:27]30 30 30 30 MH_Cut [17:08:27]30 Write to MH i2c: D1 01 00 59 0C 01 37 [17:08:27]30 39 36 33 33 34 36 10 04 04 00 C6 12 Write i2c OK [17:08:27]01 MH_I2C_Read... [17:08:27]00 Read from MH i2c: 35 04 06 00 D1 F4 [17:08:27]MH_I2C_Read... [17:08:27]EF 68 B2 57 4C EA 02 B3 FB 76 74 73 5B [17:08:27]*** Cut start [17:08:27]*** Partial cut [17:08:27]*** CUTSNS_PIN = 1 [17:08:27]Read from MH i2c: D1 01 00 [17:08:27]MH_I2C_Read... [17:08:27]*** CUTSNS_PIN = 0 [17:08:27]Read from MH i2c: D1 01 00 59 0C 00 36 [17:08:27]Write to MH i2c: 01 00 00 5A 0C 66 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08: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 34 36 4F 00 00 *** Brake cut motor [17:08:28]00 C6 34 47 00 53 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 *** Stop cut motor [17:08:28]34 *** Cut end [17:08:28]36 Read from MH i2c: 31 01 32 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 33 07 34 11 00 04 [17:08:28]10 MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 00 30 5A 30 0C 00 00 00 30 00 30 00 30 FF 0F 7B [17:08:28]process_action close_receipt done [17:08:28]requested_data is exist [17:08:28]produce_requested_data [17:08:28]requested_item fm.sn is exist - process it [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 11 00 30 00 30 [17:08:28]30 Write to MH i2c: 30 E2 30 08 00 5B 0C 39 80 36 11 33 33 00 34 00 00 00 00 36 00 10 E1 04 [17:08:28]04 00 Write i2c OK [17:08:28]C6 MH_I2C_Read... [17:08:28]12 01 00 F4 03 04 00 AA *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:28]85 17 67 B6 Read from MH i2c: 04 E2 01 [17:08:28]00 00 89 1D MH_I2C_Read... [17:08:28]73 Read from MH i2c: 31 AF 56 E2 38 17 95 00 [17:08:29]CommunicateWithHost err = 0 [17:08:29]CheckOFDResponse [17:08:29]1017 (14) - 77093643461234 [17:08:29] [17:08:29]1041 (16) - 0000000000963346 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: E2 17 1040 (4) - 70342 [17:08:29]00 1012 (4) - 22.10.2024 10:59 [17:08:29]5B 1206 (1) - 0 [17:08:29]0C 00 11 04 OFD Sender: Remove packet 70342 [17:08:29]10 ProducePacketName [17:08:29]00 name=ofd_packets/00070342 [17:08:29]30 30 30 30 NVStorageDeleteData [17:08:29]30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [17:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:29]wFMCommunicate OK [17:08:29]requested_item fd.num is exist - process it [17:08:29]SAM_PROTO_GetFieldsCounters [17:08:29]wFMCommunicate request_size=4 [17:08:29]MH_SAM_APDU [17:08:29]CAPDU: 80 13 00 00 [17:08:29]Write to MH i2c: E2 08 00 5C 0C 80 13 00 00 00 00 00 00 E4 [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:29]Read from MH i2c: E2 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: E2 62 00 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: E2 62 00 5C 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 OFD Sender: No OFD packet to send [17:08:29]33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 12 01 00 0E 04 04 00 C3 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 04 [17:08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 12 01 00 0E 04 04 00 C3 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 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetFieldsCounters done [17:08:30]requested_item shift.num is exist - process it [17:08:30]requested_item shift.opened is exist - process it [17:08:30]req_shift_opened [17:08:30]FM_GetShiftState [17:08:30]SAM_PROTO_GetShiftState [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 13 01 00 [17:08:30]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D4 [17:08:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetShiftState done [17:08:30]FM_GetShiftState done [17:08:30]req_shift_opened done [17:08:30]requested_item shift.open_date is exist - process it [17:08:30]req_shift_open_date [17:08:30]req_shift_open_date done [17:08:30]produce_requested_data done [17:08:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70342,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:08:30]process_action_free close_receipt [17:08:30]json_value_free [17:08:30]json_value_free done [17:08:30]process_json_proto returns [17:08:30]Send response to host [17:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70342,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:08:30]free response buf [17:08:30]execute_script done [17:08:30]execute_script returns [17:08:30]free content buf [17:08:30]Sock 10.Close socket [17:08:30]Sock 10.Thread stoped [17:08:34]OFD Sender: No OFD packet to send [17:08:37]ConnectInit Can't connect to host [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [17:09:26]New connection [17:09:26]New thread 3066699108 created [17:09:26]Thread 3066555748 joined [17:09:26]Waiting for new connection... [17:09:26] Sock 9.Parse request [17:09:26]Sock 9.Check first char [17:09:26]Sock 9.First char is OK [17:09:26]request: POST /json_proto HTTP/1.0 [17:09:26]Method: POST [17:09:26]URL: /json_proto [17:09:26]Method is POST - this is cgi request [17:09:26]url: /json_proto [17:09:26]query_string will be loaded in cgi processing [17:09:26]execute_cgi json_proto POST (null) [17:09:26]execute_cgi path=json_proto method=POST [17:09:26]POST find Content-Length [17:09:26]Host: 172.17.50.3:8080 [17:09:26]Content-Length: 678 [17:09:26]Content-Type: application/json [17:09:26] [17:09:26]POST finish read [17:09:26]Found Content-Length = 678 [17:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:09:26]execute_script... [17:09: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)2886112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:09:26]POST & json_proto [17:09:26]process_json_proto [17:09:27]json parsed OK: [17:09:27]protocol is kg_v1.0 [17:09:27]action value=close_receipt [17:09:27]process_action close_receipt [17:09:27]cmd_close_receipt [17:09:27]MH_GetDate [17:09:27]Write to MH i2c: F0 00 00 5E 0C 59 [17:09:27]Write i2c OK [17:09:27]MH_I2C_Read... [17:09:27]Read from MH i2c: F0 [17:09:27]MH_I2C_Read... [17:09:27]Read from MH i2c: F0 09 00 [17:09:27]MH_I2C_Read... [17:09:27]Read from MH i2c: F0 09 00 5E 0C 00 47 DC 17 67 6B 98 1E 66 8A [17:09:27]GetLastDocTimeStamp 1729616898 [17:09:27]current date 1729616967 [17:09:27]FM_GetShiftState [17:09:27]SAM_PROTO_GetShiftState [17:09:27]wFMCommunicate request_size=4 [17:09:27]MH_SAM_APDU [17:09:27]CAPDU: 80 13 01 00 [17:09:27]Write to MH i2c: E2 08 00 5F 0C 80 13 01 00 00 00 00 00 E8 [17:09:27]Write i2c OK [17:09:27]MH_I2C_Read... [17:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:27]Read from MH i2c: E2 [17:09:27]MH_I2C_Read... [17:09:27]Read from MH i2c: E2 0E 00 [17:09:27]MH_I2C_Read... [17:09:27]Read from MH i2c: E2 0E 00 5F 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D6 [17:09:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:09:27]wFMCommunicate OK [17:09:27]SAM_PROTO_GetShiftState done [17:09:27]FM_GetShiftState done [17:09:27]opened in 1729555832 [17:09:27]opened+sec_in_day 1729642232 [17:09:27]quantity*price = 30038 [17:09:27]sum+1 = 30039 [17:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 291 22.10.2024 17:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70343 ФПД: 141425181012509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70343&fm=141425181012509&tin=02508201610067®Number=0000000000156251&sum=30000 [17:09:31]StoreToDocumentArchive [17:09:31]shift 195 fd 70343 [17:09:31]save to /storage/0195/doc_00070343 [17:09:31]save last doc name /storage/0195/doc_00070343 to /storage/kkm_last_doc_name [17:09:31]save OK [17:09:31]Clear old archive folders... [17:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:31]tlvbuf is 00BFBC30 [17:09:31]SAM_PROTO_ClearQueue [17:09:31]wFMCommunicate request_size=4 [17:09:31]MH_SAM_APDU [17:09:31]CAPDU: 80 09 00 00 [17:09:31]Write to MH i2c: E2 08 00 6C 0C 80 09 00 00 00 00 00 00 EA [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [17:09:32]RAPDU: 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_ClearQueue done [17:09:32]KKMCreateOFDPacket [17:09:32]OFDProtocolAddRootSTLVToBuf [17:09:32]FM_MakeSignedData [17:09:32]FM_MakeSignedData [17:09:32]SAM_PROTO_SignData [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 0D 01 02 [17:09:32]Write to MH i2c: E2 08 00 6D 0C 80 0D 01 02 00 00 00 00 F2 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [17:09:32]RAPDU: 90 00 [17:09:32]wFMCommunicate OK [17:09:32]wFMCommunicate request_size=255 [17:09:32]MH_SAM_APDU [17:09: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 23 01 00 00 F4 03 04 00 47 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 12 01 00 35 04 06 00 80 [17:09:33]Write to MH i2c: E2 02 01 6E 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 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 23 01 00 00 F4 03 04 00 47 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 12 01 00 35 04 06 00 80 00 00 51 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 03 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [17:09:34]RAPDU: 90 00 [17:09:34]wFMCommunicate OK [17:09:34]wFMCommunicate request_size=10 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 0D 02 02 05 A0 1D AD 32 1D [17:09:34]Write to MH i2c: E2 0D 00 6F 0C 80 0D 02 02 05 00 A0 1D AD 32 1D 00 00 B8 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 03 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [17:09:34]RAPDU: 90 00 [17:09:34]wFMCommunicate OK [17:09:34]wFMCommunicate request_size=4 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 0D 03 02 [17:09:34]Write to MH i2c: E2 08 00 70 0C 80 0D 03 02 00 00 00 00 F7 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:34]OFD Sender: No OFD packet to send [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0B 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0B 00 70 0C 00 90 BE 88 4C 6E A4 34 DF 90 00 3F [17:09:35]RAPDU: 90 BE 88 4C 6E A4 34 DF 90 00 [17:09:35]wFMCommunicate OK [17:09:35]SAM_PROTO_SignData done [17:09:35]FM_MakeSignedData done [17:09:35]CreateOFDProtocolMessage [17:09:35]wFMCommunicate request_size=4 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 11 00 00 [17:09:35]Write to MH i2c: E2 08 00 71 0C 80 11 00 00 00 00 00 00 F7 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 17 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 17 00 71 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [17:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:09:35]wFMCommunicate OK [17:09:35]CreateOFDProtocolMessage done [17:09:35]OFDSenderStorePacket 70343 [17:09:35]StoreOFDPacket docnum=70343 [17:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FF C4 07 01 4A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 47 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 12 01 00 35 04 06 00 80 A0 1D AD 32 1D 90 BE 88 4C 6E A4 34 DF [17:09:35]CheckFolder [17:09:35]dirname=/storage/ofd_packets [17:09:35]CheckFolder done [17:09:35]ProducePacketName [17:09:35]name=ofd_packets/00070343 [17:09:35]NVStorageSaveData ofd_packets/00070343 [17:09:35]File name is /storage/ofd_packets/00070343 [17:09:35]Write 301 bytes [17:09:35]NVStorageSaveData done [17:09:35]OFDSenderStorePacket done [17:09:35]KKMCreateOFDPacket done [17:09:35]NVStorageSaveData kkm_last_timestamp [17:09:35]File name is /storage/kkm_last_timestamp [17:09:35]Write 4 bytes [17:09:35]NVStorageSaveData done [17:09:35]ExternCall_PrintAddStr [17:09:35]wPrintStart [17:09:35]Write to MH i2c: 01 00 00 72 0C 7E [17:09:35]OFD Sender: Processing packet 70343 [packets to send 18, broken 17] [17:09:35]Write i2c OK [17:09:35]ProducePacketName [17:09:35]MH_I2C_Read... [17:09:35]name=ofd_packets/00070343 [17:09:35]OFD Sender: To server: pG, [17:09:35]CommunicateWithHost lk.salyk.kg:30040 [17:09:35]ConnectInit lk.salyk.kg [17:09:35]Read from MH i2c: 01 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: 01 07 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: 01 07 00 72 0C 00 00 00 00 00 FF 0F 93 [17:09:35]RasterBufferAndPrint [17:09:35]line Счет N : (1)2886112 [17:09:35]line ИНН: 02508201610067 [17:09:35]line Контрольно-Кассовый Чек [17:09:35]line ПРОДАЖА [17:09:35]line ТРК (МРК, ГНК) : 22 [17:09:35]Connected sock=11 [17:09:35]line Товар: 2710124130 [17:09:35]Data to sent: line Аи-92-К-5 [17:09:35]87 line 4.490 * 66.90 [17:09:35]line = 300.38 [17:09:35]line НДС 12% НСП 1% [17:09:35]line > о реализуемом товаре [17:09:35]95 line ОКРУГЛЕНИЕ: -0.38 [17:09:35]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FF C4 line ИТОГО: 300.00 [17:09:36]07 line Внесено: 300.00 [17:09:36]01 line СДАЧА: 0.00 [17:09:36]4A BB 5A 03 line НСП 1% : 2.66 [17:09:36]01 line НДС 12% : 31.90 [17:09:36]00 line Наличными: 300.00 [17:09:36]03 00 FB 00 line Безнал.: 0.00 [17:09:36]1E line Место: АЗС № 85 "Партнер Нефть" [17:09:36]04 line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:09:36]01 00 01 23 line СНО: Общий режим [17:09:36]04 4D 00 8A line Чек 291 22.10.2024 17:09 [17:09:36]04 line Смена: 195 ФФД: 1.0 [17:09:36]line ЗНМ: 0300000167 [17:09:36]line РНМ: 0000000000156251 [17:09:36]line Версия ККМ: v1.0 [17:09:36]line ФМ: 0000000000963346 [17:09:36]line ФД: 70343 [17:09:36]line ФПД: 141425181012509 [17:09:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T170927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70343&fm=141425181012509&tin=02508201610067®Number=0000000000156251&sum=30000 [17:09:36]0A 00 32 37 31 30 31 32 34 31 written 0, free lines is 4095 [17:09:36]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 Write to MH i2c: 39 01 00 00 9D 04 0C 06 A9 00 [17:09:36]00 00 00 00 00 00 1F Write i2c OK [17:09:36]04 02 00 01 MH_I2C_Read... [17:09:37]00 Read from MH i2c: 12 01 04 04 00 23 01 00 00 [17:09:37]F4 MH_I2C_Read... [17:09:37]03 Read from MH i2c: 04 00 47 DC 01 17 07 67 00 0E 04 04 00 [17:09:37]C3 MH_I2C_Read... [17:09:37]00 00 00 B9 04 01 00 01 0D 04 10 00 30 Read from MH i2c: 30 01 07 00 9D 30 0C 30 00 30 00 00 00 00 30 4D 30 0E 30 0B [17:09:37]RasterBufferAndPrint [17:09:37]line [17:09:37]30 line [17:09:37]30 line [17:09:37]31 line [17:09:37]line [17:09:37]35 36 32 35 31 11 04 written 0, free lines is 4095 [17:09:37]10 00 30 30 MH_Cut [17:09:37]30 Write to MH i2c: 30 D1 30 30 30 30 01 30 00 30 A4 39 36 33 33 0C 34 01 36 82 10 04 04 00 [17:09:37]C7 12 01 00 35 Write i2c OK [17:09:37]04 06 00 80 A0 1D AD 32 1D 90 BE 88 4C 6E A4 34 DF [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]*** Cut start [17:09:37]Read from MH i2c: *** Partial cut [17:09:37]D1 *** CUTSNS_PIN = 1 [17:09:37]01 00 A4 0C *** CUTSNS_PIN = 0 [17:09:37]00 81 [17:09:37]Write to MH i2c: 01 00 00 A5 0C B1 [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 *** Brake cut motor [17:09:38]39 36 33 33 34 36 4F 00 00 00 35 62 47 00 8E 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 Read from MH i2c: *** Stop cut motor [17:09:38]01 10 00 30 [17:09:38]*** Cut end [17:09:38]MH_I2C_Read... [17:09:38]30 30 30 30 Read from MH i2c: 30 30 30 30 01 30 07 39 00 36 33 33 34 [17:09:38]36 MH_I2C_Read... [17:09:38]10 04 04 Read from MH i2c: 00 01 C7 07 12 01 00 F4 00 03 A5 04 0C 00 F0 85 17 67 B6 04 01 00 00 36 5A A5 79 6A 3A 08 58 [17:09:38]CommunicateWithHost err = 0 [17:09:38]CheckOFDResponse [17:09:38]1017 (14) - 77093643461234 [17:09:38]1041 (16) - 0000000000963346 [17:09:38]1040 (4) - 70343 [17:09:38]1012 (4) - 22.10.2024 11:01 [17:09:38]1206 (1) - 0 [17:09:38]OFD Sender: Remove packet 70343 [17:09:38]00 ProducePacketName [17:09:38]00 name=ofd_packets/00070343 [17:09:38]00 NVStorageDeleteData [17:09:38]00 00 FF 0F C6 [17:09:38]process_action close_receipt done [17:09:38]requested_data is exist [17:09:38]produce_requested_data [17:09:38]requested_item fm.sn is exist - process it [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 11 00 00 [17:09:38]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [17:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 A7 0C 80 13 00 00 00 00 00 00 2F [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]OFD Sender: No OFD packet to send [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 A7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 12 01 00 0E 04 04 00 C3 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 53 [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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 12 01 00 0E 04 04 00 C3 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 [17:09:40]wFMCommunicate OK [17:09:40]SAM_PROTO_GetFieldsCounters done [17:09:40]requested_item shift.num is exist - process it [17:09:40]requested_item shift.opened is exist - process it [17:09:40]req_shift_opened [17:09:40]FM_GetShiftState [17:09:40]SAM_PROTO_GetShiftState [17:09:40]wFMCommunicate request_size=4 [17:09:40]MH_SAM_APDU [17:09:40]CAPDU: 80 13 01 00 [17:09:40]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [17:09:40]Write i2c OK [17:09:40]MH_I2C_Read... [17:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:40]Read from MH i2c: E2 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: E2 0E 00 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1F [17:09:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:09:40]wFMCommunicate OK [17:09:40]SAM_PROTO_GetShiftState done [17:09:40]FM_GetShiftState done [17:09:40]req_shift_opened done [17:09:40]requested_item shift.open_date is exist - process it [17:09:40]req_shift_open_date [17:09:40]req_shift_open_date done [17:09:40]produce_requested_data done [17:09:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70343,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:09:40]process_action_free close_receipt [17:09:40]json_value_free [17:09:40]json_value_free done [17:09:40]process_json_proto returns [17:09:40]Send response to host [17:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70343,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:09:40]free response buf [17:09:40]execute_script done [17:09:40]execute_script returns [17:09:40]free content buf [17:09:40]Sock 9.Close socket [17:09:40]Sock 9.Thread stoped [17:09:44]OFD Sender: No OFD packet to send [17:09:47]ConnectInit Can't connect to host [17:09:49]OFD Sender: No OFD packet to send [17:09:52]ConnectInit Can't connect to host [17:09:54]OFD Sender: No OFD packet to send [17:09:57]ConnectInit Can't connect to host [17:09:59]OFD Sender: No OFD packet to send [17:10:02]ConnectInit Can't connect to host [17:10:04]OFD Sender: No OFD packet to send [17:10:07]ConnectInit Can't connect to host [17:10:09]OFD Sender: No OFD packet to send [17:10:12]ConnectInit Can't connect to host [17:10:14]OFD Sender: No OFD packet to send [17:10:17]ConnectInit Can't connect to host [17:10:19]OFD Sender: No OFD packet to send [17:10:22]ConnectInit Can't connect to host [17:10:23]accept exits with 10 [17:10:23]New connection [17:10:23]New thread 3066555748 created [17:10:23]Thread 3066699108 joined [17:10:23]Waiting for new connection... [17:10:23] Sock 10.Parse request [17:10:23]Sock 10.Check first char [17:10:23]Sock 10.First char is OK [17:10:23]request: POST /json_proto HTTP/1.0 [17:10:23]Method: POST [17:10:23]URL: /json_proto [17:10:23]Method is POST - this is cgi request [17:10:23]url: /json_proto [17:10:23]query_string will be loaded in cgi processing [17:10:23]execute_cgi json_proto POST (null) [17:10:23]execute_cgi path=json_proto method=POST [17:10:23]POST find Content-Length [17:10:23]Host: 172.17.50.3:8080 [17:10:23]Content-Length: 689 [17:10:23]Content-Type: application/json [17:10:23] [17:10:23]POST finish read [17:10:23]Found Content-Length = 689 [17:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:10:23]execute_script... [17: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 : (1)2886111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:10:23]POST & json_proto [17:10:23]process_json_proto [17:10:23]json parsed OK: [17:10:23]protocol is kg_v1.0 [17:10:23]action value=close_receipt [17:10:23]process_action close_receipt [17:10:23]cmd_close_receipt [17:10:23]MH_GetDate [17:10:23]Write to MH i2c: F0 00 00 A9 0C A4 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: F0 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: F0 09 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: F0 09 00 A9 0C 00 80 DC 17 67 6B 98 1E 66 0E [17:10:24]GetLastDocTimeStamp 1729616967 [17:10:24]current date 1729617024 [17:10:24]FM_GetShiftState [17:10:24]SAM_PROTO_GetShiftState [17:10:24]wFMCommunicate request_size=4 [17:10:24]MH_SAM_APDU [17:10:24]CAPDU: 80 13 01 00 [17:10:24]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [17:10:24]Write i2c OK [17:10:24]MH_I2C_Read... [17:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:24]Read from MH i2c: E2 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: E2 0E 00 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 21 [17:10:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:10:24]wFMCommunicate OK [17:10:24]SAM_PROTO_GetShiftState done [17:10:24]FM_GetShiftState done [17:10:24]opened in 1729555832 [17:10:24]opened+sec_in_day 1729642232 [17:10:24]quantity*price = 200025 [17:10:24]sum+1 = 200026 [17:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 292 22.10.2024 17:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70344 ФПД: 45937087849646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70344&fm=45937087849646&tin=02508201610067®Number=0000000000156251&sum=200000 [17:10:28]StoreToDocumentArchive [17:10:28]shift 195 fd 70344 [17:10:28]save to /storage/0195/doc_00070344 [17:10:28]save last doc name /storage/0195/doc_00070344 to /storage/kkm_last_doc_name [17:10:28]save OK [17:10:28]Clear old archive folders... [17:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:10:28]tlvbuf is 00C4B3A0 [17:10:28]SAM_PROTO_ClearQueue [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 09 00 00 [17:10:28]Write to MH i2c: E2 08 00 B7 0C 80 09 00 00 00 00 00 00 35 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]SAM_PROTO_ClearQueue done [17:10:29]KKMCreateOFDPacket [17:10:29]OFDProtocolAddRootSTLVToBuf [17:10:29]FM_MakeSignedData [17:10:29]FM_MakeSignedData [17:10:29]SAM_PROTO_SignData [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 01 02 [17:10:29]Write to MH i2c: E2 08 00 B8 0C 80 0D 01 02 00 00 00 00 3D [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]wFMCommunicate request_size=255 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 OFD Sender: No OFD packet to send [17:10:29]65 00 00 00 00 00 37 04 06 00 28 1E 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 24 01 00 00 F4 03 04 00 80 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 12 01 [17:10:30]Write to MH i2c: E2 02 01 B9 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 24 01 00 00 F4 03 04 00 80 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 12 01 00 00 70 [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:31]Read from MH i2c: E2 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 03 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [17:10:31]RAPDU: 90 00 [17:10:31]wFMCommunicate OK [17:10:31]wFMCommunicate request_size=16 [17:10:31]MH_SAM_APDU [17:10:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 29 C7 8F CD A4 AE [17:10:31]Write to MH i2c: E2 13 00 BA 0C 80 0D 02 02 0B 00 00 35 04 06 00 29 C7 8F CD A4 AE 00 00 33 [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:31]Read from MH i2c: E2 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 03 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [17:10:31]RAPDU: 90 00 [17:10:31]wFMCommunicate OK [17:10:31]wFMCommunicate request_size=4 [17:10:31]MH_SAM_APDU [17:10:31]CAPDU: 80 0D 03 02 [17:10:31]Write to MH i2c: E2 08 00 BB 0C 80 0D 03 02 00 00 00 00 42 [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:31]Read from MH i2c: E2 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 0B 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 0B 00 BB 0C 00 1D A8 71 F8 BD B7 DF BB 90 00 7F [17:10:31]RAPDU: 1D A8 71 F8 BD B7 DF BB 90 00 [17:10:31]wFMCommunicate OK [17:10:31]SAM_PROTO_SignData done [17:10:31]FM_MakeSignedData done [17:10:31]CreateOFDProtocolMessage [17:10:31]wFMCommunicate request_size=4 [17:10:31]MH_SAM_APDU [17:10:31]CAPDU: 80 11 00 00 [17:10:31]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:31]Read from MH i2c: E2 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 17 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [17:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:10:32]wFMCommunicate OK [17:10:32]CreateOFDProtocolMessage done [17:10:32]OFDSenderStorePacket 70344 [17:10:32]StoreOFDPacket docnum=70344 [17:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A5 33 0D 01 1F F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 24 01 00 00 F4 03 04 00 80 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 12 01 00 35 04 06 00 29 C7 8F CD A4 AE 1D A8 71 F8 BD B7 DF BB [17:10:32]CheckFolder [17:10:32]dirname=/storage/ofd_packets [17:10:32]CheckFolder done [17:10:32]ProducePacketName [17:10:32]name=ofd_packets/00070344 [17:10:32]NVStorageSaveData ofd_packets/00070344 [17:10:32]File name is /storage/ofd_packets/00070344 [17:10:32]Write 307 bytes [17:10:32]NVStorageSaveData done [17:10:32]OFDSenderStorePacket done [17:10:32]KKMCreateOFDPacket done [17:10:32]NVStorageSaveData kkm_last_timestamp [17:10:32]File name is /storage/kkm_last_timestamp [17:10:32]Write 4 bytes [17:10:32]NVStorageSaveData done [17:10:32]ExternCall_PrintAddStr [17:10:32]wPrintStart [17:10:32]Write to MH i2c: 01 00 00 BD 0C C9 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]OFD Sender: Processing packet 70344 [packets to send 18, broken 17] [17:10:32]ProducePacketName [17:10:32]name=ofd_packets/00070344 [17:10:32]OFD Sender: To server: pG, [17:10:32]CommunicateWithHost lk.salyk.kg:30040 [17:10:32]Read from MH i2c: ConnectInit lk.salyk.kg [17:10:32]01 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 07 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [17:10:32]RasterBufferAndPrint [17:10:32]line Счет N : (1)2886111 [17:10:32]line ИНН: 02508201610067 [17:10:32]Connected sock=9 [17:10:32]line Контрольно-Кассовый Чек [17:10:32]Data to sent: line ПРОДАЖА [17:10:32]87 line ТРК (МРК, ГНК) : 31 [17:10:32]95 line Товар: 2710194240 [17:10:32]line D-ENERGY Дт-К-2 [17:10:32]line 25.910 * 77.20 [17:10:32]line = 2000.25 [17:10:32]F6 line НДС 12% НСП 1% [17:10:32]70 line > о реализуемом товаре [17:10:32]47 line ОКРУГЛЕНИЕ: -0.25 [17:10:32]line ИТОГО: 2000.00 [17:10:32]line Внесено: 2000.00 [17:10:32]line СДАЧА: 0.00 [17:10:32]2C line НСП 1% : 17.70 [17:10:32]01 line НДС 12% : 212.42 [17:10:32]00 line Наличными: 2000.00 [17:10:32]line Безнал.: 0.00 [17:10:32]line Место: АЗС № 85 "Партнер Нефть" [17:10:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:10:32]30 line СНО: Общий режим [17:10:32]30 line Чек 292 22.10.2024 17:10 [17:10:32]30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 line Смена: 195 ФФД: 1.0 [17:10:32]A5 line ЗНМ: 0300000167 [17:10:32]33 line РНМ: 0000000000156251 [17:10:32]0D 01 1F F6 line Версия ККМ: v1.0 [17:10:32]5A line ФМ: 0000000000963346 [17:10:32]03 line ФД: 70344 [17:10:32]01 line ФПД: 45937087849646 [17:10:32]00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70344&fm=45937087849646&tin=02508201610067®Number=0000000000156251&sum=200000 [17:10:32]03 00 01 01 1E written 0, free lines is 4095 [17:10:32]04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 Write to MH i2c: 00 01 00 00 00 07 04 06 00 40 0D 00 03 E8 00 0C 00 F4 00 [17:10:33]39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 Write i2c OK [17:10:33]04 MH_I2C_Read... [17:10:33]04 00 24 01 Read from MH i2c: 00 01 00 [17:10:33]F4 03 04 00 80 DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 12 01 00 35 04 06 00 29 C7 8F CD A4 AE 1D A8 71 F8 BD B7 DF BB [17:10:34]MH_I2C_Read... [17:10:34]Read from MH i2c: 01 07 00 [17:10:34]MH_I2C_Read... [17:10:34]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 96 0E 9F [17:10:34]RasterBufferAndPrint [17:10:34]line [17:10:34]line [17:10:34]line [17:10:34]line [17:10:34]line [17:10:34]written 0, free lines is 4095 [17:10:34]MH_Cut [17:10:34]Write to MH i2c: D1 01 00 ConnectInit Can't connect to host [17:10:34]EF 0C 01 CD [17:10: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 34 36 4F Write i2c OK [17:10:34]00 MH_I2C_Read... [17:10:34]Read from MH i2c: D1 [17:10:34]00 MH_I2C_Read... [17:10:34]00 *** Cut start [17:10:34]9A *** Partial cut [17:10:34]C7 Read from MH i2c: 47 D1 00 01 6C 00 81 [17:10:34]A5 MH_I2C_Read... [17:10:34]07 Read from MH i2c: 01 D1 00 01 07 00 00 EF 3B 0C 00 F9 00 03 CC 0E [17:10:34]00 Write to MH i2c: 37 01 37 00 30 00 39 F0 33 0C 36 FC 34 [17:10:35]33 Write i2c OK [17:10:35]34 *** CUTSNS_PIN = 1 [17:10:35]36 MH_I2C_Read... [17:10:35]31 32 33 *** CUTSNS_PIN = 0 [17:10:35]*** Brake cut motor [17:10:35]34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 12 01 00 F4 03 04 00 28 86 *** Stop cut motor [17:10:35]17 *** Cut end [17:10:35]Read from MH i2c: 01 [17:10:35]67 MH_I2C_Read... [17:10:35]B6 04 01 00 Read from MH i2c: 00 01 BE 07 98 00 6D [17:10:35]2F 58 D9 DF MH_I2C_Read... [17:10:35]B3 [17:10:35]CommunicateWithHost err = 0 [17:10:35]CheckOFDResponse [17:10:35]1017 (14) - 77093643461234 [17:10:35]Read from MH i2c: 1041 (16) - 0000000000963346 [17:10:35]01 1040 (4) - 70344 [17:10:35]07 1012 (4) - 22.10.2024 11:02 [17:10:35]1206 (1) - 0 [17:10:35]OFD Sender: Remove packet 70344 [17:10:35]ProducePacketName [17:10:35]00 name=ofd_packets/00070344 [17:10:35]F0 NVStorageDeleteData [17:10:35]0C 00 00 00 00 00 FF 0F 11 [17:10:35]process_action close_receipt done [17:10:35]requested_data is exist [17:10:35]produce_requested_data [17:10:35]requested_item fm.sn is exist - process it [17:10:35]wFMCommunicate request_size=4 [17:10:35]MH_SAM_APDU [17:10:35]CAPDU: 80 11 00 00 [17:10:35]Write to MH i2c: E2 08 00 F1 0C 80 11 00 00 00 00 00 00 77 [17:10:35]Write i2c OK [17:10:35]MH_I2C_Read... [17:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:35]Read from MH i2c: E2 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 17 00 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 17 00 F1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [17:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:10:35]wFMCommunicate OK [17:10:35]requested_item fd.num is exist - process it [17:10:35]SAM_PROTO_GetFieldsCounters [17:10:35]wFMCommunicate request_size=4 [17:10:35]MH_SAM_APDU [17:10:35]CAPDU: 80 13 00 00 [17:10:35]Write to MH i2c: E2 08 00 F2 0C 80 13 00 00 00 00 00 00 7A [17:10:36]Write i2c OK [17:10:36]MH_I2C_Read... [17:10:36]OFD Sender: No OFD packet to send [17:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:36]Read from MH i2c: E2 [17:10:36]MH_I2C_Read... [17:10:36]Read from MH i2c: E2 62 00 [17:10:36]MH_I2C_Read... [17:10:36]Read from MH i2c: E2 62 00 F2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 12 01 00 0E 04 04 00 C3 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 A2 [17:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 12 01 00 0E 04 04 00 C3 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 [17:10:36]wFMCommunicate OK [17:10:36]SAM_PROTO_GetFieldsCounters done [17:10:36]requested_item shift.num is exist - process it [17:10:36]requested_item shift.opened is exist - process it [17:10:36]req_shift_opened [17:10:36]FM_GetShiftState [17:10:36]SAM_PROTO_GetShiftState [17:10:36]wFMCommunicate request_size=4 [17:10:36]MH_SAM_APDU [17:10:36]CAPDU: 80 13 01 00 [17:10:36]Write to MH i2c: E2 08 00 F3 0C 80 13 01 00 00 00 00 00 7C [17:10:36]Write i2c OK [17:10:36]MH_I2C_Read... [17:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:37]Read from MH i2c: E2 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 F3 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6A [17:10:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:10:37]wFMCommunicate OK [17:10:37]SAM_PROTO_GetShiftState done [17:10:37]FM_GetShiftState done [17:10:37]req_shift_opened done [17:10:37]requested_item shift.open_date is exist - process it [17:10:37]req_shift_open_date [17:10:37]req_shift_open_date done [17:10:37]produce_requested_data done [17:10:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70344,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:10:37]process_action_free close_receipt [17:10:37]json_value_free [17:10:37]json_value_free done [17:10:37]process_json_proto returns [17:10:37]Send response to host [17:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70344,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:10:37]free response buf [17:10:37]execute_script done [17:10:37]execute_script returns [17:10:37]free content buf [17:10:37]Sock 10.Close socket [17:10:37]Sock 10.Thread stoped [17:10:39]ConnectInit Can't connect to host [17:10:41]OFD Sender: No OFD packet to send [17:10:44]ConnectInit Can't connect to host [17:10:46]OFD Sender: No OFD packet to send [17:10:49]ConnectInit Can't connect to host [17:10:51]OFD Sender: No OFD packet to send [17:10:54]ConnectInit Can't connect to host [17:10:56]OFD Sender: No OFD packet to send [17:10:59]ConnectInit Can't connect to host [17:11:01]OFD Sender: No OFD packet to send [17:11:04]ConnectInit Can't connect to host [17:11:06]OFD Sender: No OFD packet to send [17:11:09]ConnectInit Can't connect to host [17:11:11]OFD Sender: No OFD packet to send [17:11:14]ConnectInit Can't connect to host [17:11:16]OFD Sender: No OFD packet to send [17:11:20]ConnectInit Can't connect to host [17:11:21]OFD Sender: No OFD packet to send [17:11:25]ConnectInit Can't connect to host [17:11:26]OFD Sender: No OFD packet to send [17:11:30]ConnectInit Can't connect to host [17:11:31]OFD Sender: No OFD packet to send [17:11:35]ConnectInit Can't connect to host [17:11:36]OFD Sender: No OFD packet to send [17:11:40]ConnectInit Can't connect to host [17:11:41]OFD Sender: No OFD packet to send [17:11:45]ConnectInit Can't connect to host [17:11:46]OFD Sender: No OFD packet to send [17:11:50]ConnectInit Can't connect to host [17:11:51]OFD Sender: No OFD packet to send [17:11:55]ConnectInit Can't connect to host [17:11:56]OFD Sender: No OFD packet to send [17:12:00]ConnectInit Can't connect to host [17:12:01]OFD Sender: No OFD packet to send [17:12:05]ConnectInit Can't connect to host [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:12]accept exits with 7 [17:12:12]New connection [17:12:12]New thread 3066699108 created [17:12:12]Thread 3066555748 joined [17:12:12]Waiting for new connection... [17:12:12] Sock 7.Parse request [17:12:12]Sock 7.Check first char [17:12:12]Sock 7.First char is OK [17:12:12]request: POST /json_proto HTTP/1.0 [17:12:12]Method: POST [17:12:12]URL: /json_proto [17:12:12]Method is POST - this is cgi request [17:12:12]url: /json_proto [17:12:12]query_string will be loaded in cgi processing [17:12:12]execute_cgi json_proto POST (null) [17:12:12]execute_cgi path=json_proto method=POST [17:12:12]POST find Content-Length [17:12:12]Host: 172.17.50.3:8080 [17:12:12]Content-Length: 683 [17:12:12]Content-Type: application/json [17:12:12] [17:12:12]POST finish read [17:12:12]Found Content-Length = 683 [17:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [17:12:12]execute_script... [17:12: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 : (1)2886113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [17:12:12]POST & json_proto [17:12:12]process_json_proto [17:12:12]json parsed OK: [17:12:12]protocol is kg_v1.0 [17:12:12]action value=close_receipt [17:12:12]process_action close_receipt [17:12:12]cmd_close_receipt [17:12:12]MH_GetDate [17:12:12]Write to MH i2c: F0 00 00 F4 0C EF [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 09 00 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: F0 09 00 F4 0C 00 ED DC 17 67 6B 98 1E 66 C6 [17:12:12]GetLastDocTimeStamp 1729617024 [17:12:12]current date 1729617133 [17:12:12]FM_GetShiftState [17:12:12]SAM_PROTO_GetShiftState [17:12:12]wFMCommunicate request_size=4 [17:12:12]MH_SAM_APDU [17:12:12]CAPDU: 80 13 01 00 [17:12:12]Write to MH i2c: E2 08 00 F5 0C 80 13 01 00 00 00 00 00 7E [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:12]Read from MH i2c: E2 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: E2 0E 00 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: E2 0E 00 F5 0C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6C [17:12:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:12:12]wFMCommunicate OK [17:12:12]SAM_PROTO_GetShiftState done [17:12:12]FM_GetShiftState done [17:12:12]opened in 1729555832 [17:12:12]opened+sec_in_day 1729642232 [17:12:12]quantity*price = 300046 [17:12:12]sum+1 = 300048 [17:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 293 22.10.2024 17:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70345 ФПД: 55864678391394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70345&fm=55864678391394&tin=02508201610067®Number=0000000000156251&sum=300000 [17:12:16]StoreToDocumentArchive [17:12:16]shift 195 fd 70345 [17:12:16]save to /storage/0195/doc_00070345 [17:12:16]OFD Sender: No OFD packet to send [17:12:16]save last doc name /storage/0195/doc_00070345 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 00C68F00 [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 02 0D 80 09 00 00 00 00 00 00 81 [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 02 0D 00 90 00 83 [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 03 0D 80 0D 01 02 00 00 00 00 89 [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 03 0D 00 90 00 84 [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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 25 01 00 00 F4 03 04 00 ED DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 12 01 00 35 04 06 00 32 [17:12:17]Write to MH i2c: E2 02 01 04 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 25 01 00 00 F4 03 04 00 ED DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 12 01 00 35 04 06 00 32 00 00 D9 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 03 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [17:12:18]RAPDU: 90 00 [17:12:18]wFMCommunicate OK [17:12:18]wFMCommunicate request_size=10 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 0D 02 02 05 CF 02 4F 9E 62 [17:12:18]Write to MH i2c: E2 0D 00 05 0D 80 0D 02 02 05 00 CF 02 4F 9E 62 00 00 B6 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 03 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [17:12:18]RAPDU: 90 00 [17:12:18]wFMCommunicate OK [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 0D 03 02 [17:12:18]Write to MH i2c: E2 08 00 06 0D 80 0D 03 02 00 00 00 00 8E [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 0B 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 0B 00 06 0D 00 B3 EE 02 25 2E 14 76 81 90 00 90 [17:12:18]RAPDU: B3 EE 02 25 2E 14 76 81 90 00 [17:12:18]wFMCommunicate OK [17:12:18]SAM_PROTO_SignData done [17:12:18]FM_MakeSignedData done [17:12:18]CreateOFDProtocolMessage [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 07 0D 80 11 00 00 00 00 00 00 8E [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 07 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [17:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:19]wFMCommunicate OK [17:12:19]CreateOFDProtocolMessage done [17:12:19]OFDSenderStorePacket 70345 [17:12:19]StoreOFDPacket docnum=70345 [17:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 F2 07 01 AB 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 25 01 00 00 F4 03 04 00 ED DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 12 01 00 35 04 06 00 32 CF 02 4F 9E 62 B3 EE 02 25 2E 14 76 81 [17:12:19]CheckFolder [17:12:19]dirname=/storage/ofd_packets [17:12:19]CheckFolder done [17:12:19]ProducePacketName [17:12:19]name=ofd_packets/00070345 [17:12:19]NVStorageSaveData ofd_packets/00070345 [17:12:19]File name is /storage/ofd_packets/00070345 [17:12:19]Write 301 bytes [17:12:19]NVStorageSaveData done [17:12:19]OFDSenderStorePacket done [17:12:19]KKMCreateOFDPacket done [17:12:19]NVStorageSaveData kkm_last_timestamp [17:12:19]File name is /storage/kkm_last_timestamp [17:12:19]Write 4 bytes [17:12:19]NVStorageSaveData done [17:12:19]ExternCall_PrintAddStr [17:12:19]wPrintStart [17:12:19]Write to MH i2c: 01 00 00 08 0D 15 [17:12:19]OFD Sender: Processing packet 70345 [packets to send 18, broken 17] [17:12:19]ProducePacketName [17:12:19]name=ofd_packets/00070345 [17:12:19]OFD Sender: To server: pG, [17:12:19]CommunicateWithHost lk.salyk.kg:30040 [17:12:19]ConnectInit lk.salyk.kg [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: 01 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: 01 07 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: 01 07 00 08 0D 00 00 00 00 00 FF 0F 2A [17:12:19]RasterBufferAndPrint [17:12:19]line Счет N : (1)2886113 [17:12:19]line ИНН: 02508201610067 [17:12:19]line Контрольно-Кассовый Чек [17:12:19]line ПРОДАЖА [17:12:19]line ТРК (МРК, ГНК) : 42 [17:12:19]line Товар: 2710124130 [17:12:19]line Аи-92-К-5 [17:12:19]line 44.850 * 66.90 [17:12:19]line = 3000.47 [17:12:19]line НДС 12% НСП 1% [17:12:19]Connected sock=10 [17:12: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 34 36 0F 01 00 00 36 F2 07 01 AB 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 line > о реализуемом товаре [17:12:19]4D line ОКРУГЛЕНИЕ: -0.47 [17:12:19]00 line ИТОГО: 3000.00 [17:12:19]8A line Внесено: 3000.00 [17:12:19]04 line СДАЧА: 0.00 [17:12:19]0A line НСП 1% : 26.55 [17:12:19]00 line НДС 12% : 318.63 [17:12:19]32 line Наличными: 3000.00 [17:12:19]37 line Безнал.: 0.00 [17:12:19]31 line Место: АЗС № 85 "Партнер Нефть" [17:12:19]30 line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:12:19]line СНО: Общий режим [17:12:19]line Чек 293 22.10.2024 17:12 [17:12:19]line Смена: 195 ФФД: 1.0 [17:12:19]31 line ЗНМ: 0300000167 [17:12:19]32 line РНМ: 0000000000156251 [17:12:19]line Версия ККМ: v1.0 [17:12:19]line ФМ: 0000000000963346 [17:12:19]line ФД: 70345 [17:12:19]line ФПД: 55864678391394 [17:12:19]34 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70345&fm=55864678391394&tin=02508201610067®Number=0000000000156251&sum=300000 [17:12:19]31 33 30 06 04 0C written 0, free lines is 4095 [17:12:19]00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 25 01 00 00 F4 03 04 00 ED DC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 Write to MH i2c: 30 01 30 00 30 30 30 39 36 00 33 33 33 34 36 10 04 04 0D 00 40 C9 12 01 00 35 04 06 00 32 CF 02 4F 9E 62 B3 EE 02 25 2E 14 76 81 [17:12:20] [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: 01 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: 01 07 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 F8 0D 4C [17:12:20]RasterBufferAndPrint [17:12:20]line [17:12:20]line [17:12:20]line [17:12:20]line [17:12:20]line [17:12:20]written 0, free lines is 3707 [17:12:20]MH_Cut [17:12:20]Write to MH i2c: D1 01 00 3A 0D 01 19 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: D1 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: D1 01 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: D1 01 00 3A 0D 00 18 [17:12:20]Write to MH i2c: 01 00 00 3B 0D 48 [17:12:20]Received data: 87 95 F6 70 Write i2c OK [17:12:20]47 MH_I2C_Read... [17:12:20]2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 58 C5 47 00 12 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 *** Cut start [17:12:20]30 *** Partial cut [17:12:20]30 *** CUTSNS_PIN = 1 [17:12:20]30 30 39 36 *** CUTSNS_PIN = 0 [17:12:20]33 33 34 36 10 04 04 00 C9 12 01 00 F4 03 04 00 92 86 17 67 B6 04 01 00 00 AB 67 34 65 61 0B E7 33 [17:12:20]CommunicateWithHost err = 0 [17:12:20]CheckOFDResponse [17:12:20]1017 (14) - 77093643461234 [17:12:20]1041 (16) - 0000000000963346 [17:12:20]1040 (4) - 70345 [17:12:20]1012 (4) - 22.10.2024 11:03 [17:12:20]1206 (1) - 0 [17:12:20]OFD Sender: Remove packet 70345 [17:12:20]ProducePacketName [17:12:20]name=ofd_packets/00070345 [17:12:21]NVStorageDeleteData [17:12:21]*** Brake cut motor [17:12:21]Read from MH i2c: 01 [17:12:21]MH_I2C_Read... [17:12:21]*** Stop cut motor [17:12:21]*** Cut end [17:12:21]Read from MH i2c: 01 07 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 FF 0F 5D [17:12:21]process_action close_receipt done [17:12:21]requested_data is exist [17:12:21]produce_requested_data [17:12:21]requested_item fm.sn is exist - process it [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]OFD Sender: No OFD packet to send [17:12:21]CAPDU: 80 11 00 00 [17:12:21]Write to MH i2c: E2 08 00 3C 0D 80 11 00 00 00 00 00 00 C3 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 17 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 17 00 3C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [17:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:21]wFMCommunicate OK [17:12:21]requested_item fd.num is exist - process it [17:12:21]SAM_PROTO_GetFieldsCounters [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 13 00 00 [17:12:21]Write to MH i2c: E2 08 00 3D 0D 80 13 00 00 00 00 00 00 C6 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 62 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 62 00 3D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 12 01 00 0E 04 04 00 C3 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 F2 [17:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 12 01 00 0E 04 04 00 C3 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 [17:12:22]wFMCommunicate OK [17:12:22]SAM_PROTO_GetFieldsCounters done [17:12:22]requested_item shift.num is exist - process it [17:12:22]requested_item shift.opened is exist - process it [17:12:22]req_shift_opened [17:12:22]FM_GetShiftState [17:12:22]SAM_PROTO_GetShiftState [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 13 01 00 [17:12:22]Write to MH i2c: E2 08 00 3E 0D 80 13 01 00 00 00 00 00 C8 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 0E 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 0E 00 3E 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B6 [17:12:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:12:22]wFMCommunicate OK [17:12:22]SAM_PROTO_GetShiftState done [17:12:22]FM_GetShiftState done [17:12:22]req_shift_opened done [17:12:22]requested_item shift.open_date is exist - process it [17:12:22]req_shift_open_date [17:12:22]req_shift_open_date done [17:12:22]produce_requested_data done [17:12:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70345,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:12:22]process_action_free close_receipt [17:12:22]json_value_free [17:12:22]json_value_free done [17:12:22]process_json_proto returns [17:12:22]Send response to host [17:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70345,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:12:22]free response buf [17:12:22]execute_script done [17:12:22]execute_script returns [17:12:22]free content buf [17:12:22]Sock 7.Close socket [17:12:22]Sock 7.Thread stoped [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:26]accept exits with 9 [17:15:26]New connection [17:15:26]New thread 3066555748 created [17:15:26]Thread 3066699108 joined [17:15:26]Waiting for new connection... [17:15:26] Sock 9.Parse request [17:15:26]Sock 9.Check first char [17:15:26]Sock 9.First char is OK [17:15:26]request: POST /json_proto HTTP/1.0 [17:15:26]Method: POST [17:15:26]URL: /json_proto [17:15:26]Method is POST - this is cgi request [17:15:26]url: /json_proto [17:15:26]query_string will be loaded in cgi processing [17:15:26]execute_cgi json_proto POST (null) [17:15:26]execute_cgi path=json_proto method=POST [17:15:26]POST find Content-Length [17:15:26]Host: 172.17.50.3:8080 [17:15:26]Content-Length: 678 [17:15:26]Content-Type: application/json [17:15:26] [17:15:26]POST finish read [17:15:26]Found Content-Length = 678 [17:15:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:15:26]execute_script... [17:15: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)2886115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:15:26]POST & json_proto [17:15:26]process_json_proto [17:15:26]json parsed OK: [17:15:26]protocol is kg_v1.0 [17:15:26]action value=close_receipt [17:15:26]process_action close_receipt [17:15:26]cmd_close_receipt [17:15:26]MH_GetDate [17:15:26]Write to MH i2c: F0 00 00 3F 0D 3B [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 09 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 09 00 3F 0D 00 AF DD 17 67 6B 98 1E 66 D5 [17:15:26]GetLastDocTimeStamp 1729617133 [17:15:26]current date 1729617327 [17:15:26]FM_GetShiftState [17:15:26]SAM_PROTO_GetShiftState [17:15:26]wFMCommunicate request_size=4 [17:15:26]MH_SAM_APDU [17:15:26]CAPDU: 80 13 01 00 [17:15:26]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:26]Read from MH i2c: E2 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 0E 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B8 [17:15:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:15:26]wFMCommunicate OK [17:15:26]SAM_PROTO_GetShiftState done [17:15:26]FM_GetShiftState done [17:15:26]opened in 1729555832 [17:15:26]opened+sec_in_day 1729642232 [17:15:26]quantity*price = 40068 [17:15:26]sum+1 = 40069 [17:15:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 294 22.10.2024 17:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70346 ФПД: 199652576595626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70346&fm=199652576595626&tin=02508201610067®Number=0000000000156251&sum=40000 [17:15:28]StoreToDocumentArchive [17:15:28]shift 195 fd 70346 [17:15:28]save to /storage/0195/doc_00070346 [17:15:28]save last doc name /storage/0195/doc_00070346 to /storage/kkm_last_doc_name [17:15:28]save OK [17:15:28]Clear old archive folders... [17:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:28]tlvbuf is 00DCA340 [17:15:28]SAM_PROTO_ClearQueue [17:15:28]wFMCommunicate request_size=4 [17:15:28]MH_SAM_APDU [17:15:28]CAPDU: 80 09 00 00 [17:15:28]Write to MH i2c: E2 08 00 4D 0D 80 09 00 00 00 00 00 00 CC [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [17:15:28]RAPDU: 90 00 [17:15:28]wFMCommunicate OK [17:15:28]SAM_PROTO_ClearQueue done [17:15:28]KKMCreateOFDPacket [17:15:28]OFDProtocolAddRootSTLVToBuf [17:15:28]FM_MakeSignedData [17:15:28]FM_MakeSignedData [17:15:28]SAM_PROTO_SignData [17:15:28]wFMCommunicate request_size=4 [17:15:28]MH_SAM_APDU [17:15:28]CAPDU: 80 0D 01 02 [17:15:28]Write to MH i2c: E2 08 00 4E 0D 80 0D 01 02 00 00 00 00 D4 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [17:15:28]RAPDU: 90 00 [17:15:28]wFMCommunicate OK [17:15:28]wFMCommunicate request_size=255 [17:15:28]MH_SAM_APDU [17:15: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 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 26 01 00 00 F4 03 04 00 AF DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 12 01 00 35 04 06 00 B5 [17:15:28]Write to MH i2c: E2 02 01 4F 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 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 26 01 00 00 F4 03 04 00 AF DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 12 01 00 35 04 06 00 B5 00 00 92 [17:15:29]Write i2c OK [17:15:29]MH_I2C_Read... [17:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:29]Read from MH i2c: E2 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 03 00 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [17:15:29]RAPDU: 90 00 [17:15:29]wFMCommunicate OK [17:15:29]wFMCommunicate request_size=10 [17:15:29]MH_SAM_APDU [17:15:29]CAPDU: 80 0D 02 02 05 95 3C E8 0E AA [17:15:29]Write to MH i2c: E2 0D 00 50 0D 80 0D 02 02 05 00 95 3C E8 0E AA 00 00 52 [17:15:29]Write i2c OK [17:15:29]MH_I2C_Read... [17:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:29]Read from MH i2c: E2 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 03 00 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [17:15:29]RAPDU: 90 00 [17:15:29]wFMCommunicate OK [17:15:29]wFMCommunicate request_size=4 [17:15:29]MH_SAM_APDU [17:15:29]CAPDU: 80 0D 03 02 [17:15:29]Write to MH i2c: E2 08 00 51 0D 80 0D 03 02 00 00 00 00 D9 [17:15:29]Write i2c OK [17:15:29]MH_I2C_Read... [17:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:29]Read from MH i2c: E2 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 0B 00 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 0B 00 51 0D 00 0E DA 4C A6 00 72 A1 0D 90 00 D4 [17:15:29]RAPDU: 0E DA 4C A6 00 72 A1 0D 90 00 [17:15:29]wFMCommunicate OK [17:15:29]SAM_PROTO_SignData done [17:15:29]FM_MakeSignedData done [17:15:29]CreateOFDProtocolMessage [17:15:29]wFMCommunicate request_size=4 [17:15:29]MH_SAM_APDU [17:15:29]CAPDU: 80 11 00 00 [17:15:29]Write to MH i2c: E2 08 00 52 0D 80 11 00 00 00 00 00 00 D9 [17:15:29]Write i2c OK [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 [17:15:29]MH_I2C_Read... [17:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:29]Read from MH i2c: E2 17 00 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: E2 17 00 52 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [17:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:15:29]wFMCommunicate OK [17:15:29]CreateOFDProtocolMessage done [17:15:29]OFDSenderStorePacket 70346 [17:15:29]StoreOFDPacket docnum=70346 [17:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 6F 07 01 59 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 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 26 01 00 00 F4 03 04 00 AF DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 12 01 00 35 04 06 00 B5 95 3C E8 0E AA 0E DA 4C A6 00 72 A1 0D [17:15:29]CheckFolder [17:15:29]dirname=/storage/ofd_packets [17:15:29]CheckFolder done [17:15:29]ProducePacketName [17:15:29]name=ofd_packets/00070346 [17:15:29]NVStorageSaveData ofd_packets/00070346 [17:15:29]File name is /storage/ofd_packets/00070346 [17:15:29]Write 301 bytes [17:15:29]NVStorageSaveData done [17:15:29]OFDSenderStorePacket done [17:15:29]KKMCreateOFDPacket done [17:15:29]NVStorageSaveData kkm_last_timestamp [17:15:29]File name is /storage/kkm_last_timestamp [17:15:29]Write 4 bytes [17:15:29]NVStorageSaveData done [17:15:29]ExternCall_PrintAddStr [17:15:29]wPrintStart [17:15:29]Write to MH i2c: 01 00 00 53 0D 60 [17:15:29]OFD Sender: Processing packet 70346 [packets to send 18, broken 17] [17:15:29]ProducePacketName [17:15:29]name=ofd_packets/00070346 [17:15:29]OFD Sender: To server: pG, [17:15:29]CommunicateWithHost lk.salyk.kg:30040 [17:15:29]ConnectInit lk.salyk.kg [17:15:29]Write i2c OK [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: 01 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: 01 07 00 [17:15:29]MH_I2C_Read... [17:15:29]Read from MH i2c: 01 07 00 53 0D 00 00 00 00 00 FF 0F 75 [17:15:29]RasterBufferAndPrint [17:15:29]line Счет N : (1)2886115 [17:15:29]line ИНН: 02508201610067 [17:15:29]line Контрольно-Кассовый Чек [17:15:29]line ПРОДАЖА [17:15:29]line ТРК (МРК, ГНК) : 43 [17:15:29]line Товар: 2710124500 [17:15:29]line Аи-95-К-5 [17:15:29]line 5.400 * 74.20 [17:15:29]line = 400.68 [17:15:29]line НДС 12% НСП 1% [17:15:29]line > о реализуемом товаре [17:15:29]line ОКРУГЛЕНИЕ: -0.68 [17:15:29]line ИТОГО: 400.00 [17:15:29]line Внесено: 400.00 [17:15:29]line СДАЧА: 0.00 [17:15:29]line НСП 1% : 3.55 [17:15:29]line НДС 12% : 42.55 [17:15:29]line Наличными: 400.00 [17:15:29]line Безнал.: 0.00 [17:15:29]line Место: АЗС № 85 "Партнер Нефть" [17:15:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:15:29]line СНО: Общий режим [17:15:29]line Чек 294 22.10.2024 17:15 [17:15:29]line Смена: 195 ФФД: 1.0 [17:15:29]line ЗНМ: 0300000167 [17:15:29]line РНМ: 0000000000156251 [17:15:29]line Версия ККМ: v1.0 [17:15:29]line ФМ: 0000000000963346 [17:15:29]line ФД: 70346 [17:15:29]line ФПД: 199652576595626 [17:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70346&fm=199652576595626&tin=02508201610067®Number=0000000000156251&sum=40000 [17:15:29]written 0, free lines is 4095 [17:15:29]Connected sock=10 [17:15: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 34 36 0F 01 00 00 C7 6F 07 01 59 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 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 26 01 00 00 F4 03 04 00 AF DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 12 01 00 35 04 06 00 B5 95 3C E8 0E AA 0E DA 4C A6 00 72 A1 0D [17:15:30]Write to MH i2c: 01 00 00 7E 0D 8B [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: 01 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: 01 07 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 05 0D A4 [17:15:30]RasterBufferAndPrint [17:15:30]line [17:15:30]line [17:15:30]line [17:15:30]line [17:15:30]line [17:15:30]written 0, free lines is 3387 [17:15:30]MH_Cut [17:15:30]Write to MH i2c: D1 01 00 85 0D 01 64 [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: D1 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: D1 01 00 [17:15:30]MH_I2C_Read... [17:15: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 34 36 4F 00 00 00 57 AF 47 00 2F A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 12 01 00 F4 03 04 00 50 87 17 67 B6 04 01 00 00 DF 19 F2 3B C4 BC 36 37 [17:15:30]CommunicateWithHost err = 0 [17:15:30]CheckOFDResponse [17:15:30]1017 (14) - 77093643461234 [17:15:30]1041 (16) - 0000000000963346 [17:15:30]1040 (4) - 70346 [17:15:30]1012 (4) - 22.10.2024 11:06 [17:15:30]1206 (1) - 0 [17:15:30]OFD Sender: Remove packet 70346 [17:15:30]ProducePacketName [17:15:30]name=ofd_packets/00070346 [17:15:30]NVStorageDeleteData [17:15:30]Read from MH i2c: D1 01 00 85 0D 00 63 [17:15:30]Write to MH i2c: 01 00 00 86 0D 93 [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:31]*** Cut start [17:15:31]*** Partial cut [17:15:31]*** CUTSNS_PIN = 1 [17:15:31]*** CUTSNS_PIN = 0 [17:15:31]OFD Sender: No OFD packet to send [17:15:31]*** Brake cut motor [17:15:31]Read from MH i2c: 01 [17:15:31]MH_I2C_Read... [17:15:31]*** Stop cut motor [17:15:31]*** Cut end [17:15:31]Read from MH i2c: 01 07 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 86 0D 00 00 00 00 00 FF 0F A8 [17:15:31]process_action close_receipt done [17:15:31]requested_data is exist [17:15:31]produce_requested_data [17:15:31]requested_item fm.sn is exist - process it [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 11 00 00 [17:15:31]Write to MH i2c: E2 08 00 87 0D 80 11 00 00 00 00 00 00 0E [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:31]Read from MH i2c: E2 17 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 17 00 87 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [17:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:15:31]wFMCommunicate OK [17:15:31]requested_item fd.num is exist - process it [17:15:31]SAM_PROTO_GetFieldsCounters [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 13 00 00 [17:15:31]Write to MH i2c: E2 08 00 88 0D 80 13 00 00 00 00 00 00 11 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 62 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 62 00 88 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 12 01 00 0E 04 04 00 C3 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 41 [17:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 12 01 00 0E 04 04 00 C3 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 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_GetFieldsCounters done [17:15:32]requested_item shift.num is exist - process it [17:15:32]requested_item shift.opened is exist - process it [17:15:32]req_shift_opened [17:15:32]FM_GetShiftState [17:15:32]SAM_PROTO_GetShiftState [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 13 01 00 [17:15:32]Write to MH i2c: E2 08 00 89 0D 80 13 01 00 00 00 00 00 13 [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0E 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0E 00 89 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 01 [17:15:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_GetShiftState done [17:15:32]FM_GetShiftState done [17:15:32]req_shift_opened done [17:15:32]requested_item shift.open_date is exist - process it [17:15:32]req_shift_open_date [17:15:32]req_shift_open_date done [17:15:32]produce_requested_data done [17:15:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70346,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:15:32]process_action_free close_receipt [17:15:32]json_value_free [17:15:32]json_value_free done [17:15:32]process_json_proto returns [17:15:32]Send response to host [17:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70346,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:15:32]free response buf [17:15:32]execute_script done [17:15:32]execute_script returns [17:15:32]free content buf [17:15:32]Sock 9.Close socket [17:15:32]Sock 9.Thread stoped [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:18]accept exits with 7 [17:16:18]New connection [17:16:18]New thread 3066699108 created [17:16:18]Thread 3066555748 joined [17:16:18]Waiting for new connection... [17:16:18] Sock 7.Parse request [17:16:18]Sock 7.Check first char [17:16:18]Sock 7.First char is OK [17:16:18]request: POST /json_proto HTTP/1.0 [17:16:18]Method: POST [17:16:18]URL: /json_proto [17:16:18]Method is POST - this is cgi request [17:16:18]url: /json_proto [17:16:18]query_string will be loaded in cgi processing [17:16:18]execute_cgi json_proto POST (null) [17:16:18]execute_cgi path=json_proto method=POST [17:16:18]POST find Content-Length [17:16:18]Host: 172.17.50.3:8080 [17:16:18]Content-Length: 683 [17:16:18]Content-Type: application/json [17:16:18] [17:16:18]POST finish read [17:16:18]Found Content-Length = 683 [17:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:16:18]execute_script... [17:16: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)2886117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:16:18]POST & json_proto [17:16:18]process_json_proto [17:16:18]json parsed OK: [17:16:18]protocol is kg_v1.0 [17:16:18]action value=close_receipt [17:16:18]process_action close_receipt [17:16:18]cmd_close_receipt [17:16:18]MH_GetDate [17:16:18]Write to MH i2c: F0 00 00 8A 0D 86 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 09 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 09 00 8A 0D 00 E3 DD 17 67 6B 98 1E 66 54 [17:16:18]GetLastDocTimeStamp 1729617327 [17:16:18]current date 1729617379 [17:16:18]FM_GetShiftState [17:16:18]SAM_PROTO_GetShiftState [17:16:18]wFMCommunicate request_size=4 [17:16:18]MH_SAM_APDU [17:16:18]CAPDU: 80 13 01 00 [17:16:18]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:18]Read from MH i2c: E2 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 0E 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 03 [17:16:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:16:18]wFMCommunicate OK [17:16:18]SAM_PROTO_GetShiftState done [17:16:18]FM_GetShiftState done [17:16:18]opened in 1729555832 [17:16:18]opened+sec_in_day 1729642232 [17:16:18]quantity*price = 100015 [17:16:18]sum+1 = 100017 [17:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 295 22.10.2024 17:16 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70347 ФПД: 119706939086480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70347&fm=119706939086480&tin=02508201610067®Number=0000000000156251&sum=100000 [17:16:20]StoreToDocumentArchive [17:16:20]shift 195 fd 70347 [17:16:20]save to /storage/0195/doc_00070347 [17:16:20]save last doc name /storage/0195/doc_00070347 to /storage/kkm_last_doc_name [17:16:20]save OK [17:16:20]Clear old archive folders... [17:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:20]tlvbuf is 00C64A60 [17:16:20]SAM_PROTO_ClearQueue [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 09 00 00 [17:16:20]Write to MH i2c: E2 08 00 98 0D 80 09 00 00 00 00 00 00 17 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]SAM_PROTO_ClearQueue done [17:16:20]KKMCreateOFDPacket [17:16:20]OFDProtocolAddRootSTLVToBuf [17:16:20]FM_MakeSignedData [17:16:20]FM_MakeSignedData [17:16:20]SAM_PROTO_SignData [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 0D 01 02 [17:16:20]Write to MH i2c: E2 08 00 99 0D 80 0D 01 02 00 00 00 00 1F [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]wFMCommunicate request_size=255 [17:16:20]MH_SAM_APDU [17:16:20]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 27 01 00 00 F4 03 04 00 E3 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 12 01 00 35 04 06 00 6C [17:16:20]Write to MH i2c: E2 02 01 9A 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 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 27 01 00 00 F4 03 04 00 E3 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 12 01 00 35 04 06 00 6C 00 00 15 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]wFMCommunicate request_size=10 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 0D 02 02 05 DF 71 94 D6 90 [17:16:20]Write to MH i2c: E2 0D 00 9B 0D 80 0D 02 02 05 00 DF 71 94 D6 90 00 00 76 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 0D 03 02 [17:16:20]Write to MH i2c: E2 08 00 9C 0D 80 0D 03 02 00 00 00 00 24 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0B 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0B 00 9C 0D 00 52 B4 85 DB B5 DB 46 CD 90 00 2E [17:16:20]RAPDU: 52 B4 85 DB B5 DB 46 CD 90 00 [17:16:20]wFMCommunicate OK [17:16:20]SAM_PROTO_SignData done [17:16:20]FM_MakeSignedData done [17:16:20]CreateOFDProtocolMessage [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 11 00 00 [17:16:20]Write to MH i2c: E2 08 00 9D 0D 80 11 00 00 00 00 00 00 24 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:21]Read from MH i2c: E2 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: E2 17 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: E2 17 00 9D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [17:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:16:21]wFMCommunicate OK [17:16:21]CreateOFDProtocolMessage done [17:16:21]OFDSenderStorePacket 70347 [17:16:21]StoreOFDPacket docnum=70347 [17:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 A5 07 01 D2 AD 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 27 01 00 00 F4 03 04 00 E3 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 12 01 00 35 04 06 00 6C DF 71 94 D6 90 52 B4 85 DB B5 DB 46 CD [17:16:21]CheckFolder [17:16:21]dirname=/storage/ofd_packets [17:16:21]CheckFolder done [17:16:21]ProducePacketName [17:16:21]name=ofd_packets/00070347 [17:16:21]NVStorageSaveData ofd_packets/00070347 [17:16:21]File name is /storage/ofd_packets/00070347 [17:16:21]Write 301 bytes [17:16:21]NVStorageSaveData done [17:16:21]OFDSenderStorePacket done [17:16:21]KKMCreateOFDPacket done [17:16:21]NVStorageSaveData kkm_last_timestamp [17:16:21]File name is /storage/kkm_last_timestamp [17:16:21]Write 4 bytes [17:16:21]NVStorageSaveData done [17:16:21]ExternCall_PrintAddStr [17:16:21]wPrintStart [17:16:21]Write to MH i2c: 01 00 00 9E 0D AB [17:16:21]OFD Sender: Processing packet 70347 [packets to send 18, broken 17] [17:16:21]ProducePacketName [17:16:21]name=ofd_packets/00070347 [17:16:21]OFD Sender: To server: pG, [17:16:21]CommunicateWithHost lk.salyk.kg:30040 [17:16:21]ConnectInit lk.salyk.kg [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 FF 0F C0 [17:16:21]RasterBufferAndPrint [17:16:21]line Счет N : (1)2886117 [17:16:21]line ИНН: 02508201610067 [17:16:21]line Контрольно-Кассовый Чек [17:16:21]line ПРОДАЖА [17:16:21]line ТРК (МРК, ГНК) : 22 [17:16:21]line Товар: 2710124130 [17:16:21]line Аи-92-К-5 [17:16:21]line 14.950 * 66.90 [17:16:21]line = 1000.16 [17:16:21]line НДС 12% НСП 1% [17:16:21]line > о реализуемом товаре [17:16:21]line ОКРУГЛЕНИЕ: -0.16 [17:16:21]line ИТОГО: 1000.00 [17:16:21]line Внесено: 1000.00 [17:16:21]line СДАЧА: 0.00 [17:16:21]line НСП 1% : 8.85 [17:16:21]line НДС 12% : 106.21 [17:16:21]line Наличными: 1000.00 [17:16:21]line Безнал.: 0.00 [17:16:21]line Место: АЗС № 85 "Партнер Нефть" [17:16:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:16:21]line СНО: Общий режим [17:16:21]line Чек 295 22.10.2024 17:16 [17:16:21]line Смена: 195 ФФД: 1.0 [17:16:21]line ЗНМ: 0300000167 [17:16:21]line РНМ: 0000000000156251 [17:16:21]line Версия ККМ: v1.0 [17:16:21]line ФМ: 0000000000963346 [17:16:21]line ФД: 70347 [17:16:21]line ФПД: 119706939086480 [17:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70347&fm=119706939086480&tin=02508201610067®Number=0000000000156251&sum=100000 [17:16:21]written 0, free lines is 4095 [17:16:21]Connected sock=10 [17:16: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 34 36 0F 01 00 00 02 A5 07 01 D2 AD 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 27 01 00 00 F4 03 04 00 E3 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 12 01 00 35 04 06 00 6C DF 71 94 D6 90 52 B4 85 DB B5 DB 46 CD [17:16: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 34 36 4F 00 00 00 33 5B 47 00 8E 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 34 36 10 04 04 00 CB 12 01 00 F4 03 04 00 83 87 17 67 B6 04 01 00 00 F7 23 2F 95 DF BA F0 6C [17:16:21]CommunicateWithHost err = 0 [17:16:21]CheckOFDResponse [17:16:21]1017 (14) - 77093643461234 [17:16:21]1041 (16) - 0000000000963346 [17:16:21]1040 (4) - 70347 [17:16:21]1012 (4) - 22.10.2024 11:07 [17:16:21]1206 (1) - 0 [17:16:21]OFD Sender: Remove packet 70347 [17:16:21]ProducePacketName [17:16:21]name=ofd_packets/00070347 [17:16:21]NVStorageDeleteData [17:16:21]Write to MH i2c: 01 00 00 C9 0D D6 [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 C9 0D 00 00 00 00 00 81 0D 6B [17:16:21]RasterBufferAndPrint [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]written 0, free lines is 3490 [17:16:21]MH_Cut [17:16:21]Write to MH i2c: D1 01 00 D0 0D 01 AF [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 01 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 01 00 D0 0D 00 AE [17:16:21]Write to MH i2c: 01 00 00 D1 0D DE [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:22]OFD Sender: No OFD packet to send [17:16:22]*** Cut start [17:16:22]*** Partial cut [17:16:22]*** CUTSNS_PIN = 1 [17:16:22]*** CUTSNS_PIN = 0 [17:16:22]*** Brake cut motor [17:16:22]Read from MH i2c: 01 [17:16:22]MH_I2C_Read... [17:16:22]*** Stop cut motor [17:16:22]*** Cut end [17:16:22]Read from MH i2c: 01 07 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 FF 0F F3 [17:16:22]process_action close_receipt done [17:16:22]requested_data is exist [17:16:22]produce_requested_data [17:16:22]requested_item fm.sn is exist - process it [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 11 00 00 [17:16:22]Write to MH i2c: E2 08 00 D2 0D 80 11 00 00 00 00 00 00 59 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 17 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 17 00 D2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [17:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:16:23]wFMCommunicate OK [17:16:23]requested_item fd.num is exist - process it [17:16:23]SAM_PROTO_GetFieldsCounters [17:16:23]wFMCommunicate request_size=4 [17:16:23]MH_SAM_APDU [17:16:23]CAPDU: 80 13 00 00 [17:16:23]Write to MH i2c: E2 08 00 D3 0D 80 13 00 00 00 00 00 00 5C [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 62 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 62 00 D3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 12 01 00 0E 04 04 00 C3 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 90 [17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 12 01 00 0E 04 04 00 C3 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 [17:16:23]wFMCommunicate OK [17:16:23]SAM_PROTO_GetFieldsCounters done [17:16:23]requested_item shift.num is exist - process it [17:16:23]requested_item shift.opened is exist - process it [17:16:23]req_shift_opened [17:16:23]FM_GetShiftState [17:16:23]SAM_PROTO_GetShiftState [17:16:23]wFMCommunicate request_size=4 [17:16:23]MH_SAM_APDU [17:16:23]CAPDU: 80 13 01 00 [17:16:23]Write to MH i2c: E2 08 00 D4 0D 80 13 01 00 00 00 00 00 5E [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 0E 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 0E 00 D4 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4C [17:16:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:16:23]wFMCommunicate OK [17:16:23]SAM_PROTO_GetShiftState done [17:16:23]FM_GetShiftState done [17:16:23]req_shift_opened done [17:16:23]requested_item shift.open_date is exist - process it [17:16:23]req_shift_open_date [17:16:23]req_shift_open_date done [17:16:23]produce_requested_data done [17:16:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70347,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:16:23]process_action_free close_receipt [17:16:23]json_value_free [17:16:23]json_value_free done [17:16:23]process_json_proto returns [17:16:23]Send response to host [17:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70347,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:16:23]free response buf [17:16:23]execute_script done [17:16:23]execute_script returns [17:16:23]free content buf [17:16:23]Sock 7.Close socket [17:16:23]Sock 7.Thread stoped [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:37]accept exits with 9 [17:16:37]New connection [17:16:37]New thread 3066555748 created [17:16:37]Thread 3066699108 joined [17:16:37]Waiting for new connection... [17:16:37] Sock 9.Parse request [17:16:37]Sock 9.Check first char [17:16:37]Sock 9.First char is OK [17:16:37]request: POST /json_proto HTTP/1.0 [17:16:37]Method: POST [17:16:37]URL: /json_proto [17:16:37]Method is POST - this is cgi request [17:16:37]url: /json_proto [17:16:37]query_string will be loaded in cgi processing [17:16:37]execute_cgi json_proto POST (null) [17:16:37]execute_cgi path=json_proto method=POST [17:16:37]POST find Content-Length [17:16:37]Host: 172.17.50.3:8080 [17:16:37]Content-Length: 682 [17:16:37]Content-Type: application/json [17:16:37] [17:16:37]POST finish read [17:16:37]Found Content-Length = 682 [17:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:16:37]execute_script... [17:16: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)2886118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:16:37]POST & json_proto [17:16:37]process_json_proto [17:16:37]json parsed OK: [17:16:37]protocol is kg_v1.0 [17:16:37]action value=close_receipt [17:16:37]process_action close_receipt [17:16:37]cmd_close_receipt [17:16:37]MH_GetDate [17:16:37]Write to MH i2c: F0 00 00 D5 0D D1 [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: F0 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: F0 09 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: F0 09 00 D5 0D 00 F6 DD 17 67 6B 98 1E 66 B2 [17:16:37]GetLastDocTimeStamp 1729617379 [17:16:37]current date 1729617398 [17:16:37]FM_GetShiftState [17:16:37]SAM_PROTO_GetShiftState [17:16:37]wFMCommunicate request_size=4 [17:16:37]MH_SAM_APDU [17:16:37]CAPDU: 80 13 01 00 [17:16:37]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4E [17:16:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:16:37]wFMCommunicate OK [17:16:37]SAM_PROTO_GetShiftState done [17:16:37]FM_GetShiftState done [17:16:37]opened in 1729555832 [17:16:37]opened+sec_in_day 1729642232 [17:16:37]quantity*price = 50025 [17:16:37]sum+1 = 50026 [17:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 296 22.10.2024 17:16 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70348 ФПД: 173801610018790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70348&fm=173801610018790&tin=02508201610067®Number=0000000000156251&sum=50000 [17:16:38]StoreToDocumentArchive [17:16:38]shift 195 fd 70348 [17:16:38]save to /storage/0195/doc_00070348 [17:16:38]save last doc name /storage/0195/doc_00070348 to /storage/kkm_last_doc_name [17:16:38]save OK [17:16:38]Clear old archive folders... [17:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:16:38]tlvbuf is 00ACF6C0 [17:16:38]SAM_PROTO_ClearQueue [17:16:38]wFMCommunicate request_size=4 [17:16:38]MH_SAM_APDU [17:16:38]CAPDU: 80 09 00 00 [17:16:38]Write to MH i2c: E2 08 00 E3 0D 80 09 00 00 00 00 00 00 62 [17:16:38]Write i2c OK [17:16:38]MH_I2C_Read... [17:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:38]Read from MH i2c: E2 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: E2 03 00 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [17:16:38]RAPDU: 90 00 [17:16:38]wFMCommunicate OK [17:16:38]SAM_PROTO_ClearQueue done [17:16:38]KKMCreateOFDPacket [17:16:38]OFDProtocolAddRootSTLVToBuf [17:16:38]FM_MakeSignedData [17:16:38]FM_MakeSignedData [17:16:38]SAM_PROTO_SignData [17:16:38]wFMCommunicate request_size=4 [17:16:38]MH_SAM_APDU [17:16:38]CAPDU: 80 0D 01 02 [17:16:38]Write to MH i2c: E2 08 00 E4 0D 80 0D 01 02 00 00 00 00 6A [17:16:38]Write i2c OK [17:16:38]MH_I2C_Read... [17:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:38]Read from MH i2c: E2 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: E2 03 00 [17:16:38]MH_I2C_Read... [17:16:38]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [17:16:38]RAPDU: 90 00 [17:16:38]wFMCommunicate OK [17:16:38]wFMCommunicate request_size=255 [17:16:38]MH_SAM_APDU [17:16:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 28 01 00 00 F4 03 04 00 F6 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 12 01 00 35 04 06 00 9E 12 [17:16:39]Write to MH i2c: E2 02 01 E5 0D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 28 01 00 00 F4 03 04 00 F6 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 12 01 00 35 04 06 00 9E 12 00 00 79 [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 03 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [17:16:39]RAPDU: 90 00 [17:16:39]wFMCommunicate OK [17:16:39]wFMCommunicate request_size=9 [17:16:39]MH_SAM_APDU [17:16:39]CAPDU: 80 0D 02 02 04 57 39 FF E6 [17:16:39]Write to MH i2c: E2 0C 00 E6 0D 80 0D 02 02 04 00 57 39 FF E6 00 00 EA [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 03 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [17:16:39]RAPDU: 90 00 [17:16:39]wFMCommunicate OK [17:16:39]wFMCommunicate request_size=4 [17:16:39]MH_SAM_APDU [17:16:39]CAPDU: 80 0D 03 02 [17:16:39]Write to MH i2c: E2 08 00 E7 0D 80 0D 03 02 00 00 00 00 6F [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0B 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0B 00 E7 0D 00 F7 8A CC CC A9 48 CB 3B 90 00 80 [17:16:39]RAPDU: F7 8A CC CC A9 48 CB 3B 90 00 [17:16:39]wFMCommunicate OK [17:16:39]SAM_PROTO_SignData done [17:16:39]FM_MakeSignedData done [17:16:39]CreateOFDProtocolMessage [17:16:39]wFMCommunicate request_size=4 [17:16:39]MH_SAM_APDU [17:16:39]CAPDU: 80 11 00 00 [17:16:39]Write to MH i2c: E2 08 00 E8 0D 80 11 00 00 00 00 00 00 6F [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 17 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 17 00 E8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [17:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:16:39]wFMCommunicate OK [17:16:39]CreateOFDProtocolMessage done [17:16:39]OFDSenderStorePacket 70348 [17:16:39]StoreOFDPacket docnum=70348 [17:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 3C 63 06 01 00 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 28 01 00 00 F4 03 04 00 F6 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 12 01 00 35 04 06 00 9E 12 57 39 FF E6 F7 8A CC CC A9 48 CB 3B [17:16:39]CheckFolder [17:16:39]dirname=/storage/ofd_packets [17:16:39]CheckFolder done [17:16:39]ProducePacketName [17:16:39]name=ofd_packets/00070348 [17:16:39]NVStorageSaveData ofd_packets/00070348 [17:16:39]File name is /storage/ofd_packets/00070348 [17:16:39]Write 300 bytes [17:16:39]NVStorageSaveData done [17:16:39]OFDSenderStorePacket done [17:16:39]KKMCreateOFDPacket done [17:16:39]NVStorageSaveData kkm_last_timestamp [17:16:39]File name is /storage/kkm_last_timestamp [17:16:39]Write 4 bytes [17:16:39]NVStorageSaveData done [17:16:39]ExternCall_PrintAddStr [17:16:39]wPrintStart [17:16:39]Write to MH i2c: 01 00 00 E9 0D F6 [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: 01 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: 01 07 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 FF 0F 0B [17:16:39]RasterBufferAndPrint [17:16:39]line Счет N : (1)2886118 [17:16:39]line ИНН: 02508201610067 [17:16:39]line Контрольно-Кассовый Чек [17:16:39]line ПРОДАЖА [17:16:39]line ТРК (МРК, ГНК) : 71 [17:16:39]line Товар: 2711129700 [17:16:39]line ГАЗ-К-3 [17:16:39]line 12.860 * 38.90 [17:16:39]line = 500.25 [17:16:39]line НДС 12% НСП 1% [17:16:39]line > о реализуемом товаре [17:16:39]line ОКРУГЛЕНИЕ: -0.25 [17:16:39]line ИТОГО: 500.00 [17:16:39]line Внесено: 500.00 [17:16:39]line СДАЧА: 0.00 [17:16:39]line НСП 1% : 4.43 [17:16:39]line НДС 12% : 53.12 [17:16:39]line Наличными: 500.00 [17:16:39]line Безнал.: 0.00 [17:16:39]line Место: АЗС № 85 "Партнер Нефть" [17:16:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:16:39]line СНО: Общий режим [17:16:39]line Чек 296 22.10.2024 17:16 [17:16:39]line Смена: 195 ФФД: 1.0 [17:16:39]line ЗНМ: 0300000167 [17:16:39]line РНМ: 0000000000156251 [17:16:39]line Версия ККМ: v1.0 [17:16:39]line ФМ: 0000000000963346 [17:16:39]line ФД: 70348 [17:16:39]line ФПД: 173801610018790 [17:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70348&fm=173801610018790&tin=02508201610067®Number=0000000000156251&sum=50000 [17:16:39]written 0, free lines is 4095 [17:16:39]OFD Sender: Processing packet 70348 [packets to send 18, broken 17] [17:16:39]ProducePacketName [17:16:39]name=ofd_packets/00070348 [17:16:39]OFD Sender: To server: pG, [17:16:39]CommunicateWithHost lk.salyk.kg:30040 [17:16:39]ConnectInit lk.salyk.kg [17:16:39]Connected sock=10 [17:16: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 34 36 0E 01 00 00 3C 63 06 01 00 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 28 01 00 00 F4 03 04 00 F6 DD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 12 01 00 35 04 06 00 9E 12 57 39 FF E6 F7 8A CC CC A9 48 CB 3B [17: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 34 36 4F 00 00 00 33 54 47 00 04 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 34 36 10 04 04 00 CC 12 01 00 F4 03 04 00 96 87 17 67 B6 04 01 00 00 11 60 29 A6 D1 FE 83 D7 [17:16:40]CommunicateWithHost err = 0 [17:16:40]CheckOFDResponse [17:16:40]1017 (14) - 77093643461234 [17:16:40]1041 (16) - 0000000000963346 [17:16:40]1040 (4) - 70348 [17:16:40]1012 (4) - 22.10.2024 11:08 [17:16:40]1206 (1) - 0 [17:16:40]OFD Sender: Remove packet 70348 [17:16:40]ProducePacketName [17:16:40]name=ofd_packets/00070348 [17:16:40]Write to MH i2c: NVStorageDeleteData [17:16:40]01 00 00 14 0E 22 [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: 01 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: 01 07 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 C7 0D FD [17:16:40]RasterBufferAndPrint [17:16:40]line [17:16:40]line [17:16:40]line [17:16:40]line [17:16:40]line [17:16:40]written 0, free lines is 3557 [17:16:40]MH_Cut [17:16:40]Write to MH i2c: D1 01 00 1B 0E 01 FB [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: D1 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: D1 01 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: D1 01 00 1B 0E 00 FA [17:16:40]Write to MH i2c: 01 00 00 1C 0E 2A [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]OFD Sender: No OFD packet to send [17:16:40]*** Cut start [17:16:40]*** Partial cut [17:16:40]*** CUTSNS_PIN = 1 [17:16:40]*** CUTSNS_PIN = 0 [17:16:41]*** Brake cut motor [17:16:41]Read from MH i2c: 01 [17:16:41]MH_I2C_Read... [17:16:41]*** Stop cut motor [17:16:41]*** Cut end [17:16:41]Read from MH i2c: 01 07 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 FF 0F 3F [17:16:41]process_action close_receipt done [17:16:41]requested_data is exist [17:16:41]produce_requested_data [17:16:41]requested_item fm.sn is exist - process it [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 11 00 00 [17:16:41]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [17:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:16:41]wFMCommunicate OK [17:16:41]requested_item fd.num is exist - process it [17:16:41]SAM_PROTO_GetFieldsCounters [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 13 00 00 [17:16:41]Write to MH i2c: E2 08 00 1E 0E 80 13 00 00 00 00 00 00 A8 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 62 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 62 00 1E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 12 01 00 0E 04 04 00 C3 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 E0 [17:16: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 12 01 00 0E 04 04 00 C3 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 [17:16:41]wFMCommunicate OK [17:16:41]SAM_PROTO_GetFieldsCounters done [17:16:41]requested_item shift.num is exist - process it [17:16:41]requested_item shift.opened is exist - process it [17:16:41]req_shift_opened [17:16:41]FM_GetShiftState [17:16:41]SAM_PROTO_GetShiftState [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 13 01 00 [17:16:41]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 0E 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 98 [17:16:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:16:42]wFMCommunicate OK [17:16:42]SAM_PROTO_GetShiftState done [17:16:42]FM_GetShiftState done [17:16:42]req_shift_opened done [17:16:42]requested_item shift.open_date is exist - process it [17:16:42]req_shift_open_date [17:16:42]req_shift_open_date done [17:16:42]produce_requested_data done [17:16:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70348,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:16:42]process_action_free close_receipt [17:16:42]json_value_free [17:16:42]json_value_free done [17:16:42]process_json_proto returns [17:16:42]Send response to host [17:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70348,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:16:42]free response buf [17:16:42]execute_script done [17:16:42]execute_script returns [17:16:42]free content buf [17:16:42]Sock 9.Close socket [17:16:42]Sock 9.Thread stoped [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:14]accept exits with 7 [17:17:14]New connection [17:17:14]New thread 3066699108 created [17:17:14]Thread 3066555748 joined [17:17:14]Waiting for new connection... [17:17:14] Sock 7.Parse request [17:17:14]Sock 7.Check first char [17:17:14]Sock 7.First char is OK [17:17:14]request: POST /json_proto HTTP/1.0 [17:17:14]Method: POST [17:17:14]URL: /json_proto [17:17:14]Method is POST - this is cgi request [17:17:14]url: /json_proto [17:17:14]query_string will be loaded in cgi processing [17:17:14]execute_cgi json_proto POST (null) [17:17:14]execute_cgi path=json_proto method=POST [17:17:14]POST find Content-Length [17:17:14]Host: 172.17.50.3:8080 [17:17:14]Content-Length: 683 [17:17:14]Content-Type: application/json [17:17:14] [17:17:14]POST finish read [17:17:14]Found Content-Length = 683 [17:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.780, "sum" : 3999.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:14]execute_script... [17:17: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)2886116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.780, "sum" : 3999.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:14]POST & json_proto [17:17:14]process_json_proto [17:17:14]json parsed OK: [17:17:14]protocol is kg_v1.0 [17:17:14]action value=close_receipt [17:17:14]process_action close_receipt [17:17:14]cmd_close_receipt [17:17:14]MH_GetDate [17:17:14]Write to MH i2c: F0 00 00 20 0E 1D [17:17:14]Write i2c OK [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: F0 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: F0 09 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: F0 09 00 20 0E 00 1B DE 17 67 6B 98 1E 66 24 [17:17:14]GetLastDocTimeStamp 1729617398 [17:17:14]current date 1729617435 [17:17:14]FM_GetShiftState [17:17:14]SAM_PROTO_GetShiftState [17:17:14]wFMCommunicate request_size=4 [17:17:14]MH_SAM_APDU [17:17:14]CAPDU: 80 13 01 00 [17:17:14]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [17:17:14]Write i2c OK [17:17:14]MH_I2C_Read... [17:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:14]Read from MH i2c: E2 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 0E 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9A [17:17:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:17:14]wFMCommunicate OK [17:17:14]SAM_PROTO_GetShiftState done [17:17:14]FM_GetShiftState done [17:17:14]opened in 1729555832 [17:17:14]opened+sec_in_day 1729642232 [17:17:14]quantity*price = 399928 [17:17:14]sum+1 = 399929 [17:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 3999.00 Внесено: 5000.00 СДАЧА: 1001.00 НСП 1% : 35.39 НДС 12% : 424.70 Наличными: 3999.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 297 22.10.2024 17:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70349 ФПД: 202492664929238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70349&fm=202492664929238&tin=02508201610067®Number=0000000000156251&sum=399900 [17:17:15]StoreToDocumentArchive [17:17:15]shift 195 fd 70349 [17:17:15]save to /storage/0195/doc_00070349 [17:17:15]save last doc name /storage/0195/doc_00070349 to /storage/kkm_last_doc_name [17:17:15]save OK [17:17:15]Clear old archive folders... [17:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:15]tlvbuf is 00BB4630 [17:17:15]SAM_PROTO_ClearQueue [17:17:15]wFMCommunicate request_size=4 [17:17:15]MH_SAM_APDU [17:17:15]CAPDU: 80 09 00 00 [17:17:15]Write to MH i2c: E2 08 00 2E 0E 80 09 00 00 00 00 00 00 AE [17:17:15]Write i2c OK [17:17:15]MH_I2C_Read... [17:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:15]Read from MH i2c: E2 [17:17:15]MH_I2C_Read... [17:17:15]Read from MH i2c: E2 03 00 [17:17:15]MH_I2C_Read... [17:17:15]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [17:17:15]RAPDU: 90 00 [17:17:15]wFMCommunicate OK [17:17:15]SAM_PROTO_ClearQueue done [17:17:15]KKMCreateOFDPacket [17:17:15]OFDProtocolAddRootSTLVToBuf [17:17:15]FM_MakeSignedData [17:17:15]FM_MakeSignedData [17:17:15]SAM_PROTO_SignData [17:17:15]wFMCommunicate request_size=4 [17:17:15]MH_SAM_APDU [17:17:15]CAPDU: 80 0D 01 02 [17:17:15]Write to MH i2c: E2 08 00 2F 0E 80 0D 01 02 00 00 00 00 B6 [17:17:15]Write i2c OK [17:17:15]MH_I2C_Read... [17:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:15]Read from MH i2c: E2 [17:17:15]MH_I2C_Read... [17:17:15]Read from MH i2c: E2 03 00 [17:17:15]MH_I2C_Read... [17:17:15]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [17:17:15]RAPDU: 90 00 [17:17:15]wFMCommunicate OK [17:17:15]wFMCommunicate request_size=255 [17:17:15]MH_SAM_APDU [17:17: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 84 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 A5 00 00 00 00 07 04 06 00 1C 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 29 01 00 00 F4 03 04 00 1B DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 12 01 00 35 04 06 00 B8 [17:17:15]Write to MH i2c: E2 02 01 30 0E 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 84 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 A5 00 00 00 00 07 04 06 00 1C 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 29 01 00 00 F4 03 04 00 1B DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 12 01 00 35 04 06 00 B8 00 00 9A [17:17:16]OFD Sender: No OFD packet to send [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 03 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [17:17:16]RAPDU: 90 00 [17:17:16]wFMCommunicate OK [17:17:16]wFMCommunicate request_size=10 [17:17:16]MH_SAM_APDU [17:17:16]CAPDU: 80 0D 02 02 05 2A 7F 5C DB D6 [17:17:16]Write to MH i2c: E2 0D 00 31 0E 80 0D 02 02 05 00 2A 7F 5C DB D6 00 00 79 [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 03 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [17:17:16]RAPDU: 90 00 [17:17:16]wFMCommunicate OK [17:17:16]wFMCommunicate request_size=4 [17:17:16]MH_SAM_APDU [17:17:16]CAPDU: 80 0D 03 02 [17:17:16]Write to MH i2c: E2 08 00 32 0E 80 0D 03 02 00 00 00 00 BB [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0B 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0B 00 32 0E 00 22 0E 21 BB 54 3B CF E4 90 00 0A [17:17:16]RAPDU: 22 0E 21 BB 54 3B CF E4 90 00 [17:17:16]wFMCommunicate OK [17:17:16]SAM_PROTO_SignData done [17:17:16]FM_MakeSignedData done [17:17:16]CreateOFDProtocolMessage [17:17:16]wFMCommunicate request_size=4 [17:17:16]MH_SAM_APDU [17:17:16]CAPDU: 80 11 00 00 [17:17:16]Write to MH i2c: E2 08 00 33 0E 80 11 00 00 00 00 00 00 BB [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 17 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 17 00 33 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [17:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:17:16]wFMCommunicate OK [17:17:16]CreateOFDProtocolMessage done [17:17:16]OFDSenderStorePacket 70349 [17:17:16]StoreOFDPacket docnum=70349 [17:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 11 A7 07 01 02 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 84 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 A5 00 00 00 00 07 04 06 00 1C 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 29 01 00 00 F4 03 04 00 1B DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 12 01 00 35 04 06 00 B8 2A 7F 5C DB D6 22 0E 21 BB 54 3B CF E4 [17:17:16]CheckFolder [17:17:16]dirname=/storage/ofd_packets [17:17:16]CheckFolder done [17:17:16]ProducePacketName [17:17:16]name=ofd_packets/00070349 [17:17:16]NVStorageSaveData ofd_packets/00070349 [17:17:16]File name is /storage/ofd_packets/00070349 [17:17:16]Write 301 bytes [17:17:16]NVStorageSaveData done [17:17:16]OFDSenderStorePacket done [17:17:16]KKMCreateOFDPacket done [17:17:16]NVStorageSaveData kkm_last_timestamp [17:17:16]File name is /storage/kkm_last_timestamp [17:17:16]Write 4 bytes [17:17:16]NVStorageSaveData done [17:17:16]ExternCall_PrintAddStr [17:17:16]wPrintStart [17:17:16]Write to MH i2c: 01 00 00 34 0E 42 [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: 01 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: 01 07 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [17:17:16]RasterBufferAndPrint [17:17:16]line Счет N : (1)2886116 [17:17:16]line ИНН: 02508201610067 [17:17:16]line Контрольно-Кассовый Чек [17:17:16]line ПРОДАЖА [17:17:16]line ТРК (МРК, ГНК) : 32 [17:17:16]line Товар: 2710124130 [17:17:16]line Аи-92-К-5 [17:17:16]line 59.780 * 66.90 [17:17:16]line = 3999.28 [17:17:16]line НДС 12% НСП 1% [17:17:16]line > о реализуемом товаре [17:17:16]line ОКРУГЛЕНИЕ: -0.28 [17:17:16]line ИТОГО: 3999.00 [17:17:16]line Внесено: 5000.00 [17:17:16]line СДАЧА: 1001.00 [17:17:16]line НСП 1% : 35.39 [17:17:16]line НДС 12% : 424.70 [17:17:16]line Наличными: 3999.00 [17:17:16]line Безнал.: 0.00 [17:17:16]line Место: АЗС № 85 "Партнер Нефть" [17:17:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:17:16]line СНО: Общий режим [17:17:16]line Чек 297 22.10.2024 17:17 [17:17:16]line Смена: 195 ФФД: 1.0 [17:17:16]line ЗНМ: 0300000167 [17:17:16]line РНМ: 0000000000156251 [17:17:16]line Версия ККМ: v1.0 [17:17:16]line ФМ: 0000000000963346 [17:17:16]line ФД: 70349 [17:17:16]line ФПД: 202492664929238 [17:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70349&fm=202492664929238&tin=02508201610067®Number=0000000000156251&sum=399900 [17:17:16]written 0, free lines is 4095 [17:17:16]OFD Sender: Processing packet 70349 [packets to send 18, broken 17] [17:17:16]ProducePacketName [17:17:16]name=ofd_packets/00070349 [17:17:16]OFD Sender: To server: pG, [17:17:16]CommunicateWithHost lk.salyk.kg:30040 [17:17:16]ConnectInit lk.salyk.kg [17:17:16]Connected sock=10 [17:17: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 34 36 0F 01 00 00 11 A7 07 01 02 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 84 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 A5 00 00 00 00 07 04 06 00 1C 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 29 01 00 00 F4 03 04 00 1B DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 12 01 00 35 04 06 00 B8 2A 7F 5C DB D6 22 0E 21 BB 54 3B CF E4 [17:17: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 34 36 4F 00 00 00 8E FE 47 00 1A 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 34 36 10 04 04 00 CD 12 01 00 F4 03 04 00 BB 87 17 67 B6 04 01 00 00 A1 A8 E2 6E 24 0E 17 3C [17:17:17]CommunicateWithHost err = 0 [17:17:17]CheckOFDResponse [17:17:17]1017 (14) - 77093643461234 [17:17:17]1041 (16) - 0000000000963346 [17:17:17]1040 (4) - 70349 [17:17:17]1012 (4) - 22.10.2024 11:08 [17:17:17]1206 (1) - 0 [17:17:17]OFD Sender: Remove packet 70349 [17:17:17]ProducePacketName [17:17:17]name=ofd_packets/00070349 [17:17:17]NVStorageDeleteData [17:17:17]Write to MH i2c: 01 00 00 5F 0E 6D [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 07 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 1D 0D 9E [17:17:17]RasterBufferAndPrint [17:17:17]line [17:17:17]line [17:17:17]line [17:17:17]line [17:17:17]line [17:17:17]written 0, free lines is 3376 [17:17:17]MH_Cut [17:17:17]Write to MH i2c: D1 01 00 66 0E 01 46 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: D1 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: D1 01 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: D1 01 00 66 0E 00 45 [17:17:17]Write to MH i2c: 01 00 00 67 0E 75 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]OFD Sender: No OFD packet to send [17:17:17]*** Cut start [17:17:17]*** Partial cut [17:17:17]*** CUTSNS_PIN = 1 [17:17:17]*** CUTSNS_PIN = 0 [17:17:18]*** Brake cut motor [17:17:18]Read from MH i2c: 01 [17:17:18]MH_I2C_Read... [17:17:18]*** Stop cut motor [17:17:18]*** Cut end [17:17:18]Read from MH i2c: 01 07 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 FF 0F 8A [17:17:18]process_action close_receipt done [17:17:18]requested_data is exist [17:17:18]produce_requested_data [17:17:18]requested_item fm.sn is exist - process it [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 11 00 00 [17:17:18]Write to MH i2c: E2 08 00 68 0E 80 11 00 00 00 00 00 00 F0 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 17 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 17 00 68 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [17:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:17:18]wFMCommunicate OK [17:17:18]requested_item fd.num is exist - process it [17:17:18]SAM_PROTO_GetFieldsCounters [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 13 00 00 [17:17:18]Write to MH i2c: E2 08 00 69 0E 80 13 00 00 00 00 00 00 F3 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 62 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 62 00 69 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 12 01 00 0E 04 04 00 C3 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 2F [17:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 12 01 00 0E 04 04 00 C3 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 [17:17:18]wFMCommunicate OK [17:17:18]SAM_PROTO_GetFieldsCounters done [17:17:18]requested_item shift.num is exist - process it [17:17:18]requested_item shift.opened is exist - process it [17:17:18]req_shift_opened [17:17:18]FM_GetShiftState [17:17:18]SAM_PROTO_GetShiftState [17:17:18]wFMCommunicate request_size=4 [17:17:18]MH_SAM_APDU [17:17:18]CAPDU: 80 13 01 00 [17:17:18]Write to MH i2c: E2 08 00 6A 0E 80 13 01 00 00 00 00 00 F5 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:18]Read from MH i2c: E2 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 0E 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: E2 0E 00 6A 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E3 [17:17:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:17:18]wFMCommunicate OK [17:17:18]SAM_PROTO_GetShiftState done [17:17:18]FM_GetShiftState done [17:17:18]req_shift_opened done [17:17:18]requested_item shift.open_date is exist - process it [17:17:18]req_shift_open_date [17:17:18]req_shift_open_date done [17:17:18]produce_requested_data done [17:17:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70349,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:17:18]process_action_free close_receipt [17:17:18]json_value_free [17:17:18]json_value_free done [17:17:18]process_json_proto returns [17:17:18]Send response to host [17:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70349,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:17:18]free response buf [17:17:18]execute_script done [17:17:18]execute_script returns [17:17:18]free content buf [17:17:18]Sock 7.Close socket [17:17:18]Sock 7.Thread stoped [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]accept exits with 9 [17:20:37]New connection [17:20:37]New thread 3066555748 created [17:20:37]Thread 3066699108 joined [17:20:37]Waiting for new connection... [17:20:37] Sock 9.Parse request [17:20:37]Sock 9.Check first char [17:20:37]Sock 9.First char is OK [17:20:37]request: POST /json_proto HTTP/1.0 [17:20:37]Method: POST [17:20:37]URL: /json_proto [17:20:37]Method is POST - this is cgi request [17:20:37]url: /json_proto [17:20:37]query_string will be loaded in cgi processing [17:20:37]execute_cgi json_proto POST (null) [17:20:37]execute_cgi path=json_proto method=POST [17:20:37]POST find Content-Length [17:20:37]Host: 172.17.50.3:8080 [17:20:37]Content-Length: 767 [17:20:37]Content-Type: application/json [17:20:37] [17:20:37]POST finish read [17:20:37]Found Content-Length = 767 [17:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886119", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:37]execute_script... [17:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886119", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:37]POST & json_proto [17:20:37]process_json_proto [17:20:37]json parsed OK: [17:20:37]protocol is kg_v1.0 [17:20:37]action value=close_receipt [17:20:37]process_action close_receipt [17:20:37]cmd_close_receipt [17:20:37]MH_GetDate [17:20:37]Write to MH i2c: F0 00 00 6B 0E 68 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 09 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 09 00 6B 0E 00 E5 DE 17 67 6B 98 1E 66 39 [17:20:37]GetLastDocTimeStamp 1729617435 [17:20:37]current date 1729617637 [17:20:37]FM_GetShiftState [17:20:37]SAM_PROTO_GetShiftState [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 13 01 00 [17:20:37]Write to MH i2c: E2 08 00 6C 0E 80 13 01 00 00 00 00 00 F7 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0E 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0E 00 6C 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E5 [17:20:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_GetShiftState done [17:20:37]FM_GetShiftState done [17:20:37]opened in 1729555832 [17:20:37]opened+sec_in_day 1729642232 [17:20:37]quantity*price = 300075 [17:20:37]sum+1 = 300077 [17:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 298 22.10.2024 17:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70350 ФПД: 161969518142062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70350&fm=161969518142062&tin=02508201610067®Number=0000000000156251&sum=300076 [17:20:38]StoreToDocumentArchive [17:20:38]shift 195 fd 70350 [17:20:38]save to /storage/0195/doc_00070350 [17:20:38]save last doc name /storage/0195/doc_00070350 to /storage/kkm_last_doc_name [17:20:38]save OK [17:20:38]Clear old archive folders... [17:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:20:38]tlvbuf is 00BC1920 [17:20:38]SAM_PROTO_ClearQueue [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 09 00 00 [17:20:38]Write to MH i2c: E2 08 00 79 0E 80 09 00 00 00 00 00 00 F9 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 79 0E 00 90 00 FB [17:20:38]RAPDU: 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_ClearQueue done [17:20:38]KKMCreateOFDPacket [17:20:38]OFDProtocolAddRootSTLVToBuf [17:20:38]FM_MakeSignedData [17:20:38]FM_MakeSignedData [17:20:38]SAM_PROTO_SignData [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 0D 01 02 [17:20:38]Write to MH i2c: E2 08 00 7A 0E 80 0D 01 02 00 00 00 00 01 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [17:20:38]RAPDU: 90 00 [17:20:38]wFMCommunicate OK [17:20:38]wFMCommunicate request_size=255 [17:20:38]MH_SAM_APDU [17:20:38]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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E5 DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 12 01 00 35 04 06 00 93 4F 77 97 [17:20:38]Write to MH i2c: E2 02 01 7B 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E5 DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 12 01 00 35 04 06 00 93 4F 77 97 00 00 51 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [17:20:38]RAPDU: 90 00 [17:20:38]wFMCommunicate OK [17:20:38]wFMCommunicate request_size=7 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 0D 02 02 02 E2 6E [17:20:38]Write to MH i2c: E2 0A 00 7C 0E 80 0D 02 02 02 00 E2 6E 00 00 58 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [17:20:38]RAPDU: 90 00 [17:20:38]wFMCommunicate OK [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 0D 03 02 [17:20:38]Write to MH i2c: E2 08 00 7D 0E 80 0D 03 02 00 00 00 00 06 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0B 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0B 00 7D 0E 00 20 F6 B9 4C 43 9B D0 A8 90 00 78 [17:20:38]RAPDU: 20 F6 B9 4C 43 9B D0 A8 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_SignData done [17:20:38]FM_MakeSignedData done [17:20:38]CreateOFDProtocolMessage [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 11 00 00 [17:20:38]Write to MH i2c: E2 08 00 7E 0E 80 11 00 00 00 00 00 00 06 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 17 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 17 00 7E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [17:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:20:38]wFMCommunicate OK [17:20:38]CreateOFDProtocolMessage done [17:20:38]OFDSenderStorePacket 70350 [17:20:38]StoreOFDPacket docnum=70350 [17:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 6F DF 04 01 1E 88 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E5 DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 12 01 00 35 04 06 00 93 4F 77 97 E2 6E 20 F6 B9 4C 43 9B D0 A8 [17:20:38]CheckFolder [17:20:38]dirname=/storage/ofd_packets [17:20:38]CheckFolder done [17:20:38]ProducePacketName [17:20:38]name=ofd_packets/00070350 [17:20:38]NVStorageSaveData ofd_packets/00070350 [17:20:38]File name is /storage/ofd_packets/00070350 [17:20:38]Write 298 bytes [17:20:38]NVStorageSaveData done [17:20:38]OFDSenderStorePacket done [17:20:38]KKMCreateOFDPacket done [17:20:38]NVStorageSaveData kkm_last_timestamp [17:20:38]File name is /storage/kkm_last_timestamp [17:20:38]Write 4 bytes [17:20:38]NVStorageSaveData done [17:20:38]ExternCall_PrintAddStr [17:20:38]wPrintStart [17:20:38]Write to MH i2c: 01 00 00 7F 0E 8D [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 FF 0F A2 [17:20:38]RasterBufferAndPrint [17:20:38]line Счет N : (1)2886119 [17:20:38]line ИНН: 02508201610067 [17:20:38]line Контрольно-Кассовый Чек [17:20:38]line ПРОДАЖА [17:20:38]line ТРК (МРК, ГНК) : 51 [17:20:38]line Товар: 2710194210 [17:20:38]line ДТ-К-5 [17:20:38]line 39.380 * 76.20 [17:20:38]line = 3000.76 [17:20:38]line НДС 12% НСП 1% [17:20:38]line > о реализуемом товаре [17:20:38]line ИТОГО: 3000.76 [17:20:38]line НСП 1% : 26.55 [17:20:38]line НДС 12% : 318.66 [17:20:38]line Наличными: 0.00 [17:20:38]line Безнал.: 3000.76 [17:20:38]line Место: АЗС № 85 "Партнер Нефть" [17:20:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:20:38]line СНО: Общий режим [17:20:38]line Чек 298 22.10.2024 17:20 [17:20:38]line Смена: 195 ФФД: 1.0 [17:20:38]line ЗНМ: 0300000167 [17:20:38]line РНМ: 0000000000156251 [17:20:38]line Версия ККМ: v1.0 [17:20:38]line Платежная система: Mbank [17:20:38]line ФМ: 0000000000963346 [17:20:38]line ФД: 70350 [17:20:38]line ФПД: 161969518142062 [17:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70350&fm=161969518142062&tin=02508201610067®Number=0000000000156251&sum=300076 [17:20:39]OFD Sender: Processing packet 70350 [packets to send 18, broken 17] [17:20:39]ProducePacketName [17:20:39]name=ofd_packets/00070350 [17:20:39]OFD Sender: To server: pG, [17:20:39]CommunicateWithHost lk.salyk.kg:30040 [17:20:39]ConnectInit lk.salyk.kg [17:20:39]written 0, free lines is 4095 [17:20:39]Connected sock=10 [17:20: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 34 36 0C 01 00 00 6F DF 04 01 1E 88 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E5 DE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 12 01 00 35 04 06 00 93 4F 77 97 E2 6E 20 F6 B9 4C 43 9B D0 A8 [17:20: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 34 36 4F 00 00 00 70 11 47 00 1B 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 34 36 10 04 04 00 CE 12 01 00 F4 03 04 00 85 88 17 67 B6 04 01 00 00 88 DF 71 B6 55 30 D6 80 [17:20:39]CommunicateWithHost err = 0 [17:20:39]CheckOFDResponse [17:20:39]1017 (14) - 77093643461234 [17:20:39]1041 (16) - 0000000000963346 [17:20:39]1040 (4) - 70350 [17:20:39]1012 (4) - 22.10.2024 11:12 [17:20:39]1206 (1) - 0 [17:20:39]OFD Sender: Remove packet 70350 [17:20:39]ProducePacketName [17:20:39]name=ofd_packets/00070350 [17:20:39]NVStorageDeleteData [17:20:39]Write to MH i2c: 01 00 00 A8 0E B6 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 07 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 07 00 A8 0E 00 00 00 00 00 2E 0D F8 [17:20:39]RasterBufferAndPrint [17:20:39]line [17:20:39]line [17:20:39]line [17:20:39]line [17:20:39]line [17:20:39]written 0, free lines is 3382 [17:20:39]MH_Cut [17:20:39]Write to MH i2c: D1 01 00 AF 0E 01 8F [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: D1 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: D1 01 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: D1 01 00 AF 0E 00 8E [17:20:39]Write to MH i2c: 01 00 00 B0 0E BE [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]OFD Sender: No OFD packet to send [17:20:40]*** Cut start [17:20:40]*** Partial cut [17:20:40]*** CUTSNS_PIN = 1 [17:20:40]*** CUTSNS_PIN = 0 [17:20:40]*** Brake cut motor [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]*** Stop cut motor [17:20:40]*** Cut end [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 B0 0E 00 00 00 00 00 FF 0F D3 [17:20:40]process_action close_receipt done [17:20:40]requested_data is exist [17:20:40]produce_requested_data [17:20:40]requested_item fm.sn is exist - process it [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 11 00 00 [17:20:40]Write to MH i2c: E2 08 00 B1 0E 80 11 00 00 00 00 00 00 39 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 B1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [17:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:20:40]wFMCommunicate OK [17:20:40]requested_item fd.num is exist - process it [17:20:40]SAM_PROTO_GetFieldsCounters [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 00 00 [17:20:40]Write to MH i2c: E2 08 00 B2 0E 80 13 00 00 00 00 00 00 3C [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 62 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 62 00 B2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 12 01 00 0E 04 04 00 C3 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 7C [17:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 12 01 00 0E 04 04 00 C3 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 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_GetFieldsCounters done [17:20:41]requested_item shift.num is exist - process it [17:20:41]requested_item shift.opened is exist - process it [17:20:41]req_shift_opened [17:20:41]FM_GetShiftState [17:20:41]SAM_PROTO_GetShiftState [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 13 01 00 [17:20:41]Write to MH i2c: E2 08 00 B3 0E 80 13 01 00 00 00 00 00 3E [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0E 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0E 00 B3 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2C [17:20:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_GetShiftState done [17:20:41]FM_GetShiftState done [17:20:41]req_shift_opened done [17:20:41]requested_item shift.open_date is exist - process it [17:20:41]req_shift_open_date [17:20:41]req_shift_open_date done [17:20:41]produce_requested_data done [17:20:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70350,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:20:41]process_action_free close_receipt [17:20:41]json_value_free [17:20:41]json_value_free done [17:20:41]process_json_proto returns [17:20:41]Send response to host [17:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70350,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:20:41]free response buf [17:20:41]execute_script done [17:20:41]execute_script returns [17:20:41]free content buf [17:20:41]Sock 9.Close socket [17:20:41]Sock 9.Thread stoped [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:50]accept exits with 7 [17:26:50]New connection [17:26:50]New thread 3066699108 created [17:26:50]Thread 3066555748 joined [17:26:50]Waiting for new connection... [17:26:50] Sock 7.Parse request [17:26:50]Sock 7.Check first char [17:26:50]Sock 7.First char is OK [17:26:50]request: POST /json_proto HTTP/1.0 [17:26:50]Method: POST [17:26:50]URL: /json_proto [17:26:50]Method is POST - this is cgi request [17:26:50]url: /json_proto [17:26:50]query_string will be loaded in cgi processing [17:26:50]execute_cgi json_proto POST (null) [17:26:50]execute_cgi path=json_proto method=POST [17:26:50]POST find Content-Length [17:26:50]Host: 172.17.50.3:8080 [17:26:50]Content-Length: 679 [17:26:50]Content-Type: application/json [17:26:50] [17:26:50]POST finish read [17:26:50]Found Content-Length = 679 [17:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:26:50]execute_script... [17:26: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)2886120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:26:50]POST & json_proto [17:26:50]process_json_proto [17:26:50]json parsed OK: [17:26:50]protocol is kg_v1.0 [17:26:50]action value=close_receipt [17:26:50]process_action close_receipt [17:26:50]cmd_close_receipt [17:26:50]MH_GetDate [17:26:50]Write to MH i2c: F0 00 00 B4 0E B1 [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 B4 0E 00 5B E0 17 67 6B 98 1E 66 FA [17:26:50]GetLastDocTimeStamp 1729617637 [17:26:50]current date 1729618011 [17:26:50]FM_GetShiftState [17:26:50]SAM_PROTO_GetShiftState [17:26:50]wFMCommunicate request_size=4 [17:26:50]MH_SAM_APDU [17:26:50]CAPDU: 80 13 01 00 [17:26:50]Write to MH i2c: E2 08 00 B5 0E 80 13 01 00 00 00 00 00 40 [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:50]Read from MH i2c: E2 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 B5 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2E [17:26:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:26:50]wFMCommunicate OK [17:26:50]SAM_PROTO_GetShiftState done [17:26:50]FM_GetShiftState done [17:26:50]opened in 1729555832 [17:26:50]opened+sec_in_day 1729642232 [17:26:50]quantity*price = 80012 [17:26:50]sum+1 = 80013 [17:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 299 22.10.2024 17:26 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70351 ФПД: 35535298769840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70351&fm=35535298769840&tin=02508201610067®Number=0000000000156251&sum=80000 [17:26:52]StoreToDocumentArchive [17:26:52]shift 195 fd 70351 [17:26:52]save to /storage/0195/doc_00070351 [17:26:52]save last doc name /storage/0195/doc_00070351 to /storage/kkm_last_doc_name [17:26:52]save OK [17:26:52]Clear old archive folders... [17:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:52]tlvbuf is 00AE7760 [17:26:52]SAM_PROTO_ClearQueue [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 09 00 00 [17:26:52]Write to MH i2c: E2 08 00 C2 0E 80 09 00 00 00 00 00 00 42 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]SAM_PROTO_ClearQueue done [17:26:52]KKMCreateOFDPacket [17:26:52]OFDProtocolAddRootSTLVToBuf [17:26:52]FM_MakeSignedData [17:26:52]FM_MakeSignedData [17:26:52]SAM_PROTO_SignData [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 01 02 [17:26:52]Write to MH i2c: E2 08 00 C3 0E 80 0D 01 02 00 00 00 00 4A [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=255 [17:26:52]MH_SAM_APDU [17:26: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 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 2B 01 00 00 F4 03 04 00 5B E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 12 01 00 35 04 06 00 20 [17:26:52]Write to MH i2c: E2 02 01 C4 0E 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 2B 01 00 00 F4 03 04 00 5B E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 12 01 00 35 04 06 00 20 00 00 69 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=10 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 02 02 05 51 B4 DC 33 B0 [17:26:52]Write to MH i2c: E2 0D 00 C5 0E 80 0D 02 02 05 00 51 B4 DC 33 B0 00 00 1B [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 C5 0E 00 90 00 47 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 03 02 [17:26:52]Write to MH i2c: E2 08 00 C6 0E 80 0D 03 02 00 00 00 00 4F [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 C6 0E 00 B9 15 A5 2D 0F 1E 20 4E 90 00 8B [17:26:52]RAPDU: B9 15 A5 2D 0F 1E 20 4E 90 00 [17:26:52]wFMCommunicate OK [17:26:52]SAM_PROTO_SignData done [17:26:52]FM_MakeSignedData done [17:26:52]CreateOFDProtocolMessage [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 11 00 00 [17:26:52]Write to MH i2c: E2 08 00 C7 0E 80 11 00 00 00 00 00 00 4F [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 C7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [17:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:26:52]wFMCommunicate OK [17:26:52]CreateOFDProtocolMessage done [17:26:52]OFDSenderStorePacket 70351 [17:26:52]StoreOFDPacket docnum=70351 [17:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EE 02 07 01 CB 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 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 2B 01 00 00 F4 03 04 00 5B E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 12 01 00 35 04 06 00 20 51 B4 DC 33 B0 B9 15 A5 2D 0F 1E 20 4E [17:26:52]CheckFolder [17:26:52]dirname=/storage/ofd_packets [17:26:52]CheckFolder done [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00070351 [17:26:52]NVStorageSaveData ofd_packets/00070351 [17:26:52]File name is /storage/ofd_packets/00070351 [17:26:52]Write 301 bytes [17:26:52]NVStorageSaveData done [17:26:52]OFDSenderStorePacket done [17:26:52]KKMCreateOFDPacket done [17:26:52]NVStorageSaveData kkm_last_timestamp [17:26:52]File name is /storage/kkm_last_timestamp [17:26:52]Write 4 bytes [17:26:52]NVStorageSaveData done [17:26:52]ExternCall_PrintAddStr [17:26:52]wPrintStart [17:26:52]Write to MH i2c: 01 00 00 C8 0E D6 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 C8 0E 00 00 00 00 00 FF 0F EB [17:26:52]RasterBufferAndPrint [17:26:52]line Счет N : (1)2886120 [17:26:52]line ИНН: 02508201610067 [17:26:52]line Контрольно-Кассовый Чек [17:26:52]line ПРОДАЖА [17:26:52]line ТРК (МРК, ГНК) : 32 [17:26:52]line Товар: 2710124130 [17:26:52]line Аи-92-К-5 [17:26:52]line 11.960 * 66.90 [17:26:52]line = 800.12 [17:26:52]line НДС 12% НСП 1% [17:26:52]line > о реализуемом товаре [17:26:52]line ОКРУГЛЕНИЕ: -0.12 [17:26:52]line ИТОГО: 800.00 [17:26:52]line Внесено: 800.00 [17:26:52]line СДАЧА: 0.00 [17:26:52]line НСП 1% : 7.08 [17:26:52]line НДС 12% : 84.97 [17:26:52]line Наличными: 800.00 [17:26:52]line Безнал.: 0.00 [17:26:52]line Место: АЗС № 85 "Партнер Нефть" [17:26:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:26:52]line СНО: Общий режим [17:26:52]line Чек 299 22.10.2024 17:26 [17:26:52]line Смена: 195 ФФД: 1.0 [17:26:52]line ЗНМ: 0300000167 [17:26:52]line РНМ: 0000000000156251 [17:26:52]line Версия ККМ: v1.0 [17:26:52]line ФМ: 0000000000963346 [17:26:52]line ФД: 70351 [17:26:52]line ФПД: 35535298769840 [17:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70351&fm=35535298769840&tin=02508201610067®Number=0000000000156251&sum=80000 [17:26:52]written 0, free lines is 4095 [17:26:52]OFD Sender: Processing packet 70351 [packets to send 18, broken 17] [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00070351 [17:26:52]OFD Sender: To server: pG, [17:26:52]CommunicateWithHost lk.salyk.kg:30040 [17:26:52]ConnectInit lk.salyk.kg [17:26:52]Connected sock=10 [17:26: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 34 36 0F 01 00 00 EE 02 07 01 CB 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 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 2B 01 00 00 F4 03 04 00 5B E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 12 01 00 35 04 06 00 20 51 B4 DC 33 B0 B9 15 A5 2D 0F 1E 20 4E [17:26: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 34 36 4F 00 00 00 CE D7 47 00 41 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 12 01 00 F4 03 04 00 FB 89 17 67 B6 04 01 00 00 4E 9D 42 E9 7B 4D BE 41 [17:26:52]CommunicateWithHost err = 0 [17:26:52]CheckOFDResponse [17:26:52]1017 (14) - 77093643461234 [17:26:52]1041 (16) - 0000000000963346 [17:26:52]1040 (4) - 70351 [17:26:52]1012 (4) - 22.10.2024 11:18 [17:26:52]1206 (1) - 0 [17:26:52]OFD Sender: Remove packet 70351 [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00070351 [17:26:52]NVStorageDeleteData [17:26:53]Write to MH i2c: 01 00 00 F3 0E 01 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0C 13 [17:26:53]RasterBufferAndPrint [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]written 0, free lines is 3336 [17:26:53]MH_Cut [17:26:53]Write to MH i2c: D1 01 00 FA 0E 01 DA [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 FA 0E 00 D9 [17:26:53]Write to MH i2c: 01 00 00 FB 0E 09 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]OFD Sender: No OFD packet to send [17:26:53]*** Cut start [17:26:53]*** Partial cut [17:26:53]*** CUTSNS_PIN = 1 [17:26:53]*** CUTSNS_PIN = 0 [17:26:54]*** Brake cut motor [17:26:54]Read from MH i2c: 01 [17:26:54]MH_I2C_Read... [17:26:54]*** Stop cut motor [17:26:54]*** Cut end [17:26:54]Read from MH i2c: 01 07 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 FF 0F 1E [17:26:54]process_action close_receipt done [17:26:54]requested_data is exist [17:26:54]produce_requested_data [17:26:54]requested_item fm.sn is exist - process it [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 11 00 00 [17:26:54]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [17:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:26:54]wFMCommunicate OK [17:26:54]requested_item fd.num is exist - process it [17:26:54]SAM_PROTO_GetFieldsCounters [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 00 00 [17:26:54]Write to MH i2c: E2 08 00 FD 0E 80 13 00 00 00 00 00 00 87 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 FD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 12 01 00 0E 04 04 00 C3 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 CB [17:26: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 12 01 00 0E 04 04 00 C3 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 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_GetFieldsCounters done [17:26:54]requested_item shift.num is exist - process it [17:26:54]requested_item shift.opened is exist - process it [17:26:54]req_shift_opened [17:26:54]FM_GetShiftState [17:26:54]SAM_PROTO_GetShiftState [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 01 00 [17:26:54]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 0E 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [17:26:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_GetShiftState done [17:26:54]FM_GetShiftState done [17:26:54]req_shift_opened done [17:26:54]requested_item shift.open_date is exist - process it [17:26:54]req_shift_open_date [17:26:54]req_shift_open_date done [17:26:54]produce_requested_data done [17:26:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70351,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:26:54]process_action_free close_receipt [17:26:54]json_value_free [17:26:54]json_value_free done [17:26:54]process_json_proto returns [17:26:54]Send response to host [17:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70351,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:26:54]free response buf [17:26:54]execute_script done [17:26:54]execute_script returns [17:26:54]free content buf [17:26:54]Sock 7.Close socket [17:26:54]Sock 7.Thread stoped [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:34]accept exits with 9 [17:29:34]New connection [17:29:34]New thread 3066555748 created [17:29:34]Thread 3066699108 joined [17:29:34]Waiting for new connection... [17:29:34] Sock 9.Parse request [17:29:34]Sock 9.Check first char [17:29:34]Sock 9.First char is OK [17:29:34]request: POST /json_proto HTTP/1.0 [17:29:34]Method: POST [17:29:34]URL: /json_proto [17:29:34]Method is POST - this is cgi request [17:29:34]url: /json_proto [17:29:34]query_string will be loaded in cgi processing [17:29:34]execute_cgi json_proto POST (null) [17:29:34]execute_cgi path=json_proto method=POST [17:29:34]POST find Content-Length [17:29:34]Host: 172.17.50.3:8080 [17:29:34]Content-Length: 680 [17:29:34]Content-Type: application/json [17:29:34] [17:29:34]POST finish read [17:29:34]Found Content-Length = 680 [17:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886121", "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" : 32.810, "sum" : 2500.12, "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" ] } } [17:29:34]execute_script... [17:29: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)2886121", "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" : 32.810, "sum" : 2500.12, "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" ] } } [17:29:34]POST & json_proto [17:29:34]process_json_proto [17:29:34]json parsed OK: [17:29:34]protocol is kg_v1.0 [17:29:34]action value=close_receipt [17:29:34]process_action close_receipt [17:29:34]cmd_close_receipt [17:29:34]MH_GetDate [17:29:34]Write to MH i2c: F0 00 00 FF 0E FC [17:29:34]Write i2c OK [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 09 00 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 09 00 FF 0E 00 FE E0 17 67 6B 98 1E 66 E8 [17:29:34]GetLastDocTimeStamp 1729618011 [17:29:34]current date 1729618174 [17:29:34]FM_GetShiftState [17:29:34]SAM_PROTO_GetShiftState [17:29:34]wFMCommunicate request_size=4 [17:29:34]MH_SAM_APDU [17:29:34]CAPDU: 80 13 01 00 [17:29:34]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [17:29:34]Write i2c OK [17:29:34]MH_I2C_Read... [17:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:34]Read from MH i2c: E2 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: E2 0E 00 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7A [17:29:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:29:34]wFMCommunicate OK [17:29:34]SAM_PROTO_GetShiftState done [17:29:34]FM_GetShiftState done [17:29:34]opened in 1729555832 [17:29:34]opened+sec_in_day 1729642232 [17:29:34]quantity*price = 250012 [17:29:34]sum+1 = 250013 [17:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 300 22.10.2024 17:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70352 ФПД: 276048318284110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70352&fm=276048318284110&tin=02508201610067®Number=0000000000156251&sum=250000 [17:29:35]StoreToDocumentArchive [17:29:35]shift 195 fd 70352 [17:29:35]save to /storage/0195/doc_00070352 [17:29:35]save last doc name /storage/0195/doc_00070352 to /storage/kkm_last_doc_name [17:29:35]save OK [17:29:35]Clear old archive folders... [17:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:29:35]tlvbuf is 00AE8250 [17:29:35]SAM_PROTO_ClearQueue [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 09 00 00 [17:29:35]Write to MH i2c: E2 08 00 0D 0F 80 09 00 00 00 00 00 00 8E [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]SAM_PROTO_ClearQueue done [17:29:35]KKMCreateOFDPacket [17:29:35]OFDProtocolAddRootSTLVToBuf [17:29:35]FM_MakeSignedData [17:29:35]FM_MakeSignedData [17:29:35]SAM_PROTO_SignData [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 0D 01 02 [17:29:35]Write to MH i2c: E2 08 00 0E 0F 80 0D 01 02 00 00 00 00 96 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]wFMCommunicate request_size=255 [17:29:35]MH_SAM_APDU [17:29:35]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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 2C 01 00 00 F4 03 04 00 FE E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 12 01 00 35 04 06 00 FB 10 81 F3 [17:29:35]Write to MH i2c: E2 02 01 0F 0F 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 2C 01 00 00 F4 03 04 00 FE E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 12 01 00 35 04 06 00 FB 10 81 F3 00 00 24 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]wFMCommunicate request_size=7 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 0D 02 02 02 C1 4E [17:29:35]Write to MH i2c: E2 0A 00 10 0F 80 0D 02 02 02 00 C1 4E 00 00 AC [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 0D 03 02 [17:29:35]Write to MH i2c: E2 08 00 11 0F 80 0D 03 02 00 00 00 00 9B [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 0B 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 0B 00 11 0F 00 4A 74 E4 1F FD 5C DC B9 90 00 4B [17:29:35]RAPDU: 4A 74 E4 1F FD 5C DC B9 90 00 [17:29:35]wFMCommunicate OK [17:29:35]SAM_PROTO_SignData done [17:29:35]FM_MakeSignedData done [17:29:35]CreateOFDProtocolMessage [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 11 00 00 [17:29:35]Write to MH i2c: E2 08 00 12 0F 80 11 00 00 00 00 00 00 9B [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 17 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 17 00 12 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [17:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:35]wFMCommunicate OK [17:29:35]CreateOFDProtocolMessage done [17:29:35]OFDSenderStorePacket 70352 [17:29:35]StoreOFDPacket docnum=70352 [17:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B4 26 04 01 97 95 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 2C 01 00 00 F4 03 04 00 FE E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 12 01 00 35 04 06 00 FB 10 81 F3 C1 4E 4A 74 E4 1F FD 5C DC B9 [17:29:35]CheckFolder [17:29:35]dirname=/storage/ofd_packets [17:29:35]CheckFolder done [17:29:35]ProducePacketName [17:29:35]name=ofd_packets/00070352 [17:29:35]NVStorageSaveData ofd_packets/00070352 [17:29:35]File name is /storage/ofd_packets/00070352 [17:29:35]Write 298 bytes [17:29:35]NVStorageSaveData done [17:29:35]OFDSenderStorePacket done [17:29:35]KKMCreateOFDPacket done [17:29:35]NVStorageSaveData kkm_last_timestamp [17:29:35]File name is /storage/kkm_last_timestamp [17:29:35]Write 4 bytes [17:29:35]NVStorageSaveData done [17:29:35]ExternCall_PrintAddStr [17:29:35]wPrintStart [17:29:35]Write to MH i2c: 01 00 00 13 0F 22 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: 01 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: 01 07 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 FF 0F 37 [17:29:35]RasterBufferAndPrint [17:29:35]line Счет N : (1)2886121 [17:29:35]line ИНН: 02508201610067 [17:29:35]line Контрольно-Кассовый Чек [17:29:35]line ПРОДАЖА [17:29:35]line ТРК (МРК, ГНК) : 51 [17:29:35]line Товар: 2710194210 [17:29:35]line ДТ-К-5 [17:29:35]line 32.810 * 76.20 [17:29:35]line = 2500.12 [17:29:35]line НДС 12% НСП 1% [17:29:35]line > о реализуемом товаре [17:29:35]line ОКРУГЛЕНИЕ: -0.12 [17:29:35]line ИТОГО: 2500.00 [17:29:35]line Внесено: 2500.00 [17:29:35]line СДАЧА: 0.00 [17:29:35]line НСП 1% : 22.12 [17:29:35]line НДС 12% : 265.50 [17:29:35]line Наличными: 2500.00 [17:29:35]line Безнал.: 0.00 [17:29:35]line Место: АЗС № 85 "Партнер Нефть" [17:29:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:29:35]line СНО: Общий режим [17:29:35]line Чек 300 22.10.2024 17:29 [17:29:35]line Смена: 195 ФФД: 1.0 [17:29:35]line ЗНМ: 0300000167 [17:29:35]line РНМ: 0000000000156251 [17:29:35]line Версия ККМ: v1.0 [17:29:35]line ФМ: 0000000000963346 [17:29:35]line ФД: 70352 [17:29:35]line ФПД: 276048318284110 [17:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70352&fm=276048318284110&tin=02508201610067®Number=0000000000156251&sum=250000 [17:29:36]OFD Sender: Processing packet 70352 [packets to send 18, broken 17] [17:29:36]ProducePacketName [17:29:36]name=ofd_packets/00070352 [17:29:36]OFD Sender: To server: pG, [17:29:36]CommunicateWithHost lk.salyk.kg:30040 [17:29:36]ConnectInit lk.salyk.kg [17:29:36]written 0, free lines is 4095 [17:29:36]Connected sock=10 [17:29: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 34 36 0C 01 00 00 B4 26 04 01 97 95 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 2C 01 00 00 F4 03 04 00 FE E0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 12 01 00 35 04 06 00 FB 10 81 F3 C1 4E 4A 74 E4 1F FD 5C DC B9 [17:29: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 34 36 4F 00 00 00 32 6A 47 00 F1 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 34 36 10 04 04 00 D0 12 01 00 F4 03 04 00 9E 8A 17 67 B6 04 01 00 00 19 38 E6 19 F4 38 F4 F2 [17:29:36]CommunicateWithHost err = 0 [17:29:36]CheckOFDResponse [17:29:36]1017 (14) - 77093643461234 [17:29:36]1041 (16) - 0000000000963346 [17:29:36]1040 (4) - 70352 [17:29:36]1012 (4) - 22.10.2024 11:21 [17:29:36]1206 (1) - 0 [17:29:36]OFD Sender: Remove packet 70352 [17:29:36]ProducePacketName [17:29:36]name=ofd_packets/00070352 [17:29:36]NVStorageDeleteData [17:29:36]Write to MH i2c: 01 00 00 3E 0F 4D [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 07 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 F9 0C 59 [17:29:36]RasterBufferAndPrint [17:29:36]line [17:29:36]line [17:29:36]line [17:29:36]line [17:29:36]line [17:29:36]written 0, free lines is 3328 [17:29:36]MH_Cut [17:29:36]Write to MH i2c: D1 01 00 45 0F 01 26 [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: D1 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: D1 01 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: D1 01 00 45 0F 00 25 [17:29:36]Write to MH i2c: 01 00 00 46 0F 55 [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]OFD Sender: No OFD packet to send [17:29:37]*** Cut start [17:29:37]*** Partial cut [17:29:37]*** CUTSNS_PIN = 1 [17:29:37]*** CUTSNS_PIN = 0 [17:29:37]*** Brake cut motor [17:29:37]Read from MH i2c: 01 [17:29:37]MH_I2C_Read... [17:29:37]*** Stop cut motor [17:29:37]*** Cut end [17:29:37]Read from MH i2c: 01 07 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: 01 07 00 46 0F 00 00 00 00 00 FF 0F 6A [17:29:37]process_action close_receipt done [17:29:37]requested_data is exist [17:29:37]produce_requested_data [17:29:37]requested_item fm.sn is exist - process it [17:29:37]wFMCommunicate request_size=4 [17:29:37]MH_SAM_APDU [17:29:37]CAPDU: 80 11 00 00 [17:29:37]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:37]Read from MH i2c: E2 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 17 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [17:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:37]wFMCommunicate OK [17:29:37]requested_item fd.num is exist - process it [17:29:37]SAM_PROTO_GetFieldsCounters [17:29:37]wFMCommunicate request_size=4 [17:29:37]MH_SAM_APDU [17:29:37]CAPDU: 80 13 00 00 [17:29:37]Write to MH i2c: E2 08 00 48 0F 80 13 00 00 00 00 00 00 D3 [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 62 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 62 00 48 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 12 01 00 0E 04 04 00 C3 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 1B [17:29: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 12 01 00 0E 04 04 00 C3 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 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_GetFieldsCounters done [17:29:38]requested_item shift.num is exist - process it [17:29:38]requested_item shift.opened is exist - process it [17:29:38]req_shift_opened [17:29:38]FM_GetShiftState [17:29:38]SAM_PROTO_GetShiftState [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 13 01 00 [17:29:38]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 0E 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C3 [17:29:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_GetShiftState done [17:29:38]FM_GetShiftState done [17:29:38]req_shift_opened done [17:29:38]requested_item shift.open_date is exist - process it [17:29:38]req_shift_open_date [17:29:38]req_shift_open_date done [17:29:38]produce_requested_data done [17:29:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70352,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:29:38]process_action_free close_receipt [17:29:38]json_value_free [17:29:38]json_value_free done [17:29:38]process_json_proto returns [17:29:38]Send response to host [17:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70352,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:29:38]free response buf [17:29:38]execute_script done [17:29:38]execute_script returns [17:29:38]free content buf [17:29:38]Sock 9.Close socket [17:29:38]Sock 9.Thread stoped [17:29:41]OFD Sender: No OFD packet to send [17:29:44]accept exits with 7 [17:29:44]New connection [17:29:44]New thread 3066699108 created [17:29:44]Thread 3066555748 joined [17:29:44]Waiting for new connection... [17:29:44] Sock 7.Parse request [17:29:44]Sock 7.Check first char [17:29:44]Sock 7.First char is OK [17:29:44]request: POST /json_proto HTTP/1.0 [17:29:44]Method: POST [17:29:44]URL: /json_proto [17:29:44]Method is POST - this is cgi request [17:29:44]url: /json_proto [17:29:44]query_string will be loaded in cgi processing [17:29:44]execute_cgi json_proto POST (null) [17:29:44]execute_cgi path=json_proto method=POST [17:29:44]POST find Content-Length [17:29:44]Host: 172.17.50.3:8080 [17:29:44]Content-Length: 678 [17:29:44]Content-Type: application/json [17:29:44] [17:29:44]POST finish read [17:29:44]Found Content-Length = 678 [17:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:29:44]execute_script... [17:29: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)2886122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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:29:44]POST & json_proto [17:29:44]process_json_proto [17:29:44]json parsed OK: [17:29:44]protocol is kg_v1.0 [17:29:44]action value=close_receipt [17:29:44]process_action close_receipt [17:29:44]cmd_close_receipt [17:29:44]MH_GetDate [17:29:44]Write to MH i2c: F0 00 00 4A 0F 48 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: F0 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: F0 09 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: F0 09 00 4A 0F 00 09 E1 17 67 6B 98 1E 66 40 [17:29:44]GetLastDocTimeStamp 1729618174 [17:29:44]current date 1729618185 [17:29:44]FM_GetShiftState [17:29:44]SAM_PROTO_GetShiftState [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 13 01 00 [17:29:44]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:45]Read from MH i2c: E2 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: E2 0E 00 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C5 [17:29:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:29:45]wFMCommunicate OK [17:29:45]SAM_PROTO_GetShiftState done [17:29:45]FM_GetShiftState done [17:29:45]opened in 1729555832 [17:29:45]opened+sec_in_day 1729642232 [17:29:45]quantity*price = 50041 [17:29:45]sum+1 = 50042 [17:29: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 301 22.10.2024 17:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70353 ФПД: 11725408215223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172945&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70353&fm=11725408215223&tin=02508201610067®Number=0000000000156251&sum=50000 [17:29:46]StoreToDocumentArchive [17:29:46]shift 195 fd 70353 [17:29:46]save to /storage/0195/doc_00070353 [17:29:46]save last doc name /storage/0195/doc_00070353 to /storage/kkm_last_doc_name [17:29:46]save OK [17:29:46]Clear old archive folders... [17:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:46]tlvbuf is 00BC05E0 [17:29:46]SAM_PROTO_ClearQueue [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 09 00 00 [17:29:46]Write to MH i2c: E2 08 00 58 0F 80 09 00 00 00 00 00 00 D9 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [17:29:46]RAPDU: 90 00 [17:29:46]wFMCommunicate OK [17:29:46]SAM_PROTO_ClearQueue done [17:29:46]KKMCreateOFDPacket [17:29:46]OFDProtocolAddRootSTLVToBuf [17:29:46]FM_MakeSignedData [17:29:46]FM_MakeSignedData [17:29:46]SAM_PROTO_SignData [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 0D 01 02 [17:29:46]Write to MH i2c: E2 08 00 59 0F 80 0D 01 02 00 00 00 00 E1 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [17:29:46]RAPDU: 90 00 [17:29:46]wFMCommunicate OK [17:29:46]wFMCommunicate request_size=255 [17:29:46]MH_SAM_APDU [17:29: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 2D 01 00 00 F4 03 04 00 09 E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 12 01 00 35 04 06 00 0A [17:29:46]Write to MH i2c: E2 02 01 5A 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 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 01 00 00 F4 03 04 00 09 E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 12 01 00 35 04 06 00 0A 00 00 B1 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [17:29:46]RAPDU: 90 00 [17:29:46]wFMCommunicate OK [17:29:46]wFMCommunicate request_size=10 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 0D 02 02 05 AA 08 CA A0 B7 [17:29:46]Write to MH i2c: E2 0D 00 5B 0F 80 0D 02 02 05 00 AA 08 CA A0 B7 00 00 C1 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [17:29:46]RAPDU: 90 00 [17:29:46]wFMCommunicate OK [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 0D 03 02 [17:29:46]Write to MH i2c: E2 08 00 5C 0F 80 0D 03 02 00 00 00 00 E6 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0B 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0B 00 5C 0F 00 0D AA D8 5D 7F 2E 02 F5 90 00 77 [17:29:46]RAPDU: 0D AA D8 5D 7F 2E 02 F5 90 00 [17:29:46]wFMCommunicate OK [17:29:46]SAM_PROTO_SignData done [17:29:46]FM_MakeSignedData done [17:29:46]CreateOFDProtocolMessage [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 11 00 00 [17:29:46]Write to MH i2c: E2 08 00 5D 0F 80 11 00 00 00 00 00 00 E6 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 17 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 17 00 5D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [17:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:46]wFMCommunicate OK [17:29:46]CreateOFDProtocolMessage done [17:29:46]OFDSenderStorePacket 70353 [17:29:46]StoreOFDPacket docnum=70353 [17:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 85 07 01 96 89 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 01 00 00 F4 03 04 00 09 E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 12 01 00 35 04 06 00 0A AA 08 CA A0 B7 0D AA D8 5D 7F 2E 02 F5 [17:29:46]CheckFolder [17:29:46]dirname=/storage/ofd_packets [17:29:46]CheckFolder done [17:29:46]ProducePacketName [17:29:46]name=ofd_packets/00070353 [17:29:46]NVStorageSaveData ofd_packets/00070353 [17:29:46]File name is /storage/ofd_packets/00070353 [17:29:46]Write 301 bytes [17:29:46]NVStorageSaveData done [17:29:46]OFDSenderStorePacket done [17:29:46]KKMCreateOFDPacket done [17:29:46]NVStorageSaveData kkm_last_timestamp [17:29:46]File name is /storage/kkm_last_timestamp [17:29:46]Write 4 bytes [17:29:46]NVStorageSaveData done [17:29:46]ExternCall_PrintAddStr [17:29:46]wPrintStart [17:29:46]Write to MH i2c: 01 00 00 5E 0F 6D [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: 01 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: 01 07 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0F 82 [17:29:46]RasterBufferAndPrint [17:29:46]line Счет N : (1)2886122 [17:29:46]line ИНН: 02508201610067 [17:29:46]line Контрольно-Кассовый Чек [17:29:46]line ПРОДАЖА [17:29:46]line ТРК (МРК, ГНК) : 22 [17:29:46]line Товар: 2710124130 [17:29:46]line Аи-92-К-5 [17:29:46]line 7.480 * 66.90 [17:29:46]line = 500.41 [17:29:46]line НДС 12% НСП 1% [17:29:46]line > о реализуемом товаре [17:29:46]line ОКРУГЛЕНИЕ: -0.41 [17:29:46]line ИТОГО: 500.00 [17:29:46]line Внесено: 500.00 [17:29:46]line СДАЧА: 0.00 [17:29:46]line НСП 1% : 4.43 [17:29:46]line НДС 12% : 53.14 [17:29:46]line Наличными: 500.00 [17:29:46]line Безнал.: 0.00 [17:29:46]line Место: АЗС № 85 "Партнер Нефть" [17:29:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:29:46]line СНО: Общий режим [17:29:46]line Чек 301 22.10.2024 17:29 [17:29:46]line Смена: 195 ФФД: 1.0 [17:29:46]line ЗНМ: 0300000167 [17:29:46]line РНМ: 0000000000156251 [17:29:46]line Версия ККМ: v1.0 [17:29:46]line ФМ: 0000000000963346 [17:29:46]line ФД: 70353 [17:29:46]line ФПД: 11725408215223 [17:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172945&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70353&fm=11725408215223&tin=02508201610067®Number=0000000000156251&sum=50000 [17:29:47]OFD Sender: Processing packet 70353 [packets to send 18, broken 17] [17:29:47]ProducePacketName [17:29:47]name=ofd_packets/00070353 [17:29:47]OFD Sender: To server: pG, [17:29:47]CommunicateWithHost lk.salyk.kg:30040 [17:29:47]ConnectInit lk.salyk.kg [17:29:47]written 0, free lines is 4095 [17:29:47]Connected sock=10 [17:29: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 34 36 0F 01 00 00 60 85 07 01 96 89 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 01 00 00 F4 03 04 00 09 E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 12 01 00 35 04 06 00 0A AA 08 CA A0 B7 0D AA D8 5D 7F 2E 02 F5 [17:29: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 34 36 4F 00 00 00 AB 56 47 00 06 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 34 36 10 04 04 00 D1 12 01 00 F4 03 04 00 A9 8A 17 67 B6 04 01 00 00 10 76 84 19 97 70 BE ED [17:29:47]CommunicateWithHost err = 0 [17:29:47]CheckOFDResponse [17:29:47]1017 (14) - 77093643461234 [17:29:47]1041 (16) - 0000000000963346 [17:29:47]1040 (4) - 70353 [17:29:47]1012 (4) - 22.10.2024 11:21 [17:29:47]1206 (1) - 0 [17:29:47]OFD Sender: Remove packet 70353 [17:29:47]ProducePacketName [17:29:47]name=ofd_packets/00070353 [17:29:47]NVStorageDeleteData [17:29:47]Write to MH i2c: 01 00 00 89 0F 98 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: 01 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: 01 07 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 F0 0C 9B [17:29:47]RasterBufferAndPrint [17:29:47]line [17:29:47]line [17:29:47]line [17:29:47]line [17:29:47]line [17:29:47]written 0, free lines is 3324 [17:29:47]MH_Cut [17:29:47]Write to MH i2c: D1 01 00 90 0F 01 71 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: D1 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: D1 01 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: D1 01 00 90 0F 00 70 [17:29:47]Write to MH i2c: 01 00 00 91 0F A0 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]OFD Sender: No OFD packet to send [17:29:48]*** Cut start [17:29:48]*** Partial cut [17:29:48]*** CUTSNS_PIN = 1 [17:29:48]*** CUTSNS_PIN = 0 [17:29:48]*** Brake cut motor [17:29:48]Read from MH i2c: 01 [17:29:48]MH_I2C_Read... [17:29:48]*** Stop cut motor [17:29:48]*** Cut end [17:29:48]Read from MH i2c: 01 07 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 FF 0F B5 [17:29:48]process_action close_receipt done [17:29:48]requested_data is exist [17:29:48]produce_requested_data [17:29:48]requested_item fm.sn is exist - process it [17:29:48]wFMCommunicate request_size=4 [17:29:48]MH_SAM_APDU [17:29:48]CAPDU: 80 11 00 00 [17:29:48]Write to MH i2c: E2 08 00 92 0F 80 11 00 00 00 00 00 00 1B [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:48]Read from MH i2c: E2 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 17 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 17 00 92 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [17:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:48]wFMCommunicate OK [17:29:48]requested_item fd.num is exist - process it [17:29:48]SAM_PROTO_GetFieldsCounters [17:29:48]wFMCommunicate request_size=4 [17:29:48]MH_SAM_APDU [17:29:48]CAPDU: 80 13 00 00 [17:29:48]Write to MH i2c: E2 08 00 93 0F 80 13 00 00 00 00 00 00 1E [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:48]Read from MH i2c: E2 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 62 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 62 00 93 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 12 01 00 0E 04 04 00 C3 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 6A [17:29: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 12 01 00 0E 04 04 00 C3 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 [17:29:48]wFMCommunicate OK [17:29:48]SAM_PROTO_GetFieldsCounters done [17:29:48]requested_item shift.num is exist - process it [17:29:48]requested_item shift.opened is exist - process it [17:29:48]req_shift_opened [17:29:48]FM_GetShiftState [17:29:48]SAM_PROTO_GetShiftState [17:29:48]wFMCommunicate request_size=4 [17:29:48]MH_SAM_APDU [17:29:48]CAPDU: 80 13 01 00 [17:29:48]Write to MH i2c: E2 08 00 94 0F 80 13 01 00 00 00 00 00 20 [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:49]Read from MH i2c: E2 0E 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 0E 00 94 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0E [17:29:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:29:49]wFMCommunicate OK [17:29:49]SAM_PROTO_GetShiftState done [17:29:49]FM_GetShiftState done [17:29:49]req_shift_opened done [17:29:49]requested_item shift.open_date is exist - process it [17:29:49]req_shift_open_date [17:29:49]req_shift_open_date done [17:29:49]produce_requested_data done [17:29:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70353,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:29:49]process_action_free close_receipt [17:29:49]json_value_free [17:29:49]json_value_free done [17:29:49]process_json_proto returns [17:29:49]Send response to host [17:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70353,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:29:49]free response buf [17:29:49]execute_script done [17:29:49]execute_script returns [17:29:49]free content buf [17:29:49]Sock 7.Close socket [17:29:49]Sock 7.Thread stoped [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:14]accept exits with 9 [17:32:14]New connection [17:32:14]New thread 3066555748 created [17:32:14]Thread 3066699108 joined [17:32:14]Waiting for new connection... [17:32:14] Sock 9.Parse request [17:32:14]Sock 9.Check first char [17:32:14]Sock 9.First char is OK [17:32:14]request: POST /json_proto HTTP/1.0 [17:32:14]Method: POST [17:32:14]URL: /json_proto [17:32:14]Method is POST - this is cgi request [17:32:14]url: /json_proto [17:32:14]query_string will be loaded in cgi processing [17:32:14]execute_cgi json_proto POST (null) [17:32:14]execute_cgi path=json_proto method=POST [17:32:14]POST find Content-Length [17:32:14]Host: 172.17.50.3:8080 [17:32:14]Content-Length: 683 [17:32:14]Content-Type: application/json [17:32:14] [17:32:14]POST finish read [17:32:14]Found Content-Length = 683 [17:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:32:14]execute_script... [17:32: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)2886123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [17:32:14]POST & json_proto [17:32:14]process_json_proto [17:32:14]json parsed OK: [17:32:14]protocol is kg_v1.0 [17:32:14]action value=close_receipt [17:32:14]process_action close_receipt [17:32:14]cmd_close_receipt [17:32:14]MH_GetDate [17:32:14]Write to MH i2c: F0 00 00 95 0F 93 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 09 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: F0 09 00 95 0F 00 9E E1 17 67 6B 98 1E 66 20 [17:32:14]GetLastDocTimeStamp 1729618185 [17:32:14]current date 1729618334 [17:32:14]FM_GetShiftState [17:32:14]SAM_PROTO_GetShiftState [17:32:14]wFMCommunicate request_size=4 [17:32:14]MH_SAM_APDU [17:32:14]CAPDU: 80 13 01 00 [17:32:14]Write to MH i2c: E2 08 00 96 0F 80 13 01 00 00 00 00 00 22 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:14]Read from MH i2c: E2 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0E 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0E 00 96 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 10 [17:32:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:32:14]wFMCommunicate OK [17:32:14]SAM_PROTO_GetShiftState done [17:32:14]FM_GetShiftState done [17:32:14]opened in 1729555832 [17:32:14]opened+sec_in_day 1729642232 [17:32:14]quantity*price = 100021 [17:32:14]sum+1 = 100023 [17:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 302 22.10.2024 17:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70354 ФПД: 138464767508691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70354&fm=138464767508691&tin=02508201610067®Number=0000000000156251&sum=100000 [17:32:15]StoreToDocumentArchive [17:32:15]shift 195 fd 70354 [17:32:15]save to /storage/0195/doc_00070354 [17:32:15]save last doc name /storage/0195/doc_00070354 to /storage/kkm_last_doc_name [17:32:15]save OK [17:32:15]Clear old archive folders... [17:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:15]tlvbuf is 00AEC1C0 [17:32:15]SAM_PROTO_ClearQueue [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 09 00 00 [17:32:15]Write to MH i2c: E2 08 00 A3 0F 80 09 00 00 00 00 00 00 24 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [17:32:15]RAPDU: 90 00 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_ClearQueue done [17:32:15]KKMCreateOFDPacket [17:32:15]OFDProtocolAddRootSTLVToBuf [17:32:15]FM_MakeSignedData [17:32:15]FM_MakeSignedData [17:32:15]SAM_PROTO_SignData [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 0D 01 02 [17:32:15]Write to MH i2c: E2 08 00 A4 0F 80 0D 01 02 00 00 00 00 2C [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [17:32:15]RAPDU: 90 00 [17:32:15]wFMCommunicate OK [17:32:15]wFMCommunicate request_size=255 [17:32:15]MH_SAM_APDU [17:32: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 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 2E 01 00 00 F4 03 04 00 9E E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 12 01 00 35 04 06 00 7D [17:32:15]Write to MH i2c: E2 02 01 A5 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 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 2E 01 00 00 F4 03 04 00 9E E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 12 01 00 35 04 06 00 7D 00 00 23 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [17:32:15]RAPDU: 90 00 [17:32:15]wFMCommunicate OK [17:32:15]wFMCommunicate request_size=10 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 0D 02 02 05 EE D7 48 00 D3 [17:32:15]Write to MH i2c: E2 0D 00 A6 0F 80 0D 02 02 05 00 EE D7 48 00 D3 00 00 19 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [17:32:15]RAPDU: 90 00 [17:32:15]wFMCommunicate OK [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 0D 03 02 [17:32:15]Write to MH i2c: E2 08 00 A7 0F 80 0D 03 02 00 00 00 00 31 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0B 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0B 00 A7 0F 00 79 53 65 89 35 BC D5 EF 90 00 A1 [17:32:15]RAPDU: 79 53 65 89 35 BC D5 EF 90 00 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_SignData done [17:32:15]FM_MakeSignedData done [17:32:15]CreateOFDProtocolMessage [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 11 00 00 [17:32:15]Write to MH i2c: E2 08 00 A8 0F 80 11 00 00 00 00 00 00 31 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 17 00 [17:32:15]MH_I2C_Read... [17:32:15]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 34 36 90 00 83 [17:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:32:15]wFMCommunicate OK [17:32:15]CreateOFDProtocolMessage done [17:32:15]OFDSenderStorePacket 70354 [17:32:15]StoreOFDPacket docnum=70354 [17:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 72 07 01 80 7A 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 2E 01 00 00 F4 03 04 00 9E E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 12 01 00 35 04 06 00 7D EE D7 48 00 D3 79 53 65 89 35 BC D5 EF [17:32:15]CheckFolder [17:32:15]dirname=/storage/ofd_packets [17:32:15]CheckFolder done [17:32:15]ProducePacketName [17:32:15]name=ofd_packets/00070354 [17:32:15]NVStorageSaveData ofd_packets/00070354 [17:32:15]File name is /storage/ofd_packets/00070354 [17:32:15]Write 301 bytes [17:32:15]NVStorageSaveData done [17:32:15]OFDSenderStorePacket done [17:32:15]KKMCreateOFDPacket done [17:32:15]NVStorageSaveData kkm_last_timestamp [17:32:15]File name is /storage/kkm_last_timestamp [17:32:15]Write 4 bytes [17:32:15]NVStorageSaveData done [17:32:15]ExternCall_PrintAddStr [17:32:15]wPrintStart [17:32:15]Write to MH i2c: 01 00 00 A9 0F B8 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: 01 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: 01 07 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: 01 07 00 A9 0F 00 00 00 00 00 FF 0F CD [17:32:15]RasterBufferAndPrint [17:32:15]line Счет N : (1)2886123 [17:32:15]line ИНН: 02508201610067 [17:32:15]line Контрольно-Кассовый Чек [17:32:15]line ПРОДАЖА [17:32:15]line ТРК (МРК, ГНК) : 43 [17:32:15]line Товар: 2710124500 [17:32:15]line Аи-95-К-5 [17:32:15]line 13.480 * 74.20 [17:32:15]line = 1000.22 [17:32:15]line НДС 12% НСП 1% [17:32:15]line > о реализуемом товаре [17:32:15]line ОКРУГЛЕНИЕ: -0.22 [17:32:15]line ИТОГО: 1000.00 [17:32:15]line Внесено: 1000.00 [17:32:15]line СДАЧА: 0.00 [17:32:15]line НСП 1% : 8.85 [17:32:15]line НДС 12% : 106.22 [17:32:15]line Наличными: 1000.00 [17:32:15]line Безнал.: 0.00 [17:32:15]line Место: АЗС № 85 "Партнер Нефть" [17:32:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:15]line СНО: Общий режим [17:32:15]line Чек 302 22.10.2024 17:32 [17:32:15]line Смена: 195 ФФД: 1.0 [17:32:15]line ЗНМ: 0300000167 [17:32:15]line РНМ: 0000000000156251 [17:32:15]line Версия ККМ: v1.0 [17:32:15]line ФМ: 0000000000963346 [17:32:15]line ФД: 70354 [17:32:15]line ФПД: 138464767508691 [17:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70354&fm=138464767508691&tin=02508201610067®Number=0000000000156251&sum=100000 [17:32:16]OFD Sender: Processing packet 70354 [packets to send 18, broken 17] [17:32:16]ProducePacketName [17:32:16]name=ofd_packets/00070354 [17:32:16]OFD Sender: To server: pG, [17:32:16]CommunicateWithHost lk.salyk.kg:30040 [17:32:16]ConnectInit lk.salyk.kg [17:32:16]written 0, free lines is 4095 [17:32:16]Connected sock=11 [17:32: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 34 36 0F 01 00 00 AE 72 07 01 80 7A 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 2E 01 00 00 F4 03 04 00 9E E1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 12 01 00 35 04 06 00 7D EE D7 48 00 D3 79 53 65 89 35 BC D5 EF [17:32: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 34 36 4F 00 00 00 BE 8F 47 00 8E 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 34 36 10 04 04 00 D2 12 01 00 F4 03 04 00 3E 8B 17 67 B6 04 01 00 00 0C EA A0 AC F8 2B 64 BA [17:32:16]CommunicateWithHost err = 0 [17:32:16]CheckOFDResponse [17:32:16]1017 (14) - 77093643461234 [17:32:16]1041 (16) - 0000000000963346 [17:32:16]1040 (4) - 70354 [17:32:16]1012 (4) - 22.10.2024 11:23 [17:32:16]1206 (1) - 0 [17:32:16]OFD Sender: Remove packet 70354 [17:32:16]ProducePacketName [17:32:16]name=ofd_packets/00070354 [17:32:16]NVStorageDeleteData [17:32:16]Write to MH i2c: 01 00 00 D4 0F E3 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 FB 0C F1 [17:32:16]RasterBufferAndPrint [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]line [17:32:16]written 0, free lines is 3329 [17:32:16]MH_Cut [17:32:16]Write to MH i2c: D1 01 00 DB 0F 01 BC [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: D1 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: D1 01 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: D1 01 00 DB 0F 00 BB [17:32:16]Write to MH i2c: 01 00 00 DC 0F EB [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]OFD Sender: No OFD packet to send [17:32:17]*** Cut start [17:32:17]*** Partial cut [17:32:17]*** CUTSNS_PIN = 1 [17:32:17]*** CUTSNS_PIN = 0 [17:32:17]*** Brake cut motor [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]*** Stop cut motor [17:32:17]*** Cut end [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 FF 0F 00 [17:32:17]process_action close_receipt done [17:32:17]requested_data is exist [17:32:17]produce_requested_data [17:32:17]requested_item fm.sn is exist - process it [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 11 00 00 [17:32:17]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [17:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:32:17]wFMCommunicate OK [17:32:17]requested_item fd.num is exist - process it [17:32:17]SAM_PROTO_GetFieldsCounters [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 13 00 00 [17:32:17]Write to MH i2c: E2 08 00 DE 0F 80 13 00 00 00 00 00 00 69 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 62 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 62 00 DE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 12 01 00 0E 04 04 00 C3 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 B9 [17:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 12 01 00 0E 04 04 00 C3 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 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_GetFieldsCounters done [17:32:18]requested_item shift.num is exist - process it [17:32:18]requested_item shift.opened is exist - process it [17:32:18]req_shift_opened [17:32:18]FM_GetShiftState [17:32:18]SAM_PROTO_GetShiftState [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 13 01 00 [17:32:18]Write to MH i2c: E2 08 00 DF 0F 80 13 01 00 00 00 00 00 6B [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0E 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0E 00 DF 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 59 [17:32:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_GetShiftState done [17:32:18]FM_GetShiftState done [17:32:18]req_shift_opened done [17:32:18]requested_item shift.open_date is exist - process it [17:32:18]req_shift_open_date [17:32:18]req_shift_open_date done [17:32:18]produce_requested_data done [17:32:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70354,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:32:18]process_action_free close_receipt [17:32:18]json_value_free [17:32:18]json_value_free done [17:32:18]process_json_proto returns [17:32:18]Send response to host [17:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70354,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:32:18]free response buf [17:32:18]execute_script done [17:32:18]execute_script returns [17:32:18]free content buf [17:32:18]Sock 9.Close socket [17:32:18]Sock 9.Thread stoped [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:09]accept exits with 7 [17:37:09]New connection [17:37:09]New thread 3066699108 created [17:37:09]Thread 3066555748 joined [17:37:09]Waiting for new connection... [17:37:09] Sock 7.Parse request [17:37:09]Sock 7.Check first char [17:37:09]Sock 7.First char is OK [17:37:09]request: POST /json_proto HTTP/1.0 [17:37:09]Method: POST [17:37:09]URL: /json_proto [17:37:09]Method is POST - this is cgi request [17:37:09]url: /json_proto [17:37:09]query_string will be loaded in cgi processing [17:37:09]execute_cgi json_proto POST (null) [17:37:09]execute_cgi path=json_proto method=POST [17:37:09]POST find Content-Length [17:37:09]Host: 172.17.50.3:8080 [17:37:09]Content-Length: 679 [17:37:09]Content-Type: application/json [17:37:09] [17:37:09]POST finish read [17:37:09]Found Content-Length = 679 [17:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [17:37:09]execute_script... [17:37: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 : (1)2886124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [17:37:09]POST & json_proto [17:37:09]process_json_proto [17:37:09]json parsed OK: [17:37:09]protocol is kg_v1.0 [17:37:09]action value=close_receipt [17:37:09]process_action close_receipt [17:37:09]cmd_close_receipt [17:37:09]MH_GetDate [17:37:09]Write to MH i2c: F0 00 00 E0 0F DE [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: F0 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: F0 09 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: F0 09 00 E0 0F 00 C5 E2 17 67 6B 98 1E 66 93 [17:37:09]GetLastDocTimeStamp 1729618334 [17:37:09]current date 1729618629 [17:37:09]FM_GetShiftState [17:37:09]SAM_PROTO_GetShiftState [17:37:09]wFMCommunicate request_size=4 [17:37:09]MH_SAM_APDU [17:37:09]CAPDU: 80 13 01 00 [17:37:09]Write to MH i2c: E2 08 00 E1 0F 80 13 01 00 00 00 00 00 6D [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:09]Read from MH i2c: E2 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 0E 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 0E 00 E1 0F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5B [17:37:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:37:09]wFMCommunicate OK [17:37:09]SAM_PROTO_GetShiftState done [17:37:09]FM_GetShiftState done [17:37:09]opened in 1729555832 [17:37:09]opened+sec_in_day 1729642232 [17:37:09]quantity*price = 70044 [17:37:09]sum+1 = 70045 [17:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 303 22.10.2024 17:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70355 ФПД: 61330849694024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70355&fm=61330849694024&tin=02508201610067®Number=0000000000156251&sum=70000 [17:37:10]StoreToDocumentArchive [17:37:10]shift 195 fd 70355 [17:37:10]save to /storage/0195/doc_00070355 [17:37:10]save last doc name /storage/0195/doc_00070355 to /storage/kkm_last_doc_name [17:37:10]save OK [17:37:10]Clear old archive folders... [17:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:10]tlvbuf is 00AA3E90 [17:37:10]SAM_PROTO_ClearQueue [17:37:10]wFMCommunicate request_size=4 [17:37:10]MH_SAM_APDU [17:37:10]CAPDU: 80 09 00 00 [17:37:10]Write to MH i2c: E2 08 00 EE 0F 80 09 00 00 00 00 00 00 6F [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 EE 0F 00 90 00 71 [17:37:10]RAPDU: 90 00 [17:37:10]wFMCommunicate OK [17:37:10]SAM_PROTO_ClearQueue done [17:37:10]KKMCreateOFDPacket [17:37:10]OFDProtocolAddRootSTLVToBuf [17:37:10]FM_MakeSignedData [17:37:10]FM_MakeSignedData [17:37:10]SAM_PROTO_SignData [17:37:10]wFMCommunicate request_size=4 [17:37:10]MH_SAM_APDU [17:37:10]CAPDU: 80 0D 01 02 [17:37:10]Write to MH i2c: E2 08 00 EF 0F 80 0D 01 02 00 00 00 00 77 [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 EF 0F 00 90 00 72 [17:37:10]RAPDU: 90 00 [17:37:10]wFMCommunicate OK [17:37:10]wFMCommunicate request_size=255 [17:37:10]MH_SAM_APDU [17:37: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 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 2F 01 00 00 F4 03 04 00 C5 E2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 12 01 00 35 04 06 00 37 [17:37:10]Write to MH i2c: E2 02 01 F0 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 2F 01 00 00 F4 03 04 00 C5 E2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 12 01 00 35 04 06 00 37 00 00 45 [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [17:37:10]RAPDU: 90 00 [17:37:10]wFMCommunicate OK [17:37:10]wFMCommunicate request_size=10 [17:37:10]MH_SAM_APDU [17:37:10]CAPDU: 80 0D 02 02 05 C7 B3 82 81 48 [17:37:10]Write to MH i2c: E2 0D 00 F1 0F 80 0D 02 02 05 00 C7 B3 82 81 48 00 00 49 [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [17:37:10]RAPDU: 90 00 [17:37:10]wFMCommunicate OK [17:37:10]wFMCommunicate request_size=4 [17:37:10]MH_SAM_APDU [17:37:10]CAPDU: 80 0D 03 02 [17:37:10]Write to MH i2c: E2 08 00 F2 0F 80 0D 03 02 00 00 00 00 7C [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 0B 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 0B 00 F2 0F 00 07 00 4B 56 DF 63 6E 61 90 00 36 [17:37:10]RAPDU: 07 00 4B 56 DF 63 6E 61 90 00 [17:37:10]wFMCommunicate OK [17:37:10]SAM_PROTO_SignData done [17:37:10]FM_MakeSignedData done [17:37:10]CreateOFDProtocolMessage [17:37:10]wFMCommunicate request_size=4 [17:37:10]MH_SAM_APDU [17:37:10]CAPDU: 80 11 00 00 [17:37:10]Write to MH i2c: E2 08 00 F3 0F 80 11 00 00 00 00 00 00 7C [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:10]Read from MH i2c: E2 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 17 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: E2 17 00 F3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [17:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:37:10]wFMCommunicate OK [17:37:10]CreateOFDProtocolMessage done [17:37:10]OFDSenderStorePacket 70355 [17:37:10]StoreOFDPacket docnum=70355 [17:37:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 7E 07 01 51 8E 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 2F 01 00 00 F4 03 04 00 C5 E2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 12 01 00 35 04 06 00 37 C7 B3 82 81 48 07 00 4B 56 DF 63 6E 61 [17:37:10]CheckFolder [17:37:10]dirname=/storage/ofd_packets [17:37:10]CheckFolder done [17:37:10]ProducePacketName [17:37:10]name=ofd_packets/00070355 [17:37:10]NVStorageSaveData ofd_packets/00070355 [17:37:10]File name is /storage/ofd_packets/00070355 [17:37:10]Write 301 bytes [17:37:10]NVStorageSaveData done [17:37:10]OFDSenderStorePacket done [17:37:10]KKMCreateOFDPacket done [17:37:10]NVStorageSaveData kkm_last_timestamp [17:37:10]File name is /storage/kkm_last_timestamp [17:37:10]Write 4 bytes [17:37:10]NVStorageSaveData done [17:37:10]ExternCall_PrintAddStr [17:37:10]wPrintStart [17:37:10]Write to MH i2c: 01 00 00 F4 0F 03 [17:37:10]Write i2c OK [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: 01 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: 01 07 00 [17:37:10]MH_I2C_Read... [17:37:10]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 FF 0F 18 [17:37:10]RasterBufferAndPrint [17:37:10]line Счет N : (1)2886124 [17:37:10]line ИНН: 02508201610067 [17:37:10]line Контрольно-Кассовый Чек [17:37:10]line ПРОДАЖА [17:37:10]line ТРК (МРК, ГНК) : 12 [17:37:10]line Товар: 2710124130 [17:37:10]line Аи-92-К-5 [17:37:10]line 10.470 * 66.90 [17:37:10]line = 700.44 [17:37:10]line НДС 12% НСП 1% [17:37:10]line > о реализуемом товаре [17:37:10]line ОКРУГЛЕНИЕ: -0.44 [17:37:10]line ИТОГО: 700.00 [17:37:10]line Внесено: 700.00 [17:37:10]line СДАЧА: 0.00 [17:37:10]line НСП 1% : 6.20 [17:37:10]line НДС 12% : 74.38 [17:37:10]line Наличными: 700.00 [17:37:10]line Безнал.: 0.00 [17:37:10]line Место: АЗС № 85 "Партнер Нефть" [17:37:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:37:10]line СНО: Общий режим [17:37:10]line Чек 303 22.10.2024 17:37 [17:37:10]line Смена: 195 ФФД: 1.0 [17:37:10]line ЗНМ: 0300000167 [17:37:10]line РНМ: 0000000000156251 [17:37:10]line Версия ККМ: v1.0 [17:37:10]line ФМ: 0000000000963346 [17:37:10]line ФД: 70355 [17:37:10]line ФПД: 61330849694024 [17:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70355&fm=61330849694024&tin=02508201610067®Number=0000000000156251&sum=70000 [17:37:11]OFD Sender: Processing packet 70355 [packets to send 18, broken 17] [17:37:11]ProducePacketName [17:37:11]name=ofd_packets/00070355 [17:37:11]OFD Sender: To server: pG, [17:37:11]CommunicateWithHost lk.salyk.kg:30040 [17:37:11]ConnectInit lk.salyk.kg [17:37:11]written 0, free lines is 4095 [17:37:11]Connected sock=10 [17:37: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 34 36 0F 01 00 00 02 7E 07 01 51 8E 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 2F 01 00 00 F4 03 04 00 C5 E2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 12 01 00 35 04 06 00 37 C7 B3 82 81 48 07 00 4B 56 DF 63 6E 61 [17:37: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 34 36 4F 00 00 00 59 45 47 00 51 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 34 36 10 04 04 00 D3 12 01 00 F4 03 04 00 65 8C 17 67 B6 04 01 00 00 C4 16 E7 8B 00 37 93 63 [17:37:11]CommunicateWithHost err = 0 [17:37:11]CheckOFDResponse [17:37:11]1017 (14) - 77093643461234 [17:37:11]1041 (16) - 0000000000963346 [17:37:11]1040 (4) - 70355 [17:37:11]1012 (4) - 22.10.2024 11:28 [17:37:11]1206 (1) - 0 [17:37:11]OFD Sender: Remove packet 70355 [17:37:11]ProducePacketName [17:37:11]name=ofd_packets/00070355 [17:37:11]NVStorageDeleteData [17:37:11]Write to MH i2c: 01 00 00 1F 10 2F [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: 01 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: 01 07 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 F5 0C 37 [17:37:11]RasterBufferAndPrint [17:37:11]line [17:37:11]line [17:37:11]line [17:37:11]line [17:37:11]line [17:37:11]written 0, free lines is 3323 [17:37:11]MH_Cut [17:37:11]Write to MH i2c: D1 01 00 26 10 01 08 [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: D1 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: D1 01 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: D1 01 00 26 10 00 07 [17:37:11]Write to MH i2c: 01 00 00 27 10 37 [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]OFD Sender: No OFD packet to send [17:37:12]*** Cut start [17:37:12]*** Partial cut [17:37:12]*** CUTSNS_PIN = 1 [17:37:12]*** CUTSNS_PIN = 0 [17:37:12]*** Brake cut motor [17:37:12]Read from MH i2c: 01 [17:37:12]MH_I2C_Read... [17:37:12]*** Stop cut motor [17:37:12]*** Cut end [17:37:12]Read from MH i2c: 01 07 00 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: 01 07 00 27 10 00 00 00 00 00 FF 0F 4C [17:37:12]process_action close_receipt done [17:37:12]requested_data is exist [17:37:12]produce_requested_data [17:37:12]requested_item fm.sn is exist - process it [17:37:12]wFMCommunicate request_size=4 [17:37:12]MH_SAM_APDU [17:37:12]CAPDU: 80 11 00 00 [17:37:12]Write to MH i2c: E2 08 00 28 10 80 11 00 00 00 00 00 00 B2 [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:12]Read from MH i2c: E2 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: E2 17 00 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: E2 17 00 28 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [17:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:37:12]wFMCommunicate OK [17:37:12]requested_item fd.num is exist - process it [17:37:12]SAM_PROTO_GetFieldsCounters [17:37:12]wFMCommunicate request_size=4 [17:37:12]MH_SAM_APDU [17:37:12]CAPDU: 80 13 00 00 [17:37:12]Write to MH i2c: E2 08 00 29 10 80 13 00 00 00 00 00 00 B5 [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 62 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 62 00 29 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 12 01 00 0E 04 04 00 C3 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 09 [17:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 12 01 00 0E 04 04 00 C3 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 [17:37:13]wFMCommunicate OK [17:37:13]SAM_PROTO_GetFieldsCounters done [17:37:13]requested_item shift.num is exist - process it [17:37:13]requested_item shift.opened is exist - process it [17:37:13]req_shift_opened [17:37:13]FM_GetShiftState [17:37:13]SAM_PROTO_GetShiftState [17:37:13]wFMCommunicate request_size=4 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 13 01 00 [17:37:13]Write to MH i2c: E2 08 00 2A 10 80 13 01 00 00 00 00 00 B7 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 2A 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A5 [17:37:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:37:13]wFMCommunicate OK [17:37:13]SAM_PROTO_GetShiftState done [17:37:13]FM_GetShiftState done [17:37:13]req_shift_opened done [17:37:13]requested_item shift.open_date is exist - process it [17:37:13]req_shift_open_date [17:37:13]req_shift_open_date done [17:37:13]produce_requested_data done [17:37:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70355,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:37:13]process_action_free close_receipt [17:37:13]json_value_free [17:37:13]json_value_free done [17:37:13]process_json_proto returns [17:37:13]Send response to host [17:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70355,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:37:13]free response buf [17:37:13]execute_script done [17:37:13]execute_script returns [17:37:13]free content buf [17:37:13]Sock 7.Close socket [17:37:13]Sock 7.Thread stoped [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:46]accept exits with 9 [17:39:46]New connection [17:39:46]New thread 3066555748 created [17:39:46]Thread 3066699108 joined [17:39:46]Waiting for new connection... [17:39:46] Sock 9.Parse request [17:39:46]Sock 9.Check first char [17:39:46]Sock 9.First char is OK [17:39:46]request: POST /json_proto HTTP/1.0 [17:39:46]Method: POST [17:39:46]URL: /json_proto [17:39:46]Method is POST - this is cgi request [17:39:46]url: /json_proto [17:39:46]query_string will be loaded in cgi processing [17:39:46]execute_cgi json_proto POST (null) [17:39:46]execute_cgi path=json_proto method=POST [17:39:46]POST find Content-Length [17:39:46]Host: 172.17.50.3:8080 [17:39:46]Content-Length: 767 [17:39:46]Content-Type: application/json [17:39:46] [17:39:46]POST finish read [17:39:46]Found Content-Length = 767 [17:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:39:46]execute_script... [17: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)2886125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [17:39:46]POST & json_proto [17:39:46]process_json_proto [17:39:46]json parsed OK: [17:39:46]protocol is kg_v1.0 [17:39:46]action value=close_receipt [17:39:46]process_action close_receipt [17:39:46]cmd_close_receipt [17:39:46]MH_GetDate [17:39:46]Write to MH i2c: F0 00 00 2B 10 2A [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: F0 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: F0 09 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: F0 09 00 2B 10 00 62 E3 17 67 6B 98 1E 66 7D [17:39:46]GetLastDocTimeStamp 1729618629 [17:39:46]current date 1729618786 [17:39:46]FM_GetShiftState [17:39:46]SAM_PROTO_GetShiftState [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 13 01 00 [17:39:46]Write to MH i2c: E2 08 00 2C 10 80 13 01 00 00 00 00 00 B9 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:46]Read from MH i2c: E2 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 0E 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 0E 00 2C 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A7 [17:39:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:39:46]wFMCommunicate OK [17:39:46]SAM_PROTO_GetShiftState done [17:39:46]FM_GetShiftState done [17:39:46]opened in 1729555832 [17:39:46]opened+sec_in_day 1729642232 [17:39:46]quantity*price = 50041 [17:39:46]sum+1 = 50042 [17:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 304 22.10.2024 17:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70356 ФПД: 96924730693018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70356&fm=96924730693018&tin=02508201610067®Number=0000000000156251&sum=50041 [17:39:47]StoreToDocumentArchive [17:39:47]shift 195 fd 70356 [17:39:47]save to /storage/0195/doc_00070356 [17:39:47]save last doc name /storage/0195/doc_00070356 to /storage/kkm_last_doc_name [17:39:47]save OK [17:39:47]Clear old archive folders... [17:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:47]tlvbuf is 00ABC750 [17:39:47]SAM_PROTO_ClearQueue [17:39:47]wFMCommunicate request_size=4 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 09 00 00 [17:39:47]Write to MH i2c: E2 08 00 39 10 80 09 00 00 00 00 00 00 BB [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 39 10 00 90 00 BD [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]SAM_PROTO_ClearQueue done [17:39:47]KKMCreateOFDPacket [17:39:47]OFDProtocolAddRootSTLVToBuf [17:39:47]FM_MakeSignedData [17:39:47]FM_MakeSignedData [17:39:47]SAM_PROTO_SignData [17:39:47]wFMCommunicate request_size=4 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 01 02 [17:39:47]Write to MH i2c: E2 08 00 3A 10 80 0D 01 02 00 00 00 00 C3 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 3A 10 00 90 00 BE [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=255 [17:39:47]MH_SAM_APDU [17:39: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 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 30 01 00 00 F4 03 04 00 62 E3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 12 01 00 35 04 06 00 58 [17:39:47]Write to MH i2c: E2 02 01 3B 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 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 30 01 00 00 F4 03 04 00 62 E3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 12 01 00 35 04 06 00 58 00 00 94 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=10 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 02 02 05 27 0C 24 95 9A [17:39:47]Write to MH i2c: E2 0D 00 3C 10 80 0D 02 02 05 00 27 0C 24 95 9A 00 00 56 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=4 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 03 02 [17:39:47]Write to MH i2c: E2 08 00 3D 10 80 0D 03 02 00 00 00 00 C8 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:48]Read from MH i2c: E2 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 0B 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 0B 00 3D 10 00 22 A6 6E D4 22 E5 64 77 90 00 B5 [17:39:48]RAPDU: 22 A6 6E D4 22 E5 64 77 90 00 [17:39:48]wFMCommunicate OK [17:39:48]SAM_PROTO_SignData done [17:39:48]FM_MakeSignedData done [17:39:48]CreateOFDProtocolMessage [17:39:48]wFMCommunicate request_size=4 [17:39:48]MH_SAM_APDU [17:39:48]CAPDU: 80 11 00 00 [17:39:48]Write to MH i2c: E2 08 00 3E 10 80 11 00 00 00 00 00 00 C8 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:48]Read from MH i2c: E2 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 17 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 17 00 3E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [17:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:39:48]wFMCommunicate OK [17:39:48]CreateOFDProtocolMessage done [17:39:48]OFDSenderStorePacket 70356 [17:39:48]StoreOFDPacket docnum=70356 [17:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 83 35 07 01 68 EF 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 30 01 00 00 F4 03 04 00 62 E3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 12 01 00 35 04 06 00 58 27 0C 24 95 9A 22 A6 6E D4 22 E5 64 77 [17:39:48]CheckFolder [17:39:48]dirname=/storage/ofd_packets [17:39:48]CheckFolder done [17:39:48]ProducePacketName [17:39:48]name=ofd_packets/00070356 [17:39:48]NVStorageSaveData ofd_packets/00070356 [17:39:48]File name is /storage/ofd_packets/00070356 [17:39:48]Write 301 bytes [17:39:48]NVStorageSaveData done [17:39:48]OFDSenderStorePacket done [17:39:48]KKMCreateOFDPacket done [17:39:48]NVStorageSaveData kkm_last_timestamp [17:39:48]File name is /storage/kkm_last_timestamp [17:39:48]Write 4 bytes [17:39:48]NVStorageSaveData done [17:39:48]ExternCall_PrintAddStr [17:39:48]wPrintStart [17:39:48]Write to MH i2c: 01 00 00 3F 10 4F [17:39:48]OFD Sender: Processing packet 70356 [packets to send 18, broken 17] [17:39:48]ProducePacketName [17:39:48]name=ofd_packets/00070356 [17:39:48]OFD Sender: To server: pG, [17:39:48]CommunicateWithHost lk.salyk.kg:30040 [17:39:48]ConnectInit lk.salyk.kg [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 FF 0F 64 [17:39:48]RasterBufferAndPrint [17:39:48]line Счет N : (1)2886125 [17:39:48]line ИНН: 02508201610067 [17:39:48]line Контрольно-Кассовый Чек [17:39:48]line ПРОДАЖА [17:39:48]line ТРК (МРК, ГНК) : 22 [17:39:48]line Товар: 2710124130 [17:39:48]line Аи-92-К-5 [17:39:48]line 7.480 * 66.90 [17:39:48]line = 500.41 [17:39:48]line НДС 12% НСП 1% [17:39:48]line > о реализуемом товаре [17:39:48]line ИТОГО: 500.41 [17:39:48]line НСП 1% : 4.43 [17:39:48]line НДС 12% : 53.14 [17:39:48]line Наличными: 0.00 [17:39:48]line Безнал.: 500.41 [17:39:48]line Место: АЗС № 85 "Партнер Нефть" [17:39:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:39:48]line СНО: Общий режим [17:39:48]line Чек 304 22.10.2024 17:39 [17:39:48]line Смена: 195 ФФД: 1.0 [17:39:48]line ЗНМ: 0300000167 [17:39:48]line РНМ: 0000000000156251 [17:39:48]line Версия ККМ: v1.0 [17:39:48]line Платежная система: Mbank [17:39:48]line ФМ: 0000000000963346 [17:39:48]line ФД: 70356 [17:39:48]line ФПД: 96924730693018 [17:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70356&fm=96924730693018&tin=02508201610067®Number=0000000000156251&sum=50041 [17:39:48]Connected sock=10 [17: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 34 36 0F 01 00 00 83 35 07 01 68 EF 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 30 01 00 00 F4 03 04 00 62 E3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 12 01 00 35 04 06 00 58 27 0C 24 95 9A 22 A6 6E D4 22 E5 64 77 [17:39:48]written 0, free lines is 4095 [17:39: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 34 36 4F 00 00 00 F9 57 47 00 37 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 34 36 10 04 04 00 D4 12 01 00 F4 03 04 00 03 8D 17 67 B6 04 01 00 00 2A 3A 75 B0 54 C2 5F DC [17:39:48]CommunicateWithHost err = 0 [17:39:48]CheckOFDResponse [17:39:48]1017 (14) - 77093643461234 [17:39:48]1041 (16) - 0000000000963346 [17:39:48]1040 (4) - 70356 [17:39:48]1012 (4) - 22.10.2024 11:31 [17:39:48]1206 (1) - 0 [17:39:48]OFD Sender: Remove packet 70356 [17:39:48]ProducePacketName [17:39:48]name=ofd_packets/00070356 [17:39:48]NVStorageDeleteData [17:39:48]Write to MH i2c: 01 00 00 68 10 78 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 13 0D 9F [17:39:48]RasterBufferAndPrint [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]written 0, free lines is 3353 [17:39:48]MH_Cut [17:39:48]Write to MH i2c: D1 01 00 6F 10 01 51 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 01 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 01 00 6F 10 00 50 [17:39:48]Write to MH i2c: 01 00 00 70 10 80 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:49]OFD Sender: No OFD packet to send [17:39:49]*** Cut start [17:39:49]*** Partial cut [17:39:49]*** CUTSNS_PIN = 1 [17:39:49]*** CUTSNS_PIN = 0 [17:39:49]*** Brake cut motor [17:39:50]Read from MH i2c: 01 [17:39:50]MH_I2C_Read... [17:39:50]*** Stop cut motor [17:39:50]*** Cut end [17:39:50]Read from MH i2c: 01 07 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 70 10 00 00 00 00 00 FF 0F 95 [17:39:50]process_action close_receipt done [17:39:50]requested_data is exist [17:39:50]produce_requested_data [17:39:50]requested_item fm.sn is exist - process it [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 11 00 00 [17:39:50]Write to MH i2c: E2 08 00 71 10 80 11 00 00 00 00 00 00 FB [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 17 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 17 00 71 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [17:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:39:50]wFMCommunicate OK [17:39:50]requested_item fd.num is exist - process it [17:39:50]SAM_PROTO_GetFieldsCounters [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 13 00 00 [17:39:50]Write to MH i2c: E2 08 00 72 10 80 13 00 00 00 00 00 00 FE [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 62 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 62 00 72 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 12 01 00 0E 04 04 00 C3 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 56 [17:39: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 12 01 00 0E 04 04 00 C3 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 [17:39:50]wFMCommunicate OK [17:39:50]SAM_PROTO_GetFieldsCounters done [17:39:50]requested_item shift.num is exist - process it [17:39:50]requested_item shift.opened is exist - process it [17:39:50]req_shift_opened [17:39:50]FM_GetShiftState [17:39:50]SAM_PROTO_GetShiftState [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 13 01 00 [17:39:50]Write to MH i2c: E2 08 00 73 10 80 13 01 00 00 00 00 00 00 [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 0E 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 0E 00 73 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EE [17:39:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:39:50]wFMCommunicate OK [17:39:50]SAM_PROTO_GetShiftState done [17:39:50]FM_GetShiftState done [17:39:50]req_shift_opened done [17:39:50]requested_item shift.open_date is exist - process it [17:39:50]req_shift_open_date [17:39:50]req_shift_open_date done [17:39:50]produce_requested_data done [17:39:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70356,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:39:50]process_action_free close_receipt [17:39:50]json_value_free [17:39:50]json_value_free done [17:39:50]process_json_proto returns [17:39:50]Send response to host [17:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70356,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:39:50]free response buf [17:39:50]execute_script done [17:39:50]execute_script returns [17:39:50]free content buf [17:39:50]Sock 9.Close socket [17:39:50]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:24]accept exits with 7 [17:46:24]New connection [17:46:24]New thread 3066699108 created [17:46:24]Thread 3066555748 joined [17:46:24]Waiting for new connection... [17:46:24] Sock 7.Parse request [17:46:24]Sock 7.Check first char [17:46:24]Sock 7.First char is OK [17:46:24]request: POST /json_proto HTTP/1.0 [17:46:24]Method: POST [17:46:24]URL: /json_proto [17:46:24]Method is POST - this is cgi request [17:46:24]url: /json_proto [17:46:24]query_string will be loaded in cgi processing [17:46:24]execute_cgi json_proto POST (null) [17:46:24]execute_cgi path=json_proto method=POST [17:46:24]POST find Content-Length [17:46:24]Host: 172.17.50.3:8080 [17:46:24]Content-Length: 767 [17:46:24]Content-Type: application/json [17:46:24] [17:46:24]POST finish read [17:46:24]Found Content-Length = 767 [17:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:24]execute_script... [17: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 : (1)2886126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:24]POST & json_proto [17:46:24]process_json_proto [17:46:24]json parsed OK: [17:46:24]protocol is kg_v1.0 [17:46:24]action value=close_receipt [17:46:24]process_action close_receipt [17:46:24]cmd_close_receipt [17:46:24]MH_GetDate [17:46:24]Write to MH i2c: F0 00 00 74 10 73 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: F0 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: F0 09 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: F0 09 00 74 10 00 F1 E4 17 67 6B 98 1E 66 56 [17:46:24]GetLastDocTimeStamp 1729618786 [17:46:24]current date 1729619185 [17:46:24]FM_GetShiftState [17:46:24]SAM_PROTO_GetShiftState [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 13 01 00 [17:46:24]Write to MH i2c: E2 08 00 75 10 80 13 01 00 00 00 00 00 02 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 75 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F0 [17:46:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:46:24]wFMCommunicate OK [17:46:24]SAM_PROTO_GetShiftState done [17:46:24]FM_GetShiftState done [17:46:24]opened in 1729555832 [17:46:24]opened+sec_in_day 1729642232 [17:46:24]quantity*price = 40006 [17:46:24]sum+1 = 40007 [17:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 305 22.10.2024 17:46 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70357 ФПД: 273256842610932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70357&fm=273256842610932&tin=02508201610067®Number=0000000000156251&sum=40006 [17:46:25]StoreToDocumentArchive [17:46:25]shift 195 fd 70357 [17:46:25]save to /storage/0195/doc_00070357 [17:46:25]save last doc name /storage/0195/doc_00070357 to /storage/kkm_last_doc_name [17:46:25]save OK [17:46:25]Clear old archive folders... [17:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:25]tlvbuf is 00CA5BB0 [17:46:25]SAM_PROTO_ClearQueue [17:46:25]wFMCommunicate request_size=4 [17:46:25]MH_SAM_APDU [17:46:25]CAPDU: 80 09 00 00 [17:46:25]Write to MH i2c: E2 08 00 82 10 80 09 00 00 00 00 00 00 04 [17:46:25]Write i2c OK [17:46:25]MH_I2C_Read... [17:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:25]Read from MH i2c: E2 [17:46:25]MH_I2C_Read... [17:46:25]Read from MH i2c: E2 03 00 [17:46:25]MH_I2C_Read... [17:46:25]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [17:46:25]RAPDU: 90 00 [17:46:25]wFMCommunicate OK [17:46:25]SAM_PROTO_ClearQueue done [17:46:25]KKMCreateOFDPacket [17:46:25]OFDProtocolAddRootSTLVToBuf [17:46:25]FM_MakeSignedData [17:46:25]FM_MakeSignedData [17:46:25]SAM_PROTO_SignData [17:46:25]wFMCommunicate request_size=4 [17:46:25]MH_SAM_APDU [17:46:25]CAPDU: 80 0D 01 02 [17:46:25]Write to MH i2c: E2 08 00 83 10 80 0D 01 02 00 00 00 00 0C [17:46:25]Write i2c OK [17:46:25]MH_I2C_Read... [17:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:25]Read from MH i2c: E2 [17:46:25]MH_I2C_Read... [17:46:25]Read from MH i2c: E2 03 00 [17:46:25]MH_I2C_Read... [17:46:25]Read from MH i2c: E2 03 00 83 10 00 90 00 07 [17:46:25]RAPDU: 90 00 [17:46:25]wFMCommunicate OK [17:46:25]wFMCommunicate request_size=255 [17:46:25]MH_SAM_APDU [17:46: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 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 F1 E4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 12 01 00 35 04 06 00 F8 [17:46:25]Write to MH i2c: E2 02 01 84 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 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 F1 E4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 12 01 00 35 04 06 00 F8 00 00 98 [17:46:25]Write i2c OK [17:46:25]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 03 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 03 00 84 10 00 90 00 08 [17:46:26]RAPDU: 90 00 [17:46:26]wFMCommunicate OK [17:46:26]wFMCommunicate request_size=10 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 0D 02 02 05 86 91 09 48 F4 [17:46:26]Write to MH i2c: E2 0D 00 85 10 80 0D 02 02 05 00 86 91 09 48 F4 00 00 75 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 03 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [17:46:26]RAPDU: 90 00 [17:46:26]wFMCommunicate OK [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 0D 03 02 [17:46:26]Write to MH i2c: E2 08 00 86 10 80 0D 03 02 00 00 00 00 11 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0B 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0B 00 86 10 00 D2 4F 7E B7 C3 46 73 14 90 00 F8 [17:46:26]RAPDU: D2 4F 7E B7 C3 46 73 14 90 00 [17:46:26]wFMCommunicate OK [17:46:26]SAM_PROTO_SignData done [17:46:26]FM_MakeSignedData done [17:46:26]CreateOFDProtocolMessage [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 11 00 00 [17:46:26]Write to MH i2c: E2 08 00 87 10 80 11 00 00 00 00 00 00 11 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 17 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 17 00 87 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [17:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:26]wFMCommunicate OK [17:46:26]CreateOFDProtocolMessage done [17:46:26]OFDSenderStorePacket 70357 [17:46:26]StoreOFDPacket docnum=70357 [17:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 83 7D 07 01 7A 4B 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 F1 E4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 12 01 00 35 04 06 00 F8 86 91 09 48 F4 D2 4F 7E B7 C3 46 73 14 [17:46:26]CheckFolder [17:46:26]dirname=/storage/ofd_packets [17:46:26]CheckFolder done [17:46:26]ProducePacketName [17:46:26]name=ofd_packets/00070357 [17:46:26]NVStorageSaveData ofd_packets/00070357 [17:46:26]File name is /storage/ofd_packets/00070357 [17:46:26]Write 301 bytes [17:46:26]NVStorageSaveData done [17:46:26]OFDSenderStorePacket done [17:46:26]KKMCreateOFDPacket done [17:46:26]NVStorageSaveData kkm_last_timestamp [17:46:26]File name is /storage/kkm_last_timestamp [17:46:26]Write 4 bytes [17:46:26]NVStorageSaveData done [17:46:26]ExternCall_PrintAddStr [17:46:26]wPrintStart [17:46:26]Write to MH i2c: 01 00 00 88 10 98 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: 01 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: 01 07 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 FF 0F AD [17:46:26]RasterBufferAndPrint [17:46:26]line Счет N : (1)2886126 [17:46:26]line ИНН: 02508201610067 [17:46:26]line Контрольно-Кассовый Чек [17:46:26]line ПРОДАЖА [17:46:26]line ТРК (МРК, ГНК) : 32 [17:46:26]line Товар: 2710124130 [17:46:26]line Аи-92-К-5 [17:46:26]line 5.980 * 66.90 [17:46:26]line = 400.06 [17:46:26]line НДС 12% НСП 1% [17:46:26]line > о реализуемом товаре [17:46:26]line ИТОГО: 400.06 [17:46:26]line НСП 1% : 3.54 [17:46:26]line НДС 12% : 42.48 [17:46:26]line Наличными: 0.00 [17:46:26]line Безнал.: 400.06 [17:46:26]line Место: АЗС № 85 "Партнер Нефть" [17:46:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:46:26]line СНО: Общий режим [17:46:26]line Чек 305 22.10.2024 17:46 [17:46:26]line Смена: 195 ФФД: 1.0 [17:46:26]line ЗНМ: 0300000167 [17:46:26]line РНМ: 0000000000156251 [17:46:26]line Версия ККМ: v1.0 [17:46:26]line Платежная система: Mbank [17:46:26]line ФМ: 0000000000963346 [17:46:26]line ФД: 70357 [17:46:26]line ФПД: 273256842610932 [17:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70357&fm=273256842610932&tin=02508201610067®Number=0000000000156251&sum=40006 [17:46:26]OFD Sender: Processing packet 70357 [packets to send 18, broken 17] [17:46:26]ProducePacketName [17:46:26]name=ofd_packets/00070357 [17:46:26]OFD Sender: To server: pG, [17:46:26]CommunicateWithHost lk.salyk.kg:30040 [17:46:26]ConnectInit lk.salyk.kg [17:46:26]written 0, free lines is 4095 [17:46:26]Connected sock=10 [17:46: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 34 36 0F 01 00 00 83 7D 07 01 7A 4B 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 F1 E4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 12 01 00 35 04 06 00 F8 86 91 09 48 F4 D2 4F 7E B7 C3 46 73 14 [17: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 34 36 4F 00 00 00 6F D0 47 00 7C 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 12 01 00 F4 03 04 00 91 8E 17 67 B6 04 01 00 00 D1 76 6E 40 67 87 A5 18 [17:46:27]CommunicateWithHost err = 0 [17:46:27]CheckOFDResponse [17:46:27]1017 (14) - 77093643461234 [17:46:27]1041 (16) - 0000000000963346 [17:46:27]1040 (4) - 70357 [17:46:27]1012 (4) - 22.10.2024 11:37 [17:46:27]1206 (1) - 0 [17:46:27]OFD Sender: Remove packet 70357 [17:46:27]ProducePacketName [17:46:27]name=ofd_packets/00070357 [17:46:27]NVStorageDeleteData [17:46:27]Write to MH i2c: 01 00 00 B1 10 C1 [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: 01 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: 01 07 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 1C 0D F1 [17:46:27]RasterBufferAndPrint [17:46:27]line [17:46:27]line [17:46:27]line [17:46:27]line [17:46:27]line [17:46:27]written 0, free lines is 3362 [17:46:27]MH_Cut [17:46:27]Write to MH i2c: D1 01 00 B8 10 01 9A [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: D1 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: D1 01 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: D1 01 00 B8 10 00 99 [17:46:27]Write to MH i2c: 01 00 00 B9 10 C9 [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]OFD Sender: No OFD packet to send [17:46:27]*** Cut start [17:46:27]*** Partial cut [17:46:27]*** CUTSNS_PIN = 1 [17:46:27]*** CUTSNS_PIN = 0 [17:46:28]*** Brake cut motor [17:46:28]Read from MH i2c: 01 [17:46:28]MH_I2C_Read... [17:46:28]*** Stop cut motor [17:46:28]*** Cut end [17:46:28]Read from MH i2c: 01 07 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 B9 10 00 00 00 00 00 FF 0F DE [17:46:28]process_action close_receipt done [17:46:28]requested_data is exist [17:46:28]produce_requested_data [17:46:28]requested_item fm.sn is exist - process it [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 11 00 00 [17:46:28]Write to MH i2c: E2 08 00 BA 10 80 11 00 00 00 00 00 00 44 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 17 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 17 00 BA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [17:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:28]wFMCommunicate OK [17:46:28]requested_item fd.num is exist - process it [17:46:28]SAM_PROTO_GetFieldsCounters [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 13 00 00 [17:46:28]Write to MH i2c: E2 08 00 BB 10 80 13 00 00 00 00 00 00 47 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 62 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 62 00 BB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 12 01 00 0E 04 04 00 C3 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 A3 [17:46: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 12 01 00 0E 04 04 00 C3 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 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_GetFieldsCounters done [17:46:28]requested_item shift.num is exist - process it [17:46:28]requested_item shift.opened is exist - process it [17:46:28]req_shift_opened [17:46:28]FM_GetShiftState [17:46:28]SAM_PROTO_GetShiftState [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 13 01 00 [17:46:28]Write to MH i2c: E2 08 00 BC 10 80 13 01 00 00 00 00 00 49 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0E 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0E 00 BC 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 37 [17:46:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_GetShiftState done [17:46:28]FM_GetShiftState done [17:46:28]req_shift_opened done [17:46:28]requested_item shift.open_date is exist - process it [17:46:28]req_shift_open_date [17:46:28]req_shift_open_date done [17:46:28]produce_requested_data done [17:46:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70357,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:46:28]process_action_free close_receipt [17:46:28]json_value_free [17:46:28]json_value_free done [17:46:28]process_json_proto returns [17:46:28]Send response to host [17:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70357,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:46:28]free response buf [17:46:28]execute_script done [17:46:28]execute_script returns [17:46:28]free content buf [17:46:28]Sock 7.Close socket [17:46:28]Sock 7.Thread stoped [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:11]accept exits with 9 [17:48:11]New connection [17:48:11]New thread 3066555748 created [17:48:11]Thread 3066699108 joined [17:48:11]Waiting for new connection... [17:48:11] Sock 9.Parse request [17:48:11]Sock 9.Check first char [17:48:11]Sock 9.First char is OK [17:48:11]request: POST /json_proto HTTP/1.0 [17:48:11]Method: POST [17:48:11]URL: /json_proto [17:48:11]Method is POST - this is cgi request [17:48:11]url: /json_proto [17:48:11]query_string will be loaded in cgi processing [17:48:11]execute_cgi json_proto POST (null) [17:48:11]execute_cgi path=json_proto method=POST [17:48:11]POST find Content-Length [17:48:11]Host: 172.17.50.3:8080 [17:48:11]Content-Length: 689 [17:48:11]Content-Type: application/json [17:48:11] [17:48:11]POST finish read [17:48:11]Found Content-Length = 689 [17:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [17:48:11]execute_script... [17:48: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)2886127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [17:48:11]POST & json_proto [17:48:11]process_json_proto [17:48:11]json parsed OK: [17:48:11]protocol is kg_v1.0 [17:48:11]action value=close_receipt [17:48:11]process_action close_receipt [17:48:11]cmd_close_receipt [17:48:11]MH_GetDate [17:48:11]Write to MH i2c: F0 00 00 BD 10 BC [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 BD 10 00 5B E5 17 67 6B 98 1E 66 0A [17:48:11]GetLastDocTimeStamp 1729619185 [17:48:11]current date 1729619291 [17:48:11]FM_GetShiftState [17:48:11]SAM_PROTO_GetShiftState [17:48:11]wFMCommunicate request_size=4 [17:48:11]MH_SAM_APDU [17:48:11]CAPDU: 80 13 01 00 [17:48:11]Write to MH i2c: E2 08 00 BE 10 80 13 01 00 00 00 00 00 4B [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:11]Read from MH i2c: E2 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 BE 10 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 39 [17:48:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:48:11]wFMCommunicate OK [17:48:11]SAM_PROTO_GetShiftState done [17:48:11]FM_GetShiftState done [17:48:11]opened in 1729555832 [17:48:11]opened+sec_in_day 1729642232 [17:48:11]quantity*price = 150076 [17:48:11]sum+1 = 150078 [17:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 306 22.10.2024 17:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70358 ФПД: 271592470759996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174811&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70358&fm=271592470759996&tin=02508201610067®Number=0000000000156251&sum=150000 [17:48:12]StoreToDocumentArchive [17:48:12]shift 195 fd 70358 [17:48:12]save to /storage/0195/doc_00070358 [17:48:12]save last doc name /storage/0195/doc_00070358 to /storage/kkm_last_doc_name [17:48:12]save OK [17:48:12]Clear old archive folders... [17:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:48:12]tlvbuf is 00AE8E60 [17:48:12]SAM_PROTO_ClearQueue [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 09 00 00 [17:48:12]Write to MH i2c: E2 08 00 CB 10 80 09 00 00 00 00 00 00 4D [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]SAM_PROTO_ClearQueue done [17:48:12]KKMCreateOFDPacket [17:48:12]OFDProtocolAddRootSTLVToBuf [17:48:12]FM_MakeSignedData [17:48:12]FM_MakeSignedData [17:48:12]SAM_PROTO_SignData [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 01 02 [17:48:12]Write to MH i2c: E2 08 00 CC 10 80 0D 01 02 00 00 00 00 55 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=255 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 32 01 00 00 F4 03 04 00 5B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 12 01 [17:48:12]Write to MH i2c: E2 02 01 CD 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 32 01 00 00 F4 03 04 00 5B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 12 01 00 00 96 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]OFD Sender: No OFD packet to send [17:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 CD 10 00 90 00 51 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=16 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 03 0C BE 4A 3C [17:48:12]Write to MH i2c: E2 13 00 CE 10 80 0D 02 02 0B 00 00 35 04 06 00 F7 03 0C BE 4A 3C 00 00 F7 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 CE 10 00 90 00 52 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 03 02 [17:48:12]Write to MH i2c: E2 08 00 CF 10 80 0D 03 02 00 00 00 00 5A [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 0B 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 0B 00 CF 10 00 CA 32 0A 6C F7 99 99 A7 90 00 9D [17:48:12]RAPDU: CA 32 0A 6C F7 99 99 A7 90 00 [17:48:12]wFMCommunicate OK [17:48:12]SAM_PROTO_SignData done [17:48:12]FM_MakeSignedData done [17:48:12]CreateOFDProtocolMessage [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 11 00 00 [17:48:12]Write to MH i2c: E2 08 00 D0 10 80 11 00 00 00 00 00 00 5A [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 17 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 17 00 D0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [17:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:12]wFMCommunicate OK [17:48:12]CreateOFDProtocolMessage done [17:48:12]OFDSenderStorePacket 70358 [17:48:12]StoreOFDPacket docnum=70358 [17:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB 90 0D 01 E5 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 32 01 00 00 F4 03 04 00 5B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 12 01 00 35 04 06 00 F7 03 0C BE 4A 3C CA 32 0A 6C F7 99 99 A7 [17:48:12]CheckFolder [17:48:12]dirname=/storage/ofd_packets [17:48:12]CheckFolder done [17:48:12]ProducePacketName [17:48:12]name=ofd_packets/00070358 [17:48:12]NVStorageSaveData ofd_packets/00070358 [17:48:12]File name is /storage/ofd_packets/00070358 [17:48:12]Write 307 bytes [17:48:12]NVStorageSaveData done [17:48:12]OFDSenderStorePacket done [17:48:12]KKMCreateOFDPacket done [17:48:12]NVStorageSaveData kkm_last_timestamp [17:48:12]File name is /storage/kkm_last_timestamp [17:48:12]Write 4 bytes [17:48:12]NVStorageSaveData done [17:48:12]ExternCall_PrintAddStr [17:48:12]wPrintStart [17:48:12]Write to MH i2c: 01 00 00 D1 10 E1 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: 01 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: 01 07 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: 01 07 00 D1 10 00 00 00 00 00 FF 0F F6 [17:48:12]RasterBufferAndPrint [17:48:12]line Счет N : (1)2886127 [17:48:12]line ИНН: 02508201610067 [17:48:12]line Контрольно-Кассовый Чек [17:48:12]line ПРОДАЖА [17:48:12]line ТРК (МРК, ГНК) : 41 [17:48:12]line Товар: 2710194240 [17:48:12]line D-ENERGY Дт-К-2 [17:48:12]line 19.440 * 77.20 [17:48:12]line = 1500.77 [17:48:12]line НДС 12% НСП 1% [17:48:12]line > о реализуемом товаре [17:48:12]line ОКРУГЛЕНИЕ: -0.77 [17:48:12]line ИТОГО: 1500.00 [17:48:12]line Внесено: 1500.00 [17:48:12]line СДАЧА: 0.00 [17:48:12]line НСП 1% : 13.28 [17:48:12]line НДС 12% : 159.37 [17:48:12]line Наличными: 1500.00 [17:48:12]line Безнал.: 0.00 [17:48:12]line Место: АЗС № 85 "Партнер Нефть" [17:48:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:48:12]line СНО: Общий режим [17:48:12]line Чек 306 22.10.2024 17:48 [17:48:12]line Смена: 195 ФФД: 1.0 [17:48:12]line ЗНМ: 0300000167 [17:48:12]line РНМ: 0000000000156251 [17:48:12]line Версия ККМ: v1.0 [17:48:12]line ФМ: 0000000000963346 [17:48:12]line ФД: 70358 [17:48:12]line ФПД: 271592470759996 [17:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174811&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70358&fm=271592470759996&tin=02508201610067®Number=0000000000156251&sum=150000 [17:48:13]written 0, free lines is 4095 [17:48:13]OFD Sender: Processing packet 70358 [packets to send 18, broken 17] [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00070358 [17:48:13]OFD Sender: To server: pG, [17:48:13]CommunicateWithHost lk.salyk.kg:30040 [17:48:13]ConnectInit lk.salyk.kg [17:48:13]Connected sock=10 [17:48: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 34 36 15 01 00 00 BB 90 0D 01 E5 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 32 01 00 00 F4 03 04 00 5B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 12 01 00 35 04 06 00 F7 03 0C BE 4A 3C CA 32 0A 6C F7 99 99 A7 [17: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 34 36 4F 00 00 00 4F 36 47 00 A0 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 12 01 00 F4 03 04 00 FB 8E 17 67 B6 04 01 00 00 1C 56 3D D4 63 DA 91 0F [17:48:13]CommunicateWithHost err = 0 [17:48:13]CheckOFDResponse [17:48:13]1017 (14) - 77093643461234 [17:48:13]1041 (16) - 0000000000963346 [17:48:13]1040 (4) - 70358 [17:48:13]1012 (4) - 22.10.2024 11:39 [17:48:13]1206 (1) - 0 [17:48:13]OFD Sender: Remove packet 70358 [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00070358 [17:48:13]NVStorageDeleteData [17:48:13]Write to MH i2c: 01 00 00 FC 10 0C [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 F4 0C 13 [17:48:13]RasterBufferAndPrint [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]written 0, free lines is 3322 [17:48:13]MH_Cut [17:48:13]Write to MH i2c: D1 01 00 03 11 01 E6 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 01 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 01 00 03 11 00 E5 [17:48:13]Write to MH i2c: 01 00 00 04 11 15 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:14]OFD Sender: No OFD packet to send [17:48:14]*** Cut start [17:48:14]*** Partial cut [17:48:14]*** CUTSNS_PIN = 1 [17:48:14]*** CUTSNS_PIN = 0 [17:48:14]*** Brake cut motor [17:48:14]Read from MH i2c: 01 [17:48:14]*** Stop cut motor [17:48:14]*** Cut end [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 04 11 00 00 00 00 00 FF 0F 2A [17:48:14]process_action close_receipt done [17:48:14]requested_data is exist [17:48:14]produce_requested_data [17:48:14]requested_item fm.sn is exist - process it [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 11 00 00 [17:48:14]Write to MH i2c: E2 08 00 05 11 80 11 00 00 00 00 00 00 90 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 17 00 05 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [17:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:14]wFMCommunicate OK [17:48:14]requested_item fd.num is exist - process it [17:48:14]SAM_PROTO_GetFieldsCounters [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 13 00 00 [17:48:14]Write to MH i2c: E2 08 00 06 11 80 13 00 00 00 00 00 00 93 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 06 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 12 01 00 0E 04 04 00 C3 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 F3 [17:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 12 01 00 0E 04 04 00 C3 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 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetFieldsCounters done [17:48:15]requested_item shift.num is exist - process it [17:48:15]requested_item shift.opened is exist - process it [17:48:15]req_shift_opened [17:48:15]FM_GetShiftState [17:48:15]SAM_PROTO_GetShiftState [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 01 00 [17:48:15]Write to MH i2c: E2 08 00 07 11 80 13 01 00 00 00 00 00 95 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 07 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 83 [17:48:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetShiftState done [17:48:15]FM_GetShiftState done [17:48:15]req_shift_opened done [17:48:15]requested_item shift.open_date is exist - process it [17:48:15]req_shift_open_date [17:48:15]req_shift_open_date done [17:48:15]produce_requested_data done [17:48:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70358,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:48:15]process_action_free close_receipt [17:48:15]json_value_free [17:48:15]json_value_free done [17:48:15]process_json_proto returns [17:48:15]Send response to host [17:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70358,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:48:15]free response buf [17:48:15]execute_script done [17:48:15]execute_script returns [17:48:15]free content buf [17:48:15]Sock 9.Close socket [17:48:15]Sock 9.Thread stoped [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:26]accept exits with 7 [17:48:26]New connection [17:48:26]New thread 3066699108 created [17:48:26]Thread 3066555748 joined [17:48:26]Waiting for new connection... [17:48:26] Sock 7.Parse request [17:48:26]Sock 7.Check first char [17:48:26]Sock 7.First char is OK [17:48:26]request: POST /json_proto HTTP/1.0 [17:48:26]Method: POST [17:48:26]URL: /json_proto [17:48:26]Method is POST - this is cgi request [17:48:26]url: /json_proto [17:48:26]query_string will be loaded in cgi processing [17:48:26]execute_cgi json_proto POST (null) [17:48:26]execute_cgi path=json_proto method=POST [17:48:26]POST find Content-Length [17:48:26]Host: 172.17.50.3:8080 [17:48:26]Content-Length: 767 [17:48:26]Content-Type: application/json [17:48:26] [17:48:26]POST finish read [17:48:26]Found Content-Length = 767 [17:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [17:48:26]execute_script... [17:48: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)2886128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [17:48:26]POST & json_proto [17:48:26]process_json_proto [17:48:26]json parsed OK: [17:48:26]protocol is kg_v1.0 [17:48:26]action value=close_receipt [17:48:26]process_action close_receipt [17:48:26]cmd_close_receipt [17:48:26]MH_GetDate [17:48:26]Write to MH i2c: F0 00 00 08 11 08 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 09 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 09 00 08 11 00 6B E5 17 67 6B 98 1E 66 66 [17:48:26]GetLastDocTimeStamp 1729619291 [17:48:26]current date 1729619307 [17:48:26]FM_GetShiftState [17:48:26]SAM_PROTO_GetShiftState [17:48:26]wFMCommunicate request_size=4 [17:48:26]MH_SAM_APDU [17:48:26]CAPDU: 80 13 01 00 [17:48:26]Write to MH i2c: E2 08 00 09 11 80 13 01 00 00 00 00 00 97 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:26]Read from MH i2c: E2 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 09 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 85 [17:48:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:48:26]wFMCommunicate OK [17:48:26]SAM_PROTO_GetShiftState done [17:48:26]FM_GetShiftState done [17:48:26]opened in 1729555832 [17:48:26]opened+sec_in_day 1729642232 [17:48:26]quantity*price = 50041 [17:48:26]sum+1 = 50042 [17:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 307 22.10.2024 17:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70359 ФПД: 47822437366619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174827&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70359&fm=47822437366619&tin=02508201610067®Number=0000000000156251&sum=50041 [17:48:28]StoreToDocumentArchive [17:48:28]shift 195 fd 70359 [17:48:28]save to /storage/0195/doc_00070359 [17:48:28]save last doc name /storage/0195/doc_00070359 to /storage/kkm_last_doc_name [17:48:28]save OK [17:48:28]Clear old archive folders... [17:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:28]tlvbuf is 00B37B80 [17:48:28]SAM_PROTO_ClearQueue [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 09 00 00 [17:48:28]Write to MH i2c: E2 08 00 16 11 80 09 00 00 00 00 00 00 99 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]SAM_PROTO_ClearQueue done [17:48:28]KKMCreateOFDPacket [17:48:28]OFDProtocolAddRootSTLVToBuf [17:48:28]FM_MakeSignedData [17:48:28]FM_MakeSignedData [17:48:28]SAM_PROTO_SignData [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 01 02 [17:48:28]Write to MH i2c: E2 08 00 17 11 80 0D 01 02 00 00 00 00 A1 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=255 [17:48:28]MH_SAM_APDU [17:48: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 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 33 01 00 00 F4 03 04 00 6B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 12 01 00 35 04 06 00 2B [17:48:28]Write to MH i2c: E2 02 01 18 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 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 33 01 00 00 F4 03 04 00 6B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 12 01 00 35 04 06 00 2B 00 00 56 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=10 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 02 02 05 7E 87 64 3B 5B [17:48:28]Write to MH i2c: E2 0D 00 19 11 80 0D 02 02 05 00 7E 87 64 3B 5B 00 00 AD [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 19 11 00 90 00 9E [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 03 02 [17:48:28]Write to MH i2c: E2 08 00 1A 11 80 0D 03 02 00 00 00 00 A6 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0B 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0B 00 1A 11 00 8B 49 B7 11 85 A4 05 C9 90 00 3A [17:48:28]RAPDU: 8B 49 B7 11 85 A4 05 C9 90 00 [17:48:28]wFMCommunicate OK [17:48:28]SAM_PROTO_SignData done [17:48:28]FM_MakeSignedData done [17:48:28]CreateOFDProtocolMessage [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 11 00 00 [17:48:28]Write to MH i2c: E2 08 00 1B 11 80 11 00 00 00 00 00 00 A6 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 17 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 17 00 1B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [17:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:28]wFMCommunicate OK [17:48:28]CreateOFDProtocolMessage done [17:48:28]OFDSenderStorePacket 70359 [17:48:28]StoreOFDPacket docnum=70359 [17:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 BB 07 01 87 B2 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 33 01 00 00 F4 03 04 00 6B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 12 01 00 35 04 06 00 2B 7E 87 64 3B 5B 8B 49 B7 11 85 A4 05 C9 [17:48:28]CheckFolder [17:48:28]dirname=/storage/ofd_packets [17:48:28]CheckFolder done [17:48:28]ProducePacketName [17:48:28]name=ofd_packets/00070359 [17:48:28]NVStorageSaveData ofd_packets/00070359 [17:48:28]File name is /storage/ofd_packets/00070359 [17:48:28]Write 301 bytes [17:48:28]NVStorageSaveData done [17:48:28]OFDSenderStorePacket done [17:48:28]KKMCreateOFDPacket done [17:48:28]NVStorageSaveData kkm_last_timestamp [17:48:28]File name is /storage/kkm_last_timestamp [17:48:28]Write 4 bytes [17:48:28]NVStorageSaveData done [17:48:28]ExternCall_PrintAddStr [17:48:28]wPrintStart [17:48:28]Write to MH i2c: 01 00 00 1C 11 2D [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 1C 11 00 00 00 00 00 FF 0F 42 [17:48:28]RasterBufferAndPrint [17:48:28]line Счет N : (1)2886128 [17:48:28]line ИНН: 02508201610067 [17:48:28]line Контрольно-Кассовый Чек [17:48:28]line ПРОДАЖА [17:48:28]line ТРК (МРК, ГНК) : 12 [17:48:28]line Товар: 2710124130 [17:48:28]line Аи-92-К-5 [17:48:28]line 7.480 * 66.90 [17:48:28]line = 500.41 [17:48:28]line НДС 12% НСП 1% [17:48:28]line > о реализуемом товаре [17:48:28]line ИТОГО: 500.41 [17:48:28]line НСП 1% : 4.43 [17:48:28]line НДС 12% : 53.14 [17:48:28]line Наличными: 0.00 [17:48:28]line Безнал.: 500.41 [17:48:28]line Место: АЗС № 85 "Партнер Нефть" [17:48:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:48:28]line СНО: Общий режим [17:48:28]line Чек 307 22.10.2024 17:48 [17:48:28]line Смена: 195 ФФД: 1.0 [17:48:28]line ЗНМ: 0300000167 [17:48:28]line РНМ: 0000000000156251 [17:48:28]line Версия ККМ: v1.0 [17:48:28]line Платежная система: Mbank [17:48:28]line ФМ: 0000000000963346 [17:48:28]line ФД: 70359 [17:48:28]line ФПД: 47822437366619 [17:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174827&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70359&fm=47822437366619&tin=02508201610067®Number=0000000000156251&sum=50041 [17:48:28]OFD Sender: Processing packet 70359 [packets to send 18, broken 17] [17:48:28]ProducePacketName [17:48:28]name=ofd_packets/00070359 [17:48:28]OFD Sender: To server: pG, [17:48:28]CommunicateWithHost lk.salyk.kg:30040 [17:48:28]ConnectInit lk.salyk.kg [17:48:28]written 0, free lines is 4095 [17:48:29]Connected sock=10 [17:48: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 34 36 0F 01 00 00 91 BB 07 01 87 B2 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 33 01 00 00 F4 03 04 00 6B E5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 12 01 00 35 04 06 00 2B 7E 87 64 3B 5B 8B 49 B7 11 85 A4 05 C9 [17:48: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 34 36 4F 00 00 00 22 10 47 00 6C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 12 01 00 F4 03 04 00 0B 8F 17 67 B6 04 01 00 00 45 76 AB EF B3 CD 90 FD [17:48:29]CommunicateWithHost err = 0 [17:48:29]CheckOFDResponse [17:48:29]1017 (14) - 77093643461234 [17:48:29]1041 (16) - 0000000000963346 [17:48:29]1040 (4) - 70359 [17:48:29]1012 (4) - 22.10.2024 11:39 [17:48:29]1206 (1) - 0 [17:48:29]OFD Sender: Remove packet 70359 [17:48:29]ProducePacketName [17:48:29]name=ofd_packets/00070359 [17:48:29]NVStorageDeleteData [17:48:29]Write to MH i2c: 01 00 00 45 11 56 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 1B 0D 85 [17:48:29]RasterBufferAndPrint [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]written 0, free lines is 3361 [17:48:29]MH_Cut [17:48:29]Write to MH i2c: D1 01 00 4C 11 01 2F [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 01 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 01 00 4C 11 00 2E [17:48:29]Write to MH i2c: 01 00 00 4D 11 5E [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]OFD Sender: No OFD packet to send [17:48:30]*** Cut start [17:48:30]*** Partial cut [17:48:30]*** CUTSNS_PIN = 1 [17:48:30]*** CUTSNS_PIN = 0 [17:48:30]*** Brake cut motor [17:48:30]Read from MH i2c: 01 [17:48:30]MH_I2C_Read... [17:48:30]*** Stop cut motor [17:48:30]*** Cut end [17:48:30]Read from MH i2c: 01 07 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 4D 11 00 00 00 00 00 FF 0F 73 [17:48:30]process_action close_receipt done [17:48:30]requested_data is exist [17:48:30]produce_requested_data [17:48:30]requested_item fm.sn is exist - process it [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 11 00 00 [17:48:30]Write to MH i2c: E2 08 00 4E 11 80 11 00 00 00 00 00 00 D9 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 4E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [17:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:30]wFMCommunicate OK [17:48:30]requested_item fd.num is exist - process it [17:48:30]SAM_PROTO_GetFieldsCounters [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 00 00 [17:48:30]Write to MH i2c: E2 08 00 4F 11 80 13 00 00 00 00 00 00 DC [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 62 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 62 00 4F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 12 01 00 0E 04 04 00 C3 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 40 [17:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 12 01 00 0E 04 04 00 C3 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 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetFieldsCounters done [17:48:30]requested_item shift.num is exist - process it [17:48:30]requested_item shift.opened is exist - process it [17:48:30]req_shift_opened [17:48:30]FM_GetShiftState [17:48:30]SAM_PROTO_GetShiftState [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 01 00 [17:48:30]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CC [17:48:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetShiftState done [17:48:30]FM_GetShiftState done [17:48:30]req_shift_opened done [17:48:30]requested_item shift.open_date is exist - process it [17:48:30]req_shift_open_date [17:48:30]req_shift_open_date done [17:48:30]produce_requested_data done [17:48:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70359,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:48:30]process_action_free close_receipt [17:48:30]json_value_free [17:48:30]json_value_free done [17:48:30]process_json_proto returns [17:48:30]Send response to host [17:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70359,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:48:30]free response buf [17:48:30]execute_script done [17:48:30]execute_script returns [17:48:30]free content buf [17:48:30]Sock 7.Close socket [17:48:30]Sock 7.Thread stoped [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:30]accept exits with 9 [17:52:30]New connection [17:52:30]New thread 3066555748 created [17:52:30]Thread 3066699108 joined [17:52:30]Waiting for new connection... [17:52:30] Sock 9.Parse request [17:52:30]Sock 9.Check first char [17:52:30]Sock 9.First char is OK [17:52:30]request: POST /json_proto HTTP/1.0 [17:52:30]Method: POST [17:52:30]URL: /json_proto [17:52:30]Method is POST - this is cgi request [17:52:30]url: /json_proto [17:52:30]query_string will be loaded in cgi processing [17:52:30]execute_cgi json_proto POST (null) [17:52:30]execute_cgi path=json_proto method=POST [17:52:30]POST find Content-Length [17:52:30]Host: 172.17.50.3:8080 [17:52:30]Content-Length: 776 [17:52:30]Content-Type: application/json [17:52:30] [17:52:30]POST finish read [17:52:30]Found Content-Length = 776 [17:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:30]execute_script... [17:52: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)2886129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:30]POST & json_proto [17:52:30]process_json_proto [17:52:30]json parsed OK: [17:52:30]protocol is kg_v1.0 [17:52:30]action value=close_receipt [17:52:30]process_action close_receipt [17:52:30]cmd_close_receipt [17:52:30]MH_GetDate [17:52:30]Write to MH i2c: F0 00 00 51 11 51 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: F0 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: F0 09 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: F0 09 00 51 11 00 5E E6 17 67 6B 98 1E 66 A3 [17:52:30]GetLastDocTimeStamp 1729619307 [17:52:30]current date 1729619550 [17:52:30]FM_GetShiftState [17:52:30]SAM_PROTO_GetShiftState [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 13 01 00 [17:52:30]Write to MH i2c: E2 08 00 52 11 80 13 01 00 00 00 00 00 E0 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0E 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0E 00 52 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CE [17:52:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:52:30]wFMCommunicate OK [17:52:30]SAM_PROTO_GetShiftState done [17:52:30]FM_GetShiftState done [17:52:30]opened in 1729555832 [17:52:30]opened+sec_in_day 1729642232 [17:52:30]quantity*price = 150076 [17:52:30]sum+1 = 150078 [17:52:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 308 22.10.2024 17:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70360 ФПД: 218300731968098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175230&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70360&fm=218300731968098&tin=02508201610067®Number=0000000000156251&sum=150077 [17:52:31]StoreToDocumentArchive [17:52:31]shift 195 fd 70360 [17:52:31]save to /storage/0195/doc_00070360 [17:52:31]save last doc name /storage/0195/doc_00070360 to /storage/kkm_last_doc_name [17:52:31]save OK [17:52:31]Clear old archive folders... [17:52:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:52:31]tlvbuf is 00AA49E0 [17:52:31]SAM_PROTO_ClearQueue [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 09 00 00 [17:52:31]Write to MH i2c: E2 08 00 5F 11 80 09 00 00 00 00 00 00 E2 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]SAM_PROTO_ClearQueue done [17:52:31]KKMCreateOFDPacket [17:52:31]OFDProtocolAddRootSTLVToBuf [17:52:31]FM_MakeSignedData [17:52:31]FM_MakeSignedData [17:52:31]SAM_PROTO_SignData [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 01 02 [17:52:31]Write to MH i2c: E2 08 00 60 11 80 0D 01 02 00 00 00 00 EA [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]wFMCommunicate request_size=255 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 5E E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 12 01 [17:52:31]Write to MH i2c: E2 02 01 61 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 5E E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 12 01 00 00 CF [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]wFMCommunicate request_size=16 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C6 8B 19 95 4A 62 [17:52:31]Write to MH i2c: E2 13 00 62 11 80 0D 02 02 0B 00 00 35 04 06 00 C6 8B 19 95 4A 62 00 00 ED [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [17:52:31]RAPDU: 90 00 [17:52:31]wFMCommunicate OK [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 0D 03 02 [17:52:31]Write to MH i2c: E2 08 00 63 11 80 0D 03 02 00 00 00 00 EF [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0B 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0B 00 63 11 00 49 DA E3 66 FA BD 4E 75 90 00 D6 [17:52:31]RAPDU: 49 DA E3 66 FA BD 4E 75 90 00 [17:52:31]wFMCommunicate OK [17:52:31]SAM_PROTO_SignData done [17:52:31]FM_MakeSignedData done [17:52:31]CreateOFDProtocolMessage [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 11 00 00 [17:52:31]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [17:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:52:31]wFMCommunicate OK [17:52:31]CreateOFDProtocolMessage done [17:52:31]OFDSenderStorePacket 70360 [17:52:31]StoreOFDPacket docnum=70360 [17:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 40 A8 0D 01 37 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 5E E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 12 01 00 35 04 06 00 C6 8B 19 95 4A 62 49 DA E3 66 FA BD 4E 75 [17:52:31]CheckFolder [17:52:31]dirname=/storage/ofd_packets [17:52:31]CheckFolder done [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00070360 [17:52:31]NVStorageSaveData ofd_packets/00070360 [17:52:31]File name is /storage/ofd_packets/00070360 [17:52:31]Write 307 bytes [17:52:31]NVStorageSaveData done [17:52:31]OFDSenderStorePacket done [17:52:31]KKMCreateOFDPacket done [17:52:31]NVStorageSaveData kkm_last_timestamp [17:52:31]File name is /storage/kkm_last_timestamp [17:52:31]Write 4 bytes [17:52:31]NVStorageSaveData done [17:52:31]ExternCall_PrintAddStr [17:52:31]wPrintStart [17:52:31]Write to MH i2c: 01 00 00 65 11 76 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 FF 0F 8B [17:52:31]RasterBufferAndPrint [17:52:31]line Счет N : (1)2886129 [17:52:31]line ИНН: 02508201610067 [17:52:31]line Контрольно-Кассовый Чек [17:52:31]line ПРОДАЖА [17:52:31]line ТРК (МРК, ГНК) : 21 [17:52:31]line Товар: 2710194240 [17:52:31]line D-ENERGY Дт-К-2 [17:52:31]line 19.440 * 77.20 [17:52:31]line = 1500.77 [17:52:31]line НДС 12% НСП 1% [17:52:31]line > о реализуемом товаре [17:52:31]line ИТОГО: 1500.77 [17:52:31]line НСП 1% : 13.28 [17:52:31]line НДС 12% : 159.37 [17:52:31]line Наличными: 0.00 [17:52:31]line Безнал.: 1500.77 [17:52:31]line Место: АЗС № 85 "Партнер Нефть" [17:52:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:52:31]line СНО: Общий режим [17:52:31]line Чек 308 22.10.2024 17:52 [17:52:31]line Смена: 195 ФФД: 1.0 [17:52:31]line ЗНМ: 0300000167 [17:52:31]line РНМ: 0000000000156251 [17:52:31]line Версия ККМ: v1.0 [17:52:31]line Платежная система: Mbank [17:52:31]line ФМ: 0000000000963346 [17:52:31]line ФД: 70360 [17:52:31]line ФПД: 218300731968098 [17:52:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175230&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70360&fm=218300731968098&tin=02508201610067®Number=0000000000156251&sum=150077 [17:52:32]OFD Sender: Processing packet 70360 [packets to send 18, broken 17] [17:52:32]ProducePacketName [17:52:32]name=ofd_packets/00070360 [17:52:32]OFD Sender: To server: pG, [17:52:32]CommunicateWithHost lk.salyk.kg:30040 [17:52:32]ConnectInit lk.salyk.kg [17:52:32]written 0, free lines is 4095 [17:52:32]Connected sock=10 [17:52: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 34 36 15 01 00 00 40 A8 0D 01 37 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 5E E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 12 01 00 35 04 06 00 C6 8B 19 95 4A 62 49 DA E3 66 FA BD 4E 75 [17:52: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 34 36 4F 00 00 00 41 02 47 00 93 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 12 01 00 F4 03 04 00 FE 8F 17 67 B6 04 01 00 00 97 7B 3F F2 AB B7 E6 F6 [17:52:32]CommunicateWithHost err = 0 [17:52:32]CheckOFDResponse [17:52:32]1017 (14) - 77093643461234 [17:52:32]1041 (16) - 0000000000963346 [17:52:32]1040 (4) - 70360 [17:52:32]1012 (4) - 22.10.2024 11:43 [17:52:32]1206 (1) - 0 [17:52:32]OFD Sender: Remove packet 70360 [17:52:32]ProducePacketName [17:52:32]name=ofd_packets/00070360 [17:52:32]NVStorageDeleteData [17:52:32]Write to MH i2c: 01 00 00 8E 11 9F [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 28 0D DB [17:52:32]RasterBufferAndPrint [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]line [17:52:32]written 0, free lines is 3375 [17:52:32]MH_Cut [17:52:32]Write to MH i2c: D1 01 00 95 11 01 78 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 01 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: D1 01 00 95 11 00 77 [17:52:32]Write to MH i2c: 01 00 00 96 11 A7 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]OFD Sender: No OFD packet to send [17:52:33]*** Cut start [17:52:33]*** Partial cut [17:52:33]*** CUTSNS_PIN = 1 [17:52:33]*** CUTSNS_PIN = 0 [17:52:33]*** Brake cut motor [17:52:33]Read from MH i2c: 01 [17:52:33]MH_I2C_Read... [17:52:33]*** Stop cut motor [17:52:33]*** Cut end [17:52:33]Read from MH i2c: 01 07 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [17:52:33]process_action close_receipt done [17:52:33]requested_data is exist [17:52:33]produce_requested_data [17:52:33]requested_item fm.sn is exist - process it [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 11 00 00 [17:52:33]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 17 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [17:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:52:33]wFMCommunicate OK [17:52:33]requested_item fd.num is exist - process it [17:52:33]SAM_PROTO_GetFieldsCounters [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 13 00 00 [17:52:33]Write to MH i2c: E2 08 00 98 11 80 13 00 00 00 00 00 00 25 [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:34]Read from MH i2c: E2 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 62 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 62 00 98 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 12 01 00 0E 04 04 00 C3 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 8D [17:52: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 12 01 00 0E 04 04 00 C3 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 [17:52:34]wFMCommunicate OK [17:52:34]SAM_PROTO_GetFieldsCounters done [17:52:34]requested_item shift.num is exist - process it [17:52:34]requested_item shift.opened is exist - process it [17:52:34]req_shift_opened [17:52:34]FM_GetShiftState [17:52:34]SAM_PROTO_GetShiftState [17:52:34]wFMCommunicate request_size=4 [17:52:34]MH_SAM_APDU [17:52:34]CAPDU: 80 13 01 00 [17:52:34]Write to MH i2c: E2 08 00 99 11 80 13 01 00 00 00 00 00 27 [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:34]Read from MH i2c: E2 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 0E 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 0E 00 99 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 15 [17:52:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:52:34]wFMCommunicate OK [17:52:34]SAM_PROTO_GetShiftState done [17:52:34]FM_GetShiftState done [17:52:34]req_shift_opened done [17:52:34]requested_item shift.open_date is exist - process it [17:52:34]req_shift_open_date [17:52:34]req_shift_open_date done [17:52:34]produce_requested_data done [17:52:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70360,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:52:34]process_action_free close_receipt [17:52:34]json_value_free [17:52:34]json_value_free done [17:52:34]process_json_proto returns [17:52:34]Send response to host [17:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70360,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:52:34]free response buf [17:52:34]execute_script done [17:52:34]execute_script returns [17:52:34]free content buf [17:52:34]Sock 9.Close socket [17:52:34]Sock 9.Thread stoped [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:31]accept exits with 7 [17:53:31]New connection [17:53:31]New thread 3066699108 created [17:53:31]Thread 3066555748 joined [17:53:31]Waiting for new connection... [17:53:31] Sock 7.Parse request [17:53:31]Sock 7.Check first char [17:53:31]Sock 7.First char is OK [17:53:31]request: POST /json_proto HTTP/1.0 [17:53:31]Method: POST [17:53:31]URL: /json_proto [17:53:31]Method is POST - this is cgi request [17:53:31]url: /json_proto [17:53:31]query_string will be loaded in cgi processing [17:53:31]execute_cgi json_proto POST (null) [17:53:31]execute_cgi path=json_proto method=POST [17:53:31]POST find Content-Length [17:53:31]Host: 172.17.50.3:8080 [17:53:31]Content-Length: 679 [17:53:31]Content-Type: application/json [17:53:31] [17:53:31]POST finish read [17:53:31]Found Content-Length = 679 [17:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:53:31]execute_script... [17:53: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)2886131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [17:53:31]POST & json_proto [17:53:31]process_json_proto [17:53:31]json parsed OK: [17:53:31]protocol is kg_v1.0 [17:53:31]action value=close_receipt [17:53:31]process_action close_receipt [17:53:31]cmd_close_receipt [17:53:31]MH_GetDate [17:53:31]Write to MH i2c: F0 00 00 9A 11 9A [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 09 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 09 00 9A 11 00 9C E6 17 67 6B 98 1E 66 2A [17:53:31]GetLastDocTimeStamp 1729619550 [17:53:31]current date 1729619612 [17:53:31]FM_GetShiftState [17:53:31]SAM_PROTO_GetShiftState [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 13 01 00 [17:53:31]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 0E 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 17 [17:53:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:31]wFMCommunicate OK [17:53:31]SAM_PROTO_GetShiftState done [17:53:31]FM_GetShiftState done [17:53:31]opened in 1729555832 [17:53:31]opened+sec_in_day 1729642232 [17:53:31]quantity*price = 70044 [17:53:31]sum+1 = 70045 [17:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 309 22.10.2024 17:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70361 ФПД: 270345839742594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175332&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70361&fm=270345839742594&tin=02508201610067®Number=0000000000156251&sum=70000 [17:53:32]StoreToDocumentArchive [17:53:32]shift 195 fd 70361 [17:53:32]save to /storage/0195/doc_00070361 [17:53:32]save last doc name /storage/0195/doc_00070361 to /storage/kkm_last_doc_name [17:53:32]save OK [17:53:32]Clear old archive folders... [17:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:32]tlvbuf is 00AA3840 [17:53:32]SAM_PROTO_ClearQueue [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 09 00 00 [17:53:32]Write to MH i2c: E2 08 00 A8 11 80 09 00 00 00 00 00 00 2B [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [17:53:32]RAPDU: 90 00 [17:53:32]wFMCommunicate OK [17:53:32]SAM_PROTO_ClearQueue done [17:53:32]KKMCreateOFDPacket [17:53:32]OFDProtocolAddRootSTLVToBuf [17:53:32]FM_MakeSignedData [17:53:32]FM_MakeSignedData [17:53:32]SAM_PROTO_SignData [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 0D 01 02 [17:53:32]Write to MH i2c: E2 08 00 A9 11 80 0D 01 02 00 00 00 00 33 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]OFD Sender: No OFD packet to send [17:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [17:53:33]RAPDU: 90 00 [17:53:33]wFMCommunicate OK [17:53:33]wFMCommunicate request_size=255 [17:53:33]MH_SAM_APDU [17:53: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 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 35 01 00 00 F4 03 04 00 9C E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 12 01 00 35 04 06 00 F5 [17:53:33]Write to MH i2c: E2 02 01 AA 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 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 35 01 00 00 F4 03 04 00 9C E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 12 01 00 35 04 06 00 F5 00 00 A6 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [17:53:33]RAPDU: 90 00 [17:53:33]wFMCommunicate OK [17:53:33]wFMCommunicate request_size=10 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 0D 02 02 05 E0 CB BE 8E 82 [17:53:33]Write to MH i2c: E2 0D 00 AB 11 80 0D 02 02 05 00 E0 CB BE 8E 82 00 00 B9 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [17:53:33]RAPDU: 90 00 [17:53:33]wFMCommunicate OK [17:53:33]wFMCommunicate request_size=4 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 0D 03 02 [17:53:33]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0B 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0B 00 AC 11 00 59 48 97 E3 F1 93 A1 28 90 00 A1 [17:53:33]RAPDU: 59 48 97 E3 F1 93 A1 28 90 00 [17:53:33]wFMCommunicate OK [17:53:33]SAM_PROTO_SignData done [17:53:33]FM_MakeSignedData done [17:53:33]CreateOFDProtocolMessage [17:53:33]wFMCommunicate request_size=4 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 11 00 00 [17:53:33]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 17 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [17:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:33]wFMCommunicate OK [17:53:33]CreateOFDProtocolMessage done [17:53:33]OFDSenderStorePacket 70361 [17:53:33]StoreOFDPacket docnum=70361 [17:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 ED 70 07 01 38 92 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 35 01 00 00 F4 03 04 00 9C E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 12 01 00 35 04 06 00 F5 E0 CB BE 8E 82 59 48 97 E3 F1 93 A1 28 [17:53:33]CheckFolder [17:53:33]dirname=/storage/ofd_packets [17:53:33]CheckFolder done [17:53:33]ProducePacketName [17:53:33]name=ofd_packets/00070361 [17:53:33]NVStorageSaveData ofd_packets/00070361 [17:53:33]File name is /storage/ofd_packets/00070361 [17:53:33]Write 301 bytes [17:53:33]NVStorageSaveData done [17:53:33]OFDSenderStorePacket done [17:53:33]KKMCreateOFDPacket done [17:53:33]NVStorageSaveData kkm_last_timestamp [17:53:33]File name is /storage/kkm_last_timestamp [17:53:33]Write 4 bytes [17:53:33]NVStorageSaveData done [17:53:33]ExternCall_PrintAddStr [17:53:33]wPrintStart [17:53:33]Write to MH i2c: 01 00 00 AE 11 BF [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: 01 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: 01 07 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [17:53:33]RasterBufferAndPrint [17:53:33]line Счет N : (1)2886131 [17:53:33]line ИНН: 02508201610067 [17:53:33]line Контрольно-Кассовый Чек [17:53:33]line ПРОДАЖА [17:53:33]line ТРК (МРК, ГНК) : 32 [17:53:33]line Товар: 2710124130 [17:53:33]line Аи-92-К-5 [17:53:33]line 10.470 * 66.90 [17:53:33]line = 700.44 [17:53:33]line НДС 12% НСП 1% [17:53:33]line > о реализуемом товаре [17:53:33]line ОКРУГЛЕНИЕ: -0.44 [17:53:33]line ИТОГО: 700.00 [17:53:33]line Внесено: 700.00 [17:53:33]line СДАЧА: 0.00 [17:53:33]line НСП 1% : 6.20 [17:53:33]line НДС 12% : 74.38 [17:53:33]line Наличными: 700.00 [17:53:33]line Безнал.: 0.00 [17:53:33]line Место: АЗС № 85 "Партнер Нефть" [17:53:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:53:33]line СНО: Общий режим [17:53:33]line Чек 309 22.10.2024 17:53 [17:53:33]line Смена: 195 ФФД: 1.0 [17:53:33]line ЗНМ: 0300000167 [17:53:33]line РНМ: 0000000000156251 [17:53:33]line Версия ККМ: v1.0 [17:53:33]line ФМ: 0000000000963346 [17:53:33]line ФД: 70361 [17:53:33]line ФПД: 270345839742594 [17:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175332&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70361&fm=270345839742594&tin=02508201610067®Number=0000000000156251&sum=70000 [17:53:33]OFD Sender: Processing packet 70361 [packets to send 18, broken 17] [17:53:33]ProducePacketName [17:53:33]name=ofd_packets/00070361 [17:53:33]OFD Sender: To server: pG, [17:53:33]CommunicateWithHost lk.salyk.kg:30040 [17:53:33]ConnectInit lk.salyk.kg [17:53:33]written 0, free lines is 4095 [17:53:33]Connected sock=10 [17:53: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 34 36 0F 01 00 00 ED 70 07 01 38 92 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 35 01 00 00 F4 03 04 00 9C E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 12 01 00 35 04 06 00 F5 E0 CB BE 8E 82 59 48 97 E3 F1 93 A1 28 [17:53: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 34 36 4F 00 00 00 6F 5E 47 00 A6 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 34 36 10 04 04 00 D9 12 01 00 F4 03 04 00 3C 90 17 67 B6 04 01 00 00 77 3D CD C3 D3 8F 61 4A [17:53:34]CommunicateWithHost err = 0 [17:53:34]CheckOFDResponse [17:53:34]1017 (14) - 77093643461234 [17:53:34]1041 (16) - 0000000000963346 [17:53:34]1040 (4) - 70361 [17:53:34]1012 (4) - 22.10.2024 11:45 [17:53:34]1206 (1) - 0 [17:53:34]OFD Sender: Remove packet 70361 [17:53:34]ProducePacketName [17:53:34]name=ofd_packets/00070361 [17:53:34]NVStorageDeleteData [17:53:34]Write to MH i2c: 01 00 00 D9 11 EA [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 EF 0C EC [17:53:34]RasterBufferAndPrint [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]written 0, free lines is 3318 [17:53:34]MH_Cut [17:53:34]Write to MH i2c: D1 01 00 E0 11 01 C3 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 01 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 01 00 E0 11 00 C2 [17:53:34]Write to MH i2c: 01 00 00 E1 11 F2 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]OFD Sender: No OFD packet to send [17:53:34]*** Cut start [17:53:34]*** Partial cut [17:53:34]*** CUTSNS_PIN = 1 [17:53:35]*** CUTSNS_PIN = 0 [17:53:35]*** Brake cut motor [17:53:35]Read from MH i2c: 01 [17:53:35]MH_I2C_Read... [17:53:35]*** Stop cut motor [17:53:35]*** Cut end [17:53:35]Read from MH i2c: 01 07 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 E1 11 00 00 00 00 00 FF 0F 07 [17:53:35]process_action close_receipt done [17:53:35]requested_data is exist [17:53:35]produce_requested_data [17:53:35]requested_item fm.sn is exist - process it [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 11 00 00 [17:53:35]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [17:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:35]wFMCommunicate OK [17:53:35]requested_item fd.num is exist - process it [17:53:35]SAM_PROTO_GetFieldsCounters [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 13 00 00 [17:53:35]Write to MH i2c: E2 08 00 E3 11 80 13 00 00 00 00 00 00 70 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 62 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 62 00 E3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 12 01 00 0E 04 04 00 C3 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 DC [17:53: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 12 01 00 0E 04 04 00 C3 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 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_GetFieldsCounters done [17:53:35]requested_item shift.num is exist - process it [17:53:35]requested_item shift.opened is exist - process it [17:53:35]req_shift_opened [17:53:35]FM_GetShiftState [17:53:35]SAM_PROTO_GetShiftState [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 13 01 00 [17:53:35]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0E 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 60 [17:53:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_GetShiftState done [17:53:35]FM_GetShiftState done [17:53:35]req_shift_opened done [17:53:35]requested_item shift.open_date is exist - process it [17:53:35]req_shift_open_date [17:53:35]req_shift_open_date done [17:53:35]produce_requested_data done [17:53:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70361,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:53:35]process_action_free close_receipt [17:53:35]json_value_free [17:53:35]json_value_free done [17:53:35]process_json_proto returns [17:53:35]Send response to host [17:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70361,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:53:35]free response buf [17:53:35]execute_script done [17:53:35]execute_script returns [17:53:35]free content buf [17:53:35]Sock 7.Close socket [17:53:35]Sock 7.Thread stoped [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:45]accept exits with 9 [17:53:45]New connection [17:53:45]New thread 3066555748 created [17:53:45]Thread 3066699108 joined [17:53:45]Waiting for new connection... [17:53:45] Sock 9.Parse request [17:53:45]Sock 9.Check first char [17:53:45]Sock 9.First char is OK [17:53:45]request: POST /json_proto HTTP/1.0 [17:53:45]Method: POST [17:53:45]URL: /json_proto [17:53:45]Method is POST - this is cgi request [17:53:45]url: /json_proto [17:53:45]query_string will be loaded in cgi processing [17:53:45]execute_cgi json_proto POST (null) [17:53:45]execute_cgi path=json_proto method=POST [17:53:45]POST find Content-Length [17:53:45]Host: 172.17.50.3:8080 [17:53:45]Content-Length: 767 [17:53:45]Content-Type: application/json [17:53:45] [17:53:45]POST finish read [17:53:45]Found Content-Length = 767 [17:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [17:53:45]execute_script... [17:53: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)2886132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [17:53:45]POST & json_proto [17:53:45]process_json_proto [17:53:45]json parsed OK: [17:53:45]protocol is kg_v1.0 [17:53:45]action value=close_receipt [17:53:45]process_action close_receipt [17:53:45]cmd_close_receipt [17:53:45]MH_GetDate [17:53:45]Write to MH i2c: F0 00 00 E5 11 E5 [17:53:45]Write i2c OK [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: F0 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: F0 09 00 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: F0 09 00 E5 11 00 A9 E6 17 67 6B 98 1E 66 82 [17:53:45]GetLastDocTimeStamp 1729619612 [17:53:45]current date 1729619625 [17:53:45]FM_GetShiftState [17:53:45]SAM_PROTO_GetShiftState [17:53:45]wFMCommunicate request_size=4 [17:53:45]MH_SAM_APDU [17:53:45]CAPDU: 80 13 01 00 [17:53:45]Write to MH i2c: E2 08 00 E6 11 80 13 01 00 00 00 00 00 74 [17:53:45]Write i2c OK [17:53:45]MH_I2C_Read... [17:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:45]Read from MH i2c: E2 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: E2 0E 00 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: E2 0E 00 E6 11 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 62 [17:53:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:45]wFMCommunicate OK [17:53:45]SAM_PROTO_GetShiftState done [17:53:45]FM_GetShiftState done [17:53:45]opened in 1729555832 [17:53:45]opened+sec_in_day 1729642232 [17:53:45]quantity*price = 50041 [17:53:45]sum+1 = 50042 [17:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 310 22.10.2024 17:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70362 ФПД: 94285693863814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175345&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70362&fm=94285693863814&tin=02508201610067®Number=0000000000156251&sum=50041 [17:53:46]StoreToDocumentArchive [17:53:46]shift 195 fd 70362 [17:53:46]save to /storage/0195/doc_00070362 [17:53:46]save last doc name /storage/0195/doc_00070362 to /storage/kkm_last_doc_name [17:53:46]save OK [17:53:46]Clear old archive folders... [17:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:46]tlvbuf is B6D6A760 [17:53:46]SAM_PROTO_ClearQueue [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 09 00 00 [17:53:46]Write to MH i2c: E2 08 00 F3 11 80 09 00 00 00 00 00 00 76 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [17:53:46]RAPDU: 90 00 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_ClearQueue done [17:53:46]KKMCreateOFDPacket [17:53:46]OFDProtocolAddRootSTLVToBuf [17:53:46]FM_MakeSignedData [17:53:46]FM_MakeSignedData [17:53:46]SAM_PROTO_SignData [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 0D 01 02 [17:53:46]Write to MH i2c: E2 08 00 F4 11 80 0D 01 02 00 00 00 00 7E [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [17:53:46]RAPDU: 90 00 [17:53:46]wFMCommunicate OK [17:53:46]wFMCommunicate request_size=255 [17:53:46]MH_SAM_APDU [17:53: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 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 36 01 00 00 F4 03 04 00 A9 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 12 01 00 35 04 06 00 55 [17:53:46]Write to MH i2c: E2 02 01 F5 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 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 36 01 00 00 F4 03 04 00 A9 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 12 01 00 35 04 06 00 55 00 00 A2 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [17:53:46]RAPDU: 90 00 [17:53:46]wFMCommunicate OK [17:53:46]wFMCommunicate request_size=10 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 0D 02 02 05 C0 99 4A 47 86 [17:53:46]Write to MH i2c: E2 0D 00 F6 11 80 0D 02 02 05 00 C0 99 4A 47 86 00 00 FB [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [17:53:46]RAPDU: 90 00 [17:53:46]wFMCommunicate OK [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 0D 03 02 [17:53:46]Write to MH i2c: E2 08 00 F7 11 80 0D 03 02 00 00 00 00 83 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0B 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0B 00 F7 11 00 96 26 66 F4 0A B9 C4 4C 90 00 6D [17:53:46]RAPDU: 96 26 66 F4 0A B9 C4 4C 90 00 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_SignData done [17:53:46]FM_MakeSignedData done [17:53:46]CreateOFDProtocolMessage [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 11 00 00 [17:53:46]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 17 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [17:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:46]wFMCommunicate OK [17:53:46]CreateOFDProtocolMessage done [17:53:46]OFDSenderStorePacket 70362 [17:53:46]StoreOFDPacket docnum=70362 [17:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 1A 07 01 7A 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 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 36 01 00 00 F4 03 04 00 A9 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 12 01 00 35 04 06 00 55 C0 99 4A 47 86 96 26 66 F4 0A B9 C4 4C [17:53:46]CheckFolder [17:53:46]dirname=/storage/ofd_packets [17:53:46]CheckFolder done [17:53:46]ProducePacketName [17:53:46]name=ofd_packets/00070362 [17:53:46]NVStorageSaveData ofd_packets/00070362 [17:53:46]File name is /storage/ofd_packets/00070362 [17:53:46]Write 301 bytes [17:53:46]NVStorageSaveData done [17:53:46]OFDSenderStorePacket done [17:53:46]KKMCreateOFDPacket done [17:53:46]NVStorageSaveData kkm_last_timestamp [17:53:46]File name is /storage/kkm_last_timestamp [17:53:46]Write 4 bytes [17:53:46]NVStorageSaveData done [17:53:46]ExternCall_PrintAddStr [17:53:46]wPrintStart [17:53:46]Write to MH i2c: 01 00 00 F9 11 0A [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 07 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [17:53:46]RasterBufferAndPrint [17:53:46]line Счет N : (1)2886132 [17:53:46]line ИНН: 02508201610067 [17:53:46]line Контрольно-Кассовый Чек [17:53:46]line ПРОДАЖА [17:53:46]line ТРК (МРК, ГНК) : 42 [17:53:46]line Товар: 2710124130 [17:53:46]line Аи-92-К-5 [17:53:46]line 7.480 * 66.90 [17:53:46]line = 500.41 [17:53:46]line НДС 12% НСП 1% [17:53:46]line > о реализуемом товаре [17:53:46]line ИТОГО: 500.41 [17:53:46]line НСП 1% : 4.43 [17:53:46]line НДС 12% : 53.14 [17:53:46]line Наличными: 0.00 [17:53:46]line Безнал.: 500.41 [17:53:46]line Место: АЗС № 85 "Партнер Нефть" [17:53:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:53:46]line СНО: Общий режим [17:53:46]line Чек 310 22.10.2024 17:53 [17:53:46]line Смена: 195 ФФД: 1.0 [17:53:46]line ЗНМ: 0300000167 [17:53:46]line РНМ: 0000000000156251 [17:53:46]line Версия ККМ: v1.0 [17:53:46]line Платежная система: Mbank [17:53:46]line ФМ: 0000000000963346 [17:53:46]line ФД: 70362 [17:53:46]line ФПД: 94285693863814 [17:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175345&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70362&fm=94285693863814&tin=02508201610067®Number=0000000000156251&sum=50041 [17:53:47]OFD Sender: Processing packet 70362 [packets to send 18, broken 17] [17:53:47]ProducePacketName [17:53:47]name=ofd_packets/00070362 [17:53:47]OFD Sender: To server: pG, [17:53:47]CommunicateWithHost lk.salyk.kg:30040 [17:53:47]ConnectInit lk.salyk.kg [17:53:47]written 0, free lines is 4095 [17:53:47]Connected sock=10 [17:53: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 34 36 0F 01 00 00 00 1A 07 01 7A 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 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 36 01 00 00 F4 03 04 00 A9 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 12 01 00 35 04 06 00 55 C0 99 4A 47 86 96 26 66 F4 0A B9 C4 4C [17:53: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 34 36 4F 00 00 00 1B E0 47 00 F6 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 12 01 00 F4 03 04 00 49 90 17 67 B6 04 01 00 00 53 FE A4 63 2A 36 BE E0 [17:53:47]CommunicateWithHost err = 0 [17:53:47]CheckOFDResponse [17:53:47]1017 (14) - 77093643461234 [17:53:47]1041 (16) - 0000000000963346 [17:53:47]1040 (4) - 70362 [17:53:47]1012 (4) - 22.10.2024 11:45 [17:53:47]1206 (1) - 0 [17:53:47]OFD Sender: Remove packet 70362 [17:53:47]ProducePacketName [17:53:47]name=ofd_packets/00070362 [17:53:47]NVStorageDeleteData [17:53:47]Write to MH i2c: 01 00 00 22 12 34 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 07 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 21 0D 69 [17:53:47]RasterBufferAndPrint [17:53:47]line [17:53:47]line [17:53:47]line [17:53:47]line [17:53:47]line [17:53:47]written 0, free lines is 3367 [17:53:47]MH_Cut [17:53:47]Write to MH i2c: D1 01 00 29 12 01 0D [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: D1 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: D1 01 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: D1 01 00 29 12 00 0C [17:53:47]Write to MH i2c: 01 00 00 2A 12 3C [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:48]OFD Sender: No OFD packet to send [17:53:48]*** Cut start [17:53:48]*** Partial cut [17:53:48]*** CUTSNS_PIN = 1 [17:53:48]*** CUTSNS_PIN = 0 [17:53:48]*** Brake cut motor [17:53:48]Read from MH i2c: 01 [17:53:48]MH_I2C_Read... [17:53:48]*** Stop cut motor [17:53:48]*** Cut end [17:53:48]Read from MH i2c: 01 07 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [17:53:48]process_action close_receipt done [17:53:48]requested_data is exist [17:53:48]produce_requested_data [17:53:48]requested_item fm.sn is exist - process it [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 11 00 00 [17:53:48]Write to MH i2c: E2 08 00 2B 12 80 11 00 00 00 00 00 00 B7 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 17 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 17 00 2B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [17:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:49]wFMCommunicate OK [17:53:49]requested_item fd.num is exist - process it [17:53:49]SAM_PROTO_GetFieldsCounters [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 13 00 00 [17:53:49]Write to MH i2c: E2 08 00 2C 12 80 13 00 00 00 00 00 00 BA [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 62 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 62 00 2C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 12 01 00 0E 04 04 00 C3 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 2A [17:53: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 12 01 00 0E 04 04 00 C3 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 [17:53:49]wFMCommunicate OK [17:53:49]SAM_PROTO_GetFieldsCounters done [17:53:49]requested_item shift.num is exist - process it [17:53:49]requested_item shift.opened is exist - process it [17:53:49]req_shift_opened [17:53:49]FM_GetShiftState [17:53:49]SAM_PROTO_GetShiftState [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 13 01 00 [17:53:49]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:49]Read from MH i2c: E2 0E 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AA [17:53:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:49]wFMCommunicate OK [17:53:49]SAM_PROTO_GetShiftState done [17:53:49]FM_GetShiftState done [17:53:49]req_shift_opened done [17:53:49]requested_item shift.open_date is exist - process it [17:53:49]req_shift_open_date [17:53:49]req_shift_open_date done [17:53:49]produce_requested_data done [17:53:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70362,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:53:49]process_action_free close_receipt [17:53:49]json_value_free [17:53:49]json_value_free done [17:53:49]process_json_proto returns [17:53:49]Send response to host [17:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70362,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:53:49]free response buf [17:53:49]execute_script done [17:53:49]execute_script returns [17:53:49]free content buf [17:53:49]Sock 9.Close socket [17:53:49]Sock 9.Thread stoped [17:53:53]OFD Sender: No OFD packet to send [17:53:54]accept exits with 7 [17:53:54]New connection [17:53:54]New thread 3066699108 created [17:53:54]Thread 3066555748 joined [17:53:54]Waiting for new connection... [17:53:54] Sock 7.Parse request [17:53:54]Sock 7.Check first char [17:53:54]Sock 7.First char is OK [17:53:54]request: POST /json_proto HTTP/1.0 [17:53:54]Method: POST [17:53:54]URL: /json_proto [17:53:54]Method is POST - this is cgi request [17:53:54]url: /json_proto [17:53:54]query_string will be loaded in cgi processing [17:53:54]execute_cgi json_proto POST (null) [17:53:54]execute_cgi path=json_proto method=POST [17:53:54]POST find Content-Length [17:53:54]Host: 172.17.50.3:8080 [17:53:54]Content-Length: 978 [17:53:54]Content-Type: application/json [17:53:54] [17:53:54]POST finish read [17:53:54]Found Content-Length = 978 [17:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [17:53:54]execute_script... [17:53: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)2886130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [17:53:54]POST & json_proto [17:53:54]process_json_proto [17:53:54]json parsed OK: [17:53:54]protocol is kg_v1.0 [17:53:54]action value=close_receipt [17:53:54]process_action close_receipt [17:53:54]cmd_close_receipt [17:53:54]MH_GetDate [17:53:54]Write to MH i2c: F0 00 00 2E 12 2F [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 09 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 09 00 2E 12 00 B3 E6 17 67 6B 98 1E 66 D6 [17:53:54]GetLastDocTimeStamp 1729619625 [17:53:54]current date 1729619635 [17:53:54]FM_GetShiftState [17:53:54]SAM_PROTO_GetShiftState [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 13 01 00 [17:53:54]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:54]Read from MH i2c: E2 0E 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AC [17:53:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:54]wFMCommunicate OK [17:53:54]SAM_PROTO_GetShiftState done [17:53:54]FM_GetShiftState done [17:53:54]opened in 1729555832 [17:53:54]opened+sec_in_day 1729642232 [17:53:54]quantity*price = 450072 [17:53:54]sum+1 = 450073 [17:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 311 22.10.2024 17:53 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 59.85 сом ФМ: 0000000000963346 ФД: 70363 ФПД: 155298248786552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175355&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70363&fm=155298248786552&tin=02508201610067®Number=0000000000156251&sum=450000 [17:53:55]StoreToDocumentArchive [17:53:55]shift 195 fd 70363 [17:53:55]save to /storage/0195/doc_00070363 [17:53:55]save last doc name /storage/0195/doc_00070363 to /storage/kkm_last_doc_name [17:53:55]save OK [17:53:55]Clear old archive folders... [17:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:55]tlvbuf is 00AE36D0 [17:53:55]SAM_PROTO_ClearQueue [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 09 00 00 [17:53:55]Write to MH i2c: E2 08 00 3C 12 80 09 00 00 00 00 00 00 C0 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]SAM_PROTO_ClearQueue done [17:53:55]KKMCreateOFDPacket [17:53:55]OFDProtocolAddRootSTLVToBuf [17:53:55]FM_MakeSignedData [17:53:55]FM_MakeSignedData [17:53:55]SAM_PROTO_SignData [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 0D 01 02 [17:53:55]Write to MH i2c: E2 08 00 3D 12 80 0D 01 02 00 00 00 00 C8 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]wFMCommunicate request_size=255 [17:53:55]MH_SAM_APDU [17:53: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 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 37 01 00 00 F4 03 04 00 B3 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 12 01 00 35 04 06 00 8D 3E 30 F4 [17:53:55]Write to MH i2c: E2 02 01 3E 12 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 37 01 00 00 F4 03 04 00 B3 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 12 01 00 35 04 06 00 8D 3E 30 F4 00 00 AB [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]wFMCommunicate request_size=7 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 0D 02 02 02 02 78 [17:53:56]Write to MH i2c: E2 0A 00 3F 12 80 0D 02 02 02 00 02 78 00 00 49 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 0D 03 02 [17:53:56]Write to MH i2c: E2 08 00 40 12 80 0D 03 02 00 00 00 00 CD [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0B 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0B 00 40 12 00 DD 2A F6 A1 13 BA C9 CF 90 00 D1 [17:53:56]RAPDU: DD 2A F6 A1 13 BA C9 CF 90 00 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_SignData done [17:53:56]FM_MakeSignedData done [17:53:56]CreateOFDProtocolMessage [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 11 00 00 [17:53:56]Write to MH i2c: E2 08 00 41 12 80 11 00 00 00 00 00 00 CD [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 41 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [17:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:56]wFMCommunicate OK [17:53:56]CreateOFDProtocolMessage done [17:53:56]OFDSenderStorePacket 70363 [17:53:56]StoreOFDPacket docnum=70363 [17:53:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7E 5D 04 01 1C 78 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 37 01 00 00 F4 03 04 00 B3 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 12 01 00 35 04 06 00 8D 3E 30 F4 02 78 DD 2A F6 A1 13 BA C9 CF [17:53:56]CheckFolder [17:53:56]dirname=/storage/ofd_packets [17:53:56]CheckFolder done [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00070363 [17:53:56]NVStorageSaveData ofd_packets/00070363 [17:53:56]File name is /storage/ofd_packets/00070363 [17:53:56]Write 298 bytes [17:53:56]NVStorageSaveData done [17:53:56]OFDSenderStorePacket done [17:53:56]KKMCreateOFDPacket done [17:53:56]NVStorageSaveData kkm_last_timestamp [17:53:56]File name is /storage/kkm_last_timestamp [17:53:56]Write 4 bytes [17:53:56]NVStorageSaveData done [17:53:56]ExternCall_PrintAddStr [17:53:56]wPrintStart [17:53:56]Write to MH i2c: 01 00 00 42 12 54 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [17:53:56]RasterBufferAndPrint [17:53:56]line Счет N : (1)2886130 [17:53:56]line ИНН: 02508201610067 [17:53:56]line Контрольно-Кассовый Чек [17:53:56]line ПРОДАЖА [17:53:56]line ТРК (МРК, ГНК) : 61 [17:53:56]line Товар: 2710194210 [17:53:56]line ДТ-К-5 [17:53:56]line 59.850 * 75.20 [17:53:56]line = 4500.72 [17:53:56]line НДС 12% НСП 1% [17:53:56]line > о реализуемом товаре [17:53:56]line ОКРУГЛЕНИЕ: -0.72 [17:53:56]line ИТОГО: 4500.00 [17:53:56]line Внесено: 4500.00 [17:53:56]line СДАЧА: 0.00 [17:53:56]line НСП 1% : 39.83 [17:53:56]line НДС 12% : 477.95 [17:53:56]line Наличными: 4500.00 [17:53:56]line Безнал.: 0.00 [17:53:56]line Место: АЗС № 85 "Партнер Нефть" [17:53:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:53:56]line СНО: Общий режим [17:53:56]line Чек 311 22.10.2024 17:53 [17:53:56]line Смена: 195 ФФД: 1.0 [17:53:56]line ЗНМ: 0300000167 [17:53:56]line РНМ: 0000000000156251 [17:53:56]line Версия ККМ: v1.0 [17:53:56]line [17:53:56]line Дисконтная программа [17:53:56]line ДТ [17:53:56]line номер 85 [17:53:56]line сэкономлено 59.85 сом [17:53:56]line ФМ: 0000000000963346 [17:53:56]line ФД: 70363 [17:53:56]line ФПД: 155298248786552 [17:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175355&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70363&fm=155298248786552&tin=02508201610067®Number=0000000000156251&sum=450000 [17:53:56]written 0, free lines is 4095 [17:53:56]OFD Sender: Processing packet 70363 [packets to send 18, broken 17] [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00070363 [17:53:56]OFD Sender: To server: pG, [17:53:56]CommunicateWithHost lk.salyk.kg:30040 [17:53:56]ConnectInit lk.salyk.kg [17:53:56]Connected sock=10 [17:53: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 34 36 0C 01 00 00 7E 5D 04 01 1C 78 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 37 01 00 00 F4 03 04 00 B3 E6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 12 01 00 35 04 06 00 8D 3E 30 F4 02 78 DD 2A F6 A1 13 BA C9 CF [17:53: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 34 36 4F 00 00 00 D5 22 47 00 EF 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 34 36 10 04 04 00 DB 12 01 00 F4 03 04 00 53 90 17 67 B6 04 01 00 00 EA DC 1E 2B F6 A6 A3 B0 [17:53:56]CommunicateWithHost err = 0 [17:53:56]CheckOFDResponse [17:53:56]1017 (14) - 77093643461234 [17:53:56]1041 (16) - 0000000000963346 [17:53:56]1040 (4) - 70363 [17:53:56]1012 (4) - 22.10.2024 11:45 [17:53:56]1206 (1) - 0 [17:53:56]OFD Sender: Remove packet 70363 [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00070363 [17:53:56]NVStorageDeleteData [17:53:56]Write to MH i2c: 01 00 00 72 12 84 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 B3 0C 4A [17:53:56]RasterBufferAndPrint [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]written 0, free lines is 3260 [17:53:56]MH_Cut [17:53:56]Write to MH i2c: D1 01 00 79 12 01 5D [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 01 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 01 00 79 12 00 5C [17:53:56]Write to MH i2c: 01 00 00 7A 12 8C [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:57]OFD Sender: No OFD packet to send [17:53:57]*** Cut start [17:53:57]*** Partial cut [17:53:57]*** CUTSNS_PIN = 1 [17:53:57]*** CUTSNS_PIN = 0 [17:53:57]*** Brake cut motor [17:53:58]Read from MH i2c: 01 [17:53:58]MH_I2C_Read... [17:53:58]*** Stop cut motor [17:53:58]*** Cut end [17:53:58]Read from MH i2c: 01 07 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 FF 0F A1 [17:53:58]process_action close_receipt done [17:53:58]requested_data is exist [17:53:58]produce_requested_data [17:53:58]requested_item fm.sn is exist - process it [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 11 00 00 [17:53:58]Write to MH i2c: E2 08 00 7B 12 80 11 00 00 00 00 00 00 07 [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [17:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:58]wFMCommunicate OK [17:53:58]requested_item fd.num is exist - process it [17:53:58]SAM_PROTO_GetFieldsCounters [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 13 00 00 [17:53:58]Write to MH i2c: E2 08 00 7C 12 80 13 00 00 00 00 00 00 0A [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 62 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 62 00 7C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 12 01 00 0E 04 04 00 C3 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 7E [17:53: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 12 01 00 0E 04 04 00 C3 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 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_GetFieldsCounters done [17:53:58]requested_item shift.num is exist - process it [17:53:58]requested_item shift.opened is exist - process it [17:53:58]req_shift_opened [17:53:58]FM_GetShiftState [17:53:58]SAM_PROTO_GetShiftState [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 13 01 00 [17:53:58]Write to MH i2c: E2 08 00 7D 12 80 13 01 00 00 00 00 00 0C [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 7D 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FA [17:53:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_GetShiftState done [17:53:58]FM_GetShiftState done [17:53:58]req_shift_opened done [17:53:58]requested_item shift.open_date is exist - process it [17:53:58]req_shift_open_date [17:53:58]req_shift_open_date done [17:53:58]produce_requested_data done [17:53:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70363,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:53:58]process_action_free close_receipt [17:53:58]json_value_free [17:53:58]json_value_free done [17:53:58]process_json_proto returns [17:53:58]Send response to host [17:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70363,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:53:58]free response buf [17:53:58]execute_script done [17:53:58]execute_script returns [17:53:58]free content buf [17:53:58]Sock 7.Close socket [17:53:58]Sock 7.Thread stoped [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:16]int [17:54:16]Write to MH i2c: 01 00 00 7E 12 90 [17:54:16]*** FLAG_PRN_PAP1 set [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 7E 12 00 01 00 00 00 FF 0F A6 [17:54:16]state=0 [17:54:16]No paper [17:54:16]int [17:54:16]Write to MH i2c: 01 00 00 7F 12 91 [17:54:16]*** FLAG_PRN_PAP2 set [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 7F 12 00 03 00 00 00 FF 0F A9 [17:54:16]state=0 [17:54:16]No paper [17:54:16]Cover opened [17:54:16]int [17:54:16]Write to MH i2c: 01 00 00 80 12 92 [17:54:16]*** FLAG_PRN_PAP2 reset [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 80 12 00 01 00 00 00 FF 0F A8 [17:54:16]state=3 [17:54:16]No paper [17:54:16]Cover closed [17:54:17]int [17:54:17]Write to MH i2c: 01 00 00 81 12 93 [17:54:17]*** FLAG_PRN_PAP2 set [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 07 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 07 00 81 12 00 03 00 00 00 FF 0F AB [17:54:17]state=0 [17:54:17]No paper [17:54:17]Cover opened [17:54:17]OFD Sender: No OFD packet to send [17:54:22]Write to MH i2c: 01 00 00 82 12 94 [17:54:22]Write i2c OK [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: 01 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: 01 07 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: 01 07 00 82 12 00 03 00 00 00 FF 0F AC [17:54:22]state=3 [17:54:22]No paper [17:54:22]Cover opened [17:54:22]OFD Sender: No OFD packet to send [17:54:27]Write to MH i2c: 01 00 00 83 12 95 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 07 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 07 00 83 12 00 03 00 00 00 FF 0F AD [17:54:27]state=3 [17:54:27]No paper [17:54:27]Cover opened [17:54:27]OFD Sender: No OFD packet to send [17:54:32]Write to MH i2c: 01 00 00 84 12 96 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 84 12 00 03 00 00 00 FF 0F AE [17:54:32]state=3 [17:54:32]No paper [17:54:32]Cover opened [17:54:32]OFD Sender: No OFD packet to send [17:54:37]Write to MH i2c: 01 00 00 85 12 97 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 07 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 07 00 85 12 00 03 00 00 00 FF 0F AF [17:54:37]state=3 [17:54:37]No paper [17:54:37]Cover opened [17:54:37]OFD Sender: No OFD packet to send [17:54:42]Write to MH i2c: 01 00 00 86 12 98 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 86 12 00 03 00 00 00 FF 0F B0 [17:54:42]state=3 [17:54:42]No paper [17:54:42]Cover opened [17:54:42]OFD Sender: No OFD packet to send [17:54:47]Write to MH i2c: 01 00 00 87 12 99 [17:54:47]Write i2c OK [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 07 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 07 00 87 12 00 03 00 00 00 FF 0F B1 [17:54:47]state=3 [17:54:47]No paper [17:54:47]Cover opened [17:54:47]OFD Sender: No OFD packet to send [17:54:47]int [17:54:47]Write to MH i2c: 01 00 00 88 12 9A [17:54:47]*** FLAG_PRN_PAP2 reset [17:54:47]Write i2c OK [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 07 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 07 00 88 12 00 01 00 00 00 FF 0F B0 [17:54:47]state=3 [17:54:47]No paper [17:54:47]Cover closed [17:54:47]int [17:54:47]Write to MH i2c: 01 00 00 89 12 9B [17:54:47]*** FLAG_PRN_PAP1 reset [17:54:48]Write i2c OK [17:54:48]MH_I2C_Read... [17:54:48]Read from MH i2c: 01 [17:54:48]MH_I2C_Read... [17:54:48]Read from MH i2c: 01 07 00 [17:54:48]MH_I2C_Read... [17:54:48]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [17:54:48]state=0 [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:14]accept exits with 9 [17:57:14]New connection [17:57:14]New thread 3066555748 created [17:57:14]Thread 3066699108 joined [17:57:14]Waiting for new connection... [17:57:14] Sock 9.Parse request [17:57:14]Sock 9.Check first char [17:57:14]Sock 9.First char is OK [17:57:14]request: POST /json_proto HTTP/1.0 [17:57:14]Method: POST [17:57:14]URL: /json_proto [17:57:14]Method is POST - this is cgi request [17:57:14]url: /json_proto [17:57:14]query_string will be loaded in cgi processing [17:57:14]execute_cgi json_proto POST (null) [17:57:14]execute_cgi path=json_proto method=POST [17:57:14]POST find Content-Length [17:57:14]Host: 172.17.50.3:8080 [17:57:14]Content-Length: 683 [17:57:14]Content-Type: application/json [17:57:14] [17:57:14]POST finish read [17:57:14]Found Content-Length = 683 [17:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:14]execute_script... [17:57: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)2886133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:14]POST & json_proto [17:57:14]process_json_proto [17:57:14]json parsed OK: [17:57:14]protocol is kg_v1.0 [17:57:14]action value=close_receipt [17:57:14]process_action close_receipt [17:57:14]cmd_close_receipt [17:57:14]MH_GetDate [17:57:14]Write to MH i2c: F0 00 00 8A 12 8B [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: F0 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: F0 09 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: F0 09 00 8A 12 00 7A E7 17 67 6B 98 1E 66 FA [17:57:14]GetLastDocTimeStamp 1729619635 [17:57:14]current date 1729619834 [17:57:14]FM_GetShiftState [17:57:14]SAM_PROTO_GetShiftState [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 13 01 00 [17:57:14]Write to MH i2c: E2 08 00 8B 12 80 13 01 00 00 00 00 00 1A [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0E 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0E 00 8B 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 08 [17:57:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:57:14]wFMCommunicate OK [17:57:14]SAM_PROTO_GetShiftState done [17:57:14]FM_GetShiftState done [17:57:14]opened in 1729555832 [17:57:14]opened+sec_in_day 1729642232 [17:57:14]quantity*price = 134000 [17:57:14]sum+1 = 134002 [17:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.30 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 312 22.10.2024 17:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70364 ФПД: 6695418978577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70364&fm=6695418978577&tin=02508201610067®Number=0000000000156251&sum=134000 [17:57:15]StoreToDocumentArchive [17:57:15]shift 195 fd 70364 [17:57:15]save to /storage/0195/doc_00070364 [17:57:15]save last doc name /storage/0195/doc_00070364 to /storage/kkm_last_doc_name [17:57:15]save OK [17:57:15]Clear old archive folders... [17:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:15]tlvbuf is 00B12DB0 [17:57:15]SAM_PROTO_ClearQueue [17:57:15]wFMCommunicate request_size=4 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 09 00 00 [17:57:15]Write to MH i2c: E2 08 00 98 12 80 09 00 00 00 00 00 00 1C [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [17:57:15]RAPDU: 90 00 [17:57:15]wFMCommunicate OK [17:57:15]SAM_PROTO_ClearQueue done [17:57:15]KKMCreateOFDPacket [17:57:15]OFDProtocolAddRootSTLVToBuf [17:57:15]FM_MakeSignedData [17:57:15]FM_MakeSignedData [17:57:15]SAM_PROTO_SignData [17:57:15]wFMCommunicate request_size=4 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 0D 01 02 [17:57:15]Write to MH i2c: E2 08 00 99 12 80 0D 01 02 00 00 00 00 24 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [17:57:15]RAPDU: 90 00 [17:57:15]wFMCommunicate OK [17:57:15]wFMCommunicate request_size=255 [17:57:15]MH_SAM_APDU [17:57: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 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 7A E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 12 01 00 35 04 06 00 06 [17:57:15]Write to MH i2c: E2 02 01 9A 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 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 7A E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 12 01 00 35 04 06 00 06 00 00 AB [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 9A 12 00 90 00 20 [17:57:15]RAPDU: 90 00 [17:57:15]wFMCommunicate OK [17:57:15]wFMCommunicate request_size=10 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 0D 02 02 05 16 E6 11 E1 11 [17:57:15]Write to MH i2c: E2 0D 00 9B 12 80 0D 02 02 05 00 16 E6 11 E1 11 00 00 30 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [17:57:15]RAPDU: 90 00 [17:57:15]wFMCommunicate OK [17:57:15]wFMCommunicate request_size=4 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 0D 03 02 [17:57:15]Write to MH i2c: E2 08 00 9C 12 80 0D 03 02 00 00 00 00 29 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 0B 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 0B 00 9C 12 00 7F 1D D9 7D A6 BA 6F 4F 90 00 3A [17:57:16]RAPDU: 7F 1D D9 7D A6 BA 6F 4F 90 00 [17:57:16]wFMCommunicate OK [17:57:16]SAM_PROTO_SignData done [17:57:16]FM_MakeSignedData done [17:57:16]CreateOFDProtocolMessage [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 11 00 00 [17:57:16]Write to MH i2c: E2 08 00 9D 12 80 11 00 00 00 00 00 00 29 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 17 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 17 00 9D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [17:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:16]wFMCommunicate OK [17:57:16]CreateOFDProtocolMessage done [17:57:16]OFDSenderStorePacket 70364 [17:57:16]StoreOFDPacket docnum=70364 [17:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 E9 07 01 30 67 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 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 7A E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 12 01 00 35 04 06 00 06 16 E6 11 E1 11 7F 1D D9 7D A6 BA 6F 4F [17:57:16]CheckFolder [17:57:16]dirname=/storage/ofd_packets [17:57:16]CheckFolder done [17:57:16]ProducePacketName [17:57:16]name=ofd_packets/00070364 [17:57:16]NVStorageSaveData ofd_packets/00070364 [17:57:16]File name is /storage/ofd_packets/00070364 [17:57:16]Write 301 bytes [17:57:16]NVStorageSaveData done [17:57:16]OFDSenderStorePacket done [17:57:16]KKMCreateOFDPacket done [17:57:16]NVStorageSaveData kkm_last_timestamp [17:57:16]File name is /storage/kkm_last_timestamp [17:57:16]Write 4 bytes [17:57:16]NVStorageSaveData done [17:57:16]ExternCall_PrintAddStr [17:57:16]wPrintStart [17:57:16]Write to MH i2c: 01 00 00 9E 12 B0 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 07 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 07 00 9E 12 00 00 00 00 00 FF 0F C5 [17:57:16]RasterBufferAndPrint [17:57:16]line Счет N : (1)2886133 [17:57:16]line ИНН: 02508201610067 [17:57:16]line Контрольно-Кассовый Чек [17:57:16]line ПРОДАЖА [17:57:16]line ТРК (МРК, ГНК) : 32 [17:57:16]line Товар: 2710124130 [17:57:16]line Аи-92-К-5 [17:57:16]line 20.030 * 66.90 [17:57:16]line = 1340.01 [17:57:16]line НДС 12% НСП 1% [17:57:16]line > о реализуемом товаре [17:57:16]line ОКРУГЛЕНИЕ: -0.01 [17:57:16]line ИТОГО: 1340.00 [17:57:16]line Внесено: 1340.00 [17:57:16]line СДАЧА: 0.00 [17:57:16]line НСП 1% : 11.86 [17:57:16]line НДС 12% : 142.30 [17:57:16]line Наличными: 1340.00 [17:57:16]line Безнал.: 0.00 [17:57:16]line Место: АЗС № 85 "Партнер Нефть" [17:57:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:57:16]line СНО: Общий режим [17:57:16]line Чек 312 22.10.2024 17:57 [17:57:16]line Смена: 195 ФФД: 1.0 [17:57:16]line ЗНМ: 0300000167 [17:57:16]line РНМ: 0000000000156251 [17:57:16]line Версия ККМ: v1.0 [17:57:16]line ФМ: 0000000000963346 [17:57:16]line ФД: 70364 [17:57:16]line ФПД: 6695418978577 [17:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70364&fm=6695418978577&tin=02508201610067®Number=0000000000156251&sum=134000 [17:57:16]written 0, free lines is 4095 [17:57:16]OFD Sender: Processing packet 70364 [packets to send 18, broken 17] [17:57:16]ProducePacketName [17:57:16]name=ofd_packets/00070364 [17:57:16]OFD Sender: To server: pG, [17:57:16]CommunicateWithHost lk.salyk.kg:30040 [17:57:16]ConnectInit lk.salyk.kg [17:57:16]Connected sock=10 [17:57: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 34 36 0F 01 00 00 F0 E9 07 01 30 67 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 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 7A E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 12 01 00 35 04 06 00 06 16 E6 11 E1 11 7F 1D D9 7D A6 BA 6F 4F [17:57: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 34 36 4F 00 00 00 43 AA 47 00 0D 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 34 36 10 04 04 00 DC 12 01 00 F4 03 04 00 1A 91 17 67 B6 04 01 00 00 FD 12 4D 2E 0E C5 3F 07 [17:57:16]CommunicateWithHost err = 0 [17:57:16]CheckOFDResponse [17:57:16]1017 (14) - 77093643461234 [17:57:16]1041 (16) - 0000000000963346 [17:57:16]1040 (4) - 70364 [17:57:16]1012 (4) - 22.10.2024 11:48 [17:57:16]1206 (1) - 0 [17:57:16]OFD Sender: Remove packet 70364 [17:57:16]ProducePacketName [17:57:16]name=ofd_packets/00070364 [17:57:16]NVStorageDeleteData [17:57:16]Write to MH i2c: 01 00 00 C9 12 DB [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 07 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FB 0C E9 [17:57:16]RasterBufferAndPrint [17:57:16]line [17:57:16]line [17:57:16]line [17:57:16]line [17:57:16]line [17:57:16]written 0, free lines is 3332 [17:57:16]MH_Cut [17:57:16]Write to MH i2c: D1 01 00 D0 12 01 B4 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: D1 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: D1 01 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: D1 01 00 D0 12 00 B3 [17:57:16]Write to MH i2c: 01 00 00 D1 12 E3 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]OFD Sender: No OFD packet to send [17:57:17]*** Cut start [17:57:17]*** Partial cut [17:57:17]*** CUTSNS_PIN = 1 [17:57:17]*** CUTSNS_PIN = 0 [17:57:17]*** Brake cut motor [17:57:17]Read from MH i2c: 01 [17:57:17]MH_I2C_Read... [17:57:17]*** Stop cut motor [17:57:17]*** Cut end [17:57:17]Read from MH i2c: 01 07 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 FF 0F F8 [17:57:17]process_action close_receipt done [17:57:17]requested_data is exist [17:57:17]produce_requested_data [17:57:17]requested_item fm.sn is exist - process it [17:57:17]wFMCommunicate request_size=4 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 11 00 00 [17:57:17]Write to MH i2c: E2 08 00 D2 12 80 11 00 00 00 00 00 00 5E [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 D2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [17:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:17]wFMCommunicate OK [17:57:17]requested_item fd.num is exist - process it [17:57:17]SAM_PROTO_GetFieldsCounters [17:57:17]wFMCommunicate request_size=4 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 13 00 00 [17:57:17]Write to MH i2c: E2 08 00 D3 12 80 13 00 00 00 00 00 00 61 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:18]Read from MH i2c: E2 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 62 00 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 62 00 D3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 12 01 00 0E 04 04 00 C3 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 D9 [17:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 12 01 00 0E 04 04 00 C3 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 [17:57:18]wFMCommunicate OK [17:57:18]SAM_PROTO_GetFieldsCounters done [17:57:18]requested_item shift.num is exist - process it [17:57:18]requested_item shift.opened is exist - process it [17:57:18]req_shift_opened [17:57:18]FM_GetShiftState [17:57:18]SAM_PROTO_GetShiftState [17:57:18]wFMCommunicate request_size=4 [17:57:18]MH_SAM_APDU [17:57:18]CAPDU: 80 13 01 00 [17:57:18]Write to MH i2c: E2 08 00 D4 12 80 13 01 00 00 00 00 00 63 [17:57:18]Write i2c OK [17:57:18]MH_I2C_Read... [17:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:18]Read from MH i2c: E2 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 0E 00 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 0E 00 D4 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 51 [17:57:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:57:18]wFMCommunicate OK [17:57:18]SAM_PROTO_GetShiftState done [17:57:18]FM_GetShiftState done [17:57:18]req_shift_opened done [17:57:18]requested_item shift.open_date is exist - process it [17:57:18]req_shift_open_date [17:57:18]req_shift_open_date done [17:57:18]produce_requested_data done [17:57:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70364,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:57:18]process_action_free close_receipt [17:57:18]json_value_free [17:57:18]json_value_free done [17:57:18]process_json_proto returns [17:57:18]Send response to host [17:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70364,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:57:18]free response buf [17:57:18]execute_script done [17:57:18]execute_script returns [17:57:18]free content buf [17:57:18]Sock 9.Close socket [17:57:18]Sock 9.Thread stoped [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:55]accept exits with 7 [17:57:55]New connection [17:57:55]New thread 3066699108 created [17:57:55]Thread 3066555748 joined [17:57:55]Waiting for new connection... [17:57:55] Sock 7.Parse request [17:57:55]Sock 7.Check first char [17:57:55]Sock 7.First char is OK [17:57:55]request: POST /json_proto HTTP/1.0 [17:57:55]Method: POST [17:57:55]URL: /json_proto [17:57:55]Method is POST - this is cgi request [17:57:55]url: /json_proto [17:57:55]query_string will be loaded in cgi processing [17:57:55]execute_cgi json_proto POST (null) [17:57:55]execute_cgi path=json_proto method=POST [17:57:55]POST find Content-Length [17:57:55]Host: 172.17.50.3:8080 [17:57:55]Content-Length: 689 [17:57:55]Content-Type: application/json [17:57:55] [17:57:55]POST finish read [17:57:55]Found Content-Length = 689 [17:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:57:55]execute_script... [17:57: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)2886134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:57:55]POST & json_proto [17:57:55]process_json_proto [17:57:55]json parsed OK: [17:57:55]protocol is kg_v1.0 [17:57:55]action value=close_receipt [17:57:55]process_action close_receipt [17:57:55]cmd_close_receipt [17:57:55]MH_GetDate [17:57:55]Write to MH i2c: F0 00 00 D5 12 D6 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: F0 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: F0 09 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: F0 09 00 D5 12 00 A3 E7 17 67 6B 98 1E 66 6E [17:57:55]GetLastDocTimeStamp 1729619834 [17:57:55]current date 1729619875 [17:57:55]FM_GetShiftState [17:57:55]SAM_PROTO_GetShiftState [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 13 01 00 [17:57:55]Write to MH i2c: E2 08 00 D6 12 80 13 01 00 00 00 00 00 65 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 0E 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 0E 00 D6 12 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 53 [17:57:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:57:55]wFMCommunicate OK [17:57:55]SAM_PROTO_GetShiftState done [17:57:55]FM_GetShiftState done [17:57:55]opened in 1729555832 [17:57:55]opened+sec_in_day 1729642232 [17:57:55]quantity*price = 100051 [17:57:55]sum+1 = 100052 [17:57: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 313 22.10.2024 17:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70365 ФПД: 57297524483371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70365&fm=57297524483371&tin=02508201610067®Number=0000000000156251&sum=100000 [17:57:56]StoreToDocumentArchive [17:57:56]shift 195 fd 70365 [17:57:56]save to /storage/0195/doc_00070365 [17:57:56]save last doc name /storage/0195/doc_00070365 to /storage/kkm_last_doc_name [17:57:56]save OK [17:57:56]Clear old archive folders... [17:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:57:56]tlvbuf is 00B37800 [17:57:56]SAM_PROTO_ClearQueue [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 09 00 00 [17:57:56]Write to MH i2c: E2 08 00 E3 12 80 09 00 00 00 00 00 00 67 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 E3 12 00 90 00 69 [17:57:56]RAPDU: 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_ClearQueue done [17:57:56]KKMCreateOFDPacket [17:57:56]OFDProtocolAddRootSTLVToBuf [17:57:56]FM_MakeSignedData [17:57:56]FM_MakeSignedData [17:57:56]SAM_PROTO_SignData [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 0D 01 02 [17:57:56]Write to MH i2c: E2 08 00 E4 12 80 0D 01 02 00 00 00 00 6F [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 E4 12 00 90 00 6A [17:57:56]RAPDU: 90 00 [17:57:56]wFMCommunicate OK [17:57:56]wFMCommunicate request_size=255 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A3 E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 12 01 [17:57:56]Write to MH i2c: E2 02 01 E5 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A3 E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 12 01 00 00 B6 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [17:57:56]RAPDU: 90 00 [17:57:56]wFMCommunicate OK [17:57:56]wFMCommunicate request_size=16 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 34 1C 9E 97 E5 2B [17:57:56]Write to MH i2c: E2 13 00 E6 12 80 0D 02 02 0B 00 00 35 04 06 00 34 1C 9E 97 E5 2B 00 00 5C [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [17:57:56]RAPDU: 90 00 [17:57:56]wFMCommunicate OK [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 0D 03 02 [17:57:56]Write to MH i2c: E2 08 00 E7 12 80 0D 03 02 00 00 00 00 74 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0B 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0B 00 E7 12 00 26 70 EA 36 81 0F 3D B2 90 00 AA [17:57:56]RAPDU: 26 70 EA 36 81 0F 3D B2 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_SignData done [17:57:56]FM_MakeSignedData done [17:57:56]CreateOFDProtocolMessage [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 E8 12 80 11 00 00 00 00 00 00 74 [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 E8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [17:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:56]wFMCommunicate OK [17:57:56]CreateOFDProtocolMessage done [17:57:56]OFDSenderStorePacket 70365 [17:57:56]StoreOFDPacket docnum=70365 [17:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E6 2C 0D 01 16 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A3 E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 12 01 00 35 04 06 00 34 1C 9E 97 E5 2B 26 70 EA 36 81 0F 3D B2 [17:57:57]CheckFolder [17:57:57]dirname=/storage/ofd_packets [17:57:57]CheckFolder done [17:57:57]ProducePacketName [17:57:57]name=ofd_packets/00070365 [17:57:57]NVStorageSaveData ofd_packets/00070365 [17:57:57]File name is /storage/ofd_packets/00070365 [17:57:57]Write 307 bytes [17:57:57]NVStorageSaveData done [17:57:57]OFDSenderStorePacket done [17:57:57]KKMCreateOFDPacket done [17:57:57]NVStorageSaveData kkm_last_timestamp [17:57:57]File name is /storage/kkm_last_timestamp [17:57:57]Write 4 bytes [17:57:57]NVStorageSaveData done [17:57:57]ExternCall_PrintAddStr [17:57:57]wPrintStart [17:57:57]Write to MH i2c: 01 00 00 E9 12 FB [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 07 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 07 00 E9 12 00 00 00 00 00 FF 0F 10 [17:57:57]RasterBufferAndPrint [17:57:57]line Счет N : (1)2886134 [17:57:57]line ИНН: 02508201610067 [17:57:57]line Контрольно-Кассовый Чек [17:57:57]line ПРОДАЖА [17:57:57]line ТРК (МРК, ГНК) : 41 [17:57:57]line Товар: 2710194240 [17:57:57]line D-ENERGY Дт-К-2 [17:57:57]line 12.960 * 77.20 [17:57:57]line = 1000.51 [17:57:57]line НДС 12% НСП 1% [17:57:57]line > о реализуемом товаре [17:57:57]line ОКРУГЛЕНИЕ: -0.51 [17:57:57]line ИТОГО: 1000.00 [17:57:57]line Внесено: 1000.00 [17:57:57]line СДАЧА: 0.00 [17:57:57]line НСП 1% : 8.85 [17:57:57]line НДС 12% : 106.25 [17:57:57]line Наличными: 1000.00 [17:57:57]line Безнал.: 0.00 [17:57:57]line Место: АЗС № 85 "Партнер Нефть" [17:57:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:57:57]line СНО: Общий режим [17:57:57]line Чек 313 22.10.2024 17:57 [17:57:57]line Смена: 195 ФФД: 1.0 [17:57:57]line ЗНМ: 0300000167 [17:57:57]line РНМ: 0000000000156251 [17:57:57]line Версия ККМ: v1.0 [17:57:57]line ФМ: 0000000000963346 [17:57:57]line ФД: 70365 [17:57:57]line ФПД: 57297524483371 [17:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70365&fm=57297524483371&tin=02508201610067®Number=0000000000156251&sum=100000 [17:57:57]OFD Sender: Processing packet 70365 [packets to send 18, broken 17] [17:57:57]ProducePacketName [17:57:57]name=ofd_packets/00070365 [17:57:57]OFD Sender: To server: pG, [17:57:57]CommunicateWithHost lk.salyk.kg:30040 [17:57:57]ConnectInit lk.salyk.kg [17:57:57]written 0, free lines is 4095 [17:57:57]Connected sock=10 [17:57: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 34 36 15 01 00 00 E6 2C 0D 01 16 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A3 E7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 12 01 00 35 04 06 00 34 1C 9E 97 E5 2B 26 70 EA 36 81 0F 3D B2 [17:57: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 34 36 4F 00 00 00 22 70 47 00 F2 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 34 36 10 04 04 00 DD 12 01 00 F4 03 04 00 44 91 17 67 B6 04 01 00 00 2E 0C AA 24 07 31 30 D7 [17:57:57]CommunicateWithHost err = 0 [17:57:57]CheckOFDResponse [17:57:57]1017 (14) - 77093643461234 [17:57:57]1041 (16) - 0000000000963346 [17:57:57]1040 (4) - 70365 [17:57:57]1012 (4) - 22.10.2024 11:49 [17:57:57]1206 (1) - 0 [17:57:57]OFD Sender: Remove packet 70365 [17:57:57]ProducePacketName [17:57:57]name=ofd_packets/00070365 [17:57:57]NVStorageDeleteData [17:57:57]Write to MH i2c: 01 00 00 14 13 27 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 07 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FA 0C 34 [17:57:57]RasterBufferAndPrint [17:57:57]line [17:57:57]line [17:57:57]line [17:57:57]line [17:57:57]line [17:57:57]written 0, free lines is 3332 [17:57:57]MH_Cut [17:57:57]Write to MH i2c: D1 01 00 1B 13 01 00 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: D1 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: D1 01 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: D1 01 00 1B 13 00 FF [17:57:57]Write to MH i2c: 01 00 00 1C 13 2F [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:58]OFD Sender: No OFD packet to send [17:57:58]*** Cut start [17:57:58]*** Partial cut [17:57:58]*** CUTSNS_PIN = 1 [17:57:58]*** CUTSNS_PIN = 0 [17:57:58]*** Brake cut motor [17:57:59]Read from MH i2c: 01 [17:57:59]MH_I2C_Read... [17:57:59]*** Stop cut motor [17:57:59]*** Cut end [17:57:59]Read from MH i2c: 01 07 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 FF 0F 44 [17:57:59]process_action close_receipt done [17:57:59]requested_data is exist [17:57:59]produce_requested_data [17:57:59]requested_item fm.sn is exist - process it [17:57:59]wFMCommunicate request_size=4 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 11 00 00 [17:57:59]Write to MH i2c: E2 08 00 1D 13 80 11 00 00 00 00 00 00 AA [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 17 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 17 00 1D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [17:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:59]wFMCommunicate OK [17:57:59]requested_item fd.num is exist - process it [17:57:59]SAM_PROTO_GetFieldsCounters [17:57:59]wFMCommunicate request_size=4 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 13 00 00 [17:57:59]Write to MH i2c: E2 08 00 1E 13 80 13 00 00 00 00 00 00 AD [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 62 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 62 00 1E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 12 01 00 0E 04 04 00 C3 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 29 [17:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 12 01 00 0E 04 04 00 C3 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 [17:57:59]wFMCommunicate OK [17:57:59]SAM_PROTO_GetFieldsCounters done [17:57:59]requested_item shift.num is exist - process it [17:57:59]requested_item shift.opened is exist - process it [17:57:59]req_shift_opened [17:57:59]FM_GetShiftState [17:57:59]SAM_PROTO_GetShiftState [17:57:59]wFMCommunicate request_size=4 [17:57:59]MH_SAM_APDU [17:57:59]CAPDU: 80 13 01 00 [17:57:59]Write to MH i2c: E2 08 00 1F 13 80 13 01 00 00 00 00 00 AF [17:57:59]Write i2c OK [17:57:59]MH_I2C_Read... [17:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:59]Read from MH i2c: E2 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0E 00 [17:57:59]MH_I2C_Read... [17:57:59]Read from MH i2c: E2 0E 00 1F 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9D [17:57:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [17:57:59]wFMCommunicate OK [17:57:59]SAM_PROTO_GetShiftState done [17:57:59]FM_GetShiftState done [17:57:59]req_shift_opened done [17:57:59]requested_item shift.open_date is exist - process it [17:57:59]req_shift_open_date [17:57:59]req_shift_open_date done [17:57:59]produce_requested_data done [17:57:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70365,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [17:57:59]process_action_free close_receipt [17:57:59]json_value_free [17:57:59]json_value_free done [17:57:59]process_json_proto returns [17:57:59]Send response to host [17:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70365,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [17:57:59]free response buf [17:57:59]execute_script done [17:57:59]execute_script returns [17:57:59]free content buf [17:57:59]Sock 7.Close socket [17:57:59]Sock 7.Thread stoped [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:06:58]accept exits with 9 [18:06:58]New connection [18:06:58]New thread 3066555748 created [18:06:58]Thread 3066699108 joined [18:06:58]Waiting for new connection... [18:06:58] Sock 9.Parse request [18:06:58]Sock 9.Check first char [18:06:58]Sock 9.First char is OK [18:06:58]request: POST /json_proto HTTP/1.0 [18:06:58]Method: POST [18:06:58]URL: /json_proto [18:06:58]Method is POST - this is cgi request [18:06:58]url: /json_proto [18:06:58]query_string will be loaded in cgi processing [18:06:58]execute_cgi json_proto POST (null) [18:06:58]execute_cgi path=json_proto method=POST [18:06:58]POST find Content-Length [18:06:58]Host: 172.17.50.3:8080 [18:06:58]Content-Length: 678 [18:06:58]Content-Type: application/json [18:06:58] [18:06:58]POST finish read [18:06:58]Found Content-Length = 678 [18:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [18:06:58]execute_script... [18:06: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)2886137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [18:06:58]POST & json_proto [18:06:58]process_json_proto [18:06:58]json parsed OK: [18:06:58]protocol is kg_v1.0 [18:06:58]action value=close_receipt [18:06:58]process_action close_receipt [18:06:58]cmd_close_receipt [18:06:58]MH_GetDate [18:06:58]Write to MH i2c: F0 00 00 20 13 22 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: F0 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: F0 09 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: F0 09 00 20 13 00 C3 E9 17 67 6B 98 1E 66 DC [18:06:58]GetLastDocTimeStamp 1729619875 [18:06:58]current date 1729620419 [18:06:58]FM_GetShiftState [18:06:58]SAM_PROTO_GetShiftState [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 13 01 00 [18:06:58]Write to MH i2c: E2 08 00 21 13 80 13 01 00 00 00 00 00 B1 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 0E 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 0E 00 21 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9F [18:06:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:06:58]wFMCommunicate OK [18:06:58]SAM_PROTO_GetShiftState done [18:06:58]FM_GetShiftState done [18:06:58]opened in 1729555832 [18:06:58]opened+sec_in_day 1729642232 [18:06:58]quantity*price = 50041 [18:06:58]sum+1 = 50042 [18:06: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 314 22.10.2024 18:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70366 ФПД: 162894363313761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180659&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70366&fm=162894363313761&tin=02508201610067®Number=0000000000156251&sum=50000 [18:07:00]StoreToDocumentArchive [18:07:00]shift 195 fd 70366 [18:07:00]save to /storage/0195/doc_00070366 [18:07:00]save last doc name /storage/0195/doc_00070366 to /storage/kkm_last_doc_name [18:07:00]save OK [18:07:00]Clear old archive folders... [18:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:00]tlvbuf is 00AA4960 [18:07:00]SAM_PROTO_ClearQueue [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 09 00 00 [18:07:00]Write to MH i2c: E2 08 00 2E 13 80 09 00 00 00 00 00 00 B3 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 2E 13 00 90 00 B5 [18:07:00]RAPDU: 90 00 [18:07:00]wFMCommunicate OK [18:07:00]SAM_PROTO_ClearQueue done [18:07:00]KKMCreateOFDPacket [18:07:00]OFDProtocolAddRootSTLVToBuf [18:07:00]FM_MakeSignedData [18:07:00]FM_MakeSignedData [18:07:00]SAM_PROTO_SignData [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 0D 01 02 [18:07:00]Write to MH i2c: E2 08 00 2F 13 80 0D 01 02 00 00 00 00 BB [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 2F 13 00 90 00 B6 [18:07:00]RAPDU: 90 00 [18:07:00]wFMCommunicate OK [18:07:00]wFMCommunicate request_size=255 [18:07:00]MH_SAM_APDU [18:07: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 3A 01 00 00 F4 03 04 00 C3 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 12 01 00 35 04 06 00 94 [18:07:00]Write to MH i2c: E2 02 01 30 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 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 3A 01 00 00 F4 03 04 00 C3 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 12 01 00 35 04 06 00 94 00 00 F1 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 30 13 00 90 00 B7 [18:07:00]RAPDU: 90 00 [18:07:00]wFMCommunicate OK [18:07:00]wFMCommunicate request_size=10 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 0D 02 02 05 26 CC A9 46 61 [18:07:00]Write to MH i2c: E2 0D 00 31 13 80 0D 02 02 05 00 26 CC A9 46 61 00 00 0A [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [18:07:00]RAPDU: 90 00 [18:07:00]wFMCommunicate OK [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 0D 03 02 [18:07:00]Write to MH i2c: E2 08 00 32 13 80 0D 03 02 00 00 00 00 C0 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 0B 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 0B 00 32 13 00 41 E4 63 97 B5 9B 29 85 90 00 DE [18:07:00]RAPDU: 41 E4 63 97 B5 9B 29 85 90 00 [18:07:00]wFMCommunicate OK [18:07:00]SAM_PROTO_SignData done [18:07:00]FM_MakeSignedData done [18:07:00]CreateOFDProtocolMessage [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 11 00 00 [18:07:00]Write to MH i2c: E2 08 00 33 13 80 11 00 00 00 00 00 00 C0 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 17 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 17 00 33 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [18:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:00]wFMCommunicate OK [18:07:00]CreateOFDProtocolMessage done [18:07:00]OFDSenderStorePacket 70366 [18:07:00]StoreOFDPacket docnum=70366 [18:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8C 5F 07 01 CD D0 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 3A 01 00 00 F4 03 04 00 C3 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 12 01 00 35 04 06 00 94 26 CC A9 46 61 41 E4 63 97 B5 9B 29 85 [18:07:00]CheckFolder [18:07:00]dirname=/storage/ofd_packets [18:07:00]CheckFolder done [18:07:00]ProducePacketName [18:07:00]name=ofd_packets/00070366 [18:07:00]NVStorageSaveData ofd_packets/00070366 [18:07:00]File name is /storage/ofd_packets/00070366 [18:07:00]Write 301 bytes [18:07:00]NVStorageSaveData done [18:07:00]OFDSenderStorePacket done [18:07:00]KKMCreateOFDPacket done [18:07:00]NVStorageSaveData kkm_last_timestamp [18:07:00]File name is /storage/kkm_last_timestamp [18:07:00]Write 4 bytes [18:07:00]NVStorageSaveData done [18:07:00]ExternCall_PrintAddStr [18:07:00]wPrintStart [18:07:00]Write to MH i2c: 01 00 00 34 13 47 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 07 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 07 00 34 13 00 00 00 00 00 FF 0F 5C [18:07:00]RasterBufferAndPrint [18:07:00]line Счет N : (1)2886137 [18:07:00]line ИНН: 02508201610067 [18:07:00]line Контрольно-Кассовый Чек [18:07:00]line ПРОДАЖА [18:07:00]line ТРК (МРК, ГНК) : 32 [18:07:00]line Товар: 2710124130 [18:07:00]line Аи-92-К-5 [18:07:00]line 7.480 * 66.90 [18:07:00]line = 500.41 [18:07:00]line НДС 12% НСП 1% [18:07:00]line > о реализуемом товаре [18:07:00]line ОКРУГЛЕНИЕ: -0.41 [18:07:00]line ИТОГО: 500.00 [18:07:00]line Внесено: 500.00 [18:07:00]line СДАЧА: 0.00 [18:07:00]line НСП 1% : 4.43 [18:07:00]line НДС 12% : 53.14 [18:07:00]line Наличными: 500.00 [18:07:00]line Безнал.: 0.00 [18:07:00]line Место: АЗС № 85 "Партнер Нефть" [18:07:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:07:00]line СНО: Общий режим [18:07:00]line Чек 314 22.10.2024 18:06 [18:07:00]line Смена: 195 ФФД: 1.0 [18:07:00]line ЗНМ: 0300000167 [18:07:00]line РНМ: 0000000000156251 [18:07:00]line Версия ККМ: v1.0 [18:07:00]line ФМ: 0000000000963346 [18:07:00]line ФД: 70366 [18:07:00]line ФПД: 162894363313761 [18:07:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180659&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70366&fm=162894363313761&tin=02508201610067®Number=0000000000156251&sum=50000 [18:07:00]OFD Sender: Processing packet 70366 [packets to send 18, broken 17] [18:07:00]ProducePacketName [18:07:00]name=ofd_packets/00070366 [18:07:00]OFD Sender: To server: pG, [18:07:00]CommunicateWithHost lk.salyk.kg:30040 [18:07:00]ConnectInit lk.salyk.kg [18:07:00]written 0, free lines is 4095 [18:07:01]Connected sock=7 [18: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 34 36 0F 01 00 00 8C 5F 07 01 CD D0 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 3A 01 00 00 F4 03 04 00 C3 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 12 01 00 35 04 06 00 94 26 CC A9 46 61 41 E4 63 97 B5 9B 29 85 [18: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 34 36 4F 00 00 00 9F FD 47 00 3C 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 34 36 10 04 04 00 DE 12 01 00 F4 03 04 00 63 93 17 67 B6 04 01 00 00 89 2A 47 47 0D F8 CE 3A [18:07:01]CommunicateWithHost err = 0 [18:07:01]CheckOFDResponse [18:07:01]1017 (14) - 77093643461234 [18:07:01]1041 (16) - 0000000000963346 [18:07:01]1040 (4) - 70366 [18:07:01]1012 (4) - 22.10.2024 11:58 [18:07:01]1206 (1) - 0 [18:07:01]OFD Sender: Remove packet 70366 [18:07:01]ProducePacketName [18:07:01]name=ofd_packets/00070366 [18:07:01]NVStorageDeleteData [18:07:01]Write to MH i2c: 01 00 00 5F 13 72 [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: 01 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: 01 07 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: 01 07 00 5F 13 00 00 00 00 00 FB 0C 80 [18:07:01]RasterBufferAndPrint [18:07:01]line [18:07:01]line [18:07:01]line [18:07:01]line [18:07:01]line [18:07:01]written 0, free lines is 3332 [18:07:01]MH_Cut [18:07:01]Write to MH i2c: D1 01 00 66 13 01 4B [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: D1 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: D1 01 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: D1 01 00 66 13 00 4A [18:07:01]Write to MH i2c: 01 00 00 67 13 7A [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]OFD Sender: No OFD packet to send [18:07:02]*** Cut start [18:07:02]*** Partial cut [18:07:02]*** CUTSNS_PIN = 1 [18:07:02]*** CUTSNS_PIN = 0 [18:07:02]*** Brake cut motor [18:07:02]Read from MH i2c: 01 [18:07:02]MH_I2C_Read... [18:07:02]*** Stop cut motor [18:07:02]*** Cut end [18:07:02]Read from MH i2c: 01 07 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: 01 07 00 67 13 00 00 00 00 00 FF 0F 8F [18:07:02]process_action close_receipt done [18:07:02]requested_data is exist [18:07:02]produce_requested_data [18:07:02]requested_item fm.sn is exist - process it [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 11 00 00 [18:07:02]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 17 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [18:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:02]wFMCommunicate OK [18:07:02]requested_item fd.num is exist - process it [18:07:02]SAM_PROTO_GetFieldsCounters [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 13 00 00 [18:07:02]Write to MH i2c: E2 08 00 69 13 80 13 00 00 00 00 00 00 F8 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 62 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 62 00 69 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 12 01 00 0E 04 04 00 C3 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 78 [18:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 12 01 00 0E 04 04 00 C3 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 [18:07:02]wFMCommunicate OK [18:07:02]SAM_PROTO_GetFieldsCounters done [18:07:02]requested_item shift.num is exist - process it [18:07:02]requested_item shift.opened is exist - process it [18:07:02]req_shift_opened [18:07:02]FM_GetShiftState [18:07:02]SAM_PROTO_GetShiftState [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 13 01 00 [18:07:02]Write to MH i2c: E2 08 00 6A 13 80 13 01 00 00 00 00 00 FA [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:03]Read from MH i2c: E2 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 6A 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E8 [18:07:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:07:03]wFMCommunicate OK [18:07:03]SAM_PROTO_GetShiftState done [18:07:03]FM_GetShiftState done [18:07:03]req_shift_opened done [18:07:03]requested_item shift.open_date is exist - process it [18:07:03]req_shift_open_date [18:07:03]req_shift_open_date done [18:07:03]produce_requested_data done [18:07:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70366,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:07:03]process_action_free close_receipt [18:07:03]json_value_free [18:07:03]json_value_free done [18:07:03]process_json_proto returns [18:07:03]Send response to host [18:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70366,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:07:03]free response buf [18:07:03]execute_script done [18:07:03]execute_script returns [18:07:03]free content buf [18:07:03]Sock 9.Close socket [18:07:03]Sock 9.Thread stoped [18:07:03]accept exits with 10 [18:07:03]New connection [18:07:03]New thread 3066699108 created [18:07:03]Thread 3066555748 joined [18:07:03]Waiting for new connection... [18:07:03] Sock 10.Parse request [18:07:03]Sock 10.Check first char [18:07:03]Sock 10.First char is OK [18:07:03]request: POST /json_proto HTTP/1.0 [18:07:03]Method: POST [18:07:03]URL: /json_proto [18:07:03]Method is POST - this is cgi request [18:07:03]url: /json_proto [18:07:03]query_string will be loaded in cgi processing [18:07:03]execute_cgi json_proto POST (null) [18:07:03]execute_cgi path=json_proto method=POST [18:07:03]POST find Content-Length [18:07:03]Host: 172.17.50.3:8080 [18:07:03]Content-Length: 776 [18:07:03]Content-Type: application/json [18:07:03] [18:07:03]POST finish read [18:07:03]Found Content-Length = 776 [18:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.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" : 1100.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:03]execute_script... [18:07: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)2886135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.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" : 1100.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:03]POST & json_proto [18:07:03]process_json_proto [18:07:03]json parsed OK: [18:07:03]protocol is kg_v1.0 [18:07:03]action value=close_receipt [18:07:03]process_action close_receipt [18:07:03]cmd_close_receipt [18:07:03]MH_GetDate [18:07:03]Write to MH i2c: F0 00 00 6B 13 6D [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 6B 13 00 C7 E9 17 67 6B 98 1E 66 2B [18:07:03]GetLastDocTimeStamp 1729620419 [18:07:03]current date 1729620423 [18:07:03]FM_GetShiftState [18:07:03]SAM_PROTO_GetShiftState [18:07:03]wFMCommunicate request_size=4 [18:07:03]MH_SAM_APDU [18:07:03]CAPDU: 80 13 01 00 [18:07:03]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:03]Read from MH i2c: E2 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EA [18:07:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:07:03]wFMCommunicate OK [18:07:03]SAM_PROTO_GetShiftState done [18:07:03]FM_GetShiftState done [18:07:03]opened in 1729555832 [18:07:03]opened+sec_in_day 1729642232 [18:07:03]quantity*price = 110010 [18:07:03]sum+1 = 110011 [18:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.10 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 0.00 Безнал.: 1100.10 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 315 22.10.2024 18:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70367 ФПД: 579793588247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70367&fm=579793588247&tin=02508201610067®Number=0000000000156251&sum=110010 [18:07:04]StoreToDocumentArchive [18:07:04]shift 195 fd 70367 [18:07:04]save to /storage/0195/doc_00070367 [18:07:04]save last doc name /storage/0195/doc_00070367 to /storage/kkm_last_doc_name [18:07:04]save OK [18:07:04]Clear old archive folders... [18:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:07:04]tlvbuf is 00C1F2C0 [18:07:04]SAM_PROTO_ClearQueue [18:07:04]wFMCommunicate request_size=4 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 09 00 00 [18:07:04]Write to MH i2c: E2 08 00 79 13 80 09 00 00 00 00 00 00 FE [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:04]Read from MH i2c: E2 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 79 13 00 90 00 00 [18:07:04]RAPDU: 90 00 [18:07:04]wFMCommunicate OK [18:07:04]SAM_PROTO_ClearQueue done [18:07:04]KKMCreateOFDPacket [18:07:04]OFDProtocolAddRootSTLVToBuf [18:07:04]FM_MakeSignedData [18:07:04]FM_MakeSignedData [18:07:04]SAM_PROTO_SignData [18:07:04]wFMCommunicate request_size=4 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 0D 01 02 [18:07:04]Write to MH i2c: E2 08 00 7A 13 80 0D 01 02 00 00 00 00 06 [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:04]Read from MH i2c: E2 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 7A 13 00 90 00 01 [18:07:04]RAPDU: 90 00 [18:07:04]wFMCommunicate OK [18:07:04]wFMCommunicate request_size=255 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C8 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 12 01 [18:07:05]Write to MH i2c: E2 02 01 7B 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C8 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 12 01 00 00 94 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=16 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 00 86 FE 64 10 17 [18:07:05]Write to MH i2c: E2 13 00 7C 13 80 0D 02 02 0B 00 00 35 04 06 00 00 86 FE 64 10 17 00 00 6D [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 03 02 [18:07:05]Write to MH i2c: E2 08 00 7D 13 80 0D 03 02 00 00 00 00 0B [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 7D 13 00 24 AE F7 D4 79 44 28 01 90 00 8F [18:07:05]RAPDU: 24 AE F7 D4 79 44 28 01 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_SignData done [18:07:05]FM_MakeSignedData done [18:07:05]CreateOFDProtocolMessage [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 11 00 00 [18:07:05]Write to MH i2c: E2 08 00 7E 13 80 11 00 00 00 00 00 00 0B [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 7E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [18:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:05]wFMCommunicate OK [18:07:05]CreateOFDProtocolMessage done [18:07:05]OFDSenderStorePacket 70367 [18:07:05]StoreOFDPacket docnum=70367 [18:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C9 2D 0D 01 A1 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C8 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 12 01 00 35 04 06 00 00 86 FE 64 10 17 24 AE F7 D4 79 44 28 01 [18:07:05]CheckFolder [18:07:05]dirname=/storage/ofd_packets [18:07:05]CheckFolder done [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00070367 [18:07:05]NVStorageSaveData ofd_packets/00070367 [18:07:05]File name is /storage/ofd_packets/00070367 [18:07:05]Write 307 bytes [18:07:05]NVStorageSaveData done [18:07:05]OFDSenderStorePacket done [18:07:05]KKMCreateOFDPacket done [18:07:05]NVStorageSaveData kkm_last_timestamp [18:07:05]File name is /storage/kkm_last_timestamp [18:07:05]Write 4 bytes [18:07:05]NVStorageSaveData done [18:07:05]ExternCall_PrintAddStr [18:07:05]wPrintStart [18:07:05]Write to MH i2c: 01 00 00 7F 13 92 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 7F 13 00 00 00 00 00 FF 0F A7 [18:07:05]RasterBufferAndPrint [18:07:05]line Счет N : (1)2886135 [18:07:05]line ИНН: 02508201610067 [18:07:05]line Контрольно-Кассовый Чек [18:07:05]line ПРОДАЖА [18:07:05]line ТРК (МРК, ГНК) : 41 [18:07:05]line Товар: 2710194240 [18:07:05]line D-ENERGY Дт-К-2 [18:07:05]line 14.250 * 77.20 [18:07:05]line = 1100.10 [18:07:05]line НДС 12% НСП 1% [18:07:05]line > о реализуемом товаре [18:07:05]line ИТОГО: 1100.10 [18:07:05]line НСП 1% : 9.73 [18:07:05]line НДС 12% : 116.82 [18:07:05]line Наличными: 0.00 [18:07:05]line Безнал.: 1100.10 [18:07:05]line Место: АЗС № 85 "Партнер Нефть" [18:07:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:07:05]line СНО: Общий режим [18:07:05]line Чек 315 22.10.2024 18:07 [18:07:05]line Смена: 195 ФФД: 1.0 [18:07:05]line ЗНМ: 0300000167 [18:07:05]line РНМ: 0000000000156251 [18:07:05]line Версия ККМ: v1.0 [18:07:05]line Платежная система: Mbank [18:07:05]line ФМ: 0000000000963346 [18:07:05]line ФД: 70367 [18:07:05]line ФПД: 579793588247 [18:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70367&fm=579793588247&tin=02508201610067®Number=0000000000156251&sum=110010 [18:07:05]OFD Sender: Processing packet 70367 [packets to send 18, broken 17] [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00070367 [18:07:05]OFD Sender: To server: pG, [18:07:05]CommunicateWithHost lk.salyk.kg:30040 [18:07:05]ConnectInit lk.salyk.kg [18:07:05]written 0, free lines is 4095 [18:07:05]Connected sock=9 [18:07: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 34 36 15 01 00 00 C9 2D 0D 01 A1 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C8 E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 12 01 00 35 04 06 00 00 86 FE 64 10 17 24 AE F7 D4 79 44 28 01 [18:07: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 34 36 4F 00 00 00 7C DD 47 00 02 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 34 36 10 04 04 00 DF 12 01 00 F4 03 04 00 68 93 17 67 B6 04 01 00 00 84 BA 7E E5 63 71 47 A3 [18:07:06]CommunicateWithHost err = 0 [18:07:06]CheckOFDResponse [18:07:06]1017 (14) - 77093643461234 [18:07:06]1041 (16) - 0000000000963346 [18:07:06]1040 (4) - 70367 [18:07:06]1012 (4) - 22.10.2024 11:58 [18:07:06]1206 (1) - 0 [18:07:06]OFD Sender: Remove packet 70367 [18:07:06]ProducePacketName [18:07:06]name=ofd_packets/00070367 [18:07:06]NVStorageDeleteData [18:07:06]Write to MH i2c: 01 00 00 A8 13 BB [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 26 0D F5 [18:07:06]RasterBufferAndPrint [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]written 0, free lines is 3382 [18:07:06]MH_Cut [18:07:06]Write to MH i2c: D1 01 00 AF 13 01 94 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 AF 13 00 93 [18:07:06]Write to MH i2c: 01 00 00 B0 13 C3 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]OFD Sender: No OFD packet to send [18:07:06]*** Cut start [18:07:06]*** Partial cut [18:07:06]*** CUTSNS_PIN = 1 [18:07:06]*** CUTSNS_PIN = 0 [18:07:07]*** Brake cut motor [18:07:07]Read from MH i2c: 01 [18:07:07]MH_I2C_Read... [18:07:07]*** Stop cut motor [18:07:07]*** Cut end [18:07:07]Read from MH i2c: 01 07 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [18:07:07]process_action close_receipt done [18:07:07]requested_data is exist [18:07:07]produce_requested_data [18:07:07]requested_item fm.sn is exist - process it [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 11 00 00 [18:07:07]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [18:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:07]wFMCommunicate OK [18:07:07]requested_item fd.num is exist - process it [18:07:07]SAM_PROTO_GetFieldsCounters [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 00 00 [18:07:07]Write to MH i2c: E2 08 00 B2 13 80 13 00 00 00 00 00 00 41 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 B2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 12 01 00 0E 04 04 00 C3 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 C5 [18:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 12 01 00 0E 04 04 00 C3 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 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetFieldsCounters done [18:07:07]requested_item shift.num is exist - process it [18:07:07]requested_item shift.opened is exist - process it [18:07:07]req_shift_opened [18:07:07]FM_GetShiftState [18:07:07]SAM_PROTO_GetShiftState [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 01 00 [18:07:07]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 31 [18:07:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetShiftState done [18:07:07]FM_GetShiftState done [18:07:07]req_shift_opened done [18:07:07]requested_item shift.open_date is exist - process it [18:07:07]req_shift_open_date [18:07:07]req_shift_open_date done [18:07:07]produce_requested_data done [18:07:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70367,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:07:07]process_action_free close_receipt [18:07:07]json_value_free [18:07:07]json_value_free done [18:07:07]process_json_proto returns [18:07:07]Send response to host [18:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70367,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:07:07]free response buf [18:07:07]execute_script done [18:07:07]execute_script returns [18:07:07]free content buf [18:07:07]Sock 10.Close socket [18:07:07]Sock 10.Thread stoped [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:24]accept exits with 7 [18:07:24]New connection [18:07:24]New thread 3066555748 created [18:07:24]Thread 3066699108 joined [18:07:24]Waiting for new connection... [18:07:24] Sock 7.Parse request [18:07:24]Sock 7.Check first char [18:07:24]Sock 7.First char is OK [18:07:24]request: POST /json_proto HTTP/1.0 [18:07:24]Method: POST [18:07:24]URL: /json_proto [18:07:24]Method is POST - this is cgi request [18:07:24]url: /json_proto [18:07:24]query_string will be loaded in cgi processing [18:07:24]execute_cgi json_proto POST (null) [18:07:24]execute_cgi path=json_proto method=POST [18:07:24]POST find Content-Length [18:07:24]Host: 172.17.50.3:8080 [18:07:24]Content-Length: 682 [18:07:24]Content-Type: application/json [18:07:24] [18:07:24]POST finish read [18:07:24]Found Content-Length = 682 [18:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:07:24]execute_script... [18:07: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)2886136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:07:24]POST & json_proto [18:07:24]process_json_proto [18:07:24]json parsed OK: [18:07:24]protocol is kg_v1.0 [18:07:24]action value=close_receipt [18:07:24]process_action close_receipt [18:07:24]cmd_close_receipt [18:07:24]MH_GetDate [18:07:24]Write to MH i2c: F0 00 00 B4 13 B6 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: F0 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: F0 09 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: F0 09 00 B4 13 00 DC E9 17 67 6B 98 1E 66 89 [18:07:24]GetLastDocTimeStamp 1729620424 [18:07:24]current date 1729620444 [18:07:24]FM_GetShiftState [18:07:24]SAM_PROTO_GetShiftState [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 13 01 00 [18:07:24]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0E 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 33 [18:07:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_GetShiftState done [18:07:24]FM_GetShiftState done [18:07:24]opened in 1729555832 [18:07:24]opened+sec_in_day 1729642232 [18:07:24]quantity*price = 50025 [18:07:24]sum+1 = 50026 [18:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 316 22.10.2024 18:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70368 ФПД: 256457551003420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70368&fm=256457551003420&tin=02508201610067®Number=0000000000156251&sum=50000 [18:07:25]StoreToDocumentArchive [18:07:25]shift 195 fd 70368 [18:07:25]save to /storage/0195/doc_00070368 [18:07:25]save last doc name /storage/0195/doc_00070368 to /storage/kkm_last_doc_name [18:07:25]save OK [18:07:25]Clear old archive folders... [18:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:07:25]tlvbuf is 00B311E0 [18:07:25]SAM_PROTO_ClearQueue [18:07:25]wFMCommunicate request_size=4 [18:07:25]MH_SAM_APDU [18:07:25]CAPDU: 80 09 00 00 [18:07:25]Write to MH i2c: E2 08 00 C2 13 80 09 00 00 00 00 00 00 47 [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 [18:07:25]MH_I2C_Read... [18:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:25]Read from MH i2c: E2 03 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [18:07:25]RAPDU: 90 00 [18:07:25]wFMCommunicate OK [18:07:25]SAM_PROTO_ClearQueue done [18:07:25]KKMCreateOFDPacket [18:07:25]OFDProtocolAddRootSTLVToBuf [18:07:25]FM_MakeSignedData [18:07:25]FM_MakeSignedData [18:07:25]SAM_PROTO_SignData [18:07:25]wFMCommunicate request_size=4 [18:07:25]MH_SAM_APDU [18:07:25]CAPDU: 80 0D 01 02 [18:07:25]Write to MH i2c: E2 08 00 C3 13 80 0D 01 02 00 00 00 00 4F [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:25]Read from MH i2c: E2 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 03 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [18:07:25]RAPDU: 90 00 [18:07:25]wFMCommunicate OK [18:07:25]wFMCommunicate request_size=255 [18:07:25]MH_SAM_APDU [18:07:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 3C 01 00 00 F4 03 04 00 DD E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 12 01 00 35 04 06 00 E9 3F [18:07:25]Write to MH i2c: E2 02 01 C4 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 3C 01 00 00 F4 03 04 00 DD E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 12 01 00 35 04 06 00 E9 3F 00 00 F1 [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:25]Read from MH i2c: E2 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 03 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [18:07:25]RAPDU: 90 00 [18:07:25]wFMCommunicate OK [18:07:25]wFMCommunicate request_size=9 [18:07:25]MH_SAM_APDU [18:07:25]CAPDU: 80 0D 02 02 04 2D 3A 3F 1C [18:07:25]Write to MH i2c: E2 0C 00 C5 13 80 0D 02 02 04 00 2D 3A 3F 1C 00 00 1C [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 03 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [18:07:26]RAPDU: 90 00 [18:07:26]wFMCommunicate OK [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 0D 03 02 [18:07:26]Write to MH i2c: E2 08 00 C6 13 80 0D 03 02 00 00 00 00 54 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0B 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0B 00 C6 13 00 34 2E D9 45 0E C8 4C 92 90 00 89 [18:07:26]RAPDU: 34 2E D9 45 0E C8 4C 92 90 00 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_SignData done [18:07:26]FM_MakeSignedData done [18:07:26]CreateOFDProtocolMessage [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 11 00 00 [18:07:26]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [18:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:26]wFMCommunicate OK [18:07:26]CreateOFDProtocolMessage done [18:07:26]OFDSenderStorePacket 70368 [18:07:26]StoreOFDPacket docnum=70368 [18:07:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 66 09 06 01 38 C2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 3C 01 00 00 F4 03 04 00 DD E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 12 01 00 35 04 06 00 E9 3F 2D 3A 3F 1C 34 2E D9 45 0E C8 4C 92 [18:07:26]CheckFolder [18:07:26]dirname=/storage/ofd_packets [18:07:26]CheckFolder done [18:07:26]ProducePacketName [18:07:26]name=ofd_packets/00070368 [18:07:26]NVStorageSaveData ofd_packets/00070368 [18:07:26]File name is /storage/ofd_packets/00070368 [18:07:26]Write 300 bytes [18:07:26]NVStorageSaveData done [18:07:26]OFDSenderStorePacket done [18:07:26]KKMCreateOFDPacket done [18:07:26]NVStorageSaveData kkm_last_timestamp [18:07:26]File name is /storage/kkm_last_timestamp [18:07:26]Write 4 bytes [18:07:26]NVStorageSaveData done [18:07:26]ExternCall_PrintAddStr [18:07:26]wPrintStart [18:07:26]Write to MH i2c: 01 00 00 C8 13 DB [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 FF 0F F0 [18:07:26]RasterBufferAndPrint [18:07:26]line Счет N : (1)2886136 [18:07:26]line ИНН: 02508201610067 [18:07:26]line Контрольно-Кассовый Чек [18:07:26]line ПРОДАЖА [18:07:26]line ТРК (МРК, ГНК) : 71 [18:07:26]line Товар: 2711129700 [18:07:26]line ГАЗ-К-3 [18:07:26]line 12.860 * 38.90 [18:07:26]line = 500.25 [18:07:26]line НДС 12% НСП 1% [18:07:26]line > о реализуемом товаре [18:07:26]line ОКРУГЛЕНИЕ: -0.25 [18:07:26]line ИТОГО: 500.00 [18:07:26]line Внесено: 500.00 [18:07:26]line СДАЧА: 0.00 [18:07:26]line НСП 1% : 4.43 [18:07:26]line НДС 12% : 53.12 [18:07:26]line Наличными: 500.00 [18:07:26]line Безнал.: 0.00 [18:07:26]line Место: АЗС № 85 "Партнер Нефть" [18:07:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:07:26]line СНО: Общий режим [18:07:26]line Чек 316 22.10.2024 18:07 [18:07:26]line Смена: 195 ФФД: 1.0 [18:07:26]line ЗНМ: 0300000167 [18:07:26]line РНМ: 0000000000156251 [18:07:26]line Версия ККМ: v1.0 [18:07:26]line ФМ: 0000000000963346 [18:07:26]line ФД: 70368 [18:07:26]line ФПД: 256457551003420 [18:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70368&fm=256457551003420&tin=02508201610067®Number=0000000000156251&sum=50000 [18:07:26]written 0, free lines is 4095 [18:07:26]OFD Sender: Processing packet 70368 [packets to send 18, broken 17] [18:07:26]ProducePacketName [18:07:26]name=ofd_packets/00070368 [18:07:26]OFD Sender: To server: pG, [18:07:26]CommunicateWithHost lk.salyk.kg:30040 [18:07:26]ConnectInit lk.salyk.kg [18:07:26]Connected sock=10 [18:07: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 34 36 0E 01 00 00 66 09 06 01 38 C2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 3C 01 00 00 F4 03 04 00 DD E9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 12 01 00 35 04 06 00 E9 3F 2D 3A 3F 1C 34 2E D9 45 0E C8 4C 92 [18:07: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 34 36 4F 00 00 00 B6 F5 47 00 D9 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 12 01 00 F4 03 04 00 7C 93 17 67 B6 04 01 00 00 82 D8 C9 87 BB 85 A5 1B [18:07:26]CommunicateWithHost err = 0 [18:07:26]CheckOFDResponse [18:07:26]1017 (14) - 77093643461234 [18:07:26]1041 (16) - 0000000000963346 [18:07:26]1040 (4) - 70368 [18:07:26]1012 (4) - 22.10.2024 11:58 [18:07:26]1206 (1) - 0 [18:07:26]OFD Sender: Remove packet 70368 [18:07:26]ProducePacketName [18:07:26]name=ofd_packets/00070368 [18:07:26]NVStorageDeleteData [18:07:26]Write to MH i2c: 01 00 00 F3 13 06 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 F3 13 00 00 00 00 00 F6 0C 0F [18:07:26]RasterBufferAndPrint [18:07:26]line [18:07:26]line [18:07:26]line [18:07:26]line [18:07:26]line [18:07:26]written 0, free lines is 3330 [18:07:26]MH_Cut [18:07:26]Write to MH i2c: D1 01 00 FA 13 01 DF [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: D1 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: D1 01 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: D1 01 00 FA 13 00 DE [18:07:26]Write to MH i2c: 01 00 00 FB 13 0E [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:27]OFD Sender: No OFD packet to send [18:07:27]*** Cut start [18:07:27]*** Partial cut [18:07:27]*** CUTSNS_PIN = 1 [18:07:27]*** CUTSNS_PIN = 0 [18:07:27]*** Brake cut motor [18:07:27]Read from MH i2c: 01 [18:07:27]MH_I2C_Read... [18:07:27]*** Stop cut motor [18:07:27]*** Cut end [18:07:27]Read from MH i2c: 01 07 00 [18:07:27]MH_I2C_Read... [18:07:27]Read from MH i2c: 01 07 00 FB 13 00 00 00 00 00 FF 0F 23 [18:07:27]process_action close_receipt done [18:07:27]requested_data is exist [18:07:27]produce_requested_data [18:07:27]requested_item fm.sn is exist - process it [18:07:27]wFMCommunicate request_size=4 [18:07:27]MH_SAM_APDU [18:07:27]CAPDU: 80 11 00 00 [18:07:27]Write to MH i2c: E2 08 00 FC 13 80 11 00 00 00 00 00 00 89 [18:07:27]Write i2c OK [18:07:27]MH_I2C_Read... [18:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:27]Read from MH i2c: E2 [18:07:27]MH_I2C_Read... [18:07:27]Read from MH i2c: E2 17 00 [18:07:27]MH_I2C_Read... [18:07:27]Read from MH i2c: E2 17 00 FC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [18:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:27]wFMCommunicate OK [18:07:27]requested_item fd.num is exist - process it [18:07:27]SAM_PROTO_GetFieldsCounters [18:07:27]wFMCommunicate request_size=4 [18:07:27]MH_SAM_APDU [18:07:27]CAPDU: 80 13 00 00 [18:07:27]Write to MH i2c: E2 08 00 FD 13 80 13 00 00 00 00 00 00 8C [18:07:27]Write i2c OK [18:07:27]MH_I2C_Read... [18:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:28]Read from MH i2c: E2 [18:07:28]MH_I2C_Read... [18:07:28]Read from MH i2c: E2 62 00 [18:07:28]MH_I2C_Read... [18:07:28]Read from MH i2c: E2 62 00 FD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 12 01 00 0E 04 04 00 C3 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 14 [18:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 12 01 00 0E 04 04 00 C3 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 [18:07:28]wFMCommunicate OK [18:07:28]SAM_PROTO_GetFieldsCounters done [18:07:28]requested_item shift.num is exist - process it [18:07:28]requested_item shift.opened is exist - process it [18:07:28]req_shift_opened [18:07:28]FM_GetShiftState [18:07:28]SAM_PROTO_GetShiftState [18:07:28]wFMCommunicate request_size=4 [18:07:28]MH_SAM_APDU [18:07:28]CAPDU: 80 13 01 00 [18:07:28]Write to MH i2c: E2 08 00 FE 13 80 13 01 00 00 00 00 00 8E [18:07:28]Write i2c OK [18:07:28]MH_I2C_Read... [18:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:28]Read from MH i2c: E2 [18:07:28]MH_I2C_Read... [18:07:28]Read from MH i2c: E2 0E 00 [18:07:28]MH_I2C_Read... [18:07:28]Read from MH i2c: E2 0E 00 FE 13 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7C [18:07:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:07:28]wFMCommunicate OK [18:07:28]SAM_PROTO_GetShiftState done [18:07:28]FM_GetShiftState done [18:07:28]req_shift_opened done [18:07:28]requested_item shift.open_date is exist - process it [18:07:28]req_shift_open_date [18:07:28]req_shift_open_date done [18:07:28]produce_requested_data done [18:07:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70368,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:07:28]process_action_free close_receipt [18:07:28]json_value_free [18:07:28]json_value_free done [18:07:28]process_json_proto returns [18:07:28]Send response to host [18:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70368,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:07:28]free response buf [18:07:28]execute_script done [18:07:28]execute_script returns [18:07:28]free content buf [18:07:28]Sock 7.Close socket [18:07:28]Sock 7.Thread stoped [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:55]accept exits with 9 [18:08:55]New connection [18:08:55]New thread 3066699108 created [18:08:55]Thread 3066555748 joined [18:08:55]Waiting for new connection... [18:08:55] Sock 9.Parse request [18:08:55]Sock 9.Check first char [18:08:55]Sock 9.First char is OK [18:08:55]request: POST /json_proto HTTP/1.0 [18:08:55]Method: POST [18:08:55]URL: /json_proto [18:08:55]Method is POST - this is cgi request [18:08:55]url: /json_proto [18:08:55]query_string will be loaded in cgi processing [18:08:55]execute_cgi json_proto POST (null) [18:08:55]execute_cgi path=json_proto method=POST [18:08:55]POST find Content-Length [18:08:55]Host: 172.17.50.3:8080 [18:08:55]Content-Length: 678 [18:08:55]Content-Type: application/json [18:08:55] [18:08:55]POST finish read [18:08:55]Found Content-Length = 678 [18:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:08:55]execute_script... [18: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 : (1)2886138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:08:55]POST & json_proto [18:08:55]process_json_proto [18:08:55]json parsed OK: [18:08:55]protocol is kg_v1.0 [18:08:55]action value=close_receipt [18:08:55]process_action close_receipt [18:08:55]cmd_close_receipt [18:08:55]MH_GetDate [18:08:55]Write to MH i2c: F0 00 00 FF 13 01 [18:08:55]Write i2c OK [18:08:55]MH_I2C_Read... [18:08:55]Read from MH i2c: F0 [18:08:55]MH_I2C_Read... [18:08:55]Read from MH i2c: F0 09 00 [18:08:55]MH_I2C_Read... [18:08:55]Read from MH i2c: F0 09 00 FF 13 00 37 EA 17 67 6B 98 1E 66 30 [18:08:55]GetLastDocTimeStamp 1729620445 [18:08:55]current date 1729620535 [18:08:55]FM_GetShiftState [18:08:55]SAM_PROTO_GetShiftState [18:08:55]wFMCommunicate request_size=4 [18:08:55]MH_SAM_APDU [18:08:55]CAPDU: 80 13 01 00 [18:08:55]Write to MH i2c: E2 08 00 00 14 80 13 01 00 00 00 00 00 91 [18:08:55]Write i2c OK [18:08:55]MH_I2C_Read... [18:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:55]Read from MH i2c: E2 [18:08:55]MH_I2C_Read... [18:08:55]Read from MH i2c: E2 0E 00 [18:08:55]MH_I2C_Read... [18:08:55]Read from MH i2c: E2 0E 00 00 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7F [18:08:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:08:55]wFMCommunicate OK [18:08:55]SAM_PROTO_GetShiftState done [18:08:55]FM_GetShiftState done [18:08:55]opened in 1729555832 [18:08:55]opened+sec_in_day 1729642232 [18:08:55]quantity*price = 60009 [18:08:55]sum+1 = 60010 [18:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 317 22.10.2024 18:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70369 ФПД: 201895278400502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70369&fm=201895278400502&tin=02508201610067®Number=0000000000156251&sum=60000 [18:08:56]StoreToDocumentArchive [18:08:56]shift 195 fd 70369 [18:08:56]save to /storage/0195/doc_00070369 [18:08:56]save last doc name /storage/0195/doc_00070369 to /storage/kkm_last_doc_name [18:08:56]save OK [18:08:56]Clear old archive folders... [18:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:56]tlvbuf is 00C1FEA0 [18:08:56]SAM_PROTO_ClearQueue [18:08:56]wFMCommunicate request_size=4 [18:08:56]MH_SAM_APDU [18:08:56]CAPDU: 80 09 00 00 [18:08:56]Write to MH i2c: E2 08 00 0D 14 80 09 00 00 00 00 00 00 93 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [18:08:56]RAPDU: 90 00 [18:08:56]wFMCommunicate OK [18:08:56]SAM_PROTO_ClearQueue done [18:08:56]KKMCreateOFDPacket [18:08:56]OFDProtocolAddRootSTLVToBuf [18:08:56]FM_MakeSignedData [18:08:56]FM_MakeSignedData [18:08:56]SAM_PROTO_SignData [18:08:56]wFMCommunicate request_size=4 [18:08:56]MH_SAM_APDU [18:08:56]CAPDU: 80 0D 01 02 [18:08:56]Write to MH i2c: E2 08 00 0E 14 80 0D 01 02 00 00 00 00 9B [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [18:08:56]RAPDU: 90 00 [18:08:56]wFMCommunicate OK [18:08:56]wFMCommunicate request_size=255 [18:08:56]MH_SAM_APDU [18:08: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 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 3D 01 00 00 F4 03 04 00 37 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 12 01 00 35 04 06 00 B7 [18:08:56]Write to MH i2c: E2 02 01 0F 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 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 3D 01 00 00 F4 03 04 00 37 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 12 01 00 35 04 06 00 B7 00 00 4C [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [18:08:56]RAPDU: 90 00 [18:08:56]wFMCommunicate OK [18:08:56]wFMCommunicate request_size=10 [18:08:56]MH_SAM_APDU [18:08:56]CAPDU: 80 0D 02 02 05 9F 68 59 D3 F6 [18:08:56]Write to MH i2c: E2 0D 00 10 14 80 0D 02 02 05 00 9F 68 59 D3 F6 00 00 D1 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 03 00 10 14 00 90 00 98 [18:08:56]RAPDU: 90 00 [18:08:56]wFMCommunicate OK [18:08:56]wFMCommunicate request_size=4 [18:08:56]MH_SAM_APDU [18:08:56]CAPDU: 80 0D 03 02 [18:08:56]Write to MH i2c: E2 08 00 11 14 80 0D 03 02 00 00 00 00 A0 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 0B 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 0B 00 11 14 00 6B 35 41 B5 71 33 3D 07 90 00 1F [18:08:56]RAPDU: 6B 35 41 B5 71 33 3D 07 90 00 [18:08:56]wFMCommunicate OK [18:08:56]SAM_PROTO_SignData done [18:08:56]FM_MakeSignedData done [18:08:56]CreateOFDProtocolMessage [18:08:56]wFMCommunicate request_size=4 [18:08:56]MH_SAM_APDU [18:08:56]CAPDU: 80 11 00 00 [18:08:56]Write to MH i2c: E2 08 00 12 14 80 11 00 00 00 00 00 00 A0 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:56]Read from MH i2c: E2 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 17 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: E2 17 00 12 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [18:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:08:56]wFMCommunicate OK [18:08:56]CreateOFDProtocolMessage done [18:08:56]OFDSenderStorePacket 70369 [18:08:56]StoreOFDPacket docnum=70369 [18:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 81 07 01 E7 DD 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 3D 01 00 00 F4 03 04 00 37 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 12 01 00 35 04 06 00 B7 9F 68 59 D3 F6 6B 35 41 B5 71 33 3D 07 [18:08:56]CheckFolder [18:08:56]dirname=/storage/ofd_packets [18:08:56]CheckFolder done [18:08:56]ProducePacketName [18:08:56]name=ofd_packets/00070369 [18:08:56]NVStorageSaveData ofd_packets/00070369 [18:08:56]File name is /storage/ofd_packets/00070369 [18:08:56]Write 301 bytes [18:08:56]NVStorageSaveData done [18:08:56]OFDSenderStorePacket done [18:08:56]KKMCreateOFDPacket done [18:08:56]NVStorageSaveData kkm_last_timestamp [18:08:56]File name is /storage/kkm_last_timestamp [18:08:56]Write 4 bytes [18:08:56]NVStorageSaveData done [18:08:56]ExternCall_PrintAddStr [18:08:56]wPrintStart [18:08:56]Write to MH i2c: 01 00 00 13 14 27 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 13 14 00 00 00 00 00 FF 0F 3C [18:08:56]RasterBufferAndPrint [18:08:56]line Счет N : (1)2886138 [18:08:56]line ИНН: 02508201610067 [18:08:56]line Контрольно-Кассовый Чек [18:08:56]line ПРОДАЖА [18:08:56]line ТРК (МРК, ГНК) : 42 [18:08:56]line Товар: 2710124130 [18:08:56]line Аи-92-К-5 [18:08:56]line 8.970 * 66.90 [18:08:56]line = 600.09 [18:08:56]line НДС 12% НСП 1% [18:08:56]line > о реализуемом товаре [18:08:56]line ОКРУГЛЕНИЕ: -0.09 [18:08:56]line ИТОГО: 600.00 [18:08:56]line Внесено: 600.00 [18:08:56]line СДАЧА: 0.00 [18:08:56]line НСП 1% : 5.31 [18:08:56]line НДС 12% : 63.73 [18:08:56]line Наличными: 600.00 [18:08:56]line Безнал.: 0.00 [18:08:56]line Место: АЗС № 85 "Партнер Нефть" [18:08:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:08:56]line СНО: Общий режим [18:08:56]line Чек 317 22.10.2024 18:08 [18:08:56]line Смена: 195 ФФД: 1.0 [18:08:56]line ЗНМ: 0300000167 [18:08:56]line РНМ: 0000000000156251 [18:08:56]line Версия ККМ: v1.0 [18:08:56]line ФМ: 0000000000963346 [18:08:56]line ФД: 70369 [18:08:56]line ФПД: 201895278400502 [18:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70369&fm=201895278400502&tin=02508201610067®Number=0000000000156251&sum=60000 [18:08:57]OFD Sender: Processing packet 70369 [packets to send 18, broken 17] [18:08:57]ProducePacketName [18:08:57]name=ofd_packets/00070369 [18:08:57]OFD Sender: To server: pG, [18:08:57]CommunicateWithHost lk.salyk.kg:30040 [18:08:57]ConnectInit lk.salyk.kg [18:08:57]written 0, free lines is 4095 [18:08:57]Connected sock=7 [18: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 34 36 0F 01 00 00 98 81 07 01 E7 DD 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 3D 01 00 00 F4 03 04 00 37 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 12 01 00 35 04 06 00 B7 9F 68 59 D3 F6 6B 35 41 B5 71 33 3D 07 [18: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 34 36 4F 00 00 00 06 3B 47 00 81 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 34 36 10 04 04 00 E1 12 01 00 F4 03 04 00 D7 93 17 67 B6 04 01 00 00 40 CD 8C 61 CA 28 0E 98 [18:08:57]CommunicateWithHost err = 0 [18:08:57]CheckOFDResponse [18:08:57]1017 (14) - 77093643461234 [18:08:57]1041 (16) - 0000000000963346 [18:08:57]1040 (4) - 70369 [18:08:57]1012 (4) - 22.10.2024 12:00 [18:08:57]1206 (1) - 0 [18:08:57]OFD Sender: Remove packet 70369 [18:08:57]ProducePacketName [18:08:57]name=ofd_packets/00070369 [18:08:57]NVStorageDeleteData [18:08:57]Write to MH i2c: 01 00 00 3E 14 52 [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: 01 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: 01 07 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: 01 07 00 3E 14 00 00 00 00 00 DE 0C 43 [18:08:57]RasterBufferAndPrint [18:08:57]line [18:08:57]line [18:08:57]line [18:08:57]line [18:08:57]line [18:08:57]written 0, free lines is 3300 [18:08:57]MH_Cut [18:08:57]Write to MH i2c: D1 01 00 45 14 01 2B [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: D1 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: D1 01 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: D1 01 00 45 14 00 2A [18:08:57]Write to MH i2c: 01 00 00 46 14 5A [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]OFD Sender: No OFD packet to send [18:08:58]*** Cut start [18:08:58]*** Partial cut [18:08:58]*** CUTSNS_PIN = 1 [18:08:58]*** CUTSNS_PIN = 0 [18:08:58]*** Brake cut motor [18:08:58]Read from MH i2c: 01 [18:08:58]MH_I2C_Read... [18:08:58]*** Stop cut motor [18:08:58]*** Cut end [18:08:58]Read from MH i2c: 01 07 00 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: 01 07 00 46 14 00 00 00 00 00 FF 0F 6F [18:08:58]process_action close_receipt done [18:08:58]requested_data is exist [18:08:58]produce_requested_data [18:08:58]requested_item fm.sn is exist - process it [18:08:58]wFMCommunicate request_size=4 [18:08:58]MH_SAM_APDU [18:08:58]CAPDU: 80 11 00 00 [18:08:58]Write to MH i2c: E2 08 00 47 14 80 11 00 00 00 00 00 00 D5 [18:08:58]Write i2c OK [18:08:58]MH_I2C_Read... [18:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:58]Read from MH i2c: E2 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: E2 17 00 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: E2 17 00 47 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [18:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:08:58]wFMCommunicate OK [18:08:58]requested_item fd.num is exist - process it [18:08:58]SAM_PROTO_GetFieldsCounters [18:08:58]wFMCommunicate request_size=4 [18:08:58]MH_SAM_APDU [18:08:58]CAPDU: 80 13 00 00 [18:08:58]Write to MH i2c: E2 08 00 48 14 80 13 00 00 00 00 00 00 D8 [18:08:58]Write i2c OK [18:08:58]MH_I2C_Read... [18:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:59]Read from MH i2c: E2 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 62 00 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 62 00 48 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 12 01 00 0E 04 04 00 C3 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 64 [18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 12 01 00 0E 04 04 00 C3 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 [18:08:59]wFMCommunicate OK [18:08:59]SAM_PROTO_GetFieldsCounters done [18:08:59]requested_item shift.num is exist - process it [18:08:59]requested_item shift.opened is exist - process it [18:08:59]req_shift_opened [18:08:59]FM_GetShiftState [18:08:59]SAM_PROTO_GetShiftState [18:08:59]wFMCommunicate request_size=4 [18:08:59]MH_SAM_APDU [18:08:59]CAPDU: 80 13 01 00 [18:08:59]Write to MH i2c: E2 08 00 49 14 80 13 01 00 00 00 00 00 DA [18:08:59]Write i2c OK [18:08:59]MH_I2C_Read... [18:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:59]Read from MH i2c: E2 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 0E 00 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 0E 00 49 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C8 [18:08:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:08:59]wFMCommunicate OK [18:08:59]SAM_PROTO_GetShiftState done [18:08:59]FM_GetShiftState done [18:08:59]req_shift_opened done [18:08:59]requested_item shift.open_date is exist - process it [18:08:59]req_shift_open_date [18:08:59]req_shift_open_date done [18:08:59]produce_requested_data done [18:08:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70369,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:08:59]process_action_free close_receipt [18:08:59]json_value_free [18:08:59]json_value_free done [18:08:59]process_json_proto returns [18:08:59]Send response to host [18:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70369,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:08:59]free response buf [18:08:59]execute_script done [18:08:59]execute_script returns [18:08:59]free content buf [18:08:59]Sock 9.Close socket [18:08:59]Sock 9.Thread stoped [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:54]accept exits with 10 [18:09:54]New connection [18:09:54]New thread 3066555748 created [18:09:54]Thread 3066699108 joined [18:09:54]Waiting for new connection... [18:09:54] Sock 10.Parse request [18:09:54]Sock 10.Check first char [18:09:54]Sock 10.First char is OK [18:09:54]request: POST /json_proto HTTP/1.0 [18:09:54]Method: POST [18:09:54]URL: /json_proto [18:09:54]Method is POST - this is cgi request [18:09:54]url: /json_proto [18:09:54]query_string will be loaded in cgi processing [18:09:54]execute_cgi json_proto POST (null) [18:09:54]execute_cgi path=json_proto method=POST [18:09:54]POST find Content-Length [18:09:54]Host: 172.17.50.3:8080 [18:09:54]Content-Length: 678 [18:09:54]Content-Type: application/json [18:09:54] [18:09:54]POST finish read [18:09:54]Found Content-Length = 678 [18:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [18:09:54]execute_script... [18:09: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)2886139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [18:09:54]POST & json_proto [18:09:54]process_json_proto [18:09:54]json parsed OK: [18:09:54]protocol is kg_v1.0 [18:09:54]action value=close_receipt [18:09:54]process_action close_receipt [18:09:54]cmd_close_receipt [18:09:54]MH_GetDate [18:09:54]Write to MH i2c: F0 00 00 4A 14 4D [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 09 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 09 00 4A 14 00 73 EA 17 67 6B 98 1E 66 B8 [18:09:54]GetLastDocTimeStamp 1729620535 [18:09:54]current date 1729620595 [18:09:54]FM_GetShiftState [18:09:54]SAM_PROTO_GetShiftState [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 13 01 00 [18:09:54]Write to MH i2c: E2 08 00 4B 14 80 13 01 00 00 00 00 00 DC [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0E 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0E 00 4B 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CA [18:09:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:09:54]wFMCommunicate OK [18:09:54]SAM_PROTO_GetShiftState done [18:09:54]FM_GetShiftState done [18:09:54]opened in 1729555832 [18:09:54]opened+sec_in_day 1729642232 [18:09:54]quantity*price = 60027 [18:09:54]sum+1 = 60029 [18:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 318 22.10.2024 18:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70370 ФПД: 154106145440252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70370&fm=154106145440252&tin=02508201610067®Number=0000000000156251&sum=60000 [18:09:55]StoreToDocumentArchive [18:09:55]shift 195 fd 70370 [18:09:55]save to /storage/0195/doc_00070370 [18:09:55]save last doc name /storage/0195/doc_00070370 to /storage/kkm_last_doc_name [18:09:55]save OK [18:09:55]Clear old archive folders... [18:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:55]tlvbuf is 00B2EB90 [18:09:55]SAM_PROTO_ClearQueue [18:09:55]wFMCommunicate request_size=4 [18:09:55]MH_SAM_APDU [18:09:55]CAPDU: 80 09 00 00 [18:09:55]Write to MH i2c: E2 08 00 58 14 80 09 00 00 00 00 00 00 DE [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:55]Read from MH i2c: E2 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: E2 03 00 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [18:09:55]RAPDU: 90 00 [18:09:55]wFMCommunicate OK [18:09:55]SAM_PROTO_ClearQueue done [18:09:55]KKMCreateOFDPacket [18:09:55]OFDProtocolAddRootSTLVToBuf [18:09:55]FM_MakeSignedData [18:09:55]FM_MakeSignedData [18:09:55]SAM_PROTO_SignData [18:09:55]wFMCommunicate request_size=4 [18:09:55]MH_SAM_APDU [18:09:55]CAPDU: 80 0D 01 02 [18:09:55]Write to MH i2c: E2 08 00 59 14 80 0D 01 02 00 00 00 00 E6 [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:55]Read from MH i2c: E2 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: E2 03 00 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [18:09:55]RAPDU: 90 00 [18:09:55]wFMCommunicate OK [18:09:55]wFMCommunicate request_size=255 [18:09:55]MH_SAM_APDU [18:09: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 01 00 00 F4 03 04 00 73 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 12 01 00 35 04 06 00 8C [18:09:55]Write to MH i2c: E2 02 01 5A 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 01 00 00 F4 03 04 00 73 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 12 01 00 35 04 06 00 8C 00 00 2B [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 5A 14 00 90 00 E2 [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]wFMCommunicate request_size=10 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 02 02 05 28 A2 0E 81 FC [18:09:56]Write to MH i2c: E2 0D 00 5B 14 80 0D 02 02 05 00 28 A2 0E 81 FC 00 00 48 [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]wFMCommunicate request_size=4 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 03 02 [18:09:56]Write to MH i2c: E2 08 00 5C 14 80 0D 03 02 00 00 00 00 EB [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 0B 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 0B 00 5C 14 00 58 10 30 E2 50 B4 5C D2 90 00 98 [18:09:56]RAPDU: 58 10 30 E2 50 B4 5C D2 90 00 [18:09:56]wFMCommunicate OK [18:09:56]SAM_PROTO_SignData done [18:09:56]FM_MakeSignedData done [18:09:56]CreateOFDProtocolMessage [18:09:56]wFMCommunicate request_size=4 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 11 00 00 [18:09:56]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 17 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [18:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:56]wFMCommunicate OK [18:09:56]CreateOFDProtocolMessage done [18:09:56]OFDSenderStorePacket 70370 [18:09:56]StoreOFDPacket docnum=70370 [18:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DF F0 07 01 E9 44 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 01 00 00 F4 03 04 00 73 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 12 01 00 35 04 06 00 8C 28 A2 0E 81 FC 58 10 30 E2 50 B4 5C D2 [18:09:56]CheckFolder [18:09:56]dirname=/storage/ofd_packets [18:09:56]CheckFolder done [18:09:56]ProducePacketName [18:09:56]name=ofd_packets/00070370 [18:09:56]NVStorageSaveData ofd_packets/00070370 [18:09:56]File name is /storage/ofd_packets/00070370 [18:09:56]Write 301 bytes [18:09:56]NVStorageSaveData done [18:09:56]OFDSenderStorePacket done [18:09:56]KKMCreateOFDPacket done [18:09:56]NVStorageSaveData kkm_last_timestamp [18:09:56]File name is /storage/kkm_last_timestamp [18:09:56]Write 4 bytes [18:09:56]NVStorageSaveData done [18:09:56]OFD Sender: Processing packet 70370 [packets to send 18, broken 17] [18:09:56]ProducePacketName [18:09:56]name=ofd_packets/00070370 [18:09:56]OFD Sender: To server: pG, [18:09:56]CommunicateWithHost lk.salyk.kg:30040 [18:09:56]ConnectInit lk.salyk.kg [18:09:56]ExternCall_PrintAddStr [18:09:56]wPrintStart [18:09:56]Write to MH i2c: 01 00 00 5E 14 72 [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 5E 14 00 00 00 00 00 FF 0F 87 [18:09:56]RasterBufferAndPrint [18:09:56]line Счет N : (1)2886139 [18:09:56]line ИНН: 02508201610067 [18:09:56]line Контрольно-Кассовый Чек [18:09:56]line ПРОДАЖА [18:09:56]line ТРК (МРК, ГНК) : 13 [18:09:56]line Товар: 2710124500 [18:09:56]line Аи-95-К-5 [18:09:56]line 8.090 * 74.20 [18:09:56]line = 600.28 [18:09:56]line НДС 12% НСП 1% [18:09:56]line > о реализуемом товаре [18:09:56]line ОКРУГЛЕНИЕ: -0.28 [18:09:56]line ИТОГО: 600.00 [18:09:56]line Внесено: 600.00 [18:09:56]line СДАЧА: 0.00 [18:09:56]line НСП 1% : 5.31 [18:09:56]line НДС 12% : 63.75 [18:09:56]line Наличными: 600.00 [18:09:56]line Безнал.: 0.00 [18:09:56]line Место: АЗС № 85 "Партнер Нефть" [18:09:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:09:56]line СНО: Общий режим [18:09:56]line Чек 318 22.10.2024 18:09 [18:09:56]line Смена: 195 ФФД: 1.0 [18:09:56]line ЗНМ: 0300000167 [18:09:56]line РНМ: 0000000000156251 [18:09:56]line Версия ККМ: v1.0 [18:09:56]line ФМ: 0000000000963346 [18:09:56]line ФД: 70370 [18:09:56]line ФПД: 154106145440252 [18:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70370&fm=154106145440252&tin=02508201610067®Number=0000000000156251&sum=60000 [18:09:56]Connected sock=11 [18:09: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 34 36 0F 01 00 00 DF F0 07 01 E9 44 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 01 00 00 F4 03 04 00 73 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 12 01 00 35 04 06 00 8C 28 A2 0E 81 FC 58 10 30 E2 50 B4 5C D2 [18:09:56]written 0, free lines is 4095 [18:09: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 34 36 4F 00 00 00 AE DD 47 00 0F A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 12 01 00 F4 03 04 00 13 94 17 67 B6 04 01 00 00 30 1D 21 0A AF 35 5B 94 [18:09:56]CommunicateWithHost err = 0 [18:09:56]CheckOFDResponse [18:09:56]1017 (14) - 77093643461234 [18:09:56]1041 (16) - 0000000000963346 [18:09:56]1040 (4) - 70370 [18:09:56]1012 (4) - 22.10.2024 12:01 [18:09:56]1206 (1) - 0 [18:09:56]OFD Sender: Remove packet 70370 [18:09:56]ProducePacketName [18:09:56]name=ofd_packets/00070370 [18:09:56]NVStorageDeleteData [18:09:56]Write to MH i2c: 01 00 00 89 14 9D [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 E6 0C 96 [18:09:57]RasterBufferAndPrint [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]written 0, free lines is 3308 [18:09:57]MH_Cut [18:09:57]Write to MH i2c: D1 01 00 90 14 01 76 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 01 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 01 00 90 14 00 75 [18:09:57]Write to MH i2c: 01 00 00 91 14 A5 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]OFD Sender: No OFD packet to send [18:09:57]*** Cut start [18:09:57]*** Partial cut [18:09:57]*** CUTSNS_PIN = 1 [18:09:57]*** CUTSNS_PIN = 0 [18:09:57]*** Brake cut motor [18:09:58]Read from MH i2c: 01 [18:09:58]MH_I2C_Read... [18:09:58]*** Stop cut motor [18:09:58]*** Cut end [18:09:58]Read from MH i2c: 01 07 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: 01 07 00 91 14 00 00 00 00 00 FF 0F BA [18:09:58]process_action close_receipt done [18:09:58]requested_data is exist [18:09:58]produce_requested_data [18:09:58]requested_item fm.sn is exist - process it [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 11 00 00 [18:09:58]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 17 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [18:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:58]wFMCommunicate OK [18:09:58]requested_item fd.num is exist - process it [18:09:58]SAM_PROTO_GetFieldsCounters [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 13 00 00 [18:09:58]Write to MH i2c: E2 08 00 93 14 80 13 00 00 00 00 00 00 23 [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 62 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 62 00 93 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 12 01 00 0E 04 04 00 C3 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 B3 [18:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 12 01 00 0E 04 04 00 C3 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 [18:09:58]wFMCommunicate OK [18:09:58]SAM_PROTO_GetFieldsCounters done [18:09:58]requested_item shift.num is exist - process it [18:09:58]requested_item shift.opened is exist - process it [18:09:58]req_shift_opened [18:09:58]FM_GetShiftState [18:09:58]SAM_PROTO_GetShiftState [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 13 01 00 [18:09:58]Write to MH i2c: E2 08 00 94 14 80 13 01 00 00 00 00 00 25 [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 0E 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 0E 00 94 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 13 [18:09:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:09:58]wFMCommunicate OK [18:09:58]SAM_PROTO_GetShiftState done [18:09:58]FM_GetShiftState done [18:09:58]req_shift_opened done [18:09:58]requested_item shift.open_date is exist - process it [18:09:58]req_shift_open_date [18:09:58]req_shift_open_date done [18:09:58]produce_requested_data done [18:09:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70370,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:09:58]process_action_free close_receipt [18:09:58]json_value_free [18:09:58]json_value_free done [18:09:58]process_json_proto returns [18:09:58]Send response to host [18:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70370,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:09:58]free response buf [18:09:58]execute_script done [18:09:58]execute_script returns [18:09:58]free content buf [18:09:58]Sock 10.Close socket [18:09:58]Sock 10.Thread stoped [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:43]accept exits with 7 [18:10:43]New connection [18:10:43]New thread 3066699108 created [18:10:43]Thread 3066555748 joined [18:10:43]Waiting for new connection... [18:10:43] Sock 7.Parse request [18:10:43]Sock 7.Check first char [18:10:43]Sock 7.First char is OK [18:10:43]request: POST /json_proto HTTP/1.0 [18:10:43]Method: POST [18:10:43]URL: /json_proto [18:10:43]Method is POST - this is cgi request [18:10:43]url: /json_proto [18:10:43]query_string will be loaded in cgi processing [18:10:43]execute_cgi json_proto POST (null) [18:10:43]execute_cgi path=json_proto method=POST [18:10:43]POST find Content-Length [18:10:43]Host: 172.17.50.3:8080 [18:10:43]Content-Length: 689 [18:10:43]Content-Type: application/json [18:10:43] [18:10:43]POST finish read [18:10:43]Found Content-Length = 689 [18:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:10:43]execute_script... [18:10: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)2886140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:10:43]POST & json_proto [18:10:43]process_json_proto [18:10:43]json parsed OK: [18:10:43]protocol is kg_v1.0 [18:10:43]action value=close_receipt [18:10:43]process_action close_receipt [18:10:43]cmd_close_receipt [18:10:43]MH_GetDate [18:10:43]Write to MH i2c: F0 00 00 95 14 98 [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: F0 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: F0 09 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: F0 09 00 95 14 00 A3 EA 17 67 6B 98 1E 66 33 [18:10:43]GetLastDocTimeStamp 1729620595 [18:10:43]current date 1729620643 [18:10:43]FM_GetShiftState [18:10:43]SAM_PROTO_GetShiftState [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 13 01 00 [18:10:43]Write to MH i2c: E2 08 00 96 14 80 13 01 00 00 00 00 00 27 [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 96 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 15 [18:10:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:10:43]wFMCommunicate OK [18:10:43]SAM_PROTO_GetShiftState done [18:10:43]FM_GetShiftState done [18:10:43]opened in 1729555832 [18:10:43]opened+sec_in_day 1729642232 [18:10:43]quantity*price = 100051 [18:10:43]sum+1 = 100052 [18:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 319 22.10.2024 18:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70371 ФПД: 262923741389413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181043&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70371&fm=262923741389413&tin=02508201610067®Number=0000000000156251&sum=100000 [18:10:44]StoreToDocumentArchive [18:10:44]shift 195 fd 70371 [18:10:44]save to /storage/0195/doc_00070371 [18:10:44]save last doc name /storage/0195/doc_00070371 to /storage/kkm_last_doc_name [18:10:44]save OK [18:10:44]Clear old archive folders... [18:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:10:44]tlvbuf is 00B2E5C0 [18:10:44]SAM_PROTO_ClearQueue [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 09 00 00 [18:10:44]Write to MH i2c: E2 08 00 A3 14 80 09 00 00 00 00 00 00 29 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]SAM_PROTO_ClearQueue done [18:10:44]KKMCreateOFDPacket [18:10:44]OFDProtocolAddRootSTLVToBuf [18:10:44]FM_MakeSignedData [18:10:44]FM_MakeSignedData [18:10:44]SAM_PROTO_SignData [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 01 02 [18:10:44]Write to MH i2c: E2 08 00 A4 14 80 0D 01 02 00 00 00 00 31 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=255 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 3F 01 00 00 F4 03 04 00 A3 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 12 01 [18:10:44]Write to MH i2c: E2 02 01 A5 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 3F 01 00 00 F4 03 04 00 A3 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 12 01 00 00 87 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=16 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EF 20 B4 35 62 65 [18:10:44]Write to MH i2c: E2 13 00 A6 14 80 0D 02 02 0B 00 00 35 04 06 00 EF 20 B4 35 62 65 00 00 48 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 03 02 [18:10:44]Write to MH i2c: E2 08 00 A7 14 80 0D 03 02 00 00 00 00 36 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 0B 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 0B 00 A7 14 00 8F 8B 92 20 C3 D3 47 2F 90 00 0F [18:10:44]RAPDU: 8F 8B 92 20 C3 D3 47 2F 90 00 [18:10:44]wFMCommunicate OK [18:10:44]SAM_PROTO_SignData done [18:10:44]FM_MakeSignedData done [18:10:44]CreateOFDProtocolMessage [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 11 00 00 [18:10:44]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 17 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [18:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:10:44]wFMCommunicate OK [18:10:44]CreateOFDProtocolMessage done [18:10:44]OFDSenderStorePacket 70371 [18:10:44]StoreOFDPacket docnum=70371 [18:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EC F2 0D 01 FC 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 3F 01 00 00 F4 03 04 00 A3 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 12 01 00 35 04 06 00 EF 20 B4 35 62 65 8F 8B 92 20 C3 D3 47 2F [18:10:44]CheckFolder [18:10:44]dirname=/storage/ofd_packets [18:10:44]CheckFolder done [18:10:44]ProducePacketName [18:10:44]name=ofd_packets/00070371 [18:10:44]NVStorageSaveData ofd_packets/00070371 [18:10:44]File name is /storage/ofd_packets/00070371 [18:10:44]Write 307 bytes [18:10:44]NVStorageSaveData done [18:10:44]OFDSenderStorePacket done [18:10:44]KKMCreateOFDPacket done [18:10:44]NVStorageSaveData kkm_last_timestamp [18:10:44]File name is /storage/kkm_last_timestamp [18:10:44]Write 4 bytes [18:10:44]NVStorageSaveData done [18:10:44]ExternCall_PrintAddStr [18:10:44]wPrintStart [18:10:44]Write to MH i2c: 01 00 00 A9 14 BD [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 07 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FF 0F D2 [18:10:44]RasterBufferAndPrint [18:10:44]line Счет N : (1)2886140 [18:10:44]line ИНН: 02508201610067 [18:10:44]line Контрольно-Кассовый Чек [18:10:44]line ПРОДАЖА [18:10:44]line ТРК (МРК, ГНК) : 31 [18:10:44]line Товар: 2710194240 [18:10:44]line D-ENERGY Дт-К-2 [18:10:44]line 12.960 * 77.20 [18:10:44]line = 1000.51 [18:10:44]line НДС 12% НСП 1% [18:10:44]line > о реализуемом товаре [18:10:44]line ОКРУГЛЕНИЕ: -0.51 [18:10:44]line ИТОГО: 1000.00 [18:10:44]line Внесено: 1000.00 [18:10:44]line СДАЧА: 0.00 [18:10:44]line НСП 1% : 8.85 [18:10:44]line НДС 12% : 106.25 [18:10:44]line Наличными: 1000.00 [18:10:44]line Безнал.: 0.00 [18:10:44]line Место: АЗС № 85 "Партнер Нефть" [18:10:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:10:44]line СНО: Общий режим [18:10:44]line Чек 319 22.10.2024 18:10 [18:10:44]line Смена: 195 ФФД: 1.0 [18:10:44]line ЗНМ: 0300000167 [18:10:44]line РНМ: 0000000000156251 [18:10:44]line Версия ККМ: v1.0 [18:10:44]line ФМ: 0000000000963346 [18:10:44]line ФД: 70371 [18:10:44]line ФПД: 262923741389413 [18:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181043&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70371&fm=262923741389413&tin=02508201610067®Number=0000000000156251&sum=100000 [18:10:45]OFD Sender: Processing packet 70371 [packets to send 18, broken 17] [18:10:45]ProducePacketName [18:10:45]name=ofd_packets/00070371 [18:10:45]OFD Sender: To server: pG, [18:10:45]CommunicateWithHost lk.salyk.kg:30040 [18:10:45]ConnectInit lk.salyk.kg [18:10:45]written 0, free lines is 4095 [18:10:45]Connected sock=10 [18:10: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 34 36 15 01 00 00 EC F2 0D 01 FC 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 3F 01 00 00 F4 03 04 00 A3 EA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 12 01 00 35 04 06 00 EF 20 B4 35 62 65 8F 8B 92 20 C3 D3 47 2F [18:10: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 34 36 4F 00 00 00 95 D6 47 00 68 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 34 36 10 04 04 00 E3 12 01 00 F4 03 04 00 43 94 17 67 B6 04 01 00 00 C4 05 37 BC F1 AD 45 42 [18:10:45]CommunicateWithHost err = 0 [18:10:45]CheckOFDResponse [18:10:45]1017 (14) - 77093643461234 [18:10:45]1041 (16) - 0000000000963346 [18:10:45]1040 (4) - 70371 [18:10:45]1012 (4) - 22.10.2024 12:02 [18:10:45]1206 (1) - 0 [18:10:45]OFD Sender: Remove packet 70371 [18:10:45]ProducePacketName [18:10:45]name=ofd_packets/00070371 [18:10:45]NVStorageDeleteData [18:10:45]Write to MH i2c: 01 00 00 D4 14 E8 [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 07 00 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 07 00 D4 14 00 00 00 00 00 F0 0C EB [18:10:45]RasterBufferAndPrint [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]written 0, free lines is 3318 [18:10:45]MH_Cut [18:10:45]Write to MH i2c: D1 01 00 DB 14 01 C1 [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 01 00 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 01 00 DB 14 00 C0 [18:10:45]Write to MH i2c: 01 00 00 DC 14 F0 [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:46]OFD Sender: No OFD packet to send [18:10:46]*** Cut start [18:10:46]*** Partial cut [18:10:46]*** CUTSNS_PIN = 1 [18:10:46]*** CUTSNS_PIN = 0 [18:10:46]*** Brake cut motor [18:10:46]Read from MH i2c: 01 [18:10:46]MH_I2C_Read... [18:10:46]*** Stop cut motor [18:10:46]*** Cut end [18:10:46]Read from MH i2c: 01 07 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: 01 07 00 DC 14 00 00 00 00 00 FF 0F 05 [18:10:47]process_action close_receipt done [18:10:47]requested_data is exist [18:10:47]produce_requested_data [18:10:47]requested_item fm.sn is exist - process it [18:10:47]wFMCommunicate request_size=4 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 11 00 00 [18:10:47]Write to MH i2c: E2 08 00 DD 14 80 11 00 00 00 00 00 00 6B [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:47]Read from MH i2c: E2 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 17 00 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 17 00 DD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [18:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:10:47]wFMCommunicate OK [18:10:47]requested_item fd.num is exist - process it [18:10:47]SAM_PROTO_GetFieldsCounters [18:10:47]wFMCommunicate request_size=4 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 13 00 00 [18:10:47]Write to MH i2c: E2 08 00 DE 14 80 13 00 00 00 00 00 00 6E [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:47]Read from MH i2c: E2 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 62 00 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 62 00 DE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 12 01 00 0E 04 04 00 C3 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 02 [18:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 12 01 00 0E 04 04 00 C3 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 [18:10:47]wFMCommunicate OK [18:10:47]SAM_PROTO_GetFieldsCounters done [18:10:47]requested_item shift.num is exist - process it [18:10:47]requested_item shift.opened is exist - process it [18:10:47]req_shift_opened [18:10:47]FM_GetShiftState [18:10:47]SAM_PROTO_GetShiftState [18:10:47]wFMCommunicate request_size=4 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 13 01 00 [18:10:47]Write to MH i2c: E2 08 00 DF 14 80 13 01 00 00 00 00 00 70 [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:47]Read from MH i2c: E2 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 0E 00 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 0E 00 DF 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5E [18:10:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:10:47]wFMCommunicate OK [18:10:47]SAM_PROTO_GetShiftState done [18:10:47]FM_GetShiftState done [18:10:47]req_shift_opened done [18:10:47]requested_item shift.open_date is exist - process it [18:10:47]req_shift_open_date [18:10:47]req_shift_open_date done [18:10:47]produce_requested_data done [18:10:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70371,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:10:47]process_action_free close_receipt [18:10:47]json_value_free [18:10:47]json_value_free done [18:10:47]process_json_proto returns [18:10:47]Send response to host [18:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70371,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:10:47]free response buf [18:10:47]execute_script done [18:10:47]execute_script returns [18:10:47]free content buf [18:10:47]Sock 7.Close socket [18:10:47]Sock 7.Thread stoped [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:01]accept exits with 9 [18:13:01]New connection [18:13:01]New thread 3066555748 created [18:13:01]Thread 3066699108 joined [18:13:01]Waiting for new connection... [18:13:01] Sock 9.Parse request [18:13:01]Sock 9.Check first char [18:13:01]Sock 9.First char is OK [18:13:01]request: POST /json_proto HTTP/1.0 [18:13:01]Method: POST [18:13:01]URL: /json_proto [18:13:01]Method is POST - this is cgi request [18:13:01]url: /json_proto [18:13:01]query_string will be loaded in cgi processing [18:13:01]execute_cgi json_proto POST (null) [18:13:01]execute_cgi path=json_proto method=POST [18:13:01]POST find Content-Length [18:13:01]Host: 172.17.50.3:8080 [18:13:01]Content-Length: 679 [18:13:01]Content-Type: application/json [18:13:01] [18:13:01]POST finish read [18:13:01]Found Content-Length = 679 [18:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:13:01]execute_script... [18:13: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)2886141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:13:01]POST & json_proto [18:13:01]process_json_proto [18:13:01]json parsed OK: [18:13:01]protocol is kg_v1.0 [18:13:01]action value=close_receipt [18:13:01]process_action close_receipt [18:13:01]cmd_close_receipt [18:13:01]MH_GetDate [18:13:01]Write to MH i2c: F0 00 00 E0 14 E3 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: F0 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: F0 09 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: F0 09 00 E0 14 00 2D EB 17 67 6B 98 1E 66 09 [18:13:01]GetLastDocTimeStamp 1729620643 [18:13:01]current date 1729620781 [18:13:01]FM_GetShiftState [18:13:01]SAM_PROTO_GetShiftState [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 13 01 00 [18:13:01]Write to MH i2c: E2 08 00 E1 14 80 13 01 00 00 00 00 00 72 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0E 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0E 00 E1 14 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 60 [18:13:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_GetShiftState done [18:13:01]FM_GetShiftState done [18:13:01]opened in 1729555832 [18:13:01]opened+sec_in_day 1729642232 [18:13:01]quantity*price = 70044 [18:13:01]sum+1 = 70045 [18:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 320 22.10.2024 18:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70372 ФПД: 57114174829142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70372&fm=57114174829142&tin=02508201610067®Number=0000000000156251&sum=70000 [18:13:02]StoreToDocumentArchive [18:13:02]shift 195 fd 70372 [18:13:02]save to /storage/0195/doc_00070372 [18:13:02]save last doc name /storage/0195/doc_00070372 to /storage/kkm_last_doc_name [18:13:02]save OK [18:13:02]Clear old archive folders... [18:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:02]tlvbuf is 00B37E50 [18:13:02]SAM_PROTO_ClearQueue [18:13:02]wFMCommunicate request_size=4 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 09 00 00 [18:13:02]Write to MH i2c: E2 08 00 EE 14 80 09 00 00 00 00 00 00 74 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [18:13:02]RAPDU: 90 00 [18:13:02]wFMCommunicate OK [18:13:02]SAM_PROTO_ClearQueue done [18:13:02]KKMCreateOFDPacket [18:13:02]OFDProtocolAddRootSTLVToBuf [18:13:02]FM_MakeSignedData [18:13:02]FM_MakeSignedData [18:13:02]SAM_PROTO_SignData [18:13:02]wFMCommunicate request_size=4 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 0D 01 02 [18:13:02]Write to MH i2c: E2 08 00 EF 14 80 0D 01 02 00 00 00 00 7C [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [18:13:02]RAPDU: 90 00 [18:13:02]wFMCommunicate OK [18:13:02]wFMCommunicate request_size=255 [18:13:02]MH_SAM_APDU [18:13: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 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 40 01 00 00 F4 03 04 00 2E EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 12 01 00 35 04 06 00 33 [18:13:02]Write to MH i2c: E2 02 01 F0 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 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 40 01 00 00 F4 03 04 00 2E EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 12 01 00 35 04 06 00 33 00 00 DA [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [18:13:02]RAPDU: 90 00 [18:13:02]wFMCommunicate OK [18:13:02]wFMCommunicate request_size=10 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 0D 02 02 05 F1 EE 1A 32 56 [18:13:02]Write to MH i2c: E2 0D 00 F1 14 80 0D 02 02 05 00 F1 EE 1A 32 56 00 00 0A [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 03 00 F1 14 00 90 00 79 [18:13:02]RAPDU: 90 00 [18:13:02]wFMCommunicate OK [18:13:02]wFMCommunicate request_size=4 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 0D 03 02 [18:13:02]Write to MH i2c: E2 08 00 F2 14 80 0D 03 02 00 00 00 00 81 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 0B 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 0B 00 F2 14 00 F7 2E 89 52 53 39 05 DB 90 00 EE [18:13:02]RAPDU: F7 2E 89 52 53 39 05 DB 90 00 [18:13:02]wFMCommunicate OK [18:13:02]SAM_PROTO_SignData done [18:13:02]FM_MakeSignedData done [18:13:02]CreateOFDProtocolMessage [18:13:02]wFMCommunicate request_size=4 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 11 00 00 [18:13:02]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [18:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:13:03]wFMCommunicate OK [18:13:03]CreateOFDProtocolMessage done [18:13:03]OFDSenderStorePacket 70372 [18:13:03]StoreOFDPacket docnum=70372 [18:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 92 07 01 13 11 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 40 01 00 00 F4 03 04 00 2E EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 12 01 00 35 04 06 00 33 F1 EE 1A 32 56 F7 2E 89 52 53 39 05 DB [18:13:03]CheckFolder [18:13:03]dirname=/storage/ofd_packets [18:13:03]CheckFolder done [18:13:03]ProducePacketName [18:13:03]name=ofd_packets/00070372 [18:13:03]NVStorageSaveData ofd_packets/00070372 [18:13:03]File name is /storage/ofd_packets/00070372 [18:13:03]Write 301 bytes [18:13:03]NVStorageSaveData done [18:13:03]OFDSenderStorePacket done [18:13:03]KKMCreateOFDPacket done [18:13:03]NVStorageSaveData kkm_last_timestamp [18:13:03]File name is /storage/kkm_last_timestamp [18:13:03]Write 4 bytes [18:13:03]NVStorageSaveData done [18:13:03]ExternCall_PrintAddStr [18:13:03]wPrintStart [18:13:03]Write to MH i2c: 01 00 00 F4 14 08 [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 F4 14 00 00 00 00 00 FF 0F 1D [18:13:03]RasterBufferAndPrint [18:13:03]line Счет N : (1)2886141 [18:13:03]line ИНН: 02508201610067 [18:13:03]line Контрольно-Кассовый Чек [18:13:03]line ПРОДАЖА [18:13:03]line ТРК (МРК, ГНК) : 42 [18:13:03]line Товар: 2710124130 [18:13:03]line Аи-92-К-5 [18:13:03]line 10.470 * 66.90 [18:13:03]line = 700.44 [18:13:03]line НДС 12% НСП 1% [18:13:03]line > о реализуемом товаре [18:13:03]line ОКРУГЛЕНИЕ: -0.44 [18:13:03]line ИТОГО: 700.00 [18:13:03]line Внесено: 700.00 [18:13:03]line СДАЧА: 0.00 [18:13:03]line НСП 1% : 6.20 [18:13:03]line НДС 12% : 74.38 [18:13:03]line Наличными: 700.00 [18:13:03]line Безнал.: 0.00 [18:13:03]line Место: АЗС № 85 "Партнер Нефть" [18:13:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:13:03]line СНО: Общий режим [18:13:03]line Чек 320 22.10.2024 18:13 [18:13:03]line Смена: 195 ФФД: 1.0 [18:13:03]line ЗНМ: 0300000167 [18:13:03]line РНМ: 0000000000156251 [18:13:03]line Версия ККМ: v1.0 [18:13:03]line ФМ: 0000000000963346 [18:13:03]line ФД: 70372 [18:13:03]line ФПД: 57114174829142 [18:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70372&fm=57114174829142&tin=02508201610067®Number=0000000000156251&sum=70000 [18:13:03]OFD Sender: Processing packet 70372 [packets to send 18, broken 17] [18:13:03]ProducePacketName [18:13:03]name=ofd_packets/00070372 [18:13:03]OFD Sender: To server: pG, [18:13:03]CommunicateWithHost lk.salyk.kg:30040 [18:13:03]ConnectInit lk.salyk.kg [18:13:03]written 0, free lines is 4095 [18:13:03]Connected sock=11 [18:13: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 34 36 0F 01 00 00 21 92 07 01 13 11 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 40 01 00 00 F4 03 04 00 2E EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 12 01 00 35 04 06 00 33 F1 EE 1A 32 56 F7 2E 89 52 53 39 05 DB [18:13: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 34 36 4F 00 00 00 C7 E8 47 00 DA 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 34 36 10 04 04 00 E4 12 01 00 F4 03 04 00 CE 94 17 67 B6 04 01 00 00 2A BB 98 BE F0 93 C1 38 [18:13:03]CommunicateWithHost err = 0 [18:13:03]CheckOFDResponse [18:13:03]1017 (14) - 77093643461234 [18:13:03]1041 (16) - 0000000000963346 [18:13:03]1040 (4) - 70372 [18:13:03]1012 (4) - 22.10.2024 12:04 [18:13:03]1206 (1) - 0 [18:13:03]OFD Sender: Remove packet 70372 [18:13:03]ProducePacketName [18:13:03]name=ofd_packets/00070372 [18:13:03]NVStorageDeleteData [18:13:03]Write to MH i2c: 01 00 00 1F 15 34 [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 1F 15 00 00 00 00 00 E6 0C 2D [18:13:03]RasterBufferAndPrint [18:13:03]line [18:13:03]line [18:13:03]line [18:13:03]line [18:13:03]line [18:13:03]written 0, free lines is 3309 [18:13:03]MH_Cut [18:13:03]Write to MH i2c: D1 01 00 26 15 01 0D [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: D1 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: D1 01 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: D1 01 00 26 15 00 0C [18:13:03]Write to MH i2c: 01 00 00 27 15 3C [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:04]OFD Sender: No OFD packet to send [18:13:04]*** Cut start [18:13:04]*** Partial cut [18:13:04]*** CUTSNS_PIN = 1 [18:13:04]*** CUTSNS_PIN = 0 [18:13:04]*** Brake cut motor [18:13:05]Read from MH i2c: 01 [18:13:05]MH_I2C_Read... [18:13:05]*** Stop cut motor [18:13:05]*** Cut end [18:13:05]Read from MH i2c: 01 07 00 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: 01 07 00 27 15 00 00 00 00 00 FF 0F 51 [18:13:05]process_action close_receipt done [18:13:05]requested_data is exist [18:13:05]produce_requested_data [18:13:05]requested_item fm.sn is exist - process it [18:13:05]wFMCommunicate request_size=4 [18:13:05]MH_SAM_APDU [18:13:05]CAPDU: 80 11 00 00 [18:13:05]Write to MH i2c: E2 08 00 28 15 80 11 00 00 00 00 00 00 B7 [18:13:05]Write i2c OK [18:13:05]MH_I2C_Read... [18:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:05]Read from MH i2c: E2 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 17 00 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 17 00 28 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [18:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:13:05]wFMCommunicate OK [18:13:05]requested_item fd.num is exist - process it [18:13:05]SAM_PROTO_GetFieldsCounters [18:13:05]wFMCommunicate request_size=4 [18:13:05]MH_SAM_APDU [18:13:05]CAPDU: 80 13 00 00 [18:13:05]Write to MH i2c: E2 08 00 29 15 80 13 00 00 00 00 00 00 BA [18:13:05]Write i2c OK [18:13:05]MH_I2C_Read... [18:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:05]Read from MH i2c: E2 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 62 00 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 62 00 29 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 12 01 00 0E 04 04 00 C3 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 52 [18:13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 12 01 00 0E 04 04 00 C3 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 [18:13:05]wFMCommunicate OK [18:13:05]SAM_PROTO_GetFieldsCounters done [18:13:05]requested_item shift.num is exist - process it [18:13:05]requested_item shift.opened is exist - process it [18:13:05]req_shift_opened [18:13:05]FM_GetShiftState [18:13:05]SAM_PROTO_GetShiftState [18:13:05]wFMCommunicate request_size=4 [18:13:05]MH_SAM_APDU [18:13:05]CAPDU: 80 13 01 00 [18:13:05]Write to MH i2c: E2 08 00 2A 15 80 13 01 00 00 00 00 00 BC [18:13:05]Write i2c OK [18:13:05]MH_I2C_Read... [18:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:05]Read from MH i2c: E2 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 0E 00 [18:13:05]MH_I2C_Read... [18:13:05]Read from MH i2c: E2 0E 00 2A 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AA [18:13:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:13:05]wFMCommunicate OK [18:13:05]SAM_PROTO_GetShiftState done [18:13:05]FM_GetShiftState done [18:13:05]req_shift_opened done [18:13:05]requested_item shift.open_date is exist - process it [18:13:05]req_shift_open_date [18:13:05]req_shift_open_date done [18:13:05]produce_requested_data done [18:13:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70372,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:13:05]process_action_free close_receipt [18:13:05]json_value_free [18:13:05]json_value_free done [18:13:05]process_json_proto returns [18:13:05]Send response to host [18:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70372,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:13:05]free response buf [18:13:05]execute_script done [18:13:05]execute_script returns [18:13:05]free content buf [18:13:05]Sock 9.Close socket [18:13:05]Sock 9.Thread stoped [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:42]accept exits with 7 [18:14:42]New connection [18:14:42]New thread 3066699108 created [18:14:42]Thread 3066555748 joined [18:14:42]Waiting for new connection... [18:14:42] Sock 7.Parse request [18:14:42]Sock 7.Check first char [18:14:42]Sock 7.First char is OK [18:14:42]request: POST /json_proto HTTP/1.0 [18:14:42]Method: POST [18:14:42]URL: /json_proto [18:14:42]Method is POST - this is cgi request [18:14:42]url: /json_proto [18:14:42]query_string will be loaded in cgi processing [18:14:42]execute_cgi json_proto POST (null) [18:14:42]execute_cgi path=json_proto method=POST [18:14:42]POST find Content-Length [18:14:42]Host: 172.17.50.3:8080 [18:14:42]Content-Length: 679 [18:14:42]Content-Type: application/json [18:14:42] [18:14:42]POST finish read [18:14:42]Found Content-Length = 679 [18:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [18:14:42]execute_script... [18:14: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)2886142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [18:14:42]POST & json_proto [18:14:42]process_json_proto [18:14:42]json parsed OK: [18:14:42]protocol is kg_v1.0 [18:14:42]action value=close_receipt [18:14:42]process_action close_receipt [18:14:42]cmd_close_receipt [18:14:42]MH_GetDate [18:14:42]Write to MH i2c: F0 00 00 2B 15 2F [18:14:42]Write i2c OK [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: F0 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: F0 09 00 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: F0 09 00 2B 15 00 93 EB 17 67 6B 98 1E 66 BB [18:14:42]GetLastDocTimeStamp 1729620782 [18:14:42]current date 1729620883 [18:14:42]FM_GetShiftState [18:14:42]SAM_PROTO_GetShiftState [18:14:42]wFMCommunicate request_size=4 [18:14:42]MH_SAM_APDU [18:14:42]CAPDU: 80 13 01 00 [18:14:42]Write to MH i2c: E2 08 00 2C 15 80 13 01 00 00 00 00 00 BE [18:14:42]Write i2c OK [18:14:42]MH_I2C_Read... [18:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:42]Read from MH i2c: E2 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: E2 0E 00 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: E2 0E 00 2C 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AC [18:14:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:14:42]wFMCommunicate OK [18:14:42]SAM_PROTO_GetShiftState done [18:14:42]FM_GetShiftState done [18:14:42]opened in 1729555832 [18:14:42]opened+sec_in_day 1729642232 [18:14:42]quantity*price = 70044 [18:14:42]sum+1 = 70045 [18:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 321 22.10.2024 18:14 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70373 ФПД: 43920179902963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181443&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70373&fm=43920179902963&tin=02508201610067®Number=0000000000156251&sum=70000 [18:14:43]StoreToDocumentArchive [18:14:43]shift 195 fd 70373 [18:14:43]save to /storage/0195/doc_00070373 [18:14:43]save last doc name /storage/0195/doc_00070373 to /storage/kkm_last_doc_name [18:14:43]save OK [18:14:43]Clear old archive folders... [18:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:43]tlvbuf is 00CA76E0 [18:14:43]SAM_PROTO_ClearQueue [18:14:43]wFMCommunicate request_size=4 [18:14:43]MH_SAM_APDU [18:14:43]CAPDU: 80 09 00 00 [18:14:43]Write to MH i2c: E2 08 00 39 15 80 09 00 00 00 00 00 00 C0 [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:43]Read from MH i2c: E2 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 03 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [18:14:43]RAPDU: 90 00 [18:14:43]wFMCommunicate OK [18:14:43]SAM_PROTO_ClearQueue done [18:14:43]KKMCreateOFDPacket [18:14:43]OFDProtocolAddRootSTLVToBuf [18:14:43]FM_MakeSignedData [18:14:43]FM_MakeSignedData [18:14:43]SAM_PROTO_SignData [18:14:43]wFMCommunicate request_size=4 [18:14:43]MH_SAM_APDU [18:14:43]CAPDU: 80 0D 01 02 [18:14:43]Write to MH i2c: E2 08 00 3A 15 80 0D 01 02 00 00 00 00 C8 [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:43]Read from MH i2c: E2 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 03 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [18:14:43]RAPDU: 90 00 [18:14:43]wFMCommunicate OK [18:14:43]wFMCommunicate request_size=255 [18:14:43]MH_SAM_APDU [18:14:43]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 41 01 00 00 F4 03 04 00 93 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 12 01 00 35 04 06 00 27 [18:14:43]Write to MH i2c: E2 02 01 3B 15 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 41 01 00 00 F4 03 04 00 93 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 12 01 00 35 04 06 00 27 00 00 81 [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:44]Read from MH i2c: E2 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 03 00 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [18:14:44]RAPDU: 90 00 [18:14:44]wFMCommunicate OK [18:14:44]wFMCommunicate request_size=10 [18:14:44]MH_SAM_APDU [18:14:44]CAPDU: 80 0D 02 02 05 F1 F6 B8 B9 F3 [18:14:44]Write to MH i2c: E2 0D 00 3C 15 80 0D 02 02 05 00 F1 F6 B8 B9 F3 00 00 20 [18:14:44]Write i2c OK [18:14:44]MH_I2C_Read... [18:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:44]Read from MH i2c: E2 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 03 00 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 03 00 3C 15 00 90 00 C5 [18:14:44]RAPDU: 90 00 [18:14:44]wFMCommunicate OK [18:14:44]wFMCommunicate request_size=4 [18:14:44]MH_SAM_APDU [18:14:44]CAPDU: 80 0D 03 02 [18:14:44]Write to MH i2c: E2 08 00 3D 15 80 0D 03 02 00 00 00 00 CD [18:14:44]Write i2c OK [18:14:44]MH_I2C_Read... [18:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:44]Read from MH i2c: E2 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 0B 00 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 0B 00 3D 15 00 5A 2A 65 0F 88 8D C6 AB 90 00 4C [18:14:44]RAPDU: 5A 2A 65 0F 88 8D C6 AB 90 00 [18:14:44]wFMCommunicate OK [18:14:44]SAM_PROTO_SignData done [18:14:44]FM_MakeSignedData done [18:14:44]CreateOFDProtocolMessage [18:14:44]wFMCommunicate request_size=4 [18:14:44]MH_SAM_APDU [18:14:44]CAPDU: 80 11 00 00 [18:14:44]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [18:14:44]Write i2c OK [18:14:44]MH_I2C_Read... [18:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:44]Read from MH i2c: E2 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 17 00 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [18:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:44]wFMCommunicate OK [18:14:44]CreateOFDProtocolMessage done [18:14:44]OFDSenderStorePacket 70373 [18:14:44]StoreOFDPacket docnum=70373 [18:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 4E 07 01 56 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 41 01 00 00 F4 03 04 00 93 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 12 01 00 35 04 06 00 27 F1 F6 B8 B9 F3 5A 2A 65 0F 88 8D C6 AB [18:14:44]CheckFolder [18:14:44]dirname=/storage/ofd_packets [18:14:44]CheckFolder done [18:14:44]ProducePacketName [18:14:44]name=ofd_packets/00070373 [18:14:44]NVStorageSaveData ofd_packets/00070373 [18:14:44]File name is /storage/ofd_packets/00070373 [18:14:44]Write 301 bytes [18:14:44]NVStorageSaveData done [18:14:44]OFDSenderStorePacket done [18:14:44]KKMCreateOFDPacket done [18:14:44]NVStorageSaveData kkm_last_timestamp [18:14:44]File name is /storage/kkm_last_timestamp [18:14:44]Write 4 bytes [18:14:44]NVStorageSaveData done [18:14:44]ExternCall_PrintAddStr [18:14:44]wPrintStart [18:14:44]Write to MH i2c: 01 00 00 3F 15 54 [18:14:44]Write i2c OK [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: 01 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: 01 07 00 [18:14:44]MH_I2C_Read... [18:14:44]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 FF 0F 69 [18:14:44]RasterBufferAndPrint [18:14:44]line Счет N : (1)2886142 [18:14:44]line ИНН: 02508201610067 [18:14:44]line Контрольно-Кассовый Чек [18:14:44]line ПРОДАЖА [18:14:44]line ТРК (МРК, ГНК) : 22 [18:14:44]line Товар: 2710124130 [18:14:44]line Аи-92-К-5 [18:14:44]line 10.470 * 66.90 [18:14:44]line = 700.44 [18:14:44]line НДС 12% НСП 1% [18:14:44]line > о реализуемом товаре [18:14:44]line ОКРУГЛЕНИЕ: -0.44 [18:14:44]line ИТОГО: 700.00 [18:14:44]line Внесено: 700.00 [18:14:44]line СДАЧА: 0.00 [18:14:44]line НСП 1% : 6.20 [18:14:44]line НДС 12% : 74.38 [18:14:44]line Наличными: 700.00 [18:14:44]line Безнал.: 0.00 [18:14:44]line Место: АЗС № 85 "Партнер Нефть" [18:14:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:14:44]line СНО: Общий режим [18:14:44]line Чек 321 22.10.2024 18:14 [18:14:44]line Смена: 195 ФФД: 1.0 [18:14:44]line ЗНМ: 0300000167 [18:14:44]line РНМ: 0000000000156251 [18:14:44]line Версия ККМ: v1.0 [18:14:44]line ФМ: 0000000000963346 [18:14:44]line ФД: 70373 [18:14:44]line ФПД: 43920179902963 [18:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181443&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70373&fm=43920179902963&tin=02508201610067®Number=0000000000156251&sum=70000 [18:14:44]OFD Sender: Processing packet 70373 [packets to send 18, broken 17] [18:14:44]ProducePacketName [18:14:44]name=ofd_packets/00070373 [18:14:44]OFD Sender: To server: pG, [18:14:44]CommunicateWithHost lk.salyk.kg:30040 [18:14:44]ConnectInit lk.salyk.kg [18:14:44]written 0, free lines is 4095 [18:14:44]Connected sock=10 [18:14: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 34 36 0F 01 00 00 1A 4E 07 01 56 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 41 01 00 00 F4 03 04 00 93 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 12 01 00 35 04 06 00 27 F1 F6 B8 B9 F3 5A 2A 65 0F 88 8D C6 AB [18:14: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 34 36 4F 00 00 00 A7 3C 47 00 BC 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 34 36 10 04 04 00 E5 12 01 00 F4 03 04 00 33 95 17 67 B6 04 01 00 00 E2 C3 24 A0 80 C6 31 A2 [18:14:44]CommunicateWithHost err = 0 [18:14:44]CheckOFDResponse [18:14:44]1017 (14) - 77093643461234 [18:14:44]1041 (16) - 0000000000963346 [18:14:44]1040 (4) - 70373 [18:14:44]1012 (4) - 22.10.2024 12:06 [18:14:44]1206 (1) - 0 [18:14:44]OFD Sender: Remove packet 70373 [18:14:44]ProducePacketName [18:14:44]name=ofd_packets/00070373 [18:14:44]NVStorageDeleteData [18:14:45]Write to MH i2c: 01 00 00 6A 15 7F [18:14:45]Write i2c OK [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 07 00 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 E9 0C 7B [18:14:45]RasterBufferAndPrint [18:14:45]line [18:14:45]line [18:14:45]line [18:14:45]line [18:14:45]line [18:14:45]written 0, free lines is 3311 [18:14:45]MH_Cut [18:14:45]Write to MH i2c: D1 01 00 71 15 01 58 [18:14:45]Write i2c OK [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: D1 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: D1 01 00 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: D1 01 00 71 15 00 57 [18:14:45]Write to MH i2c: 01 00 00 72 15 87 [18:14:45]Write i2c OK [18:14:45]MH_I2C_Read... [18:14:45]OFD Sender: No OFD packet to send [18:14:45]*** Cut start [18:14:45]*** Partial cut [18:14:45]*** CUTSNS_PIN = 1 [18:14:45]*** CUTSNS_PIN = 0 [18:14:45]*** Brake cut motor [18:14:46]Read from MH i2c: 01 [18:14:46]MH_I2C_Read... [18:14:46]*** Stop cut motor [18:14:46]*** Cut end [18:14:46]Read from MH i2c: 01 07 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: 01 07 00 72 15 00 00 00 00 00 FF 0F 9C [18:14:46]process_action close_receipt done [18:14:46]requested_data is exist [18:14:46]produce_requested_data [18:14:46]requested_item fm.sn is exist - process it [18:14:46]wFMCommunicate request_size=4 [18:14:46]MH_SAM_APDU [18:14:46]CAPDU: 80 11 00 00 [18:14:46]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:46]Read from MH i2c: E2 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 17 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 17 00 73 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [18:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:46]wFMCommunicate OK [18:14:46]requested_item fd.num is exist - process it [18:14:46]SAM_PROTO_GetFieldsCounters [18:14:46]wFMCommunicate request_size=4 [18:14:46]MH_SAM_APDU [18:14:46]CAPDU: 80 13 00 00 [18:14:46]Write to MH i2c: E2 08 00 74 15 80 13 00 00 00 00 00 00 05 [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:46]Read from MH i2c: E2 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 62 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 62 00 74 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 12 01 00 0E 04 04 00 C3 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 A1 [18:14: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 12 01 00 0E 04 04 00 C3 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 [18:14:46]wFMCommunicate OK [18:14:46]SAM_PROTO_GetFieldsCounters done [18:14:46]requested_item shift.num is exist - process it [18:14:46]requested_item shift.opened is exist - process it [18:14:46]req_shift_opened [18:14:46]FM_GetShiftState [18:14:46]SAM_PROTO_GetShiftState [18:14:46]wFMCommunicate request_size=4 [18:14:46]MH_SAM_APDU [18:14:46]CAPDU: 80 13 01 00 [18:14:46]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:46]Read from MH i2c: E2 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 0E 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F5 [18:14:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:14:46]wFMCommunicate OK [18:14:46]SAM_PROTO_GetShiftState done [18:14:46]FM_GetShiftState done [18:14:46]req_shift_opened done [18:14:46]requested_item shift.open_date is exist - process it [18:14:46]req_shift_open_date [18:14:46]req_shift_open_date done [18:14:46]produce_requested_data done [18:14:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70373,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:14:46]process_action_free close_receipt [18:14:46]json_value_free [18:14:46]json_value_free done [18:14:46]process_json_proto returns [18:14:46]Send response to host [18:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70373,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:14:46]free response buf [18:14:46]execute_script done [18:14:46]execute_script returns [18:14:46]free content buf [18:14:46]Sock 7.Close socket [18:14:46]Sock 7.Thread stoped [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:30]accept exits with 9 [18:15:30]New connection [18:15:30]New thread 3066555748 created [18:15:30]Thread 3066699108 joined [18:15:30]Waiting for new connection... [18:15:30] Sock 9.Parse request [18:15:30]Sock 9.Check first char [18:15:30]Sock 9.First char is OK [18:15:30]request: POST /json_proto HTTP/1.0 [18:15:30]Method: POST [18:15:30]URL: /json_proto [18:15:30]Method is POST - this is cgi request [18:15:30]url: /json_proto [18:15:30]query_string will be loaded in cgi processing [18:15:30]execute_cgi json_proto POST (null) [18:15:30]execute_cgi path=json_proto method=POST [18:15:30]POST find Content-Length [18:15:30]Host: 172.17.50.3:8080 [18:15:30]Content-Length: 682 [18:15:30]Content-Type: application/json [18:15:30] [18:15:30]POST finish read [18:15:30]Found Content-Length = 682 [18:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:15:30]execute_script... [18:15: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)2886143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:15:30]POST & json_proto [18:15:30]process_json_proto [18:15:30]json parsed OK: [18:15:30]protocol is kg_v1.0 [18:15:30]action value=close_receipt [18:15:30]process_action close_receipt [18:15:30]cmd_close_receipt [18:15:30]MH_GetDate [18:15:30]Write to MH i2c: F0 00 00 76 15 7A [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: F0 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: F0 09 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: F0 09 00 76 15 00 C3 EB 17 67 6B 98 1E 66 36 [18:15:30]GetLastDocTimeStamp 1729620883 [18:15:30]current date 1729620931 [18:15:30]FM_GetShiftState [18:15:30]SAM_PROTO_GetShiftState [18:15:30]wFMCommunicate request_size=4 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 13 01 00 [18:15:30]Write to MH i2c: E2 08 00 77 15 80 13 01 00 00 00 00 00 09 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 0E 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 0E 00 77 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F7 [18:15:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:15:30]wFMCommunicate OK [18:15:30]SAM_PROTO_GetShiftState done [18:15:30]FM_GetShiftState done [18:15:30]opened in 1729555832 [18:15:30]opened+sec_in_day 1729642232 [18:15:30]quantity*price = 50025 [18:15:30]sum+1 = 50026 [18:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 322 22.10.2024 18:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70374 ФПД: 180330445374526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70374&fm=180330445374526&tin=02508201610067®Number=0000000000156251&sum=50000 [18:15:31]StoreToDocumentArchive [18:15:31]shift 195 fd 70374 [18:15:31]save to /storage/0195/doc_00070374 [18:15:31]save last doc name /storage/0195/doc_00070374 to /storage/kkm_last_doc_name [18:15:31]save OK [18:15:31]Clear old archive folders... [18:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:15:31]tlvbuf is 00B31030 [18:15:31]SAM_PROTO_ClearQueue [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 09 00 00 [18:15:31]Write to MH i2c: E2 08 00 84 15 80 09 00 00 00 00 00 00 0B [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [18:15:31]RAPDU: 90 00 [18:15:31]wFMCommunicate OK [18:15:31]SAM_PROTO_ClearQueue done [18:15:31]KKMCreateOFDPacket [18:15:31]OFDProtocolAddRootSTLVToBuf [18:15:31]FM_MakeSignedData [18:15:31]FM_MakeSignedData [18:15:31]SAM_PROTO_SignData [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 0D 01 02 [18:15:31]Write to MH i2c: E2 08 00 85 15 80 0D 01 02 00 00 00 00 13 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [18:15:31]RAPDU: 90 00 [18:15:31]wFMCommunicate OK [18:15:31]wFMCommunicate request_size=255 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 42 01 00 00 F4 03 04 00 C3 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 12 01 00 35 04 06 00 A4 02 [18:15:31]Write to MH i2c: E2 02 01 86 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 42 01 00 00 F4 03 04 00 C3 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 12 01 00 35 04 06 00 A4 02 00 00 27 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [18:15:31]RAPDU: 90 00 [18:15:31]wFMCommunicate OK [18:15:31]wFMCommunicate request_size=9 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 0D 02 02 04 74 23 84 3E [18:15:31]Write to MH i2c: E2 0C 00 87 15 80 0D 02 02 04 00 74 23 84 3E 00 00 77 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [18:15:31]RAPDU: 90 00 [18:15:31]wFMCommunicate OK [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 0D 03 02 [18:15:31]Write to MH i2c: E2 08 00 88 15 80 0D 03 02 00 00 00 00 18 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:32]Read from MH i2c: E2 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: E2 0B 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: E2 0B 00 88 15 00 45 EB B4 66 9B BB EA 0D 90 00 B0 [18:15:32]RAPDU: 45 EB B4 66 9B BB EA 0D 90 00 [18:15:32]wFMCommunicate OK [18:15:32]SAM_PROTO_SignData done [18:15:32]FM_MakeSignedData done [18:15:32]CreateOFDProtocolMessage [18:15:32]wFMCommunicate request_size=4 [18:15:32]MH_SAM_APDU [18:15:32]CAPDU: 80 11 00 00 [18:15:32]Write to MH i2c: E2 08 00 89 15 80 11 00 00 00 00 00 00 18 [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:32]Read from MH i2c: E2 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: E2 17 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: E2 17 00 89 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [18:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:15:32]wFMCommunicate OK [18:15:32]CreateOFDProtocolMessage done [18:15:32]OFDSenderStorePacket 70374 [18:15:32]StoreOFDPacket docnum=70374 [18:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2E 5A 06 01 DD 0F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 42 01 00 00 F4 03 04 00 C3 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 12 01 00 35 04 06 00 A4 02 74 23 84 3E 45 EB B4 66 9B BB EA 0D [18:15:32]CheckFolder [18:15:32]dirname=/storage/ofd_packets [18:15:32]CheckFolder done [18:15:32]ProducePacketName [18:15:32]name=ofd_packets/00070374 [18:15:32]NVStorageSaveData ofd_packets/00070374 [18:15:32]File name is /storage/ofd_packets/00070374 [18:15:32]Write 300 bytes [18:15:32]NVStorageSaveData done [18:15:32]OFDSenderStorePacket done [18:15:32]KKMCreateOFDPacket done [18:15:32]NVStorageSaveData kkm_last_timestamp [18:15:32]File name is /storage/kkm_last_timestamp [18:15:32]Write 4 bytes [18:15:32]NVStorageSaveData done [18:15:32]ExternCall_PrintAddStr [18:15:32]wPrintStart [18:15:32]Write to MH i2c: 01 00 00 8A 15 9F [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 FF 0F B4 [18:15:32]RasterBufferAndPrint [18:15:32]line Счет N : (1)2886143 [18:15:32]line ИНН: 02508201610067 [18:15:32]line Контрольно-Кассовый Чек [18:15:32]line ПРОДАЖА [18:15:32]line ТРК (МРК, ГНК) : 71 [18:15:32]line Товар: 2711129700 [18:15:32]line ГАЗ-К-3 [18:15:32]line 12.860 * 38.90 [18:15:32]line = 500.25 [18:15:32]line НДС 12% НСП 1% [18:15:32]line > о реализуемом товаре [18:15:32]line ОКРУГЛЕНИЕ: -0.25 [18:15:32]line ИТОГО: 500.00 [18:15:32]line Внесено: 500.00 [18:15:32]line СДАЧА: 0.00 [18:15:32]line НСП 1% : 4.43 [18:15:32]line НДС 12% : 53.12 [18:15:32]line Наличными: 500.00 [18:15:32]line Безнал.: 0.00 [18:15:32]line Место: АЗС № 85 "Партнер Нефть" [18:15:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:15:32]line СНО: Общий режим [18:15:32]line Чек 322 22.10.2024 18:15 [18:15:32]line Смена: 195 ФФД: 1.0 [18:15:32]line ЗНМ: 0300000167 [18:15:32]line РНМ: 0000000000156251 [18:15:32]line Версия ККМ: v1.0 [18:15:32]line ФМ: 0000000000963346 [18:15:32]line ФД: 70374 [18:15:32]line ФПД: 180330445374526 [18:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70374&fm=180330445374526&tin=02508201610067®Number=0000000000156251&sum=50000 [18:15:32]OFD Sender: Processing packet 70374 [packets to send 18, broken 17] [18:15:32]ProducePacketName [18:15:32]name=ofd_packets/00070374 [18:15:32]OFD Sender: To server: pG, [18:15:32]CommunicateWithHost lk.salyk.kg:30040 [18:15:32]ConnectInit lk.salyk.kg [18:15:32]written 0, free lines is 4095 [18:15:32]Connected sock=10 [18:15: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 34 36 0E 01 00 00 2E 5A 06 01 DD 0F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 42 01 00 00 F4 03 04 00 C3 EB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 12 01 00 35 04 06 00 A4 02 74 23 84 3E 45 EB B4 66 9B BB EA 0D [18:15: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 34 36 4F 00 00 00 8F 11 47 00 6E 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 34 36 10 04 04 00 E6 12 01 00 F4 03 04 00 63 95 17 67 B6 04 01 00 00 05 95 70 B0 B8 6B 36 C3 [18:15:32]CommunicateWithHost err = 0 [18:15:32]CheckOFDResponse [18:15:32]1017 (14) - 77093643461234 [18:15:32]1041 (16) - 0000000000963346 [18:15:32]1040 (4) - 70374 [18:15:32]1012 (4) - 22.10.2024 12:06 [18:15:32]1206 (1) - 0 [18:15:32]OFD Sender: Remove packet 70374 [18:15:32]ProducePacketName [18:15:32]name=ofd_packets/00070374 [18:15:32]NVStorageDeleteData [18:15:32]Write to MH i2c: 01 00 00 B5 15 CA [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 B5 15 00 00 00 00 00 ED 0C CA [18:15:32]RasterBufferAndPrint [18:15:32]line [18:15:32]line [18:15:32]line [18:15:32]line [18:15:32]line [18:15:32]written 0, free lines is 3315 [18:15:32]MH_Cut [18:15:32]Write to MH i2c: D1 01 00 BC 15 01 A3 [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: D1 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: D1 01 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: D1 01 00 BC 15 00 A2 [18:15:32]Write to MH i2c: 01 00 00 BD 15 D2 [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:33]OFD Sender: No OFD packet to send [18:15:33]*** Cut start [18:15:33]*** Partial cut [18:15:33]*** CUTSNS_PIN = 1 [18:15:33]*** CUTSNS_PIN = 0 [18:15:33]*** Brake cut motor [18:15:34]Read from MH i2c: 01 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: 01 07 00 [18:15:34]MH_I2C_Read... [18:15:34]*** Stop cut motor [18:15:34]*** Cut end [18:15:34]Read from MH i2c: 01 07 00 BD 15 00 00 00 00 00 FF 0F E7 [18:15:34]process_action close_receipt done [18:15:34]requested_data is exist [18:15:34]produce_requested_data [18:15:34]requested_item fm.sn is exist - process it [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 11 00 00 [18:15:34]Write to MH i2c: E2 08 00 BE 15 80 11 00 00 00 00 00 00 4D [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 17 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 17 00 BE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [18:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:15:34]wFMCommunicate OK [18:15:34]requested_item fd.num is exist - process it [18:15:34]SAM_PROTO_GetFieldsCounters [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 00 00 [18:15:34]Write to MH i2c: E2 08 00 BF 15 80 13 00 00 00 00 00 00 50 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 62 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 62 00 BF 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 12 01 00 0E 04 04 00 C3 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 F0 [18:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 12 01 00 0E 04 04 00 C3 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 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetFieldsCounters done [18:15:34]requested_item shift.num is exist - process it [18:15:34]requested_item shift.opened is exist - process it [18:15:34]req_shift_opened [18:15:34]FM_GetShiftState [18:15:34]SAM_PROTO_GetShiftState [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 01 00 [18:15:34]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 40 [18:15:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetShiftState done [18:15:34]FM_GetShiftState done [18:15:34]req_shift_opened done [18:15:34]requested_item shift.open_date is exist - process it [18:15:34]req_shift_open_date [18:15:34]req_shift_open_date done [18:15:34]produce_requested_data done [18:15:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70374,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:15:34]process_action_free close_receipt [18:15:34]json_value_free [18:15:34]json_value_free done [18:15:34]process_json_proto returns [18:15:34]Send response to host [18:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70374,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:15:34]free response buf [18:15:34]execute_script done [18:15:34]execute_script returns [18:15:34]free content buf [18:15:34]Sock 9.Close socket [18:15:34]Sock 9.Thread stoped [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]accept exits with 7 [18:18:38]New connection [18:18:38]New thread 3066699108 created [18:18:38]Thread 3066555748 joined [18:18:38]Waiting for new connection... [18:18:38] Sock 7.Parse request [18:18:38]Sock 7.Check first char [18:18:38]Sock 7.First char is OK [18:18:38]request: POST /json_proto HTTP/1.0 [18:18:38]Method: POST [18:18:38]URL: /json_proto [18:18:38]Method is POST - this is cgi request [18:18:38]url: /json_proto [18:18:38]query_string will be loaded in cgi processing [18:18:38]execute_cgi json_proto POST (null) [18:18:38]execute_cgi path=json_proto method=POST [18:18:38]POST find Content-Length [18:18:38]Host: 172.17.50.3:8080 [18:18:38]Content-Length: 770 [18:18:38]Content-Type: application/json [18:18:38] [18:18:38]POST finish read [18:18:38]Found Content-Length = 770 [18:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [18:18:38]execute_script... [18:18: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)2886144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [18:18:38]POST & json_proto [18:18:38]process_json_proto [18:18:38]json parsed OK: [18:18:38]protocol is kg_v1.0 [18:18:38]action value=close_receipt [18:18:38]process_action close_receipt [18:18:38]cmd_close_receipt [18:18:38]MH_GetDate [18:18:38]Write to MH i2c: F0 00 00 C1 15 C5 [18:18:38]Write i2c OK [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: F0 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: F0 09 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: F0 09 00 C1 15 00 7F EC 17 67 6B 98 1E 66 3E [18:18:38]GetLastDocTimeStamp 1729620931 [18:18:38]current date 1729621119 [18:18:38]FM_GetShiftState [18:18:38]SAM_PROTO_GetShiftState [18:18:38]wFMCommunicate request_size=4 [18:18:38]MH_SAM_APDU [18:18:38]CAPDU: 80 13 01 00 [18:18:38]Write to MH i2c: E2 08 00 C2 15 80 13 01 00 00 00 00 00 54 [18:18:38]Write i2c OK [18:18:38]MH_I2C_Read... [18:18:38]OFD Sender: No OFD packet to send [18:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:38]Read from MH i2c: E2 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 0E 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 0E 00 C2 15 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 42 [18:18:38]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:18:38]wFMCommunicate OK [18:18:38]SAM_PROTO_GetShiftState done [18:18:38]FM_GetShiftState done [18:18:38]opened in 1729555832 [18:18:38]opened+sec_in_day 1729642232 [18:18:38]quantity*price = 100015 [18:18:38]sum+1 = 100017 [18:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 323 22.10.2024 18:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70375 ФПД: 85431010656892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181839&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70375&fm=85431010656892&tin=02508201610067®Number=0000000000156251&sum=100016 [18:18:39]StoreToDocumentArchive [18:18:39]shift 195 fd 70375 [18:18:39]save to /storage/0195/doc_00070375 [18:18:39]save last doc name /storage/0195/doc_00070375 to /storage/kkm_last_doc_name [18:18:39]save OK [18:18:39]Clear old archive folders... [18:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:39]tlvbuf is 00B2EC60 [18:18:39]SAM_PROTO_ClearQueue [18:18:39]wFMCommunicate request_size=4 [18:18:39]MH_SAM_APDU [18:18:39]CAPDU: 80 09 00 00 [18:18:39]Write to MH i2c: E2 08 00 CF 15 80 09 00 00 00 00 00 00 56 [18:18:39]Write i2c OK [18:18:39]MH_I2C_Read... [18:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:39]Read from MH i2c: E2 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [18:18:39]RAPDU: 90 00 [18:18:39]wFMCommunicate OK [18:18:39]SAM_PROTO_ClearQueue done [18:18:39]KKMCreateOFDPacket [18:18:39]OFDProtocolAddRootSTLVToBuf [18:18:39]FM_MakeSignedData [18:18:39]FM_MakeSignedData [18:18:39]SAM_PROTO_SignData [18:18:39]wFMCommunicate request_size=4 [18:18:39]MH_SAM_APDU [18:18:39]CAPDU: 80 0D 01 02 [18:18:39]Write to MH i2c: E2 08 00 D0 15 80 0D 01 02 00 00 00 00 5E [18:18:39]Write i2c OK [18:18:39]MH_I2C_Read... [18:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:39]Read from MH i2c: E2 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [18:18:39]RAPDU: 90 00 [18:18:39]wFMCommunicate OK [18:18:39]wFMCommunicate request_size=255 [18:18:39]MH_SAM_APDU [18:18: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 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 43 01 00 00 F4 03 04 00 7F EC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 12 01 00 35 04 06 00 4D [18:18:39]Write to MH i2c: E2 02 01 D1 15 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 43 01 00 00 F4 03 04 00 7F EC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 12 01 00 35 04 06 00 4D 00 00 38 [18:18:39]Write i2c OK [18:18:39]MH_I2C_Read... [18:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:39]Read from MH i2c: E2 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [18:18:39]RAPDU: 90 00 [18:18:39]wFMCommunicate OK [18:18:39]wFMCommunicate request_size=10 [18:18:39]MH_SAM_APDU [18:18:39]CAPDU: 80 0D 02 02 05 B2 F5 0B 02 7C [18:18:39]Write to MH i2c: E2 0D 00 D2 15 80 0D 02 02 05 00 B2 F5 0B 02 7C 00 00 9B [18:18:39]Write i2c OK [18:18:39]MH_I2C_Read... [18:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:39]Read from MH i2c: E2 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 [18:18:39]MH_I2C_Read... [18:18:39]Read from MH i2c: E2 03 00 D2 15 00 90 00 5B [18:18:39]RAPDU: 90 00 [18:18:39]wFMCommunicate OK [18:18:39]wFMCommunicate request_size=4 [18:18:39]MH_SAM_APDU [18:18:39]CAPDU: 80 0D 03 02 [18:18:39]Write to MH i2c: E2 08 00 D3 15 80 0D 03 02 00 00 00 00 63 [18:18:39]Write i2c OK [18:18:39]MH_I2C_Read... [18:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:40]Read from MH i2c: E2 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: E2 0B 00 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: E2 0B 00 D3 15 00 ED C4 54 85 4B 73 D9 02 90 00 87 [18:18:40]RAPDU: ED C4 54 85 4B 73 D9 02 90 00 [18:18:40]wFMCommunicate OK [18:18:40]SAM_PROTO_SignData done [18:18:40]FM_MakeSignedData done [18:18:40]CreateOFDProtocolMessage [18:18:40]wFMCommunicate request_size=4 [18:18:40]MH_SAM_APDU [18:18:40]CAPDU: 80 11 00 00 [18:18:40]Write to MH i2c: E2 08 00 D4 15 80 11 00 00 00 00 00 00 63 [18:18:40]Write i2c OK [18:18:40]MH_I2C_Read... [18:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:40]Read from MH i2c: E2 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: E2 17 00 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: E2 17 00 D4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [18:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:18:40]wFMCommunicate OK [18:18:40]CreateOFDProtocolMessage done [18:18:40]OFDSenderStorePacket 70375 [18:18:40]StoreOFDPacket docnum=70375 [18:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B8 51 07 01 78 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 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 43 01 00 00 F4 03 04 00 7F EC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 12 01 00 35 04 06 00 4D B2 F5 0B 02 7C ED C4 54 85 4B 73 D9 02 [18:18:40]CheckFolder [18:18:40]dirname=/storage/ofd_packets [18:18:40]CheckFolder done [18:18:40]ProducePacketName [18:18:40]name=ofd_packets/00070375 [18:18:40]NVStorageSaveData ofd_packets/00070375 [18:18:40]File name is /storage/ofd_packets/00070375 [18:18:40]Write 301 bytes [18:18:40]NVStorageSaveData done [18:18:40]OFDSenderStorePacket done [18:18:40]KKMCreateOFDPacket done [18:18:40]NVStorageSaveData kkm_last_timestamp [18:18:40]File name is /storage/kkm_last_timestamp [18:18:40]Write 4 bytes [18:18:40]NVStorageSaveData done [18:18:40]ExternCall_PrintAddStr [18:18:40]wPrintStart [18:18:40]Write to MH i2c: 01 00 00 D5 15 EA [18:18:40]Write i2c OK [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 07 00 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 FF 0F FF [18:18:40]RasterBufferAndPrint [18:18:40]line Счет N : (1)2886144 [18:18:40]line ИНН: 02508201610067 [18:18:40]line Контрольно-Кассовый Чек [18:18:40]line ПРОДАЖА [18:18:40]line ТРК (МРК, ГНК) : 32 [18:18:40]line Товар: 2710124130 [18:18:40]line Аи-92-К-5 [18:18:40]line 14.950 * 66.90 [18:18:40]line = 1000.16 [18:18:40]line НДС 12% НСП 1% [18:18:40]line > о реализуемом товаре [18:18:40]line ИТОГО: 1000.16 [18:18:40]line НСП 1% : 8.85 [18:18:40]line НДС 12% : 106.21 [18:18:40]line Наличными: 0.00 [18:18:40]line Безнал.: 1000.16 [18:18:40]line Место: АЗС № 85 "Партнер Нефть" [18:18:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:18:40]line СНО: Общий режим [18:18:40]line Чек 323 22.10.2024 18:18 [18:18:40]line Смена: 195 ФФД: 1.0 [18:18:40]line ЗНМ: 0300000167 [18:18:40]line РНМ: 0000000000156251 [18:18:40]line Версия ККМ: v1.0 [18:18:40]line Платежная система: Mbank [18:18:40]line ФМ: 0000000000963346 [18:18:40]line ФД: 70375 [18:18:40]line ФПД: 85431010656892 [18:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181839&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70375&fm=85431010656892&tin=02508201610067®Number=0000000000156251&sum=100016 [18:18:40]OFD Sender: Processing packet 70375 [packets to send 18, broken 17] [18:18:40]ProducePacketName [18:18:40]name=ofd_packets/00070375 [18:18:40]OFD Sender: To server: pG, [18:18:40]CommunicateWithHost lk.salyk.kg:30040 [18:18:40]ConnectInit lk.salyk.kg [18:18:40]written 0, free lines is 4095 [18:18:40]Connected sock=10 [18:18: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 34 36 0F 01 00 00 B8 51 07 01 78 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 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 43 01 00 00 F4 03 04 00 7F EC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 12 01 00 35 04 06 00 4D B2 F5 0B 02 7C ED C4 54 85 4B 73 D9 02 [18:18: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 34 36 4F 00 00 00 18 0D 47 00 E2 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 34 36 10 04 04 00 E7 12 01 00 F4 03 04 00 1F 96 17 67 B6 04 01 00 00 E9 EA DA 2C E0 64 F0 12 [18:18:40]CommunicateWithHost err = 0 [18:18:40]CheckOFDResponse [18:18:40]1017 (14) - 77093643461234 [18:18:40]1041 (16) - 0000000000963346 [18:18:40]1040 (4) - 70375 [18:18:40]1012 (4) - 22.10.2024 12:10 [18:18:40]1206 (1) - 0 [18:18:40]OFD Sender: Remove packet 70375 [18:18:40]ProducePacketName [18:18:40]name=ofd_packets/00070375 [18:18:40]NVStorageDeleteData [18:18:40]Write to MH i2c: 01 00 00 FE 15 13 [18:18:40]Write i2c OK [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 07 00 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 10 0D 37 [18:18:40]RasterBufferAndPrint [18:18:40]line [18:18:40]line [18:18:40]line [18:18:40]line [18:18:40]line [18:18:40]written 0, free lines is 3350 [18:18:40]MH_Cut [18:18:40]Write to MH i2c: D1 01 00 05 16 01 ED [18:18:40]Write i2c OK [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: D1 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: D1 01 00 [18:18:40]MH_I2C_Read... [18:18:40]Read from MH i2c: D1 01 00 05 16 00 EC [18:18:40]Write to MH i2c: 01 00 00 06 16 1C [18:18:40]Write i2c OK [18:18:40]MH_I2C_Read... [18:18:41]OFD Sender: No OFD packet to send [18:18:41]*** Cut start [18:18:41]*** Partial cut [18:18:41]*** CUTSNS_PIN = 1 [18:18:41]*** CUTSNS_PIN = 0 [18:18:41]*** Brake cut motor [18:18:42]Read from MH i2c: 01 [18:18:42]MH_I2C_Read... [18:18:42]*** Stop cut motor [18:18:42]*** Cut end [18:18:42]Read from MH i2c: 01 07 00 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [18:18:42]process_action close_receipt done [18:18:42]requested_data is exist [18:18:42]produce_requested_data [18:18:42]requested_item fm.sn is exist - process it [18:18:42]wFMCommunicate request_size=4 [18:18:42]MH_SAM_APDU [18:18:42]CAPDU: 80 11 00 00 [18:18:42]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [18:18:42]Write i2c OK [18:18:42]MH_I2C_Read... [18:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:42]Read from MH i2c: E2 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 17 00 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [18:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:18:42]wFMCommunicate OK [18:18:42]requested_item fd.num is exist - process it [18:18:42]SAM_PROTO_GetFieldsCounters [18:18:42]wFMCommunicate request_size=4 [18:18:42]MH_SAM_APDU [18:18:42]CAPDU: 80 13 00 00 [18:18:42]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [18:18:42]Write i2c OK [18:18:42]MH_I2C_Read... [18:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:42]Read from MH i2c: E2 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 62 00 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 62 00 08 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 12 01 00 0E 04 04 00 C3 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 3E [18:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 12 01 00 0E 04 04 00 C3 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 [18:18:42]wFMCommunicate OK [18:18:42]SAM_PROTO_GetFieldsCounters done [18:18:42]requested_item shift.num is exist - process it [18:18:42]requested_item shift.opened is exist - process it [18:18:42]req_shift_opened [18:18:42]FM_GetShiftState [18:18:42]SAM_PROTO_GetShiftState [18:18:42]wFMCommunicate request_size=4 [18:18:42]MH_SAM_APDU [18:18:42]CAPDU: 80 13 01 00 [18:18:42]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [18:18:42]Write i2c OK [18:18:42]MH_I2C_Read... [18:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:42]Read from MH i2c: E2 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 0E 00 [18:18:42]MH_I2C_Read... [18:18:42]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8A [18:18:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:18:42]wFMCommunicate OK [18:18:42]SAM_PROTO_GetShiftState done [18:18:42]FM_GetShiftState done [18:18:42]req_shift_opened done [18:18:42]requested_item shift.open_date is exist - process it [18:18:42]req_shift_open_date [18:18:42]req_shift_open_date done [18:18:42]produce_requested_data done [18:18:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70375,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:18:42]process_action_free close_receipt [18:18:42]json_value_free [18:18:42]json_value_free done [18:18:42]process_json_proto returns [18:18:42]Send response to host [18:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70375,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:18:42]free response buf [18:18:42]execute_script done [18:18:42]execute_script returns [18:18:42]free content buf [18:18:42]Sock 7.Close socket [18:18:42]Sock 7.Thread stoped [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:11]accept exits with 9 [18:22:11]New connection [18:22:11]New thread 3066555748 created [18:22:11]Thread 3066699108 joined [18:22:11]Waiting for new connection... [18:22:11] Sock 9.Parse request [18:22:11]Sock 9.Check first char [18:22:11]Sock 9.First char is OK [18:22:11]request: POST /json_proto HTTP/1.0 [18:22:11]Method: POST [18:22:11]URL: /json_proto [18:22:11]Method is POST - this is cgi request [18:22:11]url: /json_proto [18:22:11]query_string will be loaded in cgi processing [18:22:11]execute_cgi json_proto POST (null) [18:22:11]execute_cgi path=json_proto method=POST [18:22:11]POST find Content-Length [18:22:11]Host: 172.17.50.3:8080 [18:22:11]Content-Length: 684 [18:22:11]Content-Type: application/json [18:22:11] [18:22:11]POST finish read [18:22:11]Found Content-Length = 684 [18:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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:22:11]execute_script... [18:22: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)2886145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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:22:11]POST & json_proto [18:22:11]process_json_proto [18:22:11]json parsed OK: [18:22:11]protocol is kg_v1.0 [18:22:11]action value=close_receipt [18:22:11]process_action close_receipt [18:22:11]cmd_close_receipt [18:22:11]MH_GetDate [18:22:11]Write to MH i2c: F0 00 00 0A 16 0F [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 09 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 09 00 0A 16 00 54 ED 17 67 6B 98 1E 66 5E [18:22:11]GetLastDocTimeStamp 1729621119 [18:22:11]current date 1729621332 [18:22:11]FM_GetShiftState [18:22:11]SAM_PROTO_GetShiftState [18:22:11]wFMCommunicate request_size=4 [18:22:11]MH_SAM_APDU [18:22:11]CAPDU: 80 13 01 00 [18:22:11]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:11]Read from MH i2c: E2 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8C [18:22:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:22:11]wFMCommunicate OK [18:22:11]SAM_PROTO_GetShiftState done [18:22:11]FM_GetShiftState done [18:22:11]opened in 1729555832 [18:22:11]opened+sec_in_day 1729642232 [18:22:11]quantity*price = 70020 [18:22:11]sum+1 = 70021 [18:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 324 22.10.2024 18:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70376 ФПД: 255115808036282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70376&fm=255115808036282&tin=02508201610067®Number=0000000000156251&sum=70000 [18:22:12]StoreToDocumentArchive [18:22:12]shift 195 fd 70376 [18:22:12]save to /storage/0195/doc_00070376 [18:22:12]save last doc name /storage/0195/doc_00070376 to /storage/kkm_last_doc_name [18:22:12]save OK [18:22:12]Clear old archive folders... [18:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:22:12]tlvbuf is 00B4FA40 [18:22:12]SAM_PROTO_ClearQueue [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 09 00 00 [18:22:12]Write to MH i2c: E2 08 00 18 16 80 09 00 00 00 00 00 00 A0 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]SAM_PROTO_ClearQueue done [18:22:12]KKMCreateOFDPacket [18:22:12]OFDProtocolAddRootSTLVToBuf [18:22:12]FM_MakeSignedData [18:22:12]FM_MakeSignedData [18:22:12]SAM_PROTO_SignData [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 0D 01 02 [18:22:12]Write to MH i2c: E2 08 00 19 16 80 0D 01 02 00 00 00 00 A8 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]wFMCommunicate request_size=255 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 44 01 00 00 F4 03 04 00 54 ED 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 12 01 [18:22:12]Write to MH i2c: E2 02 01 1A 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 44 01 00 00 F4 03 04 00 54 ED 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 12 01 00 00 E2 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:13]Read from MH i2c: E2 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 03 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [18:22:13]RAPDU: 90 00 [18:22:13]wFMCommunicate OK [18:22:13]wFMCommunicate request_size=16 [18:22:13]MH_SAM_APDU [18:22:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E8 06 C7 1D 55 BA [18:22:13]Write to MH i2c: E2 13 00 1B 16 80 0D 02 02 0B 00 00 35 04 06 00 E8 06 C7 1D 55 BA 00 00 E1 [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:13]Read from MH i2c: E2 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 03 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [18:22:13]RAPDU: 90 00 [18:22:13]wFMCommunicate OK [18:22:13]wFMCommunicate request_size=4 [18:22:13]MH_SAM_APDU [18:22:13]CAPDU: 80 0D 03 02 [18:22:13]Write to MH i2c: E2 08 00 1C 16 80 0D 03 02 00 00 00 00 AD [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:13]Read from MH i2c: E2 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 0B 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 0B 00 1C 16 00 4C 69 24 78 D6 A1 F3 8C 90 00 F5 [18:22:13]RAPDU: 4C 69 24 78 D6 A1 F3 8C 90 00 [18:22:13]wFMCommunicate OK [18:22:13]SAM_PROTO_SignData done [18:22:13]FM_MakeSignedData done [18:22:13]CreateOFDProtocolMessage [18:22:13]wFMCommunicate request_size=4 [18:22:13]MH_SAM_APDU [18:22:13]CAPDU: 80 11 00 00 [18:22:13]Write to MH i2c: E2 08 00 1D 16 80 11 00 00 00 00 00 00 AD [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:13]Read from MH i2c: E2 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 17 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 17 00 1D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [18:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:22:13]wFMCommunicate OK [18:22:13]CreateOFDProtocolMessage done [18:22:13]OFDSenderStorePacket 70376 [18:22:13]StoreOFDPacket docnum=70376 [18:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CF 8D 0D 01 D0 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 44 01 00 00 F4 03 04 00 54 ED 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 12 01 00 35 04 06 00 E8 06 C7 1D 55 BA 4C 69 24 78 D6 A1 F3 8C [18:22:13]CheckFolder [18:22:13]dirname=/storage/ofd_packets [18:22:13]CheckFolder done [18:22:13]ProducePacketName [18:22:13]name=ofd_packets/00070376 [18:22:13]NVStorageSaveData ofd_packets/00070376 [18:22:13]File name is /storage/ofd_packets/00070376 [18:22:13]Write 307 bytes [18:22:13]NVStorageSaveData done [18:22:13]OFDSenderStorePacket done [18:22:13]KKMCreateOFDPacket done [18:22:13]NVStorageSaveData kkm_last_timestamp [18:22:13]File name is /storage/kkm_last_timestamp [18:22:13]Write 4 bytes [18:22:13]NVStorageSaveData done [18:22:13]ExternCall_PrintAddStr [18:22:13]wPrintStart [18:22:13]Write to MH i2c: 01 00 00 1E 16 34 [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [18:22:13]RasterBufferAndPrint [18:22:13]line Счет N : (1)2886145 [18:22:13]line ИНН: 02508201610067 [18:22:13]line Контрольно-Кассовый Чек [18:22:13]line ПРОДАЖА [18:22:13]line ТРК (МРК, ГНК) : 31 [18:22:13]line Товар: 2710194240 [18:22:13]line D-ENERGY Дт-К-2 [18:22:13]line 9.070 * 77.20 [18:22:13]line = 700.20 [18:22:13]line НДС 12% НСП 1% [18:22:13]line > о реализуемом товаре [18:22:13]line ОКРУГЛЕНИЕ: -0.20 [18:22:13]line ИТОГО: 700.00 [18:22:13]line Внесено: 700.00 [18:22:13]line СДАЧА: 0.00 [18:22:13]line НСП 1% : 6.20 [18:22:13]line НДС 12% : 74.36 [18:22:13]line Наличными: 700.00 [18:22:13]line Безнал.: 0.00 [18:22:13]line Место: АЗС № 85 "Партнер Нефть" [18:22:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:22:13]line СНО: Общий режим [18:22:13]line Чек 324 22.10.2024 18:22 [18:22:13]line Смена: 195 ФФД: 1.0 [18:22:13]line ЗНМ: 0300000167 [18:22:13]line РНМ: 0000000000156251 [18:22:13]line Версия ККМ: v1.0 [18:22:13]line ФМ: 0000000000963346 [18:22:13]line ФД: 70376 [18:22:13]line ФПД: 255115808036282 [18:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70376&fm=255115808036282&tin=02508201610067®Number=0000000000156251&sum=70000 [18:22:13]OFD Sender: Processing packet 70376 [packets to send 18, broken 17] [18:22:13]ProducePacketName [18:22:13]name=ofd_packets/00070376 [18:22:13]OFD Sender: To server: pG, [18:22:13]CommunicateWithHost lk.salyk.kg:30040 [18:22:13]ConnectInit lk.salyk.kg [18:22:13]written 0, free lines is 4095 [18:22:13]Connected sock=10 [18:22: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 34 36 15 01 00 00 CF 8D 0D 01 D0 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 44 01 00 00 F4 03 04 00 54 ED 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 12 01 00 35 04 06 00 E8 06 C7 1D 55 BA 4C 69 24 78 D6 A1 F3 8C [18:22: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 34 36 4F 00 00 00 02 28 47 00 DE 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 34 36 10 04 04 00 E8 12 01 00 F4 03 04 00 F4 96 17 67 B6 04 01 00 00 4A 87 08 F3 C6 00 3A 3B [18:22:13]CommunicateWithHost err = 0 [18:22:13]CheckOFDResponse [18:22:13]1017 (14) - 77093643461234 [18:22:13]1041 (16) - 0000000000963346 [18:22:13]1040 (4) - 70376 [18:22:13]1012 (4) - 22.10.2024 12:13 [18:22:13]1206 (1) - 0 [18:22:13]OFD Sender: Remove packet 70376 [18:22:13]ProducePacketName [18:22:13]name=ofd_packets/00070376 [18:22:13]NVStorageDeleteData [18:22:13]Write to MH i2c: 01 00 00 49 16 5F [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 EC 0C 5E [18:22:13]RasterBufferAndPrint [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]written 0, free lines is 3314 [18:22:13]MH_Cut [18:22:13]Write to MH i2c: D1 01 00 50 16 01 38 [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 01 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 01 00 50 16 00 37 [18:22:13]Write to MH i2c: 01 00 00 51 16 67 [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]OFD Sender: No OFD packet to send [18:22:14]*** Cut start [18:22:14]*** Partial cut [18:22:14]*** CUTSNS_PIN = 1 [18:22:14]*** CUTSNS_PIN = 0 [18:22:14]*** Brake cut motor [18:22:15]Read from MH i2c: 01 [18:22:15]MH_I2C_Read... [18:22:15]*** Stop cut motor [18:22:15]*** Cut end [18:22:15]Read from MH i2c: 01 07 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 51 16 00 00 00 00 00 FF 0F 7C [18:22:15]process_action close_receipt done [18:22:15]requested_data is exist [18:22:15]produce_requested_data [18:22:15]requested_item fm.sn is exist - process it [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 11 00 00 [18:22:15]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 17 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [18:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:22:15]wFMCommunicate OK [18:22:15]requested_item fd.num is exist - process it [18:22:15]SAM_PROTO_GetFieldsCounters [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 13 00 00 [18:22:15]Write to MH i2c: E2 08 00 53 16 80 13 00 00 00 00 00 00 E5 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 62 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 62 00 53 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 12 01 00 0E 04 04 00 C3 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 8D [18:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 12 01 00 0E 04 04 00 C3 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 [18:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_GetFieldsCounters done [18:22:15]requested_item shift.num is exist - process it [18:22:15]requested_item shift.opened is exist - process it [18:22:15]req_shift_opened [18:22:15]FM_GetShiftState [18:22:15]SAM_PROTO_GetShiftState [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 13 01 00 [18:22:15]Write to MH i2c: E2 08 00 54 16 80 13 01 00 00 00 00 00 E7 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0E 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0E 00 54 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D5 [18:22:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_GetShiftState done [18:22:15]FM_GetShiftState done [18:22:15]req_shift_opened done [18:22:15]requested_item shift.open_date is exist - process it [18:22:15]req_shift_open_date [18:22:15]req_shift_open_date done [18:22:15]produce_requested_data done [18:22:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70376,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:22:15]process_action_free close_receipt [18:22:15]json_value_free [18:22:15]json_value_free done [18:22:15]process_json_proto returns [18:22:15]Send response to host [18:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70376,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:22:15]free response buf [18:22:15]execute_script done [18:22:15]execute_script returns [18:22:15]free content buf [18:22:15]Sock 9.Close socket [18:22:15]Sock 9.Thread stoped [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:27]accept exits with 7 [18:26:27]New connection [18:26:27]New thread 3066699108 created [18:26:27]Thread 3066555748 joined [18:26:27]Waiting for new connection... [18:26:27] Sock 7.Parse request [18:26:27]Sock 7.Check first char [18:26:27]Sock 7.First char is OK [18:26:27]request: POST /json_proto HTTP/1.0 [18:26:27]Method: POST [18:26:27]URL: /json_proto [18:26:27]Method is POST - this is cgi request [18:26:27]url: /json_proto [18:26:27]query_string will be loaded in cgi processing [18:26:27]execute_cgi json_proto POST (null) [18:26:27]execute_cgi path=json_proto method=POST [18:26:27]POST find Content-Length [18:26:27]Host: 172.17.50.3:8080 [18:26:27]Content-Length: 689 [18:26:27]Content-Type: application/json [18:26:27] [18:26:27]POST finish read [18:26:27]Found Content-Length = 689 [18:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:26:27]execute_script... [18:26: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)2886147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:26:27]POST & json_proto [18:26:27]process_json_proto [18:26:27]json parsed OK: [18:26:27]protocol is kg_v1.0 [18:26:27]action value=close_receipt [18:26:27]process_action close_receipt [18:26:27]cmd_close_receipt [18:26:27]MH_GetDate [18:26:27]Write to MH i2c: F0 00 00 55 16 5A [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 09 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 09 00 55 16 00 53 EE 17 67 6B 98 1E 66 A9 [18:26:27]GetLastDocTimeStamp 1729621332 [18:26:27]current date 1729621587 [18:26:27]FM_GetShiftState [18:26:27]SAM_PROTO_GetShiftState [18:26:27]wFMCommunicate request_size=4 [18:26:27]MH_SAM_APDU [18:26:27]CAPDU: 80 13 01 00 [18:26:27]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0E 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D7 [18:26:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:26:27]wFMCommunicate OK [18:26:27]SAM_PROTO_GetShiftState done [18:26:27]FM_GetShiftState done [18:26:27]opened in 1729555832 [18:26:27]opened+sec_in_day 1729642232 [18:26:27]quantity*price = 100051 [18:26:27]sum+1 = 100052 [18:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 325 22.10.2024 18:26 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70377 ФПД: 197633663728944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70377&fm=197633663728944&tin=02508201610067®Number=0000000000156251&sum=100000 [18:26:28]StoreToDocumentArchive [18:26:28]shift 195 fd 70377 [18:26:28]save to /storage/0195/doc_00070377 [18:26:28]save last doc name /storage/0195/doc_00070377 to /storage/kkm_last_doc_name [18:26:28]save OK [18:26:28]Clear old archive folders... [18:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:26:28]tlvbuf is 00B4FC70 [18:26:28]SAM_PROTO_ClearQueue [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 09 00 00 [18:26:28]Write to MH i2c: E2 08 00 63 16 80 09 00 00 00 00 00 00 EB [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]SAM_PROTO_ClearQueue done [18:26:28]KKMCreateOFDPacket [18:26:28]OFDProtocolAddRootSTLVToBuf [18:26:28]FM_MakeSignedData [18:26:28]FM_MakeSignedData [18:26:28]SAM_PROTO_SignData [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 01 02 [18:26:28]Write to MH i2c: E2 08 00 64 16 80 0D 01 02 00 00 00 00 F3 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=255 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 45 01 00 00 F4 03 04 00 53 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 12 01 [18:26:28]Write to MH i2c: E2 02 01 65 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 45 01 00 00 F4 03 04 00 53 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 12 01 00 00 09 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=16 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B3 BF 2C 52 7D 30 [18:26:28]Write to MH i2c: E2 13 00 66 16 80 0D 02 02 0B 00 00 35 04 06 00 B3 BF 2C 52 7D 30 00 00 E8 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 03 02 [18:26:28]Write to MH i2c: E2 08 00 67 16 80 0D 03 02 00 00 00 00 F8 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 0B 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 0B 00 67 16 00 24 0D 3D 43 0F 37 3D 98 90 00 C5 [18:26:28]RAPDU: 24 0D 3D 43 0F 37 3D 98 90 00 [18:26:28]wFMCommunicate OK [18:26:28]SAM_PROTO_SignData done [18:26:28]FM_MakeSignedData done [18:26:28]CreateOFDProtocolMessage [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 11 00 00 [18:26:28]Write to MH i2c: E2 08 00 68 16 80 11 00 00 00 00 00 00 F8 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 17 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 17 00 68 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [18:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:26:28]wFMCommunicate OK [18:26:28]CreateOFDProtocolMessage done [18:26:28]OFDSenderStorePacket 70377 [18:26:28]StoreOFDPacket docnum=70377 [18:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8B 3C 0D 01 C9 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 45 01 00 00 F4 03 04 00 53 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 12 01 00 35 04 06 00 B3 BF 2C 52 7D 30 24 0D 3D 43 0F 37 3D 98 [18:26:28]CheckFolder [18:26:28]dirname=/storage/ofd_packets [18:26:28]CheckFolder done [18:26:28]ProducePacketName [18:26:28]name=ofd_packets/00070377 [18:26:28]NVStorageSaveData ofd_packets/00070377 [18:26:28]File name is /storage/ofd_packets/00070377 [18:26:28]Write 307 bytes [18:26:28]NVStorageSaveData done [18:26:28]OFDSenderStorePacket done [18:26:28]KKMCreateOFDPacket done [18:26:28]NVStorageSaveData kkm_last_timestamp [18:26:28]File name is /storage/kkm_last_timestamp [18:26:28]Write 4 bytes [18:26:28]NVStorageSaveData done [18:26:28]ExternCall_PrintAddStr [18:26:28]wPrintStart [18:26:28]Write to MH i2c: 01 00 00 69 16 7F [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 07 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 FF 0F 94 [18:26:28]RasterBufferAndPrint [18:26:28]line Счет N : (1)2886147 [18:26:28]line ИНН: 02508201610067 [18:26:28]line Контрольно-Кассовый Чек [18:26:28]line ПРОДАЖА [18:26:28]line ТРК (МРК, ГНК) : 31 [18:26:28]line Товар: 2710194240 [18:26:28]line D-ENERGY Дт-К-2 [18:26:28]line 12.960 * 77.20 [18:26:28]line = 1000.51 [18:26:28]line НДС 12% НСП 1% [18:26:28]line > о реализуемом товаре [18:26:28]line ОКРУГЛЕНИЕ: -0.51 [18:26:28]line ИТОГО: 1000.00 [18:26:28]line Внесено: 1000.00 [18:26:28]line СДАЧА: 0.00 [18:26:28]line НСП 1% : 8.85 [18:26:28]line НДС 12% : 106.25 [18:26:28]line Наличными: 1000.00 [18:26:28]line Безнал.: 0.00 [18:26:28]line Место: АЗС № 85 "Партнер Нефть" [18:26:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:26:28]line СНО: Общий режим [18:26:28]line Чек 325 22.10.2024 18:26 [18:26:28]line Смена: 195 ФФД: 1.0 [18:26:28]line ЗНМ: 0300000167 [18:26:28]line РНМ: 0000000000156251 [18:26:28]line Версия ККМ: v1.0 [18:26:28]line ФМ: 0000000000963346 [18:26:28]line ФД: 70377 [18:26:28]line ФПД: 197633663728944 [18:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70377&fm=197633663728944&tin=02508201610067®Number=0000000000156251&sum=100000 [18:26:29]OFD Sender: Processing packet 70377 [packets to send 18, broken 17] [18:26:29]ProducePacketName [18:26:29]name=ofd_packets/00070377 [18:26:29]OFD Sender: To server: pG, [18:26:29]CommunicateWithHost lk.salyk.kg:30040 [18:26:29]ConnectInit lk.salyk.kg [18:26:29]written 0, free lines is 4095 [18:26:29]Connected sock=10 [18:26: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 34 36 15 01 00 00 8B 3C 0D 01 C9 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 45 01 00 00 F4 03 04 00 53 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 12 01 00 35 04 06 00 B3 BF 2C 52 7D 30 24 0D 3D 43 0F 37 3D 98 [18:26: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 34 36 4F 00 00 00 80 30 47 00 40 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 34 36 10 04 04 00 E9 12 01 00 F4 03 04 00 F4 97 17 67 B6 04 01 00 00 B8 F5 E7 8C 5E 30 DC F9 [18:26:29]CommunicateWithHost err = 0 [18:26:29]CheckOFDResponse [18:26:29]1017 (14) - 77093643461234 [18:26:29]1041 (16) - 0000000000963346 [18:26:29]1040 (4) - 70377 [18:26:29]1012 (4) - 22.10.2024 12:17 [18:26:29]1206 (1) - 0 [18:26:29]OFD Sender: Remove packet 70377 [18:26:29]ProducePacketName [18:26:29]name=ofd_packets/00070377 [18:26:29]NVStorageDeleteData [18:26:29]Write to MH i2c: 01 00 00 94 16 AA [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 EE 0C AB [18:26:29]RasterBufferAndPrint [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]written 0, free lines is 3316 [18:26:29]MH_Cut [18:26:29]Write to MH i2c: D1 01 00 9B 16 01 83 [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 01 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 01 00 9B 16 00 82 [18:26:29]Write to MH i2c: 01 00 00 9C 16 B2 [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:30]OFD Sender: No OFD packet to send [18:26:30]*** Cut start [18:26:30]*** Partial cut [18:26:30]*** CUTSNS_PIN = 1 [18:26:30]*** CUTSNS_PIN = 0 [18:26:30]*** Brake cut motor [18:26:31]Read from MH i2c: 01 [18:26:31]MH_I2C_Read... [18:26:31]*** Stop cut motor [18:26:31]*** Cut end [18:26:31]Read from MH i2c: 01 07 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 FF 0F C7 [18:26:31]process_action close_receipt done [18:26:31]requested_data is exist [18:26:31]produce_requested_data [18:26:31]requested_item fm.sn is exist - process it [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 11 00 00 [18:26:31]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [18:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:26:31]wFMCommunicate OK [18:26:31]requested_item fd.num is exist - process it [18:26:31]SAM_PROTO_GetFieldsCounters [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 13 00 00 [18:26:31]Write to MH i2c: E2 08 00 9E 16 80 13 00 00 00 00 00 00 30 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 62 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 62 00 9E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 12 01 00 0E 04 04 00 C3 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 DC [18:26: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 12 01 00 0E 04 04 00 C3 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 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_GetFieldsCounters done [18:26:31]requested_item shift.num is exist - process it [18:26:31]requested_item shift.opened is exist - process it [18:26:31]req_shift_opened [18:26:31]FM_GetShiftState [18:26:31]SAM_PROTO_GetShiftState [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 13 01 00 [18:26:31]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 20 [18:26:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_GetShiftState done [18:26:31]FM_GetShiftState done [18:26:31]req_shift_opened done [18:26:31]requested_item shift.open_date is exist - process it [18:26:31]req_shift_open_date [18:26:31]req_shift_open_date done [18:26:31]produce_requested_data done [18:26:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70377,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:26:31]process_action_free close_receipt [18:26:31]json_value_free [18:26:31]json_value_free done [18:26:31]process_json_proto returns [18:26:31]Send response to host [18:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70377,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:26:31]free response buf [18:26:31]execute_script done [18:26:31]execute_script returns [18:26:31]free content buf [18:26:31]Sock 7.Close socket [18:26:31]Sock 7.Thread stoped [18:26:31]accept exits with 9 [18:26:31]New connection [18:26:31]New thread 3066555748 created [18:26:31]Thread 3066699108 joined [18:26:31]Waiting for new connection... [18:26:31] Sock 9.Parse request [18:26:31]Sock 9.Check first char [18:26:31]Sock 9.First char is OK [18:26:31]request: POST /json_proto HTTP/1.0 [18:26:31]Method: POST [18:26:31]URL: /json_proto [18:26:31]Method is POST - this is cgi request [18:26:31]url: /json_proto [18:26:31]query_string will be loaded in cgi processing [18:26:31]execute_cgi json_proto POST (null) [18:26:31]execute_cgi path=json_proto method=POST [18:26:31]POST find Content-Length [18:26:31]Host: 172.17.50.3:8080 [18:26:31]Content-Length: 689 [18:26:31]Content-Type: application/json [18:26:31] [18:26:31]POST finish read [18:26:31]Found Content-Length = 689 [18:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.930, "sum" : 1461.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:31]execute_script... [18:26: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)2886146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.930, "sum" : 1461.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:31]POST & json_proto [18:26:31]process_json_proto [18:26:31]json parsed OK: [18:26:31]protocol is kg_v1.0 [18:26:31]action value=close_receipt [18:26:31]process_action close_receipt [18:26:31]cmd_close_receipt [18:26:31]MH_GetDate [18:26:31]Write to MH i2c: F0 00 00 A0 16 A5 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: F0 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: F0 09 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: F0 09 00 A0 16 00 58 EE 17 67 6B 98 1E 66 F9 [18:26:31]GetLastDocTimeStamp 1729621587 [18:26:31]current date 1729621592 [18:26:31]FM_GetShiftState [18:26:31]SAM_PROTO_GetShiftState [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 13 01 00 [18:26:31]Write to MH i2c: E2 08 00 A1 16 80 13 01 00 00 00 00 00 34 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 A1 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 22 [18:26:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_GetShiftState done [18:26:31]FM_GetShiftState done [18:26:31]opened in 1729555832 [18:26:31]opened+sec_in_day 1729642232 [18:26:31]quantity*price = 146139 [18:26:31]sum+1 = 146141 [18:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1461.00 Внесено: 5000.00 СДАЧА: 3539.00 НСП 1% : 12.93 НДС 12% : 155.19 Наличными: 1461.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 326 22.10.2024 18:26 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70378 ФПД: 5606254264724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70378&fm=5606254264724&tin=02508201610067®Number=0000000000156251&sum=146100 [18:26:33]StoreToDocumentArchive [18:26:33]shift 195 fd 70378 [18:26:33]save to /storage/0195/doc_00070378 [18:26:33]save last doc name /storage/0195/doc_00070378 to /storage/kkm_last_doc_name [18:26:33]save OK [18:26:33]Clear old archive folders... [18:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:26:33]tlvbuf is 00B123B0 [18:26:33]SAM_PROTO_ClearQueue [18:26:33]wFMCommunicate request_size=4 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 09 00 00 [18:26:33]Write to MH i2c: E2 08 00 AE 16 80 09 00 00 00 00 00 00 36 [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [18:26:33]RAPDU: 90 00 [18:26:33]wFMCommunicate OK [18:26:33]SAM_PROTO_ClearQueue done [18:26:33]KKMCreateOFDPacket [18:26:33]OFDProtocolAddRootSTLVToBuf [18:26:33]FM_MakeSignedData [18:26:33]FM_MakeSignedData [18:26:33]SAM_PROTO_SignData [18:26:33]wFMCommunicate request_size=4 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 0D 01 02 [18:26:33]Write to MH i2c: E2 08 00 AF 16 80 0D 01 02 00 00 00 00 3E [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [18:26:33]RAPDU: 90 00 [18:26:33]wFMCommunicate OK [18:26:33]wFMCommunicate request_size=255 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 58 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 12 01 [18:26:33]Write to MH i2c: E2 02 01 B0 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 58 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 12 01 00 00 DF [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [18:26:33]RAPDU: 90 00 [18:26:33]wFMCommunicate OK [18:26:33]wFMCommunicate request_size=16 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 05 19 4E CB 41 94 [18:26:33]Write to MH i2c: E2 13 00 B1 16 80 0D 02 02 0B 00 00 35 04 06 00 05 19 4E CB 41 94 00 00 A2 [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [18:26:33]RAPDU: 90 00 [18:26:33]wFMCommunicate OK [18:26:33]wFMCommunicate request_size=4 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 0D 03 02 [18:26:33]Write to MH i2c: E2 08 00 B2 16 80 0D 03 02 00 00 00 00 43 [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 0B 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 0B 00 B2 16 00 7F 0F 65 3E 48 30 3E 9E 90 00 C9 [18:26:33]RAPDU: 7F 0F 65 3E 48 30 3E 9E 90 00 [18:26:33]wFMCommunicate OK [18:26:33]SAM_PROTO_SignData done [18:26:33]FM_MakeSignedData done [18:26:33]CreateOFDProtocolMessage [18:26:33]wFMCommunicate request_size=4 [18:26:33]MH_SAM_APDU [18:26:33]CAPDU: 80 11 00 00 [18:26:33]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:33]Read from MH i2c: E2 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 17 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: E2 17 00 B3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [18:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:26:33]wFMCommunicate OK [18:26:33]CreateOFDProtocolMessage done [18:26:33]OFDSenderStorePacket 70378 [18:26:33]StoreOFDPacket docnum=70378 [18:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3C 71 0D 01 23 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 58 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 12 01 00 35 04 06 00 05 19 4E CB 41 94 7F 0F 65 3E 48 30 3E 9E [18:26:33]CheckFolder [18:26:33]dirname=/storage/ofd_packets [18:26:33]CheckFolder done [18:26:33]ProducePacketName [18:26:33]name=ofd_packets/00070378 [18:26:33]NVStorageSaveData ofd_packets/00070378 [18:26:33]File name is /storage/ofd_packets/00070378 [18:26:33]Write 307 bytes [18:26:33]NVStorageSaveData done [18:26:33]OFDSenderStorePacket done [18:26:33]KKMCreateOFDPacket done [18:26:33]NVStorageSaveData kkm_last_timestamp [18:26:33]File name is /storage/kkm_last_timestamp [18:26:33]Write 4 bytes [18:26:33]NVStorageSaveData done [18:26:33]ExternCall_PrintAddStr [18:26:33]wPrintStart [18:26:33]Write to MH i2c: 01 00 00 B4 16 CA [18:26:33]Write i2c OK [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: 01 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: 01 07 00 [18:26:33]MH_I2C_Read... [18:26:33]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 FF 0F DF [18:26:33]RasterBufferAndPrint [18:26:33]line Счет N : (1)2886146 [18:26:33]line ИНН: 02508201610067 [18:26:33]line Контрольно-Кассовый Чек [18:26:33]line ПРОДАЖА [18:26:33]line ТРК (МРК, ГНК) : 11 [18:26:33]line Товар: 2710194240 [18:26:33]line D-ENERGY Дт-К-2 [18:26:33]line 18.930 * 77.20 [18:26:33]line = 1461.40 [18:26:33]line НДС 12% НСП 1% [18:26:33]line > о реализуемом товаре [18:26:33]line ОКРУГЛЕНИЕ: -0.40 [18:26:33]line ИТОГО: 1461.00 [18:26:33]line Внесено: 5000.00 [18:26:33]line СДАЧА: 3539.00 [18:26:33]line НСП 1% : 12.93 [18:26:33]line НДС 12% : 155.19 [18:26:33]line Наличными: 1461.00 [18:26:33]line Безнал.: 0.00 [18:26:34]line Место: АЗС № 85 "Партнер Нефть" [18:26:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:26:34]line СНО: Общий режим [18:26:34]line Чек 326 22.10.2024 18:26 [18:26:34]line Смена: 195 ФФД: 1.0 [18:26:34]line ЗНМ: 0300000167 [18:26:34]line РНМ: 0000000000156251 [18:26:34]line Версия ККМ: v1.0 [18:26:34]line ФМ: 0000000000963346 [18:26:34]line ФД: 70378 [18:26:34]line ФПД: 5606254264724 [18:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70378&fm=5606254264724&tin=02508201610067®Number=0000000000156251&sum=146100 [18:26:34]OFD Sender: Processing packet 70378 [packets to send 18, broken 17] [18:26:34]ProducePacketName [18:26:34]name=ofd_packets/00070378 [18:26:34]OFD Sender: To server: pG, [18:26:34]CommunicateWithHost lk.salyk.kg:30040 [18:26:34]ConnectInit lk.salyk.kg [18:26:34]written 0, free lines is 4095 [18:26:34]Connected sock=7 [18:26: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 34 36 15 01 00 00 3C 71 0D 01 23 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 58 EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 12 01 00 35 04 06 00 05 19 4E CB 41 94 7F 0F 65 3E 48 30 3E 9E [18:26: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 34 36 4F 00 00 00 A1 71 47 00 2C 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 34 36 10 04 04 00 EA 12 01 00 F4 03 04 00 F9 97 17 67 B6 04 01 00 00 25 4F CD DF 04 E4 34 EC [18:26:34]CommunicateWithHost err = 0 [18:26:34]CheckOFDResponse [18:26:34]1017 (14) - 77093643461234 [18:26:34]1041 (16) - 0000000000963346 [18:26:34]1040 (4) - 70378 [18:26:34]1012 (4) - 22.10.2024 12:18 [18:26:34]1206 (1) - 0 [18:26:34]OFD Sender: Remove packet 70378 [18:26:34]ProducePacketName [18:26:34]name=ofd_packets/00070378 [18:26:34]NVStorageDeleteData [18:26:34]Write to MH i2c: 01 00 00 DF 16 F5 [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: 01 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: 01 07 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 00 0D 09 [18:26:34]RasterBufferAndPrint [18:26:34]line [18:26:34]line [18:26:34]line [18:26:34]line [18:26:34]line [18:26:34]written 0, free lines is 3343 [18:26:34]MH_Cut [18:26:34]Write to MH i2c: D1 01 00 E6 16 01 CE [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: D1 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: D1 01 00 [18:26:34]MH_I2C_Read... [18:26:34]Read from MH i2c: D1 01 00 E6 16 00 CD [18:26:34]Write to MH i2c: 01 00 00 E7 16 FD [18:26:34]Write i2c OK [18:26:34]MH_I2C_Read... [18:26:35]OFD Sender: No OFD packet to send [18:26:35]*** Cut start [18:26:35]*** Partial cut [18:26:35]*** CUTSNS_PIN = 1 [18:26:35]*** CUTSNS_PIN = 0 [18:26:35]*** Brake cut motor [18:26:36]Read from MH i2c: 01 [18:26:36]MH_I2C_Read... [18:26:36]*** Stop cut motor [18:26:36]*** Cut end [18:26:36]Read from MH i2c: 01 07 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [18:26:36]process_action close_receipt done [18:26:36]requested_data is exist [18:26:36]produce_requested_data [18:26:36]requested_item fm.sn is exist - process it [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 11 00 00 [18:26:36]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 17 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [18:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:26:36]wFMCommunicate OK [18:26:36]requested_item fd.num is exist - process it [18:26:36]SAM_PROTO_GetFieldsCounters [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 13 00 00 [18:26:36]Write to MH i2c: E2 08 00 E9 16 80 13 00 00 00 00 00 00 7B [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 62 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 62 00 E9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 12 01 00 0E 04 04 00 C3 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 2B [18:26: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 12 01 00 0E 04 04 00 C3 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 [18:26:36]wFMCommunicate OK [18:26:36]SAM_PROTO_GetFieldsCounters done [18:26:36]requested_item shift.num is exist - process it [18:26:36]requested_item shift.opened is exist - process it [18:26:36]req_shift_opened [18:26:36]FM_GetShiftState [18:26:36]SAM_PROTO_GetShiftState [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 13 01 00 [18:26:36]Write to MH i2c: E2 08 00 EA 16 80 13 01 00 00 00 00 00 7D [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 0E 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 0E 00 EA 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6B [18:26:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:26:36]wFMCommunicate OK [18:26:36]SAM_PROTO_GetShiftState done [18:26:36]FM_GetShiftState done [18:26:36]req_shift_opened done [18:26:36]requested_item shift.open_date is exist - process it [18:26:36]req_shift_open_date [18:26:36]req_shift_open_date done [18:26:36]produce_requested_data done [18:26:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70378,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:26:36]process_action_free close_receipt [18:26:36]json_value_free [18:26:36]json_value_free done [18:26:36]process_json_proto returns [18:26:36]Send response to host [18:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70378,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:26:36]free response buf [18:26:36]execute_script done [18:26:36]execute_script returns [18:26:36]free content buf [18:26:36]Sock 9.Close socket [18:26:36]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [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:18]accept exits with 10 [18:29:18]New connection [18:29:18]New thread 3066699108 created [18:29:18]Thread 3066555748 joined [18:29:18]Waiting for new connection... [18:29:18] Sock 10.Parse request [18:29:18]Sock 10.Check first char [18:29:18]Sock 10.First char is OK [18:29:18]request: POST /json_proto HTTP/1.0 [18:29:18]Method: POST [18:29:18]URL: /json_proto [18:29:18]Method is POST - this is cgi request [18:29:18]url: /json_proto [18:29:18]query_string will be loaded in cgi processing [18:29:18]execute_cgi json_proto POST (null) [18:29:18]execute_cgi path=json_proto method=POST [18:29:18]POST find Content-Length [18:29:18]Host: 172.17.50.3:8080 [18:29:18]Content-Length: 679 [18:29:18]Content-Type: application/json [18:29:18] [18:29:18]POST finish read [18:29:18]Found Content-Length = 679 [18:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [18:29:18]execute_script... [18:29: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)2886148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [18:29:18]POST & json_proto [18:29:18]process_json_proto [18:29:18]json parsed OK: [18:29:18]protocol is kg_v1.0 [18:29:18]action value=close_receipt [18:29:18]process_action close_receipt [18:29:18]cmd_close_receipt [18:29:18]MH_GetDate [18:29:18]Write to MH i2c: F0 00 00 EB 16 F0 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 09 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 09 00 EB 16 00 FF EE 17 67 6B 98 1E 66 EB [18:29:18]GetLastDocTimeStamp 1729621592 [18:29:18]current date 1729621759 [18:29:18]FM_GetShiftState [18:29:18]SAM_PROTO_GetShiftState [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 01 00 [18:29:18]Write to MH i2c: E2 08 00 EC 16 80 13 01 00 00 00 00 00 7F [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 EC 16 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6D [18:29:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_GetShiftState done [18:29:18]FM_GetShiftState done [18:29:18]opened in 1729555832 [18:29:18]opened+sec_in_day 1729642232 [18:29:18]quantity*price = 90047 [18:29:18]sum+1 = 90048 [18:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 327 22.10.2024 18:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70379 ФПД: 180089226996548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70379&fm=180089226996548&tin=02508201610067®Number=0000000000156251&sum=90000 [18:29:19]StoreToDocumentArchive [18:29:19]shift 195 fd 70379 [18:29:19]save to /storage/0195/doc_00070379 [18:29:19]save last doc name /storage/0195/doc_00070379 to /storage/kkm_last_doc_name [18:29:19]save OK [18:29:19]Clear old archive folders... [18:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:19]tlvbuf is 00B2EEE0 [18:29:19]SAM_PROTO_ClearQueue [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 09 00 00 [18:29:19]Write to MH i2c: E2 08 00 F9 16 80 09 00 00 00 00 00 00 81 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [18:29:19]RAPDU: 90 00 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_ClearQueue done [18:29:19]KKMCreateOFDPacket [18:29:19]OFDProtocolAddRootSTLVToBuf [18:29:19]FM_MakeSignedData [18:29:19]FM_MakeSignedData [18:29:19]SAM_PROTO_SignData [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 0D 01 02 [18:29:19]Write to MH i2c: E2 08 00 FA 16 80 0D 01 02 00 00 00 00 89 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [18:29:19]RAPDU: 90 00 [18:29:19]wFMCommunicate OK [18:29:19]wFMCommunicate request_size=255 [18:29:19]MH_SAM_APDU [18:29: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 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 47 01 00 00 F4 03 04 00 FF EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 12 01 00 35 04 06 00 A3 [18:29:19]Write to MH i2c: E2 02 01 FB 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 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 47 01 00 00 F4 03 04 00 FF EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 12 01 00 35 04 06 00 A3 00 00 46 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [18:29:19]RAPDU: 90 00 [18:29:19]wFMCommunicate OK [18:29:19]wFMCommunicate request_size=10 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 0D 02 02 05 CA 4A 67 2B 44 [18:29:19]Write to MH i2c: E2 0D 00 FC 16 80 0D 02 02 05 00 CA 4A 67 2B 44 00 00 80 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [18:29:19]RAPDU: 90 00 [18:29:19]wFMCommunicate OK [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 0D 03 02 [18:29:19]Write to MH i2c: E2 08 00 FD 16 80 0D 03 02 00 00 00 00 8E [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 0B 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 0B 00 FD 16 00 5F 73 88 AE 0E 07 FD B2 90 00 5B [18:29:20]RAPDU: 5F 73 88 AE 0E 07 FD B2 90 00 [18:29:20]wFMCommunicate OK [18:29:20]SAM_PROTO_SignData done [18:29:20]FM_MakeSignedData done [18:29:20]CreateOFDProtocolMessage [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 11 00 00 [18:29:20]Write to MH i2c: E2 08 00 FE 16 80 11 00 00 00 00 00 00 8E [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 17 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 17 00 FE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [18:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:29:20]wFMCommunicate OK [18:29:20]CreateOFDProtocolMessage done [18:29:20]OFDSenderStorePacket 70379 [18:29:20]StoreOFDPacket docnum=70379 [18:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 0B 07 01 0A 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 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 47 01 00 00 F4 03 04 00 FF EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 12 01 00 35 04 06 00 A3 CA 4A 67 2B 44 5F 73 88 AE 0E 07 FD B2 [18:29:20]CheckFolder [18:29:20]dirname=/storage/ofd_packets [18:29:20]CheckFolder done [18:29:20]ProducePacketName [18:29:20]name=ofd_packets/00070379 [18:29:20]NVStorageSaveData ofd_packets/00070379 [18:29:20]File name is /storage/ofd_packets/00070379 [18:29:20]Write 301 bytes [18:29:20]NVStorageSaveData done [18:29:20]OFDSenderStorePacket done [18:29:20]KKMCreateOFDPacket done [18:29:20]NVStorageSaveData kkm_last_timestamp [18:29:20]File name is /storage/kkm_last_timestamp [18:29:20]Write 4 bytes [18:29:20]NVStorageSaveData done [18:29:20]ExternCall_PrintAddStr [18:29:20]wPrintStart [18:29:20]Write to MH i2c: 01 00 00 FF 16 15 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 07 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 FF 0F 2A [18:29:20]RasterBufferAndPrint [18:29:20]line Счет N : (1)2886148 [18:29:20]line ИНН: 02508201610067 [18:29:20]line Контрольно-Кассовый Чек [18:29:20]line ПРОДАЖА [18:29:20]line ТРК (МРК, ГНК) : 12 [18:29:20]line Товар: 2710124130 [18:29:20]line Аи-92-К-5 [18:29:20]line 13.460 * 66.90 [18:29:20]line = 900.47 [18:29:20]line НДС 12% НСП 1% [18:29:20]line > о реализуемом товаре [18:29:20]line ОКРУГЛЕНИЕ: -0.47 [18:29:20]line ИТОГО: 900.00 [18:29:20]line Внесено: 900.00 [18:29:20]line СДАЧА: 0.00 [18:29:20]line НСП 1% : 7.97 [18:29:20]line НДС 12% : 95.62 [18:29:20]line Наличными: 900.00 [18:29:20]line Безнал.: 0.00 [18:29:20]line Место: АЗС № 85 "Партнер Нефть" [18:29:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:29:20]line СНО: Общий режим [18:29:20]line Чек 327 22.10.2024 18:29 [18:29:20]line Смена: 195 ФФД: 1.0 [18:29:20]line ЗНМ: 0300000167 [18:29:20]line РНМ: 0000000000156251 [18:29:20]line Версия ККМ: v1.0 [18:29:20]line ФМ: 0000000000963346 [18:29:20]line ФД: 70379 [18:29:20]line ФПД: 180089226996548 [18:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70379&fm=180089226996548&tin=02508201610067®Number=0000000000156251&sum=90000 [18:29:20]OFD Sender: Processing packet 70379 [packets to send 18, broken 17] [18:29:20]ProducePacketName [18:29:20]name=ofd_packets/00070379 [18:29:20]OFD Sender: To server: pG, [18:29:20]CommunicateWithHost lk.salyk.kg:30040 [18:29:20]ConnectInit lk.salyk.kg [18:29:20]written 0, free lines is 4095 [18:29:20]Connected sock=9 [18:29: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 34 36 0F 01 00 00 60 0B 07 01 0A 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 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 47 01 00 00 F4 03 04 00 FF EE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 12 01 00 35 04 06 00 A3 CA 4A 67 2B 44 5F 73 88 AE 0E 07 FD B2 [18:29: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 34 36 4F 00 00 00 AF 94 47 00 9E 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 34 36 10 04 04 00 EB 12 01 00 F4 03 04 00 9F 98 17 67 B6 04 01 00 00 03 16 3B BF 77 7F 19 9F [18:29:20]CommunicateWithHost err = 0 [18:29:20]CheckOFDResponse [18:29:20]1017 (14) - 77093643461234 [18:29:20]1041 (16) - 0000000000963346 [18:29:20]1040 (4) - 70379 [18:29:20]1012 (4) - 22.10.2024 12:20 [18:29:20]1206 (1) - 0 [18:29:20]OFD Sender: Remove packet 70379 [18:29:20]ProducePacketName [18:29:20]name=ofd_packets/00070379 [18:29:20]NVStorageDeleteData [18:29:20]Write to MH i2c: 01 00 00 2A 17 41 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 07 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 F9 0C 4D [18:29:20]RasterBufferAndPrint [18:29:20]line [18:29:20]line [18:29:20]line [18:29:20]line [18:29:20]line [18:29:20]written 0, free lines is 3327 [18:29:20]MH_Cut [18:29:20]Write to MH i2c: D1 01 00 31 17 01 1A [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: D1 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: D1 01 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: D1 01 00 31 17 00 19 [18:29:20]Write to MH i2c: 01 00 00 32 17 49 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:21]OFD Sender: No OFD packet to send [18:29:21]*** Cut start [18:29:21]*** Partial cut [18:29:21]*** CUTSNS_PIN = 1 [18:29:21]*** CUTSNS_PIN = 0 [18:29:21]*** Brake cut motor [18:29:22]Read from MH i2c: 01 [18:29:22]MH_I2C_Read... [18:29:22]*** Stop cut motor [18:29:22]*** Cut end [18:29:22]Read from MH i2c: 01 07 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 FF 0F 5E [18:29:22]process_action close_receipt done [18:29:22]requested_data is exist [18:29:22]produce_requested_data [18:29:22]requested_item fm.sn is exist - process it [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 11 00 00 [18:29:22]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 17 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [18:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:29:22]wFMCommunicate OK [18:29:22]requested_item fd.num is exist - process it [18:29:22]SAM_PROTO_GetFieldsCounters [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 13 00 00 [18:29:22]Write to MH i2c: E2 08 00 34 17 80 13 00 00 00 00 00 00 C7 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 62 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 62 00 34 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 12 01 00 0E 04 04 00 C3 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 7B [18:29: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 12 01 00 0E 04 04 00 C3 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 [18:29:22]wFMCommunicate OK [18:29:22]SAM_PROTO_GetFieldsCounters done [18:29:22]requested_item shift.num is exist - process it [18:29:22]requested_item shift.opened is exist - process it [18:29:22]req_shift_opened [18:29:22]FM_GetShiftState [18:29:22]SAM_PROTO_GetShiftState [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 13 01 00 [18:29:22]Write to MH i2c: E2 08 00 35 17 80 13 01 00 00 00 00 00 C9 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 35 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B7 [18:29:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:29:22]wFMCommunicate OK [18:29:22]SAM_PROTO_GetShiftState done [18:29:22]FM_GetShiftState done [18:29:22]req_shift_opened done [18:29:22]requested_item shift.open_date is exist - process it [18:29:22]req_shift_open_date [18:29:22]req_shift_open_date done [18:29:22]produce_requested_data done [18:29:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70379,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:29:22]process_action_free close_receipt [18:29:22]json_value_free [18:29:22]json_value_free done [18:29:22]process_json_proto returns [18:29:22]Send response to host [18:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70379,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:29:22]free response buf [18:29:22]execute_script done [18:29:22]execute_script returns [18:29:22]free content buf [18:29:22]Sock 10.Close socket [18:29:22]Sock 10.Thread stoped [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:30:57]accept exits with 7 [18:30:57]New connection [18:30:57]New thread 3066555748 created [18:30:57]Thread 3066699108 joined [18:30:57]Waiting for new connection... [18:30:57] Sock 7.Parse request [18:30:57]Sock 7.Check first char [18:30:57]Sock 7.First char is OK [18:30:57]request: POST /json_proto HTTP/1.0 [18:30:57]Method: POST [18:30:57]URL: /json_proto [18:30:57]Method is POST - this is cgi request [18:30:57]url: /json_proto [18:30:57]query_string will be loaded in cgi processing [18:30:57]execute_cgi json_proto POST (null) [18:30:57]execute_cgi path=json_proto method=POST [18:30:57]POST find Content-Length [18:30:57]Host: 172.17.50.3:8080 [18:30:57]Content-Length: 682 [18:30:57]Content-Type: application/json [18:30:57] [18:30:57]POST finish read [18:30:57]Found Content-Length = 682 [18:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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" ] } } [18:30:57]execute_script... [18:30: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)2886150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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" ] } } [18:30:57]POST & json_proto [18:30:57]process_json_proto [18:30:57]json parsed OK: [18:30:57]protocol is kg_v1.0 [18:30:57]action value=close_receipt [18:30:57]process_action close_receipt [18:30:57]cmd_close_receipt [18:30:57]MH_GetDate [18:30:57]Write to MH i2c: F0 00 00 36 17 3C [18:30:57]Write i2c OK [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: F0 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: F0 09 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: F0 09 00 36 17 00 61 EF 17 67 6B 98 1E 66 9A [18:30:57]GetLastDocTimeStamp 1729621759 [18:30:57]current date 1729621857 [18:30:57]FM_GetShiftState [18:30:57]SAM_PROTO_GetShiftState [18:30:57]wFMCommunicate request_size=4 [18:30:57]MH_SAM_APDU [18:30:57]CAPDU: 80 13 01 00 [18:30:57]Write to MH i2c: E2 08 00 37 17 80 13 01 00 00 00 00 00 CB [18:30:57]Write i2c OK [18:30:57]MH_I2C_Read... [18:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:57]Read from MH i2c: E2 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 0E 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 0E 00 37 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B9 [18:30:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:30:57]wFMCommunicate OK [18:30:57]SAM_PROTO_GetShiftState done [18:30:57]FM_GetShiftState done [18:30:57]opened in 1729555832 [18:30:57]opened+sec_in_day 1729642232 [18:30:57]quantity*price = 60022 [18:30:57]sum+1 = 60024 [18:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 328 22.10.2024 18:30 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70380 ФПД: 1904900326760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70380&fm=1904900326760&tin=02508201610067®Number=0000000000156251&sum=60000 [18:30:58]StoreToDocumentArchive [18:30:58]shift 195 fd 70380 [18:30:58]save to /storage/0195/doc_00070380 [18:30:58]save last doc name /storage/0195/doc_00070380 to /storage/kkm_last_doc_name [18:30:58]save OK [18:30:58]Clear old archive folders... [18:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:30:58]tlvbuf is B6E83860 [18:30:58]SAM_PROTO_ClearQueue [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 09 00 00 [18:30:58]Write to MH i2c: E2 08 00 44 17 80 09 00 00 00 00 00 00 CD [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]SAM_PROTO_ClearQueue done [18:30:58]KKMCreateOFDPacket [18:30:58]OFDProtocolAddRootSTLVToBuf [18:30:58]FM_MakeSignedData [18:30:58]FM_MakeSignedData [18:30:58]SAM_PROTO_SignData [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 01 02 [18:30:58]Write to MH i2c: E2 08 00 45 17 80 0D 01 02 00 00 00 00 D5 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=255 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 48 01 00 00 F4 03 04 00 61 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 12 01 00 35 04 06 00 01 BB [18:30:58]Write to MH i2c: E2 02 01 46 17 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 48 01 00 00 F4 03 04 00 61 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 12 01 00 35 04 06 00 01 BB 00 00 E7 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=9 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 02 02 04 84 E8 45 68 [18:30:58]Write to MH i2c: E2 0C 00 47 17 80 0D 02 02 04 00 84 E8 45 68 00 00 F9 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 03 02 [18:30:58]Write to MH i2c: E2 08 00 48 17 80 0D 03 02 00 00 00 00 DA [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0B 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0B 00 48 17 00 D4 FF 43 67 CF E3 BB A5 90 00 6A [18:30:58]RAPDU: D4 FF 43 67 CF E3 BB A5 90 00 [18:30:58]wFMCommunicate OK [18:30:58]SAM_PROTO_SignData done [18:30:58]FM_MakeSignedData done [18:30:58]CreateOFDProtocolMessage [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 11 00 00 [18:30:58]Write to MH i2c: E2 08 00 49 17 80 11 00 00 00 00 00 00 DA [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 17 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 17 00 49 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [18:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:58]wFMCommunicate OK [18:30:58]CreateOFDProtocolMessage done [18:30:58]OFDSenderStorePacket 70380 [18:30:58]StoreOFDPacket docnum=70380 [18:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F6 05 06 01 F0 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 48 01 00 00 F4 03 04 00 61 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 12 01 00 35 04 06 00 01 BB 84 E8 45 68 D4 FF 43 67 CF E3 BB A5 [18:30:58]CheckFolder [18:30:58]dirname=/storage/ofd_packets [18:30:58]CheckFolder done [18:30:58]ProducePacketName [18:30:58]name=ofd_packets/00070380 [18:30:58]NVStorageSaveData ofd_packets/00070380 [18:30:58]File name is /storage/ofd_packets/00070380 [18:30:58]Write 300 bytes [18:30:58]NVStorageSaveData done [18:30:58]OFDSenderStorePacket done [18:30:58]KKMCreateOFDPacket done [18:30:58]NVStorageSaveData kkm_last_timestamp [18:30:58]File name is /storage/kkm_last_timestamp [18:30:58]Write 4 bytes [18:30:58]NVStorageSaveData done [18:30:58]ExternCall_PrintAddStr [18:30:58]wPrintStart [18:30:58]Write to MH i2c: 01 00 00 4A 17 61 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 07 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [18:30:58]RasterBufferAndPrint [18:30:58]line Счет N : (1)2886150 [18:30:58]line ИНН: 02508201610067 [18:30:58]line Контрольно-Кассовый Чек [18:30:58]line ПРОДАЖА [18:30:58]line ТРК (МРК, ГНК) : 71 [18:30:58]line Товар: 2711129700 [18:30:58]line ГАЗ-К-3 [18:30:58]line 15.430 * 38.90 [18:30:58]line = 600.23 [18:30:58]line НДС 12% НСП 1% [18:30:58]line > о реализуемом товаре [18:30:58]line ОКРУГЛЕНИЕ: -0.23 [18:30:58]line ИТОГО: 600.00 [18:30:58]line Внесено: 600.00 [18:30:58]line СДАЧА: 0.00 [18:30:58]line НСП 1% : 5.31 [18:30:58]line НДС 12% : 63.74 [18:30:58]line Наличными: 600.00 [18:30:58]line Безнал.: 0.00 [18:30:58]line Место: АЗС № 85 "Партнер Нефть" [18:30:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:30:58]line СНО: Общий режим [18:30:58]line Чек 328 22.10.2024 18:30 [18:30:58]line Смена: 195 ФФД: 1.0 [18:30:58]line ЗНМ: 0300000167 [18:30:58]line РНМ: 0000000000156251 [18:30:58]line Версия ККМ: v1.0 [18:30:58]line ФМ: 0000000000963346 [18:30:58]line ФД: 70380 [18:30:58]line ФПД: 1904900326760 [18:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183057&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70380&fm=1904900326760&tin=02508201610067®Number=0000000000156251&sum=60000 [18:30:59]OFD Sender: Processing packet 70380 [packets to send 18, broken 17] [18:30:59]ProducePacketName [18:30:59]name=ofd_packets/00070380 [18:30:59]OFD Sender: To server: pG, [18:30:59]CommunicateWithHost lk.salyk.kg:30040 [18:30:59]ConnectInit lk.salyk.kg [18:30:59]written 0, free lines is 4095 [18:30:59]Connected sock=10 [18:30: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 34 36 0E 01 00 00 F6 05 06 01 F0 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 48 01 00 00 F4 03 04 00 61 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 12 01 00 35 04 06 00 01 BB 84 E8 45 68 D4 FF 43 67 CF E3 BB A5 [18:30: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 34 36 4F 00 00 00 F2 4E 47 00 8D 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 34 36 10 04 04 00 EC 12 01 00 F4 03 04 00 01 99 17 67 B6 04 01 00 00 F8 33 BE AB E9 47 EF 98 [18:30:59]CommunicateWithHost err = 0 [18:30:59]CheckOFDResponse [18:30:59]1017 (14) - 77093643461234 [18:30:59]1041 (16) - 0000000000963346 [18:30:59]1040 (4) - 70380 [18:30:59]1012 (4) - 22.10.2024 12:22 [18:30:59]1206 (1) - 0 [18:30:59]OFD Sender: Remove packet 70380 [18:30:59]ProducePacketName [18:30:59]name=ofd_packets/00070380 [18:30:59]NVStorageDeleteData [18:30:59]Write to MH i2c: 01 00 00 75 17 8C [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 F0 0C 8F [18:30:59]RasterBufferAndPrint [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]written 0, free lines is 3319 [18:30:59]MH_Cut [18:30:59]Write to MH i2c: D1 01 00 7C 17 01 65 [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 01 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 01 00 7C 17 00 64 [18:30:59]Write to MH i2c: 01 00 00 7D 17 94 [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]OFD Sender: No OFD packet to send [18:31:00]*** Cut start [18:31:00]*** Partial cut [18:31:00]*** CUTSNS_PIN = 1 [18:31:00]*** CUTSNS_PIN = 0 [18:31:00]*** Brake cut motor [18:31:00]Read from MH i2c: 01 [18:31:00]MH_I2C_Read... [18:31:00]*** Stop cut motor [18:31:00]*** Cut end [18:31:00]Read from MH i2c: 01 07 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: 01 07 00 7D 17 00 00 00 00 00 FF 0F A9 [18:31:00]process_action close_receipt done [18:31:00]requested_data is exist [18:31:00]produce_requested_data [18:31:00]requested_item fm.sn is exist - process it [18:31:00]wFMCommunicate request_size=4 [18:31:00]MH_SAM_APDU [18:31:00]CAPDU: 80 11 00 00 [18:31:00]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:00]Read from MH i2c: E2 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: E2 17 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [18:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:00]wFMCommunicate OK [18:31:00]requested_item fd.num is exist - process it [18:31:00]SAM_PROTO_GetFieldsCounters [18:31:00]wFMCommunicate request_size=4 [18:31:00]MH_SAM_APDU [18:31:00]CAPDU: 80 13 00 00 [18:31:00]Write to MH i2c: E2 08 00 7F 17 80 13 00 00 00 00 00 00 12 [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:01]Read from MH i2c: E2 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 62 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 62 00 7F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 12 01 00 0E 04 04 00 C3 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 CA [18:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 12 01 00 0E 04 04 00 C3 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 [18:31:01]wFMCommunicate OK [18:31:01]SAM_PROTO_GetFieldsCounters done [18:31:01]requested_item shift.num is exist - process it [18:31:01]requested_item shift.opened is exist - process it [18:31:01]req_shift_opened [18:31:01]FM_GetShiftState [18:31:01]SAM_PROTO_GetShiftState [18:31:01]wFMCommunicate request_size=4 [18:31:01]MH_SAM_APDU [18:31:01]CAPDU: 80 13 01 00 [18:31:01]Write to MH i2c: E2 08 00 80 17 80 13 01 00 00 00 00 00 14 [18:31:01]Write i2c OK [18:31:01]MH_I2C_Read... [18:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:01]Read from MH i2c: E2 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 80 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 02 [18:31:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:31:01]wFMCommunicate OK [18:31:01]SAM_PROTO_GetShiftState done [18:31:01]FM_GetShiftState done [18:31:01]req_shift_opened done [18:31:01]requested_item shift.open_date is exist - process it [18:31:01]req_shift_open_date [18:31:01]req_shift_open_date done [18:31:01]produce_requested_data done [18:31:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70380,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:31:01]process_action_free close_receipt [18:31:01]json_value_free [18:31:01]json_value_free done [18:31:01]process_json_proto returns [18:31:01]Send response to host [18:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70380,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:31:01]free response buf [18:31:01]execute_script done [18:31:01]execute_script returns [18:31:01]free content buf [18:31:01]Sock 7.Close socket [18:31:01]Sock 7.Thread stoped [18:31:02]accept exits with 9 [18:31:02]New connection [18:31:02]New thread 3066699108 created [18:31:02]Thread 3066555748 joined [18:31:02]Waiting for new connection... [18:31:02] Sock 9.Parse request [18:31:02]Sock 9.Check first char [18:31:02]Sock 9.First char is OK [18:31:02]request: POST /json_proto HTTP/1.0 [18:31:02]Method: POST [18:31:02]URL: /json_proto [18:31:02]Method is POST - this is cgi request [18:31:02]url: /json_proto [18:31:02]query_string will be loaded in cgi processing [18:31:02]execute_cgi json_proto POST (null) [18:31:02]execute_cgi path=json_proto method=POST [18:31:02]POST find Content-Length [18:31:02]Host: 172.17.50.3:8080 [18:31:02]Content-Length: 689 [18:31:02]Content-Type: application/json [18:31:02] [18:31:02]POST finish read [18:31:02]Found Content-Length = 689 [18:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:31:02]execute_script... [18:31: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)2886149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:31:02]POST & json_proto [18:31:02]process_json_proto [18:31:02]json parsed OK: [18:31:02]protocol is kg_v1.0 [18:31:02]action value=close_receipt [18:31:02]process_action close_receipt [18:31:02]cmd_close_receipt [18:31:02]MH_GetDate [18:31:02]Write to MH i2c: F0 00 00 81 17 87 [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: F0 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: F0 09 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: F0 09 00 81 17 00 67 EF 17 67 6B 98 1E 66 EB [18:31:02]GetLastDocTimeStamp 1729621857 [18:31:02]current date 1729621863 [18:31:02]FM_GetShiftState [18:31:02]SAM_PROTO_GetShiftState [18:31:02]wFMCommunicate request_size=4 [18:31:02]MH_SAM_APDU [18:31:02]CAPDU: 80 13 01 00 [18:31:02]Write to MH i2c: E2 08 00 82 17 80 13 01 00 00 00 00 00 16 [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:02]Read from MH i2c: E2 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 0E 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 0E 00 82 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 04 [18:31:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:31:02]wFMCommunicate OK [18:31:02]SAM_PROTO_GetShiftState done [18:31:02]FM_GetShiftState done [18:31:02]opened in 1729555832 [18:31:02]opened+sec_in_day 1729642232 [18:31:02]quantity*price = 200025 [18:31:02]sum+1 = 200026 [18:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 329 22.10.2024 18:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70381 ФПД: 217262433452634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70381&fm=217262433452634&tin=02508201610067®Number=0000000000156251&sum=200000 [18:31:03]StoreToDocumentArchive [18:31:03]shift 195 fd 70381 [18:31:03]save to /storage/0195/doc_00070381 [18:31:03]save last doc name /storage/0195/doc_00070381 to /storage/kkm_last_doc_name [18:31:03]save OK [18:31:03]Clear old archive folders... [18:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:31:03]tlvbuf is 00CACB20 [18:31:03]SAM_PROTO_ClearQueue [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 09 00 00 [18:31:03]Write to MH i2c: E2 08 00 8F 17 80 09 00 00 00 00 00 00 18 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]SAM_PROTO_ClearQueue done [18:31:03]KKMCreateOFDPacket [18:31:03]OFDProtocolAddRootSTLVToBuf [18:31:03]FM_MakeSignedData [18:31:03]FM_MakeSignedData [18:31:03]SAM_PROTO_SignData [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 01 02 [18:31:03]Write to MH i2c: E2 08 00 90 17 80 0D 01 02 00 00 00 00 20 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]wFMCommunicate request_size=255 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 49 01 00 00 F4 03 04 00 67 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 12 01 [18:31:03]Write to MH i2c: E2 02 01 91 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 49 01 00 00 F4 03 04 00 67 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 12 01 00 00 97 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]wFMCommunicate request_size=16 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C5 99 5A 2B 42 5A [18:31:04]Write to MH i2c: E2 13 00 92 17 80 0D 02 02 0B 00 00 35 04 06 00 C5 99 5A 2B 42 5A 00 00 F7 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 03 02 [18:31:04]Write to MH i2c: E2 08 00 93 17 80 0D 03 02 00 00 00 00 25 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 0B 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 0B 00 93 17 00 A9 06 31 6A 78 CF 72 0F 90 00 38 [18:31:04]RAPDU: A9 06 31 6A 78 CF 72 0F 90 00 [18:31:04]wFMCommunicate OK [18:31:04]SAM_PROTO_SignData done [18:31:04]FM_MakeSignedData done [18:31:04]CreateOFDProtocolMessage [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 11 00 00 [18:31:04]Write to MH i2c: E2 08 00 94 17 80 11 00 00 00 00 00 00 25 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 17 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 17 00 94 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [18:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:04]wFMCommunicate OK [18:31:04]CreateOFDProtocolMessage done [18:31:04]OFDSenderStorePacket 70381 [18:31:04]StoreOFDPacket docnum=70381 [18:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 B5 FB 0D 01 36 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 49 01 00 00 F4 03 04 00 67 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 12 01 00 35 04 06 00 C5 99 5A 2B 42 5A A9 06 31 6A 78 CF 72 0F [18:31:04]CheckFolder [18:31:04]dirname=/storage/ofd_packets [18:31:04]CheckFolder done [18:31:04]ProducePacketName [18:31:04]name=ofd_packets/00070381 [18:31:04]NVStorageSaveData ofd_packets/00070381 [18:31:04]File name is /storage/ofd_packets/00070381 [18:31:04]Write 307 bytes [18:31:04]NVStorageSaveData done [18:31:04]OFDSenderStorePacket done [18:31:04]KKMCreateOFDPacket done [18:31:04]NVStorageSaveData kkm_last_timestamp [18:31:04]File name is /storage/kkm_last_timestamp [18:31:04]Write 4 bytes [18:31:04]NVStorageSaveData done [18:31:04]ExternCall_PrintAddStr [18:31:04]wPrintStart [18:31:04]Write to MH i2c: 01 00 00 95 17 AC [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 FF 0F C1 [18:31:04]RasterBufferAndPrint [18:31:04]line Счет N : (1)2886149 [18:31:04]line ИНН: 02508201610067 [18:31:04]line Контрольно-Кассовый Чек [18:31:04]line ПРОДАЖА [18:31:04]line ТРК (МРК, ГНК) : 21 [18:31:04]line Товар: 2710194240 [18:31:04]line D-ENERGY Дт-К-2 [18:31:04]line 25.910 * 77.20 [18:31:04]line = 2000.25 [18:31:04]line НДС 12% НСП 1% [18:31:04]line > о реализуемом товаре [18:31:04]line ОКРУГЛЕНИЕ: -0.25 [18:31:04]line ИТОГО: 2000.00 [18:31:04]line Внесено: 2000.00 [18:31:04]line СДАЧА: 0.00 [18:31:04]line НСП 1% : 17.70 [18:31:04]line НДС 12% : 212.42 [18:31:04]line Наличными: 2000.00 [18:31:04]line Безнал.: 0.00 [18:31:04]line Место: АЗС № 85 "Партнер Нефть" [18:31:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:31:04]line СНО: Общий режим [18:31:04]line Чек 329 22.10.2024 18:31 [18:31:04]line Смена: 195 ФФД: 1.0 [18:31:04]line ЗНМ: 0300000167 [18:31:04]line РНМ: 0000000000156251 [18:31:04]line Версия ККМ: v1.0 [18:31:04]line ФМ: 0000000000963346 [18:31:04]line ФД: 70381 [18:31:04]line ФПД: 217262433452634 [18:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70381&fm=217262433452634&tin=02508201610067®Number=0000000000156251&sum=200000 [18:31:04]written 0, free lines is 4095 [18:31:04]OFD Sender: Processing packet 70381 [packets to send 18, broken 17] [18:31:04]ProducePacketName [18:31:04]name=ofd_packets/00070381 [18:31:04]OFD Sender: To server: pG, [18:31:04]CommunicateWithHost lk.salyk.kg:30040 [18:31:04]ConnectInit lk.salyk.kg [18:31:04]Connected sock=10 [18:31: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 34 36 15 01 00 00 B5 FB 0D 01 36 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 49 01 00 00 F4 03 04 00 67 EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 12 01 00 35 04 06 00 C5 99 5A 2B 42 5A A9 06 31 6A 78 CF 72 0F [18:31: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 34 36 4F 00 00 00 76 B1 47 00 5E 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 34 36 10 04 04 00 ED 12 01 00 F4 03 04 00 07 99 17 67 B6 04 01 00 00 CA AF 10 1A BF CC E3 A3 [18:31:04]CommunicateWithHost err = 0 [18:31:04]CheckOFDResponse [18:31:04]1017 (14) - 77093643461234 [18:31:04]1041 (16) - 0000000000963346 [18:31:04]1040 (4) - 70381 [18:31:04]1012 (4) - 22.10.2024 12:22 [18:31:04]1206 (1) - 0 [18:31:04]OFD Sender: Remove packet 70381 [18:31:04]ProducePacketName [18:31:04]name=ofd_packets/00070381 [18:31:04]NVStorageDeleteData [18:31:04]Write to MH i2c: 01 00 00 C0 17 D7 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 0C 0D F7 [18:31:04]RasterBufferAndPrint [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]written 0, free lines is 3355 [18:31:04]MH_Cut [18:31:04]Write to MH i2c: D1 01 00 C7 17 01 B0 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 01 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 01 00 C7 17 00 AF [18:31:04]Write to MH i2c: 01 00 00 C8 17 DF [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:05]OFD Sender: No OFD packet to send [18:31:05]*** Cut start [18:31:05]*** Partial cut [18:31:05]*** CUTSNS_PIN = 1 [18:31:05]*** CUTSNS_PIN = 0 [18:31:05]*** Brake cut motor [18:31:06]Read from MH i2c: 01 [18:31:06]MH_I2C_Read... [18:31:06]*** Stop cut motor [18:31:06]*** Cut end [18:31:06]Read from MH i2c: 01 07 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [18:31:06]process_action close_receipt done [18:31:06]requested_data is exist [18:31:06]produce_requested_data [18:31:06]requested_item fm.sn is exist - process it [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 11 00 00 [18:31:06]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [18:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:06]wFMCommunicate OK [18:31:06]requested_item fd.num is exist - process it [18:31:06]SAM_PROTO_GetFieldsCounters [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 13 00 00 [18:31:06]Write to MH i2c: E2 08 00 CA 17 80 13 00 00 00 00 00 00 5D [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 62 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 62 00 CA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 12 01 00 0E 04 04 00 C3 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 19 [18:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 12 01 00 0E 04 04 00 C3 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 [18:31:06]wFMCommunicate OK [18:31:06]SAM_PROTO_GetFieldsCounters done [18:31:06]requested_item shift.num is exist - process it [18:31:06]requested_item shift.opened is exist - process it [18:31:06]req_shift_opened [18:31:06]FM_GetShiftState [18:31:06]SAM_PROTO_GetShiftState [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 13 01 00 [18:31:06]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0E 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4D [18:31:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:31:06]wFMCommunicate OK [18:31:06]SAM_PROTO_GetShiftState done [18:31:06]FM_GetShiftState done [18:31:06]req_shift_opened done [18:31:06]requested_item shift.open_date is exist - process it [18:31:06]req_shift_open_date [18:31:06]req_shift_open_date done [18:31:06]produce_requested_data done [18:31:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70381,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:31:06]process_action_free close_receipt [18:31:06]json_value_free [18:31:06]json_value_free done [18:31:06]process_json_proto returns [18:31:06]Send response to host [18:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70381,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:31:06]free response buf [18:31:06]execute_script done [18:31:06]execute_script returns [18:31:06]free content buf [18:31:06]Sock 9.Close socket [18:31:06]Sock 9.Thread stoped [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:31:57]accept exits with 7 [18:31:57]New connection [18:31:57]New thread 3066555748 created [18:31:57]Thread 3066699108 joined [18:31:57]Waiting for new connection... [18:31:57] Sock 7.Parse request [18:31:57]Sock 7.Check first char [18:31:57]Sock 7.First char is OK [18:31:57]request: POST /json_proto HTTP/1.0 [18:31:57]Method: POST [18:31:57]URL: /json_proto [18:31:57]Method is POST - this is cgi request [18:31:57]url: /json_proto [18:31:57]query_string will be loaded in cgi processing [18:31:57]execute_cgi json_proto POST (null) [18:31:57]execute_cgi path=json_proto method=POST [18:31:57]POST find Content-Length [18:31:57]Host: 172.17.50.3:8080 [18:31:57]Content-Length: 678 [18:31:57]Content-Type: application/json [18:31:57] [18:31:57]POST finish read [18:31:57]Found Content-Length = 678 [18:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [18:31:57]execute_script... [18:31: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)2886151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [18:31:57]POST & json_proto [18:31:57]process_json_proto [18:31:57]json parsed OK: [18:31:57]protocol is kg_v1.0 [18:31:57]action value=close_receipt [18:31:57]process_action close_receipt [18:31:57]cmd_close_receipt [18:31:57]MH_GetDate [18:31:57]Write to MH i2c: F0 00 00 CC 17 D2 [18:31:57]Write i2c OK [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 09 00 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 09 00 CC 17 00 9E EF 17 67 6B 98 1E 66 6D [18:31:57]GetLastDocTimeStamp 1729621863 [18:31:57]current date 1729621918 [18:31:57]FM_GetShiftState [18:31:57]SAM_PROTO_GetShiftState [18:31:57]wFMCommunicate request_size=4 [18:31:57]MH_SAM_APDU [18:31:57]CAPDU: 80 13 01 00 [18:31:57]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [18:31:57]Write i2c OK [18:31:57]MH_I2C_Read... [18:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:57]Read from MH i2c: E2 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: E2 0E 00 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4F [18:31:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:31:57]wFMCommunicate OK [18:31:57]SAM_PROTO_GetShiftState done [18:31:57]FM_GetShiftState done [18:31:57]opened in 1729555832 [18:31:57]opened+sec_in_day 1729642232 [18:31:57]quantity*price = 50041 [18:31:57]sum+1 = 50042 [18:31: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 330 22.10.2024 18:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70382 ФПД: 54051990445054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70382&fm=54051990445054&tin=02508201610067®Number=0000000000156251&sum=50000 [18:31:58]StoreToDocumentArchive [18:31:58]shift 195 fd 70382 [18:31:58]save to /storage/0195/doc_00070382 [18:31:58]save last doc name /storage/0195/doc_00070382 to /storage/kkm_last_doc_name [18:31:58]save OK [18:31:58]Clear old archive folders... [18:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:58]tlvbuf is B6E6A650 [18:31:58]SAM_PROTO_ClearQueue [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 09 00 00 [18:31:58]Write to MH i2c: E2 08 00 DA 17 80 09 00 00 00 00 00 00 63 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [18:31:58]RAPDU: 90 00 [18:31:58]wFMCommunicate OK [18:31:58]SAM_PROTO_ClearQueue done [18:31:58]KKMCreateOFDPacket [18:31:58]OFDProtocolAddRootSTLVToBuf [18:31:58]FM_MakeSignedData [18:31:58]FM_MakeSignedData [18:31:58]SAM_PROTO_SignData [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 0D 01 02 [18:31:58]Write to MH i2c: E2 08 00 DB 17 80 0D 01 02 00 00 00 00 6B [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 03 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [18:31:59]RAPDU: 90 00 [18:31:59]wFMCommunicate OK [18:31:59]wFMCommunicate request_size=255 [18:31:59]MH_SAM_APDU [18:31: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 4A 01 00 00 F4 03 04 00 9E EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 12 01 00 35 04 06 00 31 [18:31:59]Write to MH i2c: E2 02 01 DC 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 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 01 00 00 F4 03 04 00 9E EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 12 01 00 35 04 06 00 31 00 00 3F [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 03 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [18:31:59]RAPDU: 90 00 [18:31:59]wFMCommunicate OK [18:31:59]wFMCommunicate request_size=10 [18:31:59]MH_SAM_APDU [18:31:59]CAPDU: 80 0D 02 02 05 28 F5 B0 9B FE [18:31:59]Write to MH i2c: E2 0D 00 DD 17 80 0D 02 02 05 00 28 F5 B0 9B FE 00 00 DE [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:59]Read from MH i2c: E2 03 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [18:31:59]RAPDU: 90 00 [18:31:59]wFMCommunicate OK [18:31:59]wFMCommunicate request_size=4 [18:31:59]MH_SAM_APDU [18:31:59]CAPDU: 80 0D 03 02 [18:31:59]Write to MH i2c: E2 08 00 DE 17 80 0D 03 02 00 00 00 00 70 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 0B 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 0B 00 DE 17 00 4F 5E AC B2 85 EB 90 D0 90 00 4C [18:31:59]RAPDU: 4F 5E AC B2 85 EB 90 D0 90 00 [18:31:59]wFMCommunicate OK [18:31:59]SAM_PROTO_SignData done [18:31:59]FM_MakeSignedData done [18:31:59]CreateOFDProtocolMessage [18:31:59]wFMCommunicate request_size=4 [18:31:59]MH_SAM_APDU [18:31:59]CAPDU: 80 11 00 00 [18:31:59]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 17 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [18:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:59]wFMCommunicate OK [18:31:59]CreateOFDProtocolMessage done [18:31:59]OFDSenderStorePacket 70382 [18:31:59]StoreOFDPacket docnum=70382 [18:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D5 90 07 01 A0 AD 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 01 00 00 F4 03 04 00 9E EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 12 01 00 35 04 06 00 31 28 F5 B0 9B FE 4F 5E AC B2 85 EB 90 D0 [18:31:59]CheckFolder [18:31:59]dirname=/storage/ofd_packets [18:31:59]CheckFolder done [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00070382 [18:31:59]NVStorageSaveData ofd_packets/00070382 [18:31:59]File name is /storage/ofd_packets/00070382 [18:31:59]Write 301 bytes [18:31:59]NVStorageSaveData done [18:31:59]OFDSenderStorePacket done [18:31:59]KKMCreateOFDPacket done [18:31:59]NVStorageSaveData kkm_last_timestamp [18:31:59]File name is /storage/kkm_last_timestamp [18:31:59]Write 4 bytes [18:31:59]NVStorageSaveData done [18:31:59]ExternCall_PrintAddStr [18:31:59]wPrintStart [18:31:59]Write to MH i2c: 01 00 00 E0 17 F7 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [18:31:59]RasterBufferAndPrint [18:31:59]line Счет N : (1)2886151 [18:31:59]line ИНН: 02508201610067 [18:31:59]line Контрольно-Кассовый Чек [18:31:59]line ПРОДАЖА [18:31:59]line ТРК (МРК, ГНК) : 12 [18:31:59]line Товар: 2710124130 [18:31:59]line Аи-92-К-5 [18:31:59]line 7.480 * 66.90 [18:31:59]line = 500.41 [18:31:59]line НДС 12% НСП 1% [18:31:59]line > о реализуемом товаре [18:31:59]line ОКРУГЛЕНИЕ: -0.41 [18:31:59]line ИТОГО: 500.00 [18:31:59]line Внесено: 500.00 [18:31:59]line СДАЧА: 0.00 [18:31:59]line НСП 1% : 4.43 [18:31:59]line НДС 12% : 53.14 [18:31:59]line Наличными: 500.00 [18:31:59]line Безнал.: 0.00 [18:31:59]line Место: АЗС № 85 "Партнер Нефть" [18:31:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:31:59]line СНО: Общий режим [18:31:59]line Чек 330 22.10.2024 18:31 [18:31:59]line Смена: 195 ФФД: 1.0 [18:31:59]line ЗНМ: 0300000167 [18:31:59]line РНМ: 0000000000156251 [18:31:59]line Версия ККМ: v1.0 [18:31:59]line ФМ: 0000000000963346 [18:31:59]line ФД: 70382 [18:31:59]line ФПД: 54051990445054 [18:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70382&fm=54051990445054&tin=02508201610067®Number=0000000000156251&sum=50000 [18:31:59]written 0, free lines is 4095 [18:31:59]OFD Sender: Processing packet 70382 [packets to send 18, broken 17] [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00070382 [18:31:59]OFD Sender: To server: pG, [18:31:59]CommunicateWithHost lk.salyk.kg:30040 [18:31:59]ConnectInit lk.salyk.kg [18:31:59]Connected sock=11 [18:31: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 34 36 0F 01 00 00 D5 90 07 01 A0 AD 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 01 00 00 F4 03 04 00 9E EF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 12 01 00 35 04 06 00 31 28 F5 B0 9B FE 4F 5E AC B2 85 EB 90 D0 [18:31: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 34 36 4F 00 00 00 0E D7 47 00 7C 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 34 36 10 04 04 00 EE 12 01 00 F4 03 04 00 3E 99 17 67 B6 04 01 00 00 A5 53 85 8F E8 3F D9 94 [18:31:59]CommunicateWithHost err = 0 [18:31:59]CheckOFDResponse [18:31:59]1017 (14) - 77093643461234 [18:31:59]1041 (16) - 0000000000963346 [18:31:59]1040 (4) - 70382 [18:31:59]1012 (4) - 22.10.2024 12:23 [18:31:59]1206 (1) - 0 [18:31:59]OFD Sender: Remove packet 70382 [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00070382 [18:31:59]NVStorageDeleteData [18:31:59]Write to MH i2c: 01 00 00 0B 18 23 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 F1 0C 27 [18:31:59]RasterBufferAndPrint [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]written 0, free lines is 3319 [18:31:59]MH_Cut [18:31:59]Write to MH i2c: D1 01 00 12 18 01 FC [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 01 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 01 00 12 18 00 FB [18:31:59]Write to MH i2c: 01 00 00 13 18 2B [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:32:00]OFD Sender: No OFD packet to send [18:32:00]*** Cut start [18:32:00]*** Partial cut [18:32:00]*** CUTSNS_PIN = 1 [18:32:00]*** CUTSNS_PIN = 0 [18:32:00]*** Brake cut motor [18:32:01]Read from MH i2c: 01 [18:32:01]MH_I2C_Read... [18:32:01]*** Stop cut motor [18:32:01]*** Cut end [18:32:01]Read from MH i2c: 01 07 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: 01 07 00 13 18 00 00 00 00 00 FF 0F 40 [18:32:01]process_action close_receipt done [18:32:01]requested_data is exist [18:32:01]produce_requested_data [18:32:01]requested_item fm.sn is exist - process it [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 11 00 00 [18:32:01]Write to MH i2c: E2 08 00 14 18 80 11 00 00 00 00 00 00 A6 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 17 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 17 00 14 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [18:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:32:01]wFMCommunicate OK [18:32:01]requested_item fd.num is exist - process it [18:32:01]SAM_PROTO_GetFieldsCounters [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 13 00 00 [18:32:01]Write to MH i2c: E2 08 00 15 18 80 13 00 00 00 00 00 00 A9 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 62 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 62 00 15 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 12 01 00 0E 04 04 00 C3 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 69 [18:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 12 01 00 0E 04 04 00 C3 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 [18:32:01]wFMCommunicate OK [18:32:01]SAM_PROTO_GetFieldsCounters done [18:32:01]requested_item shift.num is exist - process it [18:32:01]requested_item shift.opened is exist - process it [18:32:01]req_shift_opened [18:32:01]FM_GetShiftState [18:32:01]SAM_PROTO_GetShiftState [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 13 01 00 [18:32:01]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 99 [18:32:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:32:01]wFMCommunicate OK [18:32:01]SAM_PROTO_GetShiftState done [18:32:01]FM_GetShiftState done [18:32:01]req_shift_opened done [18:32:01]requested_item shift.open_date is exist - process it [18:32:01]req_shift_open_date [18:32:01]req_shift_open_date done [18:32:01]produce_requested_data done [18:32:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70382,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:32:01]process_action_free close_receipt [18:32:01]json_value_free [18:32:01]json_value_free done [18:32:01]process_json_proto returns [18:32:01]Send response to host [18:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70382,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:32:01]free response buf [18:32:01]execute_script done [18:32:01]execute_script returns [18:32:01]free content buf [18:32:01]Sock 7.Close socket [18:32:01]Sock 7.Thread stoped [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:11]accept exits with 9 [18:34:11]New connection [18:34:11]New thread 3066699108 created [18:34:11]Thread 3066555748 joined [18:34:11]Waiting for new connection... [18:34:11] Sock 9.Parse request [18:34:11]Sock 9.Check first char [18:34:11]Sock 9.First char is OK [18:34:11]request: POST /json_proto HTTP/1.0 [18:34:11]Method: POST [18:34:11]URL: /json_proto [18:34:11]Method is POST - this is cgi request [18:34:11]url: /json_proto [18:34:11]query_string will be loaded in cgi processing [18:34:11]execute_cgi json_proto POST (null) [18:34:11]execute_cgi path=json_proto method=POST [18:34:11]POST find Content-Length [18:34:11]Host: 172.17.50.3:8080 [18:34:11]Content-Length: 771 [18:34:11]Content-Type: application/json [18:34:11] [18:34:11]POST finish read [18:34:11]Found Content-Length = 771 [18:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "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" : 900.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:11]execute_script... [18:34: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)2886152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "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" : 900.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:11]POST & json_proto [18:34:11]process_json_proto [18:34:11]json parsed OK: [18:34:11]protocol is kg_v1.0 [18:34:11]action value=close_receipt [18:34:11]process_action close_receipt [18:34:11]cmd_close_receipt [18:34:11]MH_GetDate [18:34:11]Write to MH i2c: F0 00 00 17 18 1E [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 09 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 09 00 17 18 00 24 F0 17 67 6B 98 1E 66 40 [18:34:11]GetLastDocTimeStamp 1729621918 [18:34:11]current date 1729622052 [18:34:11]FM_GetShiftState [18:34:11]SAM_PROTO_GetShiftState [18:34:11]wFMCommunicate request_size=4 [18:34:11]MH_SAM_APDU [18:34:11]CAPDU: 80 13 01 00 [18:34:11]Write to MH i2c: E2 08 00 18 18 80 13 01 00 00 00 00 00 AD [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:11]Read from MH i2c: E2 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 18 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9B [18:34:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:34:11]wFMCommunicate OK [18:34:11]SAM_PROTO_GetShiftState done [18:34:11]FM_GetShiftState done [18:34:11]opened in 1729555832 [18:34:11]opened+sec_in_day 1729642232 [18:34:11]quantity*price = 90014 [18:34:11]sum+1 = 90016 [18:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.15 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.15 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 331 22.10.2024 18:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70383 ФПД: 99124360021943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70383&fm=99124360021943&tin=02508201610067®Number=0000000000156251&sum=90015 [18:34:12]StoreToDocumentArchive [18:34:12]shift 195 fd 70383 [18:34:12]save to /storage/0195/doc_00070383 [18:34:12]save last doc name /storage/0195/doc_00070383 to /storage/kkm_last_doc_name [18:34:12]save OK [18:34:12]Clear old archive folders... [18:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:34:12]tlvbuf is 00B3A530 [18:34:12]SAM_PROTO_ClearQueue [18:34:12]wFMCommunicate request_size=4 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 09 00 00 [18:34:12]Write to MH i2c: E2 08 00 25 18 80 09 00 00 00 00 00 00 AF [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:12]Read from MH i2c: E2 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [18:34:12]RAPDU: 90 00 [18:34:12]wFMCommunicate OK [18:34:12]SAM_PROTO_ClearQueue done [18:34:12]KKMCreateOFDPacket [18:34:12]OFDProtocolAddRootSTLVToBuf [18:34:12]FM_MakeSignedData [18:34:12]FM_MakeSignedData [18:34:12]SAM_PROTO_SignData [18:34:12]wFMCommunicate request_size=4 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 0D 01 02 [18:34:12]Write to MH i2c: E2 08 00 26 18 80 0D 01 02 00 00 00 00 B7 [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:12]Read from MH i2c: E2 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [18:34:12]RAPDU: 90 00 [18:34:12]wFMCommunicate OK [18:34:12]wFMCommunicate request_size=255 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 24 F0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 12 01 00 35 04 06 00 5A 27 [18:34:12]Write to MH i2c: E2 02 01 27 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 24 F0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 12 01 00 35 04 06 00 5A 27 00 00 25 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 27 18 00 90 00 B3 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=9 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 02 02 04 30 44 87 B7 [18:34:13]Write to MH i2c: E2 0C 00 28 18 80 0D 02 02 04 00 30 44 87 B7 00 00 74 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 03 02 [18:34:13]Write to MH i2c: E2 08 00 29 18 80 0D 03 02 00 00 00 00 BC [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 29 18 00 D4 4A B4 5B 24 95 67 80 90 00 8A [18:34:13]RAPDU: D4 4A B4 5B 24 95 67 80 90 00 [18:34:13]wFMCommunicate OK [18:34:13]SAM_PROTO_SignData done [18:34:13]FM_MakeSignedData done [18:34:13]CreateOFDProtocolMessage [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 11 00 00 [18:34:13]Write to MH i2c: E2 08 00 2A 18 80 11 00 00 00 00 00 00 BC [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 2A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [18:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:34:13]wFMCommunicate OK [18:34:13]CreateOFDProtocolMessage done [18:34:13]OFDSenderStorePacket 70383 [18:34:13]StoreOFDPacket docnum=70383 [18:34:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 67 FB 06 01 7E 2D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 24 F0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 12 01 00 35 04 06 00 5A 27 30 44 87 B7 D4 4A B4 5B 24 95 67 80 [18:34:13]CheckFolder [18:34:13]dirname=/storage/ofd_packets [18:34:13]CheckFolder done [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00070383 [18:34:13]NVStorageSaveData ofd_packets/00070383 [18:34:13]File name is /storage/ofd_packets/00070383 [18:34:13]Write 300 bytes [18:34:13]NVStorageSaveData done [18:34:13]OFDSenderStorePacket done [18:34:13]KKMCreateOFDPacket done [18:34:13]NVStorageSaveData kkm_last_timestamp [18:34:13]File name is /storage/kkm_last_timestamp [18:34:13]Write 4 bytes [18:34:13]NVStorageSaveData done [18:34:13]ExternCall_PrintAddStr [18:34:13]wPrintStart [18:34:13]Write to MH i2c: 01 00 00 2B 18 43 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 FF 0F 58 [18:34:13]RasterBufferAndPrint [18:34:13]line Счет N : (1)2886152 [18:34:13]line ИНН: 02508201610067 [18:34:13]line Контрольно-Кассовый Чек [18:34:13]line ПРОДАЖА [18:34:13]line ТРК (МРК, ГНК) : 71 [18:34:13]line Товар: 2711129700 [18:34:13]line ГАЗ-К-3 [18:34:13]line 23.140 * 38.90 [18:34:13]line = 900.15 [18:34:13]line НДС 12% НСП 1% [18:34:13]line > о реализуемом товаре [18:34:13]line ИТОГО: 900.15 [18:34:13]line НСП 1% : 7.97 [18:34:13]line НДС 12% : 95.59 [18:34:13]line Наличными: 0.00 [18:34:13]line Безнал.: 900.15 [18:34:13]line Место: АЗС № 85 "Партнер Нефть" [18:34:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:34:13]line СНО: Общий режим [18:34:13]line Чек 331 22.10.2024 18:34 [18:34:13]line Смена: 195 ФФД: 1.0 [18:34:13]line ЗНМ: 0300000167 [18:34:13]line РНМ: 0000000000156251 [18:34:13]line Версия ККМ: v1.0 [18:34:13]line Платежная система: Mbank [18:34:13]line ФМ: 0000000000963346 [18:34:13]line ФД: 70383 [18:34:13]line ФПД: 99124360021943 [18:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70383&fm=99124360021943&tin=02508201610067®Number=0000000000156251&sum=90015 [18:34:13]OFD Sender: Processing packet 70383 [packets to send 18, broken 17] [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00070383 [18:34:13]OFD Sender: To server: pG, [18:34:13]CommunicateWithHost lk.salyk.kg:30040 [18:34:13]ConnectInit lk.salyk.kg [18:34:13]written 0, free lines is 4095 [18:34:13]Connected sock=10 [18:34: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 34 36 0E 01 00 00 67 FB 06 01 7E 2D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 24 F0 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 12 01 00 35 04 06 00 5A 27 30 44 87 B7 D4 4A B4 5B 24 95 67 80 [18:34: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 34 36 4F 00 00 00 8F 09 47 00 3D 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 34 36 10 04 04 00 EF 12 01 00 F4 03 04 00 C4 99 17 67 B6 04 01 00 00 C7 C9 51 42 38 9C B5 5B [18:34:14]CommunicateWithHost err = 0 [18:34:14]CheckOFDResponse [18:34:14]1017 (14) - 77093643461234 [18:34:14]1041 (16) - 0000000000963346 [18:34:14]1040 (4) - 70383 [18:34:14]1012 (4) - 22.10.2024 12:25 [18:34:14]1206 (1) - 0 [18:34:14]OFD Sender: Remove packet 70383 [18:34:14]ProducePacketName [18:34:14]name=ofd_packets/00070383 [18:34:14]NVStorageDeleteData [18:34:14]Write to MH i2c: 01 00 00 54 18 6C [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 1E 0D 9E [18:34:14]RasterBufferAndPrint [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]written 0, free lines is 3363 [18:34:14]MH_Cut [18:34:14]Write to MH i2c: D1 01 00 5B 18 01 45 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 5B 18 00 44 [18:34:14]Write to MH i2c: 01 00 00 5C 18 74 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]OFD Sender: No OFD packet to send [18:34:14]*** Cut start [18:34:14]*** Partial cut [18:34:14]*** CUTSNS_PIN = 1 [18:34:14]*** CUTSNS_PIN = 0 [18:34:15]*** Brake cut motor [18:34:15]Read from MH i2c: 01 [18:34:15]MH_I2C_Read... [18:34:15]*** Stop cut motor [18:34:15]*** Cut end [18:34:15]Read from MH i2c: 01 07 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [18:34:15]process_action close_receipt done [18:34:15]requested_data is exist [18:34:15]produce_requested_data [18:34:15]requested_item fm.sn is exist - process it [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 11 00 00 [18:34:15]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:15]Read from MH i2c: E2 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 17 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [18:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:34:15]wFMCommunicate OK [18:34:15]requested_item fd.num is exist - process it [18:34:15]SAM_PROTO_GetFieldsCounters [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 13 00 00 [18:34:15]Write to MH i2c: E2 08 00 5E 18 80 13 00 00 00 00 00 00 F2 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:15]Read from MH i2c: E2 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 62 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 62 00 5E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 12 01 00 0E 04 04 00 C3 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 B6 [18:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 12 01 00 0E 04 04 00 C3 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 [18:34:15]wFMCommunicate OK [18:34:15]SAM_PROTO_GetFieldsCounters done [18:34:15]requested_item shift.num is exist - process it [18:34:15]requested_item shift.opened is exist - process it [18:34:15]req_shift_opened [18:34:15]FM_GetShiftState [18:34:15]SAM_PROTO_GetShiftState [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 13 01 00 [18:34:15]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:15]Read from MH i2c: E2 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 0E 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E2 [18:34:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:34:15]wFMCommunicate OK [18:34:15]SAM_PROTO_GetShiftState done [18:34:15]FM_GetShiftState done [18:34:15]req_shift_opened done [18:34:15]requested_item shift.open_date is exist - process it [18:34:15]req_shift_open_date [18:34:15]req_shift_open_date done [18:34:15]produce_requested_data done [18:34:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70383,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:34:15]process_action_free close_receipt [18:34:15]json_value_free [18:34:15]json_value_free done [18:34:15]process_json_proto returns [18:34:15]Send response to host [18:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70383,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:34:15]free response buf [18:34:15]execute_script done [18:34:15]execute_script returns [18:34:15]free content buf [18:34:15]Sock 9.Close socket [18:34:15]Sock 9.Thread stoped [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:12]accept exits with 7 [18:38:12]New connection [18:38:12]New thread 3066555748 created [18:38:12]Thread 3066699108 joined [18:38:12]Waiting for new connection... [18:38:12] Sock 7.Parse request [18:38:12]Sock 7.Check first char [18:38:12]Sock 7.First char is OK [18:38:12]request: POST /json_proto HTTP/1.0 [18:38:12]Method: POST [18:38:12]URL: /json_proto [18:38:12]Method is POST - this is cgi request [18:38:12]url: /json_proto [18:38:12]query_string will be loaded in cgi processing [18:38:12]execute_cgi json_proto POST (null) [18:38:12]execute_cgi path=json_proto method=POST [18:38:12]POST find Content-Length [18:38:12]Host: 172.17.50.3:8080 [18:38:12]Content-Length: 686 [18:38:12]Content-Type: application/json [18:38:12] [18:38:12]POST finish read [18:38:12]Found Content-Length = 686 [18:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [18:38:12]execute_script... [18:38: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 : (1)2886153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [18:38:12]POST & json_proto [18:38:12]process_json_proto [18:38:12]json parsed OK: [18:38:12]protocol is kg_v1.0 [18:38:12]action value=close_receipt [18:38:12]process_action close_receipt [18:38:12]cmd_close_receipt [18:38:12]MH_GetDate [18:38:12]Write to MH i2c: F0 00 00 60 18 67 [18:38:12]Write i2c OK [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: F0 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: F0 09 00 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: F0 09 00 60 18 00 15 F1 17 67 6B 98 1E 66 7B [18:38:12]GetLastDocTimeStamp 1729622052 [18:38:12]current date 1729622293 [18:38:12]FM_GetShiftState [18:38:12]SAM_PROTO_GetShiftState [18:38:12]wFMCommunicate request_size=4 [18:38:12]MH_SAM_APDU [18:38:12]CAPDU: 80 13 01 00 [18:38:12]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [18:38:12]Write i2c OK [18:38:12]MH_I2C_Read... [18:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:12]Read from MH i2c: E2 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 0E 00 [18:38:12]MH_I2C_Read... [18:38:12]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E4 [18:38:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:38:12]wFMCommunicate OK [18:38:12]SAM_PROTO_GetShiftState done [18:38:12]FM_GetShiftState done [18:38:12]opened in 1729555832 [18:38:12]opened+sec_in_day 1729642232 [18:38:12]quantity*price = 100011 [18:38:12]sum+1 = 100013 [18:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 332 22.10.2024 18:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70384 ФПД: 247289230360076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70384&fm=247289230360076&tin=02508201610067®Number=0000000000156251&sum=100000 [18:38:13]StoreToDocumentArchive [18:38:13]shift 195 fd 70384 [18:38:13]save to /storage/0195/doc_00070384 [18:38:13]save last doc name /storage/0195/doc_00070384 to /storage/kkm_last_doc_name [18:38:13]save OK [18:38:13]Clear old archive folders... [18:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:38:13]tlvbuf is B6E83AE0 [18:38:13]SAM_PROTO_ClearQueue [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 09 00 00 [18:38:13]Write to MH i2c: E2 08 00 6E 18 80 09 00 00 00 00 00 00 F8 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]SAM_PROTO_ClearQueue done [18:38:13]KKMCreateOFDPacket [18:38:13]OFDProtocolAddRootSTLVToBuf [18:38:13]FM_MakeSignedData [18:38:13]FM_MakeSignedData [18:38:13]SAM_PROTO_SignData [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 01 02 [18:38:13]Write to MH i2c: E2 08 00 6F 18 80 0D 01 02 00 00 00 00 00 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=255 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 4C 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 12 01 00 35 04 06 00 E0 E8 [18:38:13]Write to MH i2c: E2 02 01 70 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 4C 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 12 01 00 35 04 06 00 E0 E8 00 00 C3 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=9 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 02 02 04 82 BB 7E 0C [18:38:13]Write to MH i2c: E2 0C 00 71 18 80 0D 02 02 04 00 82 BB 7E 0C 00 00 D2 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 03 02 [18:38:13]Write to MH i2c: E2 08 00 72 18 80 0D 03 02 00 00 00 00 05 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:13]Read from MH i2c: E2 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 0B 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 0B 00 72 18 00 E8 80 8B 09 B9 C8 0D 72 90 00 02 [18:38:14]RAPDU: E8 80 8B 09 B9 C8 0D 72 90 00 [18:38:14]wFMCommunicate OK [18:38:14]SAM_PROTO_SignData done [18:38:14]FM_MakeSignedData done [18:38:14]CreateOFDProtocolMessage [18:38:14]wFMCommunicate request_size=4 [18:38:14]MH_SAM_APDU [18:38:14]CAPDU: 80 11 00 00 [18:38:14]Write to MH i2c: E2 08 00 73 18 80 11 00 00 00 00 00 00 05 [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:14]Read from MH i2c: E2 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 17 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: E2 17 00 73 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [18:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:38:14]wFMCommunicate OK [18:38:14]CreateOFDProtocolMessage done [18:38:14]OFDSenderStorePacket 70384 [18:38:14]StoreOFDPacket docnum=70384 [18:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CD 0D 06 01 2B 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 4C 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 12 01 00 35 04 06 00 E0 E8 82 BB 7E 0C E8 80 8B 09 B9 C8 0D 72 [18:38:14]CheckFolder [18:38:14]dirname=/storage/ofd_packets [18:38:14]CheckFolder done [18:38:14]ProducePacketName [18:38:14]name=ofd_packets/00070384 [18:38:14]NVStorageSaveData ofd_packets/00070384 [18:38:14]File name is /storage/ofd_packets/00070384 [18:38:14]Write 300 bytes [18:38:14]NVStorageSaveData done [18:38:14]OFDSenderStorePacket done [18:38:14]KKMCreateOFDPacket done [18:38:14]NVStorageSaveData kkm_last_timestamp [18:38:14]File name is /storage/kkm_last_timestamp [18:38:14]Write 4 bytes [18:38:14]NVStorageSaveData done [18:38:14]ExternCall_PrintAddStr [18:38:14]wPrintStart [18:38:14]Write to MH i2c: 01 00 00 74 18 8C [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 FF 0F A1 [18:38:14]RasterBufferAndPrint [18:38:14]line Счет N : (1)2886153 [18:38:14]line ИНН: 02508201610067 [18:38:14]line Контрольно-Кассовый Чек [18:38:14]line ПРОДАЖА [18:38:14]line ТРК (МРК, ГНК) : 71 [18:38:14]line Товар: 2711129700 [18:38:14]line ГАЗ-К-3 [18:38:14]line 25.710 * 38.90 [18:38:14]line = 1000.12 [18:38:14]line НДС 12% НСП 1% [18:38:14]line > о реализуемом товаре [18:38:14]line ОКРУГЛЕНИЕ: -0.12 [18:38:14]line ИТОГО: 1000.00 [18:38:14]line Внесено: 1000.00 [18:38:14]line СДАЧА: 0.00 [18:38:14]line НСП 1% : 8.85 [18:38:14]line НДС 12% : 106.21 [18:38:14]line Наличными: 1000.00 [18:38:14]line Безнал.: 0.00 [18:38:14]line Место: АЗС № 85 "Партнер Нефть" [18:38:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:38:14]line СНО: Общий режим [18:38:14]line Чек 332 22.10.2024 18:38 [18:38:14]line Смена: 195 ФФД: 1.0 [18:38:14]line ЗНМ: 0300000167 [18:38:14]line РНМ: 0000000000156251 [18:38:14]line Версия ККМ: v1.0 [18:38:14]line ФМ: 0000000000963346 [18:38:14]line ФД: 70384 [18:38:14]line ФПД: 247289230360076 [18:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70384&fm=247289230360076&tin=02508201610067®Number=0000000000156251&sum=100000 [18:38:14]OFD Sender: Processing packet 70384 [packets to send 18, broken 17] [18:38:14]ProducePacketName [18:38:14]name=ofd_packets/00070384 [18:38:14]OFD Sender: To server: pG, [18:38:14]CommunicateWithHost lk.salyk.kg:30040 [18:38:14]ConnectInit lk.salyk.kg [18:38:14]written 0, free lines is 4095 [18:38:14]Connected sock=11 [18:38: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 34 36 0E 01 00 00 CD 0D 06 01 2B 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 4C 01 00 00 F4 03 04 00 15 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 12 01 00 35 04 06 00 E0 E8 82 BB 7E 0C E8 80 8B 09 B9 C8 0D 72 [18:38: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 34 36 4F 00 00 00 06 57 47 00 27 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 34 36 10 04 04 00 F0 12 01 00 F4 03 04 00 B5 9A 17 67 B6 04 01 00 00 12 65 6E 32 D0 50 85 5E [18:38:14]CommunicateWithHost err = 0 [18:38:14]CheckOFDResponse [18:38:14]1017 (14) - 77093643461234 [18:38:14]1041 (16) - 0000000000963346 [18:38:14]1040 (4) - 70384 [18:38:14]1012 (4) - 22.10.2024 12:29 [18:38:14]1206 (1) - 0 [18:38:14]OFD Sender: Remove packet 70384 [18:38:14]ProducePacketName [18:38:14]name=ofd_packets/00070384 [18:38:14]NVStorageDeleteData [18:38:14]Write to MH i2c: 01 00 00 9F 18 B7 [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 F1 0C BB [18:38:14]RasterBufferAndPrint [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]written 0, free lines is 3319 [18:38:14]MH_Cut [18:38:14]Write to MH i2c: D1 01 00 A6 18 01 90 [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 01 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 01 00 A6 18 00 8F [18:38:14]Write to MH i2c: 01 00 00 A7 18 BF [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:15]OFD Sender: No OFD packet to send [18:38:15]*** Cut start [18:38:15]*** Partial cut [18:38:15]*** CUTSNS_PIN = 1 [18:38:15]*** CUTSNS_PIN = 0 [18:38:15]*** Brake cut motor [18:38:16]Read from MH i2c: 01 [18:38:16]MH_I2C_Read... [18:38:16]*** Stop cut motor [18:38:16]*** Cut end [18:38:16]Read from MH i2c: 01 07 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 FF 0F D4 [18:38:16]process_action close_receipt done [18:38:16]requested_data is exist [18:38:16]produce_requested_data [18:38:16]requested_item fm.sn is exist - process it [18:38:16]wFMCommunicate request_size=4 [18:38:16]MH_SAM_APDU [18:38:16]CAPDU: 80 11 00 00 [18:38:16]Write to MH i2c: E2 08 00 A8 18 80 11 00 00 00 00 00 00 3A [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:16]Read from MH i2c: E2 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 17 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 17 00 A8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [18:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:38:16]wFMCommunicate OK [18:38:16]requested_item fd.num is exist - process it [18:38:16]SAM_PROTO_GetFieldsCounters [18:38:16]wFMCommunicate request_size=4 [18:38:16]MH_SAM_APDU [18:38:16]CAPDU: 80 13 00 00 [18:38:16]Write to MH i2c: E2 08 00 A9 18 80 13 00 00 00 00 00 00 3D [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:16]Read from MH i2c: E2 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 62 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 62 00 A9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 12 01 00 0E 04 04 00 C3 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 05 [18:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 12 01 00 0E 04 04 00 C3 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 [18:38:16]wFMCommunicate OK [18:38:16]SAM_PROTO_GetFieldsCounters done [18:38:16]requested_item shift.num is exist - process it [18:38:16]requested_item shift.opened is exist - process it [18:38:16]req_shift_opened [18:38:16]FM_GetShiftState [18:38:16]SAM_PROTO_GetShiftState [18:38:16]wFMCommunicate request_size=4 [18:38:16]MH_SAM_APDU [18:38:16]CAPDU: 80 13 01 00 [18:38:16]Write to MH i2c: E2 08 00 AA 18 80 13 01 00 00 00 00 00 3F [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:16]Read from MH i2c: E2 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 0E 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 0E 00 AA 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2D [18:38:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:38:16]wFMCommunicate OK [18:38:16]SAM_PROTO_GetShiftState done [18:38:16]FM_GetShiftState done [18:38:16]req_shift_opened done [18:38:16]requested_item shift.open_date is exist - process it [18:38:16]req_shift_open_date [18:38:16]req_shift_open_date done [18:38:16]produce_requested_data done [18:38:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70384,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:38:16]process_action_free close_receipt [18:38:16]json_value_free [18:38:16]json_value_free done [18:38:16]process_json_proto returns [18:38:16]Send response to host [18:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70384,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:38:16]free response buf [18:38:16]execute_script done [18:38:16]execute_script returns [18:38:16]free content buf [18:38:16]Sock 7.Close socket [18:38:16]Sock 7.Thread stoped [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:39]accept exits with 9 [18:38:39]New connection [18:38:39]New thread 3066699108 created [18:38:39]Thread 3066555748 joined [18:38:39]Waiting for new connection... [18:38:39] Sock 9.Parse request [18:38:39]Sock 9.Check first char [18:38:39]Sock 9.First char is OK [18:38:39]request: POST /json_proto HTTP/1.0 [18:38:39]Method: POST [18:38:39]URL: /json_proto [18:38:39]Method is POST - this is cgi request [18:38:39]url: /json_proto [18:38:39]query_string will be loaded in cgi processing [18:38:39]execute_cgi json_proto POST (null) [18:38:39]execute_cgi path=json_proto method=POST [18:38:39]POST find Content-Length [18:38:39]Host: 172.17.50.3:8080 [18:38:39]Content-Length: 689 [18:38:39]Content-Type: application/json [18:38:39] [18:38:39]POST finish read [18:38:39]Found Content-Length = 689 [18:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:38:39]execute_script... [18:38: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)2886154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:38:39]POST & json_proto [18:38:39]process_json_proto [18:38:39]json parsed OK: [18:38:39]protocol is kg_v1.0 [18:38:39]action value=close_receipt [18:38:39]process_action close_receipt [18:38:39]cmd_close_receipt [18:38:39]MH_GetDate [18:38:39]Write to MH i2c: F0 00 00 AB 18 B2 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: F0 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: F0 09 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: F0 09 00 AB 18 00 30 F1 17 67 6B 98 1E 66 E1 [18:38:39]GetLastDocTimeStamp 1729622293 [18:38:39]current date 1729622320 [18:38:39]FM_GetShiftState [18:38:39]SAM_PROTO_GetShiftState [18:38:39]wFMCommunicate request_size=4 [18:38:39]MH_SAM_APDU [18:38:39]CAPDU: 80 13 01 00 [18:38:39]Write to MH i2c: E2 08 00 AC 18 80 13 01 00 00 00 00 00 41 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 0E 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 0E 00 AC 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2F [18:38:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:38:39]wFMCommunicate OK [18:38:39]SAM_PROTO_GetShiftState done [18:38:39]FM_GetShiftState done [18:38:39]opened in 1729555832 [18:38:39]opened+sec_in_day 1729642232 [18:38:39]quantity*price = 200025 [18:38:39]sum+1 = 200026 [18:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 333 22.10.2024 18:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70385 ФПД: 12560710208628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183840&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70385&fm=12560710208628&tin=02508201610067®Number=0000000000156251&sum=200000 [18:38:41]StoreToDocumentArchive [18:38:41]shift 195 fd 70385 [18:38:41]save to /storage/0195/doc_00070385 [18:38:41]save last doc name /storage/0195/doc_00070385 to /storage/kkm_last_doc_name [18:38:41]save OK [18:38:41]Clear old archive folders... [18:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:38:41]tlvbuf is 00B12E00 [18:38:41]SAM_PROTO_ClearQueue [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 09 00 00 [18:38:41]Write to MH i2c: E2 08 00 B9 18 80 09 00 00 00 00 00 00 43 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [18:38:41]RAPDU: 90 00 [18:38:41]wFMCommunicate OK [18:38:41]SAM_PROTO_ClearQueue done [18:38:41]KKMCreateOFDPacket [18:38:41]OFDProtocolAddRootSTLVToBuf [18:38:41]FM_MakeSignedData [18:38:41]FM_MakeSignedData [18:38:41]SAM_PROTO_SignData [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 0D 01 02 [18:38:41]Write to MH i2c: E2 08 00 BA 18 80 0D 01 02 00 00 00 00 4B [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [18:38:41]RAPDU: 90 00 [18:38:41]wFMCommunicate OK [18:38:41]wFMCommunicate request_size=255 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 01 00 00 F4 03 04 00 30 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 12 01 [18:38:41]Write to MH i2c: E2 02 01 BB 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 01 00 00 F4 03 04 00 30 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 12 01 00 00 95 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [18:38:41]RAPDU: 90 00 [18:38:41]wFMCommunicate OK [18:38:41]wFMCommunicate request_size=16 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0B 6C 84 AB 8C 74 [18:38:41]Write to MH i2c: E2 13 00 BC 18 80 0D 02 02 0B 00 00 35 04 06 00 0B 6C 84 AB 8C 74 00 00 49 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [18:38:41]RAPDU: 90 00 [18:38:41]wFMCommunicate OK [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 0D 03 02 [18:38:41]Write to MH i2c: E2 08 00 BD 18 80 0D 03 02 00 00 00 00 50 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 0B 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 0B 00 BD 18 00 D1 E9 A2 CE EC F9 D0 77 90 00 A7 [18:38:41]RAPDU: D1 E9 A2 CE EC F9 D0 77 90 00 [18:38:41]wFMCommunicate OK [18:38:41]SAM_PROTO_SignData done [18:38:41]FM_MakeSignedData done [18:38:41]CreateOFDProtocolMessage [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 11 00 00 [18:38:41]Write to MH i2c: E2 08 00 BE 18 80 11 00 00 00 00 00 00 50 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 17 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 17 00 BE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [18:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:38:41]wFMCommunicate OK [18:38:41]CreateOFDProtocolMessage done [18:38:41]OFDSenderStorePacket 70385 [18:38:41]StoreOFDPacket docnum=70385 [18:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 84 FF 0D 01 4C C0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 01 00 00 F4 03 04 00 30 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 12 01 00 35 04 06 00 0B 6C 84 AB 8C 74 D1 E9 A2 CE EC F9 D0 77 [18:38:41]CheckFolder [18:38:41]dirname=/storage/ofd_packets [18:38:41]CheckFolder done [18:38:41]ProducePacketName [18:38:41]name=ofd_packets/00070385 [18:38:41]NVStorageSaveData ofd_packets/00070385 [18:38:41]File name is /storage/ofd_packets/00070385 [18:38:41]Write 307 bytes [18:38:41]NVStorageSaveData done [18:38:41]OFDSenderStorePacket done [18:38:41]KKMCreateOFDPacket done [18:38:41]NVStorageSaveData kkm_last_timestamp [18:38:41]File name is /storage/kkm_last_timestamp [18:38:41]Write 4 bytes [18:38:41]NVStorageSaveData done [18:38:41]ExternCall_PrintAddStr [18:38:41]wPrintStart [18:38:41]Write to MH i2c: 01 00 00 BF 18 D7 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: 01 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: 01 07 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 FF 0F EC [18:38:41]RasterBufferAndPrint [18:38:41]line Счет N : (1)2886154 [18:38:41]line ИНН: 02508201610067 [18:38:41]line Контрольно-Кассовый Чек [18:38:41]line ПРОДАЖА [18:38:41]line ТРК (МРК, ГНК) : 11 [18:38:41]line Товар: 2710194240 [18:38:41]line D-ENERGY Дт-К-2 [18:38:41]line 25.910 * 77.20 [18:38:41]line = 2000.25 [18:38:41]line НДС 12% НСП 1% [18:38:41]line > о реализуемом товаре [18:38:41]line ОКРУГЛЕНИЕ: -0.25 [18:38:41]line ИТОГО: 2000.00 [18:38:41]line Внесено: 2000.00 [18:38:41]line СДАЧА: 0.00 [18:38:41]line НСП 1% : 17.70 [18:38:41]line НДС 12% : 212.42 [18:38:41]line Наличными: 2000.00 [18:38:41]line Безнал.: 0.00 [18:38:41]line Место: АЗС № 85 "Партнер Нефть" [18:38:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:38:41]line СНО: Общий режим [18:38:41]line Чек 333 22.10.2024 18:38 [18:38:41]line Смена: 195 ФФД: 1.0 [18:38:41]line ЗНМ: 0300000167 [18:38:41]line РНМ: 0000000000156251 [18:38:41]line Версия ККМ: v1.0 [18:38:41]line ФМ: 0000000000963346 [18:38:41]line ФД: 70385 [18:38:41]line ФПД: 12560710208628 [18:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183840&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70385&fm=12560710208628&tin=02508201610067®Number=0000000000156251&sum=200000 [18:38:41]OFD Sender: Processing packet 70385 [packets to send 18, broken 17] [18:38:41]ProducePacketName [18:38:41]name=ofd_packets/00070385 [18:38:41]OFD Sender: To server: pG, [18:38:41]CommunicateWithHost lk.salyk.kg:30040 [18:38:41]ConnectInit lk.salyk.kg [18:38:41]written 0, free lines is 4095 [18:38:41]Connected sock=10 [18:38: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 34 36 15 01 00 00 84 FF 0D 01 4C C0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 01 00 00 F4 03 04 00 30 F1 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 12 01 00 35 04 06 00 0B 6C 84 AB 8C 74 D1 E9 A2 CE EC F9 D0 77 [18:38: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 34 36 4F 00 00 00 CB 82 47 00 60 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 12 01 00 F4 03 04 00 D0 9A 17 67 B6 04 01 00 00 AB E6 80 CB FF 9C 10 57 [18:38:42]CommunicateWithHost err = 0 [18:38:42]CheckOFDResponse [18:38:42]1017 (14) - 77093643461234 [18:38:42]1041 (16) - 0000000000963346 [18:38:42]1040 (4) - 70385 [18:38:42]1012 (4) - 22.10.2024 12:30 [18:38:42]1206 (1) - 0 [18:38:42]OFD Sender: Remove packet 70385 [18:38:42]ProducePacketName [18:38:42]name=ofd_packets/00070385 [18:38:42]NVStorageDeleteData [18:38:42]Write to MH i2c: 01 00 00 EA 18 02 [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 07 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 05 0D 1B [18:38:42]RasterBufferAndPrint [18:38:42]line [18:38:42]line [18:38:42]line [18:38:42]line [18:38:42]line [18:38:42]written 0, free lines is 3340 [18:38:42]MH_Cut [18:38:42]Write to MH i2c: D1 01 00 F1 18 01 DB [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: D1 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: D1 01 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: D1 01 00 F1 18 00 DA [18:38:42]Write to MH i2c: 01 00 00 F2 18 0A [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]OFD Sender: No OFD packet to send [18:38:42]*** Cut start [18:38:42]*** Partial cut [18:38:42]*** CUTSNS_PIN = 1 [18:38:43]*** CUTSNS_PIN = 0 [18:38:43]*** Brake cut motor [18:38:43]Read from MH i2c: 01 [18:38:43]MH_I2C_Read... [18:38:43]*** Stop cut motor [18:38:43]*** Cut end [18:38:43]Read from MH i2c: 01 07 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 FF 0F 1F [18:38:43]process_action close_receipt done [18:38:43]requested_data is exist [18:38:43]produce_requested_data [18:38:43]requested_item fm.sn is exist - process it [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 11 00 00 [18:38:43]Write to MH i2c: E2 08 00 F3 18 80 11 00 00 00 00 00 00 85 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 F3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [18:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:38:43]wFMCommunicate OK [18:38:43]requested_item fd.num is exist - process it [18:38:43]SAM_PROTO_GetFieldsCounters [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 13 00 00 [18:38:43]Write to MH i2c: E2 08 00 F4 18 80 13 00 00 00 00 00 00 88 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 62 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 62 00 F4 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 12 01 00 0E 04 04 00 C3 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 54 [18:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 12 01 00 0E 04 04 00 C3 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 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_GetFieldsCounters done [18:38:43]requested_item shift.num is exist - process it [18:38:43]requested_item shift.opened is exist - process it [18:38:43]req_shift_opened [18:38:43]FM_GetShiftState [18:38:43]SAM_PROTO_GetShiftState [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 13 01 00 [18:38:43]Write to MH i2c: E2 08 00 F5 18 80 13 01 00 00 00 00 00 8A [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0E 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0E 00 F5 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 78 [18:38:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_GetShiftState done [18:38:43]FM_GetShiftState done [18:38:43]req_shift_opened done [18:38:43]requested_item shift.open_date is exist - process it [18:38:43]req_shift_open_date [18:38:43]req_shift_open_date done [18:38:43]produce_requested_data done [18:38:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70385,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:38:43]process_action_free close_receipt [18:38:43]json_value_free [18:38:43]json_value_free done [18:38:43]process_json_proto returns [18:38:43]Send response to host [18:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70385,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:38:43]free response buf [18:38:43]execute_script done [18:38:43]execute_script returns [18:38:43]free content buf [18:38:43]Sock 9.Close socket [18:38:43]Sock 9.Thread stoped [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]accept exits with 7 [18:42:12]New connection [18:42:12]New thread 3066555748 created [18:42:12]Thread 3066699108 joined [18:42:12]Waiting for new connection... [18:42:12] Sock 7.Parse request [18:42:12]Sock 7.Check first char [18:42:12]Sock 7.First char is OK [18:42:12]request: POST /json_proto HTTP/1.0 [18:42:12]Method: POST [18:42:12]URL: /json_proto [18:42:12]Method is POST - this is cgi request [18:42:12]url: /json_proto [18:42:12]query_string will be loaded in cgi processing [18:42:12]execute_cgi json_proto POST (null) [18:42:12]execute_cgi path=json_proto method=POST [18:42:12]POST find Content-Length [18:42:12]Host: 172.17.50.3:8080 [18:42:12]Content-Length: 686 [18:42:12]Content-Type: application/json [18:42:12] [18:42:12]POST finish read [18:42:12]Found Content-Length = 686 [18:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.030, "sum" : 1401.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:12]execute_script... [18:42: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 : (1)2886155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.030, "sum" : 1401.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:12]POST & json_proto [18:42:12]process_json_proto [18:42:12]json parsed OK: [18:42:12]protocol is kg_v1.0 [18:42:12]action value=close_receipt [18:42:12]process_action close_receipt [18:42:12]cmd_close_receipt [18:42:12]MH_GetDate [18:42:12]Write to MH i2c: F0 00 00 F6 18 FD [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: F0 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: F0 09 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: F0 09 00 F6 18 00 05 F2 17 67 6B 98 1E 66 02 [18:42:12]GetLastDocTimeStamp 1729622320 [18:42:12]current date 1729622533 [18:42:12]FM_GetShiftState [18:42:12]SAM_PROTO_GetShiftState [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 13 01 00 [18:42:12]Write to MH i2c: E2 08 00 F7 18 80 13 01 00 00 00 00 00 8C [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 F7 18 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7A [18:42:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:42:12]wFMCommunicate OK [18:42:12]SAM_PROTO_GetShiftState done [18:42:12]FM_GetShiftState done [18:42:12]opened in 1729555832 [18:42:12]opened+sec_in_day 1729642232 [18:42:12]quantity*price = 140156 [18:42:12]sum+1 = 140158 [18:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1401.00 Внесено: 3000.00 СДАЧА: 1599.00 НСП 1% : 12.40 НДС 12% : 148.84 Наличными: 1401.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 334 22.10.2024 18:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70386 ФПД: 4551215558759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70386&fm=4551215558759&tin=02508201610067®Number=0000000000156251&sum=140100 [18:42:13]StoreToDocumentArchive [18:42:13]shift 195 fd 70386 [18:42:13]save to /storage/0195/doc_00070386 [18:42:13]save last doc name /storage/0195/doc_00070386 to /storage/kkm_last_doc_name [18:42:13]save OK [18:42:13]Clear old archive folders... [18:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:42:13]tlvbuf is 00B3C9F0 [18:42:13]SAM_PROTO_ClearQueue [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 09 00 00 [18:42:13]Write to MH i2c: E2 08 00 04 19 80 09 00 00 00 00 00 00 8F [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]SAM_PROTO_ClearQueue done [18:42:13]KKMCreateOFDPacket [18:42:13]OFDProtocolAddRootSTLVToBuf [18:42:13]FM_MakeSignedData [18:42:13]FM_MakeSignedData [18:42:13]SAM_PROTO_SignData [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 01 02 [18:42:13]Write to MH i2c: E2 08 00 05 19 80 0D 01 02 00 00 00 00 97 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:14]Read from MH i2c: E2 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [18:42:14]RAPDU: 90 00 [18:42:14]wFMCommunicate OK [18:42:14]wFMCommunicate request_size=255 [18:42:14]MH_SAM_APDU [18:42:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7D 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 24 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 4E 01 00 00 F4 03 04 00 05 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 12 01 00 35 04 06 00 04 23 [18:42:14]Write to MH i2c: E2 02 01 06 19 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7D 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 24 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 4E 01 00 00 F4 03 04 00 05 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 12 01 00 35 04 06 00 04 23 00 00 35 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:14]Read from MH i2c: E2 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [18:42:14]RAPDU: 90 00 [18:42:14]wFMCommunicate OK [18:42:14]wFMCommunicate request_size=9 [18:42:14]MH_SAM_APDU [18:42:14]CAPDU: 80 0D 02 02 04 A9 96 30 67 [18:42:14]Write to MH i2c: E2 0C 00 07 19 80 0D 02 02 04 00 A9 96 30 67 00 00 78 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:14]Read from MH i2c: E2 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [18:42:14]RAPDU: 90 00 [18:42:14]wFMCommunicate OK [18:42:14]wFMCommunicate request_size=4 [18:42:14]MH_SAM_APDU [18:42:14]CAPDU: 80 0D 03 02 [18:42:14]Write to MH i2c: E2 08 00 08 19 80 0D 03 02 00 00 00 00 9C [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:14]Read from MH i2c: E2 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 0B 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 0B 00 08 19 00 7F CD 4D 05 5D AF 1F EA 90 00 50 [18:42:14]RAPDU: 7F CD 4D 05 5D AF 1F EA 90 00 [18:42:14]wFMCommunicate OK [18:42:14]SAM_PROTO_SignData done [18:42:14]FM_MakeSignedData done [18:42:14]CreateOFDProtocolMessage [18:42:14]wFMCommunicate request_size=4 [18:42:14]MH_SAM_APDU [18:42:14]CAPDU: 80 11 00 00 [18:42:14]Write to MH i2c: E2 08 00 09 19 80 11 00 00 00 00 00 00 9C [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:14]Read from MH i2c: E2 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 17 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: E2 17 00 09 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [18:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:42:14]wFMCommunicate OK [18:42:14]CreateOFDProtocolMessage done [18:42:14]OFDSenderStorePacket 70386 [18:42:14]StoreOFDPacket docnum=70386 [18:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4E FC 06 01 DE 46 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7D 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 24 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 4E 01 00 00 F4 03 04 00 05 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 12 01 00 35 04 06 00 04 23 A9 96 30 67 7F CD 4D 05 5D AF 1F EA [18:42:14]CheckFolder [18:42:14]dirname=/storage/ofd_packets [18:42:14]CheckFolder done [18:42:14]ProducePacketName [18:42:14]name=ofd_packets/00070386 [18:42:14]NVStorageSaveData ofd_packets/00070386 [18:42:14]File name is /storage/ofd_packets/00070386 [18:42:14]Write 300 bytes [18:42:14]NVStorageSaveData done [18:42:14]OFDSenderStorePacket done [18:42:14]KKMCreateOFDPacket done [18:42:14]NVStorageSaveData kkm_last_timestamp [18:42:14]File name is /storage/kkm_last_timestamp [18:42:14]Write 4 bytes [18:42:14]NVStorageSaveData done [18:42:14]ExternCall_PrintAddStr [18:42:14]wPrintStart [18:42:14]Write to MH i2c: 01 00 00 0A 19 23 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 FF 0F 38 [18:42:14]RasterBufferAndPrint [18:42:14]line Счет N : (1)2886155 [18:42:14]line ИНН: 02508201610067 [18:42:14]line Контрольно-Кассовый Чек [18:42:14]line ПРОДАЖА [18:42:14]line ТРК (МРК, ГНК) : 71 [18:42:14]line Товар: 2711129700 [18:42:14]line ГАЗ-К-3 [18:42:14]line 36.030 * 38.90 [18:42:14]line = 1401.57 [18:42:14]line НДС 12% НСП 1% [18:42:14]line > о реализуемом товаре [18:42:14]line ОКРУГЛЕНИЕ: -0.57 [18:42:14]line ИТОГО: 1401.00 [18:42:14]line Внесено: 3000.00 [18:42:14]line СДАЧА: 1599.00 [18:42:14]line НСП 1% : 12.40 [18:42:14]line НДС 12% : 148.84 [18:42:14]line Наличными: 1401.00 [18:42:14]line Безнал.: 0.00 [18:42:14]line Место: АЗС № 85 "Партнер Нефть" [18:42:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:42:14]line СНО: Общий режим [18:42:14]line Чек 334 22.10.2024 18:42 [18:42:14]line Смена: 195 ФФД: 1.0 [18:42:14]line ЗНМ: 0300000167 [18:42:14]line РНМ: 0000000000156251 [18:42:14]line Версия ККМ: v1.0 [18:42:14]line ФМ: 0000000000963346 [18:42:14]line ФД: 70386 [18:42:14]line ФПД: 4551215558759 [18:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70386&fm=4551215558759&tin=02508201610067®Number=0000000000156251&sum=140100 [18:42:14]OFD Sender: Processing packet 70386 [packets to send 18, broken 17] [18:42:14]ProducePacketName [18:42:14]name=ofd_packets/00070386 [18:42:14]OFD Sender: To server: pG, [18:42:14]CommunicateWithHost lk.salyk.kg:30040 [18:42:14]ConnectInit lk.salyk.kg [18:42:14]written 0, free lines is 4095 [18:42:14]Connected sock=10 [18:42: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 34 36 0E 01 00 00 4E FC 06 01 DE 46 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7D 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 24 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 4E 01 00 00 F4 03 04 00 05 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 12 01 00 35 04 06 00 04 23 A9 96 30 67 7F CD 4D 05 5D AF 1F EA [18:42: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 34 36 4F 00 00 00 C1 C6 47 00 45 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 34 36 10 04 04 00 F2 12 01 00 F4 03 04 00 A5 9B 17 67 B6 04 01 00 00 56 D1 4A 52 BD 07 8E 5B [18:42:15]CommunicateWithHost err = 0 [18:42:15]CheckOFDResponse [18:42:15]1017 (14) - 77093643461234 [18:42:15]1041 (16) - 0000000000963346 [18:42:15]1040 (4) - 70386 [18:42:15]1012 (4) - 22.10.2024 12:33 [18:42:15]1206 (1) - 0 [18:42:15]OFD Sender: Remove packet 70386 [18:42:15]ProducePacketName [18:42:15]name=ofd_packets/00070386 [18:42:15]NVStorageDeleteData [18:42:15]Write to MH i2c: 01 00 00 35 19 4E [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: 01 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: 01 07 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 FE 0C 5F [18:42:15]RasterBufferAndPrint [18:42:15]line [18:42:15]line [18:42:15]line [18:42:15]line [18:42:15]line [18:42:15]written 0, free lines is 3331 [18:42:15]MH_Cut [18:42:15]Write to MH i2c: D1 01 00 3C 19 01 27 [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: D1 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: D1 01 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: D1 01 00 3C 19 00 26 [18:42:15]Write to MH i2c: 01 00 00 3D 19 56 [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]OFD Sender: No OFD packet to send [18:42:15]*** Cut start [18:42:15]*** Partial cut [18:42:15]*** CUTSNS_PIN = 1 [18:42:16]*** CUTSNS_PIN = 0 [18:42:16]*** Brake cut motor [18:42:16]Read from MH i2c: 01 [18:42:16]MH_I2C_Read... [18:42:16]*** Stop cut motor [18:42:16]*** Cut end [18:42:16]Read from MH i2c: 01 07 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: 01 07 00 3D 19 00 00 00 00 00 FF 0F 6B [18:42:16]process_action close_receipt done [18:42:16]requested_data is exist [18:42:16]produce_requested_data [18:42:16]requested_item fm.sn is exist - process it [18:42:16]wFMCommunicate request_size=4 [18:42:16]MH_SAM_APDU [18:42:16]CAPDU: 80 11 00 00 [18:42:16]Write to MH i2c: E2 08 00 3E 19 80 11 00 00 00 00 00 00 D1 [18:42:16]Write i2c OK [18:42:16]MH_I2C_Read... [18:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:16]Read from MH i2c: E2 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 17 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 17 00 3E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [18:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:42:16]wFMCommunicate OK [18:42:16]requested_item fd.num is exist - process it [18:42:16]SAM_PROTO_GetFieldsCounters [18:42:16]wFMCommunicate request_size=4 [18:42:16]MH_SAM_APDU [18:42:16]CAPDU: 80 13 00 00 [18:42:16]Write to MH i2c: E2 08 00 3F 19 80 13 00 00 00 00 00 00 D4 [18:42:16]Write i2c OK [18:42:16]MH_I2C_Read... [18:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:16]Read from MH i2c: E2 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 62 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 62 00 3F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 12 01 00 0E 04 04 00 C3 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 A4 [18:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 12 01 00 0E 04 04 00 C3 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 [18:42:16]wFMCommunicate OK [18:42:16]SAM_PROTO_GetFieldsCounters done [18:42:16]requested_item shift.num is exist - process it [18:42:16]requested_item shift.opened is exist - process it [18:42:16]req_shift_opened [18:42:16]FM_GetShiftState [18:42:16]SAM_PROTO_GetShiftState [18:42:16]wFMCommunicate request_size=4 [18:42:16]MH_SAM_APDU [18:42:16]CAPDU: 80 13 01 00 [18:42:16]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [18:42:16]Write i2c OK [18:42:16]MH_I2C_Read... [18:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:16]Read from MH i2c: E2 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 0E 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C4 [18:42:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:42:16]wFMCommunicate OK [18:42:16]SAM_PROTO_GetShiftState done [18:42:16]FM_GetShiftState done [18:42:16]req_shift_opened done [18:42:16]requested_item shift.open_date is exist - process it [18:42:16]req_shift_open_date [18:42:16]req_shift_open_date done [18:42:16]produce_requested_data done [18:42:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70386,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:42:16]process_action_free close_receipt [18:42:16]json_value_free [18:42:16]json_value_free done [18:42:16]process_json_proto returns [18:42:16]Send response to host [18:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70386,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:42:16]free response buf [18:42:16]execute_script done [18:42:16]execute_script returns [18:42:16]free content buf [18:42:16]Sock 7.Close socket [18:42:16]Sock 7.Thread stoped [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:47]accept exits with 9 [18:44:47]New connection [18:44:47]New thread 3066699108 created [18:44:47]Thread 3066555748 joined [18:44:47]Waiting for new connection... [18:44:47] Sock 9.Parse request [18:44:47]Sock 9.Check first char [18:44:47]Sock 9.First char is OK [18:44:47]request: POST /json_proto HTTP/1.0 [18:44:47]Method: POST [18:44:47]URL: /json_proto [18:44:47]Method is POST - this is cgi request [18:44:47]url: /json_proto [18:44:47]query_string will be loaded in cgi processing [18:44:47]execute_cgi json_proto POST (null) [18:44:47]execute_cgi path=json_proto method=POST [18:44:47]POST find Content-Length [18:44:47]Host: 172.17.50.3:8080 [18:44:47]Content-Length: 776 [18:44:47]Content-Type: application/json [18:44:47] [18:44:47]POST finish read [18:44:47]Found Content-Length = 776 [18:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 44.760, "sum" : 3455.47, "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" : 3455.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:47]execute_script... [18:44: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)2886156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 44.760, "sum" : 3455.47, "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" : 3455.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:47]POST & json_proto [18:44:47]process_json_proto [18:44:47]json parsed OK: [18:44:47]protocol is kg_v1.0 [18:44:47]action value=close_receipt [18:44:47]process_action close_receipt [18:44:47]cmd_close_receipt [18:44:47]MH_GetDate [18:44:47]Write to MH i2c: F0 00 00 41 19 49 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: F0 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: F0 09 00 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: F0 09 00 41 19 00 A0 F2 17 67 6B 98 1E 66 E9 [18:44:47]GetLastDocTimeStamp 1729622533 [18:44:47]current date 1729622688 [18:44:47]FM_GetShiftState [18:44:47]SAM_PROTO_GetShiftState [18:44:47]wFMCommunicate request_size=4 [18:44:47]MH_SAM_APDU [18:44:47]CAPDU: 80 13 01 00 [18:44:47]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:47]Read from MH i2c: E2 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: E2 0E 00 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C6 [18:44:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:44:47]wFMCommunicate OK [18:44:47]SAM_PROTO_GetShiftState done [18:44:47]FM_GetShiftState done [18:44:47]opened in 1729555832 [18:44:47]opened+sec_in_day 1729642232 [18:44:47]quantity*price = 345547 [18:44:47]sum+1 = 345548 [18:44:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3455.47 НСП 1% : 30.58 НДС 12% : 366.95 Наличными: 0.00 Безнал.: 3455.47 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 335 22.10.2024 18:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70387 ФПД: 154369002225618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70387&fm=154369002225618&tin=02508201610067®Number=0000000000156251&sum=345547 [18:44:48]StoreToDocumentArchive [18:44:48]shift 195 fd 70387 [18:44:48]save to /storage/0195/doc_00070387 [18:44:48]save last doc name /storage/0195/doc_00070387 to /storage/kkm_last_doc_name [18:44:48]save OK [18:44:48]Clear old archive folders... [18:44:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:44:48]tlvbuf is 00D6DA20 [18:44:48]SAM_PROTO_ClearQueue [18:44:48]wFMCommunicate request_size=4 [18:44:48]MH_SAM_APDU [18:44:48]CAPDU: 80 09 00 00 [18:44:48]Write to MH i2c: E2 08 00 4F 19 80 09 00 00 00 00 00 00 DA [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:48]Read from MH i2c: E2 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: E2 03 00 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [18:44:48]RAPDU: 90 00 [18:44:48]wFMCommunicate OK [18:44:48]SAM_PROTO_ClearQueue done [18:44:48]KKMCreateOFDPacket [18:44:48]OFDProtocolAddRootSTLVToBuf [18:44:48]FM_MakeSignedData [18:44:48]FM_MakeSignedData [18:44:48]SAM_PROTO_SignData [18:44:48]wFMCommunicate request_size=4 [18:44:48]MH_SAM_APDU [18:44:48]CAPDU: 80 0D 01 02 [18:44:48]Write to MH i2c: E2 08 00 50 19 80 0D 01 02 00 00 00 00 E2 [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]wFMCommunicate request_size=255 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D8 AE 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CB 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A0 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 12 01 [18:44:49]Write to MH i2c: E2 02 01 51 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D8 AE 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CB 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A0 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 12 01 00 00 69 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]wFMCommunicate request_size=16 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8C 65 D5 8A BF D2 [18:44:49]Write to MH i2c: E2 13 00 52 19 80 0D 02 02 0B 00 00 35 04 06 00 8C 65 D5 8A BF D2 00 00 1B [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 0D 03 02 [18:44:49]Write to MH i2c: E2 08 00 53 19 80 0D 03 02 00 00 00 00 E7 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0B 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0B 00 53 19 00 76 E6 44 77 CC 8A 1F BA 90 00 2E [18:44:49]RAPDU: 76 E6 44 77 CC 8A 1F BA 90 00 [18:44:49]wFMCommunicate OK [18:44:49]SAM_PROTO_SignData done [18:44:49]FM_MakeSignedData done [18:44:49]CreateOFDProtocolMessage [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 11 00 00 [18:44:49]Write to MH i2c: E2 08 00 54 19 80 11 00 00 00 00 00 00 E7 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 17 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 17 00 54 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [18:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:49]wFMCommunicate OK [18:44:49]CreateOFDProtocolMessage done [18:44:49]OFDSenderStorePacket 70387 [18:44:49]StoreOFDPacket docnum=70387 [18:44:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C0 A6 0D 01 7E 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D8 AE 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CB 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A0 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 12 01 00 35 04 06 00 8C 65 D5 8A BF D2 76 E6 44 77 CC 8A 1F BA [18:44:49]CheckFolder [18:44:49]dirname=/storage/ofd_packets [18:44:49]CheckFolder done [18:44:49]ProducePacketName [18:44:49]name=ofd_packets/00070387 [18:44:49]NVStorageSaveData ofd_packets/00070387 [18:44:49]File name is /storage/ofd_packets/00070387 [18:44:49]Write 307 bytes [18:44:49]NVStorageSaveData done [18:44:49]OFDSenderStorePacket done [18:44:49]KKMCreateOFDPacket done [18:44:49]NVStorageSaveData kkm_last_timestamp [18:44:49]File name is /storage/kkm_last_timestamp [18:44:49]Write 4 bytes [18:44:49]NVStorageSaveData done [18:44:49]ExternCall_PrintAddStr [18:44:49]wPrintStart [18:44:49]Write to MH i2c: 01 00 00 55 19 6E [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: 01 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: 01 07 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 FF 0F 83 [18:44:49]RasterBufferAndPrint [18:44:49]line Счет N : (1)2886156 [18:44:49]line ИНН: 02508201610067 [18:44:49]line Контрольно-Кассовый Чек [18:44:49]line ПРОДАЖА [18:44:49]line ТРК (МРК, ГНК) : 21 [18:44:49]line Товар: 2710194240 [18:44:49]line D-ENERGY Дт-К-2 [18:44:49]line 44.760 * 77.20 [18:44:49]line = 3455.47 [18:44:49]line НДС 12% НСП 1% [18:44:49]line > о реализуемом товаре [18:44:49]line ИТОГО: 3455.47 [18:44:49]line НСП 1% : 30.58 [18:44:49]line НДС 12% : 366.95 [18:44:49]line Наличными: 0.00 [18:44:49]line Безнал.: 3455.47 [18:44:49]line Место: АЗС № 85 "Партнер Нефть" [18:44:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:44:49]line СНО: Общий режим [18:44:49]line Чек 335 22.10.2024 18:44 [18:44:49]line Смена: 195 ФФД: 1.0 [18:44:49]line ЗНМ: 0300000167 [18:44:49]line РНМ: 0000000000156251 [18:44:49]line Версия ККМ: v1.0 [18:44:49]line Платежная система: Mbank [18:44:49]line ФМ: 0000000000963346 [18:44:49]line ФД: 70387 [18:44:49]line ФПД: 154369002225618 [18:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70387&fm=154369002225618&tin=02508201610067®Number=0000000000156251&sum=345547 [18:44:49]OFD Sender: Processing packet 70387 [packets to send 18, broken 17] [18:44:49]ProducePacketName [18:44:49]name=ofd_packets/00070387 [18:44:49]OFD Sender: To server: pG, [18:44:49]CommunicateWithHost lk.salyk.kg:30040 [18:44:49]ConnectInit lk.salyk.kg [18:44:49]written 0, free lines is 4095 [18:44:49]Connected sock=10 [18:44: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 34 36 15 01 00 00 C0 A6 0D 01 7E 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D8 AE 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CB 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A0 F2 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 12 01 00 35 04 06 00 8C 65 D5 8A BF D2 76 E6 44 77 CC 8A 1F BA [18:44: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 34 36 4F 00 00 00 88 7A 47 00 7B 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 34 36 10 04 04 00 F3 12 01 00 F4 03 04 00 40 9C 17 67 B6 04 01 00 00 5A 89 7E 8C C5 B8 D0 6B [18:44:50]CommunicateWithHost err = 0 [18:44:50]CheckOFDResponse [18:44:50]1017 (14) - 77093643461234 [18:44:50]1041 (16) - 0000000000963346 [18:44:50]1040 (4) - 70387 [18:44:50]1012 (4) - 22.10.2024 12:36 [18:44:50]1206 (1) - 0 [18:44:50]OFD Sender: Remove packet 70387 [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00070387 [18:44:50]NVStorageDeleteData [18:44:50]Write to MH i2c: 01 00 00 7E 19 97 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 26 0D D1 [18:44:50]RasterBufferAndPrint [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]written 0, free lines is 3372 [18:44:50]MH_Cut [18:44:50]Write to MH i2c: D1 01 00 85 19 01 70 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 01 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 01 00 85 19 00 6F [18:44:50]Write to MH i2c: 01 00 00 86 19 9F [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]OFD Sender: No OFD packet to send [18:44:50]*** Cut start [18:44:50]*** Partial cut [18:44:50]*** CUTSNS_PIN = 1 [18:44:50]*** CUTSNS_PIN = 0 [18:44:51]*** Brake cut motor [18:44:51]Read from MH i2c: 01 [18:44:51]MH_I2C_Read... [18:44:51]*** Stop cut motor [18:44:51]*** Cut end [18:44:51]Read from MH i2c: 01 07 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [18:44:51]process_action close_receipt done [18:44:51]requested_data is exist [18:44:51]produce_requested_data [18:44:51]requested_item fm.sn is exist - process it [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 11 00 00 [18:44:51]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 17 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [18:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:51]wFMCommunicate OK [18:44:51]requested_item fd.num is exist - process it [18:44:51]SAM_PROTO_GetFieldsCounters [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 13 00 00 [18:44:51]Write to MH i2c: E2 08 00 88 19 80 13 00 00 00 00 00 00 1D [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 62 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 62 00 88 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 12 01 00 0E 04 04 00 C3 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 F1 [18:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 12 01 00 0E 04 04 00 C3 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 [18:44:51]wFMCommunicate OK [18:44:51]SAM_PROTO_GetFieldsCounters done [18:44:51]requested_item shift.num is exist - process it [18:44:51]requested_item shift.opened is exist - process it [18:44:51]req_shift_opened [18:44:51]FM_GetShiftState [18:44:51]SAM_PROTO_GetShiftState [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 13 01 00 [18:44:51]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 0E 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0D [18:44:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:44:51]wFMCommunicate OK [18:44:51]SAM_PROTO_GetShiftState done [18:44:51]FM_GetShiftState done [18:44:51]req_shift_opened done [18:44:51]requested_item shift.open_date is exist - process it [18:44:51]req_shift_open_date [18:44:51]req_shift_open_date done [18:44:51]produce_requested_data done [18:44:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70387,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:44:51]process_action_free close_receipt [18:44:51]json_value_free [18:44:51]json_value_free done [18:44:51]process_json_proto returns [18:44:51]Send response to host [18:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70387,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:44:51]free response buf [18:44:51]execute_script done [18:44:51]execute_script returns [18:44:51]free content buf [18:44:51]Sock 9.Close socket [18:44:51]Sock 9.Thread stoped [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]accept exits with 7 [18:48:15]New connection [18:48:15]New thread 3066555748 created [18:48:15]Thread 3066699108 joined [18:48:15]Waiting for new connection... [18:48:15] Sock 7.Parse request [18:48:15]Sock 7.Check first char [18:48:15]Sock 7.First char is OK [18:48:15]request: POST /json_proto HTTP/1.0 [18:48:15]Method: POST [18:48:15]URL: /json_proto [18:48:15]Method is POST - this is cgi request [18:48:15]url: /json_proto [18:48:15]query_string will be loaded in cgi processing [18:48:15]execute_cgi json_proto POST (null) [18:48:15]execute_cgi path=json_proto method=POST [18:48:15]POST find Content-Length [18:48:15]Host: 172.17.50.3:8080 [18:48:15]Content-Length: 678 [18:48:15]Content-Type: application/json [18:48:15] [18:48:15]POST finish read [18:48:15]Found Content-Length = 678 [18:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [18:48:15]execute_script... [18:48: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)2886157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [18:48:15]POST & json_proto [18:48:15]process_json_proto [18:48:15]json parsed OK: [18:48:15]protocol is kg_v1.0 [18:48:15]action value=close_receipt [18:48:15]process_action close_receipt [18:48:15]cmd_close_receipt [18:48:15]MH_GetDate [18:48:15]Write to MH i2c: F0 00 00 8A 19 92 [18:48:15]Write i2c OK [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: F0 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: F0 09 00 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: F0 09 00 8A 19 00 70 F3 17 67 6B 98 1E 66 03 [18:48:15]GetLastDocTimeStamp 1729622688 [18:48:15]current date 1729622896 [18:48:15]FM_GetShiftState [18:48:15]SAM_PROTO_GetShiftState [18:48:15]wFMCommunicate request_size=4 [18:48:15]MH_SAM_APDU [18:48:15]CAPDU: 80 13 01 00 [18:48:15]Write to MH i2c: E2 08 00 8B 19 80 13 01 00 00 00 00 00 21 [18:48:15]Write i2c OK [18:48:15]MH_I2C_Read... [18:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:15]Read from MH i2c: E2 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 0E 00 [18:48:15]MH_I2C_Read... [18:48:15]Read from MH i2c: E2 0E 00 8B 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0F [18:48:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:48:15]wFMCommunicate OK [18:48:15]SAM_PROTO_GetShiftState done [18:48:15]FM_GetShiftState done [18:48:15]opened in 1729555832 [18:48:15]opened+sec_in_day 1729642232 [18:48:15]quantity*price = 60027 [18:48:15]sum+1 = 60029 [18:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 336 22.10.2024 18:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70388 ФПД: 162559728339572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70388&fm=162559728339572&tin=02508201610067®Number=0000000000156251&sum=60000 [18:48:16]StoreToDocumentArchive [18:48:16]shift 195 fd 70388 [18:48:16]save to /storage/0195/doc_00070388 [18:48:16]save last doc name /storage/0195/doc_00070388 to /storage/kkm_last_doc_name [18:48:16]save OK [18:48:16]Clear old archive folders... [18:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:16]tlvbuf is 00CA7820 [18:48:16]SAM_PROTO_ClearQueue [18:48:16]wFMCommunicate request_size=4 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 09 00 00 [18:48:16]Write to MH i2c: E2 08 00 98 19 80 09 00 00 00 00 00 00 23 [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [18:48:16]RAPDU: 90 00 [18:48:16]wFMCommunicate OK [18:48:16]SAM_PROTO_ClearQueue done [18:48:16]KKMCreateOFDPacket [18:48:16]OFDProtocolAddRootSTLVToBuf [18:48:16]FM_MakeSignedData [18:48:16]FM_MakeSignedData [18:48:16]SAM_PROTO_SignData [18:48:16]wFMCommunicate request_size=4 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 0D 01 02 [18:48:16]Write to MH i2c: E2 08 00 99 19 80 0D 01 02 00 00 00 00 2B [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:16]Read from MH i2c: E2 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [18:48:16]RAPDU: 90 00 [18:48:16]wFMCommunicate OK [18:48:16]wFMCommunicate request_size=255 [18:48:16]MH_SAM_APDU [18:48: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 50 01 00 00 F4 03 04 00 70 F3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 12 01 00 35 04 06 00 93 [18:48:16]Write to MH i2c: E2 02 01 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 50 01 00 00 F4 03 04 00 70 F3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 12 01 00 35 04 06 00 93 00 00 A1 [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 03 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [18:48:17]RAPDU: 90 00 [18:48:17]wFMCommunicate OK [18:48:17]wFMCommunicate request_size=10 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 0D 02 02 05 D8 E2 DC CA 74 [18:48:17]Write to MH i2c: E2 0D 00 9B 19 80 0D 02 02 05 00 D8 E2 DC CA 74 00 00 0C [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 03 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [18:48:17]RAPDU: 90 00 [18:48:17]wFMCommunicate OK [18:48:17]wFMCommunicate request_size=4 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 0D 03 02 [18:48:17]Write to MH i2c: E2 08 00 9C 19 80 0D 03 02 00 00 00 00 30 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0B 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0B 00 9C 19 00 6A 75 DE 5E 62 15 C4 FC 90 00 83 [18:48:17]RAPDU: 6A 75 DE 5E 62 15 C4 FC 90 00 [18:48:17]wFMCommunicate OK [18:48:17]SAM_PROTO_SignData done [18:48:17]FM_MakeSignedData done [18:48:17]CreateOFDProtocolMessage [18:48:17]wFMCommunicate request_size=4 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 11 00 00 [18:48:17]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 17 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [18:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:48:17]wFMCommunicate OK [18:48:17]CreateOFDProtocolMessage done [18:48:17]OFDSenderStorePacket 70388 [18:48:17]StoreOFDPacket docnum=70388 [18:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 21 07 01 CE D1 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 50 01 00 00 F4 03 04 00 70 F3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 12 01 00 35 04 06 00 93 D8 E2 DC CA 74 6A 75 DE 5E 62 15 C4 FC [18:48:17]CheckFolder [18:48:17]dirname=/storage/ofd_packets [18:48:17]CheckFolder done [18:48:17]ProducePacketName [18:48:17]name=ofd_packets/00070388 [18:48:17]NVStorageSaveData ofd_packets/00070388 [18:48:17]File name is /storage/ofd_packets/00070388 [18:48:17]Write 301 bytes [18:48:17]NVStorageSaveData done [18:48:17]OFDSenderStorePacket done [18:48:17]KKMCreateOFDPacket done [18:48:17]NVStorageSaveData kkm_last_timestamp [18:48:17]File name is /storage/kkm_last_timestamp [18:48:17]Write 4 bytes [18:48:17]NVStorageSaveData done [18:48:17]ExternCall_PrintAddStr [18:48:17]wPrintStart [18:48:17]Write to MH i2c: 01 00 00 9E 19 B7 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 07 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 FF 0F CC [18:48:17]RasterBufferAndPrint [18:48:17]line Счет N : (1)2886157 [18:48:17]line ИНН: 02508201610067 [18:48:17]line Контрольно-Кассовый Чек [18:48:17]line ПРОДАЖА [18:48:17]line ТРК (МРК, ГНК) : 33 [18:48:17]line Товар: 2710124500 [18:48:17]line Аи-95-К-5 [18:48:17]line 8.090 * 74.20 [18:48:17]line = 600.28 [18:48:17]line НДС 12% НСП 1% [18:48:17]line > о реализуемом товаре [18:48:17]line ОКРУГЛЕНИЕ: -0.28 [18:48:17]line ИТОГО: 600.00 [18:48:17]line Внесено: 600.00 [18:48:17]line СДАЧА: 0.00 [18:48:17]line НСП 1% : 5.31 [18:48:17]line НДС 12% : 63.75 [18:48:17]line Наличными: 600.00 [18:48:17]line Безнал.: 0.00 [18:48:17]line Место: АЗС № 85 "Партнер Нефть" [18:48:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:48:17]line СНО: Общий режим [18:48:17]line Чек 336 22.10.2024 18:48 [18:48:17]line Смена: 195 ФФД: 1.0 [18:48:17]line ЗНМ: 0300000167 [18:48:17]line РНМ: 0000000000156251 [18:48:17]line Версия ККМ: v1.0 [18:48:17]line ФМ: 0000000000963346 [18:48:17]line ФД: 70388 [18:48:17]line ФПД: 162559728339572 [18:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70388&fm=162559728339572&tin=02508201610067®Number=0000000000156251&sum=60000 [18:48:17]OFD Sender: Processing packet 70388 [packets to send 18, broken 17] [18:48:17]ProducePacketName [18:48:17]name=ofd_packets/00070388 [18:48:17]OFD Sender: To server: pG, [18:48:17]CommunicateWithHost lk.salyk.kg:30040 [18:48:17]ConnectInit lk.salyk.kg [18:48:17]written 0, free lines is 4095 [18:48:17]Connected sock=10 [18:48: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 34 36 0F 01 00 00 F1 21 07 01 CE D1 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 50 01 00 00 F4 03 04 00 70 F3 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 12 01 00 35 04 06 00 93 D8 E2 DC CA 74 6A 75 DE 5E 62 15 C4 FC [18:48: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 34 36 4F 00 00 00 31 3A 47 00 84 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 12 01 00 F4 03 04 00 10 9D 17 67 B6 04 01 00 00 54 10 7A C1 BD 21 2D 76 [18:48:17]CommunicateWithHost err = 0 [18:48:17]CheckOFDResponse [18:48:17]1017 (14) - 77093643461234 [18:48:17]1041 (16) - 0000000000963346 [18:48:17]1040 (4) - 70388 [18:48:17]1012 (4) - 22.10.2024 12:39 [18:48:17]1206 (1) - 0 [18:48:17]OFD Sender: Remove packet 70388 [18:48:17]ProducePacketName [18:48:17]name=ofd_packets/00070388 [18:48:17]NVStorageDeleteData [18:48:18]Write to MH i2c: 01 00 00 C9 19 E2 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 07 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 FA 0C EF [18:48:18]RasterBufferAndPrint [18:48:18]line [18:48:18]line [18:48:18]line [18:48:18]line [18:48:18]line [18:48:18]written 0, free lines is 3328 [18:48:18]MH_Cut [18:48:18]Write to MH i2c: D1 01 00 D0 19 01 BB [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: D1 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: D1 01 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: D1 01 00 D0 19 00 BA [18:48:18]Write to MH i2c: 01 00 00 D1 19 EA [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]OFD Sender: No OFD packet to send [18:48:18]*** Cut start [18:48:18]*** Partial cut [18:48:18]*** CUTSNS_PIN = 1 [18:48:18]*** CUTSNS_PIN = 0 [18:48:19]*** Brake cut motor [18:48:19]Read from MH i2c: 01 [18:48:19]MH_I2C_Read... [18:48:19]*** Stop cut motor [18:48:19]*** Cut end [18:48:19]Read from MH i2c: 01 07 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [18:48:19]process_action close_receipt done [18:48:19]requested_data is exist [18:48:19]produce_requested_data [18:48:19]requested_item fm.sn is exist - process it [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 11 00 00 [18:48:19]Write to MH i2c: E2 08 00 D2 19 80 11 00 00 00 00 00 00 65 [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 17 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 17 00 D2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [18:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:48:19]wFMCommunicate OK [18:48:19]requested_item fd.num is exist - process it [18:48:19]SAM_PROTO_GetFieldsCounters [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 13 00 00 [18:48:19]Write to MH i2c: E2 08 00 D3 19 80 13 00 00 00 00 00 00 68 [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 62 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 62 00 D3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 12 01 00 0E 04 04 00 C3 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 40 [18:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 12 01 00 0E 04 04 00 C3 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 [18:48:19]wFMCommunicate OK [18:48:19]SAM_PROTO_GetFieldsCounters done [18:48:19]requested_item shift.num is exist - process it [18:48:19]requested_item shift.opened is exist - process it [18:48:19]req_shift_opened [18:48:19]FM_GetShiftState [18:48:19]SAM_PROTO_GetShiftState [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 13 01 00 [18:48:19]Write to MH i2c: E2 08 00 D4 19 80 13 01 00 00 00 00 00 6A [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 D4 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 58 [18:48:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:48:19]wFMCommunicate OK [18:48:19]SAM_PROTO_GetShiftState done [18:48:19]FM_GetShiftState done [18:48:19]req_shift_opened done [18:48:19]requested_item shift.open_date is exist - process it [18:48:19]req_shift_open_date [18:48:19]req_shift_open_date done [18:48:19]produce_requested_data done [18:48:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70388,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:48:19]process_action_free close_receipt [18:48:19]json_value_free [18:48:19]json_value_free done [18:48:19]process_json_proto returns [18:48:19]Send response to host [18:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70388,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:48:19]free response buf [18:48:19]execute_script done [18:48:19]execute_script returns [18:48:19]free content buf [18:48:19]Sock 7.Close socket [18:48:19]Sock 7.Thread stoped [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]accept exits with 9 [18:51:53]New connection [18:51:53]New thread 3066699108 created [18:51:53]Thread 3066555748 joined [18:51:53]Waiting for new connection... [18:51:53] Sock 9.Parse request [18:51:53]Sock 9.Check first char [18:51:53]Sock 9.First char is OK [18:51:53]request: POST /json_proto HTTP/1.0 [18:51:53]Method: POST [18:51:53]URL: /json_proto [18:51:53]Method is POST - this is cgi request [18:51:53]url: /json_proto [18:51:53]query_string will be loaded in cgi processing [18:51:53]execute_cgi json_proto POST (null) [18:51:53]execute_cgi path=json_proto method=POST [18:51:53]POST find Content-Length [18:51:53]Host: 172.17.50.3:8080 [18:51:53]Content-Length: 978 [18:51:53]Content-Type: application/json [18:51:53] [18:51:53]POST finish read [18:51:53]Found Content-Length = 978 [18:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:51:53]execute_script... [18:51: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)2886158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:51:53]POST & json_proto [18:51:53]process_json_proto [18:51:53]json parsed OK: [18:51:53]protocol is kg_v1.0 [18:51:53]action value=close_receipt [18:51:53]process_action close_receipt [18:51:53]cmd_close_receipt [18:51:53]MH_GetDate [18:51:53]Write to MH i2c: F0 00 00 D5 19 DD [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 09 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: F0 09 00 D5 19 00 4A F4 17 67 6B 98 1E 66 29 [18:51:53]GetLastDocTimeStamp 1729622896 [18:51:53]current date 1729623114 [18:51:53]FM_GetShiftState [18:51:53]SAM_PROTO_GetShiftState [18:51:53]wFMCommunicate request_size=4 [18:51:53]MH_SAM_APDU [18:51:53]CAPDU: 80 13 01 00 [18:51:53]Write to MH i2c: E2 08 00 D6 19 80 13 01 00 00 00 00 00 6C [18:51:53]Write i2c OK [18:51:53]MH_I2C_Read... [18:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:53]Read from MH i2c: E2 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 0E 00 [18:51:53]MH_I2C_Read... [18:51:53]Read from MH i2c: E2 0E 00 D6 19 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5A [18:51:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:51:53]wFMCommunicate OK [18:51:53]SAM_PROTO_GetShiftState done [18:51:53]FM_GetShiftState done [18:51:53]opened in 1729555832 [18:51:53]opened+sec_in_day 1729642232 [18:51:53]quantity*price = 500004 [18:51:53]sum+1 = 500006 [18:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 337 22.10.2024 18:51 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70389 ФПД: 166745033960062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70389&fm=166745033960062&tin=02508201610067®Number=0000000000156251&sum=500000 [18:51:54]StoreToDocumentArchive [18:51:54]shift 195 fd 70389 [18:51:54]save to /storage/0195/doc_00070389 [18:51:54]save last doc name /storage/0195/doc_00070389 to /storage/kkm_last_doc_name [18:51:54]save OK [18:51:54]Clear old archive folders... [18:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:51:54]tlvbuf is B6E6A5E0 [18:51:54]SAM_PROTO_ClearQueue [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 09 00 00 [18:51:54]Write to MH i2c: E2 08 00 E3 19 80 09 00 00 00 00 00 00 6E [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_ClearQueue done [18:51:54]KKMCreateOFDPacket [18:51:54]OFDProtocolAddRootSTLVToBuf [18:51:54]FM_MakeSignedData [18:51:54]FM_MakeSignedData [18:51:54]SAM_PROTO_SignData [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 0D 01 02 [18:51:54]Write to MH i2c: E2 08 00 E4 19 80 0D 01 02 00 00 00 00 76 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [18:51:54]RAPDU: 90 00 [18:51:54]wFMCommunicate OK [18:51:54]wFMCommunicate request_size=255 [18:51:54]MH_SAM_APDU [18:51: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 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 51 01 00 00 F4 03 04 00 4A F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 12 01 00 35 04 06 00 97 A7 5A 84 [18:51:54]Write to MH i2c: E2 02 01 E5 19 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 51 01 00 00 F4 03 04 00 4A F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 12 01 00 35 04 06 00 97 A7 5A 84 00 00 ED [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 03 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [18:51:55]RAPDU: 90 00 [18:51:55]wFMCommunicate OK [18:51:55]wFMCommunicate request_size=7 [18:51:55]MH_SAM_APDU [18:51:55]CAPDU: 80 0D 02 02 02 6A 7E [18:51:55]Write to MH i2c: E2 0A 00 E6 19 80 0D 02 02 02 00 6A 7E 00 00 65 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 03 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [18:51:55]RAPDU: 90 00 [18:51:55]wFMCommunicate OK [18:51:55]wFMCommunicate request_size=4 [18:51:55]MH_SAM_APDU [18:51:55]CAPDU: 80 0D 03 02 [18:51:55]Write to MH i2c: E2 08 00 E7 19 80 0D 03 02 00 00 00 00 7B [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0B 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0B 00 E7 19 00 83 6A 98 A8 6A 04 0E 8B 90 00 B0 [18:51:55]RAPDU: 83 6A 98 A8 6A 04 0E 8B 90 00 [18:51:55]wFMCommunicate OK [18:51:55]SAM_PROTO_SignData done [18:51:55]FM_MakeSignedData done [18:51:55]CreateOFDProtocolMessage [18:51:55]wFMCommunicate request_size=4 [18:51:55]MH_SAM_APDU [18:51:55]CAPDU: 80 11 00 00 [18:51:55]Write to MH i2c: E2 08 00 E8 19 80 11 00 00 00 00 00 00 7B [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 17 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 17 00 E8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [18:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:51:55]wFMCommunicate OK [18:51:55]CreateOFDProtocolMessage done [18:51:55]OFDSenderStorePacket 70389 [18:51:55]StoreOFDPacket docnum=70389 [18:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8D 5B 04 01 36 31 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 51 01 00 00 F4 03 04 00 4A F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 12 01 00 35 04 06 00 97 A7 5A 84 6A 7E 83 6A 98 A8 6A 04 0E 8B [18:51:55]CheckFolder [18:51:55]dirname=/storage/ofd_packets [18:51:55]CheckFolder done [18:51:55]ProducePacketName [18:51:55]name=ofd_packets/00070389 [18:51:55]NVStorageSaveData ofd_packets/00070389 [18:51:55]File name is /storage/ofd_packets/00070389 [18:51:55]Write 298 bytes [18:51:55]NVStorageSaveData done [18:51:55]OFDSenderStorePacket done [18:51:55]KKMCreateOFDPacket done [18:51:55]NVStorageSaveData kkm_last_timestamp [18:51:55]File name is /storage/kkm_last_timestamp [18:51:55]Write 4 bytes [18:51:55]NVStorageSaveData done [18:51:55]ExternCall_PrintAddStr [18:51:55]wPrintStart [18:51:55]Write to MH i2c: 01 00 00 E9 19 02 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 07 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: 01 07 00 E9 19 00 00 00 00 00 FF 0F 17 [18:51:55]RasterBufferAndPrint [18:51:55]line Счет N : (1)2886158 [18:51:55]line ИНН: 02508201610067 [18:51:55]line Контрольно-Кассовый Чек [18:51:55]line ПРОДАЖА [18:51:55]line ТРК (МРК, ГНК) : 61 [18:51:55]line Товар: 2710194210 [18:51:55]line ДТ-К-5 [18:51:55]line 66.490 * 75.20 [18:51:55]line = 5000.05 [18:51:55]line НДС 12% НСП 1% [18:51:55]line > о реализуемом товаре [18:51:55]line ОКРУГЛЕНИЕ: -0.05 [18:51:55]line ИТОГО: 5000.00 [18:51:55]line Внесено: 5000.00 [18:51:55]line СДАЧА: 0.00 [18:51:55]line НСП 1% : 44.25 [18:51:55]line НДС 12% : 530.98 [18:51:55]line Наличными: 5000.00 [18:51:55]line Безнал.: 0.00 [18:51:55]line Место: АЗС № 85 "Партнер Нефть" [18:51:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:51:55]line СНО: Общий режим [18:51:55]line Чек 337 22.10.2024 18:51 [18:51:55]line Смена: 195 ФФД: 1.0 [18:51:55]line ЗНМ: 0300000167 [18:51:55]line РНМ: 0000000000156251 [18:51:55]line Версия ККМ: v1.0 [18:51:55]line [18:51:55]line Дисконтная программа [18:51:55]line ДТ [18:51:55]line номер 85 [18:51:55]line сэкономлено 66.49 сом [18:51:55]line ФМ: 0000000000963346 [18:51:55]line ФД: 70389 [18:51:55]line ФПД: 166745033960062 [18:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70389&fm=166745033960062&tin=02508201610067®Number=0000000000156251&sum=500000 [18:51:55]OFD Sender: Processing packet 70389 [packets to send 18, broken 17] [18:51:55]ProducePacketName [18:51:55]name=ofd_packets/00070389 [18:51:55]OFD Sender: To server: pG, [18:51:55]CommunicateWithHost lk.salyk.kg:30040 [18:51:55]ConnectInit lk.salyk.kg [18:51:55]written 0, free lines is 4095 [18:51:55]Connected sock=10 [18:51: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 34 36 0C 01 00 00 8D 5B 04 01 36 31 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 51 01 00 00 F4 03 04 00 4A F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 12 01 00 35 04 06 00 97 A7 5A 84 6A 7E 83 6A 98 A8 6A 04 0E 8B [18:51: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 34 36 4F 00 00 00 15 71 47 00 D4 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 12 01 00 F4 03 04 00 EA 9D 17 67 B6 04 01 00 00 E4 01 AF 41 14 D7 88 BF [18:51:55]CommunicateWithHost err = 0 [18:51:55]CheckOFDResponse [18:51:55]1017 (14) - 77093643461234 [18:51:55]1041 (16) - 0000000000963346 [18:51:55]1040 (4) - 70389 [18:51:55]1012 (4) - 22.10.2024 12:43 [18:51:55]1206 (1) - 0 [18:51:55]OFD Sender: Remove packet 70389 [18:51:55]ProducePacketName [18:51:55]name=ofd_packets/00070389 [18:51:55]NVStorageDeleteData [18:51:56]Write to MH i2c: 01 00 00 19 1A 33 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 07 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 07 00 19 1A 00 00 00 00 00 A8 0C EE [18:51:56]RasterBufferAndPrint [18:51:56]line [18:51:56]line [18:51:56]line [18:51:56]line [18:51:56]line [18:51:56]written 0, free lines is 3249 [18:51:56]MH_Cut [18:51:56]Write to MH i2c: D1 01 00 20 1A 01 0C [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: D1 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: D1 01 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: D1 01 00 20 1A 00 0B [18:51:56]Write to MH i2c: 01 00 00 21 1A 3B [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]OFD Sender: No OFD packet to send [18:51:56]*** Cut start [18:51:56]*** Partial cut [18:51:56]*** CUTSNS_PIN = 1 [18:51:56]*** CUTSNS_PIN = 0 [18:51:57]*** Brake cut motor [18:51:57]Read from MH i2c: 01 [18:51:57]MH_I2C_Read... [18:51:57]*** Stop cut motor [18:51:57]*** Cut end [18:51:57]Read from MH i2c: 01 07 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 21 1A 00 00 00 00 00 FF 0F 50 [18:51:57]process_action close_receipt done [18:51:57]requested_data is exist [18:51:57]produce_requested_data [18:51:57]requested_item fm.sn is exist - process it [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 11 00 00 [18:51:57]Write to MH i2c: E2 08 00 22 1A 80 11 00 00 00 00 00 00 B6 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 22 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [18:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:51:57]wFMCommunicate OK [18:51:57]requested_item fd.num is exist - process it [18:51:57]SAM_PROTO_GetFieldsCounters [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 13 00 00 [18:51:57]Write to MH i2c: E2 08 00 23 1A 80 13 00 00 00 00 00 00 B9 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 62 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 62 00 23 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 12 01 00 0E 04 04 00 C3 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 95 [18:51: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 12 01 00 0E 04 04 00 C3 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 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_GetFieldsCounters done [18:51:57]requested_item shift.num is exist - process it [18:51:57]requested_item shift.opened is exist - process it [18:51:57]req_shift_opened [18:51:57]FM_GetShiftState [18:51:57]SAM_PROTO_GetShiftState [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 13 01 00 [18:51:57]Write to MH i2c: E2 08 00 24 1A 80 13 01 00 00 00 00 00 BB [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0E 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0E 00 24 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [18:51:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_GetShiftState done [18:51:57]FM_GetShiftState done [18:51:57]req_shift_opened done [18:51:57]requested_item shift.open_date is exist - process it [18:51:57]req_shift_open_date [18:51:57]req_shift_open_date done [18:51:57]produce_requested_data done [18:51:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70389,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:51:57]process_action_free close_receipt [18:51:57]json_value_free [18:51:57]json_value_free done [18:51:57]process_json_proto returns [18:51:57]Send response to host [18:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70389,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:51:57]free response buf [18:51:57]execute_script done [18:51:57]execute_script returns [18:51:57]free content buf [18:51:57]Sock 9.Close socket [18:51:57]Sock 9.Thread stoped [18:52:01]accept exits with 7 [18:52:01]New connection [18:52:01]New thread 3066555748 created [18:52:01]Thread 3066699108 joined [18:52:01]Waiting for new connection... [18:52:01] Sock 7.Parse request [18:52:01]Sock 7.Check first char [18:52:01]Sock 7.First char is OK [18:52:01]request: POST /json_proto HTTP/1.0 [18:52:01]Method: POST [18:52:01]URL: /json_proto [18:52:01]Method is POST - this is cgi request [18:52:01]url: /json_proto [18:52:01]query_string will be loaded in cgi processing [18:52:01]execute_cgi json_proto POST (null) [18:52:01]execute_cgi path=json_proto method=POST [18:52:01]POST find Content-Length [18:52:01]Host: 172.17.50.3:8080 [18:52:01]Content-Length: 1034 [18:52:01]Content-Type: application/json [18:52:01] [18:52:01]POST finish read [18:52:01]Found Content-Length = 1034 [18:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70389, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:52:01]execute_script... [18:52:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70389, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:52:01]POST & json_proto [18:52:01]process_json_proto [18:52:01]json parsed OK: [18:52:01]protocol is kg_v1.0 [18:52:01]action value=close_receipt [18:52:01]process_action close_receipt [18:52:01]cmd_close_receipt [18:52:01]MH_GetDate [18:52:01]Write to MH i2c: F0 00 00 25 1A 2E [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 09 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 09 00 25 1A 00 51 F4 17 67 6B 98 1E 66 81 [18:52:01]GetLastDocTimeStamp 1729623114 [18:52:01]current date 1729623121 [18:52:01]FM_GetShiftState [18:52:01]SAM_PROTO_GetShiftState [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 01 00 [18:52:01]Write to MH i2c: E2 08 00 26 1A 80 13 01 00 00 00 00 00 BD [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 26 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AB [18:52:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetShiftState done [18:52:01]FM_GetShiftState done [18:52:01]opened in 1729555832 [18:52:01]opened+sec_in_day 1729642232 [18:52:01]quantity*price = 500004 [18:52:01]sum+1 = 500006 [18:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 338 22.10.2024 18:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70389 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70390 ФПД: 22428995959470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185201&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70390&fm=22428995959470&tin=02508201610067®Number=0000000000156251&sum=500000 [18:52:02]StoreToDocumentArchive [18:52:02]shift 195 fd 70390 [18:52:02]save to /storage/0195/doc_00070390 [18:52:02]save last doc name /storage/0195/doc_00070390 to /storage/kkm_last_doc_name [18:52:02]save OK [18:52:02]Clear old archive folders... [18:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:52:02]tlvbuf is 00CB0A40 [18:52:02]SAM_PROTO_ClearQueue [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 09 00 00 [18:52:02]Write to MH i2c: E2 08 00 35 1A 80 09 00 00 00 00 00 00 C1 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [18:52:02]RAPDU: 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_ClearQueue done [18:52:02]KKMCreateOFDPacket [18:52:02]OFDProtocolAddRootSTLVToBuf [18:52:02]FM_MakeSignedData [18:52:02]FM_MakeSignedData [18:52:02]SAM_PROTO_SignData [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 0D 01 02 [18:52:02]Write to MH i2c: E2 08 00 36 1A 80 0D 01 02 00 00 00 00 C9 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [18:52:02]RAPDU: 90 00 [18:52:02]wFMCommunicate OK [18:52:02]wFMCommunicate request_size=255 [18:52:02]MH_SAM_APDU [18:52:02]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 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 52 01 00 00 F4 03 04 00 51 F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F5 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [18:52:02]Write to MH i2c: E2 02 01 37 1A 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 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 52 01 00 00 F4 03 04 00 51 F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F5 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 1E [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [18:52:02]RAPDU: 90 00 [18:52:02]wFMCommunicate OK [18:52:02]wFMCommunicate request_size=35 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 12 01 00 35 04 06 00 14 66 28 56 3A AE [18:52:02]Write to MH i2c: E2 26 00 38 1A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 12 01 00 35 04 06 00 14 66 28 56 3A AE 00 00 A7 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [18:52:02]RAPDU: 90 00 [18:52:02]wFMCommunicate OK [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 0D 03 02 [18:52:02]Write to MH i2c: E2 08 00 39 1A 80 0D 03 02 00 00 00 00 CE [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 39 1A 00 F9 4A D9 2D 43 1F 80 21 90 00 1B [18:52:03]RAPDU: F9 4A D9 2D 43 1F 80 21 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_SignData done [18:52:03]FM_MakeSignedData done [18:52:03]CreateOFDProtocolMessage [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 11 00 00 [18:52:03]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [18:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:03]wFMCommunicate OK [18:52:03]CreateOFDProtocolMessage done [18:52:03]OFDSenderStorePacket 70390 [18:52:03]StoreOFDPacket docnum=70390 [18:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 6A A1 20 01 1A 3B 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 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 52 01 00 00 F4 03 04 00 51 F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F5 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 12 01 00 35 04 06 00 14 66 28 56 3A AE F9 4A D9 2D 43 1F 80 21 [18:52:03]CheckFolder [18:52:03]dirname=/storage/ofd_packets [18:52:03]CheckFolder done [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00070390 [18:52:03]NVStorageSaveData ofd_packets/00070390 [18:52:03]File name is /storage/ofd_packets/00070390 [18:52:03]Write 326 bytes [18:52:03]NVStorageSaveData done [18:52:03]OFDSenderStorePacket done [18:52:03]KKMCreateOFDPacket done [18:52:03]NVStorageSaveData kkm_last_timestamp [18:52:03]File name is /storage/kkm_last_timestamp [18:52:03]Write 4 bytes [18:52:03]NVStorageSaveData done [18:52:03]ExternCall_PrintAddStr [18:52:03]wPrintStart [18:52:03]Write to MH i2c: 01 00 00 3B 1A 55 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [18:52:03]RasterBufferAndPrint [18:52:03]line Счет N : (1)2886158 [18:52:03]line ИНН: 02508201610067 [18:52:03]line Контрольно-Кассовый Чек [18:52:03]line ВОЗВРАТ ПРОДАЖИ [18:52:03]line ТРК (МРК, ГНК) : 61 [18:52:03]line Товар: 2710194210 [18:52:03]line ДТ-К-5 [18:52:03]line 66.490 * 75.20 [18:52:03]line = 5000.05 [18:52:03]line НДС 12% НСП 1% [18:52:03]line > о реализуемом товаре [18:52:03]line ОКРУГЛЕНИЕ: -0.05 [18:52:03]line ИТОГО: 5000.00 [18:52:03]line НСП 1% : 44.25 [18:52:03]line НДС 12% : 530.98 [18:52:03]line Наличными: 5000.00 [18:52:03]line Безнал.: 0.00 [18:52:03]line Место: АЗС № 85 "Партнер Нефть" [18:52:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:52:03]line СНО: Общий режим [18:52:03]line Чек 338 22.10.2024 18:52 [18:52:03]line Смена: 195 ФФД: 1.0 [18:52:03]line ЗНМ: 0300000167 [18:52:03]line РНМ: 0000000000156251 [18:52:03]line Версия ККМ: v1.0 [18:52:03]line ФД осн.: 70389 [18:52:03]line ФМ осн.: 0000000000963346 [18:52:03]line [18:52:03]line Дисконтная программа [18:52:03]line ДТ [18:52:03]line номер 85 [18:52:03]line сэкономлено 66.49 сом [18:52:03]line ФМ: 0000000000963346 [18:52:03]line ФД: 70390 [18:52:03]line ФПД: 22428995959470 [18:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185201&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70390&fm=22428995959470&tin=02508201610067®Number=0000000000156251&sum=500000 [18:52:03]written 0, free lines is 4095 [18:52:03]OFD Sender: Processing packet 70390 [packets to send 18, broken 17] [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00070390 [18:52:03]OFD Sender: To server: pG, [18:52:03]CommunicateWithHost lk.salyk.kg:30040 [18:52:03]ConnectInit lk.salyk.kg [18:52:03]Connected sock=10 [18: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 34 36 28 01 00 00 6A A1 20 01 1A 3B 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 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 52 01 00 00 F4 03 04 00 51 F4 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F5 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 12 01 00 35 04 06 00 14 66 28 56 3A AE F9 4A D9 2D 43 1F 80 21 [18: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 34 36 4F 00 00 00 86 B4 47 00 21 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 34 36 10 04 04 00 F6 12 01 00 F4 03 04 00 F2 9D 17 67 B6 04 01 00 00 AA B4 2C 33 01 74 0C 81 [18:52:03]CommunicateWithHost err = 0 [18:52:03]CheckOFDResponse [18:52:03]1017 (14) - 77093643461234 [18:52:03]1041 (16) - 0000000000963346 [18:52:03]1040 (4) - 70390 [18:52:03]1012 (4) - 22.10.2024 12:43 [18:52:03]1206 (1) - 0 [18:52:03]OFD Sender: Remove packet 70390 [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00070390 [18:52:03]NVStorageDeleteData [18:52:03]Write to MH i2c: 01 00 00 6B 1A 85 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 B3 0C 4B [18:52:03]RasterBufferAndPrint [18:52:03]line [18:52:03]line [18:52:03]line [18:52:03]line [18:52:03]line [18:52:03]written 0, free lines is 3268 [18:52:03]MH_Cut [18:52:03]Write to MH i2c: D1 01 00 72 1A 01 5E [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: D1 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: D1 01 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: D1 01 00 72 1A 00 5D [18:52:03]Write to MH i2c: 01 00 00 73 1A 8D [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:04]OFD Sender: No OFD packet to send [18:52:04]*** Cut start [18:52:04]*** Partial cut [18:52:04]*** CUTSNS_PIN = 1 [18:52:04]*** CUTSNS_PIN = 0 [18:52:04]*** Brake cut motor [18:52:04]Read from MH i2c: 01 [18:52:04]MH_I2C_Read... [18:52:04]*** Stop cut motor [18:52:04]*** Cut end [18:52:04]Read from MH i2c: 01 07 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 73 1A 00 00 00 00 00 FF 0F A2 [18:52:05]process_action close_receipt done [18:52:05]requested_data is exist [18:52:05]produce_requested_data [18:52:05]requested_item fm.sn is exist - process it [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 11 00 00 [18:52:05]Write to MH i2c: E2 08 00 74 1A 80 11 00 00 00 00 00 00 08 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 74 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [18:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:05]wFMCommunicate OK [18:52:05]requested_item fd.num is exist - process it [18:52:05]SAM_PROTO_GetFieldsCounters [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 13 00 00 [18:52:05]Write to MH i2c: E2 08 00 75 1A 80 13 00 00 00 00 00 00 0B [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 62 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 62 00 75 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 12 01 00 0E 04 04 00 C3 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 EB [18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 12 01 00 0E 04 04 00 C3 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 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_GetFieldsCounters done [18:52:05]requested_item shift.num is exist - process it [18:52:05]requested_item shift.opened is exist - process it [18:52:05]req_shift_opened [18:52:05]FM_GetShiftState [18:52:05]SAM_PROTO_GetShiftState [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 13 01 00 [18:52:05]Write to MH i2c: E2 08 00 76 1A 80 13 01 00 00 00 00 00 0D [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 76 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [18:52:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_GetShiftState done [18:52:05]FM_GetShiftState done [18:52:05]req_shift_opened done [18:52:05]requested_item shift.open_date is exist - process it [18:52:05]req_shift_open_date [18:52:05]req_shift_open_date done [18:52:05]produce_requested_data done [18:52:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70390,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:52:05]process_action_free close_receipt [18:52:05]json_value_free [18:52:05]json_value_free done [18:52:05]process_json_proto returns [18:52:05]Send response to host [18:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70390,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:52:05]free response buf [18:52:05]execute_script done [18:52:05]execute_script returns [18:52:05]free content buf [18:52:05]Sock 7.Close socket [18:52:05]Sock 7.Thread stoped [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:41]accept exits with 9 [18:57:41]New connection [18:57:41]New thread 3066699108 created [18:57:41]Thread 3066555748 joined [18:57:41]Waiting for new connection... [18:57:41] Sock 9.Parse request [18:57:41]Sock 9.Check first char [18:57:41]Sock 9.First char is OK [18:57:41]request: POST /json_proto HTTP/1.0 [18:57:41]Method: POST [18:57:41]URL: /json_proto [18:57:41]Method is POST - this is cgi request [18:57:41]url: /json_proto [18:57:41]query_string will be loaded in cgi processing [18:57:41]execute_cgi json_proto POST (null) [18:57:41]execute_cgi path=json_proto method=POST [18:57:41]POST find Content-Length [18:57:41]Host: 172.17.50.3:8080 [18:57:41]Content-Length: 686 [18:57:41]Content-Type: application/json [18:57:41] [18:57:41]POST finish read [18:57:41]Found Content-Length = 686 [18:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.890, "sum" : 1901.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1901.00, "payments": [ { "type": 0, "sum" : 1901.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:41]execute_script... [18:57: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)2886159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 48.890, "sum" : 1901.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1901.00, "payments": [ { "type": 0, "sum" : 1901.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:41]POST & json_proto [18:57:41]process_json_proto [18:57:41]json parsed OK: [18:57:41]protocol is kg_v1.0 [18:57:41]action value=close_receipt [18:57:41]process_action close_receipt [18:57:41]cmd_close_receipt [18:57:41]MH_GetDate [18:57:41]Write to MH i2c: F0 00 00 77 1A 80 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: F0 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: F0 09 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: F0 09 00 77 1A 00 A6 F5 17 67 6B 98 1E 66 29 [18:57:41]GetLastDocTimeStamp 1729623121 [18:57:41]current date 1729623462 [18:57:41]FM_GetShiftState [18:57:41]SAM_PROTO_GetShiftState [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 13 01 00 [18:57:41]Write to MH i2c: E2 08 00 78 1A 80 13 01 00 00 00 00 00 0F [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0E 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0E 00 78 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [18:57:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:57:41]wFMCommunicate OK [18:57:41]SAM_PROTO_GetShiftState done [18:57:41]FM_GetShiftState done [18:57:41]opened in 1729555832 [18:57:41]opened+sec_in_day 1729642232 [18:57:41]quantity*price = 190182 [18:57:41]sum+1 = 190183 [18:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 1901.00 Внесено: 4000.00 СДАЧА: 2099.00 НСП 1% : 16.83 НДС 12% : 201.96 Наличными: 1901.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 339 22.10.2024 18:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70391 ФПД: 113844038267141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70391&fm=113844038267141&tin=02508201610067®Number=0000000000156251&sum=190100 [18:57:42]StoreToDocumentArchive [18:57:42]shift 195 fd 70391 [18:57:42]save to /storage/0195/doc_00070391 [18:57:42]save last doc name /storage/0195/doc_00070391 to /storage/kkm_last_doc_name [18:57:42]save OK [18:57:42]Clear old archive folders... [18:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:57:42]tlvbuf is 00AE36E0 [18:57:42]SAM_PROTO_ClearQueue [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 09 00 00 [18:57:42]Write to MH i2c: E2 08 00 85 1A 80 09 00 00 00 00 00 00 11 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 85 1A 00 90 00 13 [18:57:42]RAPDU: 90 00 [18:57:42]wFMCommunicate OK [18:57:42]SAM_PROTO_ClearQueue done [18:57:42]KKMCreateOFDPacket [18:57:42]OFDProtocolAddRootSTLVToBuf [18:57:42]FM_MakeSignedData [18:57:42]FM_MakeSignedData [18:57:42]SAM_PROTO_SignData [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 0D 01 02 [18:57:42]Write to MH i2c: E2 08 00 86 1A 80 0D 01 02 00 00 00 00 19 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 86 1A 00 90 00 14 [18:57:42]RAPDU: 90 00 [18:57:42]wFMCommunicate OK [18:57:42]wFMCommunicate request_size=255 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 4E 00 00 00 00 07 04 06 00 94 E6 02 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 A6 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 12 01 00 35 04 06 00 67 8A [18:57:42]Write to MH i2c: E2 02 01 87 1A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 4E 00 00 00 00 07 04 06 00 94 E6 02 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 A6 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 12 01 00 35 04 06 00 67 8A 00 00 80 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [18:57:42]RAPDU: 90 00 [18:57:42]wFMCommunicate OK [18:57:42]wFMCommunicate request_size=9 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 0D 02 02 04 61 75 F1 05 [18:57:42]Write to MH i2c: E2 0C 00 88 1A 80 0D 02 02 04 00 61 75 F1 05 00 00 F0 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [18:57:42]RAPDU: 90 00 [18:57:42]wFMCommunicate OK [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 0D 03 02 [18:57:42]Write to MH i2c: E2 08 00 89 1A 80 0D 03 02 00 00 00 00 1E [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 0B 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 0B 00 89 1A 00 1C E3 E4 0F D1 BF 32 F6 90 00 C9 [18:57:42]RAPDU: 1C E3 E4 0F D1 BF 32 F6 90 00 [18:57:42]wFMCommunicate OK [18:57:42]SAM_PROTO_SignData done [18:57:42]FM_MakeSignedData done [18:57:42]CreateOFDProtocolMessage [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 11 00 00 [18:57:42]Write to MH i2c: E2 08 00 8A 1A 80 11 00 00 00 00 00 00 1E [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 17 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 17 00 8A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [18:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:42]wFMCommunicate OK [18:57:42]CreateOFDProtocolMessage done [18:57:42]OFDSenderStorePacket 70391 [18:57:42]StoreOFDPacket docnum=70391 [18:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E3 DA 06 01 2D A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 4E 00 00 00 00 07 04 06 00 94 E6 02 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 A6 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 12 01 00 35 04 06 00 67 8A 61 75 F1 05 1C E3 E4 0F D1 BF 32 F6 [18:57:42]CheckFolder [18:57:42]dirname=/storage/ofd_packets [18:57:42]CheckFolder done [18:57:42]ProducePacketName [18:57:42]name=ofd_packets/00070391 [18:57:42]NVStorageSaveData ofd_packets/00070391 [18:57:42]File name is /storage/ofd_packets/00070391 [18:57:42]Write 300 bytes [18:57:42]NVStorageSaveData done [18:57:42]OFDSenderStorePacket done [18:57:42]KKMCreateOFDPacket done [18:57:42]NVStorageSaveData kkm_last_timestamp [18:57:42]File name is /storage/kkm_last_timestamp [18:57:42]Write 4 bytes [18:57:42]NVStorageSaveData done [18:57:42]ExternCall_PrintAddStr [18:57:42]wPrintStart [18:57:42]Write to MH i2c: 01 00 00 8B 1A A5 [18:57:42]OFD Sender: Processing packet 70391 [packets to send 18, broken 17] [18:57:42]ProducePacketName [18:57:42]name=ofd_packets/00070391 [18:57:42]OFD Sender: To server: pG, [18:57:42]CommunicateWithHost lk.salyk.kg:30040 [18:57:42]ConnectInit lk.salyk.kg [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 07 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 07 00 8B 1A 00 00 00 00 00 FF 0F BA [18:57:42]RasterBufferAndPrint [18:57:42]line Счет N : (1)2886159 [18:57:42]line ИНН: 02508201610067 [18:57:42]line Контрольно-Кассовый Чек [18:57:42]line ПРОДАЖА [18:57:42]line ТРК (МРК, ГНК) : 71 [18:57:42]line Товар: 2711129700 [18:57:42]line ГАЗ-К-3 [18:57:42]line 48.890 * 38.90 [18:57:42]line = 1901.82 [18:57:42]line НДС 12% НСП 1% [18:57:42]line > о реализуемом товаре [18:57:42]line ОКРУГЛЕНИЕ: -0.82 [18:57:42]line ИТОГО: 1901.00 [18:57:42]line Внесено: 4000.00 [18:57:42]line СДАЧА: 2099.00 [18:57:42]line НСП 1% : 16.83 [18:57:42]line НДС 12% : 201.96 [18:57:42]line Наличными: 1901.00 [18:57:42]line Безнал.: 0.00 [18:57:42]line Место: АЗС № 85 "Партнер Нефть" [18:57:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:57:43]line СНО: Общий режим [18:57:43]line Чек 339 22.10.2024 18:57 [18:57:43]line Смена: 195 ФФД: 1.0 [18:57:43]line ЗНМ: 0300000167 [18:57:43]line РНМ: 0000000000156251 [18:57:43]line Версия ККМ: v1.0 [18:57:43]line ФМ: 0000000000963346 [18:57:43]line ФД: 70391 [18:57:43]line ФПД: 113844038267141 [18:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70391&fm=113844038267141&tin=02508201610067®Number=0000000000156251&sum=190100 [18:57:43]Connected sock=10 [18:57: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 34 36 0E 01 00 00 E3 DA 06 01 2D A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA BE 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 4E 00 00 00 00 07 04 06 00 94 E6 02 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 A6 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 12 01 00 35 04 06 00 67 8A 61 75 F1 05 1C E3 E4 0F D1 BF 32 F6 [18:57:43]written 0, free lines is 4095 [18:57: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 34 36 4F 00 00 00 DA 14 47 00 3B 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 34 36 10 04 04 00 F7 12 01 00 F4 03 04 00 45 9F 17 67 B6 04 01 00 00 27 F3 D7 A4 69 2B 52 91 [18:57:43]CommunicateWithHost err = 0 [18:57:43]CheckOFDResponse [18:57:43]1017 (14) - 77093643461234 [18:57:43]1041 (16) - 0000000000963346 [18:57:43]1040 (4) - 70391 [18:57:43]1012 (4) - 22.10.2024 12:49 [18:57:43]1206 (1) - 0 [18:57:43]OFD Sender: Remove packet 70391 [18:57:43]ProducePacketName [18:57:43]name=ofd_packets/00070391 [18:57:43]NVStorageDeleteData [18:57:43]Write to MH i2c: 01 00 00 B6 1A D0 [18:57:43]Write i2c OK [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: 01 [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: 01 07 00 [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: 01 07 00 B6 1A 00 00 00 00 00 FE 0C E1 [18:57:43]RasterBufferAndPrint [18:57:43]line [18:57:43]line [18:57:43]line [18:57:43]line [18:57:43]line [18:57:43]written 0, free lines is 3332 [18:57:43]MH_Cut [18:57:43]Write to MH i2c: D1 01 00 BD 1A 01 A9 [18:57:43]Write i2c OK [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: D1 [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: D1 01 00 [18:57:43]MH_I2C_Read... [18:57:43]Read from MH i2c: D1 01 00 BD 1A 00 A8 [18:57:43]Write to MH i2c: 01 00 00 BE 1A D8 [18:57:43]Write i2c OK [18:57:43]MH_I2C_Read... [18:57:43]OFD Sender: No OFD packet to send [18:57:44]*** Cut start [18:57:44]*** Partial cut [18:57:44]*** CUTSNS_PIN = 1 [18:57:44]*** CUTSNS_PIN = 0 [18:57:44]*** Brake cut motor [18:57:45]Read from MH i2c: 01 [18:57:45]MH_I2C_Read... [18:57:45]*** Stop cut motor [18:57:45]*** Cut end [18:57:45]Read from MH i2c: 01 07 00 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: 01 07 00 BE 1A 00 00 00 00 00 FF 0F ED [18:57:45]process_action close_receipt done [18:57:45]requested_data is exist [18:57:45]produce_requested_data [18:57:45]requested_item fm.sn is exist - process it [18:57:45]wFMCommunicate request_size=4 [18:57:45]MH_SAM_APDU [18:57:45]CAPDU: 80 11 00 00 [18:57:45]Write to MH i2c: E2 08 00 BF 1A 80 11 00 00 00 00 00 00 53 [18:57:45]Write i2c OK [18:57:45]MH_I2C_Read... [18:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:45]Read from MH i2c: E2 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 17 00 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 17 00 BF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [18:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:45]wFMCommunicate OK [18:57:45]requested_item fd.num is exist - process it [18:57:45]SAM_PROTO_GetFieldsCounters [18:57:45]wFMCommunicate request_size=4 [18:57:45]MH_SAM_APDU [18:57:45]CAPDU: 80 13 00 00 [18:57:45]Write to MH i2c: E2 08 00 C0 1A 80 13 00 00 00 00 00 00 56 [18:57:45]Write i2c OK [18:57:45]MH_I2C_Read... [18:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:45]Read from MH i2c: E2 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 62 00 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 62 00 C0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 12 01 00 0E 04 04 00 C3 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 3A [18:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 12 01 00 0E 04 04 00 C3 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 [18:57:45]wFMCommunicate OK [18:57:45]SAM_PROTO_GetFieldsCounters done [18:57:45]requested_item shift.num is exist - process it [18:57:45]requested_item shift.opened is exist - process it [18:57:45]req_shift_opened [18:57:45]FM_GetShiftState [18:57:45]SAM_PROTO_GetShiftState [18:57:45]wFMCommunicate request_size=4 [18:57:45]MH_SAM_APDU [18:57:45]CAPDU: 80 13 01 00 [18:57:45]Write to MH i2c: E2 08 00 C1 1A 80 13 01 00 00 00 00 00 58 [18:57:45]Write i2c OK [18:57:45]MH_I2C_Read... [18:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:45]Read from MH i2c: E2 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 0E 00 [18:57:45]MH_I2C_Read... [18:57:45]Read from MH i2c: E2 0E 00 C1 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [18:57:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:57:45]wFMCommunicate OK [18:57:45]SAM_PROTO_GetShiftState done [18:57:45]FM_GetShiftState done [18:57:45]req_shift_opened done [18:57:45]requested_item shift.open_date is exist - process it [18:57:45]req_shift_open_date [18:57:45]req_shift_open_date done [18:57:45]produce_requested_data done [18:57:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70391,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:57:45]process_action_free close_receipt [18:57:45]json_value_free [18:57:45]json_value_free done [18:57:45]process_json_proto returns [18:57:45]Send response to host [18:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70391,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:57:45]free response buf [18:57:45]execute_script done [18:57:45]execute_script returns [18:57:45]free content buf [18:57:45]Sock 9.Close socket [18:57:45]Sock 9.Thread stoped [18:57:48]OFD Sender: No OFD packet to send [18:57:53]accept exits with 7 [18:57:53]New connection [18:57:53]New thread 3066555748 created [18:57:53]Thread 3066699108 joined [18:57:53]Waiting for new connection... [18:57:53] Sock 7.Parse request [18:57:53]Sock 7.Check first char [18:57:53]Sock 7.First char is OK [18:57:53]request: POST /json_proto HTTP/1.0 [18:57:53]Method: POST [18:57:53]URL: /json_proto [18:57:53]Method is POST - this is cgi request [18:57:53]url: /json_proto [18:57:53]query_string will be loaded in cgi processing [18:57:53]execute_cgi json_proto POST (null) [18:57:53]execute_cgi path=json_proto method=POST [18:57:53]POST find Content-Length [18:57:53]Host: 172.17.50.3:8080 [18:57:53]Content-Length: 978 [18:57:53]Content-Type: application/json [18:57:53] [18:57:53]POST finish read [18:57:53]Found Content-Length = 978 [18:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:57:53]execute_script... [18:57: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)2886160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:57:53]POST & json_proto [18:57:53]process_json_proto [18:57:53]json parsed OK: [18:57:53]protocol is kg_v1.0 [18:57:53]action value=close_receipt [18:57:53]process_action close_receipt [18:57:53]cmd_close_receipt [18:57:53]MH_GetDate [18:57:53]Write to MH i2c: F0 00 00 C2 1A CB [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 C2 1A 00 B1 F5 17 67 6B 98 1E 66 7F [18:57:53]GetLastDocTimeStamp 1729623462 [18:57:53]current date 1729623473 [18:57:53]FM_GetShiftState [18:57:53]SAM_PROTO_GetShiftState [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 13 01 00 [18:57:53]Write to MH i2c: E2 08 00 C3 1A 80 13 01 00 00 00 00 00 5A [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 C3 1A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 48 [18:57:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:57:53]wFMCommunicate OK [18:57:53]SAM_PROTO_GetShiftState done [18:57:53]FM_GetShiftState done [18:57:53]opened in 1729555832 [18:57:53]opened+sec_in_day 1729642232 [18:57:53]quantity*price = 500004 [18:57:53]sum+1 = 500006 [18:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 340 22.10.2024 18:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70392 ФПД: 25665579510499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185753&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70392&fm=25665579510499&tin=02508201610067®Number=0000000000156251&sum=500000 [18:57:54]StoreToDocumentArchive [18:57:54]shift 195 fd 70392 [18:57:54]save to /storage/0195/doc_00070392 [18:57:54]save last doc name /storage/0195/doc_00070392 to /storage/kkm_last_doc_name [18:57:54]save OK [18:57:54]Clear old archive folders... [18:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:57:54]tlvbuf is 00B3A1E0 [18:57:54]SAM_PROTO_ClearQueue [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 09 00 00 [18:57:54]Write to MH i2c: E2 08 00 D0 1A 80 09 00 00 00 00 00 00 5C [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 D0 1A 00 90 00 5E [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]SAM_PROTO_ClearQueue done [18:57:54]KKMCreateOFDPacket [18:57:54]OFDProtocolAddRootSTLVToBuf [18:57:54]FM_MakeSignedData [18:57:54]FM_MakeSignedData [18:57:54]SAM_PROTO_SignData [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 0D 01 02 [18:57:54]Write to MH i2c: E2 08 00 D1 1A 80 0D 01 02 00 00 00 00 64 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 D1 1A 00 90 00 5F [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]wFMCommunicate request_size=255 [18:57:54]MH_SAM_APDU [18:57: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 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 54 01 00 00 F4 03 04 00 B1 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 12 01 00 35 04 06 00 17 57 BB BF [18:57:54]Write to MH i2c: E2 02 01 D2 1A 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 54 01 00 00 F4 03 04 00 B1 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 12 01 00 35 04 06 00 17 57 BB BF 00 00 15 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 D2 1A 00 90 00 60 [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]wFMCommunicate request_size=7 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 0D 02 02 02 EA E3 [18:57:54]Write to MH i2c: E2 0A 00 D3 1A 80 0D 02 02 02 00 EA E3 00 00 38 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 0D 03 02 [18:57:54]Write to MH i2c: E2 08 00 D4 1A 80 0D 03 02 00 00 00 00 69 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 0B 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 0B 00 D4 1A 00 B8 2D 32 A8 9E 36 79 77 90 00 ED [18:57:54]RAPDU: B8 2D 32 A8 9E 36 79 77 90 00 [18:57:54]wFMCommunicate OK [18:57:54]SAM_PROTO_SignData done [18:57:54]FM_MakeSignedData done [18:57:54]CreateOFDProtocolMessage [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 11 00 00 [18:57:54]Write to MH i2c: E2 08 00 D5 1A 80 11 00 00 00 00 00 00 69 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 17 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 17 00 D5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [18:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:54]wFMCommunicate OK [18:57:54]CreateOFDProtocolMessage done [18:57:54]OFDSenderStorePacket 70392 [18:57:54]StoreOFDPacket docnum=70392 [18:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F5 9B 04 01 A3 9E 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 54 01 00 00 F4 03 04 00 B1 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 12 01 00 35 04 06 00 17 57 BB BF EA E3 B8 2D 32 A8 9E 36 79 77 [18:57:54]CheckFolder [18:57:54]dirname=/storage/ofd_packets [18:57:54]CheckFolder done [18:57:54]ProducePacketName [18:57:54]name=ofd_packets/00070392 [18:57:54]NVStorageSaveData ofd_packets/00070392 [18:57:54]File name is /storage/ofd_packets/00070392 [18:57:54]Write 298 bytes [18:57:54]NVStorageSaveData done [18:57:54]OFDSenderStorePacket done [18:57:54]KKMCreateOFDPacket done [18:57:54]NVStorageSaveData kkm_last_timestamp [18:57:54]File name is /storage/kkm_last_timestamp [18:57:54]Write 4 bytes [18:57:54]NVStorageSaveData done [18:57:54]ExternCall_PrintAddStr [18:57:54]wPrintStart [18:57:54]Write to MH i2c: 01 00 00 D6 1A F0 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 07 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: 01 07 00 D6 1A 00 00 00 00 00 FF 0F 05 [18:57:54]RasterBufferAndPrint [18:57:54]line Счет N : (1)2886160 [18:57:54]line ИНН: 02508201610067 [18:57:54]line Контрольно-Кассовый Чек [18:57:54]line ПРОДАЖА [18:57:54]line ТРК (МРК, ГНК) : 61 [18:57:54]line Товар: 2710194210 [18:57:54]line ДТ-К-5 [18:57:54]line 66.490 * 75.20 [18:57:54]line = 5000.05 [18:57:54]line НДС 12% НСП 1% [18:57:54]line > о реализуемом товаре [18:57:54]line ОКРУГЛЕНИЕ: -0.05 [18:57:54]line ИТОГО: 5000.00 [18:57:54]line Внесено: 5000.00 [18:57:54]line СДАЧА: 0.00 [18:57:54]line НСП 1% : 44.25 [18:57:54]line НДС 12% : 530.98 [18:57:54]line Наличными: 5000.00 [18:57:54]line Безнал.: 0.00 [18:57:54]line Место: АЗС № 85 "Партнер Нефть" [18:57:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:57:54]line СНО: Общий режим [18:57:54]line Чек 340 22.10.2024 18:57 [18:57:54]line Смена: 195 ФФД: 1.0 [18:57:54]line ЗНМ: 0300000167 [18:57:54]line РНМ: 0000000000156251 [18:57:54]line Версия ККМ: v1.0 [18:57:54]line [18:57:54]line Дисконтная программа [18:57:54]line ДТ [18:57:54]line номер 85 [18:57:54]line сэкономлено 66.49 сом [18:57:54]line ФМ: 0000000000963346 [18:57:54]line ФД: 70392 [18:57:55]line ФПД: 25665579510499 [18:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185753&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70392&fm=25665579510499&tin=02508201610067®Number=0000000000156251&sum=500000 [18:57:55]OFD Sender: Processing packet 70392 [packets to send 18, broken 17] [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00070392 [18:57:55]OFD Sender: To server: pG, [18:57:55]CommunicateWithHost lk.salyk.kg:30040 [18:57:55]ConnectInit lk.salyk.kg [18:57:55]written 0, free lines is 4095 [18:57:55]Connected sock=10 [18:57: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 34 36 0C 01 00 00 F5 9B 04 01 A3 9E 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 54 01 00 00 F4 03 04 00 B1 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 12 01 00 35 04 06 00 17 57 BB BF EA E3 B8 2D 32 A8 9E 36 79 77 [18:57: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 34 36 4F 00 00 00 47 43 47 00 5E 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 34 36 10 04 04 00 F8 12 01 00 F4 03 04 00 51 9F 17 67 B6 04 01 00 00 9A 6D 07 3B 05 E8 03 42 [18:57:55]CommunicateWithHost err = 0 [18:57:55]CheckOFDResponse [18:57:55]1017 (14) - 77093643461234 [18:57:55]1041 (16) - 0000000000963346 [18:57:55]1040 (4) - 70392 [18:57:55]1012 (4) - 22.10.2024 12:49 [18:57:55]1206 (1) - 0 [18:57:55]OFD Sender: Remove packet 70392 [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00070392 [18:57:55]NVStorageDeleteData [18:57:55]Write to MH i2c: 01 00 00 06 1B 21 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 06 1B 00 00 00 00 00 A1 0C D5 [18:57:55]RasterBufferAndPrint [18:57:55]line [18:57:55]line [18:57:55]line [18:57:55]line [18:57:55]line [18:57:55]written 0, free lines is 3242 [18:57:55]MH_Cut [18:57:55]Write to MH i2c: D1 01 00 0D 1B 01 FA [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: D1 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: D1 01 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: D1 01 00 0D 1B 00 F9 [18:57:55]Write to MH i2c: 01 00 00 0E 1B 29 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]OFD Sender: No OFD packet to send [18:57:56]*** Cut start [18:57:56]*** Partial cut [18:57:56]*** CUTSNS_PIN = 1 [18:57:56]*** CUTSNS_PIN = 0 [18:57:56]*** Brake cut motor [18:57:56]Read from MH i2c: 01 [18:57:56]MH_I2C_Read... [18:57:56]*** Stop cut motor [18:57:56]*** Cut end [18:57:56]Read from MH i2c: 01 07 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 FF 0F 3E [18:57:56]process_action close_receipt done [18:57:56]requested_data is exist [18:57:56]produce_requested_data [18:57:56]requested_item fm.sn is exist - process it [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 11 00 00 [18:57:56]Write to MH i2c: E2 08 00 0F 1B 80 11 00 00 00 00 00 00 A4 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 17 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 17 00 0F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [18:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:56]wFMCommunicate OK [18:57:56]requested_item fd.num is exist - process it [18:57:56]SAM_PROTO_GetFieldsCounters [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 00 00 [18:57:56]Write to MH i2c: E2 08 00 10 1B 80 13 00 00 00 00 00 00 A7 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 62 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 62 00 10 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 12 01 00 0E 04 04 00 C3 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 8F [18:57: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 12 01 00 0E 04 04 00 C3 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 [18:57:57]wFMCommunicate OK [18:57:57]SAM_PROTO_GetFieldsCounters done [18:57:57]requested_item shift.num is exist - process it [18:57:57]requested_item shift.opened is exist - process it [18:57:57]req_shift_opened [18:57:57]FM_GetShiftState [18:57:57]SAM_PROTO_GetShiftState [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 13 01 00 [18:57:57]Write to MH i2c: E2 08 00 11 1B 80 13 01 00 00 00 00 00 A9 [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 0E 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 0E 00 11 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 97 [18:57:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:57:57]wFMCommunicate OK [18:57:57]SAM_PROTO_GetShiftState done [18:57:57]FM_GetShiftState done [18:57:57]req_shift_opened done [18:57:57]requested_item shift.open_date is exist - process it [18:57:57]req_shift_open_date [18:57:57]req_shift_open_date done [18:57:57]produce_requested_data done [18:57:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70392,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:57:57]process_action_free close_receipt [18:57:57]json_value_free [18:57:57]json_value_free done [18:57:57]process_json_proto returns [18:57:57]Send response to host [18:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70392,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:57:57]free response buf [18:57:57]execute_script done [18:57:57]execute_script returns [18:57:57]free content buf [18:57:57]Sock 7.Close socket [18:57:57]Sock 7.Thread stoped [18:57:58]accept exits with 9 [18:57:58]New connection [18:57:58]New thread 3066699108 created [18:57:58]Thread 3066555748 joined [18:57:58]Waiting for new connection... [18:57:58] Sock 9.Parse request [18:57:58]Sock 9.Check first char [18:57:58]Sock 9.First char is OK [18:57:58]request: POST /json_proto HTTP/1.0 [18:57:58]Method: POST [18:57:58]URL: /json_proto [18:57:58]Method is POST - this is cgi request [18:57:58]url: /json_proto [18:57:58]query_string will be loaded in cgi processing [18:57:58]execute_cgi json_proto POST (null) [18:57:58]execute_cgi path=json_proto method=POST [18:57:58]POST find Content-Length [18:57:58]Host: 172.17.50.3:8080 [18:57:58]Content-Length: 1034 [18:57:58]Content-Type: application/json [18:57:58] [18:57:58]POST finish read [18:57:58]Found Content-Length = 1034 [18:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70392, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:57:58]execute_script... [18:57:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70392, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [18:57:58]POST & json_proto [18:57:58]process_json_proto [18:57:58]json parsed OK: [18:57:58]protocol is kg_v1.0 [18:57:58]action value=close_receipt [18:57:58]process_action close_receipt [18:57:58]cmd_close_receipt [18:57:58]MH_GetDate [18:57:58]Write to MH i2c: F0 00 00 12 1B 1C [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: F0 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: F0 09 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: F0 09 00 12 1B 00 B7 F5 17 67 6B 98 1E 66 D6 [18:57:58]GetLastDocTimeStamp 1729623473 [18:57:58]current date 1729623479 [18:57:58]FM_GetShiftState [18:57:58]SAM_PROTO_GetShiftState [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 13 01 00 [18:57:58]Write to MH i2c: E2 08 00 13 1B 80 13 01 00 00 00 00 00 AB [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0E 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0E 00 13 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 99 [18:57:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:57:58]wFMCommunicate OK [18:57:58]SAM_PROTO_GetShiftState done [18:57:58]FM_GetShiftState done [18:57:58]opened in 1729555832 [18:57:58]opened+sec_in_day 1729642232 [18:57:58]quantity*price = 500004 [18:57:58]sum+1 = 500006 [18:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 341 22.10.2024 18:57 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70392 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 70393 ФПД: 7532296753689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185759&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70393&fm=7532296753689&tin=02508201610067®Number=0000000000156251&sum=500000 [18:58:00]StoreToDocumentArchive [18:58:00]shift 195 fd 70393 [18:58:00]save to /storage/0195/doc_00070393 [18:58:00]save last doc name /storage/0195/doc_00070393 to /storage/kkm_last_doc_name [18:58:00]save OK [18:58:00]Clear old archive folders... [18:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:58:00]tlvbuf is 00B103E0 [18:58:00]SAM_PROTO_ClearQueue [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 09 00 00 [18:58:00]Write to MH i2c: E2 08 00 22 1B 80 09 00 00 00 00 00 00 AF [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 22 1B 00 90 00 B1 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]SAM_PROTO_ClearQueue done [18:58:00]KKMCreateOFDPacket [18:58:00]OFDProtocolAddRootSTLVToBuf [18:58:00]FM_MakeSignedData [18:58:00]FM_MakeSignedData [18:58:00]SAM_PROTO_SignData [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 01 02 [18:58:00]Write to MH i2c: E2 08 00 23 1B 80 0D 01 02 00 00 00 00 B7 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 23 1B 00 90 00 B2 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=255 [18:58:00]MH_SAM_APDU [18:58: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 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 55 01 00 00 F4 03 04 00 B7 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F8 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [18:58:00]Write to MH i2c: E2 02 01 24 1B 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 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 55 01 00 00 F4 03 04 00 B7 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F8 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 79 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=35 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 12 01 00 35 04 06 00 06 D9 BF DF 52 19 [18:58:00]Write to MH i2c: E2 26 00 25 1B 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 12 01 00 35 04 06 00 06 D9 BF DF 52 19 00 00 A0 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 03 02 [18:58:00]Write to MH i2c: E2 08 00 26 1B 80 0D 03 02 00 00 00 00 BC [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 0B 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 0B 00 26 1B 00 02 36 EC 10 17 DF BB 6F 90 00 11 [18:58:00]RAPDU: 02 36 EC 10 17 DF BB 6F 90 00 [18:58:00]wFMCommunicate OK [18:58:00]SAM_PROTO_SignData done [18:58:00]FM_MakeSignedData done [18:58:00]CreateOFDProtocolMessage [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 11 00 00 [18:58:00]Write to MH i2c: E2 08 00 27 1B 80 11 00 00 00 00 00 00 BC [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 17 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 17 00 27 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [18:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:58:00]wFMCommunicate OK [18:58:00]CreateOFDProtocolMessage done [18:58:00]OFDSenderStorePacket 70393 [18:58:00]StoreOFDPacket docnum=70393 [18:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 69 9E 20 01 B9 7B 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 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 55 01 00 00 F4 03 04 00 B7 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F8 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 12 01 00 35 04 06 00 06 D9 BF DF 52 19 02 36 EC 10 17 DF BB 6F [18:58:00]CheckFolder [18:58:00]dirname=/storage/ofd_packets [18:58:00]CheckFolder done [18:58:00]ProducePacketName [18:58:00]name=ofd_packets/00070393 [18:58:00]NVStorageSaveData ofd_packets/00070393 [18:58:00]File name is /storage/ofd_packets/00070393 [18:58:00]Write 326 bytes [18:58:00]NVStorageSaveData done [18:58:00]OFDSenderStorePacket done [18:58:00]KKMCreateOFDPacket done [18:58:00]NVStorageSaveData kkm_last_timestamp [18:58:00]File name is /storage/kkm_last_timestamp [18:58:00]Write 4 bytes [18:58:00]NVStorageSaveData done [18:58:00]ExternCall_PrintAddStr [18:58:00]wPrintStart [18:58:00]Write to MH i2c: 01 00 00 28 1B 43 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: 01 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: 01 07 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 FF 0F 58 [18:58:00]RasterBufferAndPrint [18:58:00]line Счет N : (1)2886160 [18:58:00]line ИНН: 02508201610067 [18:58:00]line Контрольно-Кассовый Чек [18:58:00]line ВОЗВРАТ ПРОДАЖИ [18:58:00]line ТРК (МРК, ГНК) : 61 [18:58:00]line Товар: 2710194210 [18:58:00]line ДТ-К-5 [18:58:00]line 66.490 * 75.20 [18:58:00]line = 5000.05 [18:58:00]line НДС 12% НСП 1% [18:58:00]line > о реализуемом товаре [18:58:00]line ОКРУГЛЕНИЕ: -0.05 [18:58:00]line ИТОГО: 5000.00 [18:58:00]line НСП 1% : 44.25 [18:58:00]line НДС 12% : 530.98 [18:58:00]line Наличными: 5000.00 [18:58:00]line Безнал.: 0.00 [18:58:00]line Место: АЗС № 85 "Партнер Нефть" [18:58:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:58:00]line СНО: Общий режим [18:58:00]line Чек 341 22.10.2024 18:57 [18:58:00]line Смена: 195 ФФД: 1.0 [18:58:00]line ЗНМ: 0300000167 [18:58:00]line РНМ: 0000000000156251 [18:58:00]line Версия ККМ: v1.0 [18:58:00]line ФД осн.: 70392 [18:58:00]line ФМ осн.: 0000000000963346 [18:58:00]line [18:58:00]line Дисконтная программа [18:58:00]line ДТ [18:58:00]line номер 85 [18:58:00]line сэкономлено 66.49 сом [18:58:00]line ФМ: 0000000000963346 [18:58:00]line ФД: 70393 [18:58:00]line ФПД: 7532296753689 [18:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185759&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70393&fm=7532296753689&tin=02508201610067®Number=0000000000156251&sum=500000 [18:58:00]written 0, free lines is 4095 [18:58:00]OFD Sender: Processing packet 70393 [packets to send 18, broken 17] [18:58:00]ProducePacketName [18:58:00]name=ofd_packets/00070393 [18:58:00]OFD Sender: To server: pG, [18:58:00]CommunicateWithHost lk.salyk.kg:30040 [18:58:00]ConnectInit lk.salyk.kg [18:58:00]Connected sock=10 [18:58: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 34 36 28 01 00 00 69 9E 20 01 B9 7B 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 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 55 01 00 00 F4 03 04 00 B7 F5 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F8 12 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 12 01 00 35 04 06 00 06 D9 BF DF 52 19 02 36 EC 10 17 DF BB 6F [18:58: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 34 36 4F 00 00 00 B7 BF 47 00 D9 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 12 01 00 F4 03 04 00 57 9F 17 67 B6 04 01 00 00 C6 3B D2 84 C4 4B BC AF [18:58:01]CommunicateWithHost err = 0 [18:58:01]CheckOFDResponse [18:58:01]1017 (14) - 77093643461234 [18:58:01]1041 (16) - 0000000000963346 [18:58:01]1040 (4) - 70393 [18:58:01]1012 (4) - 22.10.2024 12:49 [18:58:01]1206 (1) - 0 [18:58:01]OFD Sender: Remove packet 70393 [18:58:01]ProducePacketName [18:58:01]name=ofd_packets/00070393 [18:58:01]NVStorageDeleteData [18:58:01]Write to MH i2c: 01 00 00 58 1B 73 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 58 1B 00 00 00 00 00 B3 0C 39 [18:58:01]RasterBufferAndPrint [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]written 0, free lines is 3265 [18:58:01]MH_Cut [18:58:01]Write to MH i2c: D1 01 00 5F 1B 01 4C [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 01 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 01 00 5F 1B 00 4B [18:58:01]Write to MH i2c: 01 00 00 60 1B 7B [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]OFD Sender: No OFD packet to send [18:58:01]*** Cut start [18:58:01]*** Partial cut [18:58:01]*** CUTSNS_PIN = 1 [18:58:01]*** CUTSNS_PIN = 0 [18:58:02]*** Brake cut motor [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]*** Stop cut motor [18:58:02]*** Cut end [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 60 1B 00 00 00 00 00 FF 0F 90 [18:58:02]process_action close_receipt done [18:58:02]requested_data is exist [18:58:02]produce_requested_data [18:58:02]requested_item fm.sn is exist - process it [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 11 00 00 [18:58:02]Write to MH i2c: E2 08 00 61 1B 80 11 00 00 00 00 00 00 F6 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 61 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [18:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:58:02]wFMCommunicate OK [18:58:02]requested_item fd.num is exist - process it [18:58:02]SAM_PROTO_GetFieldsCounters [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 13 00 00 [18:58:02]Write to MH i2c: E2 08 00 62 1B 80 13 00 00 00 00 00 00 F9 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 62 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 62 00 62 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 12 01 00 0E 04 04 00 C3 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 E5 [18:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 12 01 00 0E 04 04 00 C3 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 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_GetFieldsCounters done [18:58:02]requested_item shift.num is exist - process it [18:58:02]requested_item shift.opened is exist - process it [18:58:02]req_shift_opened [18:58:02]FM_GetShiftState [18:58:02]SAM_PROTO_GetShiftState [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 13 01 00 [18:58:02]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0E 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E9 [18:58:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_GetShiftState done [18:58:02]FM_GetShiftState done [18:58:02]req_shift_opened done [18:58:02]requested_item shift.open_date is exist - process it [18:58:02]req_shift_open_date [18:58:02]req_shift_open_date done [18:58:02]produce_requested_data done [18:58:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70393,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [18:58:02]process_action_free close_receipt [18:58:02]json_value_free [18:58:02]json_value_free done [18:58:02]process_json_proto returns [18:58:02]Send response to host [18:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70393,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [18:58:02]free response buf [18:58:02]execute_script done [18:58:02]execute_script returns [18:58:02]free content buf [18:58:02]Sock 9.Close socket [18:58:02]Sock 9.Thread stoped [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [18:59:58]accept exits with 7 [18:59:58]New connection [18:59:58]New thread 3066555748 created [18:59:58]Thread 3066699108 joined [18:59:58]Waiting for new connection... [18:59:58] Sock 7.Parse request [18:59:58]Sock 7.Check first char [18:59:58]Sock 7.First char is OK [18:59:58]request: POST /json_proto HTTP/1.0 [18:59:58]Method: POST [18:59:58]URL: /json_proto [18:59:58]Method is POST - this is cgi request [18:59:58]url: /json_proto [18:59:58]query_string will be loaded in cgi processing [18:59:58]execute_cgi json_proto POST (null) [18:59:58]execute_cgi path=json_proto method=POST [18:59:58]POST find Content-Length [18:59:58]Host: 172.17.50.3:8080 [18:59:58]Content-Length: 680 [18:59:58]Content-Type: application/json [18:59:58] [18:59:58]POST finish read [18:59:58]Found Content-Length = 680 [18:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886161", "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.210, "sum" : 1006.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1006.00, "total" : 1006.00, "payments": [ { "type": 0, "sum" : 1006.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]execute_script... [18:59: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)2886161", "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.210, "sum" : 1006.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1006.00, "total" : 1006.00, "payments": [ { "type": 0, "sum" : 1006.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]POST & json_proto [18:59:58]process_json_proto [18:59:58]json parsed OK: [18:59:58]protocol is kg_v1.0 [18:59:58]action value=close_receipt [18:59:58]process_action close_receipt [18:59:58]cmd_close_receipt [18:59:58]MH_GetDate [18:59:58]Write to MH i2c: F0 00 00 64 1B 6E [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 64 1B 00 2F F6 17 67 6B 98 1E 66 A1 [18:59:58]GetLastDocTimeStamp 1729623479 [18:59:58]current date 1729623599 [18:59:58]FM_GetShiftState [18:59:58]SAM_PROTO_GetShiftState [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 13 01 00 [18:59:58]Write to MH i2c: E2 08 00 65 1B 80 13 01 00 00 00 00 00 FD [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 65 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EB [18:59:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [18:59:58]wFMCommunicate OK [18:59:58]SAM_PROTO_GetShiftState done [18:59:58]FM_GetShiftState done [18:59:58]opened in 1729555832 [18:59:58]opened+sec_in_day 1729642232 [18:59:58]quantity*price = 100660 [18:59:58]sum+1 = 100661 [18:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1006.00 Внесено: 1006.00 СДАЧА: 0.00 НСП 1% : 8.91 НДС 12% : 106.90 Наличными: 1006.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 342 22.10.2024 18:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70394 ФПД: 217641579175204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185959&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70394&fm=217641579175204&tin=02508201610067®Number=0000000000156251&sum=100600 [18:59:59]StoreToDocumentArchive [18:59:59]shift 195 fd 70394 [18:59:59]save to /storage/0195/doc_00070394 [18:59:59]save last doc name /storage/0195/doc_00070394 to /storage/kkm_last_doc_name [18:59:59]save OK [18:59:59]Clear old archive folders... [18:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:59]tlvbuf is 00B32FB0 [18:59:59]SAM_PROTO_ClearQueue [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 09 00 00 [18:59:59]Write to MH i2c: E2 08 00 72 1B 80 09 00 00 00 00 00 00 FF [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [19:00:00]RAPDU: 90 00 [19:00:00]wFMCommunicate OK [19:00:00]SAM_PROTO_ClearQueue done [19:00:00]KKMCreateOFDPacket [19:00:00]OFDProtocolAddRootSTLVToBuf [19:00:00]FM_MakeSignedData [19:00:00]FM_MakeSignedData [19:00:00]SAM_PROTO_SignData [19:00:00]wFMCommunicate request_size=4 [19:00:00]MH_SAM_APDU [19:00:00]CAPDU: 80 0D 01 02 [19:00:00]Write to MH i2c: E2 08 00 73 1B 80 0D 01 02 00 00 00 00 07 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [19:00:00]RAPDU: 90 00 [19:00:00]wFMCommunicate OK [19:00:00]wFMCommunicate request_size=255 [19:00:00]MH_SAM_APDU [19:00: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 9A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 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 01 00 00 F4 03 04 00 2F F6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 12 01 00 35 04 06 00 C5 F1 A1 03 [19:00:00]Write to MH i2c: E2 02 01 74 1B 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 9A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 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 01 00 00 F4 03 04 00 2F F6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 12 01 00 35 04 06 00 C5 F1 A1 03 00 00 59 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [19:00:00]RAPDU: 90 00 [19:00:00]wFMCommunicate OK [19:00:00]wFMCommunicate request_size=7 [19:00:00]MH_SAM_APDU [19:00:00]CAPDU: 80 0D 02 02 02 DD 24 [19:00:00]Write to MH i2c: E2 0A 00 75 1B 80 0D 02 02 02 00 DD 24 00 00 0F [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [19:00:00]RAPDU: 90 00 [19:00:00]wFMCommunicate OK [19:00:00]wFMCommunicate request_size=4 [19:00:00]MH_SAM_APDU [19:00:00]CAPDU: 80 0D 03 02 [19:00:00]Write to MH i2c: E2 08 00 76 1B 80 0D 03 02 00 00 00 00 0C [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 0B 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 0B 00 76 1B 00 2E 5C 3D A5 0D 81 43 C5 90 00 0F [19:00:00]RAPDU: 2E 5C 3D A5 0D 81 43 C5 90 00 [19:00:00]wFMCommunicate OK [19:00:00]SAM_PROTO_SignData done [19:00:00]FM_MakeSignedData done [19:00:00]CreateOFDProtocolMessage [19:00:00]wFMCommunicate request_size=4 [19:00:00]MH_SAM_APDU [19:00:00]CAPDU: 80 11 00 00 [19:00:00]Write to MH i2c: E2 08 00 77 1B 80 11 00 00 00 00 00 00 0C [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:00]Read from MH i2c: E2 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 17 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: E2 17 00 77 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [19:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:00:00]wFMCommunicate OK [19:00:00]CreateOFDProtocolMessage done [19:00:00]OFDSenderStorePacket 70394 [19:00:00]StoreOFDPacket docnum=70394 [19:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BE A1 04 01 8B 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 9A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 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 01 00 00 F4 03 04 00 2F F6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 12 01 00 35 04 06 00 C5 F1 A1 03 DD 24 2E 5C 3D A5 0D 81 43 C5 [19:00:00]CheckFolder [19:00:00]dirname=/storage/ofd_packets [19:00:00]CheckFolder done [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00070394 [19:00:00]NVStorageSaveData ofd_packets/00070394 [19:00:00]File name is /storage/ofd_packets/00070394 [19:00:00]Write 298 bytes [19:00:00]NVStorageSaveData done [19:00:00]OFDSenderStorePacket done [19:00:00]KKMCreateOFDPacket done [19:00:00]NVStorageSaveData kkm_last_timestamp [19:00:00]File name is /storage/kkm_last_timestamp [19:00:00]Write 4 bytes [19:00:00]NVStorageSaveData done [19:00:00]ExternCall_PrintAddStr [19:00:00]wPrintStart [19:00:00]Write to MH i2c: 01 00 00 78 1B 93 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 FF 0F A8 [19:00:00]RasterBufferAndPrint [19:00:00]line Счет N : (1)2886161 [19:00:00]line ИНН: 02508201610067 [19:00:00]line Контрольно-Кассовый Чек [19:00:00]line ПРОДАЖА [19:00:00]line ТРК (МРК, ГНК) : 51 [19:00:00]line Товар: 2710194210 [19:00:00]line ДТ-К-5 [19:00:00]line 13.210 * 76.20 [19:00:00]line = 1006.60 [19:00:00]line НДС 12% НСП 1% [19:00:00]line > о реализуемом товаре [19:00:00]line ОКРУГЛЕНИЕ: -0.60 [19:00:00]line ИТОГО: 1006.00 [19:00:00]line Внесено: 1006.00 [19:00:00]line СДАЧА: 0.00 [19:00:00]line НСП 1% : 8.91 [19:00:00]line НДС 12% : 106.90 [19:00:00]line Наличными: 1006.00 [19:00:00]line Безнал.: 0.00 [19:00:00]line Место: АЗС № 85 "Партнер Нефть" [19:00:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:00:00]line СНО: Общий режим [19:00:00]line Чек 342 22.10.2024 18:59 [19:00:00]line Смена: 195 ФФД: 1.0 [19:00:00]line ЗНМ: 0300000167 [19:00:00]line РНМ: 0000000000156251 [19:00:00]line Версия ККМ: v1.0 [19:00:00]line ФМ: 0000000000963346 [19:00:00]line ФД: 70394 [19:00:00]line ФПД: 217641579175204 [19:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185959&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70394&fm=217641579175204&tin=02508201610067®Number=0000000000156251&sum=100600 [19:00:00]OFD Sender: Processing packet 70394 [packets to send 18, broken 17] [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00070394 [19:00:00]OFD Sender: To server: pG, [19:00:00]CommunicateWithHost lk.salyk.kg:30040 [19:00:00]ConnectInit lk.salyk.kg [19:00:00]written 0, free lines is 4095 [19:00:00]Connected sock=10 [19:00: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 34 36 0C 01 00 00 BE A1 04 01 8B 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 9A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 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 01 00 00 F4 03 04 00 2F F6 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 12 01 00 35 04 06 00 C5 F1 A1 03 DD 24 2E 5C 3D A5 0D 81 43 C5 [19:00: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 34 36 4F 00 00 00 0C 37 47 00 60 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 34 36 10 04 04 00 FA 12 01 00 F4 03 04 00 CF 9F 17 67 B6 04 01 00 00 EA 41 1B 60 A9 B8 00 8F [19:00:01]CommunicateWithHost err = 0 [19:00:01]CheckOFDResponse [19:00:01]1017 (14) - 77093643461234 [19:00:01]1041 (16) - 0000000000963346 [19:00:01]1040 (4) - 70394 [19:00:01]1012 (4) - 22.10.2024 12:51 [19:00:01]1206 (1) - 0 [19:00:01]OFD Sender: Remove packet 70394 [19:00:01]ProducePacketName [19:00:01]name=ofd_packets/00070394 [19:00:01]NVStorageDeleteData [19:00:01]Write to MH i2c: 01 00 00 A3 1B BE [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 07 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 ED 0C BE [19:00:01]RasterBufferAndPrint [19:00:01]line [19:00:01]line [19:00:01]line [19:00:01]line [19:00:01]line [19:00:01]written 0, free lines is 3315 [19:00:01]MH_Cut [19:00:01]Write to MH i2c: D1 01 00 AA 1B 01 97 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: D1 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: D1 01 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: D1 01 00 AA 1B 00 96 [19:00:01]Write to MH i2c: 01 00 00 AB 1B C6 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]OFD Sender: No OFD packet to send [19:00:01]*** Cut start [19:00:01]*** Partial cut [19:00:01]*** CUTSNS_PIN = 1 [19:00:02]*** CUTSNS_PIN = 0 [19:00:02]*** Brake cut motor [19:00:02]Read from MH i2c: 01 [19:00:02]MH_I2C_Read... [19:00:02]*** Stop cut motor [19:00:02]*** Cut end [19:00:02]Read from MH i2c: 01 07 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 FF 0F DB [19:00:02]process_action close_receipt done [19:00:02]requested_data is exist [19:00:02]produce_requested_data [19:00:02]requested_item fm.sn is exist - process it [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 11 00 00 [19:00:02]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 17 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [19:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:00:02]wFMCommunicate OK [19:00:02]requested_item fd.num is exist - process it [19:00:02]SAM_PROTO_GetFieldsCounters [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 13 00 00 [19:00:02]Write to MH i2c: E2 08 00 AD 1B 80 13 00 00 00 00 00 00 44 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 62 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 62 00 AD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 12 01 00 0E 04 04 00 C3 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 34 [19:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 12 01 00 0E 04 04 00 C3 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 [19:00:02]wFMCommunicate OK [19:00:02]SAM_PROTO_GetFieldsCounters done [19:00:02]requested_item shift.num is exist - process it [19:00:02]requested_item shift.opened is exist - process it [19:00:02]req_shift_opened [19:00:02]FM_GetShiftState [19:00:02]SAM_PROTO_GetShiftState [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 13 01 00 [19:00:02]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 0E 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [19:00:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:00:02]wFMCommunicate OK [19:00:02]SAM_PROTO_GetShiftState done [19:00:02]FM_GetShiftState done [19:00:02]req_shift_opened done [19:00:02]requested_item shift.open_date is exist - process it [19:00:02]req_shift_open_date [19:00:02]req_shift_open_date done [19:00:02]produce_requested_data done [19:00:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70394,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:00:02]process_action_free close_receipt [19:00:02]json_value_free [19:00:02]json_value_free done [19:00:02]process_json_proto returns [19:00:02]Send response to host [19:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70394,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:00:02]free response buf [19:00:02]execute_script done [19:00:02]execute_script returns [19:00:02]free content buf [19:00:02]Sock 7.Close socket [19:00:02]Sock 7.Thread stoped [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:52]accept exits with 9 [19:06:52]New connection [19:06:52]New thread 3066699108 created [19:06:52]Thread 3066555748 joined [19:06:52]Waiting for new connection... [19:06:52] Sock 9.Parse request [19:06:52]Sock 9.Check first char [19:06:52]Sock 9.First char is OK [19:06:52]request: POST /json_proto HTTP/1.0 [19:06:52]Method: POST [19:06:52]URL: /json_proto [19:06:52]Method is POST - this is cgi request [19:06:52]url: /json_proto [19:06:52]query_string will be loaded in cgi processing [19:06:52]execute_cgi json_proto POST (null) [19:06:52]execute_cgi path=json_proto method=POST [19:06:52]POST find Content-Length [19:06:52]Host: 172.17.50.3:8080 [19:06:52]Content-Length: 767 [19:06:52]Content-Type: application/json [19:06:52] [19:06:52]POST finish read [19:06:52]Found Content-Length = 767 [19:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:06:52]execute_script... [19:06: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)2886162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:06:52]POST & json_proto [19:06:52]process_json_proto [19:06:52]json parsed OK: [19:06:52]protocol is kg_v1.0 [19:06:52]action value=close_receipt [19:06:52]process_action close_receipt [19:06:52]cmd_close_receipt [19:06:52]MH_GetDate [19:06:52]Write to MH i2c: F0 00 00 AF 1B B9 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 09 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 09 00 AF 1B 00 CD F7 17 67 6B 98 1E 66 8B [19:06:52]GetLastDocTimeStamp 1729623599 [19:06:52]current date 1729624013 [19:06:52]FM_GetShiftState [19:06:52]SAM_PROTO_GetShiftState [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 13 01 00 [19:06:52]Write to MH i2c: E2 08 00 B0 1B 80 13 01 00 00 00 00 00 48 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 B0 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [19:06:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_GetShiftState done [19:06:52]FM_GetShiftState done [19:06:52]opened in 1729555832 [19:06:52]opened+sec_in_day 1729642232 [19:06:52]quantity*price = 50041 [19:06:52]sum+1 = 50042 [19:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 343 22.10.2024 19:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70395 ФПД: 188286934224294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70395&fm=188286934224294&tin=02508201610067®Number=0000000000156251&sum=50041 [19:06:53]StoreToDocumentArchive [19:06:53]shift 195 fd 70395 [19:06:53]save to /storage/0195/doc_00070395 [19:06:53]save last doc name /storage/0195/doc_00070395 to /storage/kkm_last_doc_name [19:06:53]save OK [19:06:53]Clear old archive folders... [19:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:53]tlvbuf is 00B3A9B0 [19:06:53]SAM_PROTO_ClearQueue [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 09 00 00 [19:06:53]Write to MH i2c: E2 08 00 BD 1B 80 09 00 00 00 00 00 00 4A [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]SAM_PROTO_ClearQueue done [19:06:53]KKMCreateOFDPacket [19:06:53]OFDProtocolAddRootSTLVToBuf [19:06:53]FM_MakeSignedData [19:06:53]FM_MakeSignedData [19:06:53]SAM_PROTO_SignData [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 01 02 [19:06:53]Write to MH i2c: E2 08 00 BE 1B 80 0D 01 02 00 00 00 00 52 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=255 [19:06:53]MH_SAM_APDU [19:06: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 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 57 01 00 00 F4 03 04 00 CD F7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 12 01 00 35 04 06 00 AB [19:06:53]Write to MH i2c: E2 02 01 BF 1B 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 57 01 00 00 F4 03 04 00 CD F7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 12 01 00 35 04 06 00 AB 00 00 43 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [19:06:54]RAPDU: 90 00 [19:06:54]wFMCommunicate OK [19:06:54]wFMCommunicate request_size=10 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 0D 02 02 05 3E F7 D4 8D A6 [19:06:54]Write to MH i2c: E2 0D 00 C0 1B 80 0D 02 02 05 00 3E F7 D4 8D A6 00 00 9B [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [19:06:54]RAPDU: 90 00 [19:06:54]wFMCommunicate OK [19:06:54]wFMCommunicate request_size=4 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 0D 03 02 [19:06:54]Write to MH i2c: E2 08 00 C1 1B 80 0D 03 02 00 00 00 00 57 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 0B 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 0B 00 C1 1B 00 B6 50 9E 00 FC 07 4A 0A 90 00 53 [19:06:54]RAPDU: B6 50 9E 00 FC 07 4A 0A 90 00 [19:06:54]wFMCommunicate OK [19:06:54]SAM_PROTO_SignData done [19:06:54]FM_MakeSignedData done [19:06:54]CreateOFDProtocolMessage [19:06:54]wFMCommunicate request_size=4 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 11 00 00 [19:06:54]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 17 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [19:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:06:54]wFMCommunicate OK [19:06:54]CreateOFDProtocolMessage done [19:06:54]OFDSenderStorePacket 70395 [19:06:54]StoreOFDPacket docnum=70395 [19:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 37 6C 07 01 54 5F 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 57 01 00 00 F4 03 04 00 CD F7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 12 01 00 35 04 06 00 AB 3E F7 D4 8D A6 B6 50 9E 00 FC 07 4A 0A [19:06:54]CheckFolder [19:06:54]dirname=/storage/ofd_packets [19:06:54]CheckFolder done [19:06:54]ProducePacketName [19:06:54]name=ofd_packets/00070395 [19:06:54]NVStorageSaveData ofd_packets/00070395 [19:06:54]File name is /storage/ofd_packets/00070395 [19:06:54]Write 301 bytes [19:06:54]NVStorageSaveData done [19:06:54]OFDSenderStorePacket done [19:06:54]KKMCreateOFDPacket done [19:06:54]NVStorageSaveData kkm_last_timestamp [19:06:54]File name is /storage/kkm_last_timestamp [19:06:54]Write 4 bytes [19:06:54]NVStorageSaveData done [19:06:54]ExternCall_PrintAddStr [19:06:54]wPrintStart [19:06:54]Write to MH i2c: 01 00 00 C3 1B DE [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [19:06:54]RasterBufferAndPrint [19:06:54]line Счет N : (1)2886162 [19:06:54]line ИНН: 02508201610067 [19:06:54]line Контрольно-Кассовый Чек [19:06:54]line ПРОДАЖА [19:06:54]line ТРК (МРК, ГНК) : 42 [19:06:54]line Товар: 2710124130 [19:06:54]line Аи-92-К-5 [19:06:54]line 7.480 * 66.90 [19:06:54]line = 500.41 [19:06:54]line НДС 12% НСП 1% [19:06:54]line > о реализуемом товаре [19:06:54]line ИТОГО: 500.41 [19:06:54]line НСП 1% : 4.43 [19:06:54]line НДС 12% : 53.14 [19:06:54]line Наличными: 0.00 [19:06:54]line Безнал.: 500.41 [19:06:54]line Место: АЗС № 85 "Партнер Нефть" [19:06:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:06:54]line СНО: Общий режим [19:06:54]line Чек 343 22.10.2024 19:06 [19:06:54]line Смена: 195 ФФД: 1.0 [19:06:54]line ЗНМ: 0300000167 [19:06:54]line РНМ: 0000000000156251 [19:06:54]line Версия ККМ: v1.0 [19:06:54]line Платежная система: Mbank [19:06:54]line ФМ: 0000000000963346 [19:06:54]line ФД: 70395 [19:06:54]line ФПД: 188286934224294 [19:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70395&fm=188286934224294&tin=02508201610067®Number=0000000000156251&sum=50041 [19:06:54]OFD Sender: Processing packet 70395 [packets to send 18, broken 17] [19:06:54]ProducePacketName [19:06:54]name=ofd_packets/00070395 [19:06:54]OFD Sender: To server: pG, [19:06:54]CommunicateWithHost lk.salyk.kg:30040 [19:06:54]ConnectInit lk.salyk.kg [19:06:54]written 0, free lines is 4095 [19:06:54]Connected sock=10 [19:06: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 34 36 0F 01 00 00 37 6C 07 01 54 5F 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 57 01 00 00 F4 03 04 00 CD F7 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 12 01 00 35 04 06 00 AB 3E F7 D4 8D A6 B6 50 9E 00 FC 07 4A 0A [19:06: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 34 36 4F 00 00 00 4B A4 47 00 CA 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 34 36 10 04 04 00 FB 12 01 00 F4 03 04 00 6D A1 17 67 B6 04 01 00 00 E4 C8 9F F5 12 D7 79 F5 [19:06:54]CommunicateWithHost err = 0 [19:06:54]CheckOFDResponse [19:06:54]1017 (14) - 77093643461234 [19:06:54]1041 (16) - 0000000000963346 [19:06:54]1040 (4) - 70395 [19:06:54]1012 (4) - 22.10.2024 12:58 [19:06:54]1206 (1) - 0 [19:06:54]OFD Sender: Remove packet 70395 [19:06:54]ProducePacketName [19:06:54]name=ofd_packets/00070395 [19:06:54]NVStorageDeleteData [19:06:54]Write to MH i2c: 01 00 00 EC 1B 07 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 [19:06:54]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 EC 1B 00 00 00 00 00 21 0D 3C [19:06:55]RasterBufferAndPrint [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]written 0, free lines is 3367 [19:06:55]MH_Cut [19:06:55]Write to MH i2c: D1 01 00 F3 1B 01 E0 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 01 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 01 00 F3 1B 00 DF [19:06:55]Write to MH i2c: 01 00 00 F4 1B 0F [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]OFD Sender: No OFD packet to send [19:06:55]*** Cut start [19:06:55]*** Partial cut [19:06:55]*** CUTSNS_PIN = 1 [19:06:55]*** CUTSNS_PIN = 0 [19:06:55]*** Brake cut motor [19:06:56]Read from MH i2c: 01 [19:06:56]MH_I2C_Read... [19:06:56]*** Stop cut motor [19:06:56]*** Cut end [19:06:56]Read from MH i2c: 01 07 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 FF 0F 24 [19:06:56]process_action close_receipt done [19:06:56]requested_data is exist [19:06:56]produce_requested_data [19:06:56]requested_item fm.sn is exist - process it [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 11 00 00 [19:06:56]Write to MH i2c: E2 08 00 F5 1B 80 11 00 00 00 00 00 00 8A [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 17 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 17 00 F5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [19:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:06:56]wFMCommunicate OK [19:06:56]requested_item fd.num is exist - process it [19:06:56]SAM_PROTO_GetFieldsCounters [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 13 00 00 [19:06:56]Write to MH i2c: E2 08 00 F6 1B 80 13 00 00 00 00 00 00 8D [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 62 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 62 00 F6 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 12 01 00 0E 04 04 00 C3 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 81 [19:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 12 01 00 0E 04 04 00 C3 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 [19:06:56]wFMCommunicate OK [19:06:56]SAM_PROTO_GetFieldsCounters done [19:06:56]requested_item shift.num is exist - process it [19:06:56]requested_item shift.opened is exist - process it [19:06:56]req_shift_opened [19:06:56]FM_GetShiftState [19:06:56]SAM_PROTO_GetShiftState [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 13 01 00 [19:06:56]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 0E 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [19:06:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:06:56]wFMCommunicate OK [19:06:56]SAM_PROTO_GetShiftState done [19:06:56]FM_GetShiftState done [19:06:56]req_shift_opened done [19:06:56]requested_item shift.open_date is exist - process it [19:06:56]req_shift_open_date [19:06:56]req_shift_open_date done [19:06:56]produce_requested_data done [19:06:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70395,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:06:56]process_action_free close_receipt [19:06:56]json_value_free [19:06:56]json_value_free done [19:06:56]process_json_proto returns [19:06:56]Send response to host [19:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70395,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:06:56]free response buf [19:06:56]execute_script done [19:06:56]execute_script returns [19:06:56]free content buf [19:06:56]Sock 9.Close socket [19:06:56]Sock 9.Thread stoped [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]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:08:57]accept exits with 7 [19:08:57]New connection [19:08:57]New thread 3066555748 created [19:08:57]Thread 3066699108 joined [19:08:57]Waiting for new connection... [19:08:57] Sock 7.Parse request [19:08:57]Sock 7.Check first char [19:08:57]Sock 7.First char is OK [19:08:57]request: POST /json_proto HTTP/1.0 [19:08:57]Method: POST [19:08:57]URL: /json_proto [19:08:57]Method is POST - this is cgi request [19:08:57]url: /json_proto [19:08:57]query_string will be loaded in cgi processing [19:08:57]execute_cgi json_proto POST (null) [19:08:57]execute_cgi path=json_proto method=POST [19:08:57]POST find Content-Length [19:08:57]Host: 172.17.50.3:8080 [19:08:57]Content-Length: 679 [19:08:57]Content-Type: application/json [19:08:57] [19:08:57]POST finish read [19:08:57]Found Content-Length = 679 [19:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [19:08:57]execute_script... [19:08: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)2886165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [19:08:57]POST & json_proto [19:08:57]process_json_proto [19:08:57]json parsed OK: [19:08:57]protocol is kg_v1.0 [19:08:57]action value=close_receipt [19:08:57]process_action close_receipt [19:08:57]cmd_close_receipt [19:08:57]MH_GetDate [19:08:57]Write to MH i2c: F0 00 00 F8 1B 02 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: F0 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: F0 09 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: F0 09 00 F8 1B 00 49 F8 17 67 6B 98 1E 66 51 [19:08:57]GetLastDocTimeStamp 1729624013 [19:08:57]current date 1729624137 [19:08:57]FM_GetShiftState [19:08:57]SAM_PROTO_GetShiftState [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 13 01 00 [19:08:57]Write to MH i2c: E2 08 00 F9 1B 80 13 01 00 00 00 00 00 91 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 0E 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 0E 00 F9 1B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7F [19:08:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:08:57]wFMCommunicate OK [19:08:57]SAM_PROTO_GetShiftState done [19:08:57]FM_GetShiftState done [19:08:57]opened in 1729555832 [19:08:57]opened+sec_in_day 1729642232 [19:08:57]quantity*price = 70044 [19:08:57]sum+1 = 70045 [19:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 344 22.10.2024 19:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70396 ФПД: 206571295546477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70396&fm=206571295546477&tin=02508201610067®Number=0000000000156251&sum=70000 [19:08:58]StoreToDocumentArchive [19:08:58]shift 195 fd 70396 [19:08:58]save to /storage/0195/doc_00070396 [19:08:58]save last doc name /storage/0195/doc_00070396 to /storage/kkm_last_doc_name [19:08:58]save OK [19:08:58]Clear old archive folders... [19:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:58]tlvbuf is B6E83B50 [19:08:58]SAM_PROTO_ClearQueue [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 09 00 00 [19:08:58]Write to MH i2c: E2 08 00 06 1C 80 09 00 00 00 00 00 00 94 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]SAM_PROTO_ClearQueue done [19:08:58]KKMCreateOFDPacket [19:08:58]OFDProtocolAddRootSTLVToBuf [19:08:58]FM_MakeSignedData [19:08:58]FM_MakeSignedData [19:08:58]SAM_PROTO_SignData [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 0D 01 02 [19:08:58]Write to MH i2c: E2 08 00 07 1C 80 0D 01 02 00 00 00 00 9C [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]wFMCommunicate request_size=255 [19:08:58]MH_SAM_APDU [19:08: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 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 58 01 00 00 F4 03 04 00 49 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 12 01 00 35 04 06 00 BB [19:08:58]Write to MH i2c: E2 02 01 08 1C 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 58 01 00 00 F4 03 04 00 49 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 12 01 00 35 04 06 00 BB 00 00 DA [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]wFMCommunicate request_size=10 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 0D 02 02 05 E0 20 B1 1C 6D [19:08:58]Write to MH i2c: E2 0D 00 09 1C 80 0D 02 02 05 00 E0 20 B1 1C 6D 00 00 E3 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 0D 03 02 [19:08:58]Write to MH i2c: E2 08 00 0A 1C 80 0D 03 02 00 00 00 00 A1 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0B 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0B 00 0A 1C 00 FA 51 14 17 9D 9D 4C 08 90 00 A6 [19:08:58]RAPDU: FA 51 14 17 9D 9D 4C 08 90 00 [19:08:58]wFMCommunicate OK [19:08:58]SAM_PROTO_SignData done [19:08:58]FM_MakeSignedData done [19:08:58]CreateOFDProtocolMessage [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 11 00 00 [19:08:58]Write to MH i2c: E2 08 00 0B 1C 80 11 00 00 00 00 00 00 A1 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 17 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 17 00 0B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [19:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:08:58]wFMCommunicate OK [19:08:58]CreateOFDProtocolMessage done [19:08:58]OFDSenderStorePacket 70396 [19:08:58]StoreOFDPacket docnum=70396 [19:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 80 07 01 37 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 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 58 01 00 00 F4 03 04 00 49 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 12 01 00 35 04 06 00 BB E0 20 B1 1C 6D FA 51 14 17 9D 9D 4C 08 [19:08:58]CheckFolder [19:08:58]dirname=/storage/ofd_packets [19:08:58]CheckFolder done [19:08:58]ProducePacketName [19:08:58]name=ofd_packets/00070396 [19:08:58]NVStorageSaveData ofd_packets/00070396 [19:08:58]File name is /storage/ofd_packets/00070396 [19:08:58]Write 301 bytes [19:08:58]NVStorageSaveData done [19:08:58]OFDSenderStorePacket done [19:08:58]KKMCreateOFDPacket done [19:08:58]NVStorageSaveData kkm_last_timestamp [19:08:58]File name is /storage/kkm_last_timestamp [19:08:58]Write 4 bytes [19:08:58]NVStorageSaveData done [19:08:58]ExternCall_PrintAddStr [19:08:58]wPrintStart [19:08:58]Write to MH i2c: 01 00 00 0C 1C 28 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [19:08:58]RasterBufferAndPrint [19:08:58]line Счет N : (1)2886165 [19:08:58]line ИНН: 02508201610067 [19:08:58]line Контрольно-Кассовый Чек [19:08:58]line ПРОДАЖА [19:08:58]line ТРК (МРК, ГНК) : 22 [19:08:58]line Товар: 2710124130 [19:08:58]line Аи-92-К-5 [19:08:58]line 10.470 * 66.90 [19:08:58]line = 700.44 [19:08:58]line НДС 12% НСП 1% [19:08:58]line > о реализуемом товаре [19:08:58]line ОКРУГЛЕНИЕ: -0.44 [19:08:58]line ИТОГО: 700.00 [19:08:58]line Внесено: 700.00 [19:08:58]line СДАЧА: 0.00 [19:08:58]line НСП 1% : 6.20 [19:08:58]line НДС 12% : 74.38 [19:08:58]line Наличными: 700.00 [19:08:58]line Безнал.: 0.00 [19:08:58]line Место: АЗС № 85 "Партнер Нефть" [19:08:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:08:58]line СНО: Общий режим [19:08:58]line Чек 344 22.10.2024 19:08 [19:08:58]line Смена: 195 ФФД: 1.0 [19:08:58]line ЗНМ: 0300000167 [19:08:58]line РНМ: 0000000000156251 [19:08:58]line Версия ККМ: v1.0 [19:08:58]line ФМ: 0000000000963346 [19:08:58]line ФД: 70396 [19:08:58]line ФПД: 206571295546477 [19:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70396&fm=206571295546477&tin=02508201610067®Number=0000000000156251&sum=70000 [19:08:59]OFD Sender: Processing packet 70396 [packets to send 18, broken 17] [19:08:59]ProducePacketName [19:08:59]name=ofd_packets/00070396 [19:08:59]OFD Sender: To server: pG, [19:08:59]CommunicateWithHost lk.salyk.kg:30040 [19:08:59]ConnectInit lk.salyk.kg [19:08:59]written 0, free lines is 4095 [19:08:59]Connected sock=10 [19:08: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 34 36 0F 01 00 00 C6 80 07 01 37 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 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 58 01 00 00 F4 03 04 00 49 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 12 01 00 35 04 06 00 BB E0 20 B1 1C 6D FA 51 14 17 9D 9D 4C 08 [19:08: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 34 36 4F 00 00 00 6D 99 47 00 6A 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 34 36 10 04 04 00 FC 12 01 00 F4 03 04 00 E9 A1 17 67 B6 04 01 00 00 EF 11 5A D3 6F 69 C9 F5 [19:08:59]CommunicateWithHost err = 0 [19:08:59]CheckOFDResponse [19:08:59]1017 (14) - 77093643461234 [19:08:59]1041 (16) - 0000000000963346 [19:08:59]1040 (4) - 70396 [19:08:59]1012 (4) - 22.10.2024 13:00 [19:08:59]1206 (1) - 0 [19:08:59]OFD Sender: Remove packet 70396 [19:08:59]ProducePacketName [19:08:59]name=ofd_packets/00070396 [19:08:59]NVStorageDeleteData [19:08:59]Write to MH i2c: 01 00 00 37 1C 53 [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: 01 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: 01 07 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: 01 07 00 37 1C 00 00 00 00 00 F7 0C 5D [19:08:59]RasterBufferAndPrint [19:08:59]line [19:08:59]line [19:08:59]line [19:08:59]line [19:08:59]line [19:08:59]written 0, free lines is 3326 [19:08:59]MH_Cut [19:08:59]Write to MH i2c: D1 01 00 3E 1C 01 2C [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: D1 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: D1 01 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: D1 01 00 3E 1C 00 2B [19:08:59]Write to MH i2c: 01 00 00 3F 1C 5B [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]OFD Sender: No OFD packet to send [19:09:00]*** Cut start [19:09:00]*** Partial cut [19:09:00]*** CUTSNS_PIN = 1 [19:09:00]*** CUTSNS_PIN = 0 [19:09:00]*** Brake cut motor [19:09:00]Read from MH i2c: 01 [19:09:00]MH_I2C_Read... [19:09:00]*** Stop cut motor [19:09:00]*** Cut end [19:09:00]Read from MH i2c: 01 07 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: 01 07 00 3F 1C 00 00 00 00 00 FF 0F 70 [19:09:00]process_action close_receipt done [19:09:00]requested_data is exist [19:09:00]produce_requested_data [19:09:00]requested_item fm.sn is exist - process it [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 11 00 00 [19:09:00]Write to MH i2c: E2 08 00 40 1C 80 11 00 00 00 00 00 00 D6 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 40 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [19:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:09:00]wFMCommunicate OK [19:09:00]requested_item fd.num is exist - process it [19:09:00]SAM_PROTO_GetFieldsCounters [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 13 00 00 [19:09:00]Write to MH i2c: E2 08 00 41 1C 80 13 00 00 00 00 00 00 D9 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 62 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 62 00 41 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 12 01 00 0E 04 04 00 C3 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 D1 [19:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 12 01 00 0E 04 04 00 C3 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 [19:09:01]wFMCommunicate OK [19:09:01]SAM_PROTO_GetFieldsCounters done [19:09:01]requested_item shift.num is exist - process it [19:09:01]requested_item shift.opened is exist - process it [19:09:01]req_shift_opened [19:09:01]FM_GetShiftState [19:09:01]SAM_PROTO_GetShiftState [19:09:01]wFMCommunicate request_size=4 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 13 01 00 [19:09:01]Write to MH i2c: E2 08 00 42 1C 80 13 01 00 00 00 00 00 DB [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0E 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0E 00 42 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [19:09:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:09:01]wFMCommunicate OK [19:09:01]SAM_PROTO_GetShiftState done [19:09:01]FM_GetShiftState done [19:09:01]req_shift_opened done [19:09:01]requested_item shift.open_date is exist - process it [19:09:01]req_shift_open_date [19:09:01]req_shift_open_date done [19:09:01]produce_requested_data done [19:09:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70396,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:09:01]process_action_free close_receipt [19:09:01]json_value_free [19:09:01]json_value_free done [19:09:01]process_json_proto returns [19:09:01]Send response to host [19:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70396,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:09:01]free response buf [19:09:01]execute_script done [19:09:01]execute_script returns [19:09:01]free content buf [19:09:01]Sock 7.Close socket [19:09:01]Sock 7.Thread stoped [19:09:04]OFD Sender: No OFD packet to send [19:09:09]accept exits with 9 [19:09:09]New connection [19:09:09]New thread 3066699108 created [19:09:09]Thread 3066555748 joined [19:09:09]Waiting for new connection... [19:09:09] Sock 9.Parse request [19:09:09]Sock 9.Check first char [19:09:09]Sock 9.First char is OK [19:09:09]request: POST /json_proto HTTP/1.0 [19:09:09]Method: POST [19:09:09]URL: /json_proto [19:09:09]Method is POST - this is cgi request [19:09:09]url: /json_proto [19:09:09]query_string will be loaded in cgi processing [19:09:09]execute_cgi json_proto POST (null) [19:09:09]execute_cgi path=json_proto method=POST [19:09:09]POST find Content-Length [19:09:09]Host: 172.17.50.3:8080 [19:09:09]Content-Length: 776 [19:09:09]Content-Type: application/json [19:09:09] [19:09:09]POST finish read [19:09:09]Found Content-Length = 776 [19:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:09]execute_script... [19:09: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 : (1)2886163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "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" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:09]POST & json_proto [19:09:09]process_json_proto [19:09:09]json parsed OK: [19:09:09]protocol is kg_v1.0 [19:09:09]action value=close_receipt [19:09:09]process_action close_receipt [19:09:09]cmd_close_receipt [19:09:09]MH_GetDate [19:09:09]Write to MH i2c: F0 00 00 43 1C 4E [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 43 1C 00 56 F8 17 67 6B 98 1E 66 AA [19:09:09]GetLastDocTimeStamp 1729624137 [19:09:09]current date 1729624150 [19:09:09]FM_GetShiftState [19:09:09]SAM_PROTO_GetShiftState [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 13 01 00 [19:09:09]Write to MH i2c: E2 08 00 44 1C 80 13 01 00 00 00 00 00 DD [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 44 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CB [19:09:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetShiftState done [19:09:09]FM_GetShiftState done [19:09:09]opened in 1729555832 [19:09:09]opened+sec_in_day 1729642232 [19:09:09]quantity*price = 200025 [19:09:09]sum+1 = 200026 [19:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 345 22.10.2024 19:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70397 ФПД: 158034405815740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70397&fm=158034405815740&tin=02508201610067®Number=0000000000156251&sum=200025 [19:09:10]StoreToDocumentArchive [19:09:10]shift 195 fd 70397 [19:09:10]save to /storage/0195/doc_00070397 [19:09:10]save last doc name /storage/0195/doc_00070397 to /storage/kkm_last_doc_name [19:09:10]save OK [19:09:10]Clear old archive folders... [19:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:09:10]tlvbuf is 00ED9A70 [19:09:10]SAM_PROTO_ClearQueue [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 09 00 00 [19:09:10]Write to MH i2c: E2 08 00 51 1C 80 09 00 00 00 00 00 00 DF [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 51 1C 00 90 00 E1 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_ClearQueue done [19:09:10]KKMCreateOFDPacket [19:09:10]OFDProtocolAddRootSTLVToBuf [19:09:10]FM_MakeSignedData [19:09:10]FM_MakeSignedData [19:09:10]SAM_PROTO_SignData [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 01 02 [19:09:10]Write to MH i2c: E2 08 00 52 1C 80 0D 01 02 00 00 00 00 E7 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 52 1C 00 90 00 E2 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=255 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 12 01 [19:09:10]Write to MH i2c: E2 02 01 53 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 12 01 00 00 A8 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 03 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [19:09:11]RAPDU: 90 00 [19:09:11]wFMCommunicate OK [19:09:11]wFMCommunicate request_size=16 [19:09:11]MH_SAM_APDU [19:09:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8F BB 40 9E F5 BC [19:09:11]Write to MH i2c: E2 13 00 54 1C 80 0D 02 02 0B 00 00 35 04 06 00 8F BB 40 9E F5 BC 00 00 18 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 03 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [19:09:11]RAPDU: 90 00 [19:09:11]wFMCommunicate OK [19:09:11]wFMCommunicate request_size=4 [19:09:11]MH_SAM_APDU [19:09:11]CAPDU: 80 0D 03 02 [19:09:11]Write to MH i2c: E2 08 00 55 1C 80 0D 03 02 00 00 00 00 EC [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0B 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0B 00 55 1C 00 05 72 67 E8 1A 3D 3D AE 90 00 F5 [19:09:11]RAPDU: 05 72 67 E8 1A 3D 3D AE 90 00 [19:09:11]wFMCommunicate OK [19:09:11]SAM_PROTO_SignData done [19:09:11]FM_MakeSignedData done [19:09:11]CreateOFDProtocolMessage [19:09:11]wFMCommunicate request_size=4 [19:09:11]MH_SAM_APDU [19:09:11]CAPDU: 80 11 00 00 [19:09:11]Write to MH i2c: E2 08 00 56 1C 80 11 00 00 00 00 00 00 EC [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 17 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 17 00 56 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [19:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:09:11]wFMCommunicate OK [19:09:11]CreateOFDProtocolMessage done [19:09:11]OFDSenderStorePacket 70397 [19:09:11]StoreOFDPacket docnum=70397 [19:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8F 4F 0D 01 D6 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 12 01 00 35 04 06 00 8F BB 40 9E F5 BC 05 72 67 E8 1A 3D 3D AE [19:09:11]CheckFolder [19:09:11]dirname=/storage/ofd_packets [19:09:11]CheckFolder done [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00070397 [19:09:11]NVStorageSaveData ofd_packets/00070397 [19:09:11]File name is /storage/ofd_packets/00070397 [19:09:11]Write 307 bytes [19:09:11]NVStorageSaveData done [19:09:11]OFDSenderStorePacket done [19:09:11]KKMCreateOFDPacket done [19:09:11]NVStorageSaveData kkm_last_timestamp [19:09:11]File name is /storage/kkm_last_timestamp [19:09:11]Write 4 bytes [19:09:11]NVStorageSaveData done [19:09:11]ExternCall_PrintAddStr [19:09:11]wPrintStart [19:09:11]Write to MH i2c: 01 00 00 57 1C 73 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 57 1C 00 00 00 00 00 FF 0F 88 [19:09:11]RasterBufferAndPrint [19:09:11]line Счет N : (1)2886163 [19:09:11]line ИНН: 02508201610067 [19:09:11]line Контрольно-Кассовый Чек [19:09:11]line ПРОДАЖА [19:09:11]line ТРК (МРК, ГНК) : 31 [19:09:11]line Товар: 2710194240 [19:09:11]line D-ENERGY Дт-К-2 [19:09:11]line 25.910 * 77.20 [19:09:11]line = 2000.25 [19:09:11]line НДС 12% НСП 1% [19:09:11]line > о реализуемом товаре [19:09:11]line ИТОГО: 2000.25 [19:09:11]line НСП 1% : 17.70 [19:09:11]line НДС 12% : 212.42 [19:09:11]line Наличными: 0.00 [19:09:11]line Безнал.: 2000.25 [19:09:11]line Место: АЗС № 85 "Партнер Нефть" [19:09:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:09:11]line СНО: Общий режим [19:09:11]line Чек 345 22.10.2024 19:09 [19:09:11]line Смена: 195 ФФД: 1.0 [19:09:11]line ЗНМ: 0300000167 [19:09:11]line РНМ: 0000000000156251 [19:09:11]line Версия ККМ: v1.0 [19:09:11]line Платежная система: Mbank [19:09:11]line ФМ: 0000000000963346 [19:09:11]line ФД: 70397 [19:09:11]line ФПД: 158034405815740 [19:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70397&fm=158034405815740&tin=02508201610067®Number=0000000000156251&sum=200025 [19:09:11]OFD Sender: Processing packet 70397 [packets to send 18, broken 17] [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00070397 [19:09:11]OFD Sender: To server: pG, [19:09:11]CommunicateWithHost lk.salyk.kg:30040 [19:09:11]ConnectInit lk.salyk.kg [19:09:11]written 0, free lines is 4095 [19:09:11]Connected sock=10 [19:09: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 34 36 15 01 00 00 8F 4F 0D 01 D6 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 12 01 00 35 04 06 00 8F BB 40 9E F5 BC 05 72 67 E8 1A 3D 3D AE [19:09: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 34 36 4F 00 00 00 2A 36 47 00 D2 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 34 36 10 04 04 00 FD 12 01 00 F4 03 04 00 F6 A1 17 67 B6 04 01 00 00 A3 7C 22 16 19 45 03 F4 [19:09:11]CommunicateWithHost err = 0 [19:09:11]CheckOFDResponse [19:09:11]1017 (14) - 77093643461234 [19:09:11]1041 (16) - 0000000000963346 [19:09:11]1040 (4) - 70397 [19:09:11]1012 (4) - 22.10.2024 13:00 [19:09:11]1206 (1) - 0 [19:09:11]OFD Sender: Remove packet 70397 [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00070397 [19:09:11]NVStorageDeleteData [19:09:12]Write to MH i2c: 01 00 00 80 1C 9C [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: 01 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: 01 07 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 2D 0D DD [19:09:12]RasterBufferAndPrint [19:09:12]line [19:09:12]line [19:09:12]line [19:09:12]line [19:09:12]line [19:09:12]written 0, free lines is 3380 [19:09:12]MH_Cut [19:09:12]Write to MH i2c: D1 01 00 87 1C 01 75 [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: D1 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: D1 01 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: D1 01 00 87 1C 00 74 [19:09:12]Write to MH i2c: 01 00 00 88 1C A4 [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]OFD Sender: No OFD packet to send [19:09:12]*** Cut start [19:09:12]*** Partial cut [19:09:12]*** CUTSNS_PIN = 1 [19:09:12]*** CUTSNS_PIN = 0 [19:09:13]*** Brake cut motor [19:09:13]Read from MH i2c: 01 [19:09:13]MH_I2C_Read... [19:09:13]*** Stop cut motor [19:09:13]*** Cut end [19:09:13]Read from MH i2c: 01 07 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 FF 0F B9 [19:09:13]process_action close_receipt done [19:09:13]requested_data is exist [19:09:13]produce_requested_data [19:09:13]requested_item fm.sn is exist - process it [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 11 00 00 [19:09:13]Write to MH i2c: E2 08 00 89 1C 80 11 00 00 00 00 00 00 1F [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 89 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [19:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:09:13]wFMCommunicate OK [19:09:13]requested_item fd.num is exist - process it [19:09:13]SAM_PROTO_GetFieldsCounters [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 00 00 [19:09:13]Write to MH i2c: E2 08 00 8A 1C 80 13 00 00 00 00 00 00 22 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 62 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 62 00 8A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 12 01 00 0E 04 04 00 C3 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 1E [19:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 12 01 00 0E 04 04 00 C3 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 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetFieldsCounters done [19:09:13]requested_item shift.num is exist - process it [19:09:13]requested_item shift.opened is exist - process it [19:09:13]req_shift_opened [19:09:13]FM_GetShiftState [19:09:13]SAM_PROTO_GetShiftState [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 01 00 [19:09:13]Write to MH i2c: E2 08 00 8B 1C 80 13 01 00 00 00 00 00 24 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 8B 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 12 [19:09:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetShiftState done [19:09:13]FM_GetShiftState done [19:09:13]req_shift_opened done [19:09:13]requested_item shift.open_date is exist - process it [19:09:13]req_shift_open_date [19:09:13]req_shift_open_date done [19:09:13]produce_requested_data done [19:09:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70397,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:09:13]process_action_free close_receipt [19:09:13]json_value_free [19:09:13]json_value_free done [19:09:13]process_json_proto returns [19:09:13]Send response to host [19:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70397,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:09:13]free response buf [19:09:13]execute_script done [19:09:13]execute_script returns [19:09:13]free content buf [19:09:13]Sock 9.Close socket [19:09:13]Sock 9.Thread stoped [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:06]accept exits with 7 [19:10:06]New connection [19:10:06]New thread 3066555748 created [19:10:06]Thread 3066699108 joined [19:10:06]Waiting for new connection... [19:10:06] Sock 7.Parse request [19:10:06]Sock 7.Check first char [19:10:06]Sock 7.First char is OK [19:10:06]request: POST /json_proto HTTP/1.0 [19:10:06]Method: POST [19:10:06]URL: /json_proto [19:10:06]Method is POST - this is cgi request [19:10:06]url: /json_proto [19:10:06]query_string will be loaded in cgi processing [19:10:06]execute_cgi json_proto POST (null) [19:10:06]execute_cgi path=json_proto method=POST [19:10:06]POST find Content-Length [19:10:06]Host: 172.17.50.3:8080 [19:10:06]Content-Length: 683 [19:10:06]Content-Type: application/json [19:10:06] [19:10:06]POST finish read [19:10:06]Found Content-Length = 683 [19:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.700, "sum" : 1050.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:06]execute_script... [19:10: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)2886166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.700, "sum" : 1050.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:06]POST & json_proto [19:10:06]process_json_proto [19:10:06]json parsed OK: [19:10:06]protocol is kg_v1.0 [19:10:06]action value=close_receipt [19:10:06]process_action close_receipt [19:10:06]cmd_close_receipt [19:10:06]MH_GetDate [19:10:06]Write to MH i2c: F0 00 00 8C 1C 97 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 09 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 09 00 8C 1C 00 8F F8 17 67 6B 98 1E 66 2C [19:10:06]GetLastDocTimeStamp 1729624150 [19:10:06]current date 1729624207 [19:10:06]FM_GetShiftState [19:10:06]SAM_PROTO_GetShiftState [19:10:06]wFMCommunicate request_size=4 [19:10:06]MH_SAM_APDU [19:10:06]CAPDU: 80 13 01 00 [19:10:06]Write to MH i2c: E2 08 00 8D 1C 80 13 01 00 00 00 00 00 26 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:06]Read from MH i2c: E2 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 8D 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 14 [19:10:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:10:06]wFMCommunicate OK [19:10:06]SAM_PROTO_GetShiftState done [19:10:06]FM_GetShiftState done [19:10:06]opened in 1729555832 [19:10:06]opened+sec_in_day 1729642232 [19:10:06]quantity*price = 105033 [19:10:06]sum+1 = 105034 [19:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.29 НДС 12% : 111.54 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 346 22.10.2024 19:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70398 ФПД: 6207210405929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70398&fm=6207210405929&tin=02508201610067®Number=0000000000156251&sum=105000 [19:10:07]StoreToDocumentArchive [19:10:07]shift 195 fd 70398 [19:10:07]save to /storage/0195/doc_00070398 [19:10:07]save last doc name /storage/0195/doc_00070398 to /storage/kkm_last_doc_name [19:10:07]save OK [19:10:07]Clear old archive folders... [19:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:07]tlvbuf is 00B45630 [19:10:07]SAM_PROTO_ClearQueue [19:10:07]wFMCommunicate request_size=4 [19:10:07]MH_SAM_APDU [19:10:07]CAPDU: 80 09 00 00 [19:10:07]Write to MH i2c: E2 08 00 9A 1C 80 09 00 00 00 00 00 00 28 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:07]Read from MH i2c: E2 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 9A 1C 00 90 00 2A [19:10:07]RAPDU: 90 00 [19:10:07]wFMCommunicate OK [19:10:07]SAM_PROTO_ClearQueue done [19:10:07]KKMCreateOFDPacket [19:10:07]OFDProtocolAddRootSTLVToBuf [19:10:07]FM_MakeSignedData [19:10:07]FM_MakeSignedData [19:10:07]SAM_PROTO_SignData [19:10:07]wFMCommunicate request_size=4 [19:10:07]MH_SAM_APDU [19:10:07]CAPDU: 80 0D 01 02 [19:10:07]Write to MH i2c: E2 08 00 9B 1C 80 0D 01 02 00 00 00 00 30 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:07]Read from MH i2c: E2 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 9B 1C 00 90 00 2B [19:10:07]RAPDU: 90 00 [19:10:07]wFMCommunicate OK [19:10:07]wFMCommunicate request_size=255 [19:10:07]MH_SAM_APDU [19:10: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 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 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 8F F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 12 01 00 35 04 06 00 05 [19:10:07]Write to MH i2c: E2 02 01 9C 1C 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 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 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 8F F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 12 01 00 35 04 06 00 05 00 00 05 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 9C 1C 00 90 00 2C [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=10 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 02 02 05 A5 3A 92 40 29 [19:10:08]Write to MH i2c: E2 0D 00 9D 1C 80 0D 02 02 05 00 A5 3A 92 40 29 00 00 17 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 9D 1C 00 90 00 2D [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 03 02 [19:10:08]Write to MH i2c: E2 08 00 9E 1C 80 0D 03 02 00 00 00 00 35 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 9E 1C 00 CC 90 DE 2F 3F A1 8A 7F 90 00 88 [19:10:08]RAPDU: CC 90 DE 2F 3F A1 8A 7F 90 00 [19:10:08]wFMCommunicate OK [19:10:08]SAM_PROTO_SignData done [19:10:08]FM_MakeSignedData done [19:10:08]CreateOFDProtocolMessage [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 11 00 00 [19:10:08]Write to MH i2c: E2 08 00 9F 1C 80 11 00 00 00 00 00 00 35 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 9F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [19:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:08]wFMCommunicate OK [19:10:08]CreateOFDProtocolMessage done [19:10:08]OFDSenderStorePacket 70398 [19:10:08]StoreOFDPacket docnum=70398 [19:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 0A 07 01 8C 76 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 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 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 8F F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 12 01 00 35 04 06 00 05 A5 3A 92 40 29 CC 90 DE 2F 3F A1 8A 7F [19:10:08]CheckFolder [19:10:08]dirname=/storage/ofd_packets [19:10:08]CheckFolder done [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00070398 [19:10:08]NVStorageSaveData ofd_packets/00070398 [19:10:08]File name is /storage/ofd_packets/00070398 [19:10:08]Write 301 bytes [19:10:08]NVStorageSaveData done [19:10:08]OFDSenderStorePacket done [19:10:08]KKMCreateOFDPacket done [19:10:08]NVStorageSaveData kkm_last_timestamp [19:10:08]File name is /storage/kkm_last_timestamp [19:10:08]Write 4 bytes [19:10:08]NVStorageSaveData done [19:10:08]ExternCall_PrintAddStr [19:10:08]wPrintStart [19:10:08]Write to MH i2c: 01 00 00 A0 1C BC [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [19:10:08]RasterBufferAndPrint [19:10:08]line Счет N : (1)2886166 [19:10:08]line ИНН: 02508201610067 [19:10:08]line Контрольно-Кассовый Чек [19:10:08]line ПРОДАЖА [19:10:08]line ТРК (МРК, ГНК) : 12 [19:10:08]line Товар: 2710124130 [19:10:08]line Аи-92-К-5 [19:10:08]line 15.700 * 66.90 [19:10:08]line = 1050.33 [19:10:08]line НДС 12% НСП 1% [19:10:08]line > о реализуемом товаре [19:10:08]line ОКРУГЛЕНИЕ: -0.33 [19:10:08]line ИТОГО: 1050.00 [19:10:08]line Внесено: 1050.00 [19:10:08]line СДАЧА: 0.00 [19:10:08]line НСП 1% : 9.29 [19:10:08]line НДС 12% : 111.54 [19:10:08]line Наличными: 1050.00 [19:10:08]line Безнал.: 0.00 [19:10:08]line Место: АЗС № 85 "Партнер Нефть" [19:10:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:10:08]line СНО: Общий режим [19:10:08]line Чек 346 22.10.2024 19:10 [19:10:08]line Смена: 195 ФФД: 1.0 [19:10:08]line ЗНМ: 0300000167 [19:10:08]line РНМ: 0000000000156251 [19:10:08]line Версия ККМ: v1.0 [19:10:08]line ФМ: 0000000000963346 [19:10:08]line ФД: 70398 [19:10:08]line ФПД: 6207210405929 [19:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70398&fm=6207210405929&tin=02508201610067®Number=0000000000156251&sum=105000 [19:10:08]written 0, free lines is 4095 [19:10:08]OFD Sender: Processing packet 70398 [packets to send 18, broken 17] [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00070398 [19:10:08]OFD Sender: To server: pG, [19:10:08]CommunicateWithHost lk.salyk.kg:30040 [19:10:08]ConnectInit lk.salyk.kg [19:10:08]Connected sock=10 [19:10: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 34 36 0F 01 00 00 58 0A 07 01 8C 76 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 54 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 49 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 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 8F F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 12 01 00 35 04 06 00 05 A5 3A 92 40 29 CC 90 DE 2F 3F A1 8A 7F [19:10: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 34 36 4F 00 00 00 E8 23 47 00 56 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 12 01 00 F4 03 04 00 2F A2 17 67 B6 04 01 00 00 83 28 99 C3 80 C6 F3 DD [19:10:08]CommunicateWithHost err = 0 [19:10:08]CheckOFDResponse [19:10:08]1017 (14) - 77093643461234 [19:10:08]1041 (16) - 0000000000963346 [19:10:08]1040 (4) - 70398 [19:10:08]1012 (4) - 22.10.2024 13:01 [19:10:08]1206 (1) - 0 [19:10:08]OFD Sender: Remove packet 70398 [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00070398 [19:10:08]NVStorageDeleteData [19:10:08]Write to MH i2c: 01 00 00 CB 1C E7 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 EC 0C E6 [19:10:08]RasterBufferAndPrint [19:10:08]line [19:10:08]line [19:10:08]line [19:10:08]line [19:10:08]line [19:10:08]written 0, free lines is 3314 [19:10:08]MH_Cut [19:10:08]Write to MH i2c: D1 01 00 D2 1C 01 C0 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: D1 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: D1 01 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: D1 01 00 D2 1C 00 BF [19:10:08]Write to MH i2c: 01 00 00 D3 1C EF [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:09]OFD Sender: No OFD packet to send [19:10:09]*** Cut start [19:10:09]*** Partial cut [19:10:09]*** CUTSNS_PIN = 1 [19:10:09]*** CUTSNS_PIN = 0 [19:10:09]*** Brake cut motor [19:10:09]Read from MH i2c: 01 [19:10:09]MH_I2C_Read... [19:10:09]*** Stop cut motor [19:10:10]*** Cut end [19:10:10]Read from MH i2c: 01 07 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: 01 07 00 D3 1C 00 00 00 00 00 FF 0F 04 [19:10:10]process_action close_receipt done [19:10:10]requested_data is exist [19:10:10]produce_requested_data [19:10:10]requested_item fm.sn is exist - process it [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 11 00 00 [19:10:10]Write to MH i2c: E2 08 00 D4 1C 80 11 00 00 00 00 00 00 6A [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 17 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 17 00 D4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [19:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:10]wFMCommunicate OK [19:10:10]requested_item fd.num is exist - process it [19:10:10]SAM_PROTO_GetFieldsCounters [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 13 00 00 [19:10:10]Write to MH i2c: E2 08 00 D5 1C 80 13 00 00 00 00 00 00 6D [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 62 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 62 00 D5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 12 01 00 0E 04 04 00 C3 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 6D [19:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 12 01 00 0E 04 04 00 C3 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 [19:10:10]wFMCommunicate OK [19:10:10]SAM_PROTO_GetFieldsCounters done [19:10:10]requested_item shift.num is exist - process it [19:10:10]requested_item shift.opened is exist - process it [19:10:10]req_shift_opened [19:10:10]FM_GetShiftState [19:10:10]SAM_PROTO_GetShiftState [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 13 01 00 [19:10:10]Write to MH i2c: E2 08 00 D6 1C 80 13 01 00 00 00 00 00 6F [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 D6 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [19:10:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:10:10]wFMCommunicate OK [19:10:10]SAM_PROTO_GetShiftState done [19:10:10]FM_GetShiftState done [19:10:10]req_shift_opened done [19:10:10]requested_item shift.open_date is exist - process it [19:10:10]req_shift_open_date [19:10:10]req_shift_open_date done [19:10:10]produce_requested_data done [19:10:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70398,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:10:10]process_action_free close_receipt [19:10:10]json_value_free [19:10:10]json_value_free done [19:10:10]process_json_proto returns [19:10:10]Send response to host [19:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70398,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:10:10]free response buf [19:10:10]execute_script done [19:10:10]execute_script returns [19:10:10]free content buf [19:10:10]Sock 7.Close socket [19:10:10]Sock 7.Thread stoped [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:55]accept exits with 9 [19:10:55]New connection [19:10:55]New thread 3066699108 created [19:10:55]Thread 3066555748 joined [19:10:55]Waiting for new connection... [19:10:55] Sock 9.Parse request [19:10:55]Sock 9.Check first char [19:10:55]Sock 9.First char is OK [19:10:55]request: POST /json_proto HTTP/1.0 [19:10:55]Method: POST [19:10:55]URL: /json_proto [19:10:55]Method is POST - this is cgi request [19:10:55]url: /json_proto [19:10:55]query_string will be loaded in cgi processing [19:10:55]execute_cgi json_proto POST (null) [19:10:55]execute_cgi path=json_proto method=POST [19:10:55]POST find Content-Length [19:10:55]Host: 172.17.50.3:8080 [19:10:55]Content-Length: 791 [19:10:55]Content-Type: application/json [19:10:55] [19:10:55]POST finish read [19:10:55]Found Content-Length = 791 [19:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886164", "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" : 0.00, "quantity" : 100.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:55]execute_script... [19:10: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)2886164", "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" : 0.00, "quantity" : 100.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\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:55]POST & json_proto [19:10:55]process_json_proto [19:10:55]json parsed OK: [19:10:55]protocol is kg_v1.0 [19:10:55]action value=close_receipt [19:10:55]process_action close_receipt [19:10:55]cmd_close_receipt [19:10:55]MH_GetDate [19:10:55]Write to MH i2c: F0 00 00 D7 1C E2 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: F0 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: F0 09 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: F0 09 00 D7 1C 00 BF F8 17 67 6B 98 1E 66 A7 [19:10:55]GetLastDocTimeStamp 1729624207 [19:10:55]current date 1729624255 [19:10:55]FM_GetShiftState [19:10:55]SAM_PROTO_GetShiftState [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 13 01 00 [19:10:55]Write to MH i2c: E2 08 00 D8 1C 80 13 01 00 00 00 00 00 71 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0E 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0E 00 D8 1C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [19:10:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_GetShiftState done [19:10:55]FM_GetShiftState done [19:10:55]opened in 1729555832 [19:10:55]opened+sec_in_day 1729642232 [19:10:55]quantity*price = 0 [19:10:55]sum+1 = 1 [19:10:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 347 22.10.2024 19:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 70399 ФПД: 201385873859087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70399&fm=201385873859087&tin=02508201610067®Number=0000000000156251&sum=0 [19:10:56]StoreToDocumentArchive [19:10:56]shift 195 fd 70399 [19:10:56]save to /storage/0195/doc_00070399 [19:10:56]save last doc name /storage/0195/doc_00070399 to /storage/kkm_last_doc_name [19:10:56]save OK [19:10:56]Clear old archive folders... [19:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:56]tlvbuf is 00B12E00 [19:10:56]SAM_PROTO_ClearQueue [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 09 00 00 [19:10:56]Write to MH i2c: E2 08 00 E5 1C 80 09 00 00 00 00 00 00 73 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]SAM_PROTO_ClearQueue done [19:10:56]KKMCreateOFDPacket [19:10:56]OFDProtocolAddRootSTLVToBuf [19:10:56]FM_MakeSignedData [19:10:56]FM_MakeSignedData [19:10:56]SAM_PROTO_SignData [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 0D 01 02 [19:10:56]Write to MH i2c: E2 08 00 E6 1C 80 0D 01 02 00 00 00 00 7B [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=255 [19:10:56]MH_SAM_APDU [19:10: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 A0 86 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 5B 01 00 00 F4 03 04 00 BF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 12 01 00 35 04 06 00 B7 28 CD 79 [19:10:56]Write to MH i2c: E2 02 01 E7 1C 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 A0 86 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 5B 01 00 00 F4 03 04 00 BF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 12 01 00 35 04 06 00 B7 28 CD 79 00 00 84 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=7 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 0D 02 02 02 62 0F [19:10:56]Write to MH i2c: E2 0A 00 E8 1C 80 0D 02 02 02 00 62 0F 00 00 F3 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 E8 1C 00 90 00 78 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 0D 03 02 [19:10:56]Write to MH i2c: E2 08 00 E9 1C 80 0D 03 02 00 00 00 00 80 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0B 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0B 00 E9 1C 00 F8 C9 AF 1C 5B B2 86 DE 90 00 7E [19:10:56]RAPDU: F8 C9 AF 1C 5B B2 86 DE 90 00 [19:10:56]wFMCommunicate OK [19:10:56]SAM_PROTO_SignData done [19:10:56]FM_MakeSignedData done [19:10:56]CreateOFDProtocolMessage [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 11 00 00 [19:10:56]Write to MH i2c: E2 08 00 EA 1C 80 11 00 00 00 00 00 00 80 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 EA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [19:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:56]wFMCommunicate OK [19:10:56]CreateOFDProtocolMessage done [19:10:56]OFDSenderStorePacket 70399 [19:10:56]StoreOFDPacket docnum=70399 [19:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 C1 B1 04 01 FC D9 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 A0 86 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 5B 01 00 00 F4 03 04 00 BF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 12 01 00 35 04 06 00 B7 28 CD 79 62 0F F8 C9 AF 1C 5B B2 86 DE [19:10:56]CheckFolder [19:10:56]dirname=/storage/ofd_packets [19:10:56]CheckFolder done [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00070399 [19:10:56]NVStorageSaveData ofd_packets/00070399 [19:10:56]File name is /storage/ofd_packets/00070399 [19:10:56]Write 298 bytes [19:10:56]NVStorageSaveData done [19:10:56]OFDSenderStorePacket done [19:10:56]KKMCreateOFDPacket done [19:10:56]NVStorageSaveData kkm_last_timestamp [19:10:56]File name is /storage/kkm_last_timestamp [19:10:56]Write 4 bytes [19:10:56]NVStorageSaveData done [19:10:56]ExternCall_PrintAddStr [19:10:56]wPrintStart [19:10:56]Write to MH i2c: 01 00 00 EB 1C 07 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 EB 1C 00 00 00 00 00 FF 0F 1C [19:10:56]RasterBufferAndPrint [19:10:56]line Счет N : (1)2886164 [19:10:56]line ИНН: 02508201610067 [19:10:56]line Контрольно-Кассовый Чек [19:10:56]line ПРОДАЖА [19:10:56]line ТРК (МРК, ГНК) : 51 [19:10:56]line Товар: 2710194210 [19:10:56]line ДТ-К-5 [19:10:56]line 100.000 * 0.00 [19:10:56]line = 0.00 [19:10:56]line НДС 12% НСП 1% [19:10:56]line > о реализуемом товаре [19:10:56]line ИТОГО: 0.00 [19:10:56]line НСП 1% : 0.00 [19:10:56]line НДС 12% : 0.00 [19:10:56]line Наличными: 0.00 [19:10:56]line Безнал.: 0.00 [19:10:56]line Место: АЗС № 85 "Партнер Нефть" [19:10:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:10:56]line СНО: Общий режим [19:10:56]line Чек 347 22.10.2024 19:10 [19:10:56]line Смена: 195 ФФД: 1.0 [19:10:56]line ЗНМ: 0300000167 [19:10:56]line РНМ: 0000000000156251 [19:10:56]line Версия ККМ: v1.0 [19:10:56]line Талоны: Топливная Карта [19:10:56]line 31095 [19:10:56]line ФМ: 0000000000963346 [19:10:56]line ФД: 70399 [19:10:56]line ФПД: 201385873859087 [19:10:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70399&fm=201385873859087&tin=02508201610067®Number=0000000000156251&sum=0 [19:10:57]OFD Sender: Processing packet 70399 [packets to send 18, broken 17] [19:10:57]ProducePacketName [19:10:57]name=ofd_packets/00070399 [19:10:57]OFD Sender: To server: pG, [19:10:57]CommunicateWithHost lk.salyk.kg:30040 [19:10:57]ConnectInit lk.salyk.kg [19:10:57]written 0, free lines is 4095 [19:10:57]Connected sock=10 [19:10: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 34 36 0C 01 00 00 C1 B1 04 01 FC D9 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 A0 86 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 5B 01 00 00 F4 03 04 00 BF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 12 01 00 35 04 06 00 B7 28 CD 79 62 0F F8 C9 AF 1C 5B B2 86 DE [19:10: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 34 36 4F 00 00 00 67 DD 47 00 4F 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 34 36 10 04 04 00 FF 12 01 00 F4 03 04 00 5F A2 17 67 B6 04 01 00 00 A1 CE 04 71 12 D6 78 1F [19:10:57]CommunicateWithHost err = 0 [19:10:57]CheckOFDResponse [19:10:57]1017 (14) - 77093643461234 [19:10:57]1041 (16) - 0000000000963346 [19:10:57]1040 (4) - 70399 [19:10:57]1012 (4) - 22.10.2024 13:02 [19:10:57]1206 (1) - 0 [19:10:57]OFD Sender: Remove packet 70399 [19:10:57]ProducePacketName [19:10:57]name=ofd_packets/00070399 [19:10:57]NVStorageDeleteData [19:10:57]Write to MH i2c: 01 00 00 15 1D 32 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 07 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 07 00 15 1D 00 00 00 00 00 07 0D 4D [19:10:57]RasterBufferAndPrint [19:10:57]line [19:10:57]line [19:10:57]line [19:10:57]line [19:10:57]line [19:10:57]written 0, free lines is 3343 [19:10:57]MH_Cut [19:10:57]Write to MH i2c: D1 01 00 1C 1D 01 0B [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: D1 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: D1 01 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: D1 01 00 1C 1D 00 0A [19:10:57]Write to MH i2c: 01 00 00 1D 1D 3A [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]OFD Sender: No OFD packet to send [19:10:58]*** Cut start [19:10:58]*** Partial cut [19:10:58]*** CUTSNS_PIN = 1 [19:10:58]*** CUTSNS_PIN = 0 [19:10:58]*** Brake cut motor [19:10:58]Read from MH i2c: 01 [19:10:58]MH_I2C_Read... [19:10:58]*** Stop cut motor [19:10:58]*** Cut end [19:10:58]Read from MH i2c: 01 07 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: 01 07 00 1D 1D 00 00 00 00 00 FF 0F 4F [19:10:58]process_action close_receipt done [19:10:58]requested_data is exist [19:10:58]produce_requested_data [19:10:58]requested_item fm.sn is exist - process it [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 11 00 00 [19:10:58]Write to MH i2c: E2 08 00 1E 1D 80 11 00 00 00 00 00 00 B5 [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 17 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 17 00 1E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [19:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:58]wFMCommunicate OK [19:10:58]requested_item fd.num is exist - process it [19:10:58]SAM_PROTO_GetFieldsCounters [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 13 00 00 [19:10:58]Write to MH i2c: E2 08 00 1F 1D 80 13 00 00 00 00 00 00 B8 [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 1F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 12 01 00 0E 04 04 00 C3 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 BC [19:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 12 01 00 0E 04 04 00 C3 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 [19:10:58]wFMCommunicate OK [19:10:58]SAM_PROTO_GetFieldsCounters done [19:10:58]requested_item shift.num is exist - process it [19:10:58]requested_item shift.opened is exist - process it [19:10:58]req_shift_opened [19:10:58]FM_GetShiftState [19:10:58]SAM_PROTO_GetShiftState [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 13 01 00 [19:10:58]Write to MH i2c: E2 08 00 20 1D 80 13 01 00 00 00 00 00 BA [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 0E 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 0E 00 20 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A8 [19:10:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:10:59]wFMCommunicate OK [19:10:59]SAM_PROTO_GetShiftState done [19:10:59]FM_GetShiftState done [19:10:59]req_shift_opened done [19:10:59]requested_item shift.open_date is exist - process it [19:10:59]req_shift_open_date [19:10:59]req_shift_open_date done [19:10:59]produce_requested_data done [19:10:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70399,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:10:59]process_action_free close_receipt [19:10:59]json_value_free [19:10:59]json_value_free done [19:10:59]process_json_proto returns [19:10:59]Send response to host [19:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70399,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:10:59]free response buf [19:10:59]execute_script done [19:10:59]execute_script returns [19:10:59]free content buf [19:10:59]Sock 9.Close socket [19:10:59]Sock 9.Thread stoped [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]accept exits with 7 [19:11:42]New connection [19:11:42]New thread 3066555748 created [19:11:42]Thread 3066699108 joined [19:11:42]Waiting for new connection... [19:11:42] Sock 7.Parse request [19:11:42]Sock 7.Check first char [19:11:42]Sock 7.First char is OK [19:11:42]request: POST /json_proto HTTP/1.0 [19:11:42]Method: POST [19:11:42]URL: /json_proto [19:11:42]Method is POST - this is cgi request [19:11:42]url: /json_proto [19:11:42]query_string will be loaded in cgi processing [19:11:42]execute_cgi json_proto POST (null) [19:11:42]execute_cgi path=json_proto method=POST [19:11:42]POST find Content-Length [19:11:42]Host: 172.17.50.3:8080 [19:11:42]Content-Length: 978 [19:11:42]Content-Type: application/json [19:11:42] [19:11:42]POST finish read [19:11:42]Found Content-Length = 978 [19:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [19:11:42]execute_script... [19:11: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)2886168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [19:11:42]POST & json_proto [19:11:42]process_json_proto [19:11:42]json parsed OK: [19:11:42]protocol is kg_v1.0 [19:11:42]action value=close_receipt [19:11:42]process_action close_receipt [19:11:42]cmd_close_receipt [19:11:42]MH_GetDate [19:11:42]Write to MH i2c: F0 00 00 21 1D 2D [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 09 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: F0 09 00 21 1D 00 EF F8 17 67 6B 98 1E 66 22 [19:11:42]GetLastDocTimeStamp 1729624255 [19:11:42]current date 1729624303 [19:11:42]FM_GetShiftState [19:11:42]SAM_PROTO_GetShiftState [19:11:42]wFMCommunicate request_size=4 [19:11:42]MH_SAM_APDU [19:11:42]CAPDU: 80 13 01 00 [19:11:42]Write to MH i2c: E2 08 00 22 1D 80 13 01 00 00 00 00 00 BC [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0E 00 22 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AA [19:11:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:11:42]wFMCommunicate OK [19:11:42]SAM_PROTO_GetShiftState done [19:11:42]FM_GetShiftState done [19:11:42]opened in 1729555832 [19:11:42]opened+sec_in_day 1729642232 [19:11:42]quantity*price = 700036 [19:11:42]sum+1 = 700038 [19:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 348 22.10.2024 19:11 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 93.09 сом ФМ: 0000000000963346 ФД: 70400 ФПД: 20393506380382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70400&fm=20393506380382&tin=02508201610067®Number=0000000000156251&sum=700000 [19:11:43]StoreToDocumentArchive [19:11:43]shift 195 fd 70400 [19:11:43]save to /storage/0195/doc_00070400 [19:11:43]save last doc name /storage/0195/doc_00070400 to /storage/kkm_last_doc_name [19:11:43]save OK [19:11:43]Clear old archive folders... [19:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:43]tlvbuf is 00ED4580 [19:11:43]SAM_PROTO_ClearQueue [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 09 00 00 [19:11:43]Write to MH i2c: E2 08 00 2F 1D 80 09 00 00 00 00 00 00 BE [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 2F 1D 00 90 00 C0 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_ClearQueue done [19:11:43]KKMCreateOFDPacket [19:11:43]OFDProtocolAddRootSTLVToBuf [19:11:43]FM_MakeSignedData [19:11:43]FM_MakeSignedData [19:11:43]SAM_PROTO_SignData [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 0D 01 02 [19:11:43]Write to MH i2c: E2 08 00 30 1D 80 0D 01 02 00 00 00 00 C6 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [19:11:43]RAPDU: 90 00 [19:11:43]wFMCommunicate OK [19:11:43]wFMCommunicate request_size=255 [19:11:43]MH_SAM_APDU [19:11: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 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 5C 01 00 00 F4 03 04 00 EF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 13 01 00 35 04 06 00 12 8C 3B B4 [19:11:43]Write to MH i2c: E2 02 01 31 1D 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 5C 01 00 00 F4 03 04 00 EF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 13 01 00 35 04 06 00 12 8C 3B B4 00 00 0D [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [19:11:44]RAPDU: 90 00 [19:11:44]wFMCommunicate OK [19:11:44]wFMCommunicate request_size=7 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 0D 02 02 02 1A 5E [19:11:44]Write to MH i2c: E2 0A 00 32 1D 80 0D 02 02 02 00 1A 5E 00 00 45 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 03 00 32 1D 00 90 00 C3 [19:11:44]RAPDU: 90 00 [19:11:44]wFMCommunicate OK [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 0D 03 02 [19:11:44]Write to MH i2c: E2 08 00 33 1D 80 0D 03 02 00 00 00 00 CB [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0B 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0B 00 33 1D 00 72 40 6E F9 E0 8C 03 E4 90 00 38 [19:11:44]RAPDU: 72 40 6E F9 E0 8C 03 E4 90 00 [19:11:44]wFMCommunicate OK [19:11:44]SAM_PROTO_SignData done [19:11:44]FM_MakeSignedData done [19:11:44]CreateOFDProtocolMessage [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 11 00 00 [19:11:44]Write to MH i2c: E2 08 00 34 1D 80 11 00 00 00 00 00 00 CB [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 17 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 17 00 34 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [19:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:44]wFMCommunicate OK [19:11:44]CreateOFDProtocolMessage done [19:11:44]OFDSenderStorePacket 70400 [19:11:44]StoreOFDPacket docnum=70400 [19:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A7 06 04 01 2A 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 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 5C 01 00 00 F4 03 04 00 EF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 13 01 00 35 04 06 00 12 8C 3B B4 1A 5E 72 40 6E F9 E0 8C 03 E4 [19:11:44]CheckFolder [19:11:44]dirname=/storage/ofd_packets [19:11:44]CheckFolder done [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00070400 [19:11:44]NVStorageSaveData ofd_packets/00070400 [19:11:44]File name is /storage/ofd_packets/00070400 [19:11:44]Write 298 bytes [19:11:44]NVStorageSaveData done [19:11:44]OFDSenderStorePacket done [19:11:44]KKMCreateOFDPacket done [19:11:44]NVStorageSaveData kkm_last_timestamp [19:11:44]File name is /storage/kkm_last_timestamp [19:11:44]Write 4 bytes [19:11:44]NVStorageSaveData done [19:11:44]ExternCall_PrintAddStr [19:11:44]wPrintStart [19:11:44]Write to MH i2c: 01 00 00 35 1D 52 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 35 1D 00 00 00 00 00 FF 0F 67 [19:11:44]RasterBufferAndPrint [19:11:44]line Счет N : (1)2886168 [19:11:44]line ИНН: 02508201610067 [19:11:44]line Контрольно-Кассовый Чек [19:11:44]line ПРОДАЖА [19:11:44]line ТРК (МРК, ГНК) : 61 [19:11:44]line Товар: 2710194210 [19:11:44]line ДТ-К-5 [19:11:44]line 93.090 * 75.20 [19:11:44]line = 7000.37 [19:11:44]line НДС 12% НСП 1% [19:11:44]line > о реализуемом товаре [19:11:44]line ОКРУГЛЕНИЕ: -0.37 [19:11:44]line ИТОГО: 7000.00 [19:11:44]line Внесено: 7000.00 [19:11:44]line СДАЧА: 0.00 [19:11:44]line НСП 1% : 61.95 [19:11:44]line НДС 12% : 743.40 [19:11:44]line Наличными: 7000.00 [19:11:44]line Безнал.: 0.00 [19:11:44]line Место: АЗС № 85 "Партнер Нефть" [19:11:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:11:44]line СНО: Общий режим [19:11:44]line Чек 348 22.10.2024 19:11 [19:11:44]line Смена: 195 ФФД: 1.0 [19:11:44]line ЗНМ: 0300000167 [19:11:44]line РНМ: 0000000000156251 [19:11:44]line Версия ККМ: v1.0 [19:11:44]line [19:11:44]line Дисконтная программа [19:11:44]line ДТ [19:11:44]line номер 85 [19:11:44]line сэкономлено 93.09 сом [19:11:44]line ФМ: 0000000000963346 [19:11:44]line ФД: 70400 [19:11:44]line ФПД: 20393506380382 [19:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70400&fm=20393506380382&tin=02508201610067®Number=0000000000156251&sum=700000 [19:11:44]OFD Sender: Processing packet 70400 [packets to send 18, broken 17] [19:11:44]ProducePacketName [19:11:44]name=ofd_packets/00070400 [19:11:44]OFD Sender: To server: pG, [19:11:44]CommunicateWithHost lk.salyk.kg:30040 [19:11:44]ConnectInit lk.salyk.kg [19:11:44]written 0, free lines is 4095 [19:11:44]Connected sock=10 [19:11: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 34 36 0C 01 00 00 A7 06 04 01 2A 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 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 5C 01 00 00 F4 03 04 00 EF F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 13 01 00 35 04 06 00 12 8C 3B B4 1A 5E 72 40 6E F9 E0 8C 03 E4 [19: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 34 36 4F 00 00 00 96 58 47 00 16 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 13 01 00 F4 03 04 00 8F A2 17 67 B6 04 01 00 00 B9 22 11 D3 02 06 CC C8 [19:11:45]CommunicateWithHost err = 0 [19:11:45]CheckOFDResponse [19:11:45]1017 (14) - 77093643461234 [19:11:45]1041 (16) - 0000000000963346 [19:11:45]1040 (4) - 70400 [19:11:45]1012 (4) - 22.10.2024 13:03 [19:11:45]1206 (1) - 0 [19:11:45]OFD Sender: Remove packet 70400 [19:11:45]ProducePacketName [19:11:45]name=ofd_packets/00070400 [19:11:45]NVStorageDeleteData [19:11:45]Write to MH i2c: 01 00 00 65 1D 82 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 9F 0C 34 [19:11:45]RasterBufferAndPrint [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]line [19:11:45]written 0, free lines is 3237 [19:11:45]MH_Cut [19:11:45]Write to MH i2c: D1 01 00 6C 1D 01 5B [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 01 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: D1 01 00 6C 1D 00 5A [19:11:45]Write to MH i2c: 01 00 00 6D 1D 8A [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]OFD Sender: No OFD packet to send [19:11:45]*** Cut start [19:11:45]*** Partial cut [19:11:45]*** CUTSNS_PIN = 1 [19:11:46]*** CUTSNS_PIN = 0 [19:11:46]*** Brake cut motor [19:11:46]Read from MH i2c: 01 [19:11:46]MH_I2C_Read... [19:11:46]*** Stop cut motor [19:11:46]*** Cut end [19:11:46]Read from MH i2c: 01 07 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [19:11:46]process_action close_receipt done [19:11:46]requested_data is exist [19:11:46]produce_requested_data [19:11:46]requested_item fm.sn is exist - process it [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 11 00 00 [19:11:46]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [19:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:46]wFMCommunicate OK [19:11:46]requested_item fd.num is exist - process it [19:11:46]SAM_PROTO_GetFieldsCounters [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 00 00 [19:11:46]Write to MH i2c: E2 08 00 6F 1D 80 13 00 00 00 00 00 00 08 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 62 00 6F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 13 01 00 0E 04 04 00 C3 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 11 [19:11: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 13 01 00 0E 04 04 00 C3 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 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetFieldsCounters done [19:11:46]requested_item shift.num is exist - process it [19:11:46]requested_item shift.opened is exist - process it [19:11:46]req_shift_opened [19:11:46]FM_GetShiftState [19:11:46]SAM_PROTO_GetShiftState [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 13 01 00 [19:11:46]Write to MH i2c: E2 08 00 70 1D 80 13 01 00 00 00 00 00 0A [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:46]Read from MH i2c: E2 0E 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0E 00 70 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F8 [19:11:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_GetShiftState done [19:11:46]FM_GetShiftState done [19:11:46]req_shift_opened done [19:11:46]requested_item shift.open_date is exist - process it [19:11:46]req_shift_open_date [19:11:46]req_shift_open_date done [19:11:46]produce_requested_data done [19:11:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70400,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:11:46]process_action_free close_receipt [19:11:46]json_value_free [19:11:46]json_value_free done [19:11:46]process_json_proto returns [19:11:46]Send response to host [19:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70400,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:11:46]free response buf [19:11:46]execute_script done [19:11:46]execute_script returns [19:11:46]free content buf [19:11:46]Sock 7.Close socket [19:11:46]Sock 7.Thread stoped [19:11:48]accept exits with 9 [19:11:48]New connection [19:11:48]New thread 3066699108 created [19:11:48]Thread 3066555748 joined [19:11:48]Waiting for new connection... [19:11:48] Sock 9.Parse request [19:11:48]Sock 9.Check first char [19:11:48]Sock 9.First char is OK [19:11:48]request: POST /json_proto HTTP/1.0 [19:11:48]Method: POST [19:11:48]URL: /json_proto [19:11:48]Method is POST - this is cgi request [19:11:48]url: /json_proto [19:11:48]query_string will be loaded in cgi processing [19:11:48]execute_cgi json_proto POST (null) [19:11:48]execute_cgi path=json_proto method=POST [19:11:48]POST find Content-Length [19:11:48]Host: 172.17.50.3:8080 [19:11:48]Content-Length: 1034 [19:11:48]Content-Type: application/json [19:11:48] [19:11:48]POST finish read [19:11:48]Found Content-Length = 1034 [19:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70400, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [19:11:48]execute_script... [19:11:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70400, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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 85\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" ] } } [19:11:48]POST & json_proto [19:11:48]process_json_proto [19:11:48]json parsed OK: [19:11:48]protocol is kg_v1.0 [19:11:48]action value=close_receipt [19:11:48]process_action close_receipt [19:11:48]cmd_close_receipt [19:11:48]MH_GetDate [19:11:48]Write to MH i2c: F0 00 00 71 1D 7D [19:11:48]Write i2c OK [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: F0 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: F0 09 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: F0 09 00 71 1D 00 F5 F8 17 67 6B 98 1E 66 78 [19:11:48]GetLastDocTimeStamp 1729624303 [19:11:48]current date 1729624309 [19:11:48]FM_GetShiftState [19:11:48]SAM_PROTO_GetShiftState [19:11:48]wFMCommunicate request_size=4 [19:11:48]MH_SAM_APDU [19:11:48]CAPDU: 80 13 01 00 [19:11:48]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [19:11:48]Write i2c OK [19:11:48]MH_I2C_Read... [19:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:48]Read from MH i2c: E2 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 0E 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FA [19:11:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:11:48]wFMCommunicate OK [19:11:48]SAM_PROTO_GetShiftState done [19:11:48]FM_GetShiftState done [19:11:48]opened in 1729555832 [19:11:48]opened+sec_in_day 1729642232 [19:11:48]quantity*price = 700036 [19:11:48]sum+1 = 700038 [19:11:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7000.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 349 22.10.2024 19:11 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 70400 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 93.09 сом ФМ: 0000000000963346 ФД: 70401 ФПД: 248834647201094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191149&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70401&fm=248834647201094&tin=02508201610067®Number=0000000000156251&sum=700000 [19:11:50]StoreToDocumentArchive [19:11:50]shift 195 fd 70401 [19:11:50]save to /storage/0195/doc_00070401 [19:11:50]save last doc name /storage/0195/doc_00070401 to /storage/kkm_last_doc_name [19:11:50]save OK [19:11:50]Clear old archive folders... [19:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:11:50]tlvbuf is 00B0D710 [19:11:50]SAM_PROTO_ClearQueue [19:11:50]wFMCommunicate request_size=4 [19:11:50]MH_SAM_APDU [19:11:50]CAPDU: 80 09 00 00 [19:11:50]Write to MH i2c: E2 08 00 81 1D 80 09 00 00 00 00 00 00 10 [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [19:11:50]RAPDU: 90 00 [19:11:50]wFMCommunicate OK [19:11:50]SAM_PROTO_ClearQueue done [19:11:50]KKMCreateOFDPacket [19:11:50]OFDProtocolAddRootSTLVToBuf [19:11:50]FM_MakeSignedData [19:11:50]FM_MakeSignedData [19:11:50]SAM_PROTO_SignData [19:11:50]wFMCommunicate request_size=4 [19:11:50]MH_SAM_APDU [19:11:50]CAPDU: 80 0D 01 02 [19:11:50]Write to MH i2c: E2 08 00 82 1D 80 0D 01 02 00 00 00 00 18 [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [19:11:50]RAPDU: 90 00 [19:11:50]wFMCommunicate OK [19:11:50]wFMCommunicate request_size=255 [19:11:50]MH_SAM_APDU [19:11:50]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 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 5D 01 00 00 F4 03 04 00 F5 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 00 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [19:11:50]Write to MH i2c: E2 02 01 83 1D 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 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 5D 01 00 00 F4 03 04 00 F5 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 00 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 CB [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]OFD Sender: No OFD packet to send [19:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [19:11:50]RAPDU: 90 00 [19:11:50]wFMCommunicate OK [19:11:50]wFMCommunicate request_size=35 [19:11:50]MH_SAM_APDU [19:11:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 13 01 00 35 04 06 00 E2 50 54 C1 15 46 [19:11:50]Write to MH i2c: E2 26 00 84 1D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 13 01 00 35 04 06 00 E2 50 54 C1 15 46 00 00 C4 [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [19:11:50]RAPDU: 90 00 [19:11:50]wFMCommunicate OK [19:11:50]wFMCommunicate request_size=4 [19:11:50]MH_SAM_APDU [19:11:50]CAPDU: 80 0D 03 02 [19:11:50]Write to MH i2c: E2 08 00 85 1D 80 0D 03 02 00 00 00 00 1D [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 0B 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 0B 00 85 1D 00 16 F7 A8 5B 64 36 18 12 90 00 F2 [19:11:50]RAPDU: 16 F7 A8 5B 64 36 18 12 90 00 [19:11:50]wFMCommunicate OK [19:11:50]SAM_PROTO_SignData done [19:11:50]FM_MakeSignedData done [19:11:50]CreateOFDProtocolMessage [19:11:50]wFMCommunicate request_size=4 [19:11:50]MH_SAM_APDU [19:11:50]CAPDU: 80 11 00 00 [19:11:50]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:50]Read from MH i2c: E2 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 17 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [19:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:50]wFMCommunicate OK [19:11:50]CreateOFDProtocolMessage done [19:11:50]OFDSenderStorePacket 70401 [19:11:50]StoreOFDPacket docnum=70401 [19:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 4A ED 20 01 5C 3C 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 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 5D 01 00 00 F4 03 04 00 F5 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 00 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 13 01 00 35 04 06 00 E2 50 54 C1 15 46 16 F7 A8 5B 64 36 18 12 [19:11:50]CheckFolder [19:11:50]dirname=/storage/ofd_packets [19:11:50]CheckFolder done [19:11:50]ProducePacketName [19:11:50]name=ofd_packets/00070401 [19:11:50]NVStorageSaveData ofd_packets/00070401 [19:11:50]File name is /storage/ofd_packets/00070401 [19:11:50]Write 326 bytes [19:11:50]NVStorageSaveData done [19:11:50]OFDSenderStorePacket done [19:11:50]KKMCreateOFDPacket done [19:11:50]NVStorageSaveData kkm_last_timestamp [19:11:50]File name is /storage/kkm_last_timestamp [19:11:50]Write 4 bytes [19:11:50]NVStorageSaveData done [19:11:50]ExternCall_PrintAddStr [19:11:50]wPrintStart [19:11:50]Write to MH i2c: 01 00 00 87 1D A4 [19:11:50]Write i2c OK [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: 01 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: 01 07 00 [19:11:50]MH_I2C_Read... [19:11:50]Read from MH i2c: 01 07 00 87 1D 00 00 00 00 00 FF 0F B9 [19:11:50]RasterBufferAndPrint [19:11:50]line Счет N : (1)2886168 [19:11:50]line ИНН: 02508201610067 [19:11:50]line Контрольно-Кассовый Чек [19:11:50]line ВОЗВРАТ ПРОДАЖИ [19:11:50]line ТРК (МРК, ГНК) : 61 [19:11:50]line Товар: 2710194210 [19:11:50]line ДТ-К-5 [19:11:50]line 93.090 * 75.20 [19:11:50]line = 7000.37 [19:11:50]line НДС 12% НСП 1% [19:11:50]line > о реализуемом товаре [19:11:50]line ОКРУГЛЕНИЕ: -0.37 [19:11:50]line ИТОГО: 7000.00 [19:11:50]line НСП 1% : 61.95 [19:11:50]line НДС 12% : 743.40 [19:11:50]line Наличными: 7000.00 [19:11:50]line Безнал.: 0.00 [19:11:50]line Место: АЗС № 85 "Партнер Нефть" [19:11:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:11:50]line СНО: Общий режим [19:11:50]line Чек 349 22.10.2024 19:11 [19:11:50]line Смена: 195 ФФД: 1.0 [19:11:50]line ЗНМ: 0300000167 [19:11:50]line РНМ: 0000000000156251 [19:11:50]line Версия ККМ: v1.0 [19:11:50]line ФД осн.: 70400 [19:11:50]line ФМ осн.: 0000000000963346 [19:11:50]line [19:11:50]line Дисконтная программа [19:11:50]line ДТ [19:11:50]line номер 85 [19:11:50]line сэкономлено 93.09 сом [19:11:50]line ФМ: 0000000000963346 [19:11:50]line ФД: 70401 [19:11:50]line ФПД: 248834647201094 [19:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191149&type=2&operation_type=1&fn_number=0000000000963346&fd_number=70401&fm=248834647201094&tin=02508201610067®Number=0000000000156251&sum=700000 [19:11:51]OFD Sender: Processing packet 70401 [packets to send 18, broken 17] [19:11:51]ProducePacketName [19:11:51]name=ofd_packets/00070401 [19:11:51]written 0, free lines is 4095 [19:11:51]OFD Sender: To server: pG, [19:11:51]CommunicateWithHost lk.salyk.kg:30040 [19:11:51]ConnectInit lk.salyk.kg [19:11:51]Connected sock=10 [19:11: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 34 36 28 01 00 00 4A ED 20 01 5C 3C 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 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 5D 01 00 00 F4 03 04 00 F5 F8 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 00 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 13 01 00 35 04 06 00 E2 50 54 C1 15 46 16 F7 A8 5B 64 36 18 12 [19:11: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 34 36 4F 00 00 00 80 F6 47 00 18 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 34 36 10 04 04 00 01 13 01 00 F4 03 04 00 96 A2 17 67 B6 04 01 00 00 E8 FB D4 FE 16 00 11 28 [19:11:51]CommunicateWithHost err = 0 [19:11:51]CheckOFDResponse [19:11:51]1017 (14) - 77093643461234 [19:11:51]1041 (16) - 0000000000963346 [19:11:51]1040 (4) - 70401 [19:11:51]1012 (4) - 22.10.2024 13:03 [19:11:51]1206 (1) - 0 [19:11:51]OFD Sender: Remove packet 70401 [19:11:51]ProducePacketName [19:11:51]name=ofd_packets/00070401 [19:11:51]NVStorageDeleteData [19:11:51]Write to MH i2c: 01 00 00 B7 1D D4 [19:11:51]Write i2c OK [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: 01 [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: 01 07 00 [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 AD 0C 94 [19:11:51]RasterBufferAndPrint [19:11:51]line [19:11:51]line [19:11:51]line [19:11:51]line [19:11:51]line [19:11:51]written 0, free lines is 3257 [19:11:51]MH_Cut [19:11:51]Write to MH i2c: D1 01 00 BE 1D 01 AD [19:11:51]Write i2c OK [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: D1 [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: D1 01 00 [19:11:51]MH_I2C_Read... [19:11:51]Read from MH i2c: D1 01 00 BE 1D 00 AC [19:11:51]Write to MH i2c: 01 00 00 BF 1D DC [19:11:51]Write i2c OK [19:11:51]MH_I2C_Read... [19:11:52]OFD Sender: No OFD packet to send [19:11:52]*** Cut start [19:11:52]*** Partial cut [19:11:52]*** CUTSNS_PIN = 1 [19:11:52]*** CUTSNS_PIN = 0 [19:11:52]*** Brake cut motor [19:11:53]Read from MH i2c: 01 [19:11:53]MH_I2C_Read... [19:11:53]*** Stop cut motor [19:11:53]*** Cut end [19:11:53]Read from MH i2c: 01 07 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [19:11:53]process_action close_receipt done [19:11:53]requested_data is exist [19:11:53]produce_requested_data [19:11:53]requested_item fm.sn is exist - process it [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 11 00 00 [19:11:53]Write to MH i2c: E2 08 00 C0 1D 80 11 00 00 00 00 00 00 57 [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 17 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 17 00 C0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [19:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:53]wFMCommunicate OK [19:11:53]requested_item fd.num is exist - process it [19:11:53]SAM_PROTO_GetFieldsCounters [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 13 00 00 [19:11:53]Write to MH i2c: E2 08 00 C1 1D 80 13 00 00 00 00 00 00 5A [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 62 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 62 00 C1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 13 01 00 0E 04 04 00 C3 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 67 [19:11: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 13 01 00 0E 04 04 00 C3 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 [19:11:53]wFMCommunicate OK [19:11:53]SAM_PROTO_GetFieldsCounters done [19:11:53]requested_item shift.num is exist - process it [19:11:53]requested_item shift.opened is exist - process it [19:11:53]req_shift_opened [19:11:53]FM_GetShiftState [19:11:53]SAM_PROTO_GetShiftState [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 13 01 00 [19:11:53]Write to MH i2c: E2 08 00 C2 1D 80 13 01 00 00 00 00 00 5C [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 C2 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4A [19:11:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:11:53]wFMCommunicate OK [19:11:53]SAM_PROTO_GetShiftState done [19:11:53]FM_GetShiftState done [19:11:53]req_shift_opened done [19:11:53]requested_item shift.open_date is exist - process it [19:11:53]req_shift_open_date [19:11:53]req_shift_open_date done [19:11:53]produce_requested_data done [19:11:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70401,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:11:53]process_action_free close_receipt [19:11:53]json_value_free [19:11:53]json_value_free done [19:11:53]process_json_proto returns [19:11:53]Send response to host [19:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70401,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:11:53]free response buf [19:11:53]execute_script done [19:11:53]execute_script returns [19:11:53]free content buf [19:11:53]Sock 9.Close socket [19:11:53]Sock 9.Thread stoped [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:56]accept exits with 7 [19:13:56]New connection [19:13:56]New thread 3066555748 created [19:13:56]Thread 3066699108 joined [19:13:56]Waiting for new connection... [19:13:56] Sock 7.Parse request [19:13:56]Sock 7.Check first char [19:13:56]Sock 7.First char is OK [19:13:56]request: POST /json_proto HTTP/1.0 [19:13:56]Method: POST [19:13:56]URL: /json_proto [19:13:56]Method is POST - this is cgi request [19:13:56]url: /json_proto [19:13:56]query_string will be loaded in cgi processing [19:13:56]execute_cgi json_proto POST (null) [19:13:56]execute_cgi path=json_proto method=POST [19:13:56]POST find Content-Length [19:13:56]Host: 172.17.50.3:8080 [19:13:56]Content-Length: 689 [19:13:56]Content-Type: application/json [19:13:56] [19:13:56]POST finish read [19:13:56]Found Content-Length = 689 [19:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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" ] } } [19:13:56]execute_script... [19:13: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)2886167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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" ] } } [19:13:56]POST & json_proto [19:13:56]process_json_proto [19:13:56]json parsed OK: [19:13:56]protocol is kg_v1.0 [19:13:56]action value=close_receipt [19:13:56]process_action close_receipt [19:13:56]cmd_close_receipt [19:13:56]MH_GetDate [19:13:56]Write to MH i2c: F0 00 00 C3 1D CF [19:13:56]Write i2c OK [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 09 00 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 09 00 C3 1D 00 75 F9 17 67 6B 98 1E 66 4B [19:13:56]GetLastDocTimeStamp 1729624309 [19:13:56]current date 1729624437 [19:13:56]FM_GetShiftState [19:13:56]SAM_PROTO_GetShiftState [19:13:56]wFMCommunicate request_size=4 [19:13:56]MH_SAM_APDU [19:13:56]CAPDU: 80 13 01 00 [19:13:56]Write to MH i2c: E2 08 00 C4 1D 80 13 01 00 00 00 00 00 5E [19:13:56]Write i2c OK [19:13:56]MH_I2C_Read... [19:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:56]Read from MH i2c: E2 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: E2 0E 00 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: E2 0E 00 C4 1D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4C [19:13:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:13:56]wFMCommunicate OK [19:13:56]SAM_PROTO_GetShiftState done [19:13:56]FM_GetShiftState done [19:13:56]opened in 1729555832 [19:13:56]opened+sec_in_day 1729642232 [19:13:56]quantity*price = 300076 [19:13:56]sum+1 = 300077 [19:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 350 22.10.2024 19:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70402 ФПД: 136138344523199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70402&fm=136138344523199&tin=02508201610067®Number=0000000000156251&sum=300000 [19:13:58]StoreToDocumentArchive [19:13:58]shift 195 fd 70402 [19:13:58]save to /storage/0195/doc_00070402 [19:13:58]save last doc name /storage/0195/doc_00070402 to /storage/kkm_last_doc_name [19:13:58]save OK [19:13:58]Clear old archive folders... [19:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:13:58]tlvbuf is 00B3A920 [19:13:58]SAM_PROTO_ClearQueue [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 09 00 00 [19:13:58]Write to MH i2c: E2 08 00 D1 1D 80 09 00 00 00 00 00 00 60 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_ClearQueue done [19:13:58]KKMCreateOFDPacket [19:13:58]OFDProtocolAddRootSTLVToBuf [19:13:58]FM_MakeSignedData [19:13:58]FM_MakeSignedData [19:13:58]SAM_PROTO_SignData [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 01 02 [19:13:58]Write to MH i2c: E2 08 00 D2 1D 80 0D 01 02 00 00 00 00 68 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=255 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 5E 01 00 00 F4 03 04 00 75 F9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 13 01 [19:13:58]Write to MH i2c: E2 02 01 D3 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 5E 01 00 00 F4 03 04 00 75 F9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 13 01 00 00 C0 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=16 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7B D1 2D AA 65 BF [19:13:58]Write to MH i2c: E2 13 00 D4 1D 80 0D 02 02 0B 00 00 35 04 06 00 7B D1 2D AA 65 BF 00 00 07 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 03 02 [19:13:58]Write to MH i2c: E2 08 00 D5 1D 80 0D 03 02 00 00 00 00 6D [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 D5 1D 00 7A 16 E2 36 24 0B 96 4A 90 00 25 [19:13:58]RAPDU: 7A 16 E2 36 24 0B 96 4A 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_SignData done [19:13:58]FM_MakeSignedData done [19:13:58]CreateOFDProtocolMessage [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 11 00 00 [19:13:58]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [19:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:13:58]wFMCommunicate OK [19:13:58]CreateOFDProtocolMessage done [19:13:58]OFDSenderStorePacket 70402 [19:13:58]StoreOFDPacket docnum=70402 [19:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0E 91 0D 01 DF 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 5E 01 00 00 F4 03 04 00 75 F9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 13 01 00 35 04 06 00 7B D1 2D AA 65 BF 7A 16 E2 36 24 0B 96 4A [19:13:58]CheckFolder [19:13:58]dirname=/storage/ofd_packets [19:13:58]CheckFolder done [19:13:58]ProducePacketName [19:13:58]name=ofd_packets/00070402 [19:13:58]NVStorageSaveData ofd_packets/00070402 [19:13:58]File name is /storage/ofd_packets/00070402 [19:13:58]Write 307 bytes [19:13:58]NVStorageSaveData done [19:13:58]OFDSenderStorePacket done [19:13:58]KKMCreateOFDPacket done [19:13:58]NVStorageSaveData kkm_last_timestamp [19:13:58]File name is /storage/kkm_last_timestamp [19:13:58]Write 4 bytes [19:13:58]NVStorageSaveData done [19:13:58]ExternCall_PrintAddStr [19:13:58]wPrintStart [19:13:58]Write to MH i2c: 01 00 00 D7 1D F4 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [19:13:58]RasterBufferAndPrint [19:13:58]line Счет N : (1)2886167 [19:13:58]line ИНН: 02508201610067 [19:13:58]line Контрольно-Кассовый Чек [19:13:58]line ПРОДАЖА [19:13:58]line ТРК (МРК, ГНК) : 31 [19:13:58]line Товар: 2710194240 [19:13:58]line D-ENERGY Дт-К-2 [19:13:58]line 38.870 * 77.20 [19:13:58]line = 3000.76 [19:13:58]line НДС 12% НСП 1% [19:13:58]line > о реализуемом товаре [19:13:58]line ОКРУГЛЕНИЕ: -0.76 [19:13:58]line ИТОГО: 3000.00 [19:13:58]line Внесено: 3000.00 [19:13:58]line СДАЧА: 0.00 [19:13:58]line НСП 1% : 26.55 [19:13:58]line НДС 12% : 318.66 [19:13:58]line Наличными: 3000.00 [19:13:58]line Безнал.: 0.00 [19:13:58]line Место: АЗС № 85 "Партнер Нефть" [19:13:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:13:58]line СНО: Общий режим [19:13:58]line Чек 350 22.10.2024 19:13 [19:13:58]line Смена: 195 ФФД: 1.0 [19:13:58]line ЗНМ: 0300000167 [19:13:58]line РНМ: 0000000000156251 [19:13:58]line Версия ККМ: v1.0 [19:13:58]line ФМ: 0000000000963346 [19:13:58]line ФД: 70402 [19:13:58]line ФПД: 136138344523199 [19:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70402&fm=136138344523199&tin=02508201610067®Number=0000000000156251&sum=300000 [19:13:58]OFD Sender: Processing packet 70402 [packets to send 18, broken 17] [19:13:58]ProducePacketName [19:13:58]name=ofd_packets/00070402 [19:13:58]OFD Sender: To server: pG, [19:13:58]CommunicateWithHost lk.salyk.kg:30040 [19:13:58]ConnectInit lk.salyk.kg [19:13:58]written 0, free lines is 4095 [19:13:59]Connected sock=10 [19:13: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 34 36 15 01 00 00 0E 91 0D 01 DF 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 5E 01 00 00 F4 03 04 00 75 F9 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 13 01 00 35 04 06 00 7B D1 2D AA 65 BF 7A 16 E2 36 24 0B 96 4A [19:13: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 34 36 4F 00 00 00 A4 F9 47 00 97 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 34 36 10 04 04 00 02 13 01 00 F4 03 04 00 15 A3 17 67 B6 04 01 00 00 0B 2C EC 86 AA EB A5 93 [19:13:59]CommunicateWithHost err = 0 [19:13:59]CheckOFDResponse [19:13:59]1017 (14) - 77093643461234 [19:13:59]1041 (16) - 0000000000963346 [19:13:59]1040 (4) - 70402 [19:13:59]1012 (4) - 22.10.2024 13:05 [19:13:59]1206 (1) - 0 [19:13:59]OFD Sender: Remove packet 70402 [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00070402 [19:13:59]NVStorageDeleteData [19:13:59]Write to MH i2c: 01 00 00 02 1E 20 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 00 0D 34 [19:13:59]RasterBufferAndPrint [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]written 0, free lines is 3337 [19:13:59]MH_Cut [19:13:59]Write to MH i2c: D1 01 00 09 1E 01 F9 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 09 1E 00 F8 [19:13:59]Write to MH i2c: 01 00 00 0A 1E 28 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]OFD Sender: No OFD packet to send [19:14:00]*** Cut start [19:14:00]*** Partial cut [19:14:00]*** CUTSNS_PIN = 1 [19:14:00]*** CUTSNS_PIN = 0 [19:14:00]*** Brake cut motor [19:14:00]Read from MH i2c: 01 [19:14:00]MH_I2C_Read... [19:14:00]*** Stop cut motor [19:14:00]*** Cut end [19:14:00]Read from MH i2c: 01 07 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [19:14:00]process_action close_receipt done [19:14:00]requested_data is exist [19:14:00]produce_requested_data [19:14:00]requested_item fm.sn is exist - process it [19:14:00]wFMCommunicate request_size=4 [19:14:00]MH_SAM_APDU [19:14:00]CAPDU: 80 11 00 00 [19:14:00]Write to MH i2c: E2 08 00 0B 1E 80 11 00 00 00 00 00 00 A3 [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:00]Read from MH i2c: E2 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 17 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 17 00 0B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [19:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:14:00]wFMCommunicate OK [19:14:00]requested_item fd.num is exist - process it [19:14:00]SAM_PROTO_GetFieldsCounters [19:14:00]wFMCommunicate request_size=4 [19:14:00]MH_SAM_APDU [19:14:00]CAPDU: 80 13 00 00 [19:14:00]Write to MH i2c: E2 08 00 0C 1E 80 13 00 00 00 00 00 00 A6 [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:00]Read from MH i2c: E2 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 62 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 62 00 0C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 13 01 00 0E 04 04 00 C3 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 B7 [19:14: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 13 01 00 0E 04 04 00 C3 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 [19:14:00]wFMCommunicate OK [19:14:00]SAM_PROTO_GetFieldsCounters done [19:14:00]requested_item shift.num is exist - process it [19:14:00]requested_item shift.opened is exist - process it [19:14:00]req_shift_opened [19:14:00]FM_GetShiftState [19:14:00]SAM_PROTO_GetShiftState [19:14:00]wFMCommunicate request_size=4 [19:14:00]MH_SAM_APDU [19:14:00]CAPDU: 80 13 01 00 [19:14:00]Write to MH i2c: E2 08 00 0D 1E 80 13 01 00 00 00 00 00 A8 [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:00]Read from MH i2c: E2 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 0E 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: E2 0E 00 0D 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 96 [19:14:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:14:00]wFMCommunicate OK [19:14:00]SAM_PROTO_GetShiftState done [19:14:00]FM_GetShiftState done [19:14:00]req_shift_opened done [19:14:00]requested_item shift.open_date is exist - process it [19:14:00]req_shift_open_date [19:14:00]req_shift_open_date done [19:14:00]produce_requested_data done [19:14:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70402,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:14:00]process_action_free close_receipt [19:14:00]json_value_free [19:14:00]json_value_free done [19:14:00]process_json_proto returns [19:14:00]Send response to host [19:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70402,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:14:00]free response buf [19:14:00]execute_script done [19:14:00]execute_script returns [19:14:00]free content buf [19:14:00]Sock 7.Close socket [19:14:00]Sock 7.Thread stoped [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:48]accept exits with 9 [19:17:48]New connection [19:17:48]New thread 3066699108 created [19:17:48]Thread 3066555748 joined [19:17:48]Waiting for new connection... [19:17:48] Sock 9.Parse request [19:17:48]Sock 9.Check first char [19:17:48]Sock 9.First char is OK [19:17:48]request: POST /json_proto HTTP/1.0 [19:17:48]Method: POST [19:17:48]URL: /json_proto [19:17:48]Method is POST - this is cgi request [19:17:48]url: /json_proto [19:17:48]query_string will be loaded in cgi processing [19:17:48]execute_cgi json_proto POST (null) [19:17:48]execute_cgi path=json_proto method=POST [19:17:48]POST find Content-Length [19:17:48]Host: 172.17.50.3:8080 [19:17:48]Content-Length: 678 [19:17:48]Content-Type: application/json [19:17:48] [19:17:48]POST finish read [19:17:48]Found Content-Length = 678 [19:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:17:48]execute_script... [19:17: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)2886170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:17:48]POST & json_proto [19:17:48]process_json_proto [19:17:48]json parsed OK: [19:17:48]protocol is kg_v1.0 [19:17:48]action value=close_receipt [19:17:48]process_action close_receipt [19:17:48]cmd_close_receipt [19:17:48]MH_GetDate [19:17:48]Write to MH i2c: F0 00 00 0E 1E 1B [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: F0 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: F0 09 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: F0 09 00 0E 1E 00 5D FA 17 67 6B 98 1E 66 80 [19:17:48]GetLastDocTimeStamp 1729624437 [19:17:48]current date 1729624669 [19:17:48]FM_GetShiftState [19:17:48]SAM_PROTO_GetShiftState [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 13 01 00 [19:17:48]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 98 [19:17:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:17:48]wFMCommunicate OK [19:17:48]SAM_PROTO_GetShiftState done [19:17:48]FM_GetShiftState done [19:17:48]opened in 1729555832 [19:17:48]opened+sec_in_day 1729642232 [19:17:48]quantity*price = 50041 [19:17:48]sum+1 = 50042 [19:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 351 22.10.2024 19:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70403 ФПД: 64831651789175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191749&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70403&fm=64831651789175&tin=02508201610067®Number=0000000000156251&sum=50000 [19:17:49]StoreToDocumentArchive [19:17:49]shift 195 fd 70403 [19:17:49]save to /storage/0195/doc_00070403 [19:17:49]save last doc name /storage/0195/doc_00070403 to /storage/kkm_last_doc_name [19:17:49]save OK [19:17:49]Clear old archive folders... [19:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:49]tlvbuf is 00B3AC40 [19:17:49]SAM_PROTO_ClearQueue [19:17:49]wFMCommunicate request_size=4 [19:17:49]MH_SAM_APDU [19:17:49]CAPDU: 80 09 00 00 [19:17:49]Write to MH i2c: E2 08 00 1C 1E 80 09 00 00 00 00 00 00 AC [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [19:17:49]RAPDU: 90 00 [19:17:49]wFMCommunicate OK [19:17:49]SAM_PROTO_ClearQueue done [19:17:49]KKMCreateOFDPacket [19:17:49]OFDProtocolAddRootSTLVToBuf [19:17:49]FM_MakeSignedData [19:17:49]FM_MakeSignedData [19:17:49]SAM_PROTO_SignData [19:17:49]wFMCommunicate request_size=4 [19:17:49]MH_SAM_APDU [19:17:49]CAPDU: 80 0D 01 02 [19:17:49]Write to MH i2c: E2 08 00 1D 1E 80 0D 01 02 00 00 00 00 B4 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [19:17:49]RAPDU: 90 00 [19:17:49]wFMCommunicate OK [19:17:49]wFMCommunicate request_size=255 [19:17:49]MH_SAM_APDU [19:17: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 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 5F 01 00 00 F4 03 04 00 5D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 13 01 00 35 04 06 00 3A [19:17:49]Write to MH i2c: E2 02 01 1E 1E 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 5F 01 00 00 F4 03 04 00 5D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 13 01 00 35 04 06 00 3A 00 00 86 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [19:17:49]RAPDU: 90 00 [19:17:49]wFMCommunicate OK [19:17:49]wFMCommunicate request_size=10 [19:17:49]MH_SAM_APDU [19:17:49]CAPDU: 80 0D 02 02 05 F6 CB 93 39 77 [19:17:49]Write to MH i2c: E2 0D 00 1F 1E 80 0D 02 02 05 00 F6 CB 93 39 77 00 00 C5 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [19:17:49]RAPDU: 90 00 [19:17:49]wFMCommunicate OK [19:17:49]wFMCommunicate request_size=4 [19:17:49]MH_SAM_APDU [19:17:49]CAPDU: 80 0D 03 02 [19:17:49]Write to MH i2c: E2 08 00 20 1E 80 0D 03 02 00 00 00 00 B9 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 0B 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 0B 00 20 1E 00 FB 96 3F BC 86 2C 86 12 90 00 90 [19:17:49]RAPDU: FB 96 3F BC 86 2C 86 12 90 00 [19:17:49]wFMCommunicate OK [19:17:49]SAM_PROTO_SignData done [19:17:49]FM_MakeSignedData done [19:17:49]CreateOFDProtocolMessage [19:17:49]wFMCommunicate request_size=4 [19:17:49]MH_SAM_APDU [19:17:49]CAPDU: 80 11 00 00 [19:17:49]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]OFD Sender: No OFD packet to send [19:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:49]Read from MH i2c: E2 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 17 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [19:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:49]wFMCommunicate OK [19:17:49]CreateOFDProtocolMessage done [19:17:49]OFDSenderStorePacket 70403 [19:17:49]StoreOFDPacket docnum=70403 [19:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A 09 07 01 27 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 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 5F 01 00 00 F4 03 04 00 5D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 13 01 00 35 04 06 00 3A F6 CB 93 39 77 FB 96 3F BC 86 2C 86 12 [19:17:49]CheckFolder [19:17:49]dirname=/storage/ofd_packets [19:17:49]CheckFolder done [19:17:49]ProducePacketName [19:17:49]name=ofd_packets/00070403 [19:17:49]NVStorageSaveData ofd_packets/00070403 [19:17:49]File name is /storage/ofd_packets/00070403 [19:17:49]Write 301 bytes [19:17:49]NVStorageSaveData done [19:17:49]OFDSenderStorePacket done [19:17:49]KKMCreateOFDPacket done [19:17:49]NVStorageSaveData kkm_last_timestamp [19:17:49]File name is /storage/kkm_last_timestamp [19:17:49]Write 4 bytes [19:17:49]NVStorageSaveData done [19:17:49]ExternCall_PrintAddStr [19:17:49]wPrintStart [19:17:49]Write to MH i2c: 01 00 00 22 1E 40 [19:17:49]Write i2c OK [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: 01 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: 01 07 00 [19:17:49]MH_I2C_Read... [19:17:49]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [19:17:49]RasterBufferAndPrint [19:17:49]line Счет N : (1)2886170 [19:17:49]line ИНН: 02508201610067 [19:17:49]line Контрольно-Кассовый Чек [19:17:49]line ПРОДАЖА [19:17:49]line ТРК (МРК, ГНК) : 12 [19:17:49]line Товар: 2710124130 [19:17:49]line Аи-92-К-5 [19:17:49]line 7.480 * 66.90 [19:17:49]line = 500.41 [19:17:49]line НДС 12% НСП 1% [19:17:49]line > о реализуемом товаре [19:17:49]line ОКРУГЛЕНИЕ: -0.41 [19:17:49]line ИТОГО: 500.00 [19:17:49]line Внесено: 500.00 [19:17:49]line СДАЧА: 0.00 [19:17:49]line НСП 1% : 4.43 [19:17:49]line НДС 12% : 53.14 [19:17:49]line Наличными: 500.00 [19:17:49]line Безнал.: 0.00 [19:17:49]line Место: АЗС № 85 "Партнер Нефть" [19:17:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:17:49]line СНО: Общий режим [19:17:49]line Чек 351 22.10.2024 19:17 [19:17:49]line Смена: 195 ФФД: 1.0 [19:17:49]line ЗНМ: 0300000167 [19:17:49]line РНМ: 0000000000156251 [19:17:49]line Версия ККМ: v1.0 [19:17:49]line ФМ: 0000000000963346 [19:17:49]line ФД: 70403 [19:17:49]line ФПД: 64831651789175 [19:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191749&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70403&fm=64831651789175&tin=02508201610067®Number=0000000000156251&sum=50000 [19:17:50]OFD Sender: Processing packet 70403 [packets to send 18, broken 17] [19:17:50]ProducePacketName [19:17:50]name=ofd_packets/00070403 [19:17:50]OFD Sender: To server: pG, [19:17:50]CommunicateWithHost lk.salyk.kg:30040 [19:17:50]ConnectInit lk.salyk.kg [19:17:50]written 0, free lines is 4095 [19:17:50]Connected sock=10 [19:17: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 34 36 0F 01 00 00 7A 09 07 01 27 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 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 5F 01 00 00 F4 03 04 00 5D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 13 01 00 35 04 06 00 3A F6 CB 93 39 77 FB 96 3F BC 86 2C 86 12 [19:17: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 34 36 4F 00 00 00 C8 33 47 00 BE 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 34 36 10 04 04 00 03 13 01 00 F4 03 04 00 FD A3 17 67 B6 04 01 00 00 3E 43 D6 52 FE 90 EB 13 [19:17:50]CommunicateWithHost err = 0 [19:17:50]CheckOFDResponse [19:17:50]1017 (14) - 77093643461234 [19:17:50]1041 (16) - 0000000000963346 [19:17:50]1040 (4) - 70403 [19:17:50]1012 (4) - 22.10.2024 13:09 [19:17:50]1206 (1) - 0 [19:17:50]OFD Sender: Remove packet 70403 [19:17:50]ProducePacketName [19:17:50]name=ofd_packets/00070403 [19:17:50]NVStorageDeleteData [19:17:50]Write to MH i2c: 01 00 00 4D 1E 6B [19:17:50]Write i2c OK [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: 01 [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: 01 07 00 [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 F1 0C 6F [19:17:50]RasterBufferAndPrint [19:17:50]line [19:17:50]line [19:17:50]line [19:17:50]line [19:17:50]line [19:17:50]written 0, free lines is 3319 [19:17:50]MH_Cut [19:17:50]Write to MH i2c: D1 01 00 54 1E 01 44 [19:17:50]Write i2c OK [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: D1 [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: D1 01 00 [19:17:50]MH_I2C_Read... [19:17:50]Read from MH i2c: D1 01 00 54 1E 00 43 [19:17:50]Write to MH i2c: 01 00 00 55 1E 73 [19:17:50]Write i2c OK [19:17:50]MH_I2C_Read... [19:17:51]OFD Sender: No OFD packet to send [19:17:51]*** Cut start [19:17:51]*** Partial cut [19:17:51]*** CUTSNS_PIN = 1 [19:17:51]*** CUTSNS_PIN = 0 [19:17:51]*** Brake cut motor [19:17:52]Read from MH i2c: 01 [19:17:52]MH_I2C_Read... [19:17:52]*** Stop cut motor [19:17:52]*** Cut end [19:17:52]Read from MH i2c: 01 07 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [19:17:52]process_action close_receipt done [19:17:52]requested_data is exist [19:17:52]produce_requested_data [19:17:52]requested_item fm.sn is exist - process it [19:17:52]wFMCommunicate request_size=4 [19:17:52]MH_SAM_APDU [19:17:52]CAPDU: 80 11 00 00 [19:17:52]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [19:17:52]Write i2c OK [19:17:52]MH_I2C_Read... [19:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:52]Read from MH i2c: E2 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 17 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [19:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:52]wFMCommunicate OK [19:17:52]requested_item fd.num is exist - process it [19:17:52]SAM_PROTO_GetFieldsCounters [19:17:52]wFMCommunicate request_size=4 [19:17:52]MH_SAM_APDU [19:17:52]CAPDU: 80 13 00 00 [19:17:52]Write to MH i2c: E2 08 00 57 1E 80 13 00 00 00 00 00 00 F1 [19:17:52]Write i2c OK [19:17:52]MH_I2C_Read... [19:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:52]Read from MH i2c: E2 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 62 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 62 00 57 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 13 01 00 0E 04 04 00 C3 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 06 [19:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 13 01 00 0E 04 04 00 C3 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 [19:17:52]wFMCommunicate OK [19:17:52]SAM_PROTO_GetFieldsCounters done [19:17:52]requested_item shift.num is exist - process it [19:17:52]requested_item shift.opened is exist - process it [19:17:52]req_shift_opened [19:17:52]FM_GetShiftState [19:17:52]SAM_PROTO_GetShiftState [19:17:52]wFMCommunicate request_size=4 [19:17:52]MH_SAM_APDU [19:17:52]CAPDU: 80 13 01 00 [19:17:52]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [19:17:52]Write i2c OK [19:17:52]MH_I2C_Read... [19:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:52]Read from MH i2c: E2 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 0E 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E1 [19:17:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:17:52]wFMCommunicate OK [19:17:52]SAM_PROTO_GetShiftState done [19:17:52]FM_GetShiftState done [19:17:52]req_shift_opened done [19:17:52]requested_item shift.open_date is exist - process it [19:17:52]req_shift_open_date [19:17:52]req_shift_open_date done [19:17:52]produce_requested_data done [19:17:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70403,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:17:52]process_action_free close_receipt [19:17:52]json_value_free [19:17:52]json_value_free done [19:17:52]process_json_proto returns [19:17:52]Send response to host [19:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70403,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:17:52]free response buf [19:17:52]execute_script done [19:17:52]execute_script returns [19:17:52]free content buf [19:17:52]Sock 9.Close socket [19:17:52]Sock 9.Thread stoped [19:17:56]OFD Sender: No OFD packet to send [19:17:59]accept exits with 7 [19:17:59]New connection [19:17:59]New thread 3066555748 created [19:17:59]Thread 3066699108 joined [19:17:59]Waiting for new connection... [19:17:59] Sock 7.Parse request [19:17:59]Sock 7.Check first char [19:17:59]Sock 7.First char is OK [19:17:59]request: POST /json_proto HTTP/1.0 [19:17:59]Method: POST [19:17:59]URL: /json_proto [19:17:59]Method is POST - this is cgi request [19:17:59]url: /json_proto [19:17:59]query_string will be loaded in cgi processing [19:17:59]execute_cgi json_proto POST (null) [19:17:59]execute_cgi path=json_proto method=POST [19:17:59]POST find Content-Length [19:17:59]Host: 172.17.50.3:8080 [19:17:59]Content-Length: 680 [19:17:59]Content-Type: application/json [19:17:59] [19:17:59]POST finish read [19:17:59]Found Content-Length = 680 [19:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886169", "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" : 24.320, "sum" : 1853.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1853.00, "total" : 1853.00, "payments": [ { "type": 0, "sum" : 1853.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:59]execute_script... [19:17: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)2886169", "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" : 24.320, "sum" : 1853.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1853.00, "total" : 1853.00, "payments": [ { "type": 0, "sum" : 1853.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:59]POST & json_proto [19:17:59]process_json_proto [19:17:59]json parsed OK: [19:17:59]protocol is kg_v1.0 [19:17:59]action value=close_receipt [19:17:59]process_action close_receipt [19:17:59]cmd_close_receipt [19:17:59]MH_GetDate [19:17:59]Write to MH i2c: F0 00 00 59 1E 66 [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 09 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 09 00 59 1E 00 68 FA 17 67 6B 98 1E 66 D6 [19:17:59]GetLastDocTimeStamp 1729624669 [19:17:59]current date 1729624680 [19:17:59]FM_GetShiftState [19:17:59]SAM_PROTO_GetShiftState [19:17:59]wFMCommunicate request_size=4 [19:17:59]MH_SAM_APDU [19:17:59]CAPDU: 80 13 01 00 [19:17:59]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:59]Read from MH i2c: E2 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 0E 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E3 [19:17:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:17:59]wFMCommunicate OK [19:17:59]SAM_PROTO_GetShiftState done [19:17:59]FM_GetShiftState done [19:17:59]opened in 1729555832 [19:17:59]opened+sec_in_day 1729642232 [19:17:59]quantity*price = 185318 [19:17:59]sum+1 = 185319 [19:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1853.00 Внесено: 1853.00 СДАЧА: 0.00 НСП 1% : 16.40 НДС 12% : 196.80 Наличными: 1853.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 352 22.10.2024 19:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70404 ФПД: 187396939541992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191800&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70404&fm=187396939541992&tin=02508201610067®Number=0000000000156251&sum=185300 [19:18:00]StoreToDocumentArchive [19:18:00]shift 195 fd 70404 [19:18:00]save to /storage/0195/doc_00070404 [19:18:00]save last doc name /storage/0195/doc_00070404 to /storage/kkm_last_doc_name [19:18:00]save OK [19:18:00]Clear old archive folders... [19:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:00]tlvbuf is 00AE38D0 [19:18:00]SAM_PROTO_ClearQueue [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 09 00 00 [19:18:00]Write to MH i2c: E2 08 00 67 1E 80 09 00 00 00 00 00 00 F7 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_ClearQueue done [19:18:00]KKMCreateOFDPacket [19:18:00]OFDProtocolAddRootSTLVToBuf [19:18:00]FM_MakeSignedData [19:18:00]FM_MakeSignedData [19:18:00]SAM_PROTO_SignData [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 01 02 [19:18:00]Write to MH i2c: E2 08 00 68 1E 80 0D 01 02 00 00 00 00 FF [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=255 [19:18:00]MH_SAM_APDU [19:18: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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 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 68 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 13 01 00 35 04 06 00 AA 6F C0 03 [19:18:00]Write to MH i2c: E2 02 01 69 1E 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 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 68 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 13 01 00 35 04 06 00 AA 6F C0 03 00 00 35 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=7 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 02 6D E8 [19:18:00]Write to MH i2c: E2 0A 00 6A 1E 80 0D 02 02 02 00 6D E8 00 00 5B [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 03 02 [19:18:00]Write to MH i2c: E2 08 00 6B 1E 80 0D 03 02 00 00 00 00 04 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 6B 1E 00 D7 41 80 E9 D5 17 B6 08 90 00 30 [19:18:00]RAPDU: D7 41 80 E9 D5 17 B6 08 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_SignData done [19:18:00]FM_MakeSignedData done [19:18:00]CreateOFDProtocolMessage [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 11 00 00 [19:18:00]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [19:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:18:00]wFMCommunicate OK [19:18:00]CreateOFDProtocolMessage done [19:18:00]OFDSenderStorePacket 70404 [19:18:00]StoreOFDPacket docnum=70404 [19:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DA A6 04 01 7E 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 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 68 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 13 01 00 35 04 06 00 AA 6F C0 03 6D E8 D7 41 80 E9 D5 17 B6 08 [19:18:00]CheckFolder [19:18:00]dirname=/storage/ofd_packets [19:18:00]CheckFolder done [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00070404 [19:18:00]NVStorageSaveData ofd_packets/00070404 [19:18:00]File name is /storage/ofd_packets/00070404 [19:18:00]Write 298 bytes [19:18:00]NVStorageSaveData done [19:18:00]OFDSenderStorePacket done [19:18:00]KKMCreateOFDPacket done [19:18:00]NVStorageSaveData kkm_last_timestamp [19:18:00]File name is /storage/kkm_last_timestamp [19:18:00]Write 4 bytes [19:18:00]NVStorageSaveData done [19:18:00]ExternCall_PrintAddStr [19:18:00]wPrintStart [19:18:00]Write to MH i2c: 01 00 00 6D 1E 8B [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [19:18:00]RasterBufferAndPrint [19:18:00]line Счет N : (1)2886169 [19:18:00]line ИНН: 02508201610067 [19:18:00]line Контрольно-Кассовый Чек [19:18:00]line ПРОДАЖА [19:18:00]line ТРК (МРК, ГНК) : 51 [19:18:00]line Товар: 2710194210 [19:18:00]line ДТ-К-5 [19:18:00]line 24.320 * 76.20 [19:18:00]line = 1853.18 [19:18:00]line НДС 12% НСП 1% [19:18:00]line > о реализуемом товаре [19:18:00]line ОКРУГЛЕНИЕ: -0.18 [19:18:00]line ИТОГО: 1853.00 [19:18:00]line Внесено: 1853.00 [19:18:00]line СДАЧА: 0.00 [19:18:00]line НСП 1% : 16.40 [19:18:00]line НДС 12% : 196.80 [19:18:00]line Наличными: 1853.00 [19:18:00]line Безнал.: 0.00 [19:18:00]line Место: АЗС № 85 "Партнер Нефть" [19:18:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:18:00]line СНО: Общий режим [19:18:00]line Чек 352 22.10.2024 19:18 [19:18:00]line Смена: 195 ФФД: 1.0 [19:18:00]line ЗНМ: 0300000167 [19:18:00]line РНМ: 0000000000156251 [19:18:00]line Версия ККМ: v1.0 [19:18:00]line ФМ: 0000000000963346 [19:18:00]line ФД: 70404 [19:18:00]line ФПД: 187396939541992 [19:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191800&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70404&fm=187396939541992&tin=02508201610067®Number=0000000000156251&sum=185300 [19:18:00]written 0, free lines is 4095 [19:18:00]OFD Sender: Processing packet 70404 [packets to send 18, broken 17] [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00070404 [19:18:00]OFD Sender: To server: pG, [19:18:00]CommunicateWithHost lk.salyk.kg:30040 [19:18:00]ConnectInit lk.salyk.kg [19:18:01]Connected sock=10 [19:18: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 34 36 0C 01 00 00 DA A6 04 01 7E 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 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 68 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 13 01 00 35 04 06 00 AA 6F C0 03 6D E8 D7 41 80 E9 D5 17 B6 08 [19:18: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 34 36 4F 00 00 00 5E 1E 47 00 6E 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 34 36 10 04 04 00 04 13 01 00 F4 03 04 00 07 A4 17 67 B6 04 01 00 00 8E EF 75 29 4C 2F EF DD [19:18:01]CommunicateWithHost err = 0 [19:18:01]CheckOFDResponse [19:18:01]1017 (14) - 77093643461234 [19:18:01]1041 (16) - 0000000000963346 [19:18:01]1040 (4) - 70404 [19:18:01]1012 (4) - 22.10.2024 13:09 [19:18:01]1206 (1) - 0 [19:18:01]OFD Sender: Remove packet 70404 [19:18:01]ProducePacketName [19:18:01]name=ofd_packets/00070404 [19:18:01]NVStorageDeleteData [19:18:01]Write to MH i2c: 01 00 00 98 1E B6 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 00 0D CA [19:18:01]RasterBufferAndPrint [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]written 0, free lines is 3340 [19:18:01]MH_Cut [19:18:01]Write to MH i2c: D1 01 00 9F 1E 01 8F [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 9F 1E 00 8E [19:18:01]Write to MH i2c: 01 00 00 A0 1E BE [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]OFD Sender: No OFD packet to send [19:18:02]*** Cut start [19:18:02]*** Partial cut [19:18:02]*** CUTSNS_PIN = 1 [19:18:02]*** CUTSNS_PIN = 0 [19:18:02]*** Brake cut motor [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]*** Stop cut motor [19:18:02]*** Cut end [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 FF 0F D3 [19:18:02]process_action close_receipt done [19:18:02]requested_data is exist [19:18:02]produce_requested_data [19:18:02]requested_item fm.sn is exist - process it [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 11 00 00 [19:18:02]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [19:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:18:02]wFMCommunicate OK [19:18:02]requested_item fd.num is exist - process it [19:18:02]SAM_PROTO_GetFieldsCounters [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 00 00 [19:18:02]Write to MH i2c: E2 08 00 A2 1E 80 13 00 00 00 00 00 00 3C [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 A2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 13 01 00 0E 04 04 00 C3 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 55 [19:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 13 01 00 0E 04 04 00 C3 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 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_GetFieldsCounters done [19:18:02]requested_item shift.num is exist - process it [19:18:02]requested_item shift.opened is exist - process it [19:18:02]req_shift_opened [19:18:02]FM_GetShiftState [19:18:02]SAM_PROTO_GetShiftState [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 01 00 [19:18:02]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0E 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2C [19:18:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_GetShiftState done [19:18:02]FM_GetShiftState done [19:18:02]req_shift_opened done [19:18:02]requested_item shift.open_date is exist - process it [19:18:02]req_shift_open_date [19:18:02]req_shift_open_date done [19:18:02]produce_requested_data done [19:18:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70404,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:18:02]process_action_free close_receipt [19:18:02]json_value_free [19:18:02]json_value_free done [19:18:02]process_json_proto returns [19:18:02]Send response to host [19:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70404,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:18:02]free response buf [19:18:02]execute_script done [19:18:02]execute_script returns [19:18:02]free content buf [19:18:02]Sock 7.Close socket [19:18:02]Sock 7.Thread stoped [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 9 [19:18:36]New connection [19:18:36]New thread 3066699108 created [19:18:36]Thread 3066555748 joined [19:18:36]Waiting for new connection... [19:18:36] Sock 9.Parse request [19:18:36]Sock 9.Check first char [19:18:36]Sock 9.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.50.3: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)2886172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [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)2886172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [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 A4 1E B1 [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 A4 1E 00 8D FA 17 67 6B 98 1E 66 46 [19:18:36]GetLastDocTimeStamp 1729624680 [19:18:36]current date 1729624717 [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 A5 1E 80 13 01 00 00 00 00 00 40 [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 A5 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2E [19:18:36]RAPDU: 09 00 01 78 ED 16 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 1729555832 [19:18:36]opened+sec_in_day 1729642232 [19:18:36]quantity*price = 50010 [19:18:36]sum+1 = 50012 [19:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 353 22.10.2024 19:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70405 ФПД: 125849833688883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191837&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70405&fm=125849833688883&tin=02508201610067®Number=0000000000156251&sum=50000 [19:18:37]StoreToDocumentArchive [19:18:37]shift 195 fd 70405 [19:18:37]save to /storage/0195/doc_00070405 [19:18:37]save last doc name /storage/0195/doc_00070405 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 00B3EFF0 [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 B2 1E 80 09 00 00 00 00 00 00 42 [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 B2 1E 00 90 00 44 [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 B3 1E 80 0D 01 02 00 00 00 00 4A [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 B3 1E 00 90 00 45 [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 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 8D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 13 01 00 35 04 06 00 72 [19:18:37]Write to MH i2c: E2 02 01 B4 1E 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 8D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 13 01 00 35 04 06 00 72 00 00 60 [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 B4 1E 00 90 00 46 [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 75 B2 A1 CF 33 [19:18:37]Write to MH i2c: E2 0D 00 B5 1E 80 0D 02 02 05 00 75 B2 A1 CF 33 00 00 21 [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 03 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [19:18:38]RAPDU: 90 00 [19:18:38]wFMCommunicate OK [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 0D 03 02 [19:18:38]Write to MH i2c: E2 08 00 B6 1E 80 0D 03 02 00 00 00 00 4F [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0B 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0B 00 B6 1E 00 46 CD FB CA 15 0F 10 55 90 00 B1 [19:18:38]RAPDU: 46 CD FB CA 15 0F 10 55 90 00 [19:18:38]wFMCommunicate OK [19:18:38]SAM_PROTO_SignData done [19:18:38]FM_MakeSignedData done [19:18:38]CreateOFDProtocolMessage [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 11 00 00 [19:18:38]Write to MH i2c: E2 08 00 B7 1E 80 11 00 00 00 00 00 00 4F [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 17 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 17 00 B7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [19:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:18:38]wFMCommunicate OK [19:18:38]CreateOFDProtocolMessage done [19:18:38]OFDSenderStorePacket 70405 [19:18:38]StoreOFDPacket docnum=70405 [19:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 EF 07 01 93 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 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 8D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 13 01 00 35 04 06 00 72 75 B2 A1 CF 33 46 CD FB CA 15 0F 10 55 [19:18:38]CheckFolder [19:18:38]dirname=/storage/ofd_packets [19:18:38]CheckFolder done [19:18:38]ProducePacketName [19:18:38]name=ofd_packets/00070405 [19:18:38]NVStorageSaveData ofd_packets/00070405 [19:18:38]File name is /storage/ofd_packets/00070405 [19:18:38]Write 301 bytes [19:18:38]NVStorageSaveData done [19:18:38]OFDSenderStorePacket done [19:18:38]KKMCreateOFDPacket done [19:18:38]NVStorageSaveData kkm_last_timestamp [19:18:38]File name is /storage/kkm_last_timestamp [19:18:38]Write 4 bytes [19:18:38]NVStorageSaveData done [19:18:38]ExternCall_PrintAddStr [19:18:38]wPrintStart [19:18:38]Write to MH i2c: 01 00 00 B8 1E D6 [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 B8 1E 00 00 00 00 00 FF 0F EB [19:18:38]RasterBufferAndPrint [19:18:38]line Счет N : (1)2886172 [19:18:38]line ИНН: 02508201610067 [19:18:38]line Контрольно-Кассовый Чек [19:18:38]line ПРОДАЖА [19:18:38]line ТРК (МРК, ГНК) : 23 [19:18:38]line Товар: 2710124500 [19:18:38]line Аи-95-К-5 [19:18:38]line 6.740 * 74.20 [19:18:38]line = 500.11 [19:18:38]line НДС 12% НСП 1% [19:18:38]line > о реализуемом товаре [19:18:38]line ОКРУГЛЕНИЕ: -0.11 [19:18:38]line ИТОГО: 500.00 [19:18:38]line Внесено: 500.00 [19:18:38]line СДАЧА: 0.00 [19:18:38]line НСП 1% : 4.43 [19:18:38]line НДС 12% : 53.11 [19:18:38]line Наличными: 500.00 [19:18:38]line Безнал.: 0.00 [19:18:38]line Место: АЗС № 85 "Партнер Нефть" [19:18:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:18:38]line СНО: Общий режим [19:18:38]line Чек 353 22.10.2024 19:18 [19:18:38]line Смена: 195 ФФД: 1.0 [19:18:38]line ЗНМ: 0300000167 [19:18:38]line РНМ: 0000000000156251 [19:18:38]line Версия ККМ: v1.0 [19:18:38]line ФМ: 0000000000963346 [19:18:38]line ФД: 70405 [19:18:38]line ФПД: 125849833688883 [19:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191837&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70405&fm=125849833688883&tin=02508201610067®Number=0000000000156251&sum=50000 [19:18:38]OFD Sender: Processing packet 70405 [packets to send 18, broken 17] [19:18:38]ProducePacketName [19:18:38]name=ofd_packets/00070405 [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 34 36 0F 01 00 00 B7 EF 07 01 93 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 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 8D FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 13 01 00 35 04 06 00 72 75 B2 A1 CF 33 46 CD FB CA 15 0F 10 55 [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 34 36 4F 00 00 00 88 EC 47 00 97 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 34 36 10 04 04 00 05 13 01 00 F4 03 04 00 2D A4 17 67 B6 04 01 00 00 05 FD A0 27 77 B1 88 FC [19:18:38]CommunicateWithHost err = 0 [19:18:38]CheckOFDResponse [19:18:38]1017 (14) - 77093643461234 [19:18:38]1041 (16) - 0000000000963346 [19:18:38]1040 (4) - 70405 [19:18:38]1012 (4) - 22.10.2024 13:10 [19:18:38]1206 (1) - 0 [19:18:38]OFD Sender: Remove packet 70405 [19:18:38]ProducePacketName [19:18:38]name=ofd_packets/00070405 [19:18:38]NVStorageDeleteData [19:18:38]Write to MH i2c: 01 00 00 E3 1E 01 [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 E3 1E 00 00 00 00 00 EF 0C 03 [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 3317 [19:18:38]MH_Cut [19:18:38]Write to MH i2c: D1 01 00 EA 1E 01 DA [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 EA 1E 00 D9 [19:18:38]Write to MH i2c: 01 00 00 EB 1E 09 [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 EB 1E 00 00 00 00 00 FF 0F 1E [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 EC 1E 80 11 00 00 00 00 00 00 84 [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 EC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [19:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 ED 1E 80 13 00 00 00 00 00 00 87 [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 ED 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 13 01 00 0E 04 04 00 C3 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 A4 [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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 13 01 00 0E 04 04 00 C3 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 [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 EE 1E 80 13 01 00 00 00 00 00 89 [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 EE 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 77 [19:18:40]RAPDU: 09 00 01 78 ED 16 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":"0000000000963346","fd.num":70405,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [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":"0000000000963346","fd.num":70405,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [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 9.Close socket [19:18:40]Sock 9.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:47]accept exits with 7 [19:19:47]New connection [19:19:47]New thread 3066555748 created [19:19:47]Thread 3066699108 joined [19:19:47]Waiting for new connection... [19:19:47] Sock 7.Parse request [19:19:47]Sock 7.Check first char [19:19:47]Sock 7.First char is OK [19:19:47]request: POST /json_proto HTTP/1.0 [19:19:47]Method: POST [19:19:47]URL: /json_proto [19:19:47]Method is POST - this is cgi request [19:19:47]url: /json_proto [19:19:47]query_string will be loaded in cgi processing [19:19:47]execute_cgi json_proto POST (null) [19:19:47]execute_cgi path=json_proto method=POST [19:19:47]POST find Content-Length [19:19:47]Host: 172.17.50.3:8080 [19:19:47]Content-Length: 686 [19:19:47]Content-Type: application/json [19:19:47] [19:19:47]POST finish read [19:19:47]Found Content-Length = 686 [19:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:19:47]execute_script... [19:19: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)2886173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:19:47]POST & json_proto [19:19:47]process_json_proto [19:19:47]json parsed OK: [19:19:47]protocol is kg_v1.0 [19:19:47]action value=close_receipt [19:19:47]process_action close_receipt [19:19:47]cmd_close_receipt [19:19:47]MH_GetDate [19:19:47]Write to MH i2c: F0 00 00 EF 1E FC [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: F0 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: F0 09 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: F0 09 00 EF 1E 00 D4 FA 17 67 6B 98 1E 66 D8 [19:19:47]GetLastDocTimeStamp 1729624717 [19:19:47]current date 1729624788 [19:19:47]FM_GetShiftState [19:19:47]SAM_PROTO_GetShiftState [19:19:47]wFMCommunicate request_size=4 [19:19:47]MH_SAM_APDU [19:19:47]CAPDU: 80 13 01 00 [19:19:47]Write to MH i2c: E2 08 00 F0 1E 80 13 01 00 00 00 00 00 8B [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:47]Read from MH i2c: E2 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 0E 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 0E 00 F0 1E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 79 [19:19:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:19:47]wFMCommunicate OK [19:19:47]SAM_PROTO_GetShiftState done [19:19:47]FM_GetShiftState done [19:19:47]opened in 1729555832 [19:19:47]opened+sec_in_day 1729642232 [19:19:47]quantity*price = 100011 [19:19:47]sum+1 = 100013 [19:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 354 22.10.2024 19:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70406 ФПД: 107849599875026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191948&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70406&fm=107849599875026&tin=02508201610067®Number=0000000000156251&sum=100000 [19:19:48]StoreToDocumentArchive [19:19:48]shift 195 fd 70406 [19:19:48]save to /storage/0195/doc_00070406 [19:19:48]save last doc name /storage/0195/doc_00070406 to /storage/kkm_last_doc_name [19:19:48]save OK [19:19:48]Clear old archive folders... [19:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:19:48]tlvbuf is 00ED9DC0 [19:19:48]SAM_PROTO_ClearQueue [19:19:48]wFMCommunicate request_size=4 [19:19:48]MH_SAM_APDU [19:19:48]CAPDU: 80 09 00 00 [19:19:48]Write to MH i2c: E2 08 00 FD 1E 80 09 00 00 00 00 00 00 8D [19:19:48]Write i2c OK [19:19:48]MH_I2C_Read... [19:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:48]Read from MH i2c: E2 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 03 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [19:19:48]RAPDU: 90 00 [19:19:48]wFMCommunicate OK [19:19:48]SAM_PROTO_ClearQueue done [19:19:48]KKMCreateOFDPacket [19:19:48]OFDProtocolAddRootSTLVToBuf [19:19:48]FM_MakeSignedData [19:19:48]FM_MakeSignedData [19:19:48]SAM_PROTO_SignData [19:19:48]wFMCommunicate request_size=4 [19:19:48]MH_SAM_APDU [19:19:48]CAPDU: 80 0D 01 02 [19:19:48]Write to MH i2c: E2 08 00 FE 1E 80 0D 01 02 00 00 00 00 95 [19:19:48]Write i2c OK [19:19:48]MH_I2C_Read... [19:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:48]Read from MH i2c: E2 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 03 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [19:19:48]RAPDU: 90 00 [19:19:48]wFMCommunicate OK [19:19:48]wFMCommunicate request_size=255 [19:19:48]MH_SAM_APDU [19:19:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 62 01 00 00 F4 03 04 00 D4 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 13 01 00 35 04 06 00 62 16 [19:19:49]Write to MH i2c: E2 02 01 FF 1E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 62 01 00 00 F4 03 04 00 D4 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 13 01 00 35 04 06 00 62 16 00 00 FD [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 03 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [19:19:49]RAPDU: 90 00 [19:19:49]wFMCommunicate OK [19:19:49]wFMCommunicate request_size=9 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 0D 02 02 04 B1 16 F7 D2 [19:19:49]Write to MH i2c: E2 0C 00 00 1F 80 0D 02 02 04 00 B1 16 F7 D2 00 00 31 [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 03 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [19:19:49]RAPDU: 90 00 [19:19:49]wFMCommunicate OK [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 0D 03 02 [19:19:49]Write to MH i2c: E2 08 00 01 1F 80 0D 03 02 00 00 00 00 9B [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0B 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0B 00 01 1F 00 52 D3 25 83 54 94 28 18 90 00 91 [19:19:49]RAPDU: 52 D3 25 83 54 94 28 18 90 00 [19:19:49]wFMCommunicate OK [19:19:49]SAM_PROTO_SignData done [19:19:49]FM_MakeSignedData done [19:19:49]CreateOFDProtocolMessage [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 11 00 00 [19:19:49]Write to MH i2c: E2 08 00 02 1F 80 11 00 00 00 00 00 00 9B [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]OFD Sender: No OFD packet to send [19:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 17 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 17 00 02 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [19:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:19:49]wFMCommunicate OK [19:19:49]CreateOFDProtocolMessage done [19:19:49]OFDSenderStorePacket 70406 [19:19:49]StoreOFDPacket docnum=70406 [19:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A1 EF 06 01 7B 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 62 01 00 00 F4 03 04 00 D4 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 13 01 00 35 04 06 00 62 16 B1 16 F7 D2 52 D3 25 83 54 94 28 18 [19:19:49]CheckFolder [19:19:49]dirname=/storage/ofd_packets [19:19:49]CheckFolder done [19:19:49]ProducePacketName [19:19:49]name=ofd_packets/00070406 [19:19:49]NVStorageSaveData ofd_packets/00070406 [19:19:49]File name is /storage/ofd_packets/00070406 [19:19:49]Write 300 bytes [19:19:49]NVStorageSaveData done [19:19:49]OFDSenderStorePacket done [19:19:49]KKMCreateOFDPacket done [19:19:49]NVStorageSaveData kkm_last_timestamp [19:19:49]File name is /storage/kkm_last_timestamp [19:19:49]Write 4 bytes [19:19:49]NVStorageSaveData done [19:19:49]ExternCall_PrintAddStr [19:19:49]wPrintStart [19:19:49]Write to MH i2c: 01 00 00 03 1F 22 [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 07 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 FF 0F 37 [19:19:49]RasterBufferAndPrint [19:19:49]line Счет N : (1)2886173 [19:19:49]line ИНН: 02508201610067 [19:19:49]line Контрольно-Кассовый Чек [19:19:49]line ПРОДАЖА [19:19:49]line ТРК (МРК, ГНК) : 71 [19:19:49]line Товар: 2711129700 [19:19:49]line ГАЗ-К-3 [19:19:49]line 25.710 * 38.90 [19:19:49]line = 1000.12 [19:19:49]line НДС 12% НСП 1% [19:19:49]line > о реализуемом товаре [19:19:49]line ОКРУГЛЕНИЕ: -0.12 [19:19:49]line ИТОГО: 1000.00 [19:19:49]line Внесено: 1000.00 [19:19:49]line СДАЧА: 0.00 [19:19:49]line НСП 1% : 8.85 [19:19:49]line НДС 12% : 106.21 [19:19:49]line Наличными: 1000.00 [19:19:49]line Безнал.: 0.00 [19:19:49]line Место: АЗС № 85 "Партнер Нефть" [19:19:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:19:49]line СНО: Общий режим [19:19:49]line Чек 354 22.10.2024 19:19 [19:19:49]line Смена: 195 ФФД: 1.0 [19:19:49]line ЗНМ: 0300000167 [19:19:49]line РНМ: 0000000000156251 [19:19:49]line Версия ККМ: v1.0 [19:19:49]line ФМ: 0000000000963346 [19:19:49]line ФД: 70406 [19:19:49]line ФПД: 107849599875026 [19:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191948&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70406&fm=107849599875026&tin=02508201610067®Number=0000000000156251&sum=100000 [19:19:49]OFD Sender: Processing packet 70406 [packets to send 18, broken 17] [19:19:49]ProducePacketName [19:19:49]name=ofd_packets/00070406 [19:19:49]OFD Sender: To server: pG, [19:19:49]CommunicateWithHost lk.salyk.kg:30040 [19:19:49]ConnectInit lk.salyk.kg [19:19:49]written 0, free lines is 4095 [19:19:49]Connected sock=10 [19:19: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 34 36 0E 01 00 00 A1 EF 06 01 7B 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 62 01 00 00 F4 03 04 00 D4 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 13 01 00 35 04 06 00 62 16 B1 16 F7 D2 52 D3 25 83 54 94 28 18 [19:19: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 34 36 4F 00 00 00 4C 09 47 00 C1 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 34 36 10 04 04 00 06 13 01 00 F4 03 04 00 74 A4 17 67 B6 04 01 00 00 54 63 F3 C6 45 00 26 EB [19:19:50]CommunicateWithHost err = 0 [19:19:50]CheckOFDResponse [19:19:50]1017 (14) - 77093643461234 [19:19:50]1041 (16) - 0000000000963346 [19:19:50]1040 (4) - 70406 [19:19:50]1012 (4) - 22.10.2024 13:11 [19:19:50]1206 (1) - 0 [19:19:50]OFD Sender: Remove packet 70406 [19:19:50]ProducePacketName [19:19:50]name=ofd_packets/00070406 [19:19:50]NVStorageDeleteData [19:19:50]Write to MH i2c: 01 00 00 2E 1F 4D [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 07 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 E6 0C 46 [19:19:50]RasterBufferAndPrint [19:19:50]line [19:19:50]line [19:19:50]line [19:19:50]line [19:19:50]line [19:19:50]written 0, free lines is 3309 [19:19:50]MH_Cut [19:19:50]Write to MH i2c: D1 01 00 35 1F 01 26 [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: D1 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: D1 01 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: D1 01 00 35 1F 00 25 [19:19:50]Write to MH i2c: 01 00 00 36 1F 55 [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]OFD Sender: No OFD packet to send [19:19:50]*** Cut start [19:19:50]*** Partial cut [19:19:50]*** CUTSNS_PIN = 1 [19:19:50]*** CUTSNS_PIN = 0 [19:19:51]*** Brake cut motor [19:19:51]Read from MH i2c: 01 [19:19:51]MH_I2C_Read... [19:19:51]*** Stop cut motor [19:19:51]*** Cut end [19:19:51]Read from MH i2c: 01 07 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [19:19:51]process_action close_receipt done [19:19:51]requested_data is exist [19:19:51]produce_requested_data [19:19:51]requested_item fm.sn is exist - process it [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 11 00 00 [19:19:51]Write to MH i2c: E2 08 00 37 1F 80 11 00 00 00 00 00 00 D0 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 17 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 17 00 37 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [19:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:19:51]wFMCommunicate OK [19:19:51]requested_item fd.num is exist - process it [19:19:51]SAM_PROTO_GetFieldsCounters [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 13 00 00 [19:19:51]Write to MH i2c: E2 08 00 38 1F 80 13 00 00 00 00 00 00 D3 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 62 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 62 00 38 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 13 01 00 0E 04 04 00 C3 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 F4 [19:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 13 01 00 0E 04 04 00 C3 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 [19:19:51]wFMCommunicate OK [19:19:51]SAM_PROTO_GetFieldsCounters done [19:19:51]requested_item shift.num is exist - process it [19:19:51]requested_item shift.opened is exist - process it [19:19:51]req_shift_opened [19:19:51]FM_GetShiftState [19:19:51]SAM_PROTO_GetShiftState [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 13 01 00 [19:19:51]Write to MH i2c: E2 08 00 39 1F 80 13 01 00 00 00 00 00 D5 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 0E 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 0E 00 39 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C3 [19:19:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:19:51]wFMCommunicate OK [19:19:51]SAM_PROTO_GetShiftState done [19:19:51]FM_GetShiftState done [19:19:51]req_shift_opened done [19:19:51]requested_item shift.open_date is exist - process it [19:19:51]req_shift_open_date [19:19:51]req_shift_open_date done [19:19:51]produce_requested_data done [19:19:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70406,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:19:51]process_action_free close_receipt [19:19:51]json_value_free [19:19:51]json_value_free done [19:19:51]process_json_proto returns [19:19:51]Send response to host [19:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70406,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:19:51]free response buf [19:19:51]execute_script done [19:19:51]execute_script returns [19:19:51]free content buf [19:19:51]Sock 7.Close socket [19:19:51]Sock 7.Thread stoped [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:24]accept exits with 9 [19:20:24]New connection [19:20:24]New thread 3066699108 created [19:20:24]Thread 3066555748 joined [19:20:24]Waiting for new connection... [19:20:24] Sock 9.Parse request [19:20:24]Sock 9.Check first char [19:20:24]Sock 9.First char is OK [19:20:24]request: POST /json_proto HTTP/1.0 [19:20:24]Method: POST [19:20:24]URL: /json_proto [19:20:24]Method is POST - this is cgi request [19:20:24]url: /json_proto [19:20:24]query_string will be loaded in cgi processing [19:20:24]execute_cgi json_proto POST (null) [19:20:24]execute_cgi path=json_proto method=POST [19:20:24]POST find Content-Length [19:20:24]Host: 172.17.50.3:8080 [19:20:24]Content-Length: 776 [19:20:24]Content-Type: application/json [19:20:24] [19:20:24]POST finish read [19:20:24]Found Content-Length = 776 [19:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 33.680, "sum" : 2600.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" : 2600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:24]execute_script... [19:20: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)2886171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 33.680, "sum" : 2600.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" : 2600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:24]POST & json_proto [19:20:24]process_json_proto [19:20:24]json parsed OK: [19:20:24]protocol is kg_v1.0 [19:20:24]action value=close_receipt [19:20:24]process_action close_receipt [19:20:24]cmd_close_receipt [19:20:24]MH_GetDate [19:20:24]Write to MH i2c: F0 00 00 3A 1F 48 [19:20:24]Write i2c OK [19:20:24]MH_I2C_Read... [19:20:24]Read from MH i2c: F0 [19:20:24]MH_I2C_Read... [19:20:24]Read from MH i2c: F0 09 00 [19:20:24]MH_I2C_Read... [19:20:24]Read from MH i2c: F0 09 00 3A 1F 00 F9 FA 17 67 6B 98 1E 66 49 [19:20:24]GetLastDocTimeStamp 1729624788 [19:20:24]current date 1729624825 [19:20:24]FM_GetShiftState [19:20:24]SAM_PROTO_GetShiftState [19:20:24]wFMCommunicate request_size=4 [19:20:24]MH_SAM_APDU [19:20:24]CAPDU: 80 13 01 00 [19:20:24]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [19:20:24]Write i2c OK [19:20:24]MH_I2C_Read... [19:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:24]Read from MH i2c: E2 [19:20:24]MH_I2C_Read... [19:20:24]Read from MH i2c: E2 0E 00 [19:20:24]MH_I2C_Read... [19:20:24]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C5 [19:20:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:20:24]wFMCommunicate OK [19:20:24]SAM_PROTO_GetShiftState done [19:20:24]FM_GetShiftState done [19:20:24]opened in 1729555832 [19:20:24]opened+sec_in_day 1729642232 [19:20:24]quantity*price = 260009 [19:20:24]sum+1 = 260011 [19:20:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.10 НСП 1% : 23.01 НДС 12% : 276.12 Наличными: 0.00 Безнал.: 2600.10 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 355 22.10.2024 19:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70407 ФПД: 120786596998522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192025&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70407&fm=120786596998522&tin=02508201610067®Number=0000000000156251&sum=260010 [19:20:25]StoreToDocumentArchive [19:20:25]shift 195 fd 70407 [19:20:25]save to /storage/0195/doc_00070407 [19:20:25]save last doc name /storage/0195/doc_00070407 to /storage/kkm_last_doc_name [19:20:25]save OK [19:20:25]Clear old archive folders... [19:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:20:25]tlvbuf is 00B3CD90 [19:20:25]SAM_PROTO_ClearQueue [19:20:25]wFMCommunicate request_size=4 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 09 00 00 [19:20:25]Write to MH i2c: E2 08 00 48 1F 80 09 00 00 00 00 00 00 D9 [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:25]Read from MH i2c: E2 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 03 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [19:20:25]RAPDU: 90 00 [19:20:25]wFMCommunicate OK [19:20:25]SAM_PROTO_ClearQueue done [19:20:25]KKMCreateOFDPacket [19:20:25]OFDProtocolAddRootSTLVToBuf [19:20:25]FM_MakeSignedData [19:20:25]FM_MakeSignedData [19:20:25]SAM_PROTO_SignData [19:20:25]wFMCommunicate request_size=4 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 0D 01 02 [19:20:25]Write to MH i2c: E2 08 00 49 1F 80 0D 01 02 00 00 00 00 E1 [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:25]Read from MH i2c: E2 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 03 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [19:20:25]RAPDU: 90 00 [19:20:25]wFMCommunicate OK [19:20:25]wFMCommunicate request_size=255 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 F9 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 13 01 [19:20:25]Write to MH i2c: E2 02 01 4A 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 F9 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 13 01 00 00 95 [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:26]Read from MH i2c: E2 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 03 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [19:20:26]RAPDU: 90 00 [19:20:26]wFMCommunicate OK [19:20:26]wFMCommunicate request_size=16 [19:20:26]MH_SAM_APDU [19:20:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6D DA D2 35 2D 7A [19:20:26]Write to MH i2c: E2 13 00 4B 1F 80 0D 02 02 0B 00 00 35 04 06 00 6D DA D2 35 2D 7A 00 00 2E [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:26]Read from MH i2c: E2 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 03 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [19:20:26]RAPDU: 90 00 [19:20:26]wFMCommunicate OK [19:20:26]wFMCommunicate request_size=4 [19:20:26]MH_SAM_APDU [19:20:26]CAPDU: 80 0D 03 02 [19:20:26]Write to MH i2c: E2 08 00 4C 1F 80 0D 03 02 00 00 00 00 E6 [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:26]Read from MH i2c: E2 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 0B 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 0B 00 4C 1F 00 61 8A 73 94 3C AA 65 E3 90 00 07 [19:20:26]RAPDU: 61 8A 73 94 3C AA 65 E3 90 00 [19:20:26]wFMCommunicate OK [19:20:26]SAM_PROTO_SignData done [19:20:26]FM_MakeSignedData done [19:20:26]CreateOFDProtocolMessage [19:20:26]wFMCommunicate request_size=4 [19:20:26]MH_SAM_APDU [19:20:26]CAPDU: 80 11 00 00 [19:20:26]Write to MH i2c: E2 08 00 4D 1F 80 11 00 00 00 00 00 00 E6 [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:26]Read from MH i2c: E2 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 17 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: E2 17 00 4D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [19:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:26]wFMCommunicate OK [19:20:26]CreateOFDProtocolMessage done [19:20:26]OFDSenderStorePacket 70407 [19:20:26]StoreOFDPacket docnum=70407 [19:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 24 A0 0D 01 8C AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 F9 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 13 01 00 35 04 06 00 6D DA D2 35 2D 7A 61 8A 73 94 3C AA 65 E3 [19:20:26]CheckFolder [19:20:26]dirname=/storage/ofd_packets [19:20:26]CheckFolder done [19:20:26]ProducePacketName [19:20:26]name=ofd_packets/00070407 [19:20:26]NVStorageSaveData ofd_packets/00070407 [19:20:26]File name is /storage/ofd_packets/00070407 [19:20:26]Write 307 bytes [19:20:26]NVStorageSaveData done [19:20:26]OFDSenderStorePacket done [19:20:26]KKMCreateOFDPacket done [19:20:26]NVStorageSaveData kkm_last_timestamp [19:20:26]File name is /storage/kkm_last_timestamp [19:20:26]Write 4 bytes [19:20:26]NVStorageSaveData done [19:20:26]ExternCall_PrintAddStr [19:20:26]wPrintStart [19:20:26]Write to MH i2c: 01 00 00 4E 1F 6D [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 07 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 07 00 4E 1F 00 00 00 00 00 FF 0F 82 [19:20:26]RasterBufferAndPrint [19:20:26]line Счет N : (1)2886171 [19:20:26]line ИНН: 02508201610067 [19:20:26]line Контрольно-Кассовый Чек [19:20:26]line ПРОДАЖА [19:20:26]line ТРК (МРК, ГНК) : 31 [19:20:26]line Товар: 2710194240 [19:20:26]line D-ENERGY Дт-К-2 [19:20:26]line 33.680 * 77.20 [19:20:26]line = 2600.10 [19:20:26]line НДС 12% НСП 1% [19:20:26]line > о реализуемом товаре [19:20:26]line ИТОГО: 2600.10 [19:20:26]line НСП 1% : 23.01 [19:20:26]line НДС 12% : 276.12 [19:20:26]line Наличными: 0.00 [19:20:26]line Безнал.: 2600.10 [19:20:26]line Место: АЗС № 85 "Партнер Нефть" [19:20:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:20:26]line СНО: Общий режим [19:20:26]line Чек 355 22.10.2024 19:20 [19:20:26]line Смена: 195 ФФД: 1.0 [19:20:26]line ЗНМ: 0300000167 [19:20:26]line РНМ: 0000000000156251 [19:20:26]line Версия ККМ: v1.0 [19:20:26]line Платежная система: Mbank [19:20:26]line ФМ: 0000000000963346 [19:20:26]line ФД: 70407 [19:20:26]line ФПД: 120786596998522 [19:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192025&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70407&fm=120786596998522&tin=02508201610067®Number=0000000000156251&sum=260010 [19:20:26]written 0, free lines is 4095 [19:20:26]OFD Sender: Processing packet 70407 [packets to send 18, broken 17] [19:20:26]ProducePacketName [19:20:26]name=ofd_packets/00070407 [19:20:26]OFD Sender: To server: pG, [19:20:26]CommunicateWithHost lk.salyk.kg:30040 [19:20:26]ConnectInit lk.salyk.kg [19:20:26]Connected sock=10 [19:20: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 34 36 15 01 00 00 24 A0 0D 01 8C AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 F9 FA 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 13 01 00 35 04 06 00 6D DA D2 35 2D 7A 61 8A 73 94 3C AA 65 E3 [19:20:26]Write to MH i2c: 01 00 00 77 1F 96 [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 07 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 25 0D CF [19:20:26]RasterBufferAndPrint [19:20:26]line [19:20:26]line [19:20:26]line [19:20:26]line [19:20:26]line [19:20:26]written 0, free lines is 3372 [19:20:26]MH_Cut [19:20:26]Write to MH i2c: D1 01 00 7E 1F 01 6F [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: D1 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: D1 01 00 [19:20:26]MH_I2C_Read... [19:20:26]Read from MH i2c: D1 01 00 7E 1F 00 6E [19:20:26]Write to MH i2c: 01 00 00 7F 1F 9E [19:20:26]Write i2c OK [19:20:26]MH_I2C_Read... [19:20: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 34 36 4F 00 00 00 98 7B 47 00 FC 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 34 36 10 04 04 00 07 13 01 00 F4 03 04 00 99 A4 17 67 B6 04 01 00 00 32 EF D6 07 6B A8 95 0E [19:20:27]CommunicateWithHost err = 0 [19:20:27]CheckOFDResponse [19:20:27]1017 (14) - 77093643461234 [19:20:27]1041 (16) - 0000000000963346 [19:20:27]1040 (4) - 70407 [19:20:27]1012 (4) - 22.10.2024 13:11 [19:20:27]1206 (1) - 0 [19:20:27]OFD Sender: Remove packet 70407 [19:20:27]ProducePacketName [19:20:27]name=ofd_packets/00070407 [19:20:27]NVStorageDeleteData [19:20:27]*** Cut start [19:20:27]*** Partial cut [19:20:27]*** CUTSNS_PIN = 1 [19:20:27]OFD Sender: No OFD packet to send [19:20:27]*** CUTSNS_PIN = 0 [19:20:27]*** Brake cut motor [19:20:28]Read from MH i2c: 01 [19:20:28]MH_I2C_Read... [19:20:28]*** Stop cut motor [19:20:28]*** Cut end [19:20:28]Read from MH i2c: 01 07 00 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 FF 0F B3 [19:20:28]process_action close_receipt done [19:20:28]requested_data is exist [19:20:28]produce_requested_data [19:20:28]requested_item fm.sn is exist - process it [19:20:28]wFMCommunicate request_size=4 [19:20:28]MH_SAM_APDU [19:20:28]CAPDU: 80 11 00 00 [19:20:28]Write to MH i2c: E2 08 00 80 1F 80 11 00 00 00 00 00 00 19 [19:20:28]Write i2c OK [19:20:28]MH_I2C_Read... [19:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:28]Read from MH i2c: E2 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 17 00 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 17 00 80 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [19:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:28]wFMCommunicate OK [19:20:28]requested_item fd.num is exist - process it [19:20:28]SAM_PROTO_GetFieldsCounters [19:20:28]wFMCommunicate request_size=4 [19:20:28]MH_SAM_APDU [19:20:28]CAPDU: 80 13 00 00 [19:20:28]Write to MH i2c: E2 08 00 81 1F 80 13 00 00 00 00 00 00 1C [19:20:28]Write i2c OK [19:20:28]MH_I2C_Read... [19:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:28]Read from MH i2c: E2 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 62 00 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 62 00 81 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 13 01 00 0E 04 04 00 C3 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 41 [19:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 13 01 00 0E 04 04 00 C3 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 [19:20:28]wFMCommunicate OK [19:20:28]SAM_PROTO_GetFieldsCounters done [19:20:28]requested_item shift.num is exist - process it [19:20:28]requested_item shift.opened is exist - process it [19:20:28]req_shift_opened [19:20:28]FM_GetShiftState [19:20:28]SAM_PROTO_GetShiftState [19:20:28]wFMCommunicate request_size=4 [19:20:28]MH_SAM_APDU [19:20:28]CAPDU: 80 13 01 00 [19:20:28]Write to MH i2c: E2 08 00 82 1F 80 13 01 00 00 00 00 00 1E [19:20:28]Write i2c OK [19:20:28]MH_I2C_Read... [19:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:28]Read from MH i2c: E2 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 0E 00 [19:20:28]MH_I2C_Read... [19:20:28]Read from MH i2c: E2 0E 00 82 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0C [19:20:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:20:28]wFMCommunicate OK [19:20:28]SAM_PROTO_GetShiftState done [19:20:28]FM_GetShiftState done [19:20:28]req_shift_opened done [19:20:28]requested_item shift.open_date is exist - process it [19:20:28]req_shift_open_date [19:20:28]req_shift_open_date done [19:20:28]produce_requested_data done [19:20:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70407,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:20:28]process_action_free close_receipt [19:20:28]json_value_free [19:20:28]json_value_free done [19:20:28]process_json_proto returns [19:20:28]Send response to host [19:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70407,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:20:28]free response buf [19:20:28]execute_script done [19:20:28]execute_script returns [19:20:28]free content buf [19:20:28]Sock 9.Close socket [19:20:28]Sock 9.Thread stoped [19:20:32]OFD Sender: No OFD packet to send [19:20:37]accept exits with 7 [19:20:37]New connection [19:20:37]New thread 3066555748 created [19:20:37]Thread 3066699108 joined [19:20:37]Waiting for new connection... [19:20:37] Sock 7.Parse request [19:20:37]Sock 7.Check first char [19:20:37]Sock 7.First char is OK [19:20:37]request: POST /json_proto HTTP/1.0 [19:20:37]Method: POST [19:20:37]URL: /json_proto [19:20:37]Method is POST - this is cgi request [19:20:37]url: /json_proto [19:20:37]query_string will be loaded in cgi processing [19:20:37]execute_cgi json_proto POST (null) [19:20:37]execute_cgi path=json_proto method=POST [19:20:37]POST find Content-Length [19:20:37]Host: 172.17.50.3:8080 [19:20:37]Content-Length: 755 [19:20:37]Content-Type: application/json [19:20:37] [19:20:37]POST finish read [19:20:37]Found Content-Length = 755 [19:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A30086203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:37]execute_script... [19:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A30086203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:37]POST & json_proto [19:20:37]process_json_proto [19:20:37]json parsed OK: [19:20:37]protocol is kg_v1.0 [19:20:37]action value=close_receipt [19:20:37]process_action close_receipt [19:20:37]cmd_close_receipt [19:20:37]MH_GetDate [19:20:37]Write to MH i2c: F0 00 00 83 1F 91 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: F0 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: F0 09 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: F0 09 00 83 1F 00 06 FB 17 67 6B 98 1E 66 A0 [19:20:37]GetLastDocTimeStamp 1729624825 [19:20:37]current date 1729624838 [19:20:37]FM_GetShiftState [19:20:37]SAM_PROTO_GetShiftState [19:20:37]wFMCommunicate request_size=4 [19:20:37]MH_SAM_APDU [19:20:37]CAPDU: 80 13 01 00 [19:20:37]Write to MH i2c: E2 08 00 84 1F 80 13 01 00 00 00 00 00 20 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:37]Read from MH i2c: E2 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 0E 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 0E 00 84 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0E [19:20:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:20:37]wFMCommunicate OK [19:20:37]SAM_PROTO_GetShiftState done [19:20:37]FM_GetShiftState done [19:20:37]opened in 1729555832 [19:20:37]opened+sec_in_day 1729642232 [19:20:37]quantity*price = 0 [19:20:37]sum+1 = 1 [19:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 356 22.10.2024 19:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30086203 ФМ: 0000000000963346 ФД: 70408 ФПД: 189566233454831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192038&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70408&fm=189566233454831&tin=02508201610067®Number=0000000000156251&sum=0 [19:20:38]StoreToDocumentArchive [19:20:38]shift 195 fd 70408 [19:20:38]save to /storage/0195/doc_00070408 [19:20:38]save last doc name /storage/0195/doc_00070408 to /storage/kkm_last_doc_name [19:20:38]save OK [19:20:38]Clear old archive folders... [19:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:38]tlvbuf is B6E836A0 [19:20:38]SAM_PROTO_ClearQueue [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 09 00 00 [19:20:38]Write to MH i2c: E2 08 00 91 1F 80 09 00 00 00 00 00 00 22 [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 03 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 03 00 91 1F 00 90 00 24 [19:20:38]RAPDU: 90 00 [19:20:38]wFMCommunicate OK [19:20:38]SAM_PROTO_ClearQueue done [19:20:38]KKMCreateOFDPacket [19:20:38]OFDProtocolAddRootSTLVToBuf [19:20:38]FM_MakeSignedData [19:20:38]FM_MakeSignedData [19:20:38]SAM_PROTO_SignData [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 0D 01 02 [19:20:38]Write to MH i2c: E2 08 00 92 1F 80 0D 01 02 00 00 00 00 2A [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 03 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [19:20:38]RAPDU: 90 00 [19:20:38]wFMCommunicate OK [19:20:38]wFMCommunicate request_size=255 [19:20:38]MH_SAM_APDU [19:20: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 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 64 01 00 00 F4 03 04 00 06 FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 13 01 00 35 04 06 00 AC [19:20:38]Write to MH i2c: E2 02 01 93 1F 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 64 01 00 00 F4 03 04 00 06 FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 13 01 00 35 04 06 00 AC 00 00 0B [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=10 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 02 02 05 68 D4 01 A8 EF [19:20:39]Write to MH i2c: E2 0D 00 94 1F 80 0D 02 02 05 00 68 D4 01 A8 EF 00 00 0B [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 03 02 [19:20:39]Write to MH i2c: E2 08 00 95 1F 80 0D 03 02 00 00 00 00 2F [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0B 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0B 00 95 1F 00 0E 47 7F B4 F9 92 C8 B1 90 00 BC [19:20:39]RAPDU: 0E 47 7F B4 F9 92 C8 B1 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_SignData done [19:20:39]FM_MakeSignedData done [19:20:39]CreateOFDProtocolMessage [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 11 00 00 [19:20:39]Write to MH i2c: E2 08 00 96 1F 80 11 00 00 00 00 00 00 2F [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 96 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [19:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:39]wFMCommunicate OK [19:20:39]CreateOFDProtocolMessage done [19:20:39]OFDSenderStorePacket 70408 [19:20:39]StoreOFDPacket docnum=70408 [19:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 13 07 01 9C 0F 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 64 01 00 00 F4 03 04 00 06 FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 13 01 00 35 04 06 00 AC 68 D4 01 A8 EF 0E 47 7F B4 F9 92 C8 B1 [19:20:39]CheckFolder [19:20:39]dirname=/storage/ofd_packets [19:20:39]CheckFolder done [19:20:39]ProducePacketName [19:20:39]name=ofd_packets/00070408 [19:20:39]NVStorageSaveData ofd_packets/00070408 [19:20:39]File name is /storage/ofd_packets/00070408 [19:20:39]Write 301 bytes [19:20:39]NVStorageSaveData done [19:20:39]OFDSenderStorePacket done [19:20:39]KKMCreateOFDPacket done [19:20:39]NVStorageSaveData kkm_last_timestamp [19:20:39]File name is /storage/kkm_last_timestamp [19:20:39]Write 4 bytes [19:20:39]NVStorageSaveData done [19:20:39]ExternCall_PrintAddStr [19:20:39]wPrintStart [19:20:39]Write to MH i2c: 01 00 00 97 1F B6 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 07 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 07 00 97 1F 00 00 00 00 00 FF 0F CB [19:20:39]RasterBufferAndPrint [19:20:39]line Счет N : (1)2886174 [19:20:39]line ИНН: 02508201610067 [19:20:39]line Контрольно-Кассовый Чек [19:20:39]line ПРОДАЖА [19:20:39]line ТРК (МРК, ГНК) : 42 [19:20:39]line Товар: 2710124130 [19:20:39]line Аи-92-К-5 [19:20:39]line 20.000 * 0.00 [19:20:39]line = 0.00 [19:20:39]line НДС 12% НСП 1% [19:20:39]line > о реализуемом товаре [19:20:39]line ИТОГО: 0.00 [19:20:39]line НСП 1% : 0.00 [19:20:39]line НДС 12% : 0.00 [19:20:39]line Наличными: 0.00 [19:20:39]line Безнал.: 0.00 [19:20:39]line Место: АЗС № 85 "Партнер Нефть" [19:20:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:20:39]line СНО: Общий режим [19:20:39]line Чек 356 22.10.2024 19:20 [19:20:39]line Смена: 195 ФФД: 1.0 [19:20:39]line ЗНМ: 0300000167 [19:20:39]line РНМ: 0000000000156251 [19:20:39]line Версия ККМ: v1.0 [19:20:39]line Талоны: ТК ГПНА Online [19:20:39]line 30086203 [19:20:39]line ФМ: 0000000000963346 [19:20:39]line ФД: 70408 [19:20:39]line ФПД: 189566233454831 [19:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192038&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70408&fm=189566233454831&tin=02508201610067®Number=0000000000156251&sum=0 [19:20:39]OFD Sender: Processing packet 70408 [packets to send 18, broken 17] [19:20:39]ProducePacketName [19:20:39]name=ofd_packets/00070408 [19:20:39]OFD Sender: To server: pG, [19:20:39]CommunicateWithHost lk.salyk.kg:30040 [19:20:39]ConnectInit lk.salyk.kg [19:20:39]written 0, free lines is 4095 [19:20:39]Connected sock=10 [19:20: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 34 36 0F 01 00 00 56 13 07 01 9C 0F 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 64 01 00 00 F4 03 04 00 06 FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 13 01 00 35 04 06 00 AC 68 D4 01 A8 EF 0E 47 7F B4 F9 92 C8 B1 [19:20: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 34 36 4F 00 00 00 35 01 47 00 A2 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 13 01 00 F4 03 04 00 A6 A4 17 67 B6 04 01 00 00 46 37 BE 0C BD A7 95 86 [19:20:39]CommunicateWithHost err = 0 [19:20:39]CheckOFDResponse [19:20:39]1017 (14) - 77093643461234 [19:20:39]1041 (16) - 0000000000963346 [19:20:39]1040 (4) - 70408 [19:20:39]1012 (4) - 22.10.2024 13:12 [19:20:39]1206 (1) - 0 [19:20:39]OFD Sender: Remove packet 70408 [19:20:39]ProducePacketName [19:20:39]name=ofd_packets/00070408 [19:20:39]NVStorageDeleteData [19:20:40]Write to MH i2c: 01 00 00 C1 1F E0 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 0D 0D 01 [19:20:40]RasterBufferAndPrint [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]written 0, free lines is 3347 [19:20:40]MH_Cut [19:20:40]Write to MH i2c: D1 01 00 C8 1F 01 B9 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 C8 1F 00 B8 [19:20:40]Write to MH i2c: 01 00 00 C9 1F E8 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]OFD Sender: No OFD packet to send [19:20:40]*** Cut start [19:20:40]*** Partial cut [19:20:40]*** CUTSNS_PIN = 1 [19:20:40]*** CUTSNS_PIN = 0 [19:20:40]*** Brake cut motor [19:20:41]Read from MH i2c: 01 [19:20:41]MH_I2C_Read... [19:20:41]*** Stop cut motor [19:20:41]*** Cut end [19:20:41]Read from MH i2c: 01 07 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: 01 07 00 C9 1F 00 00 00 00 00 FF 0F FD [19:20:41]process_action close_receipt done [19:20:41]requested_data is exist [19:20:41]produce_requested_data [19:20:41]requested_item fm.sn is exist - process it [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 11 00 00 [19:20:41]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [19:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:41]wFMCommunicate OK [19:20:41]requested_item fd.num is exist - process it [19:20:41]SAM_PROTO_GetFieldsCounters [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 13 00 00 [19:20:41]Write to MH i2c: E2 08 00 CB 1F 80 13 00 00 00 00 00 00 66 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 62 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 62 00 CB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 13 01 00 0E 04 04 00 C3 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 8F [19:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 13 01 00 0E 04 04 00 C3 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 [19:20:41]wFMCommunicate OK [19:20:41]SAM_PROTO_GetFieldsCounters done [19:20:41]requested_item shift.num is exist - process it [19:20:41]requested_item shift.opened is exist - process it [19:20:41]req_shift_opened [19:20:41]FM_GetShiftState [19:20:41]SAM_PROTO_GetShiftState [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 13 01 00 [19:20:41]Write to MH i2c: E2 08 00 CC 1F 80 13 01 00 00 00 00 00 68 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 0E 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 0E 00 CC 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 56 [19:20:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:20:41]wFMCommunicate OK [19:20:41]SAM_PROTO_GetShiftState done [19:20:41]FM_GetShiftState done [19:20:41]req_shift_opened done [19:20:41]requested_item shift.open_date is exist - process it [19:20:41]req_shift_open_date [19:20:41]req_shift_open_date done [19:20:41]produce_requested_data done [19:20:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70408,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:20:41]process_action_free close_receipt [19:20:41]json_value_free [19:20:41]json_value_free done [19:20:41]process_json_proto returns [19:20:41]Send response to host [19:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70408,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:20:41]free response buf [19:20:41]execute_script done [19:20:41]execute_script returns [19:20:41]free content buf [19:20:41]Sock 7.Close socket [19:20:41]Sock 7.Thread stoped [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:31]accept exits with 9 [19:21:31]New connection [19:21:31]New thread 3066699108 created [19:21:31]Thread 3066555748 joined [19:21:31]Waiting for new connection... [19:21:31] Sock 9.Parse request [19:21:31]Sock 9.Check first char [19:21:31]Sock 9.First char is OK [19:21:31]request: POST /json_proto HTTP/1.0 [19:21:31]Method: POST [19:21:31]URL: /json_proto [19:21:31]Method is POST - this is cgi request [19:21:31]url: /json_proto [19:21:31]query_string will be loaded in cgi processing [19:21:31]execute_cgi json_proto POST (null) [19:21:31]execute_cgi path=json_proto method=POST [19:21:31]POST find Content-Length [19:21:31]Host: 172.17.50.3:8080 [19:21:31]Content-Length: 689 [19:21:31]Content-Type: application/json [19:21:31] [19:21:31]POST finish read [19:21:31]Found Content-Length = 689 [19:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:31]execute_script... [19:21: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)2886175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:31]POST & json_proto [19:21:31]process_json_proto [19:21:31]json parsed OK: [19:21:31]protocol is kg_v1.0 [19:21:31]action value=close_receipt [19:21:31]process_action close_receipt [19:21:31]cmd_close_receipt [19:21:31]MH_GetDate [19:21:31]Write to MH i2c: F0 00 00 CD 1F DB [19:21:31]Write i2c OK [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 09 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: F0 09 00 CD 1F 00 3C FB 17 67 6B 98 1E 66 20 [19:21:31]GetLastDocTimeStamp 1729624838 [19:21:31]current date 1729624892 [19:21:31]FM_GetShiftState [19:21:31]SAM_PROTO_GetShiftState [19:21:31]wFMCommunicate request_size=4 [19:21:31]MH_SAM_APDU [19:21:31]CAPDU: 80 13 01 00 [19:21:31]Write to MH i2c: E2 08 00 CE 1F 80 13 01 00 00 00 00 00 6A [19:21:31]Write i2c OK [19:21:31]MH_I2C_Read... [19:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:31]Read from MH i2c: E2 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 [19:21:31]MH_I2C_Read... [19:21:31]Read from MH i2c: E2 0E 00 CE 1F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 58 [19:21:31]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:21:31]wFMCommunicate OK [19:21:31]SAM_PROTO_GetShiftState done [19:21:31]FM_GetShiftState done [19:21:31]opened in 1729555832 [19:21:31]opened+sec_in_day 1729642232 [19:21:31]quantity*price = 120046 [19:21:31]sum+1 = 120047 [19:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 357 22.10.2024 19:21 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70409 ФПД: 60806485967412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192132&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70409&fm=60806485967412&tin=02508201610067®Number=0000000000156251&sum=120000 [19:21:32]StoreToDocumentArchive [19:21:32]shift 195 fd 70409 [19:21:32]save to /storage/0195/doc_00070409 [19:21:32]save last doc name /storage/0195/doc_00070409 to /storage/kkm_last_doc_name [19:21:32]save OK [19:21:32]Clear old archive folders... [19:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:21:32]tlvbuf is 00B3D100 [19:21:32]SAM_PROTO_ClearQueue [19:21:32]wFMCommunicate request_size=4 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 09 00 00 [19:21:32]Write to MH i2c: E2 08 00 DB 1F 80 09 00 00 00 00 00 00 6C [19:21:32]Write i2c OK [19:21:32]MH_I2C_Read... [19:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:32]Read from MH i2c: E2 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [19:21:32]RAPDU: 90 00 [19:21:32]wFMCommunicate OK [19:21:32]SAM_PROTO_ClearQueue done [19:21:32]KKMCreateOFDPacket [19:21:32]OFDProtocolAddRootSTLVToBuf [19:21:32]FM_MakeSignedData [19:21:32]FM_MakeSignedData [19:21:32]SAM_PROTO_SignData [19:21:32]wFMCommunicate request_size=4 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 0D 01 02 [19:21:32]Write to MH i2c: E2 08 00 DC 1F 80 0D 01 02 00 00 00 00 74 [19:21:32]Write i2c OK [19:21:32]MH_I2C_Read... [19:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:32]Read from MH i2c: E2 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 [19:21:32]MH_I2C_Read... [19:21:32]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [19:21:32]RAPDU: 90 00 [19:21:32]wFMCommunicate OK [19:21:32]wFMCommunicate request_size=255 [19:21:32]MH_SAM_APDU [19:21:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 3C FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 13 01 [19:21:32]Write to MH i2c: E2 02 01 DD 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 3C FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 13 01 00 00 33 [19:21:32]Write i2c OK [19:21:32]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [19:21:33]RAPDU: 90 00 [19:21:33]wFMCommunicate OK [19:21:33]wFMCommunicate request_size=16 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 37 4D 9C FF 02 34 [19:21:33]Write to MH i2c: E2 13 00 DE 1F 80 0D 02 02 0B 00 00 35 04 06 00 37 4D 9C FF 02 34 00 00 21 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [19:21:33]RAPDU: 90 00 [19:21:33]wFMCommunicate OK [19:21:33]wFMCommunicate request_size=4 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 0D 03 02 [19:21:33]Write to MH i2c: E2 08 00 DF 1F 80 0D 03 02 00 00 00 00 79 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 0B 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 0B 00 DF 1F 00 D8 E8 F7 8C 26 F4 14 7F 90 00 6A [19:21:33]RAPDU: D8 E8 F7 8C 26 F4 14 7F 90 00 [19:21:33]wFMCommunicate OK [19:21:33]SAM_PROTO_SignData done [19:21:33]FM_MakeSignedData done [19:21:33]CreateOFDProtocolMessage [19:21:33]wFMCommunicate request_size=4 [19:21:33]MH_SAM_APDU [19:21:33]CAPDU: 80 11 00 00 [19:21:33]Write to MH i2c: E2 08 00 E0 1F 80 11 00 00 00 00 00 00 79 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:33]Read from MH i2c: E2 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 17 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: E2 17 00 E0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [19:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:21:33]wFMCommunicate OK [19:21:33]CreateOFDProtocolMessage done [19:21:33]OFDSenderStorePacket 70409 [19:21:33]StoreOFDPacket docnum=70409 [19:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7D C5 0D 01 5F 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 3C FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 13 01 00 35 04 06 00 37 4D 9C FF 02 34 D8 E8 F7 8C 26 F4 14 7F [19:21:33]CheckFolder [19:21:33]dirname=/storage/ofd_packets [19:21:33]CheckFolder done [19:21:33]ProducePacketName [19:21:33]name=ofd_packets/00070409 [19:21:33]NVStorageSaveData ofd_packets/00070409 [19:21:33]File name is /storage/ofd_packets/00070409 [19:21:33]Write 307 bytes [19:21:33]NVStorageSaveData done [19:21:33]OFDSenderStorePacket done [19:21:33]KKMCreateOFDPacket done [19:21:33]NVStorageSaveData kkm_last_timestamp [19:21:33]File name is /storage/kkm_last_timestamp [19:21:33]Write 4 bytes [19:21:33]NVStorageSaveData done [19:21:33]ExternCall_PrintAddStr [19:21:33]wPrintStart [19:21:33]Write to MH i2c: 01 00 00 E1 1F 00 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 E1 1F 00 00 00 00 00 FF 0F 15 [19:21:33]RasterBufferAndPrint [19:21:33]line Счет N : (1)2886175 [19:21:33]line ИНН: 02508201610067 [19:21:33]line Контрольно-Кассовый Чек [19:21:33]line ПРОДАЖА [19:21:33]line ТРК (МРК, ГНК) : 11 [19:21:33]line Товар: 2710194240 [19:21:33]line D-ENERGY Дт-К-2 [19:21:33]line 15.550 * 77.20 [19:21:33]line = 1200.46 [19:21:33]line НДС 12% НСП 1% [19:21:33]line > о реализуемом товаре [19:21:33]line ОКРУГЛЕНИЕ: -0.46 [19:21:33]line ИТОГО: 1200.00 [19:21:33]line Внесено: 1200.00 [19:21:33]line СДАЧА: 0.00 [19:21:33]line НСП 1% : 10.62 [19:21:33]line НДС 12% : 127.48 [19:21:33]line Наличными: 1200.00 [19:21:33]line Безнал.: 0.00 [19:21:33]line Место: АЗС № 85 "Партнер Нефть" [19:21:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:21:33]line СНО: Общий режим [19:21:33]line Чек 357 22.10.2024 19:21 [19:21:33]line Смена: 195 ФФД: 1.0 [19:21:33]line ЗНМ: 0300000167 [19:21:33]line РНМ: 0000000000156251 [19:21:33]line Версия ККМ: v1.0 [19:21:33]line ФМ: 0000000000963346 [19:21:33]line ФД: 70409 [19:21:33]line ФПД: 60806485967412 [19:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192132&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70409&fm=60806485967412&tin=02508201610067®Number=0000000000156251&sum=120000 [19:21:33]OFD Sender: Processing packet 70409 [packets to send 18, broken 17] [19:21:33]ProducePacketName [19:21:33]name=ofd_packets/00070409 [19:21:33]OFD Sender: To server: pG, [19:21:33]CommunicateWithHost lk.salyk.kg:30040 [19:21:33]ConnectInit lk.salyk.kg [19:21:33]written 0, free lines is 4095 [19:21:33]Connected sock=10 [19:21: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 34 36 15 01 00 00 7D C5 0D 01 5F 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 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 3C FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 13 01 00 35 04 06 00 37 4D 9C FF 02 34 D8 E8 F7 8C 26 F4 14 7F [19:21: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 34 36 4F 00 00 00 70 B7 47 00 FE 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 34 36 10 04 04 00 09 13 01 00 F4 03 04 00 DC A4 17 67 B6 04 01 00 00 AD 47 56 49 49 08 5E 7F [19:21:33]CommunicateWithHost err = 0 [19:21:33]CheckOFDResponse [19:21:33]1017 (14) - 77093643461234 [19:21:33]1041 (16) - 0000000000963346 [19:21:33]1040 (4) - 70409 [19:21:33]1012 (4) - 22.10.2024 13:13 [19:21:33]1206 (1) - 0 [19:21:33]OFD Sender: Remove packet 70409 [19:21:33]ProducePacketName [19:21:33]name=ofd_packets/00070409 [19:21:33]NVStorageDeleteData [19:21:33]Write to MH i2c: 01 00 00 0C 20 2C [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 FB 0C 3A [19:21:33]RasterBufferAndPrint [19:21:33]line [19:21:33]line [19:21:33]line [19:21:33]line [19:21:33]line [19:21:33]written 0, free lines is 3332 [19:21:33]MH_Cut [19:21:33]Write to MH i2c: D1 01 00 13 20 01 05 [19:21:33]Write i2c OK [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: D1 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: D1 01 00 [19:21:33]MH_I2C_Read... [19:21:33]Read from MH i2c: D1 01 00 13 20 00 04 [19:21:33]Write to MH i2c: 01 00 00 14 20 34 [19:21:34]Write i2c OK [19:21:34]MH_I2C_Read... [19:21:34]OFD Sender: No OFD packet to send [19:21:34]*** Cut start [19:21:34]*** Partial cut [19:21:34]*** CUTSNS_PIN = 1 [19:21:34]*** CUTSNS_PIN = 0 [19:21:34]*** Brake cut motor [19:21:35]Read from MH i2c: 01 [19:21:35]MH_I2C_Read... [19:21:35]*** Stop cut motor [19:21:35]*** Cut end [19:21:35]Read from MH i2c: 01 07 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 FF 0F 49 [19:21:35]process_action close_receipt done [19:21:35]requested_data is exist [19:21:35]produce_requested_data [19:21:35]requested_item fm.sn is exist - process it [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 11 00 00 [19:21:35]Write to MH i2c: E2 08 00 15 20 80 11 00 00 00 00 00 00 AF [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 17 00 [19:21:35]MH_I2C_Read... [19:21:35]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 34 36 90 00 01 [19:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:21:35]wFMCommunicate OK [19:21:35]requested_item fd.num is exist - process it [19:21:35]SAM_PROTO_GetFieldsCounters [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 13 00 00 [19:21:35]Write to MH i2c: E2 08 00 16 20 80 13 00 00 00 00 00 00 B2 [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 62 00 [19:21:35]MH_I2C_Read... [19:21:35]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 13 01 00 0E 04 04 00 C3 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 DF [19:21: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 13 01 00 0E 04 04 00 C3 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 [19:21:35]wFMCommunicate OK [19:21:35]SAM_PROTO_GetFieldsCounters done [19:21:35]requested_item shift.num is exist - process it [19:21:35]requested_item shift.opened is exist - process it [19:21:35]req_shift_opened [19:21:35]FM_GetShiftState [19:21:35]SAM_PROTO_GetShiftState [19:21:35]wFMCommunicate request_size=4 [19:21:35]MH_SAM_APDU [19:21:35]CAPDU: 80 13 01 00 [19:21:35]Write to MH i2c: E2 08 00 17 20 80 13 01 00 00 00 00 00 B4 [19:21:35]Write i2c OK [19:21:35]MH_I2C_Read... [19:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:35]Read from MH i2c: E2 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 0E 00 [19:21:35]MH_I2C_Read... [19:21:35]Read from MH i2c: E2 0E 00 17 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A2 [19:21:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:21:35]wFMCommunicate OK [19:21:35]SAM_PROTO_GetShiftState done [19:21:35]FM_GetShiftState done [19:21:35]req_shift_opened done [19:21:35]requested_item shift.open_date is exist - process it [19:21:35]req_shift_open_date [19:21:35]req_shift_open_date done [19:21:35]produce_requested_data done [19:21:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70409,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:21:35]process_action_free close_receipt [19:21:35]json_value_free [19:21:35]json_value_free done [19:21:35]process_json_proto returns [19:21:35]Send response to host [19:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70409,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:21:35]free response buf [19:21:35]execute_script done [19:21:35]execute_script returns [19:21:35]free content buf [19:21:35]Sock 9.Close socket [19:21:35]Sock 9.Thread stoped [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:17]accept exits with 7 [19:22:17]New connection [19:22:17]New thread 3066555748 created [19:22:17]Thread 3066699108 joined [19:22:17]Waiting for new connection... [19:22:17] Sock 7.Parse request [19:22:17]Sock 7.Check first char [19:22:17]Sock 7.First char is OK [19:22:17]request: POST /json_proto HTTP/1.0 [19:22:17]Method: POST [19:22:17]URL: /json_proto [19:22:17]Method is POST - this is cgi request [19:22:17]url: /json_proto [19:22:17]query_string will be loaded in cgi processing [19:22:17]execute_cgi json_proto POST (null) [19:22:17]execute_cgi path=json_proto method=POST [19:22:17]POST find Content-Length [19:22:17]Host: 172.17.50.3:8080 [19:22:17]Content-Length: 680 [19:22:17]Content-Type: application/json [19:22:17] [19:22:17]POST finish read [19:22:17]Found Content-Length = 680 [19:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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:22:17]execute_script... [19:22: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)2886176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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:22:17]POST & json_proto [19:22:17]process_json_proto [19:22:17]json parsed OK: [19:22:17]protocol is kg_v1.0 [19:22:17]action value=close_receipt [19:22:17]process_action close_receipt [19:22:17]cmd_close_receipt [19:22:17]MH_GetDate [19:22:17]Write to MH i2c: F0 00 00 18 20 27 [19:22:17]Write i2c OK [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: F0 [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: F0 09 00 [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: F0 09 00 18 20 00 6A FB 17 67 6B 98 1E 66 9A [19:22:17]GetLastDocTimeStamp 1729624892 [19:22:17]current date 1729624938 [19:22:17]FM_GetShiftState [19:22:17]SAM_PROTO_GetShiftState [19:22:17]wFMCommunicate request_size=4 [19:22:17]MH_SAM_APDU [19:22:17]CAPDU: 80 13 01 00 [19:22:17]Write to MH i2c: E2 08 00 19 20 80 13 01 00 00 00 00 00 B6 [19:22:17]Write i2c OK [19:22:17]MH_I2C_Read... [19:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:17]Read from MH i2c: E2 [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: E2 0E 00 [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: E2 0E 00 19 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A4 [19:22:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:22:17]wFMCommunicate OK [19:22:17]SAM_PROTO_GetShiftState done [19:22:17]FM_GetShiftState done [19:22:17]opened in 1729555832 [19:22:17]opened+sec_in_day 1729642232 [19:22:17]quantity*price = 100050 [19:22:17]sum+1 = 100052 [19:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 358 22.10.2024 19:22 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70410 ФПД: 273493356507822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192218&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70410&fm=273493356507822&tin=02508201610067®Number=0000000000156251&sum=100000 [19:22:18]StoreToDocumentArchive [19:22:18]shift 195 fd 70410 [19:22:18]save to /storage/0195/doc_00070410 [19:22:18]save last doc name /storage/0195/doc_00070410 to /storage/kkm_last_doc_name [19:22:18]save OK [19:22:18]Clear old archive folders... [19:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:18]tlvbuf is B6E9CAC0 [19:22:18]SAM_PROTO_ClearQueue [19:22:18]wFMCommunicate request_size=4 [19:22:18]MH_SAM_APDU [19:22:18]CAPDU: 80 09 00 00 [19:22:18]Write to MH i2c: E2 08 00 26 20 80 09 00 00 00 00 00 00 B8 [19:22:18]Write i2c OK [19:22:18]MH_I2C_Read... [19:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:18]Read from MH i2c: E2 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 03 00 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [19:22:18]RAPDU: 90 00 [19:22:18]wFMCommunicate OK [19:22:18]SAM_PROTO_ClearQueue done [19:22:18]KKMCreateOFDPacket [19:22:18]OFDProtocolAddRootSTLVToBuf [19:22:18]FM_MakeSignedData [19:22:18]FM_MakeSignedData [19:22:18]SAM_PROTO_SignData [19:22:18]wFMCommunicate request_size=4 [19:22:18]MH_SAM_APDU [19:22:18]CAPDU: 80 0D 01 02 [19:22:18]Write to MH i2c: E2 08 00 27 20 80 0D 01 02 00 00 00 00 C0 [19:22:18]Write i2c OK [19:22:18]MH_I2C_Read... [19:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:18]Read from MH i2c: E2 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 03 00 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [19:22:18]RAPDU: 90 00 [19:22:18]wFMCommunicate OK [19:22:18]wFMCommunicate request_size=255 [19:22:18]MH_SAM_APDU [19:22:18]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 01 00 00 F4 03 04 00 6A FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 13 01 00 35 04 06 00 F8 BD A2 5C [19:22:18]Write to MH i2c: E2 02 01 28 20 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 01 00 00 F4 03 04 00 6A FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 13 01 00 35 04 06 00 F8 BD A2 5C 00 00 1D [19:22:18]Write i2c OK [19:22:18]MH_I2C_Read... [19:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:19]Read from MH i2c: E2 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 03 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 03 00 28 20 00 90 00 BC [19:22:19]RAPDU: 90 00 [19:22:19]wFMCommunicate OK [19:22:19]wFMCommunicate request_size=7 [19:22:19]MH_SAM_APDU [19:22:19]CAPDU: 80 0D 02 02 02 F2 AE [19:22:19]Write to MH i2c: E2 0A 00 29 20 80 0D 02 02 02 00 F2 AE 00 00 67 [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:19]Read from MH i2c: E2 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 03 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [19:22:19]RAPDU: 90 00 [19:22:19]wFMCommunicate OK [19:22:19]wFMCommunicate request_size=4 [19:22:19]MH_SAM_APDU [19:22:19]CAPDU: 80 0D 03 02 [19:22:19]Write to MH i2c: E2 08 00 2A 20 80 0D 03 02 00 00 00 00 C5 [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:19]Read from MH i2c: E2 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 0B 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 0B 00 2A 20 00 02 9A 6C 27 98 A2 0D B5 90 00 F1 [19:22:19]RAPDU: 02 9A 6C 27 98 A2 0D B5 90 00 [19:22:19]wFMCommunicate OK [19:22:19]SAM_PROTO_SignData done [19:22:19]FM_MakeSignedData done [19:22:19]CreateOFDProtocolMessage [19:22:19]wFMCommunicate request_size=4 [19:22:19]MH_SAM_APDU [19:22:19]CAPDU: 80 11 00 00 [19:22:19]Write to MH i2c: E2 08 00 2B 20 80 11 00 00 00 00 00 00 C5 [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:19]Read from MH i2c: E2 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 17 00 [19:22:19]MH_I2C_Read... [19:22:19]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 34 36 90 00 17 [19:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:22:19]wFMCommunicate OK [19:22:19]CreateOFDProtocolMessage done [19:22:19]OFDSenderStorePacket 70410 [19:22:19]StoreOFDPacket docnum=70410 [19:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 48 FE 04 01 01 71 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 01 00 00 F4 03 04 00 6A FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 13 01 00 35 04 06 00 F8 BD A2 5C F2 AE 02 9A 6C 27 98 A2 0D B5 [19:22:19]CheckFolder [19:22:19]dirname=/storage/ofd_packets [19:22:19]CheckFolder done [19:22:19]ProducePacketName [19:22:19]name=ofd_packets/00070410 [19:22:19]NVStorageSaveData ofd_packets/00070410 [19:22:19]File name is /storage/ofd_packets/00070410 [19:22:19]Write 298 bytes [19:22:19]NVStorageSaveData done [19:22:19]OFDSenderStorePacket done [19:22:19]KKMCreateOFDPacket done [19:22:19]NVStorageSaveData kkm_last_timestamp [19:22:19]File name is /storage/kkm_last_timestamp [19:22:19]Write 4 bytes [19:22:19]NVStorageSaveData done [19:22:19]ExternCall_PrintAddStr [19:22:19]wPrintStart [19:22:19]Write to MH i2c: 01 00 00 2C 20 4C [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: 01 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: 01 07 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: 01 07 00 2C 20 00 00 00 00 00 FF 0F 61 [19:22:19]RasterBufferAndPrint [19:22:19]line Счет N : (1)2886176 [19:22:19]line ИНН: 02508201610067 [19:22:19]line Контрольно-Кассовый Чек [19:22:19]line ПРОДАЖА [19:22:19]line ТРК (МРК, ГНК) : 61 [19:22:19]line Товар: 2710194210 [19:22:19]line ДТ-К-5 [19:22:19]line 13.130 * 76.20 [19:22:19]line = 1000.51 [19:22:19]line НДС 12% НСП 1% [19:22:19]line > о реализуемом товаре [19:22:19]line ОКРУГЛЕНИЕ: -0.51 [19:22:19]line ИТОГО: 1000.00 [19:22:19]line Внесено: 1000.00 [19:22:19]line СДАЧА: 0.00 [19:22:19]line НСП 1% : 8.85 [19:22:19]line НДС 12% : 106.25 [19:22:19]line Наличными: 1000.00 [19:22:19]line Безнал.: 0.00 [19:22:19]line Место: АЗС № 85 "Партнер Нефть" [19:22:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:22:19]line СНО: Общий режим [19:22:19]line Чек 358 22.10.2024 19:22 [19:22:19]line Смена: 195 ФФД: 1.0 [19:22:19]line ЗНМ: 0300000167 [19:22:19]line РНМ: 0000000000156251 [19:22:19]line Версия ККМ: v1.0 [19:22:19]line ФМ: 0000000000963346 [19:22:19]line ФД: 70410 [19:22:19]line ФПД: 273493356507822 [19:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192218&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70410&fm=273493356507822&tin=02508201610067®Number=0000000000156251&sum=100000 [19:22:19]OFD Sender: Processing packet 70410 [packets to send 18, broken 17] [19:22:19]ProducePacketName [19:22:19]name=ofd_packets/00070410 [19:22:19]OFD Sender: To server: pG, [19:22:19]CommunicateWithHost lk.salyk.kg:30040 [19:22:19]ConnectInit lk.salyk.kg [19:22:19]written 0, free lines is 4095 [19:22:19]Connected sock=10 [19:22: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 34 36 0C 01 00 00 48 FE 04 01 01 71 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 01 00 00 F4 03 04 00 6A FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 13 01 00 35 04 06 00 F8 BD A2 5C F2 AE 02 9A 6C 27 98 A2 0D B5 [19:22: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 34 36 4F 00 00 00 35 9B 47 00 55 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 13 01 00 F4 03 04 00 0A A5 17 67 B6 04 01 00 00 F0 C8 41 19 7F F5 3C 71 [19:22:19]CommunicateWithHost err = 0 [19:22:19]CheckOFDResponse [19:22:19]1017 (14) - 77093643461234 [19:22:19]1041 (16) - 0000000000963346 [19:22:19]1040 (4) - 70410 [19:22:19]1012 (4) - 22.10.2024 13:13 [19:22:19]1206 (1) - 0 [19:22:19]OFD Sender: Remove packet 70410 [19:22:19]ProducePacketName [19:22:19]name=ofd_packets/00070410 [19:22:19]NVStorageDeleteData [19:22:20]Write to MH i2c: 01 00 00 57 20 77 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: 01 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: 01 07 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: 01 07 00 57 20 00 00 00 00 00 FE 0C 88 [19:22:20]RasterBufferAndPrint [19:22:20]line [19:22:20]line [19:22:20]line [19:22:20]line [19:22:20]line [19:22:20]written 0, free lines is 3332 [19:22:20]MH_Cut [19:22:20]Write to MH i2c: D1 01 00 5E 20 01 50 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: D1 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: D1 01 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: D1 01 00 5E 20 00 4F [19:22:20]Write to MH i2c: 01 00 00 5F 20 7F [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]OFD Sender: No OFD packet to send [19:22:20]*** Cut start [19:22:20]*** Partial cut [19:22:20]*** CUTSNS_PIN = 1 [19:22:20]*** CUTSNS_PIN = 0 [19:22:21]*** Brake cut motor [19:22:21]Read from MH i2c: 01 [19:22:21]MH_I2C_Read... [19:22:21]*** Stop cut motor [19:22:21]*** Cut end [19:22:21]Read from MH i2c: 01 07 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 FF 0F 94 [19:22:21]process_action close_receipt done [19:22:21]requested_data is exist [19:22:21]produce_requested_data [19:22:21]requested_item fm.sn is exist - process it [19:22:21]wFMCommunicate request_size=4 [19:22:21]MH_SAM_APDU [19:22:21]CAPDU: 80 11 00 00 [19:22:21]Write to MH i2c: E2 08 00 60 20 80 11 00 00 00 00 00 00 FA [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:21]Read from MH i2c: E2 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 17 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 17 00 60 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [19:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:22:21]wFMCommunicate OK [19:22:21]requested_item fd.num is exist - process it [19:22:21]SAM_PROTO_GetFieldsCounters [19:22:21]wFMCommunicate request_size=4 [19:22:21]MH_SAM_APDU [19:22:21]CAPDU: 80 13 00 00 [19:22:21]Write to MH i2c: E2 08 00 61 20 80 13 00 00 00 00 00 00 FD [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:21]Read from MH i2c: E2 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 62 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 62 00 61 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 13 01 00 0E 04 04 00 C3 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 2E [19:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 13 01 00 0E 04 04 00 C3 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 [19:22:21]wFMCommunicate OK [19:22:21]SAM_PROTO_GetFieldsCounters done [19:22:21]requested_item shift.num is exist - process it [19:22:21]requested_item shift.opened is exist - process it [19:22:21]req_shift_opened [19:22:21]FM_GetShiftState [19:22:21]SAM_PROTO_GetShiftState [19:22:21]wFMCommunicate request_size=4 [19:22:21]MH_SAM_APDU [19:22:21]CAPDU: 80 13 01 00 [19:22:21]Write to MH i2c: E2 08 00 62 20 80 13 01 00 00 00 00 00 FF [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:21]Read from MH i2c: E2 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 0E 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 0E 00 62 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 ED [19:22:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:22:21]wFMCommunicate OK [19:22:21]SAM_PROTO_GetShiftState done [19:22:21]FM_GetShiftState done [19:22:21]req_shift_opened done [19:22:21]requested_item shift.open_date is exist - process it [19:22:21]req_shift_open_date [19:22:21]req_shift_open_date done [19:22:21]produce_requested_data done [19:22:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70410,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:22:21]process_action_free close_receipt [19:22:21]json_value_free [19:22:21]json_value_free done [19:22:21]process_json_proto returns [19:22:21]Send response to host [19:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70410,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:22:21]free response buf [19:22:21]execute_script done [19:22:21]execute_script returns [19:22:21]free content buf [19:22:21]Sock 7.Close socket [19:22:21]Sock 7.Thread stoped [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]accept exits with 9 [19:23:25]New connection [19:23:25]New thread 3066699108 created [19:23:25]Thread 3066555748 joined [19:23:25]Waiting for new connection... [19:23:25] Sock 9.Parse request [19:23:25]Sock 9.Check first char [19:23:25]Sock 9.First char is OK [19:23:25]request: POST /json_proto HTTP/1.0 [19:23:25]Method: POST [19:23:25]URL: /json_proto [19:23:25]Method is POST - this is cgi request [19:23:25]url: /json_proto [19:23:25]query_string will be loaded in cgi processing [19:23:25]execute_cgi json_proto POST (null) [19:23:25]execute_cgi path=json_proto method=POST [19:23:25]POST find Content-Length [19:23:25]Host: 172.17.50.3:8080 [19:23:25]Content-Length: 685 [19:23:25]Content-Type: application/json [19:23:25] [19:23:25]POST finish read [19:23:25]Found Content-Length = 685 [19:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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" ] } } [19:23:25]execute_script... [19:23: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)2886177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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" ] } } [19:23:25]POST & json_proto [19:23:25]process_json_proto [19:23:25]json parsed OK: [19:23:25]protocol is kg_v1.0 [19:23:25]action value=close_receipt [19:23:25]process_action close_receipt [19:23:25]cmd_close_receipt [19:23:25]MH_GetDate [19:23:25]Write to MH i2c: F0 00 00 63 20 72 [19:23:25]Write i2c OK [19:23:25]MH_I2C_Read... [19:23:25]Read from MH i2c: F0 [19:23:25]MH_I2C_Read... [19:23:25]Read from MH i2c: F0 09 00 [19:23:25]MH_I2C_Read... [19:23:25]Read from MH i2c: F0 09 00 63 20 00 AD FB 17 67 6B 98 1E 66 28 [19:23:25]GetLastDocTimeStamp 1729624938 [19:23:25]current date 1729625005 [19:23:25]FM_GetShiftState [19:23:25]SAM_PROTO_GetShiftState [19:23:25]wFMCommunicate request_size=4 [19:23:25]MH_SAM_APDU [19:23:25]CAPDU: 80 13 01 00 [19:23:25]Write to MH i2c: E2 08 00 64 20 80 13 01 00 00 00 00 00 01 [19:23:25]Write i2c OK [19:23:25]MH_I2C_Read... [19:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:25]Read from MH i2c: E2 [19:23:25]MH_I2C_Read... [19:23:25]Read from MH i2c: E2 0E 00 [19:23:25]MH_I2C_Read... [19:23:25]Read from MH i2c: E2 0E 00 64 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EF [19:23:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:23:25]wFMCommunicate OK [19:23:25]SAM_PROTO_GetShiftState done [19:23:25]FM_GetShiftState done [19:23:25]opened in 1729555832 [19:23:25]opened+sec_in_day 1729642232 [19:23:25]quantity*price = 90015 [19:23:25]sum+1 = 90016 [19:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 359 22.10.2024 19:23 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70411 ФПД: 259341171256939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70411&fm=259341171256939&tin=02508201610067®Number=0000000000156251&sum=90000 [19:23:26]StoreToDocumentArchive [19:23:26]shift 195 fd 70411 [19:23:26]save to /storage/0195/doc_00070411 [19:23:26]save last doc name /storage/0195/doc_00070411 to /storage/kkm_last_doc_name [19:23:26]save OK [19:23:26]Clear old archive folders... [19:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:23:26]tlvbuf is 00C24180 [19:23:26]SAM_PROTO_ClearQueue [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 09 00 00 [19:23:26]Write to MH i2c: E2 08 00 71 20 80 09 00 00 00 00 00 00 03 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_ClearQueue done [19:23:26]KKMCreateOFDPacket [19:23:26]OFDProtocolAddRootSTLVToBuf [19:23:26]FM_MakeSignedData [19:23:26]FM_MakeSignedData [19:23:26]SAM_PROTO_SignData [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 01 02 [19:23:26]Write to MH i2c: E2 08 00 72 20 80 0D 01 02 00 00 00 00 0B [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=255 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 67 01 00 00 F4 03 04 00 AE FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 13 01 [19:23:26]Write to MH i2c: E2 02 01 73 20 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 67 01 00 00 F4 03 04 00 AE FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 13 01 00 00 66 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=16 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EB DE 92 63 6E 6B [19:23:26]Write to MH i2c: E2 13 00 74 20 80 0D 02 02 0B 00 00 35 04 06 00 EB DE 92 63 6E 6B 00 00 FA [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 03 02 [19:23:26]Write to MH i2c: E2 08 00 75 20 80 0D 03 02 00 00 00 00 10 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0B 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0B 00 75 20 00 DE 5A C4 51 89 3F ED 55 90 00 68 [19:23:26]RAPDU: DE 5A C4 51 89 3F ED 55 90 00 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_SignData done [19:23:26]FM_MakeSignedData done [19:23:26]CreateOFDProtocolMessage [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 11 00 00 [19:23:26]Write to MH i2c: E2 08 00 76 20 80 11 00 00 00 00 00 00 10 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 76 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [19:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:23:26]wFMCommunicate OK [19:23:26]CreateOFDProtocolMessage done [19:23:26]OFDSenderStorePacket 70411 [19:23:26]StoreOFDPacket docnum=70411 [19:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2A 67 0D 01 64 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 67 01 00 00 F4 03 04 00 AE FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 13 01 00 35 04 06 00 EB DE 92 63 6E 6B DE 5A C4 51 89 3F ED 55 [19:23:26]CheckFolder [19:23:26]dirname=/storage/ofd_packets [19:23:26]CheckFolder done [19:23:26]ProducePacketName [19:23:26]name=ofd_packets/00070411 [19:23:26]NVStorageSaveData ofd_packets/00070411 [19:23:26]File name is /storage/ofd_packets/00070411 [19:23:26]Write 307 bytes [19:23:26]NVStorageSaveData done [19:23:26]OFDSenderStorePacket done [19:23:26]KKMCreateOFDPacket done [19:23:26]NVStorageSaveData kkm_last_timestamp [19:23:26]File name is /storage/kkm_last_timestamp [19:23:26]Write 4 bytes [19:23:26]NVStorageSaveData done [19:23:26]ExternCall_PrintAddStr [19:23:26]wPrintStart [19:23:26]Write to MH i2c: 01 00 00 77 20 97 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 07 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 07 00 77 20 00 00 00 00 00 FF 0F AC [19:23:26]RasterBufferAndPrint [19:23:26]line Счет N : (1)2886177 [19:23:26]line ИНН: 02508201610067 [19:23:26]line Контрольно-Кассовый Чек [19:23:26]line ПРОДАЖА [19:23:26]line ТРК (МРК, ГНК) : 31 [19:23:26]line Товар: 2710194240 [19:23:26]line D-ENERGY Дт-К-2 [19:23:26]line 11.660 * 77.20 [19:23:26]line = 900.15 [19:23:26]line НДС 12% НСП 1% [19:23:26]line > о реализуемом товаре [19:23:26]line ОКРУГЛЕНИЕ: -0.15 [19:23:26]line ИТОГО: 900.00 [19:23:26]line Внесено: 900.00 [19:23:26]line СДАЧА: 0.00 [19:23:26]line НСП 1% : 7.97 [19:23:26]line НДС 12% : 95.59 [19:23:26]line Наличными: 900.00 [19:23:26]line Безнал.: 0.00 [19:23:26]line Место: АЗС № 85 "Партнер Нефть" [19:23:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:23:26]line СНО: Общий режим [19:23:26]line Чек 359 22.10.2024 19:23 [19:23:26]line Смена: 195 ФФД: 1.0 [19:23:26]line ЗНМ: 0300000167 [19:23:26]line РНМ: 0000000000156251 [19:23:26]line Версия ККМ: v1.0 [19:23:26]line ФМ: 0000000000963346 [19:23:26]line ФД: 70411 [19:23:26]line ФПД: 259341171256939 [19:23:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70411&fm=259341171256939&tin=02508201610067®Number=0000000000156251&sum=90000 [19:23:27]OFD Sender: Processing packet 70411 [packets to send 18, broken 17] [19:23:27]ProducePacketName [19:23:27]name=ofd_packets/00070411 [19:23:27]OFD Sender: To server: pG, [19:23:27]CommunicateWithHost lk.salyk.kg:30040 [19:23:27]ConnectInit lk.salyk.kg [19:23:27]written 0, free lines is 4095 [19:23:27]Connected sock=10 [19:23: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 34 36 15 01 00 00 2A 67 0D 01 64 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 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 57 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 67 01 00 00 F4 03 04 00 AE FB 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 13 01 00 35 04 06 00 EB DE 92 63 6E 6B DE 5A C4 51 89 3F ED 55 [19:23: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 34 36 4F 00 00 00 41 C4 47 00 8D 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 34 36 10 04 04 00 0B 13 01 00 F4 03 04 00 4D A5 17 67 B6 04 01 00 00 C7 EC AE 71 9C 67 71 98 [19:23:27]CommunicateWithHost err = 0 [19:23:27]CheckOFDResponse [19:23:27]1017 (14) - 77093643461234 [19:23:27]1041 (16) - 0000000000963346 [19:23:27]1040 (4) - 70411 [19:23:27]1012 (4) - 22.10.2024 13:14 [19:23:27]1206 (1) - 0 [19:23:27]OFD Sender: Remove packet 70411 [19:23:27]ProducePacketName [19:23:27]name=ofd_packets/00070411 [19:23:27]NVStorageDeleteData [19:23:27]Write to MH i2c: 01 00 00 A2 20 C2 [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 07 00 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 E4 0C B9 [19:23:27]RasterBufferAndPrint [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]written 0, free lines is 3306 [19:23:27]MH_Cut [19:23:27]Write to MH i2c: D1 01 00 A9 20 01 9B [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 01 00 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 01 00 A9 20 00 9A [19:23:27]Write to MH i2c: 01 00 00 AA 20 CA [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]OFD Sender: No OFD packet to send [19:23:28]*** Cut start [19:23:28]*** Partial cut [19:23:28]*** CUTSNS_PIN = 1 [19:23:28]*** CUTSNS_PIN = 0 [19:23:28]*** Brake cut motor [19:23:28]Read from MH i2c: 01 [19:23:28]MH_I2C_Read... [19:23:28]*** Stop cut motor [19:23:28]*** Cut end [19:23:28]Read from MH i2c: 01 07 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: 01 07 00 AA 20 00 00 00 00 00 FF 0F DF [19:23:28]process_action close_receipt done [19:23:28]requested_data is exist [19:23:28]produce_requested_data [19:23:28]requested_item fm.sn is exist - process it [19:23:28]wFMCommunicate request_size=4 [19:23:28]MH_SAM_APDU [19:23:28]CAPDU: 80 11 00 00 [19:23:28]Write to MH i2c: E2 08 00 AB 20 80 11 00 00 00 00 00 00 45 [19:23:28]Write i2c OK [19:23:28]MH_I2C_Read... [19:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:28]Read from MH i2c: E2 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 17 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 17 00 AB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [19:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:23:28]wFMCommunicate OK [19:23:28]requested_item fd.num is exist - process it [19:23:28]SAM_PROTO_GetFieldsCounters [19:23:28]wFMCommunicate request_size=4 [19:23:28]MH_SAM_APDU [19:23:28]CAPDU: 80 13 00 00 [19:23:28]Write to MH i2c: E2 08 00 AC 20 80 13 00 00 00 00 00 00 48 [19:23:28]Write i2c OK [19:23:28]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 62 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 62 00 AC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 13 01 00 0E 04 04 00 C3 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 7D [19:23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 13 01 00 0E 04 04 00 C3 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 [19:23:29]wFMCommunicate OK [19:23:29]SAM_PROTO_GetFieldsCounters done [19:23:29]requested_item shift.num is exist - process it [19:23:29]requested_item shift.opened is exist - process it [19:23:29]req_shift_opened [19:23:29]FM_GetShiftState [19:23:29]SAM_PROTO_GetShiftState [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 13 01 00 [19:23:29]Write to MH i2c: E2 08 00 AD 20 80 13 01 00 00 00 00 00 4A [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:29]Read from MH i2c: E2 0E 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 0E 00 AD 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 38 [19:23:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:23:29]wFMCommunicate OK [19:23:29]SAM_PROTO_GetShiftState done [19:23:29]FM_GetShiftState done [19:23:29]req_shift_opened done [19:23:29]requested_item shift.open_date is exist - process it [19:23:29]req_shift_open_date [19:23:29]req_shift_open_date done [19:23:29]produce_requested_data done [19:23:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70411,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:23:29]process_action_free close_receipt [19:23:29]json_value_free [19:23:29]json_value_free done [19:23:29]process_json_proto returns [19:23:29]Send response to host [19:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70411,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:23:29]free response buf [19:23:29]execute_script done [19:23:29]execute_script returns [19:23:29]free content buf [19:23:29]Sock 9.Close socket [19:23:29]Sock 9.Thread stoped [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [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:49]accept exits with 7 [19:28:49]New connection [19:28:49]New thread 3066555748 created [19:28:49]Thread 3066699108 joined [19:28:49]Waiting for new connection... [19:28:49] Sock 7.Parse request [19:28:49]Sock 7.Check first char [19:28:49]Sock 7.First char is OK [19:28:49]request: POST /json_proto HTTP/1.0 [19:28:49]Method: POST [19:28:49]URL: /json_proto [19:28:49]Method is POST - this is cgi request [19:28:49]url: /json_proto [19:28:49]query_string will be loaded in cgi processing [19:28:49]execute_cgi json_proto POST (null) [19:28:49]execute_cgi path=json_proto method=POST [19:28:49]POST find Content-Length [19:28:49]Host: 172.17.50.3:8080 [19:28:49]Content-Length: 683 [19:28:49]Content-Type: application/json [19:28:49] [19:28:49]POST finish read [19:28:49]Found Content-Length = 683 [19:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 37.630, "sum" : 2792.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2792.00, "payments": [ { "type": 0, "sum" : 2792.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:49]execute_script... [19:28: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)2886178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 37.630, "sum" : 2792.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2792.00, "payments": [ { "type": 0, "sum" : 2792.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:49]POST & json_proto [19:28:49]process_json_proto [19:28:49]json parsed OK: [19:28:49]protocol is kg_v1.0 [19:28:49]action value=close_receipt [19:28:49]process_action close_receipt [19:28:49]cmd_close_receipt [19:28:49]MH_GetDate [19:28:49]Write to MH i2c: F0 00 00 AE 20 BD [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 09 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 09 00 AE 20 00 F2 FC 17 67 6B 98 1E 66 B9 [19:28:49]GetLastDocTimeStamp 1729625006 [19:28:49]current date 1729625330 [19:28:49]FM_GetShiftState [19:28:49]SAM_PROTO_GetShiftState [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 13 01 00 [19:28:49]Write to MH i2c: E2 08 00 AF 20 80 13 01 00 00 00 00 00 4C [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 AF 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3A [19:28:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetShiftState done [19:28:49]FM_GetShiftState done [19:28:49]opened in 1729555832 [19:28:49]opened+sec_in_day 1729642232 [19:28:49]quantity*price = 279214 [19:28:49]sum+1 = 279216 [19:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 2792.00 Внесено: 3000.00 СДАЧА: 208.00 НСП 1% : 24.71 НДС 12% : 296.51 Наличными: 2792.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 360 22.10.2024 19:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70412 ФПД: 20349132164848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70412&fm=20349132164848&tin=02508201610067®Number=0000000000156251&sum=279200 [19:28:51]StoreToDocumentArchive [19:28:51]shift 195 fd 70412 [19:28:51]save to /storage/0195/doc_00070412 [19:28:51]save last doc name /storage/0195/doc_00070412 to /storage/kkm_last_doc_name [19:28:51]save OK [19:28:51]Clear old archive folders... [19:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:51]tlvbuf is 00B3F4B0 [19:28:51]SAM_PROTO_ClearQueue [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 09 00 00 [19:28:51]Write to MH i2c: E2 08 00 BC 20 80 09 00 00 00 00 00 00 4E [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_ClearQueue done [19:28:51]KKMCreateOFDPacket [19:28:51]OFDProtocolAddRootSTLVToBuf [19:28:51]FM_MakeSignedData [19:28:51]FM_MakeSignedData [19:28:51]SAM_PROTO_SignData [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 01 02 [19:28:51]Write to MH i2c: E2 08 00 BD 20 80 0D 01 02 00 00 00 00 56 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=255 [19:28:51]MH_SAM_APDU [19:28: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 FE 92 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 42 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 42 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 73 00 00 00 00 07 04 06 00 A0 42 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F2 FC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 13 01 00 35 04 06 00 12 [19:28:51]Write to MH i2c: E2 02 01 BE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 92 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 42 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 42 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 73 00 00 00 00 07 04 06 00 A0 42 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F2 FC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 13 01 00 35 04 06 00 12 00 00 87 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 BE 20 00 90 00 52 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=10 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 02 02 05 81 E6 CB 4E F0 [19:28:51]Write to MH i2c: E2 0D 00 BF 20 80 0D 02 02 05 00 81 E6 CB 4E F0 00 00 D3 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 03 02 [19:28:51]Write to MH i2c: E2 08 00 C0 20 80 0D 03 02 00 00 00 00 5B [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0B 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0B 00 C0 20 00 AB 08 CA 96 BB 2B C4 00 90 00 19 [19:28:51]RAPDU: AB 08 CA 96 BB 2B C4 00 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_SignData done [19:28:51]FM_MakeSignedData done [19:28:51]CreateOFDProtocolMessage [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 11 00 00 [19:28:51]Write to MH i2c: E2 08 00 C1 20 80 11 00 00 00 00 00 00 5B [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 17 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 17 00 C1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [19:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:28:51]wFMCommunicate OK [19:28:51]CreateOFDProtocolMessage done [19:28:51]OFDSenderStorePacket 70412 [19:28:51]StoreOFDPacket docnum=70412 [19:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 11 6E 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 92 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 42 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 42 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 73 00 00 00 00 07 04 06 00 A0 42 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F2 FC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 13 01 00 35 04 06 00 12 81 E6 CB 4E F0 AB 08 CA 96 BB 2B C4 00 [19:28:51]CheckFolder [19:28:51]dirname=/storage/ofd_packets [19:28:51]CheckFolder done [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00070412 [19:28:51]NVStorageSaveData ofd_packets/00070412 [19:28:51]File name is /storage/ofd_packets/00070412 [19:28:51]Write 301 bytes [19:28:51]NVStorageSaveData done [19:28:51]OFDSenderStorePacket done [19:28:51]KKMCreateOFDPacket done [19:28:51]NVStorageSaveData kkm_last_timestamp [19:28:51]File name is /storage/kkm_last_timestamp [19:28:51]Write 4 bytes [19:28:51]NVStorageSaveData done [19:28:51]ExternCall_PrintAddStr [19:28:51]wPrintStart [19:28:51]Write to MH i2c: 01 00 00 C2 20 E2 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 C2 20 00 00 00 00 00 FF 0F F7 [19:28:51]RasterBufferAndPrint [19:28:51]line Счет N : (1)2886178 [19:28:51]line ИНН: 02508201610067 [19:28:51]line Контрольно-Кассовый Чек [19:28:51]line ПРОДАЖА [19:28:51]line ТРК (МРК, ГНК) : 13 [19:28:51]line Товар: 2710124500 [19:28:51]line Аи-95-К-5 [19:28:51]line 37.630 * 74.20 [19:28:51]line = 2792.15 [19:28:51]line НДС 12% НСП 1% [19:28:51]line > о реализуемом товаре [19:28:51]line ОКРУГЛЕНИЕ: -0.15 [19:28:51]line ИТОГО: 2792.00 [19:28:51]line Внесено: 3000.00 [19:28:51]line СДАЧА: 208.00 [19:28:51]line НСП 1% : 24.71 [19:28:51]line НДС 12% : 296.51 [19:28:51]line Наличными: 2792.00 [19:28:51]line Безнал.: 0.00 [19:28:51]line Место: АЗС № 85 "Партнер Нефть" [19:28:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:28:51]line СНО: Общий режим [19:28:51]line Чек 360 22.10.2024 19:28 [19:28:51]line Смена: 195 ФФД: 1.0 [19:28:51]line ЗНМ: 0300000167 [19:28:51]line РНМ: 0000000000156251 [19:28:51]line Версия ККМ: v1.0 [19:28:51]line ФМ: 0000000000963346 [19:28:51]line ФД: 70412 [19:28:51]line ФПД: 20349132164848 [19:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70412&fm=20349132164848&tin=02508201610067®Number=0000000000156251&sum=279200 [19:28:51]OFD Sender: Processing packet 70412 [packets to send 18, broken 17] [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00070412 [19:28:51]OFD Sender: To server: pG, [19:28:51]CommunicateWithHost lk.salyk.kg:30040 [19:28:51]ConnectInit lk.salyk.kg [19:28:51]written 0, free lines is 4095 [19:28:52]Connected sock=10 [19:28: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 34 36 0F 01 00 00 11 6E 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 92 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 42 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 42 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 73 00 00 00 00 07 04 06 00 A0 42 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F2 FC 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 13 01 00 35 04 06 00 12 81 E6 CB 4E F0 AB 08 CA 96 BB 2B C4 00 [19:28: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 34 36 4F 00 00 00 FB 1E 47 00 44 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 13 01 00 F4 03 04 00 92 A6 17 67 B6 04 01 00 00 DE D8 6B 94 8D 7D F2 E3 [19:28:52]CommunicateWithHost err = 0 [19:28:52]CheckOFDResponse [19:28:52]1017 (14) - 77093643461234 [19:28:52]1041 (16) - 0000000000963346 [19:28:52]1040 (4) - 70412 [19:28:52]1012 (4) - 22.10.2024 13:20 [19:28:52]1206 (1) - 0 [19:28:52]OFD Sender: Remove packet 70412 [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00070412 [19:28:52]NVStorageDeleteData [19:28:52]Write to MH i2c: 01 00 00 ED 20 0D [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 F1 0C 11 [19:28:52]RasterBufferAndPrint [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]written 0, free lines is 3319 [19:28:52]MH_Cut [19:28:52]Write to MH i2c: D1 01 00 F4 20 01 E6 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 01 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 01 00 F4 20 00 E5 [19:28:52]Write to MH i2c: 01 00 00 F5 20 15 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]OFD Sender: No OFD packet to send [19:28:53]*** Cut start [19:28:53]*** Partial cut [19:28:53]*** CUTSNS_PIN = 1 [19:28:53]*** CUTSNS_PIN = 0 [19:28:53]*** Brake cut motor [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]*** Stop cut motor [19:28:53]*** Cut end [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [19:28:53]process_action close_receipt done [19:28:53]requested_data is exist [19:28:53]produce_requested_data [19:28:53]requested_item fm.sn is exist - process it [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 11 00 00 [19:28:53]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [19:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:28:53]wFMCommunicate OK [19:28:53]requested_item fd.num is exist - process it [19:28:53]SAM_PROTO_GetFieldsCounters [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 00 00 [19:28:53]Write to MH i2c: E2 08 00 F7 20 80 13 00 00 00 00 00 00 93 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 F7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 13 01 00 0E 04 04 00 C3 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 CC [19:28: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 13 01 00 0E 04 04 00 C3 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 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetFieldsCounters done [19:28:53]requested_item shift.num is exist - process it [19:28:53]requested_item shift.opened is exist - process it [19:28:53]req_shift_opened [19:28:53]FM_GetShiftState [19:28:53]SAM_PROTO_GetShiftState [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 01 00 [19:28:53]Write to MH i2c: E2 08 00 F8 20 80 13 01 00 00 00 00 00 95 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 F8 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 83 [19:28:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetShiftState done [19:28:53]FM_GetShiftState done [19:28:53]req_shift_opened done [19:28:53]requested_item shift.open_date is exist - process it [19:28:53]req_shift_open_date [19:28:53]req_shift_open_date done [19:28:53]produce_requested_data done [19:28:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70412,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:28:53]process_action_free close_receipt [19:28:53]json_value_free [19:28:53]json_value_free done [19:28:53]process_json_proto returns [19:28:53]Send response to host [19:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70412,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:28:53]free response buf [19:28:53]execute_script done [19:28:53]execute_script returns [19:28:53]free content buf [19:28:53]Sock 7.Close socket [19:28:53]Sock 7.Thread stoped [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:30:58]accept exits with 9 [19:30:58]New connection [19:30:58]New thread 3066699108 created [19:30:58]Thread 3066555748 joined [19:30:58]Waiting for new connection... [19:30:58] Sock 9.Parse request [19:30:58]Sock 9.Check first char [19:30:58]Sock 9.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.50.3: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)2886179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: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)2886179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: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 F9 20 08 [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 F9 20 00 73 FD 17 67 6B 98 1E 66 86 [19:30:58]GetLastDocTimeStamp 1729625330 [19:30:58]current date 1729625459 [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 FA 20 80 13 01 00 00 00 00 00 97 [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 FA 20 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 85 [19:30:58]RAPDU: 09 00 01 78 ED 16 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 1729555832 [19:30:58]opened+sec_in_day 1729642232 [19:30:58]quantity*price = 50041 [19:30:58]sum+1 = 50042 [19:30: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 361 22.10.2024 19:30 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70413 ФПД: 246392579969887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70413&fm=246392579969887&tin=02508201610067®Number=0000000000156251&sum=50000 [19:30:59]StoreToDocumentArchive [19:30:59]shift 195 fd 70413 [19:30:59]save to /storage/0195/doc_00070413 [19:30:59]save last doc name /storage/0195/doc_00070413 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 B6D6A3C0 [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 07 21 80 09 00 00 00 00 00 00 9A [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 07 21 00 90 00 9C [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 08 21 80 0D 01 02 00 00 00 00 A2 [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 08 21 00 90 00 9D [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 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 69 01 00 00 F4 03 04 00 73 FD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 13 01 00 35 04 06 00 E0 [19:30:59]Write to MH i2c: E2 02 01 09 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 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 69 01 00 00 F4 03 04 00 73 FD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 13 01 00 35 04 06 00 E0 00 00 47 [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 [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 03 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [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 17 BE 34 53 5F [19:31:00]Write to MH i2c: E2 0D 00 0A 21 80 0D 02 02 05 00 17 BE 34 53 5F 00 00 6A [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 0A 21 00 90 00 9F [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 0B 21 80 0D 03 02 00 00 00 00 A7 [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 0B 21 00 3D 85 3D FC 78 E6 C5 3D 90 00 03 [19:31:00]RAPDU: 3D 85 3D FC 78 E6 C5 3D 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 0C 21 80 11 00 00 00 00 00 00 A7 [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 0C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [19:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:31:00]wFMCommunicate OK [19:31:00]CreateOFDProtocolMessage done [19:31:00]OFDSenderStorePacket 70413 [19:31:00]StoreOFDPacket docnum=70413 [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 34 36 0F 01 00 00 3F B5 07 01 0E 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 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 69 01 00 00 F4 03 04 00 73 FD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 13 01 00 35 04 06 00 E0 17 BE 34 53 5F 3D 85 3D FC 78 E6 C5 3D [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/00070413 [19:31:00]NVStorageSaveData ofd_packets/00070413 [19:31:00]File name is /storage/ofd_packets/00070413 [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 0D 21 2E [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 0D 21 00 00 00 00 00 FF 0F 43 [19:31:00]RasterBufferAndPrint [19:31:00]line Счет N : (1)2886179 [19:31:00]line ИНН: 02508201610067 [19:31:00]line Контрольно-Кассовый Чек [19:31:00]line ПРОДАЖА [19:31:00]line ТРК (МРК, ГНК) : 42 [19:31:00]line Товар: 2710124130 [19:31:00]line Аи-92-К-5 [19:31:00]line 7.480 * 66.90 [19:31:00]line = 500.41 [19:31:00]line НДС 12% НСП 1% [19:31:00]line > о реализуемом товаре [19:31:00]line ОКРУГЛЕНИЕ: -0.41 [19:31:00]line ИТОГО: 500.00 [19:31:00]line Внесено: 500.00 [19:31:00]line СДАЧА: 0.00 [19:31:00]line НСП 1% : 4.43 [19:31:00]line НДС 12% : 53.14 [19:31:00]line Наличными: 500.00 [19:31:00]line Безнал.: 0.00 [19:31:00]line Место: АЗС № 85 "Партнер Нефть" [19:31:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:31:00]line СНО: Общий режим [19:31:00]line Чек 361 22.10.2024 19:30 [19:31:00]line Смена: 195 ФФД: 1.0 [19:31:00]line ЗНМ: 0300000167 [19:31:00]line РНМ: 0000000000156251 [19:31:00]line Версия ККМ: v1.0 [19:31:00]line ФМ: 0000000000963346 [19:31:00]line ФД: 70413 [19:31:00]line ФПД: 246392579969887 [19:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70413&fm=246392579969887&tin=02508201610067®Number=0000000000156251&sum=50000 [19:31:00]OFD Sender: Processing packet 70413 [packets to send 18, broken 17] [19:31:00]ProducePacketName [19:31:00]name=ofd_packets/00070413 [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]written 0, free lines is 4095 [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 34 36 0F 01 00 00 3F B5 07 01 0E 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 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 69 01 00 00 F4 03 04 00 73 FD 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 13 01 00 35 04 06 00 E0 17 BE 34 53 5F 3D 85 3D FC 78 E6 C5 3D [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 34 36 4F 00 00 00 0C 1C 47 00 AB 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 34 36 10 04 04 00 0D 13 01 00 F4 03 04 00 13 A7 17 67 B6 04 01 00 00 5D 6B 34 EB 29 A4 4D ED [19:31:00]CommunicateWithHost err = 0 [19:31:00]CheckOFDResponse [19:31:00]1017 (14) - 77093643461234 [19:31:00]1041 (16) - 0000000000963346 [19:31:00]1040 (4) - 70413 [19:31:00]1012 (4) - 22.10.2024 13:22 [19:31:00]1206 (1) - 0 [19:31:00]OFD Sender: Remove packet 70413 [19:31:00]ProducePacketName [19:31:00]name=ofd_packets/00070413 [19:31:00]NVStorageDeleteData [19:31:01]Write to MH i2c: 01 00 00 38 21 59 [19:31:01]Write i2c OK [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: 01 [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: 01 07 00 [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: 01 07 00 38 21 00 00 00 00 00 EB 0C 57 [19:31:01]RasterBufferAndPrint [19:31:01]line [19:31:01]line [19:31:01]line [19:31:01]line [19:31:01]line [19:31:01]written 0, free lines is 3314 [19:31:01]MH_Cut [19:31:01]Write to MH i2c: D1 01 00 3F 21 01 32 [19:31:01]Write i2c OK [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: D1 [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: D1 01 00 [19:31:01]MH_I2C_Read... [19:31:01]Read from MH i2c: D1 01 00 3F 21 00 31 [19:31:01]Write to MH i2c: 01 00 00 40 21 61 [19:31:01]Write i2c OK [19:31:01]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:02]*** 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 40 21 00 00 00 00 00 FF 0F 76 [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 41 21 80 11 00 00 00 00 00 00 DC [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 41 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [19:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 42 21 80 13 00 00 00 00 00 00 DF [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 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 13 01 00 0E 04 04 00 C3 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 1C [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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 13 01 00 0E 04 04 00 C3 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 [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 43 21 80 13 01 00 00 00 00 00 E1 [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 43 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CF [19:31:02]RAPDU: 09 00 01 78 ED 16 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":"0000000000963346","fd.num":70413,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [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":"0000000000963346","fd.num":70413,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [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 9.Close socket [19:31:02]Sock 9.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:07]accept exits with 7 [19:34:07]New connection [19:34:07]New thread 3066555748 created [19:34:07]Thread 3066699108 joined [19:34:07]Waiting for new connection... [19:34:07] Sock 7.Parse request [19:34:07]Sock 7.Check first char [19:34:07]Sock 7.First char is OK [19:34:07]request: POST /json_proto HTTP/1.0 [19:34:07]Method: POST [19:34:07]URL: /json_proto [19:34:07]Method is POST - this is cgi request [19:34:07]url: /json_proto [19:34:07]query_string will be loaded in cgi processing [19:34:07]execute_cgi json_proto POST (null) [19:34:07]execute_cgi path=json_proto method=POST [19:34:07]POST find Content-Length [19:34:07]Host: 172.17.50.3:8080 [19:34:07]Content-Length: 768 [19:34:07]Content-Type: application/json [19:34:07] [19:34:07]POST finish read [19:34:07]Found Content-Length = 768 [19:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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 }]} ], "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.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]execute_script... [19: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)2886181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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 }]} ], "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.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]POST & json_proto [19:34:07]process_json_proto [19:34:07]json parsed OK: [19:34:07]protocol is kg_v1.0 [19:34:07]action value=close_receipt [19:34:07]process_action close_receipt [19:34:07]cmd_close_receipt [19:34:07]MH_GetDate [19:34:07]Write to MH i2c: F0 00 00 44 21 54 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 44 21 00 30 FE 17 67 6B 98 1E 66 90 [19:34:07]GetLastDocTimeStamp 1729625459 [19:34:07]current date 1729625648 [19:34:07]FM_GetShiftState [19:34:07]SAM_PROTO_GetShiftState [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 01 00 [19:34:07]Write to MH i2c: E2 08 00 45 21 80 13 01 00 00 00 00 00 E3 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 45 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D1 [19:34:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]opened in 1729555832 [19:34:07]opened+sec_in_day 1729642232 [19:34:07]quantity*price = 80061 [19:34:07]sum+1 = 80063 [19:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 362 22.10.2024 19:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70414 ФПД: 164265059991092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193408&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70414&fm=164265059991092&tin=02508201610067®Number=0000000000156251&sum=80062 [19:34:08]StoreToDocumentArchive [19:34:08]shift 195 fd 70414 [19:34:08]save to /storage/0195/doc_00070414 [19:34:08]save last doc name /storage/0195/doc_00070414 to /storage/kkm_last_doc_name [19:34:08]save OK [19:34:08]Clear old archive folders... [19:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:08]tlvbuf is 00EA5030 [19:34:08]SAM_PROTO_ClearQueue [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 09 00 00 [19:34:08]Write to MH i2c: E2 08 00 52 21 80 09 00 00 00 00 00 00 E5 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_ClearQueue done [19:34:08]KKMCreateOFDPacket [19:34:08]OFDProtocolAddRootSTLVToBuf [19:34:08]FM_MakeSignedData [19:34:08]FM_MakeSignedData [19:34:08]SAM_PROTO_SignData [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 01 02 [19:34:08]Write to MH i2c: E2 08 00 53 21 80 0D 01 02 00 00 00 00 ED [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 53 21 00 90 00 E8 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=255 [19:34:08]MH_SAM_APDU [19: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 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 30 FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 13 01 00 35 04 06 00 95 [19:34:08]Write to MH i2c: E2 02 01 54 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 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 30 FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 13 01 00 35 04 06 00 95 00 00 F0 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=10 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 05 65 F0 8C BE 34 [19:34:08]Write to MH i2c: E2 0D 00 55 21 80 0D 02 02 05 00 65 F0 8C BE 34 00 00 CD [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 03 02 [19:34:08]Write to MH i2c: E2 08 00 56 21 80 0D 03 02 00 00 00 00 F2 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0B 00 56 21 00 77 C0 77 CB F6 A6 13 28 90 00 43 [19:34:09]RAPDU: 77 C0 77 CB F6 A6 13 28 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_SignData done [19:34:09]FM_MakeSignedData done [19:34:09]CreateOFDProtocolMessage [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 57 21 80 11 00 00 00 00 00 00 F2 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]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 34 36 90 00 44 [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:09]wFMCommunicate OK [19:34:09]CreateOFDProtocolMessage done [19:34:09]OFDSenderStorePacket 70414 [19:34:09]StoreOFDPacket docnum=70414 [19:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 CA 07 01 0D 48 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 30 FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 13 01 00 35 04 06 00 95 65 F0 8C BE 34 77 C0 77 CB F6 A6 13 28 [19:34:09]CheckFolder [19:34:09]dirname=/storage/ofd_packets [19:34:09]CheckFolder done [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00070414 [19:34:09]NVStorageSaveData ofd_packets/00070414 [19:34:09]File name is /storage/ofd_packets/00070414 [19:34:09]Write 301 bytes [19:34:09]NVStorageSaveData done [19:34:09]OFDSenderStorePacket done [19:34:09]KKMCreateOFDPacket done [19:34:09]NVStorageSaveData kkm_last_timestamp [19:34:09]File name is /storage/kkm_last_timestamp [19:34:09]Write 4 bytes [19:34:09]NVStorageSaveData done [19:34:09]ExternCall_PrintAddStr [19:34:09]wPrintStart [19:34:09]Write to MH i2c: 01 00 00 58 21 79 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 58 21 00 00 00 00 00 FF 0F 8E [19:34:09]RasterBufferAndPrint [19:34:09]line Счет N : (1)2886181 [19:34:09]line ИНН: 02508201610067 [19:34:09]line Контрольно-Кассовый Чек [19:34:09]line ПРОДАЖА [19:34:09]line ТРК (МРК, ГНК) : 43 [19:34:09]line Товар: 2710124500 [19:34:09]line Аи-95-К-5 [19:34:09]line 10.790 * 74.20 [19:34:09]line = 800.62 [19:34:09]line НДС 12% НСП 1% [19:34:09]line > о реализуемом товаре [19:34:09]line ИТОГО: 800.62 [19:34:09]line НСП 1% : 7.08 [19:34:09]line НДС 12% : 85.02 [19:34:09]line Наличными: 0.00 [19:34:09]line Безнал.: 800.62 [19:34:09]line Место: АЗС № 85 "Партнер Нефть" [19:34:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:34:09]line СНО: Общий режим [19:34:09]line Чек 362 22.10.2024 19:34 [19:34:09]line Смена: 195 ФФД: 1.0 [19:34:09]line ЗНМ: 0300000167 [19:34:09]line РНМ: 0000000000156251 [19:34:09]line Версия ККМ: v1.0 [19:34:09]line Платежная система: Mbank [19:34:09]line ФМ: 0000000000963346 [19:34:09]line ФД: 70414 [19:34:09]line ФПД: 164265059991092 [19:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193408&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70414&fm=164265059991092&tin=02508201610067®Number=0000000000156251&sum=80062 [19:34:09]OFD Sender: Processing packet 70414 [packets to send 18, broken 17] [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00070414 [19:34:09]OFD Sender: To server: pG, [19:34:09]CommunicateWithHost lk.salyk.kg:30040 [19:34:09]ConnectInit lk.salyk.kg [19:34:09]written 0, free lines is 4095 [19:34:09]Connected sock=10 [19: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 34 36 0F 01 00 00 D3 CA 07 01 0D 48 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 30 FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 13 01 00 35 04 06 00 95 65 F0 8C BE 34 77 C0 77 CB F6 A6 13 28 [19: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 34 36 4F 00 00 00 75 A5 47 00 B2 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 34 36 10 04 04 00 0E 13 01 00 F4 03 04 00 D0 A7 17 67 B6 04 01 00 00 4D 64 6F D3 93 39 1E 7D [19:34:09]CommunicateWithHost err = 0 [19:34:09]CheckOFDResponse [19:34:09]1017 (14) - 77093643461234 [19:34:09]1041 (16) - 0000000000963346 [19:34:09]1040 (4) - 70414 [19:34:09]1012 (4) - 22.10.2024 13:25 [19:34:09]1206 (1) - 0 [19:34:09]OFD Sender: Remove packet 70414 [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00070414 [19:34:09]NVStorageDeleteData [19:34:09]Write to MH i2c: 01 00 00 81 21 A2 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 0F 0D C5 [19:34:09]RasterBufferAndPrint [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]written 0, free lines is 3350 [19:34:09]MH_Cut [19:34:09]Write to MH i2c: D1 01 00 88 21 01 7B [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: D1 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: D1 01 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: D1 01 00 88 21 00 7A [19:34:09]Write to MH i2c: 01 00 00 89 21 AA [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:10]OFD Sender: No OFD packet to send [19:34:10]*** Cut start [19:34:10]*** Partial cut [19:34:10]*** CUTSNS_PIN = 1 [19:34:10]*** CUTSNS_PIN = 0 [19:34:10]*** Brake cut motor [19:34:11]Read from MH i2c: 01 [19:34:11]MH_I2C_Read... [19:34:11]*** Stop cut motor [19:34:11]*** Cut end [19:34:11]Read from MH i2c: 01 07 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: 01 07 00 89 21 00 00 00 00 00 FF 0F BF [19:34:11]process_action close_receipt done [19:34:11]requested_data is exist [19:34:11]produce_requested_data [19:34:11]requested_item fm.sn is exist - process it [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 11 00 00 [19:34:11]Write to MH i2c: E2 08 00 8A 21 80 11 00 00 00 00 00 00 25 [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:11]Read from MH i2c: E2 17 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 17 00 8A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [19:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:11]wFMCommunicate OK [19:34:11]requested_item fd.num is exist - process it [19:34:11]SAM_PROTO_GetFieldsCounters [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 13 00 00 [19:34:11]Write to MH i2c: E2 08 00 8B 21 80 13 00 00 00 00 00 00 28 [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 62 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 62 00 8B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 13 01 00 0E 04 04 00 C3 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 69 [19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 13 01 00 0E 04 04 00 C3 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 [19:34:11]wFMCommunicate OK [19:34:11]SAM_PROTO_GetFieldsCounters done [19:34:11]requested_item shift.num is exist - process it [19:34:11]requested_item shift.opened is exist - process it [19:34:11]req_shift_opened [19:34:11]FM_GetShiftState [19:34:11]SAM_PROTO_GetShiftState [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 13 01 00 [19:34:11]Write to MH i2c: E2 08 00 8C 21 80 13 01 00 00 00 00 00 2A [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 0E 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 0E 00 8C 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 18 [19:34:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:34:11]wFMCommunicate OK [19:34:11]SAM_PROTO_GetShiftState done [19:34:11]FM_GetShiftState done [19:34:11]req_shift_opened done [19:34:11]requested_item shift.open_date is exist - process it [19:34:11]req_shift_open_date [19:34:11]req_shift_open_date done [19:34:11]produce_requested_data done [19:34:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70414,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:34:11]process_action_free close_receipt [19:34:11]json_value_free [19:34:11]json_value_free done [19:34:11]process_json_proto returns [19:34:11]Send response to host [19:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70414,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:34:11]free response buf [19:34:11]execute_script done [19:34:11]execute_script returns [19:34:11]free content buf [19:34:11]Sock 7.Close socket [19:34:11]Sock 7.Thread stoped [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:22]accept exits with 9 [19:34:22]New connection [19:34:22]New thread 3066699108 created [19:34:22]Thread 3066555748 joined [19:34:22]Waiting for new connection... [19:34:22] Sock 9.Parse request [19:34:22]Sock 9.Check first char [19:34:22]Sock 9.First char is OK [19:34:22]request: POST /json_proto HTTP/1.0 [19:34:22]Method: POST [19:34:22]URL: /json_proto [19:34:22]Method is POST - this is cgi request [19:34:22]url: /json_proto [19:34:22]query_string will be loaded in cgi processing [19:34:22]execute_cgi json_proto POST (null) [19:34:22]execute_cgi path=json_proto method=POST [19:34:22]POST find Content-Length [19:34:22]Host: 172.17.50.3:8080 [19:34:22]Content-Length: 980 [19:34:22]Content-Type: application/json [19:34:22] [19:34:22]POST finish read [19:34:22]Found Content-Length = 980 [19:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]execute_script... [19: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 : (1)2886180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]POST & json_proto [19:34:22]process_json_proto [19:34:22]json parsed OK: [19:34:22]protocol is kg_v1.0 [19:34:22]action value=close_receipt [19:34:22]process_action close_receipt [19:34:22]cmd_close_receipt [19:34:22]MH_GetDate [19:34:22]Write to MH i2c: F0 00 00 8D 21 9D [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 8D 21 00 3F FE 17 67 6B 98 1E 66 E8 [19:34:22]GetLastDocTimeStamp 1729625648 [19:34:22]current date 1729625663 [19:34:22]FM_GetShiftState [19:34:22]SAM_PROTO_GetShiftState [19:34:22]wFMCommunicate request_size=4 [19:34:22]MH_SAM_APDU [19:34:22]CAPDU: 80 13 01 00 [19:34:22]Write to MH i2c: E2 08 00 8E 21 80 13 01 00 00 00 00 00 2C [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:22]Read from MH i2c: E2 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 8E 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1A [19:34:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:34:22]wFMCommunicate OK [19:34:22]SAM_PROTO_GetShiftState done [19:34:22]FM_GetShiftState done [19:34:22]opened in 1729555832 [19:34:22]opened+sec_in_day 1729642232 [19:34:22]quantity*price = 762001 [19:34:22]sum+1 = 762003 [19:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 7620.00 Внесено: 7620.00 СДАЧА: 0.00 НСП 1% : 67.43 НДС 12% : 809.21 Наличными: 7620.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 363 22.10.2024 19:34 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 101.33 сом ФМ: 0000000000963346 ФД: 70415 ФПД: 178921081955729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70415&fm=178921081955729&tin=02508201610067®Number=0000000000156251&sum=762000 [19:34:23]StoreToDocumentArchive [19:34:23]shift 195 fd 70415 [19:34:23]save to /storage/0195/doc_00070415 [19:34:23]save last doc name /storage/0195/doc_00070415 to /storage/kkm_last_doc_name [19:34:23]save OK [19:34:23]Clear old archive folders... [19:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:23]tlvbuf is B6E6A7B0 [19:34:23]SAM_PROTO_ClearQueue [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 09 00 00 [19:34:23]Write to MH i2c: E2 08 00 9B 21 80 09 00 00 00 00 00 00 2E [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]SAM_PROTO_ClearQueue done [19:34:23]KKMCreateOFDPacket [19:34:23]OFDProtocolAddRootSTLVToBuf [19:34:23]FM_MakeSignedData [19:34:23]FM_MakeSignedData [19:34:23]SAM_PROTO_SignData [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 0D 01 02 [19:34:23]Write to MH i2c: E2 08 00 9C 21 80 0D 01 02 00 00 00 00 36 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 9C 21 00 90 00 31 [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]wFMCommunicate request_size=255 [19:34:23]MH_SAM_APDU [19:34: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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 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 3F FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 13 01 00 35 04 06 00 A2 BA 4F 88 [19:34:23]Write to MH i2c: E2 02 01 9D 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 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 3F FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 13 01 00 35 04 06 00 A2 BA 4F 88 00 00 22 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 9D 21 00 90 00 32 [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]wFMCommunicate request_size=7 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 0D 02 02 02 65 91 [19:34:23]Write to MH i2c: E2 0A 00 9E 21 80 0D 02 02 02 00 65 91 00 00 33 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 0D 03 02 [19:34:23]Write to MH i2c: E2 08 00 9F 21 80 0D 03 02 00 00 00 00 3B [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 0B 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 0B 00 9F 21 00 85 25 21 BB B4 C1 77 75 90 00 23 [19:34:23]RAPDU: 85 25 21 BB B4 C1 77 75 90 00 [19:34:23]wFMCommunicate OK [19:34:23]SAM_PROTO_SignData done [19:34:23]FM_MakeSignedData done [19:34:23]CreateOFDProtocolMessage [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 11 00 00 [19:34:23]Write to MH i2c: E2 08 00 A0 21 80 11 00 00 00 00 00 00 3B [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 17 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 17 00 A0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [19:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:23]wFMCommunicate OK [19:34:23]CreateOFDProtocolMessage done [19:34:23]OFDSenderStorePacket 70415 [19:34:23]StoreOFDPacket docnum=70415 [19:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D5 FA 04 01 98 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 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 3F FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 13 01 00 35 04 06 00 A2 BA 4F 88 65 91 85 25 21 BB B4 C1 77 75 [19:34:23]CheckFolder [19:34:23]dirname=/storage/ofd_packets [19:34:23]CheckFolder done [19:34:23]ProducePacketName [19:34:23]name=ofd_packets/00070415 [19:34:23]NVStorageSaveData ofd_packets/00070415 [19:34:23]File name is /storage/ofd_packets/00070415 [19:34:23]Write 298 bytes [19:34:23]NVStorageSaveData done [19:34:23]OFDSenderStorePacket done [19:34:23]KKMCreateOFDPacket done [19:34:23]NVStorageSaveData kkm_last_timestamp [19:34:23]File name is /storage/kkm_last_timestamp [19:34:23]Write 4 bytes [19:34:23]OFD Sender: Processing packet 70415 [packets to send 18, broken 17] [19:34:23]ProducePacketName [19:34:23]name=ofd_packets/00070415 [19:34:23]OFD Sender: To server: pG, [19:34:23]CommunicateWithHost lk.salyk.kg:30040 [19:34:23]ConnectInit lk.salyk.kg [19:34:23]NVStorageSaveData done [19:34:23]ExternCall_PrintAddStr [19:34:23]wPrintStart [19:34:23]Write to MH i2c: 01 00 00 A1 21 C2 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: 01 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: 01 07 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: 01 07 00 A1 21 00 00 00 00 00 FF 0F D7 [19:34:23]RasterBufferAndPrint [19:34:23]line Счет N : (1)2886180 [19:34:23]line ИНН: 02508201610067 [19:34:23]line Контрольно-Кассовый Чек [19:34:23]line ПРОДАЖА [19:34:23]line ТРК (МРК, ГНК) : 61 [19:34:23]line Товар: 2710194210 [19:34:23]line ДТ-К-5 [19:34:23]line 101.330 * 75.20 [19:34:23]line = 7620.02 [19:34:23]line НДС 12% НСП 1% [19:34:23]line > о реализуемом товаре [19:34:23]line ОКРУГЛЕНИЕ: -0.02 [19:34:23]line ИТОГО: 7620.00 [19:34:23]line Внесено: 7620.00 [19:34:23]line СДАЧА: 0.00 [19:34:23]line НСП 1% : 67.43 [19:34:23]line НДС 12% : 809.21 [19:34:23]line Наличными: 7620.00 [19:34:23]line Безнал.: 0.00 [19:34:23]line Место: АЗС № 85 "Партнер Нефть" [19:34:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:34:23]line СНО: Общий режим [19:34:23]line Чек 363 22.10.2024 19:34 [19:34:23]line Смена: 195 ФФД: 1.0 [19:34:23]line ЗНМ: 0300000167 [19:34:23]line РНМ: 0000000000156251 [19:34:24]line Версия ККМ: v1.0 [19:34:24]line [19:34:24]line Дисконтная программа [19:34:24]line ДТ [19:34:24]line номер 85 [19:34:24]line сэкономлено 101.33 сом [19:34:24]line ФМ: 0000000000963346 [19:34:24]line ФД: 70415 [19:34:24]line ФПД: 178921081955729 [19:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70415&fm=178921081955729&tin=02508201610067®Number=0000000000156251&sum=762000 [19:34:24]Connected sock=11 [19: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 34 36 0C 01 00 00 D5 FA 04 01 98 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 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 3F FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 13 01 00 35 04 06 00 A2 BA 4F 88 65 91 85 25 21 BB B4 C1 77 75 [19:34:24]written 0, free lines is 4095 [19:34: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 34 36 4F 00 00 00 E1 6B 47 00 EF 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 34 36 10 04 04 00 0F 13 01 00 F4 03 04 00 DE A7 17 67 B6 04 01 00 00 91 03 07 5D B0 33 5C D1 [19:34:24]CommunicateWithHost err = 0 [19:34:24]CheckOFDResponse [19:34:24]1017 (14) - 77093643461234 [19:34:24]1041 (16) - 0000000000963346 [19:34:24]1040 (4) - 70415 [19:34:24]1012 (4) - 22.10.2024 13:25 [19:34:24]1206 (1) - 0 [19:34:24]OFD Sender: Remove packet 70415 [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00070415 [19:34:24]NVStorageDeleteData [19:34:24]Write to MH i2c: 01 00 00 D1 21 F2 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 D1 21 00 00 00 00 00 91 0C 96 [19:34:24]RasterBufferAndPrint [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]written 0, free lines is 3223 [19:34:24]MH_Cut [19:34:24]Write to MH i2c: D1 01 00 D8 21 01 CB [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 D8 21 00 CA [19:34:24]Write to MH i2c: 01 00 00 D9 21 FA [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]OFD Sender: No OFD packet to send [19:34:25]*** Cut start [19:34:25]*** Partial cut [19:34:25]*** CUTSNS_PIN = 1 [19:34:25]*** CUTSNS_PIN = 0 [19:34:25]*** Brake cut motor [19:34:25]Read from MH i2c: 01 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: 01 07 00 [19:34:25]MH_I2C_Read... [19:34:25]*** Stop cut motor [19:34:25]*** Cut end [19:34:25]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 FF 0F 0F [19:34:26]process_action close_receipt done [19:34:26]requested_data is exist [19:34:26]produce_requested_data [19:34:26]requested_item fm.sn is exist - process it [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 11 00 00 [19:34:26]Write to MH i2c: E2 08 00 DA 21 80 11 00 00 00 00 00 00 75 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 DA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [19:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:26]wFMCommunicate OK [19:34:26]requested_item fd.num is exist - process it [19:34:26]SAM_PROTO_GetFieldsCounters [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 00 00 [19:34:26]Write to MH i2c: E2 08 00 DB 21 80 13 00 00 00 00 00 00 78 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 DB 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 13 01 00 0E 04 04 00 C3 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 BD [19:34: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 13 01 00 0E 04 04 00 C3 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 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetFieldsCounters done [19:34:26]requested_item shift.num is exist - process it [19:34:26]requested_item shift.opened is exist - process it [19:34:26]req_shift_opened [19:34:26]FM_GetShiftState [19:34:26]SAM_PROTO_GetShiftState [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 01 00 [19:34:26]Write to MH i2c: E2 08 00 DC 21 80 13 01 00 00 00 00 00 7A [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 DC 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 68 [19:34:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetShiftState done [19:34:26]FM_GetShiftState done [19:34:26]req_shift_opened done [19:34:26]requested_item shift.open_date is exist - process it [19:34:26]req_shift_open_date [19:34:26]req_shift_open_date done [19:34:26]produce_requested_data done [19:34:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70415,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:34:26]process_action_free close_receipt [19:34:26]json_value_free [19:34:26]json_value_free done [19:34:26]process_json_proto returns [19:34:26]Send response to host [19:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70415,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:34:26]free response buf [19:34:26]execute_script done [19:34:26]execute_script returns [19:34:26]free content buf [19:34:26]Sock 9.Close socket [19:34:26]Sock 9.Thread stoped [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:42]accept exits with 7 [19:36:42]New connection [19:36:42]New thread 3066555748 created [19:36:42]Thread 3066699108 joined [19:36:42]Waiting for new connection... [19:36:42] Sock 7.Parse request [19:36:42]Sock 7.Check first char [19:36:42]Sock 7.First char is OK [19:36:42]request: POST /json_proto HTTP/1.0 [19:36:42]Method: POST [19:36:42]URL: /json_proto [19:36:42]Method is POST - this is cgi request [19:36:42]url: /json_proto [19:36:42]query_string will be loaded in cgi processing [19:36:42]execute_cgi json_proto POST (null) [19:36:42]execute_cgi path=json_proto method=POST [19:36:42]POST find Content-Length [19:36:42]Host: 172.17.50.3:8080 [19:36:42]Content-Length: 767 [19:36:42]Content-Type: application/json [19:36:42] [19:36:42]POST finish read [19:36:42]Found Content-Length = 767 [19:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:36:42]execute_script... [19:36: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)2886183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:36:42]POST & json_proto [19:36:42]process_json_proto [19:36:42]json parsed OK: [19:36:42]protocol is kg_v1.0 [19:36:42]action value=close_receipt [19:36:42]process_action close_receipt [19:36:42]cmd_close_receipt [19:36:42]MH_GetDate [19:36:42]Write to MH i2c: F0 00 00 DD 21 ED [19:36:42]Write i2c OK [19:36:42]MH_I2C_Read... [19:36:42]Read from MH i2c: F0 [19:36:42]MH_I2C_Read... [19:36:42]Read from MH i2c: F0 09 00 [19:36:42]MH_I2C_Read... [19:36:42]Read from MH i2c: F0 09 00 DD 21 00 CB FE 17 67 6B 98 1E 66 C4 [19:36:42]GetLastDocTimeStamp 1729625663 [19:36:42]current date 1729625803 [19:36:42]FM_GetShiftState [19:36:42]SAM_PROTO_GetShiftState [19:36:42]wFMCommunicate request_size=4 [19:36:42]MH_SAM_APDU [19:36:42]CAPDU: 80 13 01 00 [19:36:42]Write to MH i2c: E2 08 00 DE 21 80 13 01 00 00 00 00 00 7C [19:36:42]Write i2c OK [19:36:42]MH_I2C_Read... [19:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:42]Read from MH i2c: E2 [19:36:42]MH_I2C_Read... [19:36:42]Read from MH i2c: E2 0E 00 [19:36:42]MH_I2C_Read... [19:36:42]Read from MH i2c: E2 0E 00 DE 21 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6A [19:36:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:36:42]wFMCommunicate OK [19:36:42]SAM_PROTO_GetShiftState done [19:36:42]FM_GetShiftState done [19:36:42]opened in 1729555832 [19:36:42]opened+sec_in_day 1729642232 [19:36:42]quantity*price = 50041 [19:36:42]sum+1 = 50042 [19:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 364 22.10.2024 19:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70416 ФПД: 146270267377913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70416&fm=146270267377913&tin=02508201610067®Number=0000000000156251&sum=50041 [19:36:43]StoreToDocumentArchive [19:36:43]shift 195 fd 70416 [19:36:43]save to /storage/0195/doc_00070416 [19:36:43]save last doc name /storage/0195/doc_00070416 to /storage/kkm_last_doc_name [19:36:43]save OK [19:36:43]Clear old archive folders... [19:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:43]tlvbuf is 00B2A8F0 [19:36:43]SAM_PROTO_ClearQueue [19:36:43]wFMCommunicate request_size=4 [19:36:43]MH_SAM_APDU [19:36:43]CAPDU: 80 09 00 00 [19:36:43]Write to MH i2c: E2 08 00 EB 21 80 09 00 00 00 00 00 00 7E [19:36:43]Write i2c OK [19:36:43]MH_I2C_Read... [19:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:43]Read from MH i2c: E2 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: E2 03 00 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [19:36:43]RAPDU: 90 00 [19:36:43]wFMCommunicate OK [19:36:43]SAM_PROTO_ClearQueue done [19:36:43]KKMCreateOFDPacket [19:36:43]OFDProtocolAddRootSTLVToBuf [19:36:43]FM_MakeSignedData [19:36:43]FM_MakeSignedData [19:36:43]SAM_PROTO_SignData [19:36:43]wFMCommunicate request_size=4 [19:36:43]MH_SAM_APDU [19:36:43]CAPDU: 80 0D 01 02 [19:36:43]Write to MH i2c: E2 08 00 EC 21 80 0D 01 02 00 00 00 00 86 [19:36:43]Write i2c OK [19:36:43]MH_I2C_Read... [19:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:43]Read from MH i2c: E2 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: E2 03 00 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [19:36:43]RAPDU: 90 00 [19:36:43]wFMCommunicate OK [19:36:43]wFMCommunicate request_size=255 [19:36:43]MH_SAM_APDU [19:36:43]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 6C 01 00 00 F4 03 04 00 CB FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 13 01 00 35 04 06 00 85 [19:36:43]Write to MH i2c: E2 02 01 ED 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 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 6C 01 00 00 F4 03 04 00 CB FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 13 01 00 35 04 06 00 85 00 00 81 [19:36:43]Write i2c OK [19:36:43]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 03 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [19:36:44]RAPDU: 90 00 [19:36:44]wFMCommunicate OK [19:36:44]wFMCommunicate request_size=10 [19:36:44]MH_SAM_APDU [19:36:44]CAPDU: 80 0D 02 02 05 08 33 54 08 F9 [19:36:44]Write to MH i2c: E2 0D 00 EE 21 80 0D 02 02 05 00 08 33 54 08 F9 00 00 23 [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 03 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [19:36:44]RAPDU: 90 00 [19:36:44]wFMCommunicate OK [19:36:44]wFMCommunicate request_size=4 [19:36:44]MH_SAM_APDU [19:36:44]CAPDU: 80 0D 03 02 [19:36:44]Write to MH i2c: E2 08 00 EF 21 80 0D 03 02 00 00 00 00 8B [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 0B 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 0B 00 EF 21 00 C4 FC 79 30 7D C4 87 3A 90 00 F7 [19:36:44]RAPDU: C4 FC 79 30 7D C4 87 3A 90 00 [19:36:44]wFMCommunicate OK [19:36:44]SAM_PROTO_SignData done [19:36:44]FM_MakeSignedData done [19:36:44]CreateOFDProtocolMessage [19:36:44]wFMCommunicate request_size=4 [19:36:44]MH_SAM_APDU [19:36:44]CAPDU: 80 11 00 00 [19:36:44]Write to MH i2c: E2 08 00 F0 21 80 11 00 00 00 00 00 00 8B [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 17 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 17 00 F0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [19:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:36:44]wFMCommunicate OK [19:36:44]CreateOFDProtocolMessage done [19:36:44]OFDSenderStorePacket 70416 [19:36:44]StoreOFDPacket docnum=70416 [19:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2A D1 07 01 55 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 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 6C 01 00 00 F4 03 04 00 CB FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 13 01 00 35 04 06 00 85 08 33 54 08 F9 C4 FC 79 30 7D C4 87 3A [19:36:44]CheckFolder [19:36:44]dirname=/storage/ofd_packets [19:36:44]CheckFolder done [19:36:44]ProducePacketName [19:36:44]name=ofd_packets/00070416 [19:36:44]NVStorageSaveData ofd_packets/00070416 [19:36:44]File name is /storage/ofd_packets/00070416 [19:36:44]Write 301 bytes [19:36:44]NVStorageSaveData done [19:36:44]OFDSenderStorePacket done [19:36:44]KKMCreateOFDPacket done [19:36:44]NVStorageSaveData kkm_last_timestamp [19:36:44]File name is /storage/kkm_last_timestamp [19:36:44]Write 4 bytes [19:36:44]NVStorageSaveData done [19:36:44]ExternCall_PrintAddStr [19:36:44]wPrintStart [19:36:44]Write to MH i2c: 01 00 00 F1 21 12 [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 07 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 07 00 F1 21 00 00 00 00 00 FF 0F 27 [19:36:44]RasterBufferAndPrint [19:36:44]line Счет N : (1)2886183 [19:36:44]line ИНН: 02508201610067 [19:36:44]line Контрольно-Кассовый Чек [19:36:44]line ПРОДАЖА [19:36:44]line ТРК (МРК, ГНК) : 32 [19:36:44]line Товар: 2710124130 [19:36:44]line Аи-92-К-5 [19:36:44]line 7.480 * 66.90 [19:36:44]line = 500.41 [19:36:44]line НДС 12% НСП 1% [19:36:44]line > о реализуемом товаре [19:36:44]line ИТОГО: 500.41 [19:36:44]line НСП 1% : 4.43 [19:36:44]line НДС 12% : 53.14 [19:36:44]line Наличными: 0.00 [19:36:44]line Безнал.: 500.41 [19:36:44]line Место: АЗС № 85 "Партнер Нефть" [19:36:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:36:44]line СНО: Общий режим [19:36:44]line Чек 364 22.10.2024 19:36 [19:36:44]line Смена: 195 ФФД: 1.0 [19:36:44]line ЗНМ: 0300000167 [19:36:44]line РНМ: 0000000000156251 [19:36:44]line Версия ККМ: v1.0 [19:36:44]line Платежная система: Mbank [19:36:44]line ФМ: 0000000000963346 [19:36:44]line ФД: 70416 [19:36:44]line ФПД: 146270267377913 [19:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70416&fm=146270267377913&tin=02508201610067®Number=0000000000156251&sum=50041 [19:36:44]OFD Sender: Processing packet 70416 [packets to send 18, broken 17] [19:36:44]ProducePacketName [19:36:44]name=ofd_packets/00070416 [19:36:44]OFD Sender: To server: pG, [19:36:44]CommunicateWithHost lk.salyk.kg:30040 [19:36:44]ConnectInit lk.salyk.kg [19:36:44]written 0, free lines is 4095 [19:36:44]Connected sock=10 [19:36: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 34 36 0F 01 00 00 2A D1 07 01 55 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 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 6C 01 00 00 F4 03 04 00 CB FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 13 01 00 35 04 06 00 85 08 33 54 08 F9 C4 FC 79 30 7D C4 87 3A [19:36: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 34 36 4F 00 00 00 D0 E1 47 00 64 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 34 36 10 04 04 00 10 13 01 00 F4 03 04 00 6B A8 17 67 B6 04 01 00 00 57 52 89 4D F4 D0 ED 64 [19:36:44]CommunicateWithHost err = 0 [19:36:44]CheckOFDResponse [19:36:44]1017 (14) - 77093643461234 [19:36:44]1041 (16) - 0000000000963346 [19:36:44]1040 (4) - 70416 [19:36:44]1012 (4) - 22.10.2024 13:28 [19:36:44]1206 (1) - 0 [19:36:44]OFD Sender: Remove packet 70416 [19:36:44]ProducePacketName [19:36:44]name=ofd_packets/00070416 [19:36:44]NVStorageDeleteData [19:36:44]Write to MH i2c: 01 00 00 1A 22 3C [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 07 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: 01 07 00 1A 22 00 00 00 00 00 03 0D 53 [19:36:44]RasterBufferAndPrint [19:36:44]line [19:36:44]line [19:36:44]line [19:36:44]line [19:36:44]line [19:36:44]written 0, free lines is 3337 [19:36:44]MH_Cut [19:36:44]Write to MH i2c: D1 01 00 21 22 01 15 [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: D1 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: D1 01 00 [19:36:44]MH_I2C_Read... [19:36:45]Read from MH i2c: D1 01 00 21 22 00 14 [19:36:45]Write to MH i2c: 01 00 00 22 22 44 [19:36:45]Write i2c OK [19:36:45]MH_I2C_Read... [19:36:45]OFD Sender: No OFD packet to send [19:36:45]*** Cut start [19:36:45]*** Partial cut [19:36:45]*** CUTSNS_PIN = 1 [19:36:45]*** CUTSNS_PIN = 0 [19:36:45]*** Brake cut motor [19:36:46]Read from MH i2c: 01 [19:36:46]MH_I2C_Read... [19:36:46]*** Stop cut motor [19:36:46]*** Cut end [19:36:46]Read from MH i2c: 01 07 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 FF 0F 59 [19:36:46]process_action close_receipt done [19:36:46]requested_data is exist [19:36:46]produce_requested_data [19:36:46]requested_item fm.sn is exist - process it [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 11 00 00 [19:36:46]Write to MH i2c: E2 08 00 23 22 80 11 00 00 00 00 00 00 BF [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 17 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 17 00 23 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [19:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:36:46]wFMCommunicate OK [19:36:46]requested_item fd.num is exist - process it [19:36:46]SAM_PROTO_GetFieldsCounters [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 13 00 00 [19:36:46]Write to MH i2c: E2 08 00 24 22 80 13 00 00 00 00 00 00 C2 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 62 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 62 00 24 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 13 01 00 0E 04 04 00 C3 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 0B [19:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 13 01 00 0E 04 04 00 C3 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 [19:36:46]wFMCommunicate OK [19:36:46]SAM_PROTO_GetFieldsCounters done [19:36:46]requested_item shift.num is exist - process it [19:36:46]requested_item shift.opened is exist - process it [19:36:46]req_shift_opened [19:36:46]FM_GetShiftState [19:36:46]SAM_PROTO_GetShiftState [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 13 01 00 [19:36:46]Write to MH i2c: E2 08 00 25 22 80 13 01 00 00 00 00 00 C4 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 0E 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 0E 00 25 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B2 [19:36:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:36:46]wFMCommunicate OK [19:36:46]SAM_PROTO_GetShiftState done [19:36:46]FM_GetShiftState done [19:36:46]req_shift_opened done [19:36:46]requested_item shift.open_date is exist - process it [19:36:46]req_shift_open_date [19:36:46]req_shift_open_date done [19:36:46]produce_requested_data done [19:36:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70416,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:36:46]process_action_free close_receipt [19:36:46]json_value_free [19:36:46]json_value_free done [19:36:46]process_json_proto returns [19:36:46]Send response to host [19:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70416,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:36:46]free response buf [19:36:46]execute_script done [19:36:46]execute_script returns [19:36:46]free content buf [19:36:46]Sock 7.Close socket [19:36:46]Sock 7.Thread stoped [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:33]accept exits with 9 [19:37:33]New connection [19:37:33]New thread 3066699108 created [19:37:33]Thread 3066555748 joined [19:37:33]Waiting for new connection... [19:37:33] Sock 9.Parse request [19:37:33]Sock 9.Check first char [19:37:33]Sock 9.First char is OK [19:37:33]request: POST /json_proto HTTP/1.0 [19:37:33]Method: POST [19:37:33]URL: /json_proto [19:37:33]Method is POST - this is cgi request [19:37:33]url: /json_proto [19:37:33]query_string will be loaded in cgi processing [19:37:33]execute_cgi json_proto POST (null) [19:37:33]execute_cgi path=json_proto method=POST [19:37:33]POST find Content-Length [19:37:33]Host: 172.17.50.3:8080 [19:37:33]Content-Length: 679 [19:37:33]Content-Type: application/json [19:37:33] [19:37:33]POST finish read [19:37:33]Found Content-Length = 679 [19:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [19:37:33]execute_script... [19:37: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)2886184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [19:37:33]POST & json_proto [19:37:33]process_json_proto [19:37:33]json parsed OK: [19:37:33]protocol is kg_v1.0 [19:37:33]action value=close_receipt [19:37:33]process_action close_receipt [19:37:33]cmd_close_receipt [19:37:33]MH_GetDate [19:37:33]Write to MH i2c: F0 00 00 26 22 37 [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 26 22 00 FE FE 17 67 6B 98 1E 66 41 [19:37:33]GetLastDocTimeStamp 1729625803 [19:37:33]current date 1729625854 [19:37:33]FM_GetShiftState [19:37:33]SAM_PROTO_GetShiftState [19:37:33]wFMCommunicate request_size=4 [19:37:33]MH_SAM_APDU [19:37:33]CAPDU: 80 13 01 00 [19:37:33]Write to MH i2c: E2 08 00 27 22 80 13 01 00 00 00 00 00 C6 [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:33]Read from MH i2c: E2 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 27 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B4 [19:37:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:37:33]wFMCommunicate OK [19:37:33]SAM_PROTO_GetShiftState done [19:37:33]FM_GetShiftState done [19:37:33]opened in 1729555832 [19:37:33]opened+sec_in_day 1729642232 [19:37:33]quantity*price = 90047 [19:37:33]sum+1 = 90048 [19:37:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 365 22.10.2024 19:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70417 ФПД: 224561383534599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70417&fm=224561383534599&tin=02508201610067®Number=0000000000156251&sum=90000 [19:37:34]StoreToDocumentArchive [19:37:34]shift 195 fd 70417 [19:37:34]save to /storage/0195/doc_00070417 [19:37:34]save last doc name /storage/0195/doc_00070417 to /storage/kkm_last_doc_name [19:37:34]save OK [19:37:34]Clear old archive folders... [19:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:34]tlvbuf is 00B3A290 [19:37:34]SAM_PROTO_ClearQueue [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 09 00 00 [19:37:34]Write to MH i2c: E2 08 00 34 22 80 09 00 00 00 00 00 00 C8 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 34 22 00 90 00 CA [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]SAM_PROTO_ClearQueue done [19:37:35]KKMCreateOFDPacket [19:37:35]OFDProtocolAddRootSTLVToBuf [19:37:35]FM_MakeSignedData [19:37:35]FM_MakeSignedData [19:37:35]SAM_PROTO_SignData [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 0D 01 02 [19:37:35]Write to MH i2c: E2 08 00 35 22 80 0D 01 02 00 00 00 00 D0 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 35 22 00 90 00 CB [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]wFMCommunicate request_size=255 [19:37:35]MH_SAM_APDU [19:37:35]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 6D 01 00 00 F4 03 04 00 FE FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 13 01 00 35 04 06 00 CC [19:37:35]Write to MH i2c: E2 02 01 36 22 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 6D 01 00 00 F4 03 04 00 FE FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 13 01 00 35 04 06 00 CC 00 00 12 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]wFMCommunicate request_size=10 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 0D 02 02 05 3C C5 7E F0 07 [19:37:35]Write to MH i2c: E2 0D 00 37 22 80 0D 02 02 05 00 3C C5 7E F0 07 00 00 53 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 0D 03 02 [19:37:35]Write to MH i2c: E2 08 00 38 22 80 0D 03 02 00 00 00 00 D5 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:35]OFD Sender: No OFD packet to send [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0B 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0B 00 38 22 00 CD F4 03 A5 9C 40 9F C3 90 00 7D [19:37:35]RAPDU: CD F4 03 A5 9C 40 9F C3 90 00 [19:37:35]wFMCommunicate OK [19:37:35]SAM_PROTO_SignData done [19:37:35]FM_MakeSignedData done [19:37:35]CreateOFDProtocolMessage [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 11 00 00 [19:37:35]Write to MH i2c: E2 08 00 39 22 80 11 00 00 00 00 00 00 D5 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 17 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 17 00 39 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [19:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:37:35]wFMCommunicate OK [19:37:35]CreateOFDProtocolMessage done [19:37:35]OFDSenderStorePacket 70417 [19:37:35]StoreOFDPacket docnum=70417 [19:37:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 C6 07 01 07 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 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 6D 01 00 00 F4 03 04 00 FE FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 13 01 00 35 04 06 00 CC 3C C5 7E F0 07 CD F4 03 A5 9C 40 9F C3 [19:37:35]CheckFolder [19:37:35]dirname=/storage/ofd_packets [19:37:35]CheckFolder done [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00070417 [19:37:35]NVStorageSaveData ofd_packets/00070417 [19:37:35]File name is /storage/ofd_packets/00070417 [19:37:35]Write 301 bytes [19:37:35]NVStorageSaveData done [19:37:35]OFDSenderStorePacket done [19:37:35]KKMCreateOFDPacket done [19:37:35]NVStorageSaveData kkm_last_timestamp [19:37:35]File name is /storage/kkm_last_timestamp [19:37:35]Write 4 bytes [19:37:35]NVStorageSaveData done [19:37:35]ExternCall_PrintAddStr [19:37:35]wPrintStart [19:37:35]Write to MH i2c: 01 00 00 3A 22 5C [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 3A 22 00 00 00 00 00 FF 0F 71 [19:37:35]RasterBufferAndPrint [19:37:35]line Счет N : (1)2886184 [19:37:35]line ИНН: 02508201610067 [19:37:35]line Контрольно-Кассовый Чек [19:37:35]line ПРОДАЖА [19:37:35]line ТРК (МРК, ГНК) : 12 [19:37:35]line Товар: 2710124130 [19:37:35]line Аи-92-К-5 [19:37:35]line 13.460 * 66.90 [19:37:35]line = 900.47 [19:37:35]line НДС 12% НСП 1% [19:37:35]line > о реализуемом товаре [19:37:35]line ОКРУГЛЕНИЕ: -0.47 [19:37:35]line ИТОГО: 900.00 [19:37:35]line Внесено: 900.00 [19:37:35]line СДАЧА: 0.00 [19:37:35]line НСП 1% : 7.97 [19:37:35]line НДС 12% : 95.62 [19:37:35]line Наличными: 900.00 [19:37:35]line Безнал.: 0.00 [19:37:35]line Место: АЗС № 85 "Партнер Нефть" [19:37:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:37:35]line СНО: Общий режим [19:37:35]line Чек 365 22.10.2024 19:37 [19:37:35]line Смена: 195 ФФД: 1.0 [19:37:35]line ЗНМ: 0300000167 [19:37:35]line РНМ: 0000000000156251 [19:37:35]line Версия ККМ: v1.0 [19:37:35]line ФМ: 0000000000963346 [19:37:35]line ФД: 70417 [19:37:35]line ФПД: 224561383534599 [19:37:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70417&fm=224561383534599&tin=02508201610067®Number=0000000000156251&sum=90000 [19:37:35]OFD Sender: Processing packet 70417 [packets to send 18, broken 17] [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00070417 [19:37:35]OFD Sender: To server: pG, [19:37:35]CommunicateWithHost lk.salyk.kg:30040 [19:37:35]ConnectInit lk.salyk.kg [19:37:35]written 0, free lines is 4095 [19:37:35]Connected sock=10 [19:37: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 34 36 0F 01 00 00 07 C6 07 01 07 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 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 6D 01 00 00 F4 03 04 00 FE FE 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 13 01 00 35 04 06 00 CC 3C C5 7E F0 07 CD F4 03 A5 9C 40 9F C3 [19:37: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 34 36 4F 00 00 00 84 4C 47 00 0B 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 34 36 10 04 04 00 11 13 01 00 F4 03 04 00 9E A8 17 67 B6 04 01 00 00 F9 69 5D AB EE 58 2C C4 [19:37:36]CommunicateWithHost err = 0 [19:37:36]CheckOFDResponse [19:37:36]1017 (14) - 77093643461234 [19:37:36]1041 (16) - 0000000000963346 [19:37:36]1040 (4) - 70417 [19:37:36]1012 (4) - 22.10.2024 13:29 [19:37:36]1206 (1) - 0 [19:37:36]OFD Sender: Remove packet 70417 [19:37:36]ProducePacketName [19:37:36]name=ofd_packets/00070417 [19:37:36]NVStorageDeleteData [19:37:36]Write to MH i2c: 01 00 00 65 22 87 [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: 01 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: 01 07 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 03 0D 9E [19:37:36]RasterBufferAndPrint [19:37:36]line [19:37:36]line [19:37:36]line [19:37:36]line [19:37:36]line [19:37:36]written 0, free lines is 3337 [19:37:36]MH_Cut [19:37:36]Write to MH i2c: D1 01 00 6C 22 01 60 [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: D1 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: D1 01 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: D1 01 00 6C 22 00 5F [19:37:36]Write to MH i2c: 01 00 00 6D 22 8F [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]OFD Sender: No OFD packet to send [19:37:36]*** Cut start [19:37:36]*** Partial cut [19:37:36]*** CUTSNS_PIN = 1 [19:37:37]*** CUTSNS_PIN = 0 [19:37:37]*** Brake cut motor [19:37:37]Read from MH i2c: 01 [19:37:37]MH_I2C_Read... [19:37:37]*** Stop cut motor [19:37:37]*** Cut end [19:37:37]Read from MH i2c: 01 07 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [19:37:37]process_action close_receipt done [19:37:37]requested_data is exist [19:37:37]produce_requested_data [19:37:37]requested_item fm.sn is exist - process it [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 11 00 00 [19:37:37]Write to MH i2c: E2 08 00 6E 22 80 11 00 00 00 00 00 00 0A [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 6E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [19:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:37:37]wFMCommunicate OK [19:37:37]requested_item fd.num is exist - process it [19:37:37]SAM_PROTO_GetFieldsCounters [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 00 00 [19:37:37]Write to MH i2c: E2 08 00 6F 22 80 13 00 00 00 00 00 00 0D [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 6F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetFieldsCounters done [19:37:37]requested_item shift.num is exist - process it [19:37:37]requested_item shift.opened is exist - process it [19:37:37]req_shift_opened [19:37:37]FM_GetShiftState [19:37:37]SAM_PROTO_GetShiftState [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 01 00 [19:37:37]Write to MH i2c: E2 08 00 70 22 80 13 01 00 00 00 00 00 0F [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 70 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FD [19:37:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetShiftState done [19:37:37]FM_GetShiftState done [19:37:37]req_shift_opened done [19:37:37]requested_item shift.open_date is exist - process it [19:37:37]req_shift_open_date [19:37:37]req_shift_open_date done [19:37:37]produce_requested_data done [19:37:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70417,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:37:37]process_action_free close_receipt [19:37:37]json_value_free [19:37:37]json_value_free done [19:37:37]process_json_proto returns [19:37:37]Send response to host [19:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70417,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:37:37]free response buf [19:37:37]execute_script done [19:37:37]execute_script returns [19:37:37]free content buf [19:37:37]Sock 9.Close socket [19:37:37]Sock 9.Thread stoped [19:37:41]OFD Sender: No OFD packet to send [19:37:42]accept exits with 7 [19:37:42]New connection [19:37:42]New thread 3066555748 created [19:37:42]Thread 3066699108 joined [19:37:42]Waiting for new connection... [19:37:42] Sock 7.Parse request [19:37:42]Sock 7.Check first char [19:37:42]Sock 7.First char is OK [19:37:42]request: POST /json_proto HTTP/1.0 [19:37:42]Method: POST [19:37:42]URL: /json_proto [19:37:42]Method is POST - this is cgi request [19:37:42]url: /json_proto [19:37:42]query_string will be loaded in cgi processing [19:37:42]execute_cgi json_proto POST (null) [19:37:42]execute_cgi path=json_proto method=POST [19:37:42]POST find Content-Length [19:37:42]Host: 172.17.50.3:8080 [19:37:42]Content-Length: 980 [19:37:42]Content-Type: application/json [19:37:42] [19:37:42]POST finish read [19:37:42]Found Content-Length = 980 [19:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:42]execute_script... [19:37: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)2886182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:42]POST & json_proto [19:37:42]process_json_proto [19:37:42]json parsed OK: [19:37:42]protocol is kg_v1.0 [19:37:42]action value=close_receipt [19:37:42]process_action close_receipt [19:37:42]cmd_close_receipt [19:37:42]MH_GetDate [19:37:42]Write to MH i2c: F0 00 00 71 22 82 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 09 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 09 00 71 22 00 07 FF 17 67 6B 98 1E 66 96 [19:37:42]GetLastDocTimeStamp 1729625854 [19:37:42]current date 1729625863 [19:37:42]FM_GetShiftState [19:37:42]SAM_PROTO_GetShiftState [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 13 01 00 [19:37:42]Write to MH i2c: E2 08 00 72 22 80 13 01 00 00 00 00 00 11 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0E 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0E 00 72 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FF [19:37:42]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:37:42]wFMCommunicate OK [19:37:42]SAM_PROTO_GetShiftState done [19:37:42]FM_GetShiftState done [19:37:42]opened in 1729555832 [19:37:42]opened+sec_in_day 1729642232 [19:37:42]quantity*price = 762001 [19:37:42]sum+1 = 762003 [19:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 7620.00 Внесено: 7620.00 СДАЧА: 0.00 НСП 1% : 67.43 НДС 12% : 809.21 Наличными: 7620.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 366 22.10.2024 19:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 101.33 сом ФМ: 0000000000963346 ФД: 70418 ФПД: 98485363814566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70418&fm=98485363814566&tin=02508201610067®Number=0000000000156251&sum=762000 [19:37:43]StoreToDocumentArchive [19:37:43]shift 195 fd 70418 [19:37:43]save to /storage/0195/doc_00070418 [19:37:43]save last doc name /storage/0195/doc_00070418 to /storage/kkm_last_doc_name [19:37:43]save OK [19:37:43]Clear old archive folders... [19:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:37:43]tlvbuf is 00B3CC30 [19:37:43]SAM_PROTO_ClearQueue [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 09 00 00 [19:37:43]Write to MH i2c: E2 08 00 7F 22 80 09 00 00 00 00 00 00 13 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]SAM_PROTO_ClearQueue done [19:37:44]KKMCreateOFDPacket [19:37:44]OFDProtocolAddRootSTLVToBuf [19:37:44]FM_MakeSignedData [19:37:44]FM_MakeSignedData [19:37:44]SAM_PROTO_SignData [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 01 02 [19:37:44]Write to MH i2c: E2 08 00 80 22 80 0D 01 02 00 00 00 00 1B [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=255 [19:37:44]MH_SAM_APDU [19:37:44]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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 07 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 13 01 00 35 04 06 00 59 92 69 20 [19:37:44]Write to MH i2c: E2 02 01 81 22 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 07 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 13 01 00 35 04 06 00 59 92 69 20 00 00 17 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=7 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 02 02 02 30 A6 [19:37:44]Write to MH i2c: E2 0A 00 82 22 80 0D 02 02 02 00 30 A6 00 00 F8 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 03 02 [19:37:44]Write to MH i2c: E2 08 00 83 22 80 0D 03 02 00 00 00 00 20 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0B 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0B 00 83 22 00 B7 E4 E3 27 F2 CE 5F 7B 90 00 60 [19:37:44]RAPDU: B7 E4 E3 27 F2 CE 5F 7B 90 00 [19:37:44]wFMCommunicate OK [19:37:44]SAM_PROTO_SignData done [19:37:44]FM_MakeSignedData done [19:37:44]CreateOFDProtocolMessage [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 11 00 00 [19:37:44]Write to MH i2c: E2 08 00 84 22 80 11 00 00 00 00 00 00 20 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 84 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [19:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:37:44]wFMCommunicate OK [19:37:44]CreateOFDProtocolMessage done [19:37:44]OFDSenderStorePacket 70418 [19:37:44]StoreOFDPacket docnum=70418 [19:37:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 88 2F 04 01 52 5D 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 07 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 13 01 00 35 04 06 00 59 92 69 20 30 A6 B7 E4 E3 27 F2 CE 5F 7B [19:37:44]CheckFolder [19:37:44]dirname=/storage/ofd_packets [19:37:44]CheckFolder done [19:37:44]ProducePacketName [19:37:44]name=ofd_packets/00070418 [19:37:44]NVStorageSaveData ofd_packets/00070418 [19:37:44]File name is /storage/ofd_packets/00070418 [19:37:44]Write 298 bytes [19:37:44]NVStorageSaveData done [19:37:44]OFDSenderStorePacket done [19:37:44]KKMCreateOFDPacket done [19:37:44]NVStorageSaveData kkm_last_timestamp [19:37:44]File name is /storage/kkm_last_timestamp [19:37:44]Write 4 bytes [19:37:44]NVStorageSaveData done [19:37:44]ExternCall_PrintAddStr [19:37:44]wPrintStart [19:37:44]Write to MH i2c: 01 00 00 85 22 A7 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 85 22 00 00 00 00 00 FF 0F BC [19:37:44]RasterBufferAndPrint [19:37:44]line Счет N : (1)2886182 [19:37:44]line ИНН: 02508201610067 [19:37:44]line Контрольно-Кассовый Чек [19:37:44]line ПРОДАЖА [19:37:44]line ТРК (МРК, ГНК) : 61 [19:37:44]line Товар: 2710194210 [19:37:44]line ДТ-К-5 [19:37:44]line 101.330 * 75.20 [19:37:44]line = 7620.02 [19:37:44]line НДС 12% НСП 1% [19:37:44]line > о реализуемом товаре [19:37:44]line ОКРУГЛЕНИЕ: -0.02 [19:37:44]line ИТОГО: 7620.00 [19:37:44]line Внесено: 7620.00 [19:37:44]line СДАЧА: 0.00 [19:37:44]line НСП 1% : 67.43 [19:37:44]line НДС 12% : 809.21 [19:37:44]line Наличными: 7620.00 [19:37:44]line Безнал.: 0.00 [19:37:44]line Место: АЗС № 85 "Партнер Нефть" [19:37:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:37:44]line СНО: Общий режим [19:37:44]line Чек 366 22.10.2024 19:37 [19:37:44]line Смена: 195 ФФД: 1.0 [19:37:44]line ЗНМ: 0300000167 [19:37:44]line РНМ: 0000000000156251 [19:37:44]line Версия ККМ: v1.0 [19:37:44]line [19:37:44]line Дисконтная программа [19:37:44]line ДТ [19:37:44]line номер 85 [19:37:44]line сэкономлено 101.33 сом [19:37:44]line ФМ: 0000000000963346 [19:37:44]line ФД: 70418 [19:37:44]line ФПД: 98485363814566 [19:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70418&fm=98485363814566&tin=02508201610067®Number=0000000000156251&sum=762000 [19:37:44]written 0, free lines is 4095 [19:37:44]OFD Sender: Processing packet 70418 [packets to send 18, broken 17] [19:37:44]ProducePacketName [19:37:44]name=ofd_packets/00070418 [19:37:44]OFD Sender: To server: pG, [19:37:44]CommunicateWithHost lk.salyk.kg:30040 [19:37:44]ConnectInit lk.salyk.kg [19:37:44]Connected sock=10 [19:37: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 34 36 0C 01 00 00 88 2F 04 01 52 5D 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 07 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 13 01 00 35 04 06 00 59 92 69 20 30 A6 B7 E4 E3 27 F2 CE 5F 7B [19:37: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 34 36 4F 00 00 00 32 D4 47 00 01 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 34 36 10 04 04 00 12 13 01 00 F4 03 04 00 A7 A8 17 67 B6 04 01 00 00 E9 B0 37 31 6E C8 E4 5E [19:37:45]CommunicateWithHost err = 0 [19:37:45]CheckOFDResponse [19:37:45]1017 (14) - 77093643461234 [19:37:45]1041 (16) - 0000000000963346 [19:37:45]1040 (4) - 70418 [19:37:45]1012 (4) - 22.10.2024 13:29 [19:37:45]1206 (1) - 0 [19:37:45]OFD Sender: Remove packet 70418 [19:37:45]ProducePacketName [19:37:45]name=ofd_packets/00070418 [19:37:45]NVStorageDeleteData [19:37:45]Write to MH i2c: 01 00 00 B5 22 D7 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 B5 22 00 00 00 00 00 98 0C 82 [19:37:45]RasterBufferAndPrint [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]written 0, free lines is 3234 [19:37:45]MH_Cut [19:37:45]Write to MH i2c: D1 01 00 BC 22 01 B0 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 01 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 01 00 BC 22 00 AF [19:37:45]Write to MH i2c: 01 00 00 BD 22 DF [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]OFD Sender: No OFD packet to send [19:37:46]*** Cut start [19:37:46]*** Partial cut [19:37:46]*** CUTSNS_PIN = 1 [19:37:46]*** CUTSNS_PIN = 0 [19:37:46]*** Brake cut motor [19:37:46]Read from MH i2c: 01 [19:37:46]MH_I2C_Read... [19:37:46]*** Stop cut motor [19:37:46]*** Cut end [19:37:46]Read from MH i2c: 01 07 00 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 FF 0F F4 [19:37:46]process_action close_receipt done [19:37:46]requested_data is exist [19:37:46]produce_requested_data [19:37:46]requested_item fm.sn is exist - process it [19:37:46]wFMCommunicate request_size=4 [19:37:46]MH_SAM_APDU [19:37:46]CAPDU: 80 11 00 00 [19:37:46]Write to MH i2c: E2 08 00 BE 22 80 11 00 00 00 00 00 00 5A [19:37:46]Write i2c OK [19:37:46]MH_I2C_Read... [19:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:46]Read from MH i2c: E2 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 17 00 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 17 00 BE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [19:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:37:46]wFMCommunicate OK [19:37:46]requested_item fd.num is exist - process it [19:37:46]SAM_PROTO_GetFieldsCounters [19:37:46]wFMCommunicate request_size=4 [19:37:46]MH_SAM_APDU [19:37:46]CAPDU: 80 13 00 00 [19:37:46]Write to MH i2c: E2 08 00 BF 22 80 13 00 00 00 00 00 00 5D [19:37:46]Write i2c OK [19:37:46]MH_I2C_Read... [19:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:46]Read from MH i2c: E2 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 62 00 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 62 00 BF 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:37: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:46]wFMCommunicate OK [19:37:46]SAM_PROTO_GetFieldsCounters done [19:37:46]requested_item shift.num is exist - process it [19:37:46]requested_item shift.opened is exist - process it [19:37:46]req_shift_opened [19:37:46]FM_GetShiftState [19:37:46]SAM_PROTO_GetShiftState [19:37:46]wFMCommunicate request_size=4 [19:37:46]MH_SAM_APDU [19:37:46]CAPDU: 80 13 01 00 [19:37:46]Write to MH i2c: E2 08 00 C0 22 80 13 01 00 00 00 00 00 5F [19:37:46]Write i2c OK [19:37:46]MH_I2C_Read... [19:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:47]Read from MH i2c: E2 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 0E 00 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 0E 00 C0 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4D [19:37:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:37:47]wFMCommunicate OK [19:37:47]SAM_PROTO_GetShiftState done [19:37:47]FM_GetShiftState done [19:37:47]req_shift_opened done [19:37:47]requested_item shift.open_date is exist - process it [19:37:47]req_shift_open_date [19:37:47]req_shift_open_date done [19:37:47]produce_requested_data done [19:37:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70418,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:37:47]process_action_free close_receipt [19:37:47]json_value_free [19:37:47]json_value_free done [19:37:47]process_json_proto returns [19:37:47]Send response to host [19:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70418,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:37:47]free response buf [19:37:47]execute_script done [19:37:47]execute_script returns [19:37:47]free content buf [19:37:47]Sock 7.Close socket [19:37:47]Sock 7.Thread stoped [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]accept exits with 9 [19:41:00]New connection [19:41:00]New thread 3066699108 created [19:41:00]Thread 3066555748 joined [19:41:00]Waiting for new connection... [19:41:00] Sock 9.Parse request [19:41:00]Sock 9.Check first char [19:41:00]Sock 9.First char is OK [19:41:00]request: POST /json_proto HTTP/1.0 [19:41:00]Method: POST [19:41:00]URL: /json_proto [19:41:00]Method is POST - this is cgi request [19:41:00]url: /json_proto [19:41:00]query_string will be loaded in cgi processing [19:41:00]execute_cgi json_proto POST (null) [19:41:00]execute_cgi path=json_proto method=POST [19:41:00]POST find Content-Length [19:41:00]Host: 172.17.50.3:8080 [19:41:00]Content-Length: 804 [19:41:00]Content-Type: application/json [19:41:00] [19:41:00]POST finish read [19:41:00]Found Content-Length = 804 [19:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:00]execute_script... [19:41: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)2886186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:00]POST & json_proto [19:41:00]process_json_proto [19:41:00]json parsed OK: [19:41:00]protocol is kg_v1.0 [19:41:00]action value=close_receipt [19:41:00]process_action close_receipt [19:41:00]cmd_close_receipt [19:41:00]MH_GetDate [19:41:00]Write to MH i2c: F0 00 00 C1 22 D2 [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 09 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 09 00 C1 22 00 CD FF 17 67 6B 98 1E 66 AC [19:41:00]GetLastDocTimeStamp 1729625863 [19:41:00]current date 1729626061 [19:41:00]FM_GetShiftState [19:41:00]SAM_PROTO_GetShiftState [19:41:00]wFMCommunicate request_size=4 [19:41:00]MH_SAM_APDU [19:41:00]CAPDU: 80 13 01 00 [19:41:00]Write to MH i2c: E2 08 00 C2 22 80 13 01 00 00 00 00 00 61 [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:00]Read from MH i2c: E2 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 C2 22 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4F [19:41:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:00]wFMCommunicate OK [19:41:00]SAM_PROTO_GetShiftState done [19:41:00]FM_GetShiftState done [19:41:00]opened in 1729555832 [19:41:00]opened+sec_in_day 1729642232 [19:41:00]quantity*price = 250005 [19:41:00]sum+1 = 250006 [19:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 367 22.10.2024 19:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963346 ФД: 70419 ФПД: 110725937469374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70419&fm=110725937469374&tin=02508201610067®Number=0000000000156251&sum=250005 [19:41:01]StoreToDocumentArchive [19:41:01]shift 195 fd 70419 [19:41:01]save to /storage/0195/doc_00070419 [19:41:01]save last doc name /storage/0195/doc_00070419 to /storage/kkm_last_doc_name [19:41:01]save OK [19:41:01]Clear old archive folders... [19:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:01]tlvbuf is 00EA8250 [19:41:01]SAM_PROTO_ClearQueue [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 09 00 00 [19:41:01]Write to MH i2c: E2 08 00 CF 22 80 09 00 00 00 00 00 00 63 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]SAM_PROTO_ClearQueue done [19:41:01]KKMCreateOFDPacket [19:41:01]OFDProtocolAddRootSTLVToBuf [19:41:01]FM_MakeSignedData [19:41:01]FM_MakeSignedData [19:41:01]SAM_PROTO_SignData [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 01 02 [19:41:01]Write to MH i2c: E2 08 00 D0 22 80 0D 01 02 00 00 00 00 6B [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=255 [19:41:01]MH_SAM_APDU [19:41: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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 CD FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 13 01 00 35 04 06 00 64 [19:41:01]Write to MH i2c: E2 02 01 D1 22 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 CD FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 13 01 00 35 04 06 00 64 00 00 3E [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=10 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 02 02 05 B4 64 2B 97 BE [19:41:01]Write to MH i2c: E2 0D 00 D2 22 80 0D 02 02 05 00 B4 64 2B 97 BE 00 00 10 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 03 02 [19:41:01]Write to MH i2c: E2 08 00 D3 22 80 0D 03 02 00 00 00 00 70 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 0B 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 0B 00 D3 22 00 2C A8 F4 D5 CD 62 DC 5F 90 00 78 [19:41:01]RAPDU: 2C A8 F4 D5 CD 62 DC 5F 90 00 [19:41:01]wFMCommunicate OK [19:41:01]SAM_PROTO_SignData done [19:41:01]FM_MakeSignedData done [19:41:01]CreateOFDProtocolMessage [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 11 00 00 [19:41:01]Write to MH i2c: E2 08 00 D4 22 80 11 00 00 00 00 00 00 70 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 17 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 17 00 D4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [19:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:01]wFMCommunicate OK [19:41:01]CreateOFDProtocolMessage done [19:41:01]OFDSenderStorePacket 70419 [19:41:01]StoreOFDPacket docnum=70419 [19:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 3B 07 01 1F 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 CD FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 13 01 00 35 04 06 00 64 B4 64 2B 97 BE 2C A8 F4 D5 CD 62 DC 5F [19:41:01]CheckFolder [19:41:01]dirname=/storage/ofd_packets [19:41:01]CheckFolder done [19:41:01]ProducePacketName [19:41:01]name=ofd_packets/00070419 [19:41:01]NVStorageSaveData ofd_packets/00070419 [19:41:01]File name is /storage/ofd_packets/00070419 [19:41:01]Write 301 bytes [19:41:01]NVStorageSaveData done [19:41:01]OFDSenderStorePacket done [19:41:01]KKMCreateOFDPacket done [19:41:01]NVStorageSaveData kkm_last_timestamp [19:41:01]File name is /storage/kkm_last_timestamp [19:41:01]Write 4 bytes [19:41:01]NVStorageSaveData done [19:41:01]ExternCall_PrintAddStr [19:41:01]wPrintStart [19:41:01]Write to MH i2c: 01 00 00 D5 22 F7 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 07 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 FF 0F 0C [19:41:01]RasterBufferAndPrint [19:41:01]line Счет N : (1)2886186 [19:41:01]line ИНН: 02508201610067 [19:41:01]line Контрольно-Кассовый Чек [19:41:01]line ПРОДАЖА [19:41:01]line ТРК (МРК, ГНК) : 32 [19:41:01]line Товар: 2710124130 [19:41:01]line Аи-92-К-5 [19:41:01]line 37.370 * 66.90 [19:41:01]line = 2500.05 [19:41:01]line НДС 12% НСП 1% [19:41:01]line > о реализуемом товаре [19:41:01]line ИТОГО: 2500.05 [19:41:01]line НСП 1% : 22.12 [19:41:01]line НДС 12% : 265.49 [19:41:01]line Наличными: 0.00 [19:41:01]line Безнал.: 2500.05 [19:41:01]line Место: АЗС № 85 "Партнер Нефть" [19:41:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:41:01]line СНО: Общий режим [19:41:01]line Чек 367 22.10.2024 19:41 [19:41:01]line Смена: 195 ФФД: 1.0 [19:41:01]line ЗНМ: 0300000167 [19:41:01]line РНМ: 0000000000156251 [19:41:01]line Версия ККМ: v1.0 [19:41:01]line Платежная система: O! деньги [19:41:01]line ФМ: 0000000000963346 [19:41:01]line ФД: 70419 [19:41:01]line ФПД: 110725937469374 [19:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70419&fm=110725937469374&tin=02508201610067®Number=0000000000156251&sum=250005 [19:41:02]OFD Sender: Processing packet 70419 [packets to send 18, broken 17] [19:41:02]ProducePacketName [19:41:02]name=ofd_packets/00070419 [19:41:02]written 0, free lines is 4095 [19:41:02]OFD Sender: To server: pG, [19:41:02]CommunicateWithHost lk.salyk.kg:30040 [19:41:02]ConnectInit lk.salyk.kg [19:41:02]Connected sock=11 [19:41: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 34 36 0F 01 00 00 21 3B 07 01 1F 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 CD FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 13 01 00 35 04 06 00 64 B4 64 2B 97 BE 2C A8 F4 D5 CD 62 DC 5F [19:41: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 34 36 4F 00 00 00 18 6E 47 00 ED 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 34 36 10 04 04 00 13 13 01 00 F4 03 04 00 6D A9 17 67 B6 04 01 00 00 4A 92 12 28 9C 0F 9E C5 [19:41:02]CommunicateWithHost err = 0 [19:41:02]CheckOFDResponse [19:41:02]1017 (14) - 77093643461234 [19:41:02]1041 (16) - 0000000000963346 [19:41:02]1040 (4) - 70419 [19:41:02]1012 (4) - 22.10.2024 13:32 [19:41:02]1206 (1) - 0 [19:41:02]OFD Sender: Remove packet 70419 [19:41:02]ProducePacketName [19:41:02]name=ofd_packets/00070419 [19:41:02]NVStorageDeleteData [19:41:02]Write to MH i2c: 01 00 00 FF 22 21 [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 07 00 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 0C 0D 41 [19:41:02]RasterBufferAndPrint [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]written 0, free lines is 3347 [19:41:02]MH_Cut [19:41:02]Write to MH i2c: D1 01 00 06 23 01 FB [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 01 00 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 01 00 06 23 00 FA [19:41:02]Write to MH i2c: 01 00 00 07 23 2A [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:03]OFD Sender: No OFD packet to send [19:41:03]*** Cut start [19:41:03]*** Partial cut [19:41:03]*** CUTSNS_PIN = 1 [19:41:03]*** CUTSNS_PIN = 0 [19:41:03]*** Brake cut motor [19:41:03]Read from MH i2c: 01 [19:41:03]MH_I2C_Read... [19:41:03]*** Stop cut motor [19:41:04]*** Cut end [19:41:04]Read from MH i2c: 01 07 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 FF 0F 3F [19:41:04]process_action close_receipt done [19:41:04]requested_data is exist [19:41:04]produce_requested_data [19:41:04]requested_item fm.sn is exist - process it [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 11 00 00 [19:41:04]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 17 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [19:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:04]wFMCommunicate OK [19:41:04]requested_item fd.num is exist - process it [19:41:04]SAM_PROTO_GetFieldsCounters [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 13 00 00 [19:41:04]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 62 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 62 00 09 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [19:41: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetFieldsCounters done [19:41:04]requested_item shift.num is exist - process it [19:41:04]requested_item shift.opened is exist - process it [19:41:04]req_shift_opened [19:41:04]FM_GetShiftState [19:41:04]SAM_PROTO_GetShiftState [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 13 01 00 [19:41:04]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 98 [19:41:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetShiftState done [19:41:04]FM_GetShiftState done [19:41:04]req_shift_opened done [19:41:04]requested_item shift.open_date is exist - process it [19:41:04]req_shift_open_date [19:41:04]req_shift_open_date done [19:41:04]produce_requested_data done [19:41:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70419,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:41:04]process_action_free close_receipt [19:41:04]json_value_free [19:41:04]json_value_free done [19:41:04]process_json_proto returns [19:41:04]Send response to host [19:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70419,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:41:04]free response buf [19:41:04]execute_script done [19:41:04]execute_script returns [19:41:04]free content buf [19:41:04]Sock 9.Close socket [19:41:04]Sock 9.Thread stoped [19:41:04]accept exits with 7 [19:41:04]New connection [19:41:04]New thread 3066555748 created [19:41:04]Thread 3066699108 joined [19:41:04]Waiting for new connection... [19:41:04] Sock 7.Parse request [19:41:04]Sock 7.Check first char [19:41:04]Sock 7.First char is OK [19:41:04]request: POST /json_proto HTTP/1.0 [19:41:04]Method: POST [19:41:04]URL: /json_proto [19:41:04]Method is POST - this is cgi request [19:41:04]url: /json_proto [19:41:04]query_string will be loaded in cgi processing [19:41:04]execute_cgi json_proto POST (null) [19:41:04]execute_cgi path=json_proto method=POST [19:41:04]POST find Content-Length [19:41:04]Host: 172.17.50.3:8080 [19:41:04]Content-Length: 980 [19:41:04]Content-Type: application/json [19:41:04] [19:41:04]POST finish read [19:41:04]Found Content-Length = 980 [19:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:04]execute_script... [19:41: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)2886185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 101.330, "sum" : 7620.02, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 101.33 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 7620.00, "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:04]POST & json_proto [19:41:04]process_json_proto [19:41:04]json parsed OK: [19:41:04]protocol is kg_v1.0 [19:41:04]action value=close_receipt [19:41:04]process_action close_receipt [19:41:04]cmd_close_receipt [19:41:04]MH_GetDate [19:41:04]Write to MH i2c: F0 00 00 0B 23 1D [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 09 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 09 00 0B 23 00 D1 FF 17 67 6B 98 1E 66 FB [19:41:04]GetLastDocTimeStamp 1729626061 [19:41:04]current date 1729626065 [19:41:04]FM_GetShiftState [19:41:04]SAM_PROTO_GetShiftState [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 13 01 00 [19:41:04]Write to MH i2c: E2 08 00 0C 23 80 13 01 00 00 00 00 00 AC [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 0C 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9A [19:41:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetShiftState done [19:41:04]FM_GetShiftState done [19:41:04]opened in 1729555832 [19:41:04]opened+sec_in_day 1729642232 [19:41:04]quantity*price = 762001 [19:41:04]sum+1 = 762003 [19:41:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 7620.00 Внесено: 7620.00 СДАЧА: 0.00 НСП 1% : 67.43 НДС 12% : 809.21 Наличными: 7620.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 368 22.10.2024 19:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 101.33 сом ФМ: 0000000000963346 ФД: 70420 ФПД: 170482681718247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70420&fm=170482681718247&tin=02508201610067®Number=0000000000156251&sum=762000 [19:41:06]StoreToDocumentArchive [19:41:06]shift 195 fd 70420 [19:41:06]save to /storage/0195/doc_00070420 [19:41:06]save last doc name /storage/0195/doc_00070420 to /storage/kkm_last_doc_name [19:41:06]save OK [19:41:06]Clear old archive folders... [19:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:41:06]tlvbuf is 00F15F50 [19:41:06]SAM_PROTO_ClearQueue [19:41:06]wFMCommunicate request_size=4 [19:41:06]MH_SAM_APDU [19:41:06]CAPDU: 80 09 00 00 [19:41:06]Write to MH i2c: E2 08 00 19 23 80 09 00 00 00 00 00 00 AE [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [19:41:06]RAPDU: 90 00 [19:41:06]wFMCommunicate OK [19:41:06]SAM_PROTO_ClearQueue done [19:41:06]KKMCreateOFDPacket [19:41:06]OFDProtocolAddRootSTLVToBuf [19:41:06]FM_MakeSignedData [19:41:06]FM_MakeSignedData [19:41:06]SAM_PROTO_SignData [19:41:06]wFMCommunicate request_size=4 [19:41:06]MH_SAM_APDU [19:41:06]CAPDU: 80 0D 01 02 [19:41:06]Write to MH i2c: E2 08 00 1A 23 80 0D 01 02 00 00 00 00 B6 [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [19:41:06]RAPDU: 90 00 [19:41:06]wFMCommunicate OK [19:41:06]wFMCommunicate request_size=255 [19:41:06]MH_SAM_APDU [19:41: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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 D1 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 13 01 00 35 04 06 00 9B 0D 97 AF [19:41:06]Write to MH i2c: E2 02 01 1B 23 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 D1 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 13 01 00 35 04 06 00 9B 0D 97 AF 00 00 FA [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [19:41:06]RAPDU: 90 00 [19:41:06]wFMCommunicate OK [19:41:06]wFMCommunicate request_size=7 [19:41:06]MH_SAM_APDU [19:41:06]CAPDU: 80 0D 02 02 02 25 E7 [19:41:06]Write to MH i2c: E2 0A 00 1C 23 80 0D 02 02 02 00 25 E7 00 00 C9 [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 03 00 1C 23 00 90 00 B3 [19:41:06]RAPDU: 90 00 [19:41:06]wFMCommunicate OK [19:41:06]wFMCommunicate request_size=4 [19:41:06]MH_SAM_APDU [19:41:06]CAPDU: 80 0D 03 02 [19:41:06]Write to MH i2c: E2 08 00 1D 23 80 0D 03 02 00 00 00 00 BB [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 0B 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 0B 00 1D 23 00 F4 7D 87 D9 2D FA 57 87 90 00 92 [19:41:06]RAPDU: F4 7D 87 D9 2D FA 57 87 90 00 [19:41:06]wFMCommunicate OK [19:41:06]SAM_PROTO_SignData done [19:41:06]FM_MakeSignedData done [19:41:06]CreateOFDProtocolMessage [19:41:06]wFMCommunicate request_size=4 [19:41:06]MH_SAM_APDU [19:41:06]CAPDU: 80 11 00 00 [19:41:06]Write to MH i2c: E2 08 00 1E 23 80 11 00 00 00 00 00 00 BB [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:06]Read from MH i2c: E2 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 17 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: E2 17 00 1E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [19:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:06]wFMCommunicate OK [19:41:06]CreateOFDProtocolMessage done [19:41:06]OFDSenderStorePacket 70420 [19:41:06]StoreOFDPacket docnum=70420 [19:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 26 7B 04 01 AF DA 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 D1 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 13 01 00 35 04 06 00 9B 0D 97 AF 25 E7 F4 7D 87 D9 2D FA 57 87 [19:41:06]CheckFolder [19:41:06]dirname=/storage/ofd_packets [19:41:06]CheckFolder done [19:41:06]ProducePacketName [19:41:06]name=ofd_packets/00070420 [19:41:06]NVStorageSaveData ofd_packets/00070420 [19:41:06]File name is /storage/ofd_packets/00070420 [19:41:06]Write 298 bytes [19:41:06]NVStorageSaveData done [19:41:06]OFDSenderStorePacket done [19:41:06]KKMCreateOFDPacket done [19:41:06]NVStorageSaveData kkm_last_timestamp [19:41:06]File name is /storage/kkm_last_timestamp [19:41:06]Write 4 bytes [19:41:06]NVStorageSaveData done [19:41:06]ExternCall_PrintAddStr [19:41:06]wPrintStart [19:41:06]Write to MH i2c: 01 00 00 1F 23 42 [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 FF 0F 57 [19:41:06]RasterBufferAndPrint [19:41:06]line Счет N : (1)2886185 [19:41:06]line ИНН: 02508201610067 [19:41:06]line Контрольно-Кассовый Чек [19:41:06]line ПРОДАЖА [19:41:06]line ТРК (МРК, ГНК) : 61 [19:41:06]line Товар: 2710194210 [19:41:06]line ДТ-К-5 [19:41:06]line 101.330 * 75.20 [19:41:06]line = 7620.02 [19:41:06]line НДС 12% НСП 1% [19:41:06]line > о реализуемом товаре [19:41:06]line ОКРУГЛЕНИЕ: -0.02 [19:41:06]line ИТОГО: 7620.00 [19:41:06]line Внесено: 7620.00 [19:41:06]line СДАЧА: 0.00 [19:41:06]line НСП 1% : 67.43 [19:41:06]line НДС 12% : 809.21 [19:41:06]line Наличными: 7620.00 [19:41:06]line Безнал.: 0.00 [19:41:06]line Место: АЗС № 85 "Партнер Нефть" [19:41:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:41:06]line СНО: Общий режим [19:41:06]line Чек 368 22.10.2024 19:41 [19:41:06]line Смена: 195 ФФД: 1.0 [19:41:06]line ЗНМ: 0300000167 [19:41:06]line РНМ: 0000000000156251 [19:41:06]line Версия ККМ: v1.0 [19:41:06]line [19:41:06]line Дисконтная программа [19:41:06]line ДТ [19:41:06]line номер 85 [19:41:06]line сэкономлено 101.33 сом [19:41:06]line ФМ: 0000000000963346 [19:41:06]line ФД: 70420 [19:41:06]line ФПД: 170482681718247 [19:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70420&fm=170482681718247&tin=02508201610067®Number=0000000000156251&sum=762000 [19:41:06]written 0, free lines is 4095 [19:41:07]OFD Sender: Processing packet 70420 [packets to send 18, broken 17] [19:41:07]ProducePacketName [19:41:07]name=ofd_packets/00070420 [19:41:07]OFD Sender: To server: pG, [19:41:07]CommunicateWithHost lk.salyk.kg:30040 [19:41:07]ConnectInit lk.salyk.kg [19:41:07]Connected sock=10 [19:41: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 34 36 0C 01 00 00 26 7B 04 01 AF DA 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 D2 8B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 92 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 D1 FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 13 01 00 35 04 06 00 9B 0D 97 AF 25 E7 F4 7D 87 D9 2D FA 57 87 [19:41: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 34 36 4F 00 00 00 22 9E 47 00 B6 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 34 36 10 04 04 00 14 13 01 00 F4 03 04 00 71 A9 17 67 B6 04 01 00 00 AE 69 F6 67 05 F1 C5 74 [19:41:07]CommunicateWithHost err = 0 [19:41:07]CheckOFDResponse [19:41:07]1017 (14) - 77093643461234 [19:41:07]1041 (16) - 0000000000963346 [19:41:07]1040 (4) - 70420 [19:41:07]1012 (4) - 22.10.2024 13:32 [19:41:07]1206 (1) - 0 [19:41:07]OFD Sender: Remove packet 70420 [19:41:07]ProducePacketName [19:41:07]name=ofd_packets/00070420 [19:41:07]NVStorageDeleteData [19:41:07]Write to MH i2c: 01 00 00 4F 23 72 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: 01 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: 01 07 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: 01 07 00 4F 23 00 00 00 00 00 A7 0C 2C [19:41:07]RasterBufferAndPrint [19:41:07]line [19:41:07]line [19:41:07]line [19:41:07]line [19:41:07]line [19:41:07]written 0, free lines is 3254 [19:41:07]MH_Cut [19:41:07]Write to MH i2c: D1 01 00 56 23 01 4B [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: D1 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: D1 01 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: D1 01 00 56 23 00 4A [19:41:07]Write to MH i2c: 01 00 00 57 23 7A [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]OFD Sender: No OFD packet to send [19:41:08]*** Cut start [19:41:08]*** Partial cut [19:41:08]*** CUTSNS_PIN = 1 [19:41:08]*** CUTSNS_PIN = 0 [19:41:08]*** Brake cut motor [19:41:08]Read from MH i2c: 01 [19:41:08]MH_I2C_Read... [19:41:08]*** Stop cut motor [19:41:08]*** Cut end [19:41:08]Read from MH i2c: 01 07 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: 01 07 00 57 23 00 00 00 00 00 FF 0F 8F [19:41:08]process_action close_receipt done [19:41:08]requested_data is exist [19:41:08]produce_requested_data [19:41:08]requested_item fm.sn is exist - process it [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 11 00 00 [19:41:08]Write to MH i2c: E2 08 00 58 23 80 11 00 00 00 00 00 00 F5 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 17 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 17 00 58 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [19:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:08]wFMCommunicate OK [19:41:08]requested_item fd.num is exist - process it [19:41:08]SAM_PROTO_GetFieldsCounters [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 13 00 00 [19:41:08]Write to MH i2c: E2 08 00 59 23 80 13 00 00 00 00 00 00 F8 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:09]Read from MH i2c: E2 62 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 62 00 59 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [19:41: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_GetFieldsCounters done [19:41:09]requested_item shift.num is exist - process it [19:41:09]requested_item shift.opened is exist - process it [19:41:09]req_shift_opened [19:41:09]FM_GetShiftState [19:41:09]SAM_PROTO_GetShiftState [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 13 01 00 [19:41:09]Write to MH i2c: E2 08 00 5A 23 80 13 01 00 00 00 00 00 FA [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0E 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0E 00 5A 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E8 [19:41:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_GetShiftState done [19:41:09]FM_GetShiftState done [19:41:09]req_shift_opened done [19:41:09]requested_item shift.open_date is exist - process it [19:41:09]req_shift_open_date [19:41:09]req_shift_open_date done [19:41:09]produce_requested_data done [19:41:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70420,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:41:09]process_action_free close_receipt [19:41:09]json_value_free [19:41:09]json_value_free done [19:41:09]process_json_proto returns [19:41:09]Send response to host [19:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70420,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:41:09]free response buf [19:41:09]execute_script done [19:41:09]execute_script returns [19:41:09]free content buf [19:41:09]Sock 7.Close socket [19:41:09]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:49]accept exits with 9 [19:41:49]New connection [19:41:49]New thread 3066699108 created [19:41:49]Thread 3066555748 joined [19:41:49]Waiting for new connection... [19:41:49] Sock 9.Parse request [19:41:49]Sock 9.Check first char [19:41:49]Sock 9.First char is OK [19:41:49]request: POST /json_proto HTTP/1.0 [19:41:49]Method: POST [19:41:49]URL: /json_proto [19:41:49]Method is POST - this is cgi request [19:41:49]url: /json_proto [19:41:49]query_string will be loaded in cgi processing [19:41:49]execute_cgi json_proto POST (null) [19:41:49]execute_cgi path=json_proto method=POST [19:41:49]POST find Content-Length [19:41:49]Host: 172.17.50.3:8080 [19:41:49]Content-Length: 754 [19:41:49]Content-Type: application/json [19:41:49] [19:41:49]POST finish read [19:41:49]Found Content-Length = 754 [19:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.080, "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:49]execute_script... [19:41: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)2886189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.080, "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:49]POST & json_proto [19:41:49]process_json_proto [19:41:49]json parsed OK: [19:41:49]protocol is kg_v1.0 [19:41:49]action value=close_receipt [19:41:49]process_action close_receipt [19:41:49]cmd_close_receipt [19:41:49]MH_GetDate [19:41:49]Write to MH i2c: F0 00 00 5B 23 6D [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 09 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 09 00 5B 23 00 FE FF 17 67 6B 98 1E 66 78 [19:41:49]GetLastDocTimeStamp 1729626065 [19:41:49]current date 1729626110 [19:41:49]FM_GetShiftState [19:41:49]SAM_PROTO_GetShiftState [19:41:49]wFMCommunicate request_size=4 [19:41:49]MH_SAM_APDU [19:41:49]CAPDU: 80 13 01 00 [19:41:49]Write to MH i2c: E2 08 00 5C 23 80 13 01 00 00 00 00 00 FC [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:49]Read from MH i2c: E2 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 5C 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EA [19:41:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:49]wFMCommunicate OK [19:41:49]SAM_PROTO_GetShiftState done [19:41:49]FM_GetShiftState done [19:41:49]opened in 1729555832 [19:41:49]opened+sec_in_day 1729642232 [19:41:49]quantity*price = 0 [19:41:49]sum+1 = 1 [19:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 369 22.10.2024 19:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70421 ФПД: 62038364952107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70421&fm=62038364952107&tin=02508201610067®Number=0000000000156251&sum=0 [19:41:50]StoreToDocumentArchive [19:41:50]shift 195 fd 70421 [19:41:50]save to /storage/0195/doc_00070421 [19:41:50]save last doc name /storage/0195/doc_00070421 to /storage/kkm_last_doc_name [19:41:50]save OK [19:41:50]Clear old archive folders... [19:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:50]tlvbuf is B6D6A340 [19:41:50]SAM_PROTO_ClearQueue [19:41:50]wFMCommunicate request_size=4 [19:41:50]MH_SAM_APDU [19:41:50]CAPDU: 80 09 00 00 [19:41:50]Write to MH i2c: E2 08 00 69 23 80 09 00 00 00 00 00 00 FE [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:50]Read from MH i2c: E2 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 69 23 00 90 00 00 [19:41:50]RAPDU: 90 00 [19:41:50]wFMCommunicate OK [19:41:50]SAM_PROTO_ClearQueue done [19:41:50]KKMCreateOFDPacket [19:41:50]OFDProtocolAddRootSTLVToBuf [19:41:50]FM_MakeSignedData [19:41:50]FM_MakeSignedData [19:41:50]SAM_PROTO_SignData [19:41:50]wFMCommunicate request_size=4 [19:41:50]MH_SAM_APDU [19:41:50]CAPDU: 80 0D 01 02 [19:41:50]Write to MH i2c: E2 08 00 6A 23 80 0D 01 02 00 00 00 00 06 [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:50]Read from MH i2c: E2 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [19:41:50]RAPDU: 90 00 [19:41:50]wFMCommunicate OK [19:41:50]wFMCommunicate request_size=255 [19:41:50]MH_SAM_APDU [19:41: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 D8 13 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 71 01 00 00 F4 03 04 00 FE FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 13 01 00 35 04 06 00 38 [19:41:50]Write to MH i2c: E2 02 01 6B 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 D8 13 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 71 01 00 00 F4 03 04 00 FE FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 13 01 00 35 04 06 00 38 00 00 06 [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [19:41:51]RAPDU: 90 00 [19:41:51]wFMCommunicate OK [19:41:51]wFMCommunicate request_size=10 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 0D 02 02 05 6C 6E B4 96 2B [19:41:51]Write to MH i2c: E2 0D 00 6C 23 80 0D 02 02 05 00 6C 6E B4 96 2B 00 00 62 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [19:41:51]RAPDU: 90 00 [19:41:51]wFMCommunicate OK [19:41:51]wFMCommunicate request_size=4 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 0D 03 02 [19:41:51]Write to MH i2c: E2 08 00 6D 23 80 0D 03 02 00 00 00 00 0B [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 0B 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 0B 00 6D 23 00 4E C6 C4 01 50 7F D8 C0 90 00 4C [19:41:51]RAPDU: 4E C6 C4 01 50 7F D8 C0 90 00 [19:41:51]wFMCommunicate OK [19:41:51]SAM_PROTO_SignData done [19:41:51]FM_MakeSignedData done [19:41:51]CreateOFDProtocolMessage [19:41:51]wFMCommunicate request_size=4 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 11 00 00 [19:41:51]Write to MH i2c: E2 08 00 6E 23 80 11 00 00 00 00 00 00 0B [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 17 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 17 00 6E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [19:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:51]wFMCommunicate OK [19:41:51]CreateOFDProtocolMessage done [19:41:51]OFDSenderStorePacket 70421 [19:41:51]StoreOFDPacket docnum=70421 [19:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 41 49 07 01 3E 01 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 D8 13 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 71 01 00 00 F4 03 04 00 FE FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 13 01 00 35 04 06 00 38 6C 6E B4 96 2B 4E C6 C4 01 50 7F D8 C0 [19:41:51]CheckFolder [19:41:51]dirname=/storage/ofd_packets [19:41:51]CheckFolder done [19:41:51]ProducePacketName [19:41:51]name=ofd_packets/00070421 [19:41:51]NVStorageSaveData ofd_packets/00070421 [19:41:51]File name is /storage/ofd_packets/00070421 [19:41:51]Write 301 bytes [19:41:51]NVStorageSaveData done [19:41:51]OFDSenderStorePacket done [19:41:51]KKMCreateOFDPacket done [19:41:51]NVStorageSaveData kkm_last_timestamp [19:41:51]File name is /storage/kkm_last_timestamp [19:41:51]Write 4 bytes [19:41:51]NVStorageSaveData done [19:41:51]ExternCall_PrintAddStr [19:41:51]wPrintStart [19:41:51]Write to MH i2c: 01 00 00 6F 23 92 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 6F 23 00 00 00 00 00 FF 0F A7 [19:41:51]RasterBufferAndPrint [19:41:51]line Счет N : (1)2886189 [19:41:51]line ИНН: 02508201610067 [19:41:51]line Контрольно-Кассовый Чек [19:41:51]line ПРОДАЖА [19:41:51]line ТРК (МРК, ГНК) : 12 [19:41:51]line Товар: 2710124130 [19:41:51]line Аи-92-К-5 [19:41:51]line 5.080 * 0.00 [19:41:51]line = 0.00 [19:41:51]line НДС 12% НСП 1% [19:41:51]line > о реализуемом товаре [19:41:51]line ИТОГО: 0.00 [19:41:51]line НСП 1% : 0.00 [19:41:51]line НДС 12% : 0.00 [19:41:51]line Наличными: 0.00 [19:41:51]line Безнал.: 0.00 [19:41:51]line Место: АЗС № 85 "Партнер Нефть" [19:41:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:41:51]line СНО: Общий режим [19:41:51]line Чек 369 22.10.2024 19:41 [19:41:51]line Смена: 195 ФФД: 1.0 [19:41:51]line ЗНМ: 0300000167 [19:41:51]line РНМ: 0000000000156251 [19:41:51]line Версия ККМ: v1.0 [19:41:51]line Талоны: ТК ГПНА Online [19:41:51]line 30100970 [19:41:51]line ФМ: 0000000000963346 [19:41:51]line ФД: 70421 [19:41:51]line ФПД: 62038364952107 [19:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70421&fm=62038364952107&tin=02508201610067®Number=0000000000156251&sum=0 [19:41:51]OFD Sender: Processing packet 70421 [packets to send 18, broken 17] [19:41:51]ProducePacketName [19:41:51]name=ofd_packets/00070421 [19:41:51]OFD Sender: To server: pG, [19:41:51]CommunicateWithHost lk.salyk.kg:30040 [19:41:51]ConnectInit lk.salyk.kg [19:41:51]written 0, free lines is 4095 [19:41:51]Connected sock=10 [19:41: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 34 36 0F 01 00 00 41 49 07 01 3E 01 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 D8 13 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 71 01 00 00 F4 03 04 00 FE FF 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 13 01 00 35 04 06 00 38 6C 6E B4 96 2B 4E C6 C4 01 50 7F D8 C0 [19:41: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 34 36 4F 00 00 00 5E 3A 47 00 0C 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 34 36 10 04 04 00 15 13 01 00 F4 03 04 00 9E A9 17 67 B6 04 01 00 00 6C 4A 44 78 9D 8A B4 2E [19:41:51]CommunicateWithHost err = 0 [19:41:51]CheckOFDResponse [19:41:51]1017 (14) - 77093643461234 [19:41:51]1041 (16) - 0000000000963346 [19:41:51]1040 (4) - 70421 [19:41:51]1012 (4) - 22.10.2024 13:33 [19:41:51]1206 (1) - 0 [19:41:51]OFD Sender: Remove packet 70421 [19:41:51]ProducePacketName [19:41:51]name=ofd_packets/00070421 [19:41:51]NVStorageDeleteData [19:41:52]Write to MH i2c: 01 00 00 99 23 BC [19:41:52]Write i2c OK [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: 01 [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: 01 07 00 [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: 01 07 00 99 23 00 00 00 00 00 04 0D D4 [19:41:52]RasterBufferAndPrint [19:41:52]line [19:41:52]line [19:41:52]line [19:41:52]line [19:41:52]line [19:41:52]written 0, free lines is 3339 [19:41:52]MH_Cut [19:41:52]Write to MH i2c: D1 01 00 A0 23 01 95 [19:41:52]Write i2c OK [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: D1 [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: D1 01 00 [19:41:52]MH_I2C_Read... [19:41:52]Read from MH i2c: D1 01 00 A0 23 00 94 [19:41:52]Write to MH i2c: 01 00 00 A1 23 C4 [19:41:52]Write i2c OK [19:41:52]MH_I2C_Read... [19:41:52]OFD Sender: No OFD packet to send [19:41:52]*** Cut start [19:41:52]*** Partial cut [19:41:52]*** CUTSNS_PIN = 1 [19:41:52]*** CUTSNS_PIN = 0 [19:41:52]*** Brake cut motor [19:41:53]Read from MH i2c: 01 [19:41:53]MH_I2C_Read... [19:41:53]*** Stop cut motor [19:41:53]*** Cut end [19:41:53]Read from MH i2c: 01 07 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: 01 07 00 A1 23 00 00 00 00 00 FF 0F D9 [19:41:53]process_action close_receipt done [19:41:53]requested_data is exist [19:41:53]produce_requested_data [19:41:53]requested_item fm.sn is exist - process it [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 11 00 00 [19:41:53]Write to MH i2c: E2 08 00 A2 23 80 11 00 00 00 00 00 00 3F [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 17 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 17 00 A2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [19:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:53]wFMCommunicate OK [19:41:53]requested_item fd.num is exist - process it [19:41:53]SAM_PROTO_GetFieldsCounters [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 13 00 00 [19:41:53]Write to MH i2c: E2 08 00 A3 23 80 13 00 00 00 00 00 00 42 [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 62 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 62 00 A3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:41: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:53]wFMCommunicate OK [19:41:53]SAM_PROTO_GetFieldsCounters done [19:41:53]requested_item shift.num is exist - process it [19:41:53]requested_item shift.opened is exist - process it [19:41:53]req_shift_opened [19:41:53]FM_GetShiftState [19:41:53]SAM_PROTO_GetShiftState [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 13 01 00 [19:41:53]Write to MH i2c: E2 08 00 A4 23 80 13 01 00 00 00 00 00 44 [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 0E 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 0E 00 A4 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 32 [19:41:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:53]wFMCommunicate OK [19:41:53]SAM_PROTO_GetShiftState done [19:41:53]FM_GetShiftState done [19:41:53]req_shift_opened done [19:41:53]requested_item shift.open_date is exist - process it [19:41:53]req_shift_open_date [19:41:53]req_shift_open_date done [19:41:53]produce_requested_data done [19:41:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70421,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:41:53]process_action_free close_receipt [19:41:53]json_value_free [19:41:53]json_value_free done [19:41:53]process_json_proto returns [19:41:53]Send response to host [19:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70421,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:41:53]free response buf [19:41:53]execute_script done [19:41:53]execute_script returns [19:41:53]free content buf [19:41:53]Sock 9.Close socket [19:41:53]Sock 9.Thread stoped [19:41:53]accept exits with 7 [19:41:53]New connection [19:41:53]New thread 3066555748 created [19:41:53]Thread 3066699108 joined [19:41:53]Waiting for new connection... [19:41:53] Sock 7.Parse request [19:41:53]Sock 7.Check first char [19:41:53]Sock 7.First char is OK [19:41:53]request: POST /json_proto HTTP/1.0 [19:41:53]Method: POST [19:41:53]URL: /json_proto [19:41:53]Method is POST - this is cgi request [19:41:53]url: /json_proto [19:41:53]query_string will be loaded in cgi processing [19:41:53]execute_cgi json_proto POST (null) [19:41:53]execute_cgi path=json_proto method=POST [19:41:53]POST find Content-Length [19:41:53]Host: 172.17.50.3:8080 [19:41:53]Content-Length: 776 [19:41:53]Content-Type: application/json [19:41:53] [19:41:53]POST finish read [19:41:53]Found Content-Length = 776 [19:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:53]execute_script... [19:41: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)2886187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:53]POST & json_proto [19:41:53]process_json_proto [19:41:53]json parsed OK: [19:41:53]protocol is kg_v1.0 [19:41:53]action value=close_receipt [19:41:53]process_action close_receipt [19:41:53]cmd_close_receipt [19:41:53]MH_GetDate [19:41:53]Write to MH i2c: F0 00 00 A5 23 B7 [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: F0 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: F0 09 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: F0 09 00 A5 23 00 02 00 18 67 6B 98 1E 66 C8 [19:41:53]GetLastDocTimeStamp 1729626110 [19:41:53]current date 1729626114 [19:41:53]FM_GetShiftState [19:41:53]SAM_PROTO_GetShiftState [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 13 01 00 [19:41:53]Write to MH i2c: E2 08 00 A6 23 80 13 01 00 00 00 00 00 46 [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:54]Read from MH i2c: E2 [19:41:54]MH_I2C_Read... [19:41:54]Read from MH i2c: E2 0E 00 [19:41:54]MH_I2C_Read... [19:41:54]Read from MH i2c: E2 0E 00 A6 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 34 [19:41:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:54]wFMCommunicate OK [19:41:54]SAM_PROTO_GetShiftState done [19:41:54]FM_GetShiftState done [19:41:54]opened in 1729555832 [19:41:54]opened+sec_in_day 1729642232 [19:41:54]quantity*price = 150076 [19:41:54]sum+1 = 150078 [19:41:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 370 22.10.2024 19:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70422 ФПД: 200007336591765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70422&fm=200007336591765&tin=02508201610067®Number=0000000000156251&sum=150077 [19:41:55]StoreToDocumentArchive [19:41:55]shift 195 fd 70422 [19:41:55]save to /storage/0195/doc_00070422 [19:41:55]save last doc name /storage/0195/doc_00070422 to /storage/kkm_last_doc_name [19:41:55]save OK [19:41:55]Clear old archive folders... [19:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:41:55]tlvbuf is 00B2AE30 [19:41:55]SAM_PROTO_ClearQueue [19:41:55]wFMCommunicate request_size=4 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 09 00 00 [19:41:55]Write to MH i2c: E2 08 00 B3 23 80 09 00 00 00 00 00 00 48 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 B3 23 00 90 00 4A [19:41:55]RAPDU: 90 00 [19:41:55]wFMCommunicate OK [19:41:55]SAM_PROTO_ClearQueue done [19:41:55]KKMCreateOFDPacket [19:41:55]OFDProtocolAddRootSTLVToBuf [19:41:55]FM_MakeSignedData [19:41:55]FM_MakeSignedData [19:41:55]SAM_PROTO_SignData [19:41:55]wFMCommunicate request_size=4 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 0D 01 02 [19:41:55]Write to MH i2c: E2 08 00 B4 23 80 0D 01 02 00 00 00 00 50 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 B4 23 00 90 00 4B [19:41:55]RAPDU: 90 00 [19:41:55]wFMCommunicate OK [19:41:55]wFMCommunicate request_size=255 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 03 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 13 01 [19:41:55]Write to MH i2c: E2 02 01 B5 23 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 03 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 13 01 00 00 72 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [19:41:55]RAPDU: 90 00 [19:41:55]wFMCommunicate OK [19:41:55]wFMCommunicate request_size=16 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B5 E7 D6 40 01 95 [19:41:55]Write to MH i2c: E2 13 00 B6 23 80 0D 02 02 0B 00 00 35 04 06 00 B5 E7 D6 40 01 95 00 00 F0 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [19:41:55]RAPDU: 90 00 [19:41:55]wFMCommunicate OK [19:41:55]wFMCommunicate request_size=4 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 0D 03 02 [19:41:55]Write to MH i2c: E2 08 00 B7 23 80 0D 03 02 00 00 00 00 55 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 0B 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 0B 00 B7 23 00 9E 01 A7 9F 17 61 D0 B3 90 00 36 [19:41:55]RAPDU: 9E 01 A7 9F 17 61 D0 B3 90 00 [19:41:55]wFMCommunicate OK [19:41:55]SAM_PROTO_SignData done [19:41:55]FM_MakeSignedData done [19:41:55]CreateOFDProtocolMessage [19:41:55]wFMCommunicate request_size=4 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 11 00 00 [19:41:55]Write to MH i2c: E2 08 00 B8 23 80 11 00 00 00 00 00 00 55 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 17 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 17 00 B8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [19:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:56]wFMCommunicate OK [19:41:56]CreateOFDProtocolMessage done [19:41:56]OFDSenderStorePacket 70422 [19:41:56]StoreOFDPacket docnum=70422 [19:41:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3E C2 0D 01 5C A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 03 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 13 01 00 35 04 06 00 B5 E7 D6 40 01 95 9E 01 A7 9F 17 61 D0 B3 [19:41:56]CheckFolder [19:41:56]dirname=/storage/ofd_packets [19:41:56]CheckFolder done [19:41:56]ProducePacketName [19:41:56]name=ofd_packets/00070422 [19:41:56]NVStorageSaveData ofd_packets/00070422 [19:41:56]File name is /storage/ofd_packets/00070422 [19:41:56]Write 307 bytes [19:41:56]NVStorageSaveData done [19:41:56]OFDSenderStorePacket done [19:41:56]KKMCreateOFDPacket done [19:41:56]NVStorageSaveData kkm_last_timestamp [19:41:56]File name is /storage/kkm_last_timestamp [19:41:56]Write 4 bytes [19:41:56]NVStorageSaveData done [19:41:56]ExternCall_PrintAddStr [19:41:56]wPrintStart [19:41:56]Write to MH i2c: 01 00 00 B9 23 DC [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 07 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 07 00 B9 23 00 00 00 00 00 FF 0F F1 [19:41:56]RasterBufferAndPrint [19:41:56]line Счет N : (1)2886187 [19:41:56]line ИНН: 02508201610067 [19:41:56]line Контрольно-Кассовый Чек [19:41:56]line ПРОДАЖА [19:41:56]line ТРК (МРК, ГНК) : 41 [19:41:56]line Товар: 2710194240 [19:41:56]line D-ENERGY Дт-К-2 [19:41:56]line 19.440 * 77.20 [19:41:56]line = 1500.77 [19:41:56]line НДС 12% НСП 1% [19:41:56]line > о реализуемом товаре [19:41:56]line ИТОГО: 1500.77 [19:41:56]line НСП 1% : 13.28 [19:41:56]line НДС 12% : 159.37 [19:41:56]line Наличными: 0.00 [19:41:56]line Безнал.: 1500.77 [19:41:56]line Место: АЗС № 85 "Партнер Нефть" [19:41:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:41:56]line СНО: Общий режим [19:41:56]line Чек 370 22.10.2024 19:41 [19:41:56]line Смена: 195 ФФД: 1.0 [19:41:56]line ЗНМ: 0300000167 [19:41:56]line РНМ: 0000000000156251 [19:41:56]line Версия ККМ: v1.0 [19:41:56]line Платежная система: Mbank [19:41:56]line ФМ: 0000000000963346 [19:41:56]line ФД: 70422 [19:41:56]line ФПД: 200007336591765 [19:41:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70422&fm=200007336591765&tin=02508201610067®Number=0000000000156251&sum=150077 [19:41:56]OFD Sender: Processing packet 70422 [packets to send 18, broken 17] [19:41:56]ProducePacketName [19:41:56]name=ofd_packets/00070422 [19:41:56]OFD Sender: To server: pG, [19:41:56]CommunicateWithHost lk.salyk.kg:30040 [19:41:56]ConnectInit lk.salyk.kg [19:41:56]written 0, free lines is 4095 [19:41:56]Connected sock=10 [19: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 34 36 15 01 00 00 3E C2 0D 01 5C A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 03 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 13 01 00 35 04 06 00 B5 E7 D6 40 01 95 9E 01 A7 9F 17 61 D0 B3 [19: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 34 36 4F 00 00 00 EF F6 47 00 90 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 34 36 10 04 04 00 16 13 01 00 F4 03 04 00 A3 A9 17 67 B6 04 01 00 00 A9 2B 87 1D 2D 7C DE 91 [19:41:56]CommunicateWithHost err = 0 [19:41:56]CheckOFDResponse [19:41:56]1017 (14) - 77093643461234 [19:41:56]1041 (16) - 0000000000963346 [19:41:56]1040 (4) - 70422 [19:41:56]1012 (4) - 22.10.2024 13:33 [19:41:56]1206 (1) - 0 [19:41:56]OFD Sender: Remove packet 70422 [19:41:56]ProducePacketName [19:41:56]name=ofd_packets/00070422 [19:41:56]NVStorageDeleteData [19:41:56]Write to MH i2c: 01 00 00 E2 23 05 [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 07 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: 01 07 00 E2 23 00 00 00 00 00 1B 0D 34 [19:41:56]RasterBufferAndPrint [19:41:56]line [19:41:56]line [19:41:56]line [19:41:56]line [19:41:56]line [19:41:56]written 0, free lines is 3367 [19:41:56]MH_Cut [19:41:56]Write to MH i2c: D1 01 00 E9 23 01 DE [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: D1 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: D1 01 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: D1 01 00 E9 23 00 DD [19:41:56]Write to MH i2c: 01 00 00 EA 23 0D [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:57]OFD Sender: No OFD packet to send [19:41:57]*** Cut start [19:41:57]*** Partial cut [19:41:57]*** CUTSNS_PIN = 1 [19:41:57]*** CUTSNS_PIN = 0 [19:41:57]*** Brake cut motor [19:41:58]Read from MH i2c: 01 [19:41:58]MH_I2C_Read... [19:41:58]*** Stop cut motor [19:41:58]*** Cut end [19:41:58]Read from MH i2c: 01 07 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: 01 07 00 EA 23 00 00 00 00 00 FF 0F 22 [19:41:58]process_action close_receipt done [19:41:58]requested_data is exist [19:41:58]produce_requested_data [19:41:58]requested_item fm.sn is exist - process it [19:41:58]wFMCommunicate request_size=4 [19:41:58]MH_SAM_APDU [19:41:58]CAPDU: 80 11 00 00 [19:41:58]Write to MH i2c: E2 08 00 EB 23 80 11 00 00 00 00 00 00 88 [19:41:58]Write i2c OK [19:41:58]MH_I2C_Read... [19:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:58]Read from MH i2c: E2 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 17 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 17 00 EB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [19:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:41:58]wFMCommunicate OK [19:41:58]requested_item fd.num is exist - process it [19:41:58]SAM_PROTO_GetFieldsCounters [19:41:58]wFMCommunicate request_size=4 [19:41:58]MH_SAM_APDU [19:41:58]CAPDU: 80 13 00 00 [19:41:58]Write to MH i2c: E2 08 00 EC 23 80 13 00 00 00 00 00 00 8B [19:41:58]Write i2c OK [19:41:58]MH_I2C_Read... [19:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:58]Read from MH i2c: E2 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 62 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 62 00 EC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:58]wFMCommunicate OK [19:41:58]SAM_PROTO_GetFieldsCounters done [19:41:58]requested_item shift.num is exist - process it [19:41:58]requested_item shift.opened is exist - process it [19:41:58]req_shift_opened [19:41:58]FM_GetShiftState [19:41:58]SAM_PROTO_GetShiftState [19:41:58]wFMCommunicate request_size=4 [19:41:58]MH_SAM_APDU [19:41:58]CAPDU: 80 13 01 00 [19:41:58]Write to MH i2c: E2 08 00 ED 23 80 13 01 00 00 00 00 00 8D [19:41:58]Write i2c OK [19:41:58]MH_I2C_Read... [19:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:58]Read from MH i2c: E2 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 0E 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 0E 00 ED 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7B [19:41:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:41:58]wFMCommunicate OK [19:41:58]SAM_PROTO_GetShiftState done [19:41:58]FM_GetShiftState done [19:41:58]req_shift_opened done [19:41:58]requested_item shift.open_date is exist - process it [19:41:58]req_shift_open_date [19:41:58]req_shift_open_date done [19:41:58]produce_requested_data done [19:41:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70422,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:41:58]process_action_free close_receipt [19:41:58]json_value_free [19:41:58]json_value_free done [19:41:58]process_json_proto returns [19:41:58]Send response to host [19:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70422,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:41:58]free response buf [19:41:58]execute_script done [19:41:58]execute_script returns [19:41:58]free content buf [19:41:58]Sock 7.Close socket [19:41:58]Sock 7.Thread stoped [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:15]accept exits with 9 [19:43:15]New connection [19:43:15]New thread 3066699108 created [19:43:15]Thread 3066555748 joined [19:43:15]Waiting for new connection... [19:43:15] Sock 9.Parse request [19:43:15]Sock 9.Check first char [19:43:15]Sock 9.First char is OK [19:43:15]request: POST /json_proto HTTP/1.0 [19:43:15]Method: POST [19:43:15]URL: /json_proto [19:43:15]Method is POST - this is cgi request [19:43:15]url: /json_proto [19:43:15]query_string will be loaded in cgi processing [19:43:15]execute_cgi json_proto POST (null) [19:43:15]execute_cgi path=json_proto method=POST [19:43:15]POST find Content-Length [19:43:15]Host: 172.17.50.3:8080 [19:43:15]Content-Length: 678 [19:43:15]Content-Type: application/json [19:43:15] [19:43:15]POST finish read [19:43:15]Found Content-Length = 678 [19:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:43:15]execute_script... [19:43: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)2886192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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:43:15]POST & json_proto [19:43:15]process_json_proto [19:43:15]json parsed OK: [19:43:15]protocol is kg_v1.0 [19:43:15]action value=close_receipt [19:43:15]process_action close_receipt [19:43:15]cmd_close_receipt [19:43:15]MH_GetDate [19:43:15]Write to MH i2c: F0 00 00 EE 23 00 [19:43:15]Write i2c OK [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: F0 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: F0 09 00 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: F0 09 00 EE 23 00 53 00 18 67 6B 98 1E 66 62 [19:43:15]GetLastDocTimeStamp 1729626115 [19:43:15]current date 1729626195 [19:43:15]FM_GetShiftState [19:43:15]SAM_PROTO_GetShiftState [19:43:15]wFMCommunicate request_size=4 [19:43:15]MH_SAM_APDU [19:43:15]CAPDU: 80 13 01 00 [19:43:15]Write to MH i2c: E2 08 00 EF 23 80 13 01 00 00 00 00 00 8F [19:43:15]Write i2c OK [19:43:15]MH_I2C_Read... [19:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:15]Read from MH i2c: E2 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 0E 00 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 0E 00 EF 23 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7D [19:43:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:43:15]wFMCommunicate OK [19:43:15]SAM_PROTO_GetShiftState done [19:43:15]FM_GetShiftState done [19:43:15]opened in 1729555832 [19:43:15]opened+sec_in_day 1729642232 [19:43:15]quantity*price = 40006 [19:43:15]sum+1 = 40007 [19:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 371 22.10.2024 19:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70423 ФПД: 31369332476226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70423&fm=31369332476226&tin=02508201610067®Number=0000000000156251&sum=40000 [19:43:16]StoreToDocumentArchive [19:43:16]shift 195 fd 70423 [19:43:16]save to /storage/0195/doc_00070423 [19:43:16]save last doc name /storage/0195/doc_00070423 to /storage/kkm_last_doc_name [19:43:16]save OK [19:43:16]Clear old archive folders... [19:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:16]tlvbuf is B6F1A3C0 [19:43:16]SAM_PROTO_ClearQueue [19:43:16]wFMCommunicate request_size=4 [19:43:16]MH_SAM_APDU [19:43:16]CAPDU: 80 09 00 00 [19:43:16]Write to MH i2c: E2 08 00 FC 23 80 09 00 00 00 00 00 00 91 [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 FC 23 00 90 00 93 [19:43:16]RAPDU: 90 00 [19:43:16]wFMCommunicate OK [19:43:16]SAM_PROTO_ClearQueue done [19:43:16]KKMCreateOFDPacket [19:43:16]OFDProtocolAddRootSTLVToBuf [19:43:16]FM_MakeSignedData [19:43:16]FM_MakeSignedData [19:43:16]SAM_PROTO_SignData [19:43:16]wFMCommunicate request_size=4 [19:43:16]MH_SAM_APDU [19:43:16]CAPDU: 80 0D 01 02 [19:43:16]Write to MH i2c: E2 08 00 FD 23 80 0D 01 02 00 00 00 00 99 [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [19:43:16]RAPDU: 90 00 [19:43:16]wFMCommunicate OK [19:43:16]wFMCommunicate request_size=255 [19:43:16]MH_SAM_APDU [19:43: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 73 01 00 00 F4 03 04 00 54 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 13 01 00 35 04 06 00 1C [19:43:16]Write to MH i2c: E2 02 01 FE 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 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 73 01 00 00 F4 03 04 00 54 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 13 01 00 35 04 06 00 1C 00 00 42 [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 FE 23 00 90 00 95 [19:43:16]RAPDU: 90 00 [19:43:16]wFMCommunicate OK [19:43:16]wFMCommunicate request_size=10 [19:43:16]MH_SAM_APDU [19:43:16]CAPDU: 80 0D 02 02 05 87 BD EB 49 42 [19:43:16]Write to MH i2c: E2 0D 00 FF 23 80 0D 02 02 05 00 87 BD EB 49 42 00 00 60 [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [19:43:16]RAPDU: 90 00 [19:43:16]wFMCommunicate OK [19:43:16]wFMCommunicate request_size=4 [19:43:16]MH_SAM_APDU [19:43:16]CAPDU: 80 0D 03 02 [19:43:16]Write to MH i2c: E2 08 00 00 24 80 0D 03 02 00 00 00 00 9F [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 0B 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 0B 00 00 24 00 CD 57 AB F6 85 77 E6 12 90 00 59 [19:43:16]RAPDU: CD 57 AB F6 85 77 E6 12 90 00 [19:43:16]wFMCommunicate OK [19:43:16]SAM_PROTO_SignData done [19:43:16]FM_MakeSignedData done [19:43:16]CreateOFDProtocolMessage [19:43:16]wFMCommunicate request_size=4 [19:43:16]MH_SAM_APDU [19:43:16]CAPDU: 80 11 00 00 [19:43:16]Write to MH i2c: E2 08 00 01 24 80 11 00 00 00 00 00 00 9F [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:16]Read from MH i2c: E2 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 17 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: E2 17 00 01 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [19:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:43:16]wFMCommunicate OK [19:43:16]CreateOFDProtocolMessage done [19:43:16]OFDSenderStorePacket 70423 [19:43:16]StoreOFDPacket docnum=70423 [19:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 C1 07 01 B4 02 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 73 01 00 00 F4 03 04 00 54 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 13 01 00 35 04 06 00 1C 87 BD EB 49 42 CD 57 AB F6 85 77 E6 12 [19:43:16]CheckFolder [19:43:16]dirname=/storage/ofd_packets [19:43:16]CheckFolder done [19:43:16]ProducePacketName [19:43:16]name=ofd_packets/00070423 [19:43:16]NVStorageSaveData ofd_packets/00070423 [19:43:16]File name is /storage/ofd_packets/00070423 [19:43:16]Write 301 bytes [19:43:16]NVStorageSaveData done [19:43:16]OFDSenderStorePacket done [19:43:16]KKMCreateOFDPacket done [19:43:16]NVStorageSaveData kkm_last_timestamp [19:43:16]File name is /storage/kkm_last_timestamp [19:43:16]Write 4 bytes [19:43:16]NVStorageSaveData done [19:43:16]ExternCall_PrintAddStr [19:43:16]wPrintStart [19:43:16]Write to MH i2c: 01 00 00 02 24 26 [19:43:16]Write i2c OK [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: 01 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: 01 07 00 [19:43:16]MH_I2C_Read... [19:43:16]Read from MH i2c: 01 07 00 02 24 00 00 00 00 00 FF 0F 3B [19:43:16]RasterBufferAndPrint [19:43:16]line Счет N : (1)2886192 [19:43:16]line ИНН: 02508201610067 [19:43:16]line Контрольно-Кассовый Чек [19:43:16]line ПРОДАЖА [19:43:16]line ТРК (МРК, ГНК) : 32 [19:43:16]line Товар: 2710124130 [19:43:16]line Аи-92-К-5 [19:43:16]line 5.980 * 66.90 [19:43:16]line = 400.06 [19:43:16]line НДС 12% НСП 1% [19:43:16]line > о реализуемом товаре [19:43:16]line ОКРУГЛЕНИЕ: -0.06 [19:43:16]line ИТОГО: 400.00 [19:43:16]line Внесено: 400.00 [19:43:16]line СДАЧА: 0.00 [19:43:16]line НСП 1% : 3.54 [19:43:16]line НДС 12% : 42.48 [19:43:16]line Наличными: 400.00 [19:43:16]line Безнал.: 0.00 [19:43:16]line Место: АЗС № 85 "Партнер Нефть" [19:43:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:43:16]line СНО: Общий режим [19:43:16]line Чек 371 22.10.2024 19:43 [19:43:16]line Смена: 195 ФФД: 1.0 [19:43:16]line ЗНМ: 0300000167 [19:43:16]line РНМ: 0000000000156251 [19:43:16]line Версия ККМ: v1.0 [19:43:16]line ФМ: 0000000000963346 [19:43:16]line ФД: 70423 [19:43:16]line ФПД: 31369332476226 [19:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70423&fm=31369332476226&tin=02508201610067®Number=0000000000156251&sum=40000 [19:43:17]OFD Sender: Processing packet 70423 [packets to send 18, broken 17] [19:43:17]ProducePacketName [19:43:17]name=ofd_packets/00070423 [19:43:17]OFD Sender: To server: pG, [19:43:17]CommunicateWithHost lk.salyk.kg:30040 [19:43:17]ConnectInit lk.salyk.kg [19:43:17]written 0, free lines is 4095 [19:43:17]Connected sock=10 [19:43: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 34 36 0F 01 00 00 24 C1 07 01 B4 02 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 73 01 00 00 F4 03 04 00 54 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 13 01 00 35 04 06 00 1C 87 BD EB 49 42 CD 57 AB F6 85 77 E6 12 [19:43: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 34 36 4F 00 00 00 58 DE 47 00 F3 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 34 36 10 04 04 00 17 13 01 00 F4 03 04 00 F3 A9 17 67 B6 04 01 00 00 65 4C 42 4A AF F5 DF 69 [19:43:17]CommunicateWithHost err = 0 [19:43:17]CheckOFDResponse [19:43:17]1017 (14) - 77093643461234 [19:43:17]1041 (16) - 0000000000963346 [19:43:17]1040 (4) - 70423 [19:43:17]1012 (4) - 22.10.2024 13:34 [19:43:17]1206 (1) - 0 [19:43:17]OFD Sender: Remove packet 70423 [19:43:17]ProducePacketName [19:43:17]name=ofd_packets/00070423 [19:43:17]NVStorageDeleteData [19:43:17]Write to MH i2c: 01 00 00 2D 24 51 [19:43:17]Write i2c OK [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: 01 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: 01 07 00 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 F9 0C 5D [19:43:17]RasterBufferAndPrint [19:43:17]line [19:43:17]line [19:43:17]line [19:43:17]line [19:43:17]line [19:43:17]written 0, free lines is 3330 [19:43:17]MH_Cut [19:43:17]Write to MH i2c: D1 01 00 34 24 01 2A [19:43:17]Write i2c OK [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: D1 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: D1 01 00 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: D1 01 00 34 24 00 29 [19:43:17]Write to MH i2c: 01 00 00 35 24 59 [19:43:17]Write i2c OK [19:43:17]MH_I2C_Read... [19:43:17]OFD Sender: No OFD packet to send [19:43:18]*** Cut start [19:43:18]*** Partial cut [19:43:18]*** CUTSNS_PIN = 1 [19:43:18]*** CUTSNS_PIN = 0 [19:43:18]*** Brake cut motor [19:43:18]Read from MH i2c: 01 [19:43:18]MH_I2C_Read... [19:43:18]*** Stop cut motor [19:43:18]*** Cut end [19:43:18]Read from MH i2c: 01 07 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 FF 0F 6E [19:43:18]process_action close_receipt done [19:43:18]requested_data is exist [19:43:18]produce_requested_data [19:43:18]requested_item fm.sn is exist - process it [19:43:18]wFMCommunicate request_size=4 [19:43:18]MH_SAM_APDU [19:43:18]CAPDU: 80 11 00 00 [19:43:18]Write to MH i2c: E2 08 00 36 24 80 11 00 00 00 00 00 00 D4 [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:18]Read from MH i2c: E2 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 17 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 17 00 36 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [19:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:43:18]wFMCommunicate OK [19:43:18]requested_item fd.num is exist - process it [19:43:18]SAM_PROTO_GetFieldsCounters [19:43:18]wFMCommunicate request_size=4 [19:43:18]MH_SAM_APDU [19:43:18]CAPDU: 80 13 00 00 [19:43:18]Write to MH i2c: E2 08 00 37 24 80 13 00 00 00 00 00 00 D7 [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 62 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 62 00 37 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [19:43: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_GetFieldsCounters done [19:43:19]requested_item shift.num is exist - process it [19:43:19]requested_item shift.opened is exist - process it [19:43:19]req_shift_opened [19:43:19]FM_GetShiftState [19:43:19]SAM_PROTO_GetShiftState [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 13 01 00 [19:43:19]Write to MH i2c: E2 08 00 38 24 80 13 01 00 00 00 00 00 D9 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0E 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0E 00 38 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C7 [19:43:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_GetShiftState done [19:43:19]FM_GetShiftState done [19:43:19]req_shift_opened done [19:43:19]requested_item shift.open_date is exist - process it [19:43:19]req_shift_open_date [19:43:19]req_shift_open_date done [19:43:19]produce_requested_data done [19:43:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70423,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:43:19]process_action_free close_receipt [19:43:19]json_value_free [19:43:19]json_value_free done [19:43:19]process_json_proto returns [19:43:19]Send response to host [19:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70423,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:43:19]free response buf [19:43:19]execute_script done [19:43:19]execute_script returns [19:43:19]free content buf [19:43:19]Sock 9.Close socket [19:43:19]Sock 9.Thread stoped [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:09]accept exits with 7 [19:44:09]New connection [19:44:09]New thread 3066555748 created [19:44:09]Thread 3066699108 joined [19:44:09]Waiting for new connection... [19:44:09] Sock 7.Parse request [19:44:09]Sock 7.Check first char [19:44:09]Sock 7.First char is OK [19:44:09]request: POST /json_proto HTTP/1.0 [19:44:09]Method: POST [19:44:09]URL: /json_proto [19:44:09]Method is POST - this is cgi request [19:44:09]url: /json_proto [19:44:09]query_string will be loaded in cgi processing [19:44:09]execute_cgi json_proto POST (null) [19:44:09]execute_cgi path=json_proto method=POST [19:44:09]POST find Content-Length [19:44:09]Host: 172.17.50.3:8080 [19:44:09]Content-Length: 978 [19:44:09]Content-Type: application/json [19:44:09] [19:44:09]POST finish read [19:44:09]Found Content-Length = 978 [19:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 33.000, "sum" : 2481.60, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.00 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 2481.00, "payments": [ { "type": 0, "sum" : 2481.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:09]execute_script... [19:44: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 : (1)2886190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 33.000, "sum" : 2481.60, "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 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.00 \u0441\u043E\u043C", "deposit" : 7620.00, "total" : 2481.00, "payments": [ { "type": 0, "sum" : 2481.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:09]POST & json_proto [19:44:09]process_json_proto [19:44:09]json parsed OK: [19:44:09]protocol is kg_v1.0 [19:44:09]action value=close_receipt [19:44:09]process_action close_receipt [19:44:09]cmd_close_receipt [19:44:09]MH_GetDate [19:44:09]Write to MH i2c: F0 00 00 39 24 4C [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: F0 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: F0 09 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: F0 09 00 39 24 00 8A 00 18 67 6B 98 1E 66 E5 [19:44:09]GetLastDocTimeStamp 1729626196 [19:44:09]current date 1729626250 [19:44:09]FM_GetShiftState [19:44:09]SAM_PROTO_GetShiftState [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 13 01 00 [19:44:09]Write to MH i2c: E2 08 00 3A 24 80 13 01 00 00 00 00 00 DB [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 3A 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C9 [19:44:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:44:09]wFMCommunicate OK [19:44:09]SAM_PROTO_GetShiftState done [19:44:09]FM_GetShiftState done [19:44:09]opened in 1729555832 [19:44:09]opened+sec_in_day 1729642232 [19:44:09]quantity*price = 248160 [19:44:09]sum+1 = 248161 [19:44:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2481.00 Внесено: 7620.00 СДАЧА: 5139.00 НСП 1% : 21.96 НДС 12% : 263.53 Наличными: 2481.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 372 22.10.2024 19:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 33.00 сом ФМ: 0000000000963346 ФД: 70424 ФПД: 166665427086769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70424&fm=166665427086769&tin=02508201610067®Number=0000000000156251&sum=248100 [19:44:10]StoreToDocumentArchive [19:44:10]shift 195 fd 70424 [19:44:10]save to /storage/0195/doc_00070424 [19:44:10]save last doc name /storage/0195/doc_00070424 to /storage/kkm_last_doc_name [19:44:10]save OK [19:44:10]Clear old archive folders... [19:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:44:10]tlvbuf is B6F1A230 [19:44:10]SAM_PROTO_ClearQueue [19:44:10]wFMCommunicate request_size=4 [19:44:10]MH_SAM_APDU [19:44:10]CAPDU: 80 09 00 00 [19:44:10]Write to MH i2c: E2 08 00 47 24 80 09 00 00 00 00 00 00 DD [19:44:10]Write i2c OK [19:44:10]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 47 24 00 90 00 DF [19:44:11]RAPDU: 90 00 [19:44:11]wFMCommunicate OK [19:44:11]SAM_PROTO_ClearQueue done [19:44:11]KKMCreateOFDPacket [19:44:11]OFDProtocolAddRootSTLVToBuf [19:44:11]FM_MakeSignedData [19:44:11]FM_MakeSignedData [19:44:11]SAM_PROTO_SignData [19:44:11]wFMCommunicate request_size=4 [19:44:11]MH_SAM_APDU [19:44:11]CAPDU: 80 0D 01 02 [19:44:11]Write to MH i2c: E2 08 00 48 24 80 0D 01 02 00 00 00 00 E5 [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [19:44:11]RAPDU: 90 00 [19:44:11]wFMCommunicate OK [19:44:11]wFMCommunicate request_size=255 [19:44:11]MH_SAM_APDU [19:44:11]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 E8 80 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 C9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 C9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 66 00 00 00 00 07 04 06 00 24 C9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 8A 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 13 01 00 35 04 06 00 97 94 D1 93 [19:44:11]Write to MH i2c: E2 02 01 49 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 E8 80 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 C9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 C9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 66 00 00 00 00 07 04 06 00 24 C9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 8A 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 13 01 00 35 04 06 00 97 94 D1 93 00 00 1C [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [19:44:11]RAPDU: 90 00 [19:44:11]wFMCommunicate OK [19:44:11]wFMCommunicate request_size=7 [19:44:11]MH_SAM_APDU [19:44:11]CAPDU: 80 0D 02 02 02 ED B1 [19:44:11]Write to MH i2c: E2 0A 00 4A 24 80 0D 02 02 02 00 ED B1 00 00 8A [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [19:44:11]RAPDU: 90 00 [19:44:11]wFMCommunicate OK [19:44:11]wFMCommunicate request_size=4 [19:44:11]MH_SAM_APDU [19:44:11]CAPDU: 80 0D 03 02 [19:44:11]Write to MH i2c: E2 08 00 4B 24 80 0D 03 02 00 00 00 00 EA [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 0B 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 0B 00 4B 24 00 45 96 E9 2E 64 63 66 AD 90 00 B7 [19:44:11]RAPDU: 45 96 E9 2E 64 63 66 AD 90 00 [19:44:11]wFMCommunicate OK [19:44:11]SAM_PROTO_SignData done [19:44:11]FM_MakeSignedData done [19:44:11]CreateOFDProtocolMessage [19:44:11]wFMCommunicate request_size=4 [19:44:11]MH_SAM_APDU [19:44:11]CAPDU: 80 11 00 00 [19:44:11]Write to MH i2c: E2 08 00 4C 24 80 11 00 00 00 00 00 00 EA [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:11]Read from MH i2c: E2 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 17 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: E2 17 00 4C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [19:44:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:11]wFMCommunicate OK [19:44:11]CreateOFDProtocolMessage done [19:44:11]OFDSenderStorePacket 70424 [19:44:11]StoreOFDPacket docnum=70424 [19:44:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 42 04 01 D4 D5 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 E8 80 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 C9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 C9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 66 00 00 00 00 07 04 06 00 24 C9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 8A 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 13 01 00 35 04 06 00 97 94 D1 93 ED B1 45 96 E9 2E 64 63 66 AD [19:44:11]CheckFolder [19:44:11]dirname=/storage/ofd_packets [19:44:11]CheckFolder done [19:44:11]ProducePacketName [19:44:11]name=ofd_packets/00070424 [19:44:11]NVStorageSaveData ofd_packets/00070424 [19:44:11]File name is /storage/ofd_packets/00070424 [19:44:11]Write 298 bytes [19:44:11]NVStorageSaveData done [19:44:11]OFDSenderStorePacket done [19:44:11]KKMCreateOFDPacket done [19:44:11]NVStorageSaveData kkm_last_timestamp [19:44:11]File name is /storage/kkm_last_timestamp [19:44:11]Write 4 bytes [19:44:11]NVStorageSaveData done [19:44:11]ExternCall_PrintAddStr [19:44:11]wPrintStart [19:44:11]Write to MH i2c: 01 00 00 4D 24 71 [19:44:11]Write i2c OK [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: 01 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: 01 07 00 [19:44:11]MH_I2C_Read... [19:44:11]Read from MH i2c: 01 07 00 4D 24 00 00 00 00 00 FF 0F 86 [19:44:11]RasterBufferAndPrint [19:44:11]line Счет N : (1)2886190 [19:44:11]line ИНН: 02508201610067 [19:44:11]line Контрольно-Кассовый Чек [19:44:11]line ПРОДАЖА [19:44:11]line ТРК (МРК, ГНК) : 61 [19:44:11]line Товар: 2710194210 [19:44:11]line ДТ-К-5 [19:44:11]line 33.000 * 75.20 [19:44:11]line = 2481.60 [19:44:11]line НДС 12% НСП 1% [19:44:11]line > о реализуемом товаре [19:44:11]line ОКРУГЛЕНИЕ: -0.60 [19:44:11]line ИТОГО: 2481.00 [19:44:11]line Внесено: 7620.00 [19:44:11]line СДАЧА: 5139.00 [19:44:11]line НСП 1% : 21.96 [19:44:11]line НДС 12% : 263.53 [19:44:11]line Наличными: 2481.00 [19:44:11]line Безнал.: 0.00 [19:44:11]line Место: АЗС № 85 "Партнер Нефть" [19:44:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:44:11]line СНО: Общий режим [19:44:11]line Чек 372 22.10.2024 19:44 [19:44:11]line Смена: 195 ФФД: 1.0 [19:44:11]line ЗНМ: 0300000167 [19:44:11]line РНМ: 0000000000156251 [19:44:11]line Версия ККМ: v1.0 [19:44:11]line [19:44:11]line Дисконтная программа [19:44:11]line ДТ [19:44:11]line номер 85 [19:44:11]line сэкономлено 33.00 сом [19:44:11]line ФМ: 0000000000963346 [19:44:11]line ФД: 70424 [19:44:11]line ФПД: 166665427086769 [19:44:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70424&fm=166665427086769&tin=02508201610067®Number=0000000000156251&sum=248100 [19:44:11]OFD Sender: Processing packet 70424 [packets to send 18, broken 17] [19:44:11]ProducePacketName [19:44:11]name=ofd_packets/00070424 [19:44:11]OFD Sender: To server: pG, [19:44:11]CommunicateWithHost lk.salyk.kg:30040 [19:44:11]ConnectInit lk.salyk.kg [19:44:11]written 0, free lines is 4095 [19:44:11]Connected sock=10 [19:44: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 34 36 0C 01 00 00 FB 42 04 01 D4 D5 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 E8 80 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 C9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 C9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 66 00 00 00 00 07 04 06 00 24 C9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 8A 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 13 01 00 35 04 06 00 97 94 D1 93 ED B1 45 96 E9 2E 64 63 66 AD [19:44: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 34 36 4F 00 00 00 37 C9 47 00 81 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 13 01 00 F4 03 04 00 2A AA 17 67 B6 04 01 00 00 DB 75 09 95 9D AB C0 CB [19:44:12]CommunicateWithHost err = 0 [19:44:12]CheckOFDResponse [19:44:12]1017 (14) - 77093643461234 [19:44:12]1041 (16) - 0000000000963346 [19:44:12]1040 (4) - 70424 [19:44:12]1012 (4) - 22.10.2024 13:35 [19:44:12]1206 (1) - 0 [19:44:12]OFD Sender: Remove packet 70424 [19:44:12]ProducePacketName [19:44:12]name=ofd_packets/00070424 [19:44:12]NVStorageDeleteData [19:44:12]Write to MH i2c: 01 00 00 7D 24 A1 [19:44:12]Write i2c OK [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: 01 [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: 01 07 00 [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: 01 07 00 7D 24 00 00 00 00 00 B1 0C 65 [19:44:12]RasterBufferAndPrint [19:44:12]line [19:44:12]line [19:44:12]line [19:44:12]line [19:44:12]line [19:44:12]written 0, free lines is 3255 [19:44:12]MH_Cut [19:44:12]Write to MH i2c: D1 01 00 84 24 01 7A [19:44:12]Write i2c OK [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: D1 [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: D1 01 00 [19:44:12]MH_I2C_Read... [19:44:12]Read from MH i2c: D1 01 00 84 24 00 79 [19:44:12]Write to MH i2c: 01 00 00 85 24 A9 [19:44:12]Write i2c OK [19:44:12]MH_I2C_Read... [19:44:12]OFD Sender: No OFD packet to send [19:44:13]*** Cut start [19:44:13]*** Partial cut [19:44:13]*** CUTSNS_PIN = 1 [19:44:13]*** CUTSNS_PIN = 0 [19:44:13]*** Brake cut motor [19:44:13]Read from MH i2c: 01 [19:44:13]MH_I2C_Read... [19:44:13]*** Stop cut motor [19:44:13]*** Cut end [19:44:13]Read from MH i2c: 01 07 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: 01 07 00 85 24 00 00 00 00 00 FF 0F BE [19:44:13]process_action close_receipt done [19:44:13]requested_data is exist [19:44:13]produce_requested_data [19:44:13]requested_item fm.sn is exist - process it [19:44:13]wFMCommunicate request_size=4 [19:44:13]MH_SAM_APDU [19:44:13]CAPDU: 80 11 00 00 [19:44:13]Write to MH i2c: E2 08 00 86 24 80 11 00 00 00 00 00 00 24 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:13]Read from MH i2c: E2 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 17 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 17 00 86 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [19:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:13]wFMCommunicate OK [19:44:13]requested_item fd.num is exist - process it [19:44:13]SAM_PROTO_GetFieldsCounters [19:44:13]wFMCommunicate request_size=4 [19:44:13]MH_SAM_APDU [19:44:13]CAPDU: 80 13 00 00 [19:44:13]Write to MH i2c: E2 08 00 87 24 80 13 00 00 00 00 00 00 27 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:13]Read from MH i2c: E2 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 62 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 62 00 87 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:13]wFMCommunicate OK [19:44:13]SAM_PROTO_GetFieldsCounters done [19:44:13]requested_item shift.num is exist - process it [19:44:13]requested_item shift.opened is exist - process it [19:44:13]req_shift_opened [19:44:13]FM_GetShiftState [19:44:13]SAM_PROTO_GetShiftState [19:44:13]wFMCommunicate request_size=4 [19:44:13]MH_SAM_APDU [19:44:13]CAPDU: 80 13 01 00 [19:44:13]Write to MH i2c: E2 08 00 88 24 80 13 01 00 00 00 00 00 29 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:13]Read from MH i2c: E2 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 0E 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 0E 00 88 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 17 [19:44:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:44:13]wFMCommunicate OK [19:44:13]SAM_PROTO_GetShiftState done [19:44:13]FM_GetShiftState done [19:44:13]req_shift_opened done [19:44:13]requested_item shift.open_date is exist - process it [19:44:13]req_shift_open_date [19:44:13]req_shift_open_date done [19:44:13]produce_requested_data done [19:44:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70424,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:44:13]process_action_free close_receipt [19:44:13]json_value_free [19:44:13]json_value_free done [19:44:13]process_json_proto returns [19:44:13]Send response to host [19:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70424,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:44:13]free response buf [19:44:13]execute_script done [19:44:13]execute_script returns [19:44:13]free content buf [19:44:13]Sock 7.Close socket [19:44:13]Sock 7.Thread stoped [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:51]accept exits with 9 [19:45:51]New connection [19:45:51]New thread 3066699108 created [19:45:51]Thread 3066555748 joined [19:45:51]Waiting for new connection... [19:45:51] Sock 9.Parse request [19:45:51]Sock 9.Check first char [19:45:51]Sock 9.First char is OK [19:45:51]request: POST /json_proto HTTP/1.0 [19:45:51]Method: POST [19:45:51]URL: /json_proto [19:45:51]Method is POST - this is cgi request [19:45:51]url: /json_proto [19:45:51]query_string will be loaded in cgi processing [19:45:51]execute_cgi json_proto POST (null) [19:45:51]execute_cgi path=json_proto method=POST [19:45:51]POST find Content-Length [19:45:51]Host: 172.17.50.3:8080 [19:45:51]Content-Length: 679 [19:45:51]Content-Type: application/json [19:45:51] [19:45:51]POST finish read [19:45:51]Found Content-Length = 679 [19:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.860, "sum" : 860.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:51]execute_script... [19:45: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)2886194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.860, "sum" : 860.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:51]POST & json_proto [19:45:51]process_json_proto [19:45:51]json parsed OK: [19:45:51]protocol is kg_v1.0 [19:45:51]action value=close_receipt [19:45:51]process_action close_receipt [19:45:51]cmd_close_receipt [19:45:51]MH_GetDate [19:45:51]Write to MH i2c: F0 00 00 89 24 9C [19:45:51]Write i2c OK [19:45:51]MH_I2C_Read... [19:45:51]Read from MH i2c: F0 [19:45:51]MH_I2C_Read... [19:45:51]Read from MH i2c: F0 09 00 [19:45:51]MH_I2C_Read... [19:45:51]Read from MH i2c: F0 09 00 89 24 00 F0 00 18 67 6B 98 1E 66 9B [19:45:51]GetLastDocTimeStamp 1729626250 [19:45:51]current date 1729626352 [19:45:51]FM_GetShiftState [19:45:51]SAM_PROTO_GetShiftState [19:45:51]wFMCommunicate request_size=4 [19:45:51]MH_SAM_APDU [19:45:51]CAPDU: 80 13 01 00 [19:45:51]Write to MH i2c: E2 08 00 8A 24 80 13 01 00 00 00 00 00 2B [19:45:51]Write i2c OK [19:45:51]MH_I2C_Read... [19:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:51]Read from MH i2c: E2 [19:45:51]MH_I2C_Read... [19:45:51]Read from MH i2c: E2 0E 00 [19:45:51]MH_I2C_Read... [19:45:51]Read from MH i2c: E2 0E 00 8A 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 19 [19:45:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:45:51]wFMCommunicate OK [19:45:51]SAM_PROTO_GetShiftState done [19:45:51]FM_GetShiftState done [19:45:51]opened in 1729555832 [19:45:51]opened+sec_in_day 1729642232 [19:45:51]quantity*price = 86033 [19:45:51]sum+1 = 86034 [19:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 860.00 Внесено: 860.00 СДАЧА: 0.00 НСП 1% : 7.61 НДС 12% : 91.36 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 373 22.10.2024 19:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70425 ФПД: 51476402030479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70425&fm=51476402030479&tin=02508201610067®Number=0000000000156251&sum=86000 [19:45:52]StoreToDocumentArchive [19:45:52]shift 195 fd 70425 [19:45:52]save to /storage/0195/doc_00070425 [19:45:52]save last doc name /storage/0195/doc_00070425 to /storage/kkm_last_doc_name [19:45:52]save OK [19:45:52]Clear old archive folders... [19:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:52]tlvbuf is B6F1A290 [19:45:52]SAM_PROTO_ClearQueue [19:45:52]wFMCommunicate request_size=4 [19:45:52]MH_SAM_APDU [19:45:52]CAPDU: 80 09 00 00 [19:45:52]Write to MH i2c: E2 08 00 97 24 80 09 00 00 00 00 00 00 2D [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 97 24 00 90 00 2F [19:45:52]RAPDU: 90 00 [19:45:52]wFMCommunicate OK [19:45:52]SAM_PROTO_ClearQueue done [19:45:52]KKMCreateOFDPacket [19:45:52]OFDProtocolAddRootSTLVToBuf [19:45:52]FM_MakeSignedData [19:45:52]FM_MakeSignedData [19:45:52]SAM_PROTO_SignData [19:45:52]wFMCommunicate request_size=4 [19:45:52]MH_SAM_APDU [19:45:52]CAPDU: 80 0D 01 02 [19:45:52]Write to MH i2c: E2 08 00 98 24 80 0D 01 02 00 00 00 00 35 [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [19:45:52]RAPDU: 90 00 [19:45:52]wFMCommunicate OK [19:45:52]wFMCommunicate request_size=255 [19:45:52]MH_SAM_APDU [19:45: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 F0 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 13 01 00 35 04 06 00 2E [19:45:52]Write to MH i2c: E2 02 01 99 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 3C 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 F0 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 13 01 00 35 04 06 00 2E 00 00 96 [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [19:45:52]RAPDU: 90 00 [19:45:52]wFMCommunicate OK [19:45:52]wFMCommunicate request_size=10 [19:45:52]MH_SAM_APDU [19:45:52]CAPDU: 80 0D 02 02 05 D1 48 A8 47 8F [19:45:52]Write to MH i2c: E2 0D 00 9A 24 80 0D 02 02 05 00 D1 48 A8 47 8F 00 00 D9 [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [19:45:52]RAPDU: 90 00 [19:45:52]wFMCommunicate OK [19:45:52]wFMCommunicate request_size=4 [19:45:52]MH_SAM_APDU [19:45:52]CAPDU: 80 0D 03 02 [19:45:52]Write to MH i2c: E2 08 00 9B 24 80 0D 03 02 00 00 00 00 3A [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 0B 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 0B 00 9B 24 00 49 9A 28 A1 01 0F 3C BE 90 00 F1 [19:45:52]RAPDU: 49 9A 28 A1 01 0F 3C BE 90 00 [19:45:52]wFMCommunicate OK [19:45:52]SAM_PROTO_SignData done [19:45:52]FM_MakeSignedData done [19:45:52]CreateOFDProtocolMessage [19:45:52]wFMCommunicate request_size=4 [19:45:52]MH_SAM_APDU [19:45:52]CAPDU: 80 11 00 00 [19:45:52]Write to MH i2c: E2 08 00 9C 24 80 11 00 00 00 00 00 00 3A [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:52]Read from MH i2c: E2 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 17 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: E2 17 00 9C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [19:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:45:52]wFMCommunicate OK [19:45:52]CreateOFDProtocolMessage done [19:45:52]OFDSenderStorePacket 70425 [19:45:52]StoreOFDPacket docnum=70425 [19:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A 3B 07 01 91 33 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 3C 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 F0 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 13 01 00 35 04 06 00 2E D1 48 A8 47 8F 49 9A 28 A1 01 0F 3C BE [19:45:52]CheckFolder [19:45:52]dirname=/storage/ofd_packets [19:45:52]CheckFolder done [19:45:52]ProducePacketName [19:45:52]name=ofd_packets/00070425 [19:45:52]NVStorageSaveData ofd_packets/00070425 [19:45:52]File name is /storage/ofd_packets/00070425 [19:45:52]Write 301 bytes [19:45:52]NVStorageSaveData done [19:45:52]OFDSenderStorePacket done [19:45:52]KKMCreateOFDPacket done [19:45:52]NVStorageSaveData kkm_last_timestamp [19:45:52]File name is /storage/kkm_last_timestamp [19:45:52]Write 4 bytes [19:45:52]NVStorageSaveData done [19:45:52]ExternCall_PrintAddStr [19:45:52]wPrintStart [19:45:52]Write to MH i2c: 01 00 00 9D 24 C1 [19:45:52]Write i2c OK [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: 01 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: 01 07 00 [19:45:52]MH_I2C_Read... [19:45:52]Read from MH i2c: 01 07 00 9D 24 00 00 00 00 00 FF 0F D6 [19:45:52]RasterBufferAndPrint [19:45:52]line Счет N : (1)2886194 [19:45:52]line ИНН: 02508201610067 [19:45:52]line Контрольно-Кассовый Чек [19:45:52]line ПРОДАЖА [19:45:52]line ТРК (МРК, ГНК) : 32 [19:45:52]line Товар: 2710124130 [19:45:52]line Аи-92-К-5 [19:45:52]line 12.860 * 66.90 [19:45:52]line = 860.33 [19:45:52]line НДС 12% НСП 1% [19:45:52]line > о реализуемом товаре [19:45:52]line ОКРУГЛЕНИЕ: -0.33 [19:45:52]line ИТОГО: 860.00 [19:45:52]line Внесено: 860.00 [19:45:52]line СДАЧА: 0.00 [19:45:52]line НСП 1% : 7.61 [19:45:52]line НДС 12% : 91.36 [19:45:52]line Наличными: 860.00 [19:45:52]line Безнал.: 0.00 [19:45:52]line Место: АЗС № 85 "Партнер Нефть" [19:45:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:45:52]line СНО: Общий режим [19:45:52]line Чек 373 22.10.2024 19:45 [19:45:52]line Смена: 195 ФФД: 1.0 [19:45:52]line ЗНМ: 0300000167 [19:45:52]line РНМ: 0000000000156251 [19:45:52]line Версия ККМ: v1.0 [19:45:52]line ФМ: 0000000000963346 [19:45:52]line ФД: 70425 [19:45:52]line ФПД: 51476402030479 [19:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70425&fm=51476402030479&tin=02508201610067®Number=0000000000156251&sum=86000 [19:45:53]OFD Sender: Processing packet 70425 [packets to send 18, broken 17] [19:45:53]ProducePacketName [19:45:53]name=ofd_packets/00070425 [19:45:53]OFD Sender: To server: pG, [19:45:53]CommunicateWithHost lk.salyk.kg:30040 [19:45:53]ConnectInit lk.salyk.kg [19:45:53]written 0, free lines is 4095 [19:45:53]Connected sock=11 [19:45: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 34 36 0F 01 00 00 3A 3B 07 01 91 33 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 3C 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 F0 00 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 13 01 00 35 04 06 00 2E D1 48 A8 47 8F 49 9A 28 A1 01 0F 3C BE [19:45: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 34 36 4F 00 00 00 F7 C6 47 00 36 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 34 36 10 04 04 00 19 13 01 00 F4 03 04 00 8F AA 17 67 B6 04 01 00 00 C3 08 4C 19 23 DA 74 FE [19:45:53]CommunicateWithHost err = 0 [19:45:53]CheckOFDResponse [19:45:53]1017 (14) - 77093643461234 [19:45:53]1041 (16) - 0000000000963346 [19:45:53]1040 (4) - 70425 [19:45:53]1012 (4) - 22.10.2024 13:37 [19:45:53]1206 (1) - 0 [19:45:53]OFD Sender: Remove packet 70425 [19:45:53]ProducePacketName [19:45:53]name=ofd_packets/00070425 [19:45:53]NVStorageDeleteData [19:45:53]Write to MH i2c: 01 00 00 C8 24 EC [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 07 00 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 ED 0C EC [19:45:53]RasterBufferAndPrint [19:45:53]line [19:45:53]line [19:45:53]line [19:45:53]line [19:45:53]line [19:45:53]written 0, free lines is 3315 [19:45:53]MH_Cut [19:45:53]Write to MH i2c: D1 01 00 CF 24 01 C5 [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: D1 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: D1 01 00 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: D1 01 00 CF 24 00 C4 [19:45:53]Write to MH i2c: 01 00 00 D0 24 F4 [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]OFD Sender: No OFD packet to send [19:45:54]*** Cut start [19:45:54]*** Partial cut [19:45:54]*** CUTSNS_PIN = 1 [19:45:54]*** CUTSNS_PIN = 0 [19:45:54]*** Brake cut motor [19:45:54]Read from MH i2c: 01 [19:45:54]MH_I2C_Read... [19:45:54]*** Stop cut motor [19:45:54]*** Cut end [19:45:54]Read from MH i2c: 01 07 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [19:45:54]process_action close_receipt done [19:45:54]requested_data is exist [19:45:54]produce_requested_data [19:45:54]requested_item fm.sn is exist - process it [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 11 00 00 [19:45:54]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 17 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 17 00 D1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [19:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:45:54]wFMCommunicate OK [19:45:54]requested_item fd.num is exist - process it [19:45:54]SAM_PROTO_GetFieldsCounters [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 13 00 00 [19:45:54]Write to MH i2c: E2 08 00 D2 24 80 13 00 00 00 00 00 00 72 [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:55]Read from MH i2c: E2 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: E2 62 00 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: E2 62 00 D2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:55]wFMCommunicate OK [19:45:55]SAM_PROTO_GetFieldsCounters done [19:45:55]requested_item shift.num is exist - process it [19:45:55]requested_item shift.opened is exist - process it [19:45:55]req_shift_opened [19:45:55]FM_GetShiftState [19:45:55]SAM_PROTO_GetShiftState [19:45:55]wFMCommunicate request_size=4 [19:45:55]MH_SAM_APDU [19:45:55]CAPDU: 80 13 01 00 [19:45:55]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [19:45:55]Write i2c OK [19:45:55]MH_I2C_Read... [19:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:55]Read from MH i2c: E2 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: E2 0E 00 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 62 [19:45:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:45:55]wFMCommunicate OK [19:45:55]SAM_PROTO_GetShiftState done [19:45:55]FM_GetShiftState done [19:45:55]req_shift_opened done [19:45:55]requested_item shift.open_date is exist - process it [19:45:55]req_shift_open_date [19:45:55]req_shift_open_date done [19:45:55]produce_requested_data done [19:45:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70425,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:45:55]process_action_free close_receipt [19:45:55]json_value_free [19:45:55]json_value_free done [19:45:55]process_json_proto returns [19:45:55]Send response to host [19:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70425,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:45:55]free response buf [19:45:55]execute_script done [19:45:55]execute_script returns [19:45:55]free content buf [19:45:55]Sock 9.Close socket [19:45:55]Sock 9.Thread stoped [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:25]accept exits with 7 [19:47:25]New connection [19:47:25]New thread 3066555748 created [19:47:25]Thread 3066699108 joined [19:47:25]Waiting for new connection... [19:47:25] Sock 7.Parse request [19:47:25]Sock 7.Check first char [19:47:25]Sock 7.First char is OK [19:47:25]request: POST /json_proto HTTP/1.0 [19:47:25]Method: POST [19:47:25]URL: /json_proto [19:47:25]Method is POST - this is cgi request [19:47:25]url: /json_proto [19:47:25]query_string will be loaded in cgi processing [19:47:25]execute_cgi json_proto POST (null) [19:47:25]execute_cgi path=json_proto method=POST [19:47:25]POST find Content-Length [19:47:25]Host: 172.17.50.3:8080 [19:47:25]Content-Length: 683 [19:47:25]Content-Type: application/json [19:47:25] [19:47:25]POST finish read [19:47:25]Found Content-Length = 683 [19:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [19:47:25]execute_script... [19:47: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)2886195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [19:47:25]POST & json_proto [19:47:25]process_json_proto [19:47:25]json parsed OK: [19:47:25]protocol is kg_v1.0 [19:47:25]action value=close_receipt [19:47:25]process_action close_receipt [19:47:25]cmd_close_receipt [19:47:25]MH_GetDate [19:47:25]Write to MH i2c: F0 00 00 D4 24 E7 [19:47:25]Write i2c OK [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 09 00 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 09 00 D4 24 00 4E 01 18 67 6B 98 1E 66 45 [19:47:25]GetLastDocTimeStamp 1729626352 [19:47:25]current date 1729626446 [19:47:25]FM_GetShiftState [19:47:25]SAM_PROTO_GetShiftState [19:47:25]wFMCommunicate request_size=4 [19:47:25]MH_SAM_APDU [19:47:25]CAPDU: 80 13 01 00 [19:47:25]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [19:47:25]Write i2c OK [19:47:25]MH_I2C_Read... [19:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:25]Read from MH i2c: E2 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 64 [19:47:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:47:25]wFMCommunicate OK [19:47:25]SAM_PROTO_GetShiftState done [19:47:25]FM_GetShiftState done [19:47:25]opened in 1729555832 [19:47:25]opened+sec_in_day 1729642232 [19:47:25]quantity*price = 100015 [19:47:25]sum+1 = 100017 [19:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 374 22.10.2024 19:47 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70426 ФПД: 275680888628901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70426&fm=275680888628901&tin=02508201610067®Number=0000000000156251&sum=100000 [19:47:26]StoreToDocumentArchive [19:47:26]shift 195 fd 70426 [19:47:26]save to /storage/0195/doc_00070426 [19:47:26]save last doc name /storage/0195/doc_00070426 to /storage/kkm_last_doc_name [19:47:26]save OK [19:47:26]Clear old archive folders... [19:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:26]tlvbuf is 00AE36B0 [19:47:26]SAM_PROTO_ClearQueue [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 09 00 00 [19:47:26]Write to MH i2c: E2 08 00 E2 24 80 09 00 00 00 00 00 00 78 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]SAM_PROTO_ClearQueue done [19:47:26]KKMCreateOFDPacket [19:47:26]OFDProtocolAddRootSTLVToBuf [19:47:26]FM_MakeSignedData [19:47:26]FM_MakeSignedData [19:47:26]SAM_PROTO_SignData [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 01 02 [19:47:26]Write to MH i2c: E2 08 00 E3 24 80 0D 01 02 00 00 00 00 80 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=255 [19:47:26]MH_SAM_APDU [19:47: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 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 76 01 00 00 F4 03 04 00 4E 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 13 01 00 35 04 06 00 FA [19:47:26]Write to MH i2c: E2 02 01 E4 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 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 76 01 00 00 F4 03 04 00 4E 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 13 01 00 35 04 06 00 FA 00 00 33 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:27]Read from MH i2c: E2 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 03 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [19:47:27]RAPDU: 90 00 [19:47:27]wFMCommunicate OK [19:47:27]wFMCommunicate request_size=10 [19:47:27]MH_SAM_APDU [19:47:27]CAPDU: 80 0D 02 02 05 BA F5 70 26 A5 [19:47:27]Write to MH i2c: E2 0D 00 E5 24 80 0D 02 02 05 00 BA F5 70 26 A5 00 00 77 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:27]Read from MH i2c: E2 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 03 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [19:47:27]RAPDU: 90 00 [19:47:27]wFMCommunicate OK [19:47:27]wFMCommunicate request_size=4 [19:47:27]MH_SAM_APDU [19:47:27]CAPDU: 80 0D 03 02 [19:47:27]Write to MH i2c: E2 08 00 E6 24 80 0D 03 02 00 00 00 00 85 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:27]Read from MH i2c: E2 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 0B 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 0B 00 E6 24 00 86 F1 E8 64 17 27 80 AF 90 00 B6 [19:47:27]RAPDU: 86 F1 E8 64 17 27 80 AF 90 00 [19:47:27]wFMCommunicate OK [19:47:27]SAM_PROTO_SignData done [19:47:27]FM_MakeSignedData done [19:47:27]CreateOFDProtocolMessage [19:47:27]wFMCommunicate request_size=4 [19:47:27]MH_SAM_APDU [19:47:27]CAPDU: 80 11 00 00 [19:47:27]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:27]Read from MH i2c: E2 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 17 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 17 00 E7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [19:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:47:27]wFMCommunicate OK [19:47:27]CreateOFDProtocolMessage done [19:47:27]OFDSenderStorePacket 70426 [19:47:27]StoreOFDPacket docnum=70426 [19:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 41 07 01 BC 92 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 76 01 00 00 F4 03 04 00 4E 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 13 01 00 35 04 06 00 FA BA F5 70 26 A5 86 F1 E8 64 17 27 80 AF [19:47:27]CheckFolder [19:47:27]dirname=/storage/ofd_packets [19:47:27]CheckFolder done [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00070426 [19:47:27]NVStorageSaveData ofd_packets/00070426 [19:47:27]File name is /storage/ofd_packets/00070426 [19:47:27]Write 301 bytes [19:47:27]NVStorageSaveData done [19:47:27]OFDSenderStorePacket done [19:47:27]KKMCreateOFDPacket done [19:47:27]NVStorageSaveData kkm_last_timestamp [19:47:27]File name is /storage/kkm_last_timestamp [19:47:27]Write 4 bytes [19:47:27]NVStorageSaveData done [19:47:27]ExternCall_PrintAddStr [19:47:27]wPrintStart [19:47:27]Write to MH i2c: 01 00 00 E8 24 0C [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 FF 0F 21 [19:47:27]RasterBufferAndPrint [19:47:27]line Счет N : (1)2886195 [19:47:27]line ИНН: 02508201610067 [19:47:27]line Контрольно-Кассовый Чек [19:47:27]line ПРОДАЖА [19:47:27]line ТРК (МРК, ГНК) : 12 [19:47:27]line Товар: 2710124130 [19:47:27]line Аи-92-К-5 [19:47:27]line 14.950 * 66.90 [19:47:27]line = 1000.16 [19:47:27]line НДС 12% НСП 1% [19:47:27]line > о реализуемом товаре [19:47:27]line ОКРУГЛЕНИЕ: -0.16 [19:47:27]line ИТОГО: 1000.00 [19:47:27]line Внесено: 1000.00 [19:47:27]line СДАЧА: 0.00 [19:47:27]line НСП 1% : 8.85 [19:47:27]line НДС 12% : 106.21 [19:47:27]line Наличными: 1000.00 [19:47:27]line Безнал.: 0.00 [19:47:27]line Место: АЗС № 85 "Партнер Нефть" [19:47:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:47:27]line СНО: Общий режим [19:47:27]line Чек 374 22.10.2024 19:47 [19:47:27]line Смена: 195 ФФД: 1.0 [19:47:27]line ЗНМ: 0300000167 [19:47:27]line РНМ: 0000000000156251 [19:47:27]line Версия ККМ: v1.0 [19:47:27]line ФМ: 0000000000963346 [19:47:27]line ФД: 70426 [19:47:27]line ФПД: 275680888628901 [19:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70426&fm=275680888628901&tin=02508201610067®Number=0000000000156251&sum=100000 [19:47:27]OFD Sender: Processing packet 70426 [packets to send 18, broken 17] [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00070426 [19:47:27]OFD Sender: To server: pG, [19:47:27]CommunicateWithHost lk.salyk.kg:30040 [19:47:27]ConnectInit lk.salyk.kg [19:47:27]written 0, free lines is 4095 [19:47:27]Connected sock=10 [19:47: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 34 36 0F 01 00 00 C2 41 07 01 BC 92 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 76 01 00 00 F4 03 04 00 4E 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 13 01 00 35 04 06 00 FA BA F5 70 26 A5 86 F1 E8 64 17 27 80 AF [19:47: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 34 36 4F 00 00 00 12 51 47 00 94 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 34 36 10 04 04 00 1A 13 01 00 F4 03 04 00 EE AA 17 67 B6 04 01 00 00 FC 93 50 D6 D9 1A 99 01 [19:47:27]CommunicateWithHost err = 0 [19:47:27]CheckOFDResponse [19:47:27]1017 (14) - 77093643461234 [19:47:27]1041 (16) - 0000000000963346 [19:47:27]1040 (4) - 70426 [19:47:27]1012 (4) - 22.10.2024 13:38 [19:47:27]1206 (1) - 0 [19:47:27]OFD Sender: Remove packet 70426 [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00070426 [19:47:27]NVStorageDeleteData [19:47:28]Write to MH i2c: 01 00 00 13 25 38 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 13 25 00 00 00 00 00 FF 0C 4A [19:47:28]RasterBufferAndPrint [19:47:28]line [19:47:28]line [19:47:28]line [19:47:28]line [19:47:28]line [19:47:28]written 0, free lines is 3333 [19:47:28]MH_Cut [19:47:28]Write to MH i2c: D1 01 00 1A 25 01 11 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: D1 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: D1 01 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: D1 01 00 1A 25 00 10 [19:47:28]Write to MH i2c: 01 00 00 1B 25 40 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]OFD Sender: No OFD packet to send [19:47:28]*** Cut start [19:47:28]*** Partial cut [19:47:28]*** CUTSNS_PIN = 1 [19:47:28]*** CUTSNS_PIN = 0 [19:47:29]*** Brake cut motor [19:47:29]Read from MH i2c: 01 [19:47:29]MH_I2C_Read... [19:47:29]*** Stop cut motor [19:47:29]*** Cut end [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 1B 25 00 00 00 00 00 FF 0F 55 [19:47:29]process_action close_receipt done [19:47:29]requested_data is exist [19:47:29]produce_requested_data [19:47:29]requested_item fm.sn is exist - process it [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 1C 25 80 11 00 00 00 00 00 00 BB [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 1C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [19:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:47:29]wFMCommunicate OK [19:47:29]requested_item fd.num is exist - process it [19:47:29]SAM_PROTO_GetFieldsCounters [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 13 00 00 [19:47:29]Write to MH i2c: E2 08 00 1D 25 80 13 00 00 00 00 00 00 BE [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 1D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [19:47: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetFieldsCounters done [19:47:29]requested_item shift.num is exist - process it [19:47:29]requested_item shift.opened is exist - process it [19:47:29]req_shift_opened [19:47:29]FM_GetShiftState [19:47:29]SAM_PROTO_GetShiftState [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 13 01 00 [19:47:29]Write to MH i2c: E2 08 00 1E 25 80 13 01 00 00 00 00 00 C0 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 1E 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AE [19:47:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetShiftState done [19:47:29]FM_GetShiftState done [19:47:29]req_shift_opened done [19:47:29]requested_item shift.open_date is exist - process it [19:47:29]req_shift_open_date [19:47:29]req_shift_open_date done [19:47:29]produce_requested_data done [19:47:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70426,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:47:29]process_action_free close_receipt [19:47:29]json_value_free [19:47:29]json_value_free done [19:47:29]process_json_proto returns [19:47:29]Send response to host [19:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70426,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:47:29]free response buf [19:47:29]execute_script done [19:47:29]execute_script returns [19:47:29]free content buf [19:47:29]Sock 7.Close socket [19:47:29]Sock 7.Thread stoped [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:16]accept exits with 9 [19:48:16]New connection [19:48:16]New thread 3066699108 created [19:48:16]Thread 3066555748 joined [19:48:16]Waiting for new connection... [19:48:16] Sock 9.Parse request [19:48:16]Sock 9.Check first char [19:48:16]Sock 9.First char is OK [19:48:16]request: POST /json_proto HTTP/1.0 [19:48:16]Method: POST [19:48:16]URL: /json_proto [19:48:16]Method is POST - this is cgi request [19:48:16]url: /json_proto [19:48:16]query_string will be loaded in cgi processing [19:48:16]execute_cgi json_proto POST (null) [19:48:16]execute_cgi path=json_proto method=POST [19:48:16]POST find Content-Length [19:48:16]Host: 172.17.50.3:8080 [19:48:16]Content-Length: 689 [19:48:16]Content-Type: application/json [19:48:16] [19:48:16]POST finish read [19:48:16]Found Content-Length = 689 [19:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.980, "sum" : 1002.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 1002.00, "payments": [ { "type": 0, "sum" : 1002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:16]execute_script... [19:48: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)2886196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.980, "sum" : 1002.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 1002.00, "payments": [ { "type": 0, "sum" : 1002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:16]POST & json_proto [19:48:16]process_json_proto [19:48:16]json parsed OK: [19:48:16]protocol is kg_v1.0 [19:48:16]action value=close_receipt [19:48:16]process_action close_receipt [19:48:16]cmd_close_receipt [19:48:16]MH_GetDate [19:48:16]Write to MH i2c: F0 00 00 1F 25 33 [19:48:16]Write i2c OK [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: F0 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: F0 09 00 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: F0 09 00 1F 25 00 81 01 18 67 6B 98 1E 66 C4 [19:48:16]GetLastDocTimeStamp 1729626446 [19:48:16]current date 1729626497 [19:48:16]FM_GetShiftState [19:48:16]SAM_PROTO_GetShiftState [19:48:16]wFMCommunicate request_size=4 [19:48:16]MH_SAM_APDU [19:48:16]CAPDU: 80 13 01 00 [19:48:16]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [19:48:16]Write i2c OK [19:48:16]MH_I2C_Read... [19:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:17]Read from MH i2c: E2 [19:48:17]MH_I2C_Read... [19:48:17]Read from MH i2c: E2 0E 00 [19:48:17]MH_I2C_Read... [19:48:17]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B0 [19:48:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:48:17]wFMCommunicate OK [19:48:17]SAM_PROTO_GetShiftState done [19:48:17]FM_GetShiftState done [19:48:17]opened in 1729555832 [19:48:17]opened+sec_in_day 1729642232 [19:48:17]quantity*price = 100205 [19:48:17]sum+1 = 100207 [19:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1002.00 Внесено: 7000.00 СДАЧА: 5998.00 НСП 1% : 8.87 НДС 12% : 106.41 Наличными: 1002.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 375 22.10.2024 19:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70427 ФПД: 8971112624872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70427&fm=8971112624872&tin=02508201610067®Number=0000000000156251&sum=100200 [19:48:18]StoreToDocumentArchive [19:48:18]shift 195 fd 70427 [19:48:18]save to /storage/0195/doc_00070427 [19:48:18]save last doc name /storage/0195/doc_00070427 to /storage/kkm_last_doc_name [19:48:18]save OK [19:48:18]Clear old archive folders... [19:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:48:18]tlvbuf is 00EA4F10 [19:48:18]SAM_PROTO_ClearQueue [19:48:18]wFMCommunicate request_size=4 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 09 00 00 [19:48:18]Write to MH i2c: E2 08 00 2D 25 80 09 00 00 00 00 00 00 C4 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [19:48:18]RAPDU: 90 00 [19:48:18]wFMCommunicate OK [19:48:18]SAM_PROTO_ClearQueue done [19:48:18]KKMCreateOFDPacket [19:48:18]OFDProtocolAddRootSTLVToBuf [19:48:18]FM_MakeSignedData [19:48:18]FM_MakeSignedData [19:48:18]SAM_PROTO_SignData [19:48:18]wFMCommunicate request_size=4 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 0D 01 02 [19:48:18]Write to MH i2c: E2 08 00 2E 25 80 0D 01 02 00 00 00 00 CC [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [19:48:18]RAPDU: 90 00 [19:48:18]wFMCommunicate OK [19:48:18]wFMCommunicate request_size=255 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 B4 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6E 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 82 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 13 01 [19:48:18]Write to MH i2c: E2 02 01 2F 25 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 B4 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6E 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 82 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 13 01 00 00 DE [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]OFD Sender: No OFD packet to send [19:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [19:48:18]RAPDU: 90 00 [19:48:18]wFMCommunicate OK [19:48:18]wFMCommunicate request_size=16 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 08 28 BF FB 32 E8 [19:48:18]Write to MH i2c: E2 13 00 30 25 80 0D 02 02 0B 00 00 35 04 06 00 08 28 BF FB 32 E8 00 00 28 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [19:48:18]RAPDU: 90 00 [19:48:18]wFMCommunicate OK [19:48:18]wFMCommunicate request_size=4 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 0D 03 02 [19:48:18]Write to MH i2c: E2 08 00 31 25 80 0D 03 02 00 00 00 00 D1 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 0B 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 0B 00 31 25 00 70 25 78 4D A8 75 D0 8F 90 00 A8 [19:48:18]RAPDU: 70 25 78 4D A8 75 D0 8F 90 00 [19:48:18]wFMCommunicate OK [19:48:18]SAM_PROTO_SignData done [19:48:18]FM_MakeSignedData done [19:48:18]CreateOFDProtocolMessage [19:48:18]wFMCommunicate request_size=4 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 11 00 00 [19:48:18]Write to MH i2c: E2 08 00 32 25 80 11 00 00 00 00 00 00 D1 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 17 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 17 00 32 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [19:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:48:18]wFMCommunicate OK [19:48:18]CreateOFDProtocolMessage done [19:48:18]OFDSenderStorePacket 70427 [19:48:18]StoreOFDPacket docnum=70427 [19:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C6 E7 0D 01 AE 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 B4 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6E 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 82 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 13 01 00 35 04 06 00 08 28 BF FB 32 E8 70 25 78 4D A8 75 D0 8F [19:48:18]CheckFolder [19:48:18]dirname=/storage/ofd_packets [19:48:18]CheckFolder done [19:48:18]ProducePacketName [19:48:18]name=ofd_packets/00070427 [19:48:18]NVStorageSaveData ofd_packets/00070427 [19:48:18]File name is /storage/ofd_packets/00070427 [19:48:18]Write 307 bytes [19:48:18]NVStorageSaveData done [19:48:18]OFDSenderStorePacket done [19:48:18]KKMCreateOFDPacket done [19:48:18]NVStorageSaveData kkm_last_timestamp [19:48:18]File name is /storage/kkm_last_timestamp [19:48:18]Write 4 bytes [19:48:18]NVStorageSaveData done [19:48:18]ExternCall_PrintAddStr [19:48:18]wPrintStart [19:48:18]Write to MH i2c: 01 00 00 33 25 58 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 07 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [19:48:18]RasterBufferAndPrint [19:48:18]line Счет N : (1)2886196 [19:48:18]line ИНН: 02508201610067 [19:48:18]line Контрольно-Кассовый Чек [19:48:18]line ПРОДАЖА [19:48:18]line ТРК (МРК, ГНК) : 41 [19:48:18]line Товар: 2710194240 [19:48:18]line D-ENERGY Дт-К-2 [19:48:18]line 12.980 * 77.20 [19:48:18]line = 1002.06 [19:48:18]line НДС 12% НСП 1% [19:48:18]line > о реализуемом товаре [19:48:18]line ОКРУГЛЕНИЕ: -0.06 [19:48:18]line ИТОГО: 1002.00 [19:48:18]line Внесено: 7000.00 [19:48:18]line СДАЧА: 5998.00 [19:48:18]line НСП 1% : 8.87 [19:48:18]line НДС 12% : 106.41 [19:48:18]line Наличными: 1002.00 [19:48:18]line Безнал.: 0.00 [19:48:18]line Место: АЗС № 85 "Партнер Нефть" [19:48:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:48:18]line СНО: Общий режим [19:48:18]line Чек 375 22.10.2024 19:48 [19:48:18]line Смена: 195 ФФД: 1.0 [19:48:18]line ЗНМ: 0300000167 [19:48:18]line РНМ: 0000000000156251 [19:48:18]line Версия ККМ: v1.0 [19:48:18]line ФМ: 0000000000963346 [19:48:18]line ФД: 70427 [19:48:18]line ФПД: 8971112624872 [19:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70427&fm=8971112624872&tin=02508201610067®Number=0000000000156251&sum=100200 [19:48:19]OFD Sender: Processing packet 70427 [packets to send 18, broken 17] [19:48:19]ProducePacketName [19:48:19]name=ofd_packets/00070427 [19:48:19]OFD Sender: To server: pG, [19:48:19]CommunicateWithHost lk.salyk.kg:30040 [19:48:19]ConnectInit lk.salyk.kg [19:48:19]written 0, free lines is 4095 [19:48:19]Connected sock=10 [19:48: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 34 36 15 01 00 00 C6 E7 0D 01 AE 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 B4 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6E 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 82 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 13 01 00 35 04 06 00 08 28 BF FB 32 E8 70 25 78 4D A8 75 D0 8F [19:48: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 34 36 4F 00 00 00 A0 23 47 00 5C 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 34 36 10 04 04 00 1B 13 01 00 F4 03 04 00 21 AB 17 67 B6 04 01 00 00 42 FA 09 A4 45 4F 1A 39 [19:48:19]CommunicateWithHost err = 0 [19:48:19]CheckOFDResponse [19:48:19]1017 (14) - 77093643461234 [19:48:19]1041 (16) - 0000000000963346 [19:48:19]1040 (4) - 70427 [19:48:19]1012 (4) - 22.10.2024 13:39 [19:48:19]1206 (1) - 0 [19:48:19]OFD Sender: Remove packet 70427 [19:48:19]ProducePacketName [19:48:19]name=ofd_packets/00070427 [19:48:19]NVStorageDeleteData [19:48:19]Write to MH i2c: 01 00 00 5E 25 83 [19:48:19]Write i2c OK [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: 01 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: 01 07 00 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: 01 07 00 5E 25 00 00 00 00 00 08 0D 9F [19:48:19]RasterBufferAndPrint [19:48:19]line [19:48:19]line [19:48:19]line [19:48:19]line [19:48:19]line [19:48:19]written 0, free lines is 3342 [19:48:19]MH_Cut [19:48:19]Write to MH i2c: D1 01 00 65 25 01 5C [19:48:19]Write i2c OK [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: D1 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: D1 01 00 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: D1 01 00 65 25 00 5B [19:48:19]Write to MH i2c: 01 00 00 66 25 8B [19:48:19]Write i2c OK [19:48:19]MH_I2C_Read... [19:48:19]OFD Sender: No OFD packet to send [19:48:20]*** Cut start [19:48:20]*** Partial cut [19:48:20]*** CUTSNS_PIN = 1 [19:48:20]*** CUTSNS_PIN = 0 [19:48:20]*** Brake cut motor [19:48:20]Read from MH i2c: 01 [19:48:20]MH_I2C_Read... [19:48:20]*** Stop cut motor [19:48:20]*** Cut end [19:48:20]Read from MH i2c: 01 07 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [19:48:20]process_action close_receipt done [19:48:20]requested_data is exist [19:48:20]produce_requested_data [19:48:20]requested_item fm.sn is exist - process it [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 11 00 00 [19:48:20]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 17 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 17 00 67 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [19:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:48:20]wFMCommunicate OK [19:48:20]requested_item fd.num is exist - process it [19:48:20]SAM_PROTO_GetFieldsCounters [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 13 00 00 [19:48:20]Write to MH i2c: E2 08 00 68 25 80 13 00 00 00 00 00 00 09 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 62 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 62 00 68 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [19:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:20]wFMCommunicate OK [19:48:20]SAM_PROTO_GetFieldsCounters done [19:48:20]requested_item shift.num is exist - process it [19:48:20]requested_item shift.opened is exist - process it [19:48:20]req_shift_opened [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 69 25 80 13 01 00 00 00 00 00 0B [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:21]Read from MH i2c: E2 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 0E 00 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 0E 00 69 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [19:48:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:48:21]wFMCommunicate OK [19:48:21]SAM_PROTO_GetShiftState done [19:48:21]FM_GetShiftState done [19:48:21]req_shift_opened done [19:48:21]requested_item shift.open_date is exist - process it [19:48:21]req_shift_open_date [19:48:21]req_shift_open_date done [19:48:21]produce_requested_data done [19:48:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70427,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:48:21]process_action_free close_receipt [19:48:21]json_value_free [19:48:21]json_value_free done [19:48:21]process_json_proto returns [19:48:21]Send response to host [19:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70427,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:48:21]free response buf [19:48:21]execute_script done [19:48:21]execute_script returns [19:48:21]free content buf [19:48:21]Sock 9.Close socket [19:48:21]Sock 9.Thread stoped [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:52]accept exits with 7 [19:48:52]New connection [19:48:52]New thread 3066555748 created [19:48:52]Thread 3066699108 joined [19:48:52]Waiting for new connection... [19:48:52] Sock 7.Parse request [19:48:52]Sock 7.Check first char [19:48:52]Sock 7.First char is OK [19:48:52]request: POST /json_proto HTTP/1.0 [19:48:52]Method: POST [19:48:52]URL: /json_proto [19:48:52]Method is POST - this is cgi request [19:48:52]url: /json_proto [19:48:52]query_string will be loaded in cgi processing [19:48:52]execute_cgi json_proto POST (null) [19:48:52]execute_cgi path=json_proto method=POST [19:48:52]POST find Content-Length [19:48:52]Host: 172.17.50.3:8080 [19:48:52]Content-Length: 675 [19:48:52]Content-Type: application/json [19:48:52] [19:48:52]POST finish read [19:48:52]Found Content-Length = 675 [19:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.650, "sum" : 659.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 659.00, "total" : 659.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]execute_script... [19:48: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)2886197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.650, "sum" : 659.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 659.00, "total" : 659.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]POST & json_proto [19:48:52]process_json_proto [19:48:52]json parsed OK: [19:48:52]protocol is kg_v1.0 [19:48:52]action value=close_receipt [19:48:52]process_action close_receipt [19:48:52]cmd_close_receipt [19:48:52]MH_GetDate [19:48:52]Write to MH i2c: F0 00 00 6A 25 7E [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 6A 25 00 A5 01 18 67 6B 98 1E 66 33 [19:48:52]GetLastDocTimeStamp 1729626498 [19:48:52]current date 1729626533 [19:48:52]FM_GetShiftState [19:48:52]SAM_PROTO_GetShiftState [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 13 01 00 [19:48:52]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [19:48:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_GetShiftState done [19:48:52]FM_GetShiftState done [19:48:52]opened in 1729555832 [19:48:52]opened+sec_in_day 1729642232 [19:48:52]quantity*price = 65913 [19:48:52]sum+1 = 65914 [19:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 659.00 Внесено: 659.00 СДАЧА: 0.00 НСП 1% : 5.83 НДС 12% : 70.00 Наличными: 659.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 376 22.10.2024 19:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70428 ФПД: 144335633365052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70428&fm=144335633365052&tin=02508201610067®Number=0000000000156251&sum=65900 [19:48:54]StoreToDocumentArchive [19:48:54]shift 195 fd 70428 [19:48:54]save to /storage/0195/doc_00070428 [19:48:54]save last doc name /storage/0195/doc_00070428 to /storage/kkm_last_doc_name [19:48:54]save OK [19:48:54]Clear old archive folders... [19:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:48:54]tlvbuf is 00D78990 [19:48:54]SAM_PROTO_ClearQueue [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 09 00 00 [19:48:54]Write to MH i2c: E2 08 00 78 25 80 09 00 00 00 00 00 00 0F [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 78 25 00 90 00 11 [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_ClearQueue done [19:48:54]KKMCreateOFDPacket [19:48:54]OFDProtocolAddRootSTLVToBuf [19:48:54]FM_MakeSignedData [19:48:54]FM_MakeSignedData [19:48:54]SAM_PROTO_SignData [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 01 02 [19:48:54]Write to MH i2c: E2 08 00 79 25 80 0D 01 02 00 00 00 00 17 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 79 25 00 90 00 12 [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=255 [19:48:54]MH_SAM_APDU [19:48: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 CA 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 A5 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 13 01 00 35 04 06 00 83 45 C2 27 [19:48:54]Write to MH i2c: E2 02 01 7A 25 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 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 A5 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 13 01 00 35 04 06 00 83 45 C2 27 00 00 8F [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=7 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 02 02 02 B8 3C [19:48:54]Write to MH i2c: E2 0A 00 7B 25 80 0D 02 02 02 00 B8 3C 00 00 12 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 03 02 [19:48:54]Write to MH i2c: E2 08 00 7C 25 80 0D 03 02 00 00 00 00 1C [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 7C 25 00 0E 21 86 84 1B D3 07 11 90 00 5C [19:48:54]RAPDU: 0E 21 86 84 1B D3 07 11 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_SignData done [19:48:54]FM_MakeSignedData done [19:48:54]CreateOFDProtocolMessage [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 11 00 00 [19:48:54]Write to MH i2c: E2 08 00 7D 25 80 11 00 00 00 00 00 00 1C [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 7D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [19:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:48:54]wFMCommunicate OK [19:48:54]CreateOFDProtocolMessage done [19:48:54]OFDSenderStorePacket 70428 [19:48:54]StoreOFDPacket docnum=70428 [19:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D9 17 04 01 AF 40 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 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 A5 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 13 01 00 35 04 06 00 83 45 C2 27 B8 3C 0E 21 86 84 1B D3 07 11 [19:48:54]CheckFolder [19:48:54]dirname=/storage/ofd_packets [19:48:54]CheckFolder done [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00070428 [19:48:54]NVStorageSaveData ofd_packets/00070428 [19:48:54]File name is /storage/ofd_packets/00070428 [19:48:54]Write 298 bytes [19:48:54]NVStorageSaveData done [19:48:54]OFDSenderStorePacket done [19:48:54]KKMCreateOFDPacket done [19:48:54]NVStorageSaveData kkm_last_timestamp [19:48:54]File name is /storage/kkm_last_timestamp [19:48:54]Write 4 bytes [19:48:54]NVStorageSaveData done [19:48:54]ExternCall_PrintAddStr [19:48:54]wPrintStart [19:48:54]Write to MH i2c: 01 00 00 7E 25 A3 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 7E 25 00 00 00 00 00 FF 0F B8 [19:48:54]RasterBufferAndPrint [19:48:54]line Счет N : (1)2886197 [19:48:54]line ИНН: 02508201610067 [19:48:54]line Контрольно-Кассовый Чек [19:48:54]line ПРОДАЖА [19:48:54]line ТРК (МРК, ГНК) : 61 [19:48:54]line Товар: 2710194210 [19:48:54]line ДТ-К-5 [19:48:54]line 8.650 * 76.20 [19:48:54]line = 659.13 [19:48:54]line НДС 12% НСП 1% [19:48:54]line > о реализуемом товаре [19:48:54]line ОКРУГЛЕНИЕ: -0.13 [19:48:54]line ИТОГО: 659.00 [19:48:54]line Внесено: 659.00 [19:48:54]line СДАЧА: 0.00 [19:48:54]line НСП 1% : 5.83 [19:48:54]line НДС 12% : 70.00 [19:48:54]line Наличными: 659.00 [19:48:54]line Безнал.: 0.00 [19:48:54]line Место: АЗС № 85 "Партнер Нефть" [19:48:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:48:54]line СНО: Общий режим [19:48:54]line Чек 376 22.10.2024 19:48 [19:48:54]line Смена: 195 ФФД: 1.0 [19:48:54]line ЗНМ: 0300000167 [19:48:54]line РНМ: 0000000000156251 [19:48:54]line Версия ККМ: v1.0 [19:48:54]line ФМ: 0000000000963346 [19:48:54]line ФД: 70428 [19:48:54]line ФПД: 144335633365052 [19:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70428&fm=144335633365052&tin=02508201610067®Number=0000000000156251&sum=65900 [19:48:54]OFD Sender: Processing packet 70428 [packets to send 18, broken 17] [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00070428 [19:48:54]OFD Sender: To server: pG, [19:48:54]CommunicateWithHost lk.salyk.kg:30040 [19:48:54]ConnectInit lk.salyk.kg [19:48:54]written 0, free lines is 4095 [19:48:54]Connected sock=10 [19:48: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 34 36 0C 01 00 00 D9 17 04 01 AF 40 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 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 A5 01 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 13 01 00 35 04 06 00 83 45 C2 27 B8 3C 0E 21 86 84 1B D3 07 11 [19:48: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 34 36 4F 00 00 00 ED C8 47 00 E2 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 34 36 10 04 04 00 1C 13 01 00 F4 03 04 00 45 AB 17 67 B6 04 01 00 00 9F 8A B0 44 1F 44 0F 64 [19:48:55]CommunicateWithHost err = 0 [19:48:55]CheckOFDResponse [19:48:55]1017 (14) - 77093643461234 [19:48:55]1041 (16) - 0000000000963346 [19:48:55]1040 (4) - 70428 [19:48:55]1012 (4) - 22.10.2024 13:40 [19:48:55]1206 (1) - 0 [19:48:55]OFD Sender: Remove packet 70428 [19:48:55]ProducePacketName [19:48:55]name=ofd_packets/00070428 [19:48:55]NVStorageDeleteData [19:48:55]Write to MH i2c: 01 00 00 A9 25 CE [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 A9 25 00 00 00 00 00 F8 0C D9 [19:48:55]RasterBufferAndPrint [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]written 0, free lines is 3327 [19:48:55]MH_Cut [19:48:55]Write to MH i2c: D1 01 00 B0 25 01 A7 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 B0 25 00 A6 [19:48:55]Write to MH i2c: 01 00 00 B1 25 D6 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]OFD Sender: No OFD packet to send [19:48:56]*** Cut start [19:48:56]*** Partial cut [19:48:56]*** CUTSNS_PIN = 1 [19:48:56]*** CUTSNS_PIN = 0 [19:48:56]*** Brake cut motor [19:48:56]Read from MH i2c: 01 [19:48:56]MH_I2C_Read... [19:48:56]*** Stop cut motor [19:48:56]*** Cut end [19:48:56]Read from MH i2c: 01 07 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [19:48:56]process_action close_receipt done [19:48:56]requested_data is exist [19:48:56]produce_requested_data [19:48:56]requested_item fm.sn is exist - process it [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 11 00 00 [19:48:56]Write to MH i2c: E2 08 00 B2 25 80 11 00 00 00 00 00 00 51 [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 17 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 17 00 B2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [19:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:48:56]wFMCommunicate OK [19:48:56]requested_item fd.num is exist - process it [19:48:56]SAM_PROTO_GetFieldsCounters [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 13 00 00 [19:48:56]Write to MH i2c: E2 08 00 B3 25 80 13 00 00 00 00 00 00 54 [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 62 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 62 00 B3 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:56]wFMCommunicate OK [19:48:56]SAM_PROTO_GetFieldsCounters done [19:48:56]requested_item shift.num is exist - process it [19:48:56]requested_item shift.opened is exist - process it [19:48:56]req_shift_opened [19:48:56]FM_GetShiftState [19:48:56]SAM_PROTO_GetShiftState [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 13 01 00 [19:48:56]Write to MH i2c: E2 08 00 B4 25 80 13 01 00 00 00 00 00 56 [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 B4 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [19:48:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:48:56]wFMCommunicate OK [19:48:56]SAM_PROTO_GetShiftState done [19:48:56]FM_GetShiftState done [19:48:56]req_shift_opened done [19:48:56]requested_item shift.open_date is exist - process it [19:48:56]req_shift_open_date [19:48:56]req_shift_open_date done [19:48:56]produce_requested_data done [19:48:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70428,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:48:56]process_action_free close_receipt [19:48:56]json_value_free [19:48:56]json_value_free done [19:48:56]process_json_proto returns [19:48:56]Send response to host [19:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70428,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:48:56]free response buf [19:48:56]execute_script done [19:48:56]execute_script returns [19:48:56]free content buf [19:48:56]Sock 7.Close socket [19:48:56]Sock 7.Thread stoped [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]accept exits with 9 [19:52:10]New connection [19:52:10]New thread 3066699108 created [19:52:10]Thread 3066555748 joined [19:52:10]Waiting for new connection... [19:52:10] Sock 9.Parse request [19:52:10]Sock 9.Check first char [19:52:10]Sock 9.First char is OK [19:52:10]request: POST /json_proto HTTP/1.0 [19:52:10]Method: POST [19:52:10]URL: /json_proto [19:52:10]Method is POST - this is cgi request [19:52:10]url: /json_proto [19:52:10]query_string will be loaded in cgi processing [19:52:10]execute_cgi json_proto POST (null) [19:52:10]execute_cgi path=json_proto method=POST [19:52:10]POST find Content-Length [19:52:10]Host: 172.17.50.3:8080 [19:52:10]Content-Length: 689 [19:52:10]Content-Type: application/json [19:52:10] [19:52:10]POST finish read [19:52:10]Found Content-Length = 689 [19:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 22.030, "sum" : 1700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:10]execute_script... [19: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)2886198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 22.030, "sum" : 1700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:10]POST & json_proto [19:52:10]process_json_proto [19:52:10]json parsed OK: [19:52:10]protocol is kg_v1.0 [19:52:10]action value=close_receipt [19:52:10]process_action close_receipt [19:52:10]cmd_close_receipt [19:52:10]MH_GetDate [19:52:10]Write to MH i2c: F0 00 00 B5 25 C9 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: F0 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: F0 09 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: F0 09 00 B5 25 00 6B 02 18 67 6B 98 1E 66 45 [19:52:10]GetLastDocTimeStamp 1729626533 [19:52:10]current date 1729626731 [19:52:10]FM_GetShiftState [19:52:10]SAM_PROTO_GetShiftState [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 13 01 00 [19:52:10]Write to MH i2c: E2 08 00 B6 25 80 13 01 00 00 00 00 00 58 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0E 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0E 00 B6 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [19:52:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_GetShiftState done [19:52:10]FM_GetShiftState done [19:52:10]opened in 1729555832 [19:52:10]opened+sec_in_day 1729642232 [19:52:10]quantity*price = 170071 [19:52:10]sum+1 = 170073 [19:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.61 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 377 22.10.2024 19:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70429 ФПД: 188561149891355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70429&fm=188561149891355&tin=02508201610067®Number=0000000000156251&sum=170000 [19:52:11]StoreToDocumentArchive [19:52:11]shift 195 fd 70429 [19:52:11]save to /storage/0195/doc_00070429 [19:52:11]save last doc name /storage/0195/doc_00070429 to /storage/kkm_last_doc_name [19:52:11]save OK [19:52:11]Clear old archive folders... [19:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:52:11]tlvbuf is 00EA4F50 [19:52:11]SAM_PROTO_ClearQueue [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 09 00 00 [19:52:11]Write to MH i2c: E2 08 00 C3 25 80 09 00 00 00 00 00 00 5A [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 C3 25 00 90 00 5C [19:52:11]RAPDU: 90 00 [19:52:11]wFMCommunicate OK [19:52:11]SAM_PROTO_ClearQueue done [19:52:11]KKMCreateOFDPacket [19:52:11]OFDProtocolAddRootSTLVToBuf [19:52:11]FM_MakeSignedData [19:52:11]FM_MakeSignedData [19:52:11]SAM_PROTO_SignData [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 0D 01 02 [19:52:11]Write to MH i2c: E2 08 00 C4 25 80 0D 01 02 00 00 00 00 62 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 C4 25 00 90 00 5D [19:52:11]RAPDU: 90 00 [19:52:11]wFMCommunicate OK [19:52:11]wFMCommunicate request_size=255 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 6B 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 13 01 [19:52:11]Write to MH i2c: E2 02 01 C5 25 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 6B 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 13 01 00 00 D5 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 C5 25 00 90 00 5E [19:52:11]RAPDU: 90 00 [19:52:11]wFMCommunicate OK [19:52:11]wFMCommunicate request_size=16 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AB 7E D0 5B 93 1B [19:52:11]Write to MH i2c: E2 13 00 C6 25 80 0D 02 02 0B 00 00 35 04 06 00 AB 7E D0 5B 93 1B 00 00 BC [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 03 00 C6 25 00 90 00 5F [19:52:11]RAPDU: 90 00 [19:52:11]wFMCommunicate OK [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 0D 03 02 [19:52:11]Write to MH i2c: E2 08 00 C7 25 80 0D 03 02 00 00 00 00 67 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0B 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0B 00 C7 25 00 E5 31 DC 49 DD 15 6B 92 90 00 92 [19:52:11]RAPDU: E5 31 DC 49 DD 15 6B 92 90 00 [19:52:11]wFMCommunicate OK [19:52:11]SAM_PROTO_SignData done [19:52:11]FM_MakeSignedData done [19:52:11]CreateOFDProtocolMessage [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 11 00 00 [19:52:11]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 17 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [19:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:52:11]wFMCommunicate OK [19:52:11]CreateOFDProtocolMessage done [19:52:11]OFDSenderStorePacket 70429 [19:52:11]StoreOFDPacket docnum=70429 [19:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 36 F5 0D 01 DA A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 6B 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 13 01 00 35 04 06 00 AB 7E D0 5B 93 1B E5 31 DC 49 DD 15 6B 92 [19:52:11]CheckFolder [19:52:11]dirname=/storage/ofd_packets [19:52:11]CheckFolder done [19:52:11]ProducePacketName [19:52:11]name=ofd_packets/00070429 [19:52:11]NVStorageSaveData ofd_packets/00070429 [19:52:11]File name is /storage/ofd_packets/00070429 [19:52:11]Write 307 bytes [19:52:11]NVStorageSaveData done [19:52:11]OFDSenderStorePacket done [19:52:11]KKMCreateOFDPacket done [19:52:11]NVStorageSaveData kkm_last_timestamp [19:52:11]File name is /storage/kkm_last_timestamp [19:52:11]Write 4 bytes [19:52:11]NVStorageSaveData done [19:52:11]ExternCall_PrintAddStr [19:52:11]wPrintStart [19:52:11]Write to MH i2c: 01 00 00 C9 25 EE [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 C9 25 00 00 00 00 00 FF 0F 03 [19:52:11]RasterBufferAndPrint [19:52:11]line Счет N : (1)2886198 [19:52:11]line ИНН: 02508201610067 [19:52:11]line Контрольно-Кассовый Чек [19:52:11]line ПРОДАЖА [19:52:11]line ТРК (МРК, ГНК) : 31 [19:52:11]line Товар: 2710194240 [19:52:11]line D-ENERGY Дт-К-2 [19:52:11]line 22.030 * 77.20 [19:52:11]line = 1700.72 [19:52:11]line НДС 12% НСП 1% [19:52:11]line > о реализуемом товаре [19:52:11]line ОКРУГЛЕНИЕ: -0.72 [19:52:11]line ИТОГО: 1700.00 [19:52:11]line Внесено: 1700.00 [19:52:11]line СДАЧА: 0.00 [19:52:11]line НСП 1% : 15.05 [19:52:11]line НДС 12% : 180.61 [19:52:11]line Наличными: 1700.00 [19:52:11]line Безнал.: 0.00 [19:52:11]line Место: АЗС № 85 "Партнер Нефть" [19:52:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:52:11]line СНО: Общий режим [19:52:11]line Чек 377 22.10.2024 19:52 [19:52:11]line Смена: 195 ФФД: 1.0 [19:52:11]line ЗНМ: 0300000167 [19:52:11]line РНМ: 0000000000156251 [19:52:11]line Версия ККМ: v1.0 [19:52:11]line ФМ: 0000000000963346 [19:52:11]line ФД: 70429 [19:52:11]line ФПД: 188561149891355 [19:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70429&fm=188561149891355&tin=02508201610067®Number=0000000000156251&sum=170000 [19:52:12]OFD Sender: Processing packet 70429 [packets to send 18, broken 17] [19:52:12]ProducePacketName [19:52:12]name=ofd_packets/00070429 [19:52:12]OFD Sender: To server: pG, [19:52:12]CommunicateWithHost lk.salyk.kg:30040 [19:52:12]ConnectInit lk.salyk.kg [19:52:12]written 0, free lines is 4095 [19:52:12]Connected sock=10 [19: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 34 36 15 01 00 00 36 F5 0D 01 DA A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 6B 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 13 01 00 35 04 06 00 AB 7E D0 5B 93 1B E5 31 DC 49 DD 15 6B 92 [19: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 34 36 4F 00 00 00 3B 22 47 00 48 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 34 36 10 04 04 00 1D 13 01 00 F4 03 04 00 0B AC 17 67 B6 04 01 00 00 89 DB 5B 3A 2E 30 14 93 [19:52:12]CommunicateWithHost err = 0 [19:52:12]CheckOFDResponse [19:52:12]1017 (14) - 77093643461234 [19:52:12]1041 (16) - 0000000000963346 [19:52:12]1040 (4) - 70429 [19:52:12]1012 (4) - 22.10.2024 13:43 [19:52:12]1206 (1) - 0 [19:52:12]OFD Sender: Remove packet 70429 [19:52:12]ProducePacketName [19:52:12]name=ofd_packets/00070429 [19:52:12]NVStorageDeleteData [19:52:12]Write to MH i2c: 01 00 00 F4 25 19 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 07 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 07 00 F4 25 00 00 00 00 00 F5 0C 21 [19:52:12]RasterBufferAndPrint [19:52:12]line [19:52:12]line [19:52:12]line [19:52:12]line [19:52:12]line [19:52:12]written 0, free lines is 3328 [19:52:12]MH_Cut [19:52:12]Write to MH i2c: D1 01 00 FB 25 01 F2 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: D1 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: D1 01 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: D1 01 00 FB 25 00 F1 [19:52:12]Write to MH i2c: 01 00 00 FC 25 21 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:13]OFD Sender: No OFD packet to send [19:52:13]*** Cut start [19:52:13]*** Partial cut [19:52:13]*** CUTSNS_PIN = 1 [19:52:13]*** CUTSNS_PIN = 0 [19:52:13]*** Brake cut motor [19:52:14]Read from MH i2c: 01 [19:52:14]MH_I2C_Read... [19:52:14]*** Stop cut motor [19:52:14]*** Cut end [19:52:14]Read from MH i2c: 01 07 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: 01 07 00 FC 25 00 00 00 00 00 FF 0F 36 [19:52:14]process_action close_receipt done [19:52:14]requested_data is exist [19:52:14]produce_requested_data [19:52:14]requested_item fm.sn is exist - process it [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 11 00 00 [19:52:14]Write to MH i2c: E2 08 00 FD 25 80 11 00 00 00 00 00 00 9C [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 17 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 17 00 FD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [19:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:52:14]wFMCommunicate OK [19:52:14]requested_item fd.num is exist - process it [19:52:14]SAM_PROTO_GetFieldsCounters [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 13 00 00 [19:52:14]Write to MH i2c: E2 08 00 FE 25 80 13 00 00 00 00 00 00 9F [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 62 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 62 00 FE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_GetFieldsCounters done [19:52:14]requested_item shift.num is exist - process it [19:52:14]requested_item shift.opened is exist - process it [19:52:14]req_shift_opened [19:52:14]FM_GetShiftState [19:52:14]SAM_PROTO_GetShiftState [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 13 01 00 [19:52:14]Write to MH i2c: E2 08 00 FF 25 80 13 01 00 00 00 00 00 A1 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0E 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0E 00 FF 25 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8F [19:52:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_GetShiftState done [19:52:14]FM_GetShiftState done [19:52:14]req_shift_opened done [19:52:14]requested_item shift.open_date is exist - process it [19:52:14]req_shift_open_date [19:52:14]req_shift_open_date done [19:52:14]produce_requested_data done [19:52:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70429,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:52:14]process_action_free close_receipt [19:52:14]json_value_free [19:52:14]json_value_free done [19:52:14]process_json_proto returns [19:52:14]Send response to host [19:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70429,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:52:14]free response buf [19:52:14]execute_script done [19:52:14]execute_script returns [19:52:14]free content buf [19:52:14]Sock 9.Close socket [19:52:14]Sock 9.Thread stoped [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:02]accept exits with 7 [19:54:02]New connection [19:54:02]New thread 3066555748 created [19:54:02]Thread 3066699108 joined [19:54:02]Waiting for new connection... [19:54:02] Sock 7.Parse request [19:54:02]Sock 7.Check first char [19:54:02]Sock 7.First char is OK [19:54:02]request: POST /json_proto HTTP/1.0 [19:54:02]Method: POST [19:54:02]URL: /json_proto [19:54:02]Method is POST - this is cgi request [19:54:02]url: /json_proto [19:54:02]query_string will be loaded in cgi processing [19:54:02]execute_cgi json_proto POST (null) [19:54:02]execute_cgi path=json_proto method=POST [19:54:02]POST find Content-Length [19:54:02]Host: 172.17.50.3:8080 [19:54:02]Content-Length: 679 [19:54:02]Content-Type: application/json [19:54:02] [19:54:02]POST finish read [19:54:02]Found Content-Length = 679 [19:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [19:54:02]execute_script... [19:54: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)2886199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [19:54:02]POST & json_proto [19:54:02]process_json_proto [19:54:02]json parsed OK: [19:54:02]protocol is kg_v1.0 [19:54:02]action value=close_receipt [19:54:02]process_action close_receipt [19:54:02]cmd_close_receipt [19:54:02]MH_GetDate [19:54:02]Write to MH i2c: F0 00 00 00 26 15 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: F0 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: F0 09 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: F0 09 00 00 26 00 DB 02 18 67 6B 98 1E 66 01 [19:54:02]GetLastDocTimeStamp 1729626731 [19:54:02]current date 1729626843 [19:54:02]FM_GetShiftState [19:54:02]SAM_PROTO_GetShiftState [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 13 01 00 [19:54:02]Write to MH i2c: E2 08 00 01 26 80 13 01 00 00 00 00 00 A4 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 0E 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 0E 00 01 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 92 [19:54:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:54:02]wFMCommunicate OK [19:54:02]SAM_PROTO_GetShiftState done [19:54:02]FM_GetShiftState done [19:54:02]opened in 1729555832 [19:54:02]opened+sec_in_day 1729642232 [19:54:02]quantity*price = 80012 [19:54:02]sum+1 = 80013 [19:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 378 22.10.2024 19:54 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70430 ФПД: 190416674566808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70430&fm=190416674566808&tin=02508201610067®Number=0000000000156251&sum=80000 [19:54:03]StoreToDocumentArchive [19:54:03]shift 195 fd 70430 [19:54:03]save to /storage/0195/doc_00070430 [19:54:03]save last doc name /storage/0195/doc_00070430 to /storage/kkm_last_doc_name [19:54:03]save OK [19:54:03]Clear old archive folders... [19:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:03]tlvbuf is 00EA4E60 [19:54:03]SAM_PROTO_ClearQueue [19:54:03]wFMCommunicate request_size=4 [19:54:03]MH_SAM_APDU [19:54:03]CAPDU: 80 09 00 00 [19:54:03]Write to MH i2c: E2 08 00 0E 26 80 09 00 00 00 00 00 00 A6 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 0E 26 00 90 00 A8 [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]SAM_PROTO_ClearQueue done [19:54:04]KKMCreateOFDPacket [19:54:04]OFDProtocolAddRootSTLVToBuf [19:54:04]FM_MakeSignedData [19:54:04]FM_MakeSignedData [19:54:04]SAM_PROTO_SignData [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 0D 01 02 [19:54:04]Write to MH i2c: E2 08 00 0F 26 80 0D 01 02 00 00 00 00 AE [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 0F 26 00 90 00 A9 [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]wFMCommunicate request_size=255 [19:54:04]MH_SAM_APDU [19:54: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 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 7A 01 00 00 F4 03 04 00 DB 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 13 01 00 35 04 06 00 AD [19:54:04]Write to MH i2c: E2 02 01 10 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 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 7A 01 00 00 F4 03 04 00 DB 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 13 01 00 35 04 06 00 AD 00 00 9C [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]wFMCommunicate request_size=10 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 0D 02 02 05 2E D6 3F 32 98 [19:54:04]Write to MH i2c: E2 0D 00 11 26 80 0D 02 02 05 00 2E D6 3F 32 98 00 00 C8 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 03 00 11 26 00 90 00 AB [19:54:04]RAPDU: 90 00 [19:54:04]wFMCommunicate OK [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 0D 03 02 [19:54:04]Write to MH i2c: E2 08 00 12 26 80 0D 03 02 00 00 00 00 B3 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 0B 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 0B 00 12 26 00 F0 BD 21 0C 8F 25 2E 21 90 00 91 [19:54:04]RAPDU: F0 BD 21 0C 8F 25 2E 21 90 00 [19:54:04]wFMCommunicate OK [19:54:04]SAM_PROTO_SignData done [19:54:04]FM_MakeSignedData done [19:54:04]CreateOFDProtocolMessage [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 11 00 00 [19:54:04]Write to MH i2c: E2 08 00 13 26 80 11 00 00 00 00 00 00 B3 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 17 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 17 00 13 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [19:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:54:04]wFMCommunicate OK [19:54:04]CreateOFDProtocolMessage done [19:54:04]OFDSenderStorePacket 70430 [19:54:04]StoreOFDPacket docnum=70430 [19:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FE 5C 07 01 0E 4B 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 7A 01 00 00 F4 03 04 00 DB 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 13 01 00 35 04 06 00 AD 2E D6 3F 32 98 F0 BD 21 0C 8F 25 2E 21 [19:54:04]CheckFolder [19:54:04]dirname=/storage/ofd_packets [19:54:04]CheckFolder done [19:54:04]ProducePacketName [19:54:04]name=ofd_packets/00070430 [19:54:04]NVStorageSaveData ofd_packets/00070430 [19:54:04]File name is /storage/ofd_packets/00070430 [19:54:04]Write 301 bytes [19:54:04]NVStorageSaveData done [19:54:04]OFDSenderStorePacket done [19:54:04]KKMCreateOFDPacket done [19:54:04]NVStorageSaveData kkm_last_timestamp [19:54:04]File name is /storage/kkm_last_timestamp [19:54:04]Write 4 bytes [19:54:04]NVStorageSaveData done [19:54:04]ExternCall_PrintAddStr [19:54:04]wPrintStart [19:54:04]Write to MH i2c: 01 00 00 14 26 3A [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 07 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 07 00 14 26 00 00 00 00 00 FF 0F 4F [19:54:04]RasterBufferAndPrint [19:54:04]line Счет N : (1)2886199 [19:54:04]line ИНН: 02508201610067 [19:54:04]line Контрольно-Кассовый Чек [19:54:04]line ПРОДАЖА [19:54:04]line ТРК (МРК, ГНК) : 32 [19:54:04]line Товар: 2710124130 [19:54:04]line Аи-92-К-5 [19:54:04]line 11.960 * 66.90 [19:54:04]line = 800.12 [19:54:04]line НДС 12% НСП 1% [19:54:04]line > о реализуемом товаре [19:54:04]line ОКРУГЛЕНИЕ: -0.12 [19:54:04]line ИТОГО: 800.00 [19:54:04]line Внесено: 800.00 [19:54:04]line СДАЧА: 0.00 [19:54:04]line НСП 1% : 7.08 [19:54:04]line НДС 12% : 84.97 [19:54:04]line Наличными: 800.00 [19:54:04]line Безнал.: 0.00 [19:54:04]line Место: АЗС № 85 "Партнер Нефть" [19:54:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:54:04]line СНО: Общий режим [19:54:04]line Чек 378 22.10.2024 19:54 [19:54:04]line Смена: 195 ФФД: 1.0 [19:54:04]line ЗНМ: 0300000167 [19:54:04]line РНМ: 0000000000156251 [19:54:04]line Версия ККМ: v1.0 [19:54:04]line ФМ: 0000000000963346 [19:54:04]line ФД: 70430 [19:54:04]line ФПД: 190416674566808 [19:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70430&fm=190416674566808&tin=02508201610067®Number=0000000000156251&sum=80000 [19:54:04]OFD Sender: Processing packet 70430 [packets to send 18, broken 17] [19:54:04]ProducePacketName [19:54:04]name=ofd_packets/00070430 [19:54:04]OFD Sender: To server: pG, [19:54:04]CommunicateWithHost lk.salyk.kg:30040 [19:54:04]ConnectInit lk.salyk.kg [19:54:04]written 0, free lines is 4095 [19:54:04]Connected sock=10 [19:54: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 34 36 0F 01 00 00 FE 5C 07 01 0E 4B 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 7A 01 00 00 F4 03 04 00 DB 02 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 13 01 00 35 04 06 00 AD 2E D6 3F 32 98 F0 BD 21 0C 8F 25 2E 21 [19:54: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 34 36 4F 00 00 00 0E 72 47 00 6D 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 34 36 10 04 04 00 1E 13 01 00 F4 03 04 00 7B AC 17 67 B6 04 01 00 00 2F A9 39 85 23 F7 68 0E [19:54:05]CommunicateWithHost err = 0 [19:54:05]CheckOFDResponse [19:54:05]1017 (14) - 77093643461234 [19:54:05]1041 (16) - 0000000000963346 [19:54:05]1040 (4) - 70430 [19:54:05]1012 (4) - 22.10.2024 13:45 [19:54:05]1206 (1) - 0 [19:54:05]OFD Sender: Remove packet 70430 [19:54:05]ProducePacketName [19:54:05]name=ofd_packets/00070430 [19:54:05]NVStorageDeleteData [19:54:05]Write to MH i2c: 01 00 00 3F 26 65 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 3F 26 00 00 00 00 00 F8 0C 70 [19:54:05]RasterBufferAndPrint [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]line [19:54:05]written 0, free lines is 3327 [19:54:05]MH_Cut [19:54:05]Write to MH i2c: D1 01 00 46 26 01 3E [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 01 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: D1 01 00 46 26 00 3D [19:54:05]Write to MH i2c: 01 00 00 47 26 6D [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]OFD Sender: No OFD packet to send [19:54:05]*** Cut start [19:54:05]*** Partial cut [19:54:05]*** CUTSNS_PIN = 1 [19:54:06]*** CUTSNS_PIN = 0 [19:54:06]*** Brake cut motor [19:54:06]Read from MH i2c: 01 [19:54:06]MH_I2C_Read... [19:54:06]*** Stop cut motor [19:54:06]*** Cut end [19:54:06]Read from MH i2c: 01 07 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 47 26 00 00 00 00 00 FF 0F 82 [19:54:06]process_action close_receipt done [19:54:06]requested_data is exist [19:54:06]produce_requested_data [19:54:06]requested_item fm.sn is exist - process it [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 11 00 00 [19:54:06]Write to MH i2c: E2 08 00 48 26 80 11 00 00 00 00 00 00 E8 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 48 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [19:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:54:06]wFMCommunicate OK [19:54:06]requested_item fd.num is exist - process it [19:54:06]SAM_PROTO_GetFieldsCounters [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 13 00 00 [19:54:06]Write to MH i2c: E2 08 00 49 26 80 13 00 00 00 00 00 00 EB [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 62 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 62 00 49 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [19:54: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_GetFieldsCounters done [19:54:06]requested_item shift.num is exist - process it [19:54:06]requested_item shift.opened is exist - process it [19:54:06]req_shift_opened [19:54:06]FM_GetShiftState [19:54:06]SAM_PROTO_GetShiftState [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 13 01 00 [19:54:06]Write to MH i2c: E2 08 00 4A 26 80 13 01 00 00 00 00 00 ED [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0E 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0E 00 4A 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DB [19:54:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_GetShiftState done [19:54:06]FM_GetShiftState done [19:54:06]req_shift_opened done [19:54:06]requested_item shift.open_date is exist - process it [19:54:06]req_shift_open_date [19:54:06]req_shift_open_date done [19:54:06]produce_requested_data done [19:54:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70430,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:54:06]process_action_free close_receipt [19:54:06]json_value_free [19:54:06]json_value_free done [19:54:06]process_json_proto returns [19:54:06]Send response to host [19:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70430,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:54:06]free response buf [19:54:06]execute_script done [19:54:06]execute_script returns [19:54:06]free content buf [19:54:06]Sock 7.Close socket [19:54:06]Sock 7.Thread stoped [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:33]accept exits with 9 [19:55:33]New connection [19:55:33]New thread 3066699108 created [19:55:33]Thread 3066555748 joined [19:55:33]Waiting for new connection... [19:55:33] Sock 9.Parse request [19:55:33]Sock 9.Check first char [19:55:33]Sock 9.First char is OK [19:55:33]request: POST /json_proto HTTP/1.0 [19:55:33]Method: POST [19:55:33]URL: /json_proto [19:55:33]Method is POST - this is cgi request [19:55:33]url: /json_proto [19:55:33]query_string will be loaded in cgi processing [19:55:33]execute_cgi json_proto POST (null) [19:55:33]execute_cgi path=json_proto method=POST [19:55:33]POST find Content-Length [19:55:33]Host: 172.17.50.3:8080 [19:55:33]Content-Length: 680 [19:55:33]Content-Type: application/json [19:55:33] [19:55:33]POST finish read [19:55:33]Found Content-Length = 680 [19:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886200", "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" ] } } [19:55:33]execute_script... [19:55: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)2886200", "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" ] } } [19:55:33]POST & json_proto [19:55:33]process_json_proto [19:55:33]json parsed OK: [19:55:33]protocol is kg_v1.0 [19:55:33]action value=close_receipt [19:55:33]process_action close_receipt [19:55:33]cmd_close_receipt [19:55:33]MH_GetDate [19:55:33]Write to MH i2c: F0 00 00 4B 26 60 [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: F0 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: F0 09 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: F0 09 00 4B 26 00 36 03 18 67 6B 98 1E 66 A8 [19:55:33]GetLastDocTimeStamp 1729626843 [19:55:33]current date 1729626934 [19:55:33]FM_GetShiftState [19:55:33]SAM_PROTO_GetShiftState [19:55:33]wFMCommunicate request_size=4 [19:55:33]MH_SAM_APDU [19:55:33]CAPDU: 80 13 01 00 [19:55:33]Write to MH i2c: E2 08 00 4C 26 80 13 01 00 00 00 00 00 EF [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:33]Read from MH i2c: E2 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: E2 0E 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: E2 0E 00 4C 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DD [19:55:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:55:33]wFMCommunicate OK [19:55:33]SAM_PROTO_GetShiftState done [19:55:33]FM_GetShiftState done [19:55:33]opened in 1729555832 [19:55:33]opened+sec_in_day 1729642232 [19:55:33]quantity*price = 100050 [19:55:33]sum+1 = 100052 [19:55: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 379 22.10.2024 19:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70431 ФПД: 72407016788865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70431&fm=72407016788865&tin=02508201610067®Number=0000000000156251&sum=100000 [19:55:34]StoreToDocumentArchive [19:55:34]shift 195 fd 70431 [19:55:34]save to /storage/0195/doc_00070431 [19:55:34]save last doc name /storage/0195/doc_00070431 to /storage/kkm_last_doc_name [19:55:34]save OK [19:55:34]Clear old archive folders... [19:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:55:34]tlvbuf is 00CA77B0 [19:55:34]SAM_PROTO_ClearQueue [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 09 00 00 [19:55:34]Write to MH i2c: E2 08 00 59 26 80 09 00 00 00 00 00 00 F1 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 59 26 00 90 00 F3 [19:55:34]RAPDU: 90 00 [19:55:34]wFMCommunicate OK [19:55:34]SAM_PROTO_ClearQueue done [19:55:34]KKMCreateOFDPacket [19:55:34]OFDProtocolAddRootSTLVToBuf [19:55:34]FM_MakeSignedData [19:55:34]FM_MakeSignedData [19:55:34]SAM_PROTO_SignData [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 0D 01 02 [19:55:34]Write to MH i2c: E2 08 00 5A 26 80 0D 01 02 00 00 00 00 F9 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [19:55:34]RAPDU: 90 00 [19:55:34]wFMCommunicate OK [19:55:34]wFMCommunicate request_size=255 [19:55:34]MH_SAM_APDU [19:55: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 7B 01 00 00 F4 03 04 00 36 03 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 13 01 00 35 04 06 00 41 DA 92 83 [19:55:34]Write to MH i2c: E2 02 01 5B 26 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 7B 01 00 00 F4 03 04 00 36 03 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 13 01 00 35 04 06 00 41 DA 92 83 00 00 D2 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 5B 26 00 90 00 F5 [19:55:34]RAPDU: 90 00 [19:55:34]wFMCommunicate OK [19:55:34]wFMCommunicate request_size=7 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 0D 02 02 02 D3 81 [19:55:34]Write to MH i2c: E2 0A 00 5C 26 80 0D 02 02 02 00 D3 81 00 00 54 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [19:55:34]RAPDU: 90 00 [19:55:34]wFMCommunicate OK [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 0D 03 02 [19:55:34]Write to MH i2c: E2 08 00 5D 26 80 0D 03 02 00 00 00 00 FE [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0B 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0B 00 5D 26 00 ED 74 D0 38 A1 DB 69 ED 90 00 3A [19:55:34]RAPDU: ED 74 D0 38 A1 DB 69 ED 90 00 [19:55:34]wFMCommunicate OK [19:55:34]SAM_PROTO_SignData done [19:55:34]FM_MakeSignedData done [19:55:34]CreateOFDProtocolMessage [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 11 00 00 [19:55:34]Write to MH i2c: E2 08 00 5E 26 80 11 00 00 00 00 00 00 FE [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 5E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [19:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:55:34]wFMCommunicate OK [19:55:34]CreateOFDProtocolMessage done [19:55:34]OFDSenderStorePacket 70431 [19:55:34]StoreOFDPacket docnum=70431 [19:55:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1B 25 04 01 E8 3B 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 7B 01 00 00 F4 03 04 00 36 03 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 13 01 00 35 04 06 00 41 DA 92 83 D3 81 ED 74 D0 38 A1 DB 69 ED [19:55:34]CheckFolder [19:55:34]dirname=/storage/ofd_packets [19:55:34]CheckFolder done [19:55:34]ProducePacketName [19:55:34]name=ofd_packets/00070431 [19:55:34]NVStorageSaveData ofd_packets/00070431 [19:55:34]File name is /storage/ofd_packets/00070431 [19:55:34]Write 298 bytes [19:55:34]NVStorageSaveData done [19:55:34]OFDSenderStorePacket done [19:55:34]KKMCreateOFDPacket done [19:55:34]NVStorageSaveData kkm_last_timestamp [19:55:34]File name is /storage/kkm_last_timestamp [19:55:34]Write 4 bytes [19:55:34]NVStorageSaveData done [19:55:34]ExternCall_PrintAddStr [19:55:34]wPrintStart [19:55:34]Write to MH i2c: 01 00 00 5F 26 85 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: 01 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: 01 07 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: 01 07 00 5F 26 00 00 00 00 00 FF 0F 9A [19:55:34]RasterBufferAndPrint [19:55:34]line Счет N : (1)2886200 [19:55:34]line ИНН: 02508201610067 [19:55:34]line Контрольно-Кассовый Чек [19:55:34]line ПРОДАЖА [19:55:34]line ТРК (МРК, ГНК) : 51 [19:55:34]line Товар: 2710194210 [19:55:34]line ДТ-К-5 [19:55:34]line 13.130 * 76.20 [19:55:34]line = 1000.51 [19:55:34]line НДС 12% НСП 1% [19:55:34]line > о реализуемом товаре [19:55:34]line ОКРУГЛЕНИЕ: -0.51 [19:55:34]line ИТОГО: 1000.00 [19:55:34]line Внесено: 1000.00 [19:55:34]line СДАЧА: 0.00 [19:55:34]line НСП 1% : 8.85 [19:55:34]line НДС 12% : 106.25 [19:55:34]line Наличными: 1000.00 [19:55:34]line Безнал.: 0.00 [19:55:34]line Место: АЗС № 85 "Партнер Нефть" [19:55:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:55:35]line СНО: Общий режим [19:55:35]line Чек 379 22.10.2024 19:55 [19:55:35]line Смена: 195 ФФД: 1.0 [19:55:35]line ЗНМ: 0300000167 [19:55:35]line РНМ: 0000000000156251 [19:55:35]line Версия ККМ: v1.0 [19:55:35]line ФМ: 0000000000963346 [19:55:35]line ФД: 70431 [19:55:35]line ФПД: 72407016788865 [19:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70431&fm=72407016788865&tin=02508201610067®Number=0000000000156251&sum=100000 [19:55:35]OFD Sender: Processing packet 70431 [packets to send 18, broken 17] [19:55:35]ProducePacketName [19:55:35]name=ofd_packets/00070431 [19:55:35]OFD Sender: To server: pG, [19:55:35]CommunicateWithHost lk.salyk.kg:30040 [19:55:35]ConnectInit lk.salyk.kg [19:55:35]written 0, free lines is 4095 [19:55:35]Connected sock=10 [19:55: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 34 36 0C 01 00 00 1B 25 04 01 E8 3B 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 7B 01 00 00 F4 03 04 00 36 03 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 13 01 00 35 04 06 00 41 DA 92 83 D3 81 ED 74 D0 38 A1 DB 69 ED [19:55: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 34 36 4F 00 00 00 44 37 47 00 2C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 13 01 00 F4 03 04 00 D6 AC 17 67 B6 04 01 00 00 04 77 BB ED EF EC 02 D3 [19:55:35]CommunicateWithHost err = 0 [19:55:35]CheckOFDResponse [19:55:35]1017 (14) - 77093643461234 [19:55:35]1041 (16) - 0000000000963346 [19:55:35]1040 (4) - 70431 [19:55:35]1012 (4) - 22.10.2024 13:47 [19:55:35]1206 (1) - 0 [19:55:35]OFD Sender: Remove packet 70431 [19:55:35]ProducePacketName [19:55:35]name=ofd_packets/00070431 [19:55:35]NVStorageDeleteData [19:55:35]Write to MH i2c: 01 00 00 8A 26 B0 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: 01 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: 01 07 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: 01 07 00 8A 26 00 00 00 00 00 E7 0C AA [19:55:35]RasterBufferAndPrint [19:55:35]line [19:55:35]line [19:55:35]line [19:55:35]line [19:55:35]line [19:55:35]written 0, free lines is 3309 [19:55:35]MH_Cut [19:55:35]Write to MH i2c: D1 01 00 91 26 01 89 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: D1 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: D1 01 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: D1 01 00 91 26 00 88 [19:55:35]Write to MH i2c: 01 00 00 92 26 B8 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:36]OFD Sender: No OFD packet to send [19:55:36]*** Cut start [19:55:36]*** Partial cut [19:55:36]*** CUTSNS_PIN = 1 [19:55:36]*** CUTSNS_PIN = 0 [19:55:36]*** Brake cut motor [19:55:37]Read from MH i2c: 01 [19:55:37]MH_I2C_Read... [19:55:37]*** Stop cut motor [19:55:37]*** Cut end [19:55:37]Read from MH i2c: 01 07 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: 01 07 00 92 26 00 00 00 00 00 FF 0F CD [19:55:37]process_action close_receipt done [19:55:37]requested_data is exist [19:55:37]produce_requested_data [19:55:37]requested_item fm.sn is exist - process it [19:55:37]wFMCommunicate request_size=4 [19:55:37]MH_SAM_APDU [19:55:37]CAPDU: 80 11 00 00 [19:55:37]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 17 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [19:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:55:37]wFMCommunicate OK [19:55:37]requested_item fd.num is exist - process it [19:55:37]SAM_PROTO_GetFieldsCounters [19:55:37]wFMCommunicate request_size=4 [19:55:37]MH_SAM_APDU [19:55:37]CAPDU: 80 13 00 00 [19:55:37]Write to MH i2c: E2 08 00 94 26 80 13 00 00 00 00 00 00 36 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 62 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 62 00 94 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:37]wFMCommunicate OK [19:55:37]SAM_PROTO_GetFieldsCounters done [19:55:37]requested_item shift.num is exist - process it [19:55:37]requested_item shift.opened is exist - process it [19:55:37]req_shift_opened [19:55:37]FM_GetShiftState [19:55:37]SAM_PROTO_GetShiftState [19:55:37]wFMCommunicate request_size=4 [19:55:37]MH_SAM_APDU [19:55:37]CAPDU: 80 13 01 00 [19:55:37]Write to MH i2c: E2 08 00 95 26 80 13 01 00 00 00 00 00 38 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 0E 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 0E 00 95 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 26 [19:55:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [19:55:37]wFMCommunicate OK [19:55:37]SAM_PROTO_GetShiftState done [19:55:37]FM_GetShiftState done [19:55:37]req_shift_opened done [19:55:37]requested_item shift.open_date is exist - process it [19:55:37]req_shift_open_date [19:55:37]req_shift_open_date done [19:55:37]produce_requested_data done [19:55:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70431,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [19:55:37]process_action_free close_receipt [19:55:37]json_value_free [19:55:37]json_value_free done [19:55:37]process_json_proto returns [19:55:37]Send response to host [19:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70431,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [19:55:37]free response buf [19:55:37]execute_script done [19:55:37]execute_script returns [19:55:37]free content buf [19:55:37]Sock 9.Close socket [19:55:37]Sock 9.Thread stoped [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:45]accept exits with 7 [20:06:45]New connection [20:06:45]New thread 3066555748 created [20:06:45]Thread 3066699108 joined [20:06:45]Waiting for new connection... [20:06:45] Sock 7.Parse request [20:06:45]Sock 7.Check first char [20:06:45]Sock 7.First char is OK [20:06:45]request: POST /json_proto HTTP/1.0 [20:06:45]Method: POST [20:06:45]URL: /json_proto [20:06:45]Method is POST - this is cgi request [20:06:45]url: /json_proto [20:06:45]query_string will be loaded in cgi processing [20:06:45]execute_cgi json_proto POST (null) [20:06:45]execute_cgi path=json_proto method=POST [20:06:45]POST find Content-Length [20:06:45]Host: 172.17.50.3:8080 [20:06:45]Content-Length: 773 [20:06:45]Content-Type: application/json [20:06:45] [20:06:45]POST finish read [20:06:45]Found Content-Length = 773 [20:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:45]execute_script... [20:06: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)2886201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:45]POST & json_proto [20:06:45]process_json_proto [20:06:45]json parsed OK: [20:06:45]protocol is kg_v1.0 [20:06:45]action value=close_receipt [20:06:45]process_action close_receipt [20:06:45]cmd_close_receipt [20:06:45]MH_GetDate [20:06:45]Write to MH i2c: F0 00 00 96 26 AB [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: F0 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: F0 09 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: F0 09 00 96 26 00 D6 05 18 67 6B 98 1E 66 95 [20:06:45]GetLastDocTimeStamp 1729626934 [20:06:45]current date 1729627606 [20:06:45]FM_GetShiftState [20:06:45]SAM_PROTO_GetShiftState [20:06:45]wFMCommunicate request_size=4 [20:06:45]MH_SAM_APDU [20:06:45]CAPDU: 80 13 01 00 [20:06:45]Write to MH i2c: E2 08 00 97 26 80 13 01 00 00 00 00 00 3A [20:06:45]Write i2c OK [20:06:45]MH_I2C_Read... [20:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:45]Read from MH i2c: E2 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 0E 00 [20:06:45]MH_I2C_Read... [20:06:45]Read from MH i2c: E2 0E 00 97 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 28 [20:06:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:06:45]wFMCommunicate OK [20:06:45]SAM_PROTO_GetShiftState done [20:06:45]FM_GetShiftState done [20:06:45]opened in 1729555832 [20:06:45]opened+sec_in_day 1729642232 [20:06:45]quantity*price = 150037 [20:06:45]sum+1 = 150038 [20:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.37 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.37 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 380 22.10.2024 20:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70432 ФПД: 124056998539295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70432&fm=124056998539295&tin=02508201610067®Number=0000000000156251&sum=150037 [20:06:46]StoreToDocumentArchive [20:06:46]shift 195 fd 70432 [20:06:46]save to /storage/0195/doc_00070432 [20:06:46]save last doc name /storage/0195/doc_00070432 to /storage/kkm_last_doc_name [20:06:46]save OK [20:06:46]Clear old archive folders... [20:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:06:46]tlvbuf is 00ED4840 [20:06:46]SAM_PROTO_ClearQueue [20:06:46]wFMCommunicate request_size=4 [20:06:46]MH_SAM_APDU [20:06:46]CAPDU: 80 09 00 00 [20:06:46]Write to MH i2c: E2 08 00 A4 26 80 09 00 00 00 00 00 00 3C [20:06:46]Write i2c OK [20:06:46]MH_I2C_Read... [20:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:46]Read from MH i2c: E2 [20:06:46]MH_I2C_Read... [20:06:46]Read from MH i2c: E2 03 00 [20:06:46]MH_I2C_Read... [20:06:46]Read from MH i2c: E2 03 00 A4 26 00 90 00 3E [20:06:46]RAPDU: 90 00 [20:06:46]wFMCommunicate OK [20:06:46]SAM_PROTO_ClearQueue done [20:06:46]KKMCreateOFDPacket [20:06:46]OFDProtocolAddRootSTLVToBuf [20:06:46]FM_MakeSignedData [20:06:46]FM_MakeSignedData [20:06:46]SAM_PROTO_SignData [20:06:46]wFMCommunicate request_size=4 [20:06:46]MH_SAM_APDU [20:06:46]CAPDU: 80 0D 01 02 [20:06:46]Write to MH i2c: E2 08 00 A5 26 80 0D 01 02 00 00 00 00 44 [20:06:46]Write i2c OK [20:06:46]MH_I2C_Read... [20:06:46]OFD Sender: No OFD packet to send [20:06:46]Read from MH i2c: E2 [20:06:46]MH_I2C_Read... [20:06:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:46]Read from MH i2c: E2 03 00 [20:06:46]MH_I2C_Read... [20:06:46]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [20:06:46]RAPDU: 90 00 [20:06:46]wFMCommunicate OK [20:06:46]wFMCommunicate request_size=255 [20:06:46]MH_SAM_APDU [20:06:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 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 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 D6 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 13 01 00 35 04 06 00 70 D4 [20:06:46]Write to MH i2c: E2 02 01 A6 26 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 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 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 D6 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 13 01 00 35 04 06 00 70 D4 00 00 5C [20:06:46]Write i2c OK [20:06:46]MH_I2C_Read... [20:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:46]Read from MH i2c: E2 [20:06:46]MH_I2C_Read... [20:06:46]Read from MH i2c: E2 03 00 [20:06:46]MH_I2C_Read... [20:06:46]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [20:06:46]RAPDU: 90 00 [20:06:46]wFMCommunicate OK [20:06:46]wFMCommunicate request_size=9 [20:06:46]MH_SAM_APDU [20:06:46]CAPDU: 80 0D 02 02 04 45 54 70 1F [20:06:46]Write to MH i2c: E2 0C 00 A7 26 80 0D 02 02 04 00 45 54 70 1F 00 00 77 [20:06:46]Write i2c OK [20:06:46]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 03 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [20:06:47]RAPDU: 90 00 [20:06:47]wFMCommunicate OK [20:06:47]wFMCommunicate request_size=4 [20:06:47]MH_SAM_APDU [20:06:47]CAPDU: 80 0D 03 02 [20:06:47]Write to MH i2c: E2 08 00 A8 26 80 0D 03 02 00 00 00 00 49 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 0B 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 0B 00 A8 26 00 92 DD 68 1D BF 67 E6 F3 90 00 3D [20:06:47]RAPDU: 92 DD 68 1D BF 67 E6 F3 90 00 [20:06:47]wFMCommunicate OK [20:06:47]SAM_PROTO_SignData done [20:06:47]FM_MakeSignedData done [20:06:47]CreateOFDProtocolMessage [20:06:47]wFMCommunicate request_size=4 [20:06:47]MH_SAM_APDU [20:06:47]CAPDU: 80 11 00 00 [20:06:47]Write to MH i2c: E2 08 00 A9 26 80 11 00 00 00 00 00 00 49 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 17 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 17 00 A9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [20:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:06:47]wFMCommunicate OK [20:06:47]CreateOFDProtocolMessage done [20:06:47]OFDSenderStorePacket 70432 [20:06:47]StoreOFDPacket docnum=70432 [20:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D9 20 06 01 B0 1F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 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 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 D6 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 13 01 00 35 04 06 00 70 D4 45 54 70 1F 92 DD 68 1D BF 67 E6 F3 [20:06:47]CheckFolder [20:06:47]dirname=/storage/ofd_packets [20:06:47]CheckFolder done [20:06:47]ProducePacketName [20:06:47]name=ofd_packets/00070432 [20:06:47]NVStorageSaveData ofd_packets/00070432 [20:06:47]File name is /storage/ofd_packets/00070432 [20:06:47]Write 300 bytes [20:06:47]NVStorageSaveData done [20:06:47]OFDSenderStorePacket done [20:06:47]KKMCreateOFDPacket done [20:06:47]NVStorageSaveData kkm_last_timestamp [20:06:47]File name is /storage/kkm_last_timestamp [20:06:47]Write 4 bytes [20:06:47]NVStorageSaveData done [20:06:47]ExternCall_PrintAddStr [20:06:47]wPrintStart [20:06:47]Write to MH i2c: 01 00 00 AA 26 D0 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 07 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 07 00 AA 26 00 00 00 00 00 FF 0F E5 [20:06:47]RasterBufferAndPrint [20:06:47]line Счет N : (1)2886201 [20:06:47]line ИНН: 02508201610067 [20:06:47]line Контрольно-Кассовый Чек [20:06:47]line ПРОДАЖА [20:06:47]line ТРК (МРК, ГНК) : 71 [20:06:47]line Товар: 2711129700 [20:06:47]line ГАЗ-К-3 [20:06:47]line 38.570 * 38.90 [20:06:47]line = 1500.37 [20:06:47]line НДС 12% НСП 1% [20:06:47]line > о реализуемом товаре [20:06:47]line ИТОГО: 1500.37 [20:06:47]line НСП 1% : 13.28 [20:06:47]line НДС 12% : 159.33 [20:06:47]line Наличными: 0.00 [20:06:47]line Безнал.: 1500.37 [20:06:47]line Место: АЗС № 85 "Партнер Нефть" [20:06:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:06:47]line СНО: Общий режим [20:06:47]line Чек 380 22.10.2024 20:06 [20:06:47]line Смена: 195 ФФД: 1.0 [20:06:47]line ЗНМ: 0300000167 [20:06:47]line РНМ: 0000000000156251 [20:06:47]line Версия ККМ: v1.0 [20:06:47]line Платежная система: Mbank [20:06:47]line ФМ: 0000000000963346 [20:06:47]line ФД: 70432 [20:06:47]line ФПД: 124056998539295 [20:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70432&fm=124056998539295&tin=02508201610067®Number=0000000000156251&sum=150037 [20:06:47]OFD Sender: Processing packet 70432 [packets to send 18, broken 17] [20:06:47]ProducePacketName [20:06:47]name=ofd_packets/00070432 [20:06:47]OFD Sender: To server: pG, [20:06:47]CommunicateWithHost lk.salyk.kg:30040 [20:06:47]ConnectInit lk.salyk.kg [20:06:47]written 0, free lines is 4095 [20:06:47]Connected sock=10 [20:06: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 34 36 0E 01 00 00 D9 20 06 01 B0 1F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 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 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 D6 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 13 01 00 35 04 06 00 70 D4 45 54 70 1F 92 DD 68 1D BF 67 E6 F3 [20:06: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 34 36 4F 00 00 00 86 71 47 00 AE 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 34 36 10 04 04 00 20 13 01 00 F4 03 04 00 76 AF 17 67 B6 04 01 00 00 8D 3F AC 29 74 41 B2 E4 [20:06:47]CommunicateWithHost err = 0 [20:06:47]CheckOFDResponse [20:06:47]1017 (14) - 77093643461234 [20:06:47]1041 (16) - 0000000000963346 [20:06:47]1040 (4) - 70432 [20:06:47]1012 (4) - 22.10.2024 13:58 [20:06:47]1206 (1) - 0 [20:06:47]OFD Sender: Remove packet 70432 [20:06:47]ProducePacketName [20:06:47]name=ofd_packets/00070432 [20:06:47]NVStorageDeleteData [20:06:47]Write to MH i2c: 01 00 00 D3 26 F9 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 07 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 24 0D 31 [20:06:47]RasterBufferAndPrint [20:06:47]line [20:06:47]line [20:06:47]line [20:06:47]line [20:06:47]line [20:06:47]written 0, free lines is 3370 [20:06:47]MH_Cut [20:06:47]Write to MH i2c: D1 01 00 DA 26 01 D2 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: D1 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: D1 01 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: D1 01 00 DA 26 00 D1 [20:06:47]Write to MH i2c: 01 00 00 DB 26 01 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:48]OFD Sender: No OFD packet to send [20:06:48]*** Cut start [20:06:48]*** Partial cut [20:06:48]*** CUTSNS_PIN = 1 [20:06:48]*** CUTSNS_PIN = 0 [20:06:48]*** Brake cut motor [20:06:49]Read from MH i2c: 01 [20:06:49]MH_I2C_Read... [20:06:49]*** Stop cut motor [20:06:49]*** Cut end [20:06:49]Read from MH i2c: 01 07 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: 01 07 00 DB 26 00 00 00 00 00 FF 0F 16 [20:06:49]process_action close_receipt done [20:06:49]requested_data is exist [20:06:49]produce_requested_data [20:06:49]requested_item fm.sn is exist - process it [20:06:49]wFMCommunicate request_size=4 [20:06:49]MH_SAM_APDU [20:06:49]CAPDU: 80 11 00 00 [20:06:49]Write to MH i2c: E2 08 00 DC 26 80 11 00 00 00 00 00 00 7C [20:06:49]Write i2c OK [20:06:49]MH_I2C_Read... [20:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:49]Read from MH i2c: E2 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 17 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 17 00 DC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [20:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:06:49]wFMCommunicate OK [20:06:49]requested_item fd.num is exist - process it [20:06:49]SAM_PROTO_GetFieldsCounters [20:06:49]wFMCommunicate request_size=4 [20:06:49]MH_SAM_APDU [20:06:49]CAPDU: 80 13 00 00 [20:06:49]Write to MH i2c: E2 08 00 DD 26 80 13 00 00 00 00 00 00 7F [20:06:49]Write i2c OK [20:06:49]MH_I2C_Read... [20:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:49]Read from MH i2c: E2 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 62 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 62 00 DD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [20:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:49]wFMCommunicate OK [20:06:49]SAM_PROTO_GetFieldsCounters done [20:06:49]requested_item shift.num is exist - process it [20:06:49]requested_item shift.opened is exist - process it [20:06:49]req_shift_opened [20:06:49]FM_GetShiftState [20:06:49]SAM_PROTO_GetShiftState [20:06:49]wFMCommunicate request_size=4 [20:06:49]MH_SAM_APDU [20:06:49]CAPDU: 80 13 01 00 [20:06:49]Write to MH i2c: E2 08 00 DE 26 80 13 01 00 00 00 00 00 81 [20:06:49]Write i2c OK [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 [20:06:49]MH_I2C_Read... [20:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:49]Read from MH i2c: E2 0E 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 0E 00 DE 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6F [20:06:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:06:49]wFMCommunicate OK [20:06:49]SAM_PROTO_GetShiftState done [20:06:49]FM_GetShiftState done [20:06:49]req_shift_opened done [20:06:49]requested_item shift.open_date is exist - process it [20:06:49]req_shift_open_date [20:06:49]req_shift_open_date done [20:06:49]produce_requested_data done [20:06:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70432,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:06:49]process_action_free close_receipt [20:06:49]json_value_free [20:06:49]json_value_free done [20:06:49]process_json_proto returns [20:06:49]Send response to host [20:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70432,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:06:49]free response buf [20:06:49]execute_script done [20:06:49]execute_script returns [20:06:49]free content buf [20:06:49]Sock 7.Close socket [20:06:49]Sock 7.Thread stoped [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:02]accept exits with 9 [20:07:02]New connection [20:07:02]New thread 3066699108 created [20:07:02]Thread 3066555748 joined [20:07:02]Waiting for new connection... [20:07:02] Sock 9.Parse request [20:07:02]Sock 9.Check first char [20:07:02]Sock 9.First char is OK [20:07:02]request: POST /json_proto HTTP/1.0 [20:07:02]Method: POST [20:07:02]URL: /json_proto [20:07:02]Method is POST - this is cgi request [20:07:02]url: /json_proto [20:07:02]query_string will be loaded in cgi processing [20:07:02]execute_cgi json_proto POST (null) [20:07:02]execute_cgi path=json_proto method=POST [20:07:02]POST find Content-Length [20:07:02]Host: 172.17.50.3:8080 [20:07:02]Content-Length: 680 [20:07:02]Content-Type: application/json [20:07:02] [20:07:02]POST finish read [20:07:02]Found Content-Length = 680 [20:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886202", "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" : 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" ] } } [20:07:02]execute_script... [20:07: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)2886202", "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" : 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" ] } } [20:07:02]POST & json_proto [20:07:02]process_json_proto [20:07:02]json parsed OK: [20:07:02]protocol is kg_v1.0 [20:07:02]action value=close_receipt [20:07:02]process_action close_receipt [20:07:02]cmd_close_receipt [20:07:02]MH_GetDate [20:07:02]Write to MH i2c: F0 00 00 DF 26 F4 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 DF 26 00 E7 05 18 67 6B 98 1E 66 EF [20:07:02]GetLastDocTimeStamp 1729627606 [20:07:02]current date 1729627623 [20:07:02]FM_GetShiftState [20:07:02]SAM_PROTO_GetShiftState [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 13 01 00 [20:07:02]Write to MH i2c: E2 08 00 E0 26 80 13 01 00 00 00 00 00 83 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 E0 26 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 71 [20:07:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_GetShiftState done [20:07:02]FM_GetShiftState done [20:07:02]opened in 1729555832 [20:07:02]opened+sec_in_day 1729642232 [20:07:02]quantity*price = 150037 [20:07:02]sum+1 = 150039 [20:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 381 22.10.2024 20:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70433 ФПД: 153349671006715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70433&fm=153349671006715&tin=02508201610067®Number=0000000000156251&sum=150000 [20:07:03]StoreToDocumentArchive [20:07:03]shift 195 fd 70433 [20:07:03]save to /storage/0195/doc_00070433 [20:07:03]save last doc name /storage/0195/doc_00070433 to /storage/kkm_last_doc_name [20:07:03]save OK [20:07:03]Clear old archive folders... [20:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:07:03]tlvbuf is B6E9C350 [20:07:03]SAM_PROTO_ClearQueue [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 09 00 00 [20:07:03]Write to MH i2c: E2 08 00 ED 26 80 09 00 00 00 00 00 00 85 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_ClearQueue done [20:07:03]KKMCreateOFDPacket [20:07:03]OFDProtocolAddRootSTLVToBuf [20:07:03]FM_MakeSignedData [20:07:03]FM_MakeSignedData [20:07:03]SAM_PROTO_SignData [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 01 02 [20:07:03]Write to MH i2c: E2 08 00 EE 26 80 0D 01 02 00 00 00 00 8D [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=255 [20:07:03]MH_SAM_APDU [20:07:03]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 7D 01 00 00 F4 03 04 00 E7 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 13 01 00 35 04 06 00 8B 78 80 AA [20:07:03]Write to MH i2c: E2 02 01 EF 26 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 7D 01 00 00 F4 03 04 00 E7 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 13 01 00 35 04 06 00 8B 78 80 AA 00 00 91 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 EF 26 00 90 00 89 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=7 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 02 02 02 B1 FB [20:07:04]Write to MH i2c: E2 0A 00 F0 26 80 0D 02 02 02 00 B1 FB 00 00 40 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 03 02 [20:07:04]Write to MH i2c: E2 08 00 F1 26 80 0D 03 02 00 00 00 00 92 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 F1 26 00 93 89 60 9C 12 92 3F 4C 90 00 DA [20:07:04]RAPDU: 93 89 60 9C 12 92 3F 4C 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_SignData done [20:07:04]FM_MakeSignedData done [20:07:04]CreateOFDProtocolMessage [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 11 00 00 [20:07:04]Write to MH i2c: E2 08 00 F2 26 80 11 00 00 00 00 00 00 92 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 F2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [20:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:04]wFMCommunicate OK [20:07:04]CreateOFDProtocolMessage done [20:07:04]OFDSenderStorePacket 70433 [20:07:04]StoreOFDPacket docnum=70433 [20:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 79 B2 04 01 20 C9 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 7D 01 00 00 F4 03 04 00 E7 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 13 01 00 35 04 06 00 8B 78 80 AA B1 FB 93 89 60 9C 12 92 3F 4C [20:07:04]CheckFolder [20:07:04]dirname=/storage/ofd_packets [20:07:04]CheckFolder done [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00070433 [20:07:04]NVStorageSaveData ofd_packets/00070433 [20:07:04]File name is /storage/ofd_packets/00070433 [20:07:04]Write 298 bytes [20:07:04]NVStorageSaveData done [20:07:04]OFDSenderStorePacket done [20:07:04]KKMCreateOFDPacket done [20:07:04]NVStorageSaveData kkm_last_timestamp [20:07:04]File name is /storage/kkm_last_timestamp [20:07:04]Write 4 bytes [20:07:04]NVStorageSaveData done [20:07:04]ExternCall_PrintAddStr [20:07:04]wPrintStart [20:07:04]Write to MH i2c: 01 00 00 F3 26 19 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 F3 26 00 00 00 00 00 FF 0F 2E [20:07:04]RasterBufferAndPrint [20:07:04]line Счет N : (1)2886202 [20:07:04]line ИНН: 02508201610067 [20:07:04]line Контрольно-Кассовый Чек [20:07:04]line ПРОДАЖА [20:07:04]line ТРК (МРК, ГНК) : 51 [20:07:04]line Товар: 2710194210 [20:07:04]line ДТ-К-5 [20:07:04]line 19.690 * 76.20 [20:07:04]line = 1500.38 [20:07:04]line НДС 12% НСП 1% [20:07:04]line > о реализуемом товаре [20:07:04]line ОКРУГЛЕНИЕ: -0.38 [20:07:04]line ИТОГО: 1500.00 [20:07:04]line Внесено: 1500.00 [20:07:04]line СДАЧА: 0.00 [20:07:04]line НСП 1% : 13.28 [20:07:04]line НДС 12% : 159.33 [20:07:04]line Наличными: 1500.00 [20:07:04]line Безнал.: 0.00 [20:07:04]line Место: АЗС № 85 "Партнер Нефть" [20:07:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:07:04]line СНО: Общий режим [20:07:04]line Чек 381 22.10.2024 20:07 [20:07:04]line Смена: 195 ФФД: 1.0 [20:07:04]line ЗНМ: 0300000167 [20:07:04]line РНМ: 0000000000156251 [20:07:04]line Версия ККМ: v1.0 [20:07:04]line ФМ: 0000000000963346 [20:07:04]line ФД: 70433 [20:07:04]line ФПД: 153349671006715 [20:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70433&fm=153349671006715&tin=02508201610067®Number=0000000000156251&sum=150000 [20:07:04]OFD Sender: Processing packet 70433 [packets to send 18, broken 17] [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00070433 [20:07:04]OFD Sender: To server: pG, [20:07:04]CommunicateWithHost lk.salyk.kg:30040 [20:07:04]ConnectInit lk.salyk.kg [20:07:04]written 0, free lines is 4095 [20:07:04]Connected sock=10 [20:07: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 34 36 0C 01 00 00 79 B2 04 01 20 C9 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 7D 01 00 00 F4 03 04 00 E7 05 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 13 01 00 35 04 06 00 8B 78 80 AA B1 FB 93 89 60 9C 12 92 3F 4C [20:07: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 34 36 4F 00 00 00 EB 85 47 00 34 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 34 36 10 04 04 00 21 13 01 00 F4 03 04 00 87 AF 17 67 B6 04 01 00 00 46 9F 6E 45 EC 38 FA 5A [20:07:04]CommunicateWithHost err = 0 [20:07:04]CheckOFDResponse [20:07:04]1017 (14) - 77093643461234 [20:07:04]1041 (16) - 0000000000963346 [20:07:04]1040 (4) - 70433 [20:07:04]1012 (4) - 22.10.2024 13:58 [20:07:04]1206 (1) - 0 [20:07:04]OFD Sender: Remove packet 70433 [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00070433 [20:07:04]NVStorageDeleteData [20:07:05]Write to MH i2c: 01 00 00 1E 27 45 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 F6 0C 4E [20:07:05]RasterBufferAndPrint [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]written 0, free lines is 3328 [20:07:05]MH_Cut [20:07:05]Write to MH i2c: D1 01 00 25 27 01 1E [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 25 27 00 1D [20:07:05]Write to MH i2c: 01 00 00 26 27 4D [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]OFD Sender: No OFD packet to send [20:07:05]*** Cut start [20:07:05]*** Partial cut [20:07:05]*** CUTSNS_PIN = 1 [20:07:05]*** CUTSNS_PIN = 0 [20:07:06]*** Brake cut motor [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]*** Stop cut motor [20:07:06]*** Cut end [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 26 27 00 00 00 00 00 FF 0F 62 [20:07:06]process_action close_receipt done [20:07:06]requested_data is exist [20:07:06]produce_requested_data [20:07:06]requested_item fm.sn is exist - process it [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 11 00 00 [20:07:06]Write to MH i2c: E2 08 00 27 27 80 11 00 00 00 00 00 00 C8 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 27 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [20:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:06]wFMCommunicate OK [20:07:06]requested_item fd.num is exist - process it [20:07:06]SAM_PROTO_GetFieldsCounters [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 13 00 00 [20:07:06]Write to MH i2c: E2 08 00 28 27 80 13 00 00 00 00 00 00 CB [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 62 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 62 00 28 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [20:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:06]wFMCommunicate OK [20:07:06]SAM_PROTO_GetFieldsCounters done [20:07:06]requested_item shift.num is exist - process it [20:07:06]requested_item shift.opened is exist - process it [20:07:06]req_shift_opened [20:07:06]FM_GetShiftState [20:07:06]SAM_PROTO_GetShiftState [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 13 01 00 [20:07:06]Write to MH i2c: E2 08 00 29 27 80 13 01 00 00 00 00 00 CD [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 0E 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 0E 00 29 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BB [20:07:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:07:06]wFMCommunicate OK [20:07:06]SAM_PROTO_GetShiftState done [20:07:06]FM_GetShiftState done [20:07:06]req_shift_opened done [20:07:06]requested_item shift.open_date is exist - process it [20:07:06]req_shift_open_date [20:07:06]req_shift_open_date done [20:07:06]produce_requested_data done [20:07:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70433,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:07:06]process_action_free close_receipt [20:07:06]json_value_free [20:07:06]json_value_free done [20:07:06]process_json_proto returns [20:07:06]Send response to host [20:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70433,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:07:06]free response buf [20:07:06]execute_script done [20:07:06]execute_script returns [20:07:06]free content buf [20:07:06]Sock 9.Close socket [20:07:06]Sock 9.Thread stoped [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:32]accept exits with 7 [20:19:32]New connection [20:19:32]New thread 3066555748 created [20:19:32]Thread 3066699108 joined [20:19:32]Waiting for new connection... [20:19:32] Sock 7.Parse request [20:19:32]Sock 7.Check first char [20:19:32]Sock 7.First char is OK [20:19:32]request: POST /json_proto HTTP/1.0 [20:19:32]Method: POST [20:19:32]URL: /json_proto [20:19:32]Method is POST - this is cgi request [20:19:32]url: /json_proto [20:19:32]query_string will be loaded in cgi processing [20:19:32]execute_cgi json_proto POST (null) [20:19:32]execute_cgi path=json_proto method=POST [20:19:32]POST find Content-Length [20:19:32]Host: 172.17.50.3:8080 [20:19:32]Content-Length: 675 [20:19:32]Content-Type: application/json [20:19:32] [20:19:32]POST finish read [20:19:32]Found Content-Length = 675 [20:19:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886203", "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" : 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" ] } } [20:19:32]execute_script... [20:19: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)2886203", "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" : 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" ] } } [20:19:32]POST & json_proto [20:19:32]process_json_proto [20:19:32]json parsed OK: [20:19:32]protocol is kg_v1.0 [20:19:32]action value=close_receipt [20:19:32]process_action close_receipt [20:19:32]cmd_close_receipt [20:19:32]MH_GetDate [20:19:32]Write to MH i2c: F0 00 00 2A 27 40 [20:19:32]Write i2c OK [20:19:32]MH_I2C_Read... [20:19:32]Read from MH i2c: F0 [20:19:32]MH_I2C_Read... [20:19:32]Read from MH i2c: F0 09 00 [20:19:32]MH_I2C_Read... [20:19:32]Read from MH i2c: F0 09 00 2A 27 00 D5 08 18 67 6B 98 1E 66 2C [20:19:32]GetLastDocTimeStamp 1729627623 [20:19:32]current date 1729628373 [20:19:32]FM_GetShiftState [20:19:32]SAM_PROTO_GetShiftState [20:19:32]wFMCommunicate request_size=4 [20:19:32]MH_SAM_APDU [20:19:32]CAPDU: 80 13 01 00 [20:19:32]Write to MH i2c: E2 08 00 2B 27 80 13 01 00 00 00 00 00 CF [20:19:32]Write i2c OK [20:19:32]MH_I2C_Read... [20:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:32]Read from MH i2c: E2 [20:19:32]MH_I2C_Read... [20:19:32]Read from MH i2c: E2 0E 00 [20:19:32]MH_I2C_Read... [20:19:32]Read from MH i2c: E2 0E 00 2B 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [20:19:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:19:32]wFMCommunicate OK [20:19:32]SAM_PROTO_GetShiftState done [20:19:32]FM_GetShiftState done [20:19:32]opened in 1729555832 [20:19:32]opened+sec_in_day 1729642232 [20:19:32]quantity*price = 50063 [20:19:32]sum+1 = 50064 [20:19:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 382 22.10.2024 20:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70434 ФПД: 173585968477127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70434&fm=173585968477127&tin=02508201610067®Number=0000000000156251&sum=50000 [20:19:33]StoreToDocumentArchive [20:19:33]shift 195 fd 70434 [20:19:33]save to /storage/0195/doc_00070434 [20:19:33]save last doc name /storage/0195/doc_00070434 to /storage/kkm_last_doc_name [20:19:33]save OK [20:19:33]Clear old archive folders... [20:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:19:33]tlvbuf is 00ED9FA0 [20:19:33]SAM_PROTO_ClearQueue [20:19:33]wFMCommunicate request_size=4 [20:19:33]MH_SAM_APDU [20:19:33]CAPDU: 80 09 00 00 [20:19:33]Write to MH i2c: E2 08 00 38 27 80 09 00 00 00 00 00 00 D1 [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 38 27 00 90 00 D3 [20:19:33]RAPDU: 90 00 [20:19:33]wFMCommunicate OK [20:19:33]SAM_PROTO_ClearQueue done [20:19:33]KKMCreateOFDPacket [20:19:33]OFDProtocolAddRootSTLVToBuf [20:19:33]FM_MakeSignedData [20:19:33]FM_MakeSignedData [20:19:33]SAM_PROTO_SignData [20:19:33]wFMCommunicate request_size=4 [20:19:33]MH_SAM_APDU [20:19:33]CAPDU: 80 0D 01 02 [20:19:33]Write to MH i2c: E2 08 00 39 27 80 0D 01 02 00 00 00 00 D9 [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 39 27 00 90 00 D4 [20:19:33]RAPDU: 90 00 [20:19:33]wFMCommunicate OK [20:19:33]wFMCommunicate request_size=255 [20:19:33]MH_SAM_APDU [20:19:33]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 7E 01 00 00 F4 03 04 00 D5 08 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 13 01 00 35 04 06 00 9D E0 21 FD [20:19:33]Write to MH i2c: E2 02 01 3A 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 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 7E 01 00 00 F4 03 04 00 D5 08 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 13 01 00 35 04 06 00 9D E0 21 FD 00 00 4F [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [20:19:33]RAPDU: 90 00 [20:19:33]wFMCommunicate OK [20:19:33]wFMCommunicate request_size=7 [20:19:33]MH_SAM_APDU [20:19:33]CAPDU: 80 0D 02 02 02 33 C7 [20:19:33]Write to MH i2c: E2 0A 00 3B 27 80 0D 02 02 02 00 33 C7 00 00 DA [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [20:19:33]RAPDU: 90 00 [20:19:33]wFMCommunicate OK [20:19:33]wFMCommunicate request_size=4 [20:19:33]MH_SAM_APDU [20:19:33]CAPDU: 80 0D 03 02 [20:19:33]Write to MH i2c: E2 08 00 3C 27 80 0D 03 02 00 00 00 00 DE [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 0B 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 0B 00 3C 27 00 33 AE B7 21 69 5F 9C 70 90 00 6C [20:19:33]RAPDU: 33 AE B7 21 69 5F 9C 70 90 00 [20:19:33]wFMCommunicate OK [20:19:33]SAM_PROTO_SignData done [20:19:33]FM_MakeSignedData done [20:19:33]CreateOFDProtocolMessage [20:19:33]wFMCommunicate request_size=4 [20:19:33]MH_SAM_APDU [20:19:33]CAPDU: 80 11 00 00 [20:19:33]Write to MH i2c: E2 08 00 3D 27 80 11 00 00 00 00 00 00 DE [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:33]Read from MH i2c: E2 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 17 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: E2 17 00 3D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [20:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:19:33]wFMCommunicate OK [20:19:33]CreateOFDProtocolMessage done [20:19:33]OFDSenderStorePacket 70434 [20:19:33]StoreOFDPacket docnum=70434 [20:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 CB B7 04 01 42 2A 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 7E 01 00 00 F4 03 04 00 D5 08 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 13 01 00 35 04 06 00 9D E0 21 FD 33 C7 33 AE B7 21 69 5F 9C 70 [20:19:33]CheckFolder [20:19:33]dirname=/storage/ofd_packets [20:19:33]CheckFolder done [20:19:33]ProducePacketName [20:19:33]name=ofd_packets/00070434 [20:19:33]NVStorageSaveData ofd_packets/00070434 [20:19:33]File name is /storage/ofd_packets/00070434 [20:19:33]Write 298 bytes [20:19:33]NVStorageSaveData done [20:19:33]OFDSenderStorePacket done [20:19:33]KKMCreateOFDPacket done [20:19:33]NVStorageSaveData kkm_last_timestamp [20:19:33]File name is /storage/kkm_last_timestamp [20:19:33]Write 4 bytes [20:19:33]NVStorageSaveData done [20:19:33]ExternCall_PrintAddStr [20:19:33]wPrintStart [20:19:33]Write to MH i2c: 01 00 00 3E 27 65 [20:19:33]Write i2c OK [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: 01 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: 01 07 00 [20:19:33]MH_I2C_Read... [20:19:33]Read from MH i2c: 01 07 00 3E 27 00 00 00 00 00 FF 0F 7A [20:19:33]RasterBufferAndPrint [20:19:33]line Счет N : (1)2886203 [20:19:33]line ИНН: 02508201610067 [20:19:33]line Контрольно-Кассовый Чек [20:19:33]line ПРОДАЖА [20:19:33]line ТРК (МРК, ГНК) : 51 [20:19:33]line Товар: 2710194210 [20:19:33]line ДТ-К-5 [20:19:33]line 6.570 * 76.20 [20:19:33]line = 500.63 [20:19:33]line НДС 12% НСП 1% [20:19:33]line > о реализуемом товаре [20:19:33]line ОКРУГЛЕНИЕ: -0.63 [20:19:33]line ИТОГО: 500.00 [20:19:33]line Внесено: 500.00 [20:19:33]line СДАЧА: 0.00 [20:19:33]line НСП 1% : 4.43 [20:19:33]line НДС 12% : 53.16 [20:19:33]line Наличными: 500.00 [20:19:33]line Безнал.: 0.00 [20:19:33]line Место: АЗС № 85 "Партнер Нефть" [20:19:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:19:33]line СНО: Общий режим [20:19:33]line Чек 382 22.10.2024 20:19 [20:19:33]line Смена: 195 ФФД: 1.0 [20:19:33]line ЗНМ: 0300000167 [20:19:33]line РНМ: 0000000000156251 [20:19:33]line Версия ККМ: v1.0 [20:19:33]line ФМ: 0000000000963346 [20:19:33]line ФД: 70434 [20:19:33]line ФПД: 173585968477127 [20:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70434&fm=173585968477127&tin=02508201610067®Number=0000000000156251&sum=50000 [20:19:34]OFD Sender: Processing packet 70434 [packets to send 18, broken 17] [20:19:34]ProducePacketName [20:19:34]name=ofd_packets/00070434 [20:19:34]OFD Sender: To server: pG, [20:19:34]CommunicateWithHost lk.salyk.kg:30040 [20:19:34]ConnectInit lk.salyk.kg [20:19:34]written 0, free lines is 4095 [20:19:34]Connected sock=10 [20:19: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 34 36 0C 01 00 00 CB B7 04 01 42 2A 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 7E 01 00 00 F4 03 04 00 D5 08 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 13 01 00 35 04 06 00 9D E0 21 FD 33 C7 33 AE B7 21 69 5F 9C 70 [20:19: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 34 36 4F 00 00 00 5C 57 47 00 5B 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 34 36 10 04 04 00 22 13 01 00 F4 03 04 00 75 B2 17 67 B6 04 01 00 00 5C F1 2E 15 97 0B EB 7C [20:19:34]CommunicateWithHost err = 0 [20:19:34]CheckOFDResponse [20:19:34]1017 (14) - 77093643461234 [20:19:34]1041 (16) - 0000000000963346 [20:19:34]1040 (4) - 70434 [20:19:34]1012 (4) - 22.10.2024 14:11 [20:19:34]1206 (1) - 0 [20:19:34]OFD Sender: Remove packet 70434 [20:19:34]ProducePacketName [20:19:34]name=ofd_packets/00070434 [20:19:34]NVStorageDeleteData [20:19:34]Write to MH i2c: 01 00 00 69 27 90 [20:19:34]Write i2c OK [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: 01 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: 01 07 00 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 F5 0C 98 [20:19:34]RasterBufferAndPrint [20:19:34]line [20:19:34]line [20:19:34]line [20:19:34]line [20:19:34]line [20:19:34]written 0, free lines is 3327 [20:19:34]MH_Cut [20:19:34]Write to MH i2c: D1 01 00 70 27 01 69 [20:19:34]Write i2c OK [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: D1 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: D1 01 00 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: D1 01 00 70 27 00 68 [20:19:34]Write to MH i2c: 01 00 00 71 27 98 [20:19:34]Write i2c OK [20:19:34]MH_I2C_Read... [20:19:35]OFD Sender: No OFD packet to send [20:19:35]*** Cut start [20:19:35]*** Partial cut [20:19:35]*** CUTSNS_PIN = 1 [20:19:35]*** CUTSNS_PIN = 0 [20:19:35]*** Brake cut motor [20:19:36]Read from MH i2c: 01 [20:19:36]MH_I2C_Read... [20:19:36]*** Stop cut motor [20:19:36]*** Cut end [20:19:36]Read from MH i2c: 01 07 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 71 27 00 00 00 00 00 FF 0F AD [20:19:36]process_action close_receipt done [20:19:36]requested_data is exist [20:19:36]produce_requested_data [20:19:36]requested_item fm.sn is exist - process it [20:19:36]wFMCommunicate request_size=4 [20:19:36]MH_SAM_APDU [20:19:36]CAPDU: 80 11 00 00 [20:19:36]Write to MH i2c: E2 08 00 72 27 80 11 00 00 00 00 00 00 13 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 17 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 17 00 72 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [20:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:19:36]wFMCommunicate OK [20:19:36]requested_item fd.num is exist - process it [20:19:36]SAM_PROTO_GetFieldsCounters [20:19:36]wFMCommunicate request_size=4 [20:19:36]MH_SAM_APDU [20:19:36]CAPDU: 80 13 00 00 [20:19:36]Write to MH i2c: E2 08 00 73 27 80 13 00 00 00 00 00 00 16 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 62 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:36]wFMCommunicate OK [20:19:36]SAM_PROTO_GetFieldsCounters done [20:19:36]requested_item shift.num is exist - process it [20:19:36]requested_item shift.opened is exist - process it [20:19:36]req_shift_opened [20:19:36]FM_GetShiftState [20:19:36]SAM_PROTO_GetShiftState [20:19:36]wFMCommunicate request_size=4 [20:19:36]MH_SAM_APDU [20:19:36]CAPDU: 80 13 01 00 [20:19:36]Write to MH i2c: E2 08 00 74 27 80 13 01 00 00 00 00 00 18 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 0E 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 0E 00 74 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 06 [20:19:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:19:36]wFMCommunicate OK [20:19:36]SAM_PROTO_GetShiftState done [20:19:36]FM_GetShiftState done [20:19:36]req_shift_opened done [20:19:36]requested_item shift.open_date is exist - process it [20:19:36]req_shift_open_date [20:19:36]req_shift_open_date done [20:19:36]produce_requested_data done [20:19:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70434,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:19:36]process_action_free close_receipt [20:19:36]json_value_free [20:19:36]json_value_free done [20:19:36]process_json_proto returns [20:19:36]Send response to host [20:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70434,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:19:36]free response buf [20:19:36]execute_script done [20:19:36]execute_script returns [20:19:36]free content buf [20:19:36]Sock 7.Close socket [20:19:36]Sock 7.Thread stoped [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:37]accept exits with 9 [20:28:37]New connection [20:28:37]New thread 3066699108 created [20:28:37]Thread 3066555748 joined [20:28:37]Waiting for new connection... [20:28:37] Sock 9.Parse request [20:28:37]Sock 9.Check first char [20:28:37]Sock 9.First char is OK [20:28:37]request: POST /json_proto HTTP/1.0 [20:28:37]Method: POST [20:28:37]URL: /json_proto [20:28:37]Method is POST - this is cgi request [20:28:37]url: /json_proto [20:28:37]query_string will be loaded in cgi processing [20:28:37]execute_cgi json_proto POST (null) [20:28:37]execute_cgi path=json_proto method=POST [20:28:37]POST find Content-Length [20:28:37]Host: 172.17.50.3:8080 [20:28:37]Content-Length: 689 [20:28:37]Content-Type: application/json [20:28:37] [20:28:37]POST finish read [20:28:37]Found Content-Length = 689 [20:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [20:28:37]execute_script... [20:28: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)2886204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [20:28:37]POST & json_proto [20:28:37]process_json_proto [20:28:37]json parsed OK: [20:28:37]protocol is kg_v1.0 [20:28:37]action value=close_receipt [20:28:37]process_action close_receipt [20:28:37]cmd_close_receipt [20:28:37]MH_GetDate [20:28:37]Write to MH i2c: F0 00 00 75 27 8B [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 09 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 09 00 75 27 00 F6 0A 18 67 6B 98 1E 66 9A [20:28:37]GetLastDocTimeStamp 1729628373 [20:28:37]current date 1729628918 [20:28:37]FM_GetShiftState [20:28:37]SAM_PROTO_GetShiftState [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 13 01 00 [20:28:37]Write to MH i2c: E2 08 00 76 27 80 13 01 00 00 00 00 00 1A [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0E 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0E 00 76 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 08 [20:28:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:28:37]wFMCommunicate OK [20:28:37]SAM_PROTO_GetShiftState done [20:28:37]FM_GetShiftState done [20:28:37]opened in 1729555832 [20:28:37]opened+sec_in_day 1729642232 [20:28:37]quantity*price = 200025 [20:28:37]sum+1 = 200026 [20:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 383 22.10.2024 20:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70435 ФПД: 276364476929889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70435&fm=276364476929889&tin=02508201610067®Number=0000000000156251&sum=200000 [20:28:38]StoreToDocumentArchive [20:28:38]shift 195 fd 70435 [20:28:38]save to /storage/0195/doc_00070435 [20:28:38]save last doc name /storage/0195/doc_00070435 to /storage/kkm_last_doc_name [20:28:38]save OK [20:28:38]Clear old archive folders... [20:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:28:38]tlvbuf is B6E9C350 [20:28:38]SAM_PROTO_ClearQueue [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 09 00 00 [20:28:38]Write to MH i2c: E2 08 00 83 27 80 09 00 00 00 00 00 00 1C [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]SAM_PROTO_ClearQueue done [20:28:38]KKMCreateOFDPacket [20:28:38]OFDProtocolAddRootSTLVToBuf [20:28:38]FM_MakeSignedData [20:28:38]FM_MakeSignedData [20:28:38]SAM_PROTO_SignData [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 01 02 [20:28:38]Write to MH i2c: E2 08 00 84 27 80 0D 01 02 00 00 00 00 24 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=255 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 13 01 [20:28:38]Write to MH i2c: E2 02 01 85 27 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 13 01 00 00 B3 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=16 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB 5A 1E 79 D7 61 [20:28:38]Write to MH i2c: E2 13 00 86 27 80 0D 02 02 0B 00 00 35 04 06 00 FB 5A 1E 79 D7 61 00 00 A0 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 03 02 [20:28:38]Write to MH i2c: E2 08 00 87 27 80 0D 03 02 00 00 00 00 29 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 87 27 00 1D 66 91 D4 62 BB D2 37 90 00 38 [20:28:38]RAPDU: 1D 66 91 D4 62 BB D2 37 90 00 [20:28:38]wFMCommunicate OK [20:28:38]SAM_PROTO_SignData done [20:28:38]FM_MakeSignedData done [20:28:38]CreateOFDProtocolMessage [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 11 00 00 [20:28:38]Write to MH i2c: E2 08 00 88 27 80 11 00 00 00 00 00 00 29 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 88 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [20:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:38]wFMCommunicate OK [20:28:38]CreateOFDProtocolMessage done [20:28:38]OFDSenderStorePacket 70435 [20:28:38]StoreOFDPacket docnum=70435 [20:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 D0 20 0D 01 46 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 13 01 00 35 04 06 00 FB 5A 1E 79 D7 61 1D 66 91 D4 62 BB D2 37 [20:28:38]CheckFolder [20:28:38]dirname=/storage/ofd_packets [20:28:38]CheckFolder done [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00070435 [20:28:38]NVStorageSaveData ofd_packets/00070435 [20:28:38]File name is /storage/ofd_packets/00070435 [20:28:38]Write 307 bytes [20:28:38]NVStorageSaveData done [20:28:38]OFDSenderStorePacket done [20:28:38]KKMCreateOFDPacket done [20:28:38]NVStorageSaveData kkm_last_timestamp [20:28:38]File name is /storage/kkm_last_timestamp [20:28:38]Write 4 bytes [20:28:38]NVStorageSaveData done [20:28:38]ExternCall_PrintAddStr [20:28:38]wPrintStart [20:28:38]Write to MH i2c: 01 00 00 89 27 B0 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 89 27 00 00 00 00 00 FF 0F C5 [20:28:38]RasterBufferAndPrint [20:28:38]line Счет N : (1)2886204 [20:28:38]line ИНН: 02508201610067 [20:28:38]line Контрольно-Кассовый Чек [20:28:38]line ПРОДАЖА [20:28:38]line ТРК (МРК, ГНК) : 41 [20:28:38]line Товар: 2710194240 [20:28:38]line D-ENERGY Дт-К-2 [20:28:38]line 25.910 * 77.20 [20:28:38]line = 2000.25 [20:28:38]line НДС 12% НСП 1% [20:28:38]line > о реализуемом товаре [20:28:38]line ОКРУГЛЕНИЕ: -0.25 [20:28:38]line ИТОГО: 2000.00 [20:28:38]line Внесено: 2000.00 [20:28:38]line СДАЧА: 0.00 [20:28:38]line НСП 1% : 17.70 [20:28:38]line НДС 12% : 212.42 [20:28:38]line Наличными: 2000.00 [20:28:38]line Безнал.: 0.00 [20:28:38]line Место: АЗС № 85 "Партнер Нефть" [20:28:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:28:38]line СНО: Общий режим [20:28:38]line Чек 383 22.10.2024 20:28 [20:28:38]line Смена: 195 ФФД: 1.0 [20:28:38]line ЗНМ: 0300000167 [20:28:38]line РНМ: 0000000000156251 [20:28:38]line Версия ККМ: v1.0 [20:28:38]line ФМ: 0000000000963346 [20:28:38]line ФД: 70435 [20:28:38]line ФПД: 276364476929889 [20:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70435&fm=276364476929889&tin=02508201610067®Number=0000000000156251&sum=200000 [20:28:39]OFD Sender: Processing packet 70435 [packets to send 18, broken 17] [20:28:39]ProducePacketName [20:28:39]name=ofd_packets/00070435 [20:28:39]OFD Sender: To server: pG, [20:28:39]CommunicateWithHost lk.salyk.kg:30040 [20:28:39]ConnectInit lk.salyk.kg [20:28:39]written 0, free lines is 4095 [20:28:39]Connected sock=10 [20:28: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 34 36 15 01 00 00 D0 20 0D 01 46 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 F6 0A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 13 01 00 35 04 06 00 FB 5A 1E 79 D7 61 1D 66 91 D4 62 BB D2 37 [20:28: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 34 36 4F 00 00 00 8F 87 47 00 82 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 34 36 10 04 04 00 23 13 01 00 F4 03 04 00 96 B4 17 67 B6 04 01 00 00 49 10 6F 18 53 8D 9F 36 [20:28:39]CommunicateWithHost err = 0 [20:28:39]CheckOFDResponse [20:28:39]1017 (14) - 77093643461234 [20:28:39]1041 (16) - 0000000000963346 [20:28:39]1040 (4) - 70435 [20:28:39]1012 (4) - 22.10.2024 14:20 [20:28:39]1206 (1) - 0 [20:28:39]OFD Sender: Remove packet 70435 [20:28:39]ProducePacketName [20:28:39]name=ofd_packets/00070435 [20:28:39]NVStorageDeleteData [20:28:39]Write to MH i2c: 01 00 00 B4 27 DB [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 02 0D F1 [20:28:39]RasterBufferAndPrint [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]written 0, free lines is 3336 [20:28:39]MH_Cut [20:28:39]Write to MH i2c: D1 01 00 BB 27 01 B4 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 01 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 01 00 BB 27 00 B3 [20:28:39]Write to MH i2c: 01 00 00 BC 27 E3 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:40]OFD Sender: No OFD packet to send [20:28:40]*** Cut start [20:28:40]*** Partial cut [20:28:40]*** CUTSNS_PIN = 1 [20:28:40]*** CUTSNS_PIN = 0 [20:28:40]*** Brake cut motor [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]*** Stop cut motor [20:28:40]*** Cut end [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 BC 27 00 00 00 00 00 FF 0F F8 [20:28:40]process_action close_receipt done [20:28:40]requested_data is exist [20:28:40]produce_requested_data [20:28:40]requested_item fm.sn is exist - process it [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 11 00 00 [20:28:40]Write to MH i2c: E2 08 00 BD 27 80 11 00 00 00 00 00 00 5E [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 17 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 17 00 BD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [20:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:41]wFMCommunicate OK [20:28:41]requested_item fd.num is exist - process it [20:28:41]SAM_PROTO_GetFieldsCounters [20:28:41]wFMCommunicate request_size=4 [20:28:41]MH_SAM_APDU [20:28:41]CAPDU: 80 13 00 00 [20:28:41]Write to MH i2c: E2 08 00 BE 27 80 13 00 00 00 00 00 00 61 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 62 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 62 00 BE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:28: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:41]wFMCommunicate OK [20:28:41]SAM_PROTO_GetFieldsCounters done [20:28:41]requested_item shift.num is exist - process it [20:28:41]requested_item shift.opened is exist - process it [20:28:41]req_shift_opened [20:28:41]FM_GetShiftState [20:28:41]SAM_PROTO_GetShiftState [20:28:41]wFMCommunicate request_size=4 [20:28:41]MH_SAM_APDU [20:28:41]CAPDU: 80 13 01 00 [20:28:41]Write to MH i2c: E2 08 00 BF 27 80 13 01 00 00 00 00 00 63 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 0E 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 0E 00 BF 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 51 [20:28:41]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:28:41]wFMCommunicate OK [20:28:41]SAM_PROTO_GetShiftState done [20:28:41]FM_GetShiftState done [20:28:41]req_shift_opened done [20:28:41]requested_item shift.open_date is exist - process it [20:28:41]req_shift_open_date [20:28:41]req_shift_open_date done [20:28:41]produce_requested_data done [20:28:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70435,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:28:41]process_action_free close_receipt [20:28:41]json_value_free [20:28:41]json_value_free done [20:28:41]process_json_proto returns [20:28:41]Send response to host [20:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70435,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:28:41]free response buf [20:28:41]execute_script done [20:28:41]execute_script returns [20:28:41]free content buf [20:28:41]Sock 9.Close socket [20:28:41]Sock 9.Thread stoped [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:28:59]accept exits with 7 [20:28:59]New connection [20:28:59]New thread 3066555748 created [20:28:59]Thread 3066699108 joined [20:28:59]Waiting for new connection... [20:28:59] Sock 7.Parse request [20:28:59]Sock 7.Check first char [20:28:59]Sock 7.First char is OK [20:28:59]request: POST /json_proto HTTP/1.0 [20:28:59]Method: POST [20:28:59]URL: /json_proto [20:28:59]Method is POST - this is cgi request [20:28:59]url: /json_proto [20:28:59]query_string will be loaded in cgi processing [20:28:59]execute_cgi json_proto POST (null) [20:28:59]execute_cgi path=json_proto method=POST [20:28:59]POST find Content-Length [20:28:59]Host: 172.17.50.3:8080 [20:28:59]Content-Length: 689 [20:28:59]Content-Type: application/json [20:28:59] [20:28:59]POST finish read [20:28:59]Found Content-Length = 689 [20:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:28:59]execute_script... [20: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)2886205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:28:59]POST & json_proto [20:28:59]process_json_proto [20:28:59]json parsed OK: [20:28:59]protocol is kg_v1.0 [20:28:59]action value=close_receipt [20:28:59]process_action close_receipt [20:28:59]cmd_close_receipt [20:28:59]MH_GetDate [20:28:59]Write to MH i2c: F0 00 00 C0 27 D6 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: F0 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: F0 09 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: F0 09 00 C0 27 00 0C 0B 18 67 6B 98 1E 66 FC [20:28:59]GetLastDocTimeStamp 1729628918 [20:28:59]current date 1729628940 [20:28:59]FM_GetShiftState [20:28:59]SAM_PROTO_GetShiftState [20:28:59]wFMCommunicate request_size=4 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 13 01 00 [20:28:59]Write to MH i2c: E2 08 00 C1 27 80 13 01 00 00 00 00 00 65 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 0E 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 0E 00 C1 27 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 53 [20:28:59]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:28:59]wFMCommunicate OK [20:28:59]SAM_PROTO_GetShiftState done [20:28:59]FM_GetShiftState done [20:28:59]opened in 1729555832 [20:28:59]opened+sec_in_day 1729642232 [20:28:59]quantity*price = 100051 [20:28:59]sum+1 = 100052 [20: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 384 22.10.2024 20:29 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70436 ФПД: 205223141746289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70436&fm=205223141746289&tin=02508201610067®Number=0000000000156251&sum=100000 [20:29:00]StoreToDocumentArchive [20:29:00]shift 195 fd 70436 [20:29:00]save to /storage/0195/doc_00070436 [20:29:00]save last doc name /storage/0195/doc_00070436 to /storage/kkm_last_doc_name [20:29:00]save OK [20:29:00]Clear old archive folders... [20:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:29:00]tlvbuf is B6E9C350 [20:29:00]SAM_PROTO_ClearQueue [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 09 00 00 [20:29:00]Write to MH i2c: E2 08 00 CE 27 80 09 00 00 00 00 00 00 67 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [20:29:00]RAPDU: 90 00 [20:29:00]wFMCommunicate OK [20:29:00]SAM_PROTO_ClearQueue done [20:29:00]KKMCreateOFDPacket [20:29:00]OFDProtocolAddRootSTLVToBuf [20:29:00]FM_MakeSignedData [20:29:00]FM_MakeSignedData [20:29:00]SAM_PROTO_SignData [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 0D 01 02 [20:29:00]Write to MH i2c: E2 08 00 CF 27 80 0D 01 02 00 00 00 00 6F [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [20:29:00]RAPDU: 90 00 [20:29:00]wFMCommunicate OK [20:29:00]wFMCommunicate request_size=255 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 80 01 00 00 F4 03 04 00 0C 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 13 01 [20:29:00]Write to MH i2c: E2 02 01 D0 27 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 80 01 00 00 F4 03 04 00 0C 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 13 01 00 00 D3 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 D0 27 00 90 00 6B [20:29:00]RAPDU: 90 00 [20:29:00]wFMCommunicate OK [20:29:00]wFMCommunicate request_size=16 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA A6 3C 76 A6 71 [20:29:00]Write to MH i2c: E2 13 00 D1 27 80 0D 02 02 0B 00 00 35 04 06 00 BA A6 3C 76 A6 71 00 00 F0 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 03 00 D1 27 00 90 00 6C [20:29:00]RAPDU: 90 00 [20:29:00]wFMCommunicate OK [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 0D 03 02 [20:29:00]Write to MH i2c: E2 08 00 D2 27 80 0D 03 02 00 00 00 00 74 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 0B 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 0B 00 D2 27 00 0F 62 75 3E 71 92 72 EC 90 00 FA [20:29:00]RAPDU: 0F 62 75 3E 71 92 72 EC 90 00 [20:29:00]wFMCommunicate OK [20:29:00]SAM_PROTO_SignData done [20:29:00]FM_MakeSignedData done [20:29:00]CreateOFDProtocolMessage [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 11 00 00 [20:29:00]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 17 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 17 00 D3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [20:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:29:00]wFMCommunicate OK [20:29:00]CreateOFDProtocolMessage done [20:29:00]OFDSenderStorePacket 70436 [20:29:00]StoreOFDPacket docnum=70436 [20:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6F 7B 0D 01 A9 AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 80 01 00 00 F4 03 04 00 0C 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 13 01 00 35 04 06 00 BA A6 3C 76 A6 71 0F 62 75 3E 71 92 72 EC [20:29:00]CheckFolder [20:29:00]dirname=/storage/ofd_packets [20:29:00]CheckFolder done [20:29:00]ProducePacketName [20:29:00]name=ofd_packets/00070436 [20:29:00]NVStorageSaveData ofd_packets/00070436 [20:29:00]File name is /storage/ofd_packets/00070436 [20:29:00]Write 307 bytes [20:29:00]NVStorageSaveData done [20:29:00]OFDSenderStorePacket done [20:29:00]KKMCreateOFDPacket done [20:29:00]NVStorageSaveData kkm_last_timestamp [20:29:00]File name is /storage/kkm_last_timestamp [20:29:00]Write 4 bytes [20:29:00]NVStorageSaveData done [20:29:00]ExternCall_PrintAddStr [20:29:00]wPrintStart [20:29:00]Write to MH i2c: 01 00 00 D4 27 FB [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: 01 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: 01 07 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: 01 07 00 D4 27 00 00 00 00 00 FF 0F 10 [20:29:00]RasterBufferAndPrint [20:29:00]line Счет N : (1)2886205 [20:29:00]line ИНН: 02508201610067 [20:29:00]line Контрольно-Кассовый Чек [20:29:00]line ПРОДАЖА [20:29:00]line ТРК (МРК, ГНК) : 31 [20:29:00]line Товар: 2710194240 [20:29:00]line D-ENERGY Дт-К-2 [20:29:00]line 12.960 * 77.20 [20:29:00]line = 1000.51 [20:29:00]line НДС 12% НСП 1% [20:29:00]line > о реализуемом товаре [20:29:00]line ОКРУГЛЕНИЕ: -0.51 [20:29:00]line ИТОГО: 1000.00 [20:29:00]line Внесено: 1000.00 [20:29:00]line СДАЧА: 0.00 [20:29:00]line НСП 1% : 8.85 [20:29:00]line НДС 12% : 106.25 [20:29:00]line Наличными: 1000.00 [20:29:00]line Безнал.: 0.00 [20:29:00]line Место: АЗС № 85 "Партнер Нефть" [20:29:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:29:00]line СНО: Общий режим [20:29:00]line Чек 384 22.10.2024 20:29 [20:29:00]line Смена: 195 ФФД: 1.0 [20:29:00]line ЗНМ: 0300000167 [20:29:00]line РНМ: 0000000000156251 [20:29:00]line Версия ККМ: v1.0 [20:29:00]line ФМ: 0000000000963346 [20:29:00]line ФД: 70436 [20:29:00]line ФПД: 205223141746289 [20:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70436&fm=205223141746289&tin=02508201610067®Number=0000000000156251&sum=100000 [20:29:01]OFD Sender: Processing packet 70436 [packets to send 18, broken 17] [20:29:01]ProducePacketName [20:29:01]name=ofd_packets/00070436 [20:29:01]OFD Sender: To server: pG, [20:29:01]written 0, free lines is 4095 [20:29:01]CommunicateWithHost lk.salyk.kg:30040 [20:29:01]ConnectInit lk.salyk.kg [20:29:01]Connected sock=10 [20: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 34 36 15 01 00 00 6F 7B 0D 01 A9 AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 80 01 00 00 F4 03 04 00 0C 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 13 01 00 35 04 06 00 BA A6 3C 76 A6 71 0F 62 75 3E 71 92 72 EC [20:29: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 34 36 4F 00 00 00 26 5C 47 00 68 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 34 36 10 04 04 00 24 13 01 00 F4 03 04 00 AC B4 17 67 B6 04 01 00 00 FF ED F4 94 ED 78 9C CA [20:29:01]CommunicateWithHost err = 0 [20:29:01]CheckOFDResponse [20:29:01]1017 (14) - 77093643461234 [20:29:01]1041 (16) - 0000000000963346 [20:29:01]1040 (4) - 70436 [20:29:01]1012 (4) - 22.10.2024 14:20 [20:29:01]1206 (1) - 0 [20:29:01]OFD Sender: Remove packet 70436 [20:29:01]ProducePacketName [20:29:01]name=ofd_packets/00070436 [20:29:01]NVStorageDeleteData [20:29:01]Write to MH i2c: 01 00 00 FF 27 26 [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 07 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 06 0D 40 [20:29:01]RasterBufferAndPrint [20:29:01]line [20:29:01]line [20:29:01]line [20:29:01]line [20:29:01]line [20:29:01]written 0, free lines is 3343 [20:29:01]MH_Cut [20:29:01]Write to MH i2c: D1 01 00 06 28 01 00 [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: D1 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: D1 01 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: D1 01 00 06 28 00 FF [20:29:01]Write to MH i2c: 01 00 00 07 28 2F [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]OFD Sender: No OFD packet to send [20:29:02]*** Cut start [20:29:02]*** Partial cut [20:29:02]*** CUTSNS_PIN = 1 [20:29:02]*** CUTSNS_PIN = 0 [20:29:02]*** Brake cut motor [20:29:02]Read from MH i2c: 01 [20:29:02]MH_I2C_Read... [20:29:02]*** Stop cut motor [20:29:02]*** Cut end [20:29:02]Read from MH i2c: 01 07 00 [20:29:02]MH_I2C_Read... [20:29:02]Read from MH i2c: 01 07 00 07 28 00 00 00 00 00 FF 0F 44 [20:29:02]process_action close_receipt done [20:29:02]requested_data is exist [20:29:02]produce_requested_data [20:29:02]requested_item fm.sn is exist - process it [20:29:02]wFMCommunicate request_size=4 [20:29:02]MH_SAM_APDU [20:29:02]CAPDU: 80 11 00 00 [20:29:02]Write to MH i2c: E2 08 00 08 28 80 11 00 00 00 00 00 00 AA [20:29:02]Write i2c OK [20:29:02]MH_I2C_Read... [20:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:02]Read from MH i2c: E2 [20:29:02]MH_I2C_Read... [20:29:02]Read from MH i2c: E2 17 00 [20:29:02]MH_I2C_Read... [20:29:02]Read from MH i2c: E2 17 00 08 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [20:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:29:02]wFMCommunicate OK [20:29:02]requested_item fd.num is exist - process it [20:29:02]SAM_PROTO_GetFieldsCounters [20:29:02]wFMCommunicate request_size=4 [20:29:02]MH_SAM_APDU [20:29:02]CAPDU: 80 13 00 00 [20:29:02]Write to MH i2c: E2 08 00 09 28 80 13 00 00 00 00 00 00 AD [20:29:02]Write i2c OK [20:29:02]MH_I2C_Read... [20:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:03]Read from MH i2c: E2 [20:29:03]MH_I2C_Read... [20:29:03]Read from MH i2c: E2 62 00 [20:29:03]MH_I2C_Read... [20:29:03]Read from MH i2c: E2 62 00 09 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:03]wFMCommunicate OK [20:29:03]SAM_PROTO_GetFieldsCounters done [20:29:03]requested_item shift.num is exist - process it [20:29:03]requested_item shift.opened is exist - process it [20:29:03]req_shift_opened [20:29:03]FM_GetShiftState [20:29:03]SAM_PROTO_GetShiftState [20:29:03]wFMCommunicate request_size=4 [20:29:03]MH_SAM_APDU [20:29:03]CAPDU: 80 13 01 00 [20:29:03]Write to MH i2c: E2 08 00 0A 28 80 13 01 00 00 00 00 00 AF [20:29:03]Write i2c OK [20:29:03]MH_I2C_Read... [20:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:03]Read from MH i2c: E2 [20:29:03]MH_I2C_Read... [20:29:03]Read from MH i2c: E2 0E 00 [20:29:03]MH_I2C_Read... [20:29:03]Read from MH i2c: E2 0E 00 0A 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9D [20:29:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:29:03]wFMCommunicate OK [20:29:03]SAM_PROTO_GetShiftState done [20:29:03]FM_GetShiftState done [20:29:03]req_shift_opened done [20:29:03]requested_item shift.open_date is exist - process it [20:29:03]req_shift_open_date [20:29:03]req_shift_open_date done [20:29:03]produce_requested_data done [20:29:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:29:03]process_action_free close_receipt [20:29:03]json_value_free [20:29:03]json_value_free done [20:29:03]process_json_proto returns [20:29:03]Send response to host [20:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:29:03]free response buf [20:29:03]execute_script done [20:29:03]execute_script returns [20:29:03]free content buf [20:29:03]Sock 7.Close socket [20:29:03]Sock 7.Thread stoped [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]accept exits with 9 [20:31:31]New connection [20:31:31]New thread 3066699108 created [20:31:31]Thread 3066555748 joined [20:31:31]Waiting for new connection... [20:31:31] Sock 9.Parse request [20:31:31]Sock 9.Check first char [20:31:31]Sock 9.First char is OK [20:31:31]request: POST /json_proto HTTP/1.0 [20:31:31]Method: POST [20:31:31]URL: /json_proto [20:31:31]Method is POST - this is cgi request [20:31:31]url: /json_proto [20:31:31]query_string will be loaded in cgi processing [20:31:31]execute_cgi json_proto POST (null) [20:31:31]execute_cgi path=json_proto method=POST [20:31:31]POST find Content-Length [20:31:31]Host: 172.17.50.3:8080 [20:31:31]Content-Length: 215 [20:31:31]Content-Type: application/json [20:31:31] [20:31:31]POST finish read [20:31:31]Found Content-Length = 215 [20:31:31]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" ] } } [20:31:31]execute_script... [20:31:31]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" ] } } [20:31:31]POST & json_proto [20:31:31]process_json_proto [20:31:31]json parsed OK: [20:31:31]protocol is kg_v1.0 [20:31:31]action value=get_value [20:31:31]process_action get_value [20:31:31]cmd_get_value [20:31:31]process_action get_value done [20:31:31]requested_data is exist [20:31:31]produce_requested_data [20:31:31]requested_item kkm.sn is exist - process it [20:31:31]requested_item kkm.ver is exist - process it [20:31:31]requested_item fm.sn is exist - process it [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 11 00 00 [20:31:31]Write to MH i2c: E2 08 00 0B 28 80 11 00 00 00 00 00 00 AD [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 17 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 17 00 0B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [20:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:31:31]wFMCommunicate OK [20:31:31]requested_item fd.num is exist - process it [20:31:31]SAM_PROTO_GetFieldsCounters [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 13 00 00 [20:31:31]Write to MH i2c: E2 08 00 0C 28 80 13 00 00 00 00 00 00 B0 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 62 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 62 00 0C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [20:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:31]wFMCommunicate OK [20:31:31]SAM_PROTO_GetFieldsCounters done [20:31:31]requested_item shift.num is exist - process it [20:31:31]requested_item shift.opened is exist - process it [20:31:31]req_shift_opened [20:31:31]FM_GetShiftState [20:31:31]SAM_PROTO_GetShiftState [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 13 01 00 [20:31:31]Write to MH i2c: E2 08 00 0D 28 80 13 01 00 00 00 00 00 B2 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]OFD Sender: No OFD packet to send [20:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 0E 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 0E 00 0D 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A0 [20:31:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:31:32]wFMCommunicate OK [20:31:32]SAM_PROTO_GetShiftState done [20:31:32]FM_GetShiftState done [20:31:32]req_shift_opened done [20:31:32]requested_item shift.open_date is exist - process it [20:31:32]req_shift_open_date [20:31:32]req_shift_open_date done [20:31:32]produce_requested_data done [20:31:32]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:31:32]process_action_free get_value [20:31:32]json_value_free [20:31:32]json_value_free done [20:31:32]process_json_proto returns [20:31:32]Send response to host [20:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:31:32]free response buf [20:31:32]execute_script done [20:31:32]execute_script returns [20:31:32]free content buf [20:31:32]Sock 9.Close socket [20:31:32]Sock 9.Thread stoped [20:31:32]accept exits with 7 [20:31:32]New connection [20:31:32]New thread 3066555748 created [20:31:32]Thread 3066699108 joined [20:31:32]Waiting for new connection... [20:31:32] Sock 7.Parse request [20:31:32]Sock 7.Check first char [20:31:32]Sock 7.First char is OK [20:31:32]request: POST /json_proto HTTP/1.0 [20:31:32]Method: POST [20:31:32]URL: /json_proto [20:31:32]Method is POST - this is cgi request [20:31:32]url: /json_proto [20:31:32]query_string will be loaded in cgi processing [20:31:32]execute_cgi json_proto POST (null) [20:31:32]execute_cgi path=json_proto method=POST [20:31:32]POST find Content-Length [20:31:32]Host: 172.17.50.3:8080 [20:31:32]Content-Length: 331 [20:31:32]Content-Type: application/json [20:31:32] [20:31:32]POST finish read [20:31:32]Found Content-Length = 331 [20:31:32]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" ] } } [20:31:32]execute_script... [20:31:32]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" ] } } [20:31:32]POST & json_proto [20:31:32]process_json_proto [20:31:32]json parsed OK: [20:31:32]protocol is kg_v1.0 [20:31:32]action value=get_value [20:31:32]process_action get_value [20:31:32]cmd_get_value [20:31:32]process_action get_value done [20:31:32]requested_data is exist [20:31:32]produce_requested_data [20:31:32]requested_item fm.sale.total is exist - process it [20:31:32]SAM_PROTO_GetFMData [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 13 03 00 [20:31:32]Write to MH i2c: E2 08 00 0E 28 80 13 03 00 00 00 00 00 B5 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 FD 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 FD 00 0E 28 00 C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 78 [20:31:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [20:31:32]wFMCommunicate OK [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 17 00 00 [20:31:32]Write to MH i2c: E2 08 00 0F 28 80 17 00 00 00 00 00 00 B7 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:33]Read from MH i2c: E2 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 0F 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [20:31:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:33]wFMCommunicate OK [20:31:33]wFMCommunicate request_size=4 [20:31:33]MH_SAM_APDU [20:31:33]CAPDU: 80 17 00 00 [20:31:33]Write to MH i2c: E2 08 00 10 28 80 17 00 00 00 00 00 00 B8 [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:33]Read from MH i2c: E2 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 10 28 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 CA [20:31:33]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 [20:31:33]wFMCommunicate OK [20:31:33]wFMCommunicate request_size=4 [20:31:33]MH_SAM_APDU [20:31:33]CAPDU: 80 17 00 00 [20:31:33]Write to MH i2c: E2 08 00 11 28 80 17 00 00 00 00 00 00 B9 [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:33]Read from MH i2c: E2 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 FD 00 11 28 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 45 [20:31:33]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 [20:31:33]wFMCommunicate OK [20:31:33]wFMCommunicate request_size=4 [20:31:33]MH_SAM_APDU [20:31:33]CAPDU: 80 17 00 00 [20:31:33]Write to MH i2c: E2 08 00 12 28 80 17 00 00 00 00 00 00 BA [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:31:33]Read from MH i2c: E2 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 E2 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: E2 E2 00 12 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [20:31:33]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 [20:31:33]wFMCommunicate OK [20:31:33]SAM_PROTO_GetFMData done [20:31:33]requested_item fm.sale_refund.total is exist - process it [20:31:33]requested_item fm.buy.total is exist - process it [20:31:33]requested_item shift.sale.total is exist - process it [20:31:33]SAM_PROTO_GetShiftData [20:31:33]wFMCommunicate request_size=4 [20:31:33]MH_SAM_APDU [20:31:33]CAPDU: 80 13 02 00 [20:31:33]Write to MH i2c: E2 08 00 13 28 80 13 02 00 00 00 00 00 B9 [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:31:34]Read from MH i2c: E2 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 13 28 00 BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B8 [20:31:34]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:31:34]wFMCommunicate OK [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 17 00 00 [20:31:34]Write to MH i2c: E2 08 00 14 28 80 17 00 00 00 00 00 00 BC [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:34]Read from MH i2c: E2 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 14 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA [20:31:34]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:31:34]wFMCommunicate OK [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 17 00 00 [20:31:34]Write to MH i2c: E2 08 00 15 28 80 17 00 00 00 00 00 00 BD [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:34]Read from MH i2c: E2 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 FD 00 15 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E6 [20:31:34]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 [20:31:34]wFMCommunicate OK [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 17 00 00 [20:31:34]Write to MH i2c: E2 08 00 16 28 80 17 00 00 00 00 00 00 BE [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:35]Read from MH i2c: E2 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 FD 00 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 FD 00 16 28 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 3F [20:31:35]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 [20:31:35]wFMCommunicate OK [20:31:35]wFMCommunicate request_size=4 [20:31:35]MH_SAM_APDU [20:31:35]CAPDU: 80 17 00 00 [20:31:35]Write to MH i2c: E2 08 00 17 28 80 17 00 00 00 00 00 00 BF [20:31:35]Write i2c OK [20:31:35]MH_I2C_Read... [20:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [20:31:35]Read from MH i2c: E2 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 D9 00 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 D9 00 17 28 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 9E [20:31:35]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 [20:31:35]wFMCommunicate OK [20:31:35]SAM_PROTO_GetShiftData done [20:31:35]requested_item shift.sale.total_cash is exist - process it [20:31:35]requested_item shift.sale_refund.total is exist - process it [20:31:35]requested_item shift.sale_refund.total_cash is exist - process it [20:31:35]requested_item shift.buy.total is exist - process it [20:31:35]requested_item shift.buy.total_cash is exist - process it [20:31:35]produce_requested_data done [20:31:35]produce_requested_data return {"fm.sale.total":81897353.28,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":488307.79,"shift.sale.total_cash":391001.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:31:35]process_action_free get_value [20:31:35]json_value_free [20:31:35]json_value_free done [20:31:35]process_json_proto returns [20:31:35]Send response to host [20:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81897353.28,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":488307.79,"shift.sale.total_cash":391001.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:31:35]free response buf [20:31:35]execute_script done [20:31:35]execute_script returns [20:31:35]free content buf [20:31:35]Sock 7.Close socket [20:31:35]Sock 7.Thread stoped [20:31:35]accept exits with 9 [20:31:35]New connection [20:31:35]New thread 3066699108 created [20:31:35]Thread 3066555748 joined [20:31:35]Waiting for new connection... [20:31:35] Sock 9.Parse request [20:31:35]Sock 9.Check first char [20:31:35]Sock 9.First char is OK [20:31:35]request: POST /json_proto HTTP/1.0 [20:31:35]Method: POST [20:31:35]URL: /json_proto [20:31:35]Method is POST - this is cgi request [20:31:35]url: /json_proto [20:31:35]query_string will be loaded in cgi processing [20:31:35]execute_cgi json_proto POST (null) [20:31:35]execute_cgi path=json_proto method=POST [20:31:35]POST find Content-Length [20:31:35]Host: 172.17.50.3:8080 [20:31:35]Content-Length: 331 [20:31:35]Content-Type: application/json [20:31:35] [20:31:35]POST finish read [20:31:35]Found Content-Length = 331 [20:31:35]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" ] } } [20:31:35]execute_script... [20:31:35]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" ] } } [20:31:35]POST & json_proto [20:31:35]process_json_proto [20:31:35]json parsed OK: [20:31:35]protocol is kg_v1.0 [20:31:35]action value=get_value [20:31:35]process_action get_value [20:31:35]cmd_get_value [20:31:35]process_action get_value done [20:31:35]requested_data is exist [20:31:35]produce_requested_data [20:31:35]requested_item fm.sale.total is exist - process it [20:31:35]SAM_PROTO_GetFMData [20:31:35]wFMCommunicate request_size=4 [20:31:35]MH_SAM_APDU [20:31:35]CAPDU: 80 13 03 00 [20:31:35]Write to MH i2c: E2 08 00 18 28 80 13 03 00 00 00 00 00 BF [20:31:35]Write i2c OK [20:31:35]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 18 28 00 C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 82 [20:31:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [20:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 17 00 00 [20:31:36]Write to MH i2c: E2 08 00 19 28 80 17 00 00 00 00 00 00 C1 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 19 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [20:31:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 17 00 00 [20:31:36]Write to MH i2c: E2 08 00 1A 28 80 17 00 00 00 00 00 00 C2 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 FD 00 1A 28 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 D4 [20:31:36]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 [20:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 17 00 00 [20:31:36]Write to MH i2c: E2 08 00 1B 28 80 17 00 00 00 00 00 00 C3 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:37]OFD Sender: No OFD packet to send [20:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:37]Read from MH i2c: E2 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: E2 FD 00 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: E2 FD 00 1B 28 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 4F [20:31:37]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 [20:31:37]wFMCommunicate OK [20:31:37]wFMCommunicate request_size=4 [20:31:37]MH_SAM_APDU [20:31:37]CAPDU: 80 17 00 00 [20:31:37]Write to MH i2c: E2 08 00 1C 28 80 17 00 00 00 00 00 00 C4 [20:31:37]Write i2c OK [20:31:37]MH_I2C_Read... [20:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:31:37]Read from MH i2c: E2 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: E2 E2 00 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: E2 E2 00 1C 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [20:31:37]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 [20:31:37]wFMCommunicate OK [20:31:37]SAM_PROTO_GetFMData done [20:31:37]requested_item fm.sale_refund.total is exist - process it [20:31:37]requested_item fm.buy.total is exist - process it [20:31:37]requested_item shift.sale.total is exist - process it [20:31:37]SAM_PROTO_GetShiftData [20:31:37]wFMCommunicate request_size=4 [20:31:37]MH_SAM_APDU [20:31:37]CAPDU: 80 13 02 00 [20:31:37]Write to MH i2c: E2 08 00 1D 28 80 13 02 00 00 00 00 00 C3 [20:31:37]Write i2c OK [20:31:37]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 1D 28 00 BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C2 [20:31:38]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:31:38]wFMCommunicate OK [20:31:38]wFMCommunicate request_size=4 [20:31:38]MH_SAM_APDU [20:31:38]CAPDU: 80 17 00 00 [20:31:38]Write to MH i2c: E2 08 00 1E 28 80 17 00 00 00 00 00 00 C6 [20:31:38]Write i2c OK [20:31:38]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 1E 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 [20:31:38]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:31:38]wFMCommunicate OK [20:31:38]wFMCommunicate request_size=4 [20:31:38]MH_SAM_APDU [20:31:38]CAPDU: 80 17 00 00 [20:31:38]Write to MH i2c: E2 08 00 1F 28 80 17 00 00 00 00 00 00 C7 [20:31:38]Write i2c OK [20:31:38]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 FD 00 1F 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F0 [20:31:39]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 [20:31:39]wFMCommunicate OK [20:31:39]wFMCommunicate request_size=4 [20:31:39]MH_SAM_APDU [20:31:39]CAPDU: 80 17 00 00 [20:31:39]Write to MH i2c: E2 08 00 20 28 80 17 00 00 00 00 00 00 C8 [20:31:39]Write i2c OK [20:31:39]MH_I2C_Read... [20:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:39]Read from MH i2c: E2 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 FD 00 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 FD 00 20 28 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 49 [20:31:39]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 [20:31:39]wFMCommunicate OK [20:31:39]wFMCommunicate request_size=4 [20:31:39]MH_SAM_APDU [20:31:39]CAPDU: 80 17 00 00 [20:31:39]Write to MH i2c: E2 08 00 21 28 80 17 00 00 00 00 00 00 C9 [20:31:39]Write i2c OK [20:31:39]MH_I2C_Read... [20:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [20:31:39]Read from MH i2c: E2 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 D9 00 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 D9 00 21 28 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 A8 [20:31:39]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 [20:31:39]wFMCommunicate OK [20:31:39]SAM_PROTO_GetShiftData done [20:31:39]requested_item shift.sale.total_cash is exist - process it [20:31:39]requested_item shift.sale_refund.total is exist - process it [20:31:39]requested_item shift.sale_refund.total_cash is exist - process it [20:31:39]requested_item shift.buy.total is exist - process it [20:31:39]requested_item shift.buy.total_cash is exist - process it [20:31:39]produce_requested_data done [20:31:39]produce_requested_data return {"fm.sale.total":81897353.28,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":488307.79,"shift.sale.total_cash":391001.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:31:39]process_action_free get_value [20:31:39]json_value_free [20:31:39]json_value_free done [20:31:39]process_json_proto returns [20:31:39]Send response to host [20:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81897353.28,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":488307.79,"shift.sale.total_cash":391001.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:31:39]free response buf [20:31:39]execute_script done [20:31:39]execute_script returns [20:31:39]free content buf [20:31:39]Sock 9.Close socket [20:31:39]Sock 9.Thread stoped [20:31:39]accept exits with 7 [20:31:39]New connection [20:31:39]New thread 3066555748 created [20:31:39]Thread 3066699108 joined [20:31:39]Waiting for new connection... [20:31:39] Sock 7.Parse request [20:31:39]Sock 7.Check first char [20:31:39]Sock 7.First char is OK [20:31:39]request: POST /json_proto HTTP/1.0 [20:31:39]Method: POST [20:31:39]URL: /json_proto [20:31:39]Method is POST - this is cgi request [20:31:39]url: /json_proto [20:31:39]query_string will be loaded in cgi processing [20:31:39]execute_cgi json_proto POST (null) [20:31:39]execute_cgi path=json_proto method=POST [20:31:39]POST find Content-Length [20:31:39]Host: 172.17.50.3:8080 [20:31:39]Content-Length: 257 [20:31:39]Content-Type: application/json [20:31:39] [20:31:39]POST finish read [20:31:39]Found Content-Length = 257 [20:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:39]execute_script... [20:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:39]POST & json_proto [20:31:39]process_json_proto [20:31:39]json parsed OK: [20:31:39]protocol is kg_v1.0 [20:31:39]action value=x_report [20:31:39]process_action x_report [20:31:39]cmd_x_report [20:31:39]MH_GetDate [20:31:39]Write to MH i2c: F0 00 00 22 28 39 [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 09 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 09 00 22 28 00 AD 0B 18 67 6B 98 1E 66 00 [20:31:40]GetLastDocTimeStamp 1729628940 [20:31:40]current date 1729629101 [20:31:40]FM_GetShiftState [20:31:40]SAM_PROTO_GetShiftState [20:31:40]wFMCommunicate request_size=4 [20:31:40]MH_SAM_APDU [20:31:40]CAPDU: 80 13 01 00 [20:31:40]Write to MH i2c: E2 08 00 23 28 80 13 01 00 00 00 00 00 C8 [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:40]Read from MH i2c: E2 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 0E 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 0E 00 23 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B6 [20:31:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:31:40]wFMCommunicate OK [20:31:40]SAM_PROTO_GetShiftState done [20:31:40]FM_GetShiftState done [20:31:40]KKMCreateXReportDocument [20:31:40]Load OK [20:31:40]Malloc new data [20:31:40]MH_GetDate [20:31:40]Write to MH i2c: F0 00 00 24 28 3B [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 09 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 09 00 24 28 00 AD 0B 18 67 6B 98 1E 66 02 [20:31:40]Malloc new data [20:31:40]Malloc new data [20:31:40]wFMCommunicate request_size=4 [20:31:40]MH_SAM_APDU [20:31:40]CAPDU: 80 11 00 00 [20:31:40]Write to MH i2c: E2 08 00 25 28 80 11 00 00 00 00 00 00 C7 [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:40]Read from MH i2c: E2 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 17 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 17 00 25 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [20:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:31:40]wFMCommunicate OK [20:31:40]SAM_PROTO_GetFieldsCounters [20:31:40]wFMCommunicate request_size=4 [20:31:40]MH_SAM_APDU [20:31:40]CAPDU: 80 13 00 00 [20:31:40]Write to MH i2c: E2 08 00 26 28 80 13 00 00 00 00 00 00 CA [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:40]Read from MH i2c: E2 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 62 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 62 00 26 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:40]wFMCommunicate OK [20:31:40]SAM_PROTO_GetFieldsCounters done [20:31:40]Malloc new data [20:31:40]Malloc new data [20:31:40]Malloc new data [20:31:40]KKMCreateXReportDocument OK [20:31:40]KKMSetXReportData OK [20:31:40]KKMPrepareXReportFMData [20:31:40]SAM_PROTO_GetShiftData [20:31:40]wFMCommunicate request_size=4 [20:31:40]MH_SAM_APDU [20:31:40]CAPDU: 80 13 02 00 [20:31:40]Write to MH i2c: E2 08 00 27 28 80 13 02 00 00 00 00 00 CD [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:31:40]Read from MH i2c: E2 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 FD 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 FD 00 27 28 00 BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 CC [20:31:41]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 80 01 00 00 69 04 9E 00 6F 04 04 00 7A 01 00 00 B1 04 04 00 3B 19 E9 02 70 04 04 00 C4 9E 54 02 72 04 03 00 77 7A 94 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 E7 23 4F 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 43 98 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 17 00 00 [20:31:41]Write to MH i2c: E2 08 00 28 28 80 17 00 00 00 00 00 00 D0 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 FD 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 FD 00 28 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E [20:31:41]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 17 00 00 [20:31:41]Write to MH i2c: E2 08 00 29 28 80 17 00 00 00 00 00 00 D1 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 FD 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 FD 00 29 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA [20:31:41]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 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 17 00 00 [20:31:41]Write to MH i2c: E2 08 00 2A 28 80 17 00 00 00 00 00 00 D2 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]OFD Sender: No OFD packet to send [20:31:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:42]Read from MH i2c: E2 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 FD 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 FD 00 2A 28 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 53 [20:31:42]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 [20:31:42]wFMCommunicate OK [20:31:42]wFMCommunicate request_size=4 [20:31:42]MH_SAM_APDU [20:31:42]CAPDU: 80 17 00 00 [20:31:42]Write to MH i2c: E2 08 00 2B 28 80 17 00 00 00 00 00 00 D3 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [20:31:42]Read from MH i2c: E2 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 D9 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 D9 00 2B 28 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 B2 [20:31:42]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 [20:31:42]wFMCommunicate OK [20:31:42]SAM_PROTO_GetShiftData done [20:31:42]1194 (1208) - счетчики итогов смены [20:31:42] 1134 (4) - 384 - количество чеков со всеми признаками расчетов [20:31:42] 1129 (158) - счетчики операций «приход» [20:31:42] 1135 (4) - 378 - количество чеков по признаку расчетов [20:31:42] 1201 (4) - 488307.79 - общая итоговая сумма в чеках [20:31:42] 1136 (4) - 391001.00 - итоговая сумма в чеках наличными [20:31:42] 1138 (3) - 97306.79 - итоговая сумма в чеках безналичными [20:31:42] 1024 (123) - суммы налогов [20:31:42] 1006 (9) - суммы НДС [20:31:42] 1010 (1) - 0% - код ставки НДС [20:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:42] 1006 (12) - суммы НДС [20:31:42] 1010 (1) - 12% - код ставки НДС [20:31:42] 1011 (3) - 51865.35 - сумма НДС по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 0% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (12) - суммы НСП [20:31:42] 1014 (1) - 1% - код ставки НСП [20:31:42] 1015 (3) - 4321.95 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 2% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 3% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 5% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 0,50% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 1,50% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1130 (152) - счетчики операций «возврат прихода» [20:31:42] 1135 (4) - 6 - количество чеков по признаку расчетов [20:31:42] 1201 (3) - 30710.00 - общая итоговая сумма в чеках [20:31:42] 1136 (3) - 30710.00 - итоговая сумма в чеках наличными [20:31:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [20:31:42] 1024 (122) - суммы налогов [20:31:42] 1006 (9) - суммы НДС [20:31:42] 1010 (1) - 0% - код ставки НДС [20:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:42] 1006 (12) - суммы НДС [20:31:42] 1010 (1) - 12% - код ставки НДС [20:31:42] 1011 (3) - 3261.30 - сумма НДС по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 0% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (11) - суммы НСП [20:31:42] 1014 (1) - 1% - код ставки НСП [20:31:42] 1015 (2) - 271.78 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 2% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 3% - код ставки НСП [20:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:42] 1007 (9) - суммы НСП [20:31:42] 1014 (1) - 5% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 0,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 1,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1131 (141) - счетчики операций «расход» [20:31:43] 1135 (4) - 0 - количество чеков по признаку расчетов [20:31:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [20:31:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [20:31:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [20:31:43] 1024 (117) - суммы налогов [20:31:43] 1006 (9) - суммы НДС [20:31:43] 1010 (1) - 0% - код ставки НДС [20:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:43] 1006 (9) - суммы НДС [20:31:43] 1010 (1) - 12% - код ставки НДС [20:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 0% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 1% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 2% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 3% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 5% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 0,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 1,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1132 (141) - счетчики операций «возврат расхода» [20:31:43] 1135 (4) - 0 - количество чеков по признаку расчетов [20:31:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [20:31:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [20:31:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [20:31:43] 1024 (117) - суммы налогов [20:31:43] 1006 (9) - суммы НДС [20:31:43] 1010 (1) - 0% - код ставки НДС [20:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:43] 1006 (9) - суммы НДС [20:31:43] 1010 (1) - 12% - код ставки НДС [20:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 0% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 1% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 2% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 3% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 5% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 0,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1007 (9) - суммы НСП [20:31:43] 1014 (1) - 1,50% - код ставки НСП [20:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [20:31:43] 1133 (588) - - счетчики коррекции - не используются [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1194 (04AA) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1134 (046E) [20:31:43]Malloc new data [20:31:43]Processing tag 1129 (0469) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1135 (046F) [20:31:43]Malloc new data [20:31:43]Processing tag 1201 (04B1) [20:31:43]Malloc new data [20:31:43]Processing tag 1136 (0470) [20:31:43]Malloc new data [20:31:43]Processing tag 1138 (0472) [20:31:43]Malloc new data [20:31:43]Processing tag 1024 (0400) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1130 (046A) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1135 (046F) [20:31:43]Malloc new data [20:31:43]Processing tag 1201 (04B1) [20:31:43]Malloc new data [20:31:43]Processing tag 1136 (0470) [20:31:43]Malloc new data [20:31:43]Processing tag 1138 (0472) [20:31:43]Malloc new data [20:31:43]Processing tag 1024 (0400) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1131 (046B) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1135 (046F) [20:31:43]Malloc new data [20:31:43]Processing tag 1201 (04B1) [20:31:43]Malloc new data [20:31:43]Processing tag 1136 (0470) [20:31:43]Malloc new data [20:31:43]Processing tag 1138 (0472) [20:31:43]Malloc new data [20:31:43]Processing tag 1024 (0400) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1132 (046C) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1135 (046F) [20:31:43]Malloc new data [20:31:43]Processing tag 1201 (04B1) [20:31:43]Malloc new data [20:31:43]Processing tag 1136 (0470) [20:31:43]Malloc new data [20:31:43]Processing tag 1138 (0472) [20:31:43]Malloc new data [20:31:43]Processing tag 1024 (0400) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1006 (03EE) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1010 (03F2) [20:31:43]Malloc new data [20:31:43]Processing tag 1011 (03F3) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:43]Processing tag 1007 (03EF) [20:31:43]Load OK [20:31:43]SetTLVBufToDocument [20:31:43]Processing tag 1014 (03F6) [20:31:43]Malloc new data [20:31:43]Processing tag 1015 (03F7) [20:31:43]Malloc new data [20:31:43]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1007 (03EF) [20:31:44]Load OK [20:31:44]SetTLVBufToDocument [20:31:44]Processing tag 1014 (03F6) [20:31:44]Malloc new data [20:31:44]Processing tag 1015 (03F7) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]SetTLVBufToDocument err=0 [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Processing tag 1133 (046D) [20:31:44]Malloc new data [20:31:44]SetTLVBufToDocument err=0 [20:31:44]SetTLVBufToDocument err=0 [20:31:44]Malloc new data [20:31:44]SAM_PROTO_GetFMData [20:31:44]wFMCommunicate request_size=4 [20:31:44]MH_SAM_APDU [20:31:44]CAPDU: 80 13 03 00 [20:31:44]Write to MH i2c: E2 08 00 2C 28 80 13 03 00 00 00 00 00 D3 [20:31:44]Write i2c OK [20:31:44]MH_I2C_Read... [20:31:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:31:44]Read from MH i2c: E2 [20:31:44]MH_I2C_Read... [20:31:44]Read from MH i2c: E2 FD 00 [20:31:44]MH_I2C_Read... [20:31:44]Read from MH i2c: E2 FD 00 2C 28 00 C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 96 [20:31:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [20:31:44]wFMCommunicate OK [20:31:44]wFMCommunicate request_size=4 [20:31:44]MH_SAM_APDU [20:31:44]CAPDU: 80 17 00 00 [20:31:44]Write to MH i2c: E2 08 00 2D 28 80 17 00 00 00 00 00 00 D5 [20:31:44]Write i2c OK [20:31:44]MH_I2C_Read... [20:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:45]Read from MH i2c: E2 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 FD 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 FD 00 2D 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 62 [20:31:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:45]wFMCommunicate OK [20:31:45]wFMCommunicate request_size=4 [20:31:45]MH_SAM_APDU [20:31:45]CAPDU: 80 17 00 00 [20:31:45]Write to MH i2c: E2 08 00 2E 28 80 17 00 00 00 00 00 00 D6 [20:31:45]Write i2c OK [20:31:45]MH_I2C_Read... [20:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:45]Read from MH i2c: E2 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 FD 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 FD 00 2E 28 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 E8 [20:31:45]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 [20:31:45]wFMCommunicate OK [20:31:45]wFMCommunicate request_size=4 [20:31:45]MH_SAM_APDU [20:31:45]CAPDU: 80 17 00 00 [20:31:45]Write to MH i2c: E2 08 00 2F 28 80 17 00 00 00 00 00 00 D7 [20:31:45]Write i2c OK [20:31:45]MH_I2C_Read... [20:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:31:46]Read from MH i2c: E2 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 FD 00 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 FD 00 2F 28 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 63 [20:31:46]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 [20:31:46]wFMCommunicate OK [20:31:46]wFMCommunicate request_size=4 [20:31:46]MH_SAM_APDU [20:31:46]CAPDU: 80 17 00 00 [20:31:46]Write to MH i2c: E2 08 00 30 28 80 17 00 00 00 00 00 00 D8 [20:31:46]Write i2c OK [20:31:46]MH_I2C_Read... [20:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:31:46]Read from MH i2c: E2 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 E2 00 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 E2 00 30 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [20:31:46]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 [20:31:46]wFMCommunicate OK [20:31:46]SAM_PROTO_GetFMData done [20:31:46]FM_GetFMData:85 04 C1 04 6E 04 04 00 9E 11 01 00 69 04 A3 00 6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 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 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [20:31:47]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:31:47]oper:6F 04 04 00 59 0E 01 00 B1 04 05 00 A0 71 25 E8 01 70 04 05 00 08 C9 A3 5C 01 72 04 04 00 98 A8 81 8B 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 76 66 D9 33 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 62 0E 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:31:47]total:A0 71 25 E8 01 [20:31:47]Malloc new data [20:31:47]oper:6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 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 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:31:47]total:5C C4 04 12 [20:31:47]Malloc new data [20:31:47]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 [20:31:47]total: [20:31:47]Malloc new data [20:31:47]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 [20:31:48]total: [20:31:48]Malloc new data [20:31:48]KKMPrepareXReportFMData err=0 [20:31:48]Х отчет ИНН: 02508201610067 Кассир: Ахмедова У. 22.10.2024 20:31 Смена: 10 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Всего чеков: 384 ИТОГИ ПРИХОД Чеков: 378 Общий итог: 488307.79 Итого наличными: 391001.00 Итого безнал.: 97306.79 НДС 0% : 0.00 НДС 12% : 51865.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4321.95 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 30710.00 Итого наличными: 30710.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3261.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 271.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 360291.00 НС Приход: 81897353.28 НС Возвр.Прихода: 3023023.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963346 [20:31:48]StoreToDocumentArchive [20:31:48]MH_GetDate [20:31:48]Write to MH i2c: F0 00 00 31 28 48 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: F0 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: F0 09 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: F0 09 00 31 28 00 B5 0B 18 67 6B 98 1E 66 17 [20:31:48]shift 10 fd 1729629109 [20:31:48]Create dir for shift 0010 [20:31:48]save to /storage/0010/doc_1729629109 [20:31:48]save last doc name /storage/0010/doc_1729629109 to /storage/kkm_last_doc_name [20:31:48]save OK [20:31:48]Clear old archive folders... [20:31:48]NVStorageSaveData kkm_last_timestamp [20:31:48]File name is /storage/kkm_last_timestamp [20:31:48]Write 4 bytes [20:31:48]NVStorageSaveData done [20:31:48]ExternCall_PrintAddStr [20:31:48]wPrintStart [20:31:48]Write to MH i2c: 01 00 00 32 28 5A [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 FF 0F 6F [20:31:48]RasterBufferAndPrint [20:31:48]line Х отчет [20:31:48]line ИНН: 02508201610067 [20:31:48]line Кассир: Ахмедова У. [20:31:48]line 22.10.2024 20:31 [20:31:48]line Смена: 10 [20:31:48]line РНМ: 0000000000156251 [20:31:48]line ЗНМ: 0300000167 [20:31:48]line СНО: Общий режим [20:31:48]line Всего чеков: 384 [20:31:48]line ИТОГИ ПРИХОД [20:31:48]line Чеков: 378 [20:31:48]line Общий итог: 488307.79 [20:31:48]line Итого наличными: 391001.00 [20:31:48]line Итого безнал.: 97306.79 [20:31:48]line НДС 0% : 0.00 [20:31:48]line НДС 12% : 51865.35 [20:31:48]line НСП 0% : 0.00 [20:31:48]line НСП 1,50% : 0.00 [20:31:48]line НСП 0,50% : 0.00 [20:31:48]line НСП 5% : 0.00 [20:31:48]line НСП 3% : 0.00 [20:31:48]line НСП 2% : 0.00 [20:31:48]line НСП 1% : 4321.95 [20:31:48]line ИТОГИ ВОЗВРАТ ПРИХОДА [20:31:48]line Чеков: 6 [20:31:48]line Общий итог: 30710.00 [20:31:48]line Итого наличными: 30710.00 [20:31:48]line Итого безнал.: 0.00 [20:31:48]line НДС 0% : 0.00 [20:31:48]line НДС 12% : 3261.30 [20:31:48]line НСП 0% : 0.00 [20:31:48]line НСП 1,50% : 0.00 [20:31:48]line НСП 0,50% : 0.00 [20:31:48]line НСП 5% : 0.00 [20:31:48]line НСП 3% : 0.00 [20:31:48]line НСП 2% : 0.00 [20:31:48]line НСП 1% : 271.78 [20:31:48]line ИТОГИ РАСХОД [20:31:48]line Чеков: 0 [20:31:48]line Общий итог: 0.00 [20:31:48]line Итого наличными: 0.00 [20:31:48]line Итого безнал.: 0.00 [20:31:48]line НДС 0% : 0.00 [20:31:48]line НДС 12% : 0.00 [20:31:48]line НСП 0% : 0.00 [20:31:48]line НСП 1,50% : 0.00 [20:31:48]line НСП 0,50% : 0.00 [20:31:48]line НСП 5% : 0.00 [20:31:48]line НСП 3% : 0.00 [20:31:48]line НСП 2% : 0.00 [20:31:48]line НСП 1% : 0.00 [20:31:48]line ИТОГИ ВОЗВРАТ РАСХОДА [20:31:48]line Чеков: 0 [20:31:48]line Общий итог: 0.00 [20:31:48]line Итого наличными: 0.00 [20:31:48]line Итого безнал.: 0.00 [20:31:48]line НДС 0% : 0.00 [20:31:48]line НДС 12% : 0.00 [20:31:48]line НСП 0% : 0.00 [20:31:48]line НСП 1,50% : 0.00 [20:31:48]line НСП 0,50% : 0.00 [20:31:48]line НСП 5% : 0.00 [20:31:48]line НСП 3% : 0.00 [20:31:48]line НСП 2% : 0.00 [20:31:48]line НСП 1% : 0.00 [20:31:48]line Сумма внесений: 0.00 [20:31:48]line Сумма выплат: 0.00 [20:31:48]line Нал. в кассе: 360291.00 [20:31:48]line НС Приход: 81897353.28 [20:31:48]line НС Возвр.Прихода: 3023023.00 [20:31:48]line НС Расход: 0.00 [20:31:48]line НС Возвр.Расхода: 0.00 [20:31:48]line ФМ: 0000000000963346 [20:31:48]written 0, free lines is 4095 [20:31:48]Write to MH i2c: 01 00 00 7D 28 A5 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 7D 28 00 00 00 00 00 0F 0B C6 [20:31:48]RasterBufferAndPrint [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]written 0, free lines is 2867 [20:31:48]MH_Cut [20:31:48]Write to MH i2c: D1 01 00 84 28 01 7E [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 01 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 01 00 84 28 00 7D [20:31:48]Write to MH i2c: 01 00 00 85 28 AD [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:49]*** Cut start [20:31:49]*** Partial cut [20:31:49]*** CUTSNS_PIN = 1 [20:31:49]*** CUTSNS_PIN = 0 [20:31:50]*** Brake cut motor [20:31:50]Read from MH i2c: 01 [20:31:50]MH_I2C_Read... [20:31:50]*** Stop cut motor [20:31:50]*** Cut end [20:31:50]Read from MH i2c: 01 07 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: 01 07 00 85 28 00 00 00 00 00 FF 0F C2 [20:31:50]process_action x_report done [20:31:50]requested_data is exist [20:31:50]produce_requested_data [20:31:50]requested_item fd.num is exist - process it [20:31:50]SAM_PROTO_GetFieldsCounters [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 13 00 00 [20:31:50]Write to MH i2c: E2 08 00 86 28 80 13 00 00 00 00 00 00 2A [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 62 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 62 00 86 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [20:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:50]wFMCommunicate OK [20:31:50]SAM_PROTO_GetFieldsCounters done [20:31:50]requested_item shift.num is exist - process it [20:31:50]requested_item shift.opened is exist - process it [20:31:50]req_shift_opened [20:31:50]FM_GetShiftState [20:31:50]SAM_PROTO_GetShiftState [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 13 01 00 [20:31:50]Write to MH i2c: E2 08 00 87 28 80 13 01 00 00 00 00 00 2C [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 0E 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 0E 00 87 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1A [20:31:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:31:50]wFMCommunicate OK [20:31:50]SAM_PROTO_GetShiftState done [20:31:50]FM_GetShiftState done [20:31:50]req_shift_opened done [20:31:50]requested_item shift.open_date is exist - process it [20:31:50]req_shift_open_date [20:31:50]req_shift_open_date done [20:31:50]produce_requested_data done [20:31:50]produce_requested_data return {"fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:31:50]process_action_free x_report [20:31:50]json_value_free [20:31:50]json_value_free done [20:31:50]process_json_proto returns [20:31:50]Send response to host [20:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70436,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:31:50]free response buf [20:31:50]execute_script done [20:31:50]execute_script returns [20:31:50]free content buf [20:31:50]Sock 7.Close socket [20:31:50]Sock 7.Thread stoped [20:31:51]accept exits with 9 [20:31:51]New connection [20:31:51]New thread 3066699108 created [20:31:51]Thread 3066555748 joined [20:31:51]Waiting for new connection... [20:31:51] Sock 9.Parse request [20:31:51]Sock 9.Check first char [20:31:51]Sock 9.First char is OK [20:31:51]request: POST /json_proto HTTP/1.0 [20:31:51]Method: POST [20:31:51]URL: /json_proto [20:31:51]Method is POST - this is cgi request [20:31:51]url: /json_proto [20:31:51]query_string will be loaded in cgi processing [20:31:51]execute_cgi json_proto POST (null) [20:31:51]execute_cgi path=json_proto method=POST [20:31:51]POST find Content-Length [20:31:51]Host: 172.17.50.3:8080 [20:31:51]Content-Length: 683 [20:31:51]Content-Type: application/json [20:31:51] [20:31:51]POST finish read [20:31:51]Found Content-Length = 683 [20:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]execute_script... [20:31: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)2886206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]POST & json_proto [20:31:51]process_json_proto [20:31:51]json parsed OK: [20:31:51]protocol is kg_v1.0 [20:31:51]action value=close_receipt [20:31:51]process_action close_receipt [20:31:51]cmd_close_receipt [20:31:51]MH_GetDate [20:31:51]Write to MH i2c: F0 00 00 88 28 9F [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 88 28 00 B8 0B 18 67 6B 98 1E 66 71 [20:31:51]GetLastDocTimeStamp 1729629101 [20:31:51]current date 1729629112 [20:31:51]FM_GetShiftState [20:31:51]SAM_PROTO_GetShiftState [20:31:51]wFMCommunicate request_size=4 [20:31:51]MH_SAM_APDU [20:31:51]CAPDU: 80 13 01 00 [20:31:51]Write to MH i2c: E2 08 00 89 28 80 13 01 00 00 00 00 00 2E [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:51]Read from MH i2c: E2 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 89 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1C [20:31:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:31:51]wFMCommunicate OK [20:31:51]SAM_PROTO_GetShiftState done [20:31:51]FM_GetShiftState done [20:31:51]opened in 1729555832 [20:31:51]opened+sec_in_day 1729642232 [20:31:51]quantity*price = 400062 [20:31:51]sum+1 = 400063 [20:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4000.00 Внесено: 6000.00 СДАЧА: 2000.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 385 22.10.2024 20:31 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70437 ФПД: 205173057566800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70437&fm=205173057566800&tin=02508201610067®Number=0000000000156251&sum=400000 [20:31:53]StoreToDocumentArchive [20:31:53]shift 195 fd 70437 [20:31:53]save to /storage/0195/doc_00070437 [20:31:53]save last doc name /storage/0195/doc_00070437 to /storage/kkm_last_doc_name [20:31:53]save OK [20:31:53]Clear old archive folders... [20:31:53]Remove dir /storage/0010 [20:31:53]opendir ok [20:31:53]file . [20:31:53]file .. [20:31:53]file doc_1729629109 [20:31:53]remove file /storage/0010/doc_1729629109 [20:31:53]remove dir /storage/0010 [20:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:53]tlvbuf is 00C2DE40 [20:31:53]SAM_PROTO_ClearQueue [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 09 00 00 [20:31:53]Write to MH i2c: E2 08 00 96 28 80 09 00 00 00 00 00 00 30 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]SAM_PROTO_ClearQueue done [20:31:53]KKMCreateOFDPacket [20:31:53]OFDProtocolAddRootSTLVToBuf [20:31:53]FM_MakeSignedData [20:31:53]FM_MakeSignedData [20:31:53]SAM_PROTO_SignData [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 01 02 [20:31:53]Write to MH i2c: E2 08 00 97 28 80 0D 01 02 00 00 00 00 38 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=255 [20:31:53]MH_SAM_APDU [20:31: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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 81 01 00 00 F4 03 04 00 B8 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 13 01 00 35 04 06 00 BA [20:31:53]Write to MH i2c: E2 02 01 98 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 81 01 00 00 F4 03 04 00 B8 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 13 01 00 35 04 06 00 BA 00 00 0B [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 98 28 00 90 00 34 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=10 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 02 02 05 9A 93 36 B8 50 [20:31:53]Write to MH i2c: E2 0D 00 99 28 80 0D 02 02 05 00 9A 93 36 B8 50 00 00 B0 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 03 02 [20:31:53]Write to MH i2c: E2 08 00 9A 28 80 0D 03 02 00 00 00 00 3D [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:54]Read from MH i2c: E2 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 0B 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 0B 00 9A 28 00 CB 6E 4E E7 50 2F B6 F3 90 00 D4 [20:31:54]RAPDU: CB 6E 4E E7 50 2F B6 F3 90 00 [20:31:54]wFMCommunicate OK [20:31:54]SAM_PROTO_SignData done [20:31:54]FM_MakeSignedData done [20:31:54]CreateOFDProtocolMessage [20:31:54]wFMCommunicate request_size=4 [20:31:54]MH_SAM_APDU [20:31:54]CAPDU: 80 11 00 00 [20:31:54]Write to MH i2c: E2 08 00 9B 28 80 11 00 00 00 00 00 00 3D [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:54]Read from MH i2c: E2 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 17 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 17 00 9B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [20:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:31:54]wFMCommunicate OK [20:31:54]CreateOFDProtocolMessage done [20:31:54]OFDSenderStorePacket 70437 [20:31:54]StoreOFDPacket docnum=70437 [20:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5A 7C 07 01 67 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 81 01 00 00 F4 03 04 00 B8 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 13 01 00 35 04 06 00 BA 9A 93 36 B8 50 CB 6E 4E E7 50 2F B6 F3 [20:31:54]CheckFolder [20:31:54]dirname=/storage/ofd_packets [20:31:54]CheckFolder done [20:31:54]ProducePacketName [20:31:54]name=ofd_packets/00070437 [20:31:54]NVStorageSaveData ofd_packets/00070437 [20:31:54]File name is /storage/ofd_packets/00070437 [20:31:54]Write 301 bytes [20:31:54]NVStorageSaveData done [20:31:54]OFDSenderStorePacket done [20:31:54]KKMCreateOFDPacket done [20:31:54]NVStorageSaveData kkm_last_timestamp [20:31:54]File name is /storage/kkm_last_timestamp [20:31:54]Write 4 bytes [20:31:54]NVStorageSaveData done [20:31:54]ExternCall_PrintAddStr [20:31:54]wPrintStart [20:31:54]Write to MH i2c: 01 00 00 9C 28 C4 [20:31:54]OFD Sender: Processing packet 70437 [packets to send 18, broken 17] [20:31:54]ProducePacketName [20:31:54]name=ofd_packets/00070437 [20:31:54]OFD Sender: To server: pG, [20:31:54]CommunicateWithHost lk.salyk.kg:30040 [20:31:54]ConnectInit lk.salyk.kg [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 FF 0F D9 [20:31:54]RasterBufferAndPrint [20:31:54]line Счет N : (1)2886206 [20:31:54]line ИНН: 02508201610067 [20:31:54]line Контрольно-Кассовый Чек [20:31:54]line ПРОДАЖА [20:31:54]line ТРК (МРК, ГНК) : 12 [20:31:54]line Товар: 2710124130 [20:31:54]line Аи-92-К-5 [20:31:54]line 59.800 * 66.90 [20:31:54]line = 4000.62 [20:31:54]line НДС 12% НСП 1% [20:31:54]line > о реализуемом товаре [20:31:54]line ОКРУГЛЕНИЕ: -0.62 [20:31:54]line ИТОГО: 4000.00 [20:31:54]line Внесено: 6000.00 [20:31:54]line СДАЧА: 2000.00 [20:31:54]line НСП 1% : 35.40 [20:31:54]line НДС 12% : 424.84 [20:31:54]line Наличными: 4000.00 [20:31:54]line Безнал.: 0.00 [20:31:54]line Место: АЗС № 85 "Партнер Нефть" [20:31:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:31:54]line СНО: Общий режим [20:31:54]line Чек 385 22.10.2024 20:31 [20:31:54]line Смена: 195 ФФД: 1.0 [20:31:54]line ЗНМ: 0300000167 [20:31:54]line РНМ: 0000000000156251 [20:31:54]line Версия ККМ: v1.0 [20:31:54]line ФМ: 0000000000963346 [20:31:54]line ФД: 70437 [20:31:54]line ФПД: 205173057566800 [20:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70437&fm=205173057566800&tin=02508201610067®Number=0000000000156251&sum=400000 [20:31:54]written 0, free lines is 4095 [20:31:54]Connected sock=10 [20:31: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 34 36 0F 01 00 00 5A 7C 07 01 67 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 81 01 00 00 F4 03 04 00 B8 0B 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 13 01 00 35 04 06 00 BA 9A 93 36 B8 50 CB 6E 4E E7 50 2F B6 F3 [20:31: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 34 36 4F 00 00 00 F3 E9 47 00 1E 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 34 36 10 04 04 00 25 13 01 00 F4 03 04 00 59 B5 17 67 B6 04 01 00 00 1C 91 2A 65 36 02 7D 27 [20:31:54]CommunicateWithHost err = 0 [20:31:54]CheckOFDResponse [20:31:54]1017 (14) - 77093643461234 [20:31:54]1041 (16) - 0000000000963346 [20:31:54]1040 (4) - 70437 [20:31:54]1012 (4) - 22.10.2024 14:23 [20:31:54]1206 (1) - 0 [20:31:54]OFD Sender: Remove packet 70437 [20:31:54]ProducePacketName [20:31:54]name=ofd_packets/00070437 [20:31:54]NVStorageDeleteData [20:31:54]Write to MH i2c: 01 00 00 C7 28 EF [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 C7 28 00 00 00 00 00 79 0D 7C [20:31:54]RasterBufferAndPrint [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]written 0, free lines is 3484 [20:31:54]MH_Cut [20:31:54]Write to MH i2c: D1 01 00 CE 28 01 C8 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 CE 28 00 C7 [20:31:54]Write to MH i2c: 01 00 00 CF 28 F7 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:55]OFD Sender: No OFD packet to send [20:31:55]*** Cut start [20:31:55]*** Partial cut [20:31:55]*** CUTSNS_PIN = 1 [20:31:55]*** CUTSNS_PIN = 0 [20:31:55]*** Brake cut motor [20:31:55]Read from MH i2c: 01 [20:31:56]MH_I2C_Read... [20:31:56]*** Stop cut motor [20:31:56]*** Cut end [20:31:56]Read from MH i2c: 01 07 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 CF 28 00 00 00 00 00 FF 0F 0C [20:31:56]process_action close_receipt done [20:31:56]requested_data is exist [20:31:56]produce_requested_data [20:31:56]requested_item fm.sn is exist - process it [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 11 00 00 [20:31:56]Write to MH i2c: E2 08 00 D0 28 80 11 00 00 00 00 00 00 72 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 D0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [20:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:31:56]wFMCommunicate OK [20:31:56]requested_item fd.num is exist - process it [20:31:56]SAM_PROTO_GetFieldsCounters [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 13 00 00 [20:31:56]Write to MH i2c: E2 08 00 D1 28 80 13 00 00 00 00 00 00 75 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 62 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 62 00 D1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [20:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_GetFieldsCounters done [20:31:56]requested_item shift.num is exist - process it [20:31:56]requested_item shift.opened is exist - process it [20:31:56]req_shift_opened [20:31:56]FM_GetShiftState [20:31:56]SAM_PROTO_GetShiftState [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 13 01 00 [20:31:56]Write to MH i2c: E2 08 00 D2 28 80 13 01 00 00 00 00 00 77 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0E 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0E 00 D2 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 65 [20:31:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_GetShiftState done [20:31:56]FM_GetShiftState done [20:31:56]req_shift_opened done [20:31:56]requested_item shift.open_date is exist - process it [20:31:56]req_shift_open_date [20:31:56]req_shift_open_date done [20:31:56]produce_requested_data done [20:31:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70437,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:31:56]process_action_free close_receipt [20:31:56]json_value_free [20:31:56]json_value_free done [20:31:56]process_json_proto returns [20:31:56]Send response to host [20:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70437,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:31:56]free response buf [20:31:56]execute_script done [20:31:56]execute_script returns [20:31:56]free content buf [20:31:56]Sock 9.Close socket [20:31:56]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:14]accept exits with 7 [20:36:14]New connection [20:36:14]New thread 3066555748 created [20:36:14]Thread 3066699108 joined [20:36:14]Waiting for new connection... [20:36:14] Sock 7.Parse request [20:36:14]Sock 7.Check first char [20:36:14]Sock 7.First char is OK [20:36:14]request: POST /json_proto HTTP/1.0 [20:36:14]Method: POST [20:36:14]URL: /json_proto [20:36:14]Method is POST - this is cgi request [20:36:14]url: /json_proto [20:36:14]query_string will be loaded in cgi processing [20:36:14]execute_cgi json_proto POST (null) [20:36:14]execute_cgi path=json_proto method=POST [20:36:14]POST find Content-Length [20:36:14]Host: 172.17.50.3:8080 [20:36:14]Content-Length: 678 [20:36:14]Content-Type: application/json [20:36:14] [20:36:14]POST finish read [20:36:14]Found Content-Length = 678 [20:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [20:36:14]execute_script... [20: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)2886207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [20:36:14]POST & json_proto [20:36:14]process_json_proto [20:36:14]json parsed OK: [20:36:14]protocol is kg_v1.0 [20:36:14]action value=close_receipt [20:36:14]process_action close_receipt [20:36:14]cmd_close_receipt [20:36:14]MH_GetDate [20:36:14]Write to MH i2c: F0 00 00 D3 28 EA [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 09 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: F0 09 00 D3 28 00 BF 0C 18 67 6B 98 1E 66 C4 [20:36:14]GetLastDocTimeStamp 1729629112 [20:36:14]current date 1729629375 [20:36:14]FM_GetShiftState [20:36:14]SAM_PROTO_GetShiftState [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 13 01 00 [20:36:14]Write to MH i2c: E2 08 00 D4 28 80 13 01 00 00 00 00 00 79 [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 D4 28 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 67 [20:36:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetShiftState done [20:36:14]FM_GetShiftState done [20:36:14]opened in 1729555832 [20:36:14]opened+sec_in_day 1729642232 [20:36:14]quantity*price = 60027 [20:36:14]sum+1 = 60029 [20:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 386 22.10.2024 20:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70438 ФПД: 214575714422079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70438&fm=214575714422079&tin=02508201610067®Number=0000000000156251&sum=60000 [20:36:15]StoreToDocumentArchive [20:36:15]shift 195 fd 70438 [20:36:15]save to /storage/0195/doc_00070438 [20:36:15]save last doc name /storage/0195/doc_00070438 to /storage/kkm_last_doc_name [20:36:15]save OK [20:36:15]Clear old archive folders... [20:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:15]tlvbuf is 00D78120 [20:36:15]SAM_PROTO_ClearQueue [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 09 00 00 [20:36:15]Write to MH i2c: E2 08 00 E1 28 80 09 00 00 00 00 00 00 7B [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]SAM_PROTO_ClearQueue done [20:36:15]KKMCreateOFDPacket [20:36:15]OFDProtocolAddRootSTLVToBuf [20:36:15]FM_MakeSignedData [20:36:15]FM_MakeSignedData [20:36:15]SAM_PROTO_SignData [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 01 02 [20:36:15]Write to MH i2c: E2 08 00 E2 28 80 0D 01 02 00 00 00 00 83 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=255 [20:36:15]MH_SAM_APDU [20:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 82 01 00 00 F4 03 04 00 BF 0C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 13 01 00 35 04 06 00 C3 [20:36:15]Write to MH i2c: E2 02 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 82 01 00 00 F4 03 04 00 BF 0C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 13 01 00 35 04 06 00 C3 00 00 F7 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [20:36:16]RAPDU: 90 00 [20:36:16]wFMCommunicate OK [20:36:16]wFMCommunicate request_size=10 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 0D 02 02 05 27 CD 3C 4D 3F [20:36:16]Write to MH i2c: E2 0D 00 E4 28 80 0D 02 02 05 00 27 CD 3C 4D 3F 00 00 4C [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [20:36:16]RAPDU: 90 00 [20:36:16]wFMCommunicate OK [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 0D 03 02 [20:36:16]Write to MH i2c: E2 08 00 E5 28 80 0D 03 02 00 00 00 00 88 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0B 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0B 00 E5 28 00 13 95 20 9C CD 5A 4E 6E 90 00 D0 [20:36:16]RAPDU: 13 95 20 9C CD 5A 4E 6E 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_SignData done [20:36:16]FM_MakeSignedData done [20:36:16]CreateOFDProtocolMessage [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 11 00 00 [20:36:16]Write to MH i2c: E2 08 00 E6 28 80 11 00 00 00 00 00 00 88 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 E6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [20:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:36:16]wFMCommunicate OK [20:36:16]CreateOFDProtocolMessage done [20:36:16]OFDSenderStorePacket 70438 [20:36:16]StoreOFDPacket docnum=70438 [20:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 09 76 07 01 1B A1 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 82 01 00 00 F4 03 04 00 BF 0C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 13 01 00 35 04 06 00 C3 27 CD 3C 4D 3F 13 95 20 9C CD 5A 4E 6E [20:36:16]CheckFolder [20:36:16]dirname=/storage/ofd_packets [20:36:16]CheckFolder done [20:36:16]ProducePacketName [20:36:16]name=ofd_packets/00070438 [20:36:16]NVStorageSaveData ofd_packets/00070438 [20:36:16]File name is /storage/ofd_packets/00070438 [20:36:16]Write 301 bytes [20:36:16]NVStorageSaveData done [20:36:16]OFDSenderStorePacket done [20:36:16]KKMCreateOFDPacket done [20:36:16]NVStorageSaveData kkm_last_timestamp [20:36:16]File name is /storage/kkm_last_timestamp [20:36:16]Write 4 bytes [20:36:16]NVStorageSaveData done [20:36:16]ExternCall_PrintAddStr [20:36:16]wPrintStart [20:36:16]Write to MH i2c: 01 00 00 E7 28 0F [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 E7 28 00 00 00 00 00 FF 0F 24 [20:36:16]RasterBufferAndPrint [20:36:16]line Счет N : (1)2886207 [20:36:16]line ИНН: 02508201610067 [20:36:16]line Контрольно-Кассовый Чек [20:36:16]line ПРОДАЖА [20:36:16]line ТРК (МРК, ГНК) : 43 [20:36:16]line Товар: 2710124500 [20:36:16]line Аи-95-К-5 [20:36:16]line 8.090 * 74.20 [20:36:16]line = 600.28 [20:36:16]line НДС 12% НСП 1% [20:36:16]line > о реализуемом товаре [20:36:16]line ОКРУГЛЕНИЕ: -0.28 [20:36:16]line ИТОГО: 600.00 [20:36:16]line Внесено: 600.00 [20:36:16]line СДАЧА: 0.00 [20:36:16]line НСП 1% : 5.31 [20:36:16]line НДС 12% : 63.75 [20:36:16]line Наличными: 600.00 [20:36:16]line Безнал.: 0.00 [20:36:16]line Место: АЗС № 85 "Партнер Нефть" [20:36:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:36:16]line СНО: Общий режим [20:36:16]line Чек 386 22.10.2024 20:36 [20:36:16]line Смена: 195 ФФД: 1.0 [20:36:16]line ЗНМ: 0300000167 [20:36:16]line РНМ: 0000000000156251 [20:36:16]line Версия ККМ: v1.0 [20:36:16]line ФМ: 0000000000963346 [20:36:16]line ФД: 70438 [20:36:16]line ФПД: 214575714422079 [20:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70438&fm=214575714422079&tin=02508201610067®Number=0000000000156251&sum=60000 [20:36:16]OFD Sender: Processing packet 70438 [packets to send 18, broken 17] [20:36:16]ProducePacketName [20:36:16]name=ofd_packets/00070438 [20:36:16]OFD Sender: To server: pG, [20:36:16]CommunicateWithHost lk.salyk.kg:30040 [20:36:16]ConnectInit lk.salyk.kg [20:36:16]written 0, free lines is 4095 [20:36:16]Connected sock=10 [20: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 34 36 0F 01 00 00 09 76 07 01 1B A1 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 82 01 00 00 F4 03 04 00 BF 0C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 13 01 00 35 04 06 00 C3 27 CD 3C 4D 3F 13 95 20 9C CD 5A 4E 6E [20: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 34 36 4F 00 00 00 B8 20 47 00 07 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 34 36 10 04 04 00 26 13 01 00 F4 03 04 00 5F B6 17 67 B6 04 01 00 00 51 8E C3 B4 05 2A 4B 87 [20:36:17]CommunicateWithHost err = 0 [20:36:17]CheckOFDResponse [20:36:17]1017 (14) - 77093643461234 [20:36:17]1041 (16) - 0000000000963346 [20:36:17]1040 (4) - 70438 [20:36:17]1012 (4) - 22.10.2024 14:27 [20:36:17]1206 (1) - 0 [20:36:17]OFD Sender: Remove packet 70438 [20:36:17]ProducePacketName [20:36:17]name=ofd_packets/00070438 [20:36:17]NVStorageDeleteData [20:36:17]Write to MH i2c: 01 00 00 12 29 3B [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 07 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 07 00 12 29 00 00 00 00 00 E4 0C 32 [20:36:17]RasterBufferAndPrint [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]written 0, free lines is 3306 [20:36:17]MH_Cut [20:36:17]Write to MH i2c: D1 01 00 19 29 01 14 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 01 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 01 00 19 29 00 13 [20:36:17]Write to MH i2c: 01 00 00 1A 29 43 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]OFD Sender: No OFD packet to send [20:36:17]*** Cut start [20:36:17]*** Partial cut [20:36:17]*** CUTSNS_PIN = 1 [20:36:17]*** CUTSNS_PIN = 0 [20:36:18]*** Brake cut motor [20:36:18]Read from MH i2c: 01 [20:36:18]MH_I2C_Read... [20:36:18]*** Stop cut motor [20:36:18]*** Cut end [20:36:18]Read from MH i2c: 01 07 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 1A 29 00 00 00 00 00 FF 0F 58 [20:36:18]process_action close_receipt done [20:36:18]requested_data is exist [20:36:18]produce_requested_data [20:36:18]requested_item fm.sn is exist - process it [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 11 00 00 [20:36:18]Write to MH i2c: E2 08 00 1B 29 80 11 00 00 00 00 00 00 BE [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 [20:36:18]MH_I2C_Read... [20:36:18]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 34 36 90 00 10 [20:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:36:18]wFMCommunicate OK [20:36:18]requested_item fd.num is exist - process it [20:36:18]SAM_PROTO_GetFieldsCounters [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 13 00 00 [20:36:18]Write to MH i2c: E2 08 00 1C 29 80 13 00 00 00 00 00 00 C1 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 62 00 [20:36:18]MH_I2C_Read... [20:36:18]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [20:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_GetFieldsCounters done [20:36:18]requested_item shift.num is exist - process it [20:36:18]requested_item shift.opened is exist - process it [20:36:18]req_shift_opened [20:36:18]FM_GetShiftState [20:36:18]SAM_PROTO_GetShiftState [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 13 01 00 [20:36:18]Write to MH i2c: E2 08 00 1D 29 80 13 01 00 00 00 00 00 C3 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:18]Read from MH i2c: E2 0E 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0E 00 1D 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B1 [20:36:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_GetShiftState done [20:36:18]FM_GetShiftState done [20:36:18]req_shift_opened done [20:36:18]requested_item shift.open_date is exist - process it [20:36:18]req_shift_open_date [20:36:18]req_shift_open_date done [20:36:18]produce_requested_data done [20:36:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70438,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:36:18]process_action_free close_receipt [20:36:18]json_value_free [20:36:18]json_value_free done [20:36:18]process_json_proto returns [20:36:18]Send response to host [20:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70438,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:36:18]free response buf [20:36:18]execute_script done [20:36:18]execute_script returns [20:36:18]free content buf [20:36:18]Sock 7.Close socket [20:36:18]Sock 7.Thread stoped [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:11]accept exits with 9 [20:39:11]New connection [20:39:11]New thread 3066699108 created [20:39:11]Thread 3066555748 joined [20:39:11]Waiting for new connection... [20:39:11] Sock 9.Parse request [20:39:11]Sock 9.Check first char [20:39:11]Sock 9.First char is OK [20:39:11]request: POST /json_proto HTTP/1.0 [20:39:11]Method: POST [20:39:11]URL: /json_proto [20:39:11]Method is POST - this is cgi request [20:39:11]url: /json_proto [20:39:11]query_string will be loaded in cgi processing [20:39:11]execute_cgi json_proto POST (null) [20:39:11]execute_cgi path=json_proto method=POST [20:39:11]POST find Content-Length [20:39:11]Host: 172.17.50.3:8080 [20:39:11]Content-Length: 689 [20:39:11]Content-Type: application/json [20:39:11] [20:39:11]POST finish read [20:39:11]Found Content-Length = 689 [20:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:39:11]execute_script... [20:39: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)2886208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:39:11]POST & json_proto [20:39:11]process_json_proto [20:39:11]json parsed OK: [20:39:11]protocol is kg_v1.0 [20:39:11]action value=close_receipt [20:39:11]process_action close_receipt [20:39:11]cmd_close_receipt [20:39:11]MH_GetDate [20:39:11]Write to MH i2c: F0 00 00 1E 29 36 [20:39:11]Write i2c OK [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: F0 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: F0 09 00 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: F0 09 00 1E 29 00 70 0D 18 67 6B 98 1E 66 C2 [20:39:11]GetLastDocTimeStamp 1729629375 [20:39:11]current date 1729629552 [20:39:11]FM_GetShiftState [20:39:11]SAM_PROTO_GetShiftState [20:39:11]wFMCommunicate request_size=4 [20:39:11]MH_SAM_APDU [20:39:11]CAPDU: 80 13 01 00 [20:39:11]Write to MH i2c: E2 08 00 1F 29 80 13 01 00 00 00 00 00 C5 [20:39:11]Write i2c OK [20:39:11]MH_I2C_Read... [20:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:11]Read from MH i2c: E2 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 0E 00 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 0E 00 1F 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B3 [20:39:11]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:39:11]wFMCommunicate OK [20:39:11]SAM_PROTO_GetShiftState done [20:39:11]FM_GetShiftState done [20:39:11]opened in 1729555832 [20:39:11]opened+sec_in_day 1729642232 [20:39:11]quantity*price = 100051 [20:39:11]sum+1 = 100052 [20:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 387 22.10.2024 20:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70439 ФПД: 175277865133279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203912&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70439&fm=175277865133279&tin=02508201610067®Number=0000000000156251&sum=100000 [20:39:12]StoreToDocumentArchive [20:39:12]shift 195 fd 70439 [20:39:12]save to /storage/0195/doc_00070439 [20:39:12]save last doc name /storage/0195/doc_00070439 to /storage/kkm_last_doc_name [20:39:12]save OK [20:39:12]Clear old archive folders... [20:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:39:12]tlvbuf is 00B32FA0 [20:39:12]SAM_PROTO_ClearQueue [20:39:12]wFMCommunicate request_size=4 [20:39:12]MH_SAM_APDU [20:39:12]CAPDU: 80 09 00 00 [20:39:12]Write to MH i2c: E2 08 00 2C 29 80 09 00 00 00 00 00 00 C7 [20:39:12]Write i2c OK [20:39:12]MH_I2C_Read... [20:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:12]Read from MH i2c: E2 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 03 00 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 03 00 2C 29 00 90 00 C9 [20:39:12]RAPDU: 90 00 [20:39:12]wFMCommunicate OK [20:39:12]SAM_PROTO_ClearQueue done [20:39:12]KKMCreateOFDPacket [20:39:12]OFDProtocolAddRootSTLVToBuf [20:39:12]FM_MakeSignedData [20:39:12]FM_MakeSignedData [20:39:12]SAM_PROTO_SignData [20:39:12]wFMCommunicate request_size=4 [20:39:12]MH_SAM_APDU [20:39:12]CAPDU: 80 0D 01 02 [20:39:12]Write to MH i2c: E2 08 00 2D 29 80 0D 01 02 00 00 00 00 CF [20:39:12]Write i2c OK [20:39:12]MH_I2C_Read... [20:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:12]Read from MH i2c: E2 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 03 00 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [20:39:12]RAPDU: 90 00 [20:39:12]wFMCommunicate OK [20:39:12]wFMCommunicate request_size=255 [20:39:12]MH_SAM_APDU [20:39:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 83 01 00 00 F4 03 04 00 70 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 13 01 [20:39:12]Write to MH i2c: E2 02 01 2E 29 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 83 01 00 00 F4 03 04 00 70 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 13 01 00 00 9F [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 03 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [20:39:13]RAPDU: 90 00 [20:39:13]wFMCommunicate OK [20:39:13]wFMCommunicate request_size=16 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9F 6A 0E E3 64 DF [20:39:13]Write to MH i2c: E2 13 00 2F 29 80 0D 02 02 0B 00 00 35 04 06 00 9F 6A 0E E3 64 DF 00 00 64 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 03 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [20:39:13]RAPDU: 90 00 [20:39:13]wFMCommunicate OK [20:39:13]wFMCommunicate request_size=4 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 0D 03 02 [20:39:13]Write to MH i2c: E2 08 00 30 29 80 0D 03 02 00 00 00 00 D4 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 0B 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 0B 00 30 29 00 8F A4 5C F3 F9 A4 FF 4E 90 00 41 [20:39:13]RAPDU: 8F A4 5C F3 F9 A4 FF 4E 90 00 [20:39:13]wFMCommunicate OK [20:39:13]SAM_PROTO_SignData done [20:39:13]FM_MakeSignedData done [20:39:13]CreateOFDProtocolMessage [20:39:13]wFMCommunicate request_size=4 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 11 00 00 [20:39:13]Write to MH i2c: E2 08 00 31 29 80 11 00 00 00 00 00 00 D4 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 17 00 [20:39:13]MH_I2C_Read... [20:39:13]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 34 36 90 00 26 [20:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:39:13]wFMCommunicate OK [20:39:13]CreateOFDProtocolMessage done [20:39:13]OFDSenderStorePacket 70439 [20:39:13]StoreOFDPacket docnum=70439 [20:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CF F5 0D 01 CB 42 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 83 01 00 00 F4 03 04 00 70 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 13 01 00 35 04 06 00 9F 6A 0E E3 64 DF 8F A4 5C F3 F9 A4 FF 4E [20:39:13]CheckFolder [20:39:13]dirname=/storage/ofd_packets [20:39:13]CheckFolder done [20:39:13]ProducePacketName [20:39:13]name=ofd_packets/00070439 [20:39:13]NVStorageSaveData ofd_packets/00070439 [20:39:13]File name is /storage/ofd_packets/00070439 [20:39:13]Write 307 bytes [20:39:13]NVStorageSaveData done [20:39:13]OFDSenderStorePacket done [20:39:13]KKMCreateOFDPacket done [20:39:13]NVStorageSaveData kkm_last_timestamp [20:39:13]File name is /storage/kkm_last_timestamp [20:39:13]Write 4 bytes [20:39:13]NVStorageSaveData done [20:39:13]ExternCall_PrintAddStr [20:39:13]wPrintStart [20:39:13]Write to MH i2c: 01 00 00 32 29 5B [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: 01 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: 01 07 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: 01 07 00 32 29 00 00 00 00 00 FF 0F 70 [20:39:13]RasterBufferAndPrint [20:39:13]line Счет N : (1)2886208 [20:39:13]line ИНН: 02508201610067 [20:39:13]line Контрольно-Кассовый Чек [20:39:13]line ПРОДАЖА [20:39:13]line ТРК (МРК, ГНК) : 11 [20:39:13]line Товар: 2710194240 [20:39:13]line D-ENERGY Дт-К-2 [20:39:13]line 12.960 * 77.20 [20:39:13]line = 1000.51 [20:39:13]line НДС 12% НСП 1% [20:39:13]line > о реализуемом товаре [20:39:13]line ОКРУГЛЕНИЕ: -0.51 [20:39:13]line ИТОГО: 1000.00 [20:39:13]line Внесено: 1000.00 [20:39:13]line СДАЧА: 0.00 [20:39:13]line НСП 1% : 8.85 [20:39:13]line НДС 12% : 106.25 [20:39:13]line Наличными: 1000.00 [20:39:13]line Безнал.: 0.00 [20:39:13]line Место: АЗС № 85 "Партнер Нефть" [20:39:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:39:13]line СНО: Общий режим [20:39:13]line Чек 387 22.10.2024 20:39 [20:39:13]line Смена: 195 ФФД: 1.0 [20:39:13]line ЗНМ: 0300000167 [20:39:13]line РНМ: 0000000000156251 [20:39:13]line Версия ККМ: v1.0 [20:39:13]line ФМ: 0000000000963346 [20:39:13]line ФД: 70439 [20:39:13]line ФПД: 175277865133279 [20:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203912&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70439&fm=175277865133279&tin=02508201610067®Number=0000000000156251&sum=100000 [20:39:13]OFD Sender: Processing packet 70439 [packets to send 18, broken 17] [20:39:13]ProducePacketName [20:39:13]name=ofd_packets/00070439 [20:39:13]OFD Sender: To server: pG, [20:39:13]CommunicateWithHost lk.salyk.kg:30040 [20:39:13]ConnectInit lk.salyk.kg [20:39:13]written 0, free lines is 4095 [20:39:13]Connected sock=10 [20:39: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 34 36 15 01 00 00 CF F5 0D 01 CB 42 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 83 01 00 00 F4 03 04 00 70 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 13 01 00 35 04 06 00 9F 6A 0E E3 64 DF 8F A4 5C F3 F9 A4 FF 4E [20:39: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 34 36 4F 00 00 00 52 33 47 00 B9 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 13 01 00 F4 03 04 00 10 B7 17 67 B6 04 01 00 00 65 B4 CC C8 90 91 6B BE [20:39:14]CommunicateWithHost err = 0 [20:39:14]CheckOFDResponse [20:39:14]1017 (14) - 77093643461234 [20:39:14]1041 (16) - 0000000000963346 [20:39:14]1040 (4) - 70439 [20:39:14]1012 (4) - 22.10.2024 14:30 [20:39:14]1206 (1) - 0 [20:39:14]OFD Sender: Remove packet 70439 [20:39:14]ProducePacketName [20:39:14]name=ofd_packets/00070439 [20:39:14]NVStorageDeleteData [20:39:14]Write to MH i2c: 01 00 00 5D 29 86 [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: 01 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: 01 07 00 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: 01 07 00 5D 29 00 00 00 00 00 E6 0C 7F [20:39:14]RasterBufferAndPrint [20:39:14]line [20:39:14]line [20:39:14]line [20:39:14]line [20:39:14]line [20:39:14]written 0, free lines is 3311 [20:39:14]MH_Cut [20:39:14]Write to MH i2c: D1 01 00 64 29 01 5F [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: D1 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: D1 01 00 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: D1 01 00 64 29 00 5E [20:39:14]Write to MH i2c: 01 00 00 65 29 8E [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:14]OFD Sender: No OFD packet to send [20:39:14]*** Cut start [20:39:14]*** Partial cut [20:39:14]*** CUTSNS_PIN = 1 [20:39:14]*** CUTSNS_PIN = 0 [20:39:15]*** Brake cut motor [20:39:15]Read from MH i2c: 01 [20:39:15]MH_I2C_Read... [20:39:15]*** Stop cut motor [20:39:15]*** Cut end [20:39:15]Read from MH i2c: 01 07 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: 01 07 00 65 29 00 00 00 00 00 FF 0F A3 [20:39:15]process_action close_receipt done [20:39:15]requested_data is exist [20:39:15]produce_requested_data [20:39:15]requested_item fm.sn is exist - process it [20:39:15]wFMCommunicate request_size=4 [20:39:15]MH_SAM_APDU [20:39:15]CAPDU: 80 11 00 00 [20:39:15]Write to MH i2c: E2 08 00 66 29 80 11 00 00 00 00 00 00 09 [20:39:15]Write i2c OK [20:39:15]MH_I2C_Read... [20:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:15]Read from MH i2c: E2 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 17 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 17 00 66 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [20:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:39:15]wFMCommunicate OK [20:39:15]requested_item fd.num is exist - process it [20:39:15]SAM_PROTO_GetFieldsCounters [20:39:15]wFMCommunicate request_size=4 [20:39:15]MH_SAM_APDU [20:39:15]CAPDU: 80 13 00 00 [20:39:15]Write to MH i2c: E2 08 00 67 29 80 13 00 00 00 00 00 00 0C [20:39:15]Write i2c OK [20:39:15]MH_I2C_Read... [20:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:15]Read from MH i2c: E2 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 62 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 62 00 67 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [20:39: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:15]wFMCommunicate OK [20:39:15]SAM_PROTO_GetFieldsCounters done [20:39:15]requested_item shift.num is exist - process it [20:39:15]requested_item shift.opened is exist - process it [20:39:15]req_shift_opened [20:39:15]FM_GetShiftState [20:39:15]SAM_PROTO_GetShiftState [20:39:15]wFMCommunicate request_size=4 [20:39:15]MH_SAM_APDU [20:39:15]CAPDU: 80 13 01 00 [20:39:15]Write to MH i2c: E2 08 00 68 29 80 13 01 00 00 00 00 00 0E [20:39:15]Write i2c OK [20:39:15]MH_I2C_Read... [20:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:15]Read from MH i2c: E2 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 0E 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 0E 00 68 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FC [20:39:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:39:15]wFMCommunicate OK [20:39:15]SAM_PROTO_GetShiftState done [20:39:15]FM_GetShiftState done [20:39:15]req_shift_opened done [20:39:15]requested_item shift.open_date is exist - process it [20:39:15]req_shift_open_date [20:39:15]req_shift_open_date done [20:39:15]produce_requested_data done [20:39:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70439,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:39:15]process_action_free close_receipt [20:39:15]json_value_free [20:39:15]json_value_free done [20:39:15]process_json_proto returns [20:39:15]Send response to host [20:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70439,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:39:15]free response buf [20:39:15]execute_script done [20:39:15]execute_script returns [20:39:15]free content buf [20:39:15]Sock 9.Close socket [20:39:15]Sock 9.Thread stoped [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:43]accept exits with 7 [20:39:43]New connection [20:39:43]New thread 3066555748 created [20:39:43]Thread 3066699108 joined [20:39:43]Waiting for new connection... [20:39:43] Sock 7.Parse request [20:39:43]Sock 7.Check first char [20:39:43]Sock 7.First char is OK [20:39:43]request: POST /json_proto HTTP/1.0 [20:39:43]Method: POST [20:39:43]URL: /json_proto [20:39:43]Method is POST - this is cgi request [20:39:43]url: /json_proto [20:39:43]query_string will be loaded in cgi processing [20:39:43]execute_cgi json_proto POST (null) [20:39:43]execute_cgi path=json_proto method=POST [20:39:43]POST find Content-Length [20:39:43]Host: 172.17.50.3:8080 [20:39:43]Content-Length: 683 [20:39:43]Content-Type: application/json [20:39:43] [20:39:43]POST finish read [20:39:43]Found Content-Length = 683 [20:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [20:39:43]execute_script... [20: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)2886209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [20:39:43]POST & json_proto [20:39:43]process_json_proto [20:39:43]json parsed OK: [20:39:43]protocol is kg_v1.0 [20:39:43]action value=close_receipt [20:39:43]process_action close_receipt [20:39:43]cmd_close_receipt [20:39:43]MH_GetDate [20:39:43]Write to MH i2c: F0 00 00 69 29 81 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 09 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 09 00 69 29 00 90 0D 18 67 6B 98 1E 66 2D [20:39:43]GetLastDocTimeStamp 1729629552 [20:39:43]current date 1729629584 [20:39:43]FM_GetShiftState [20:39:43]SAM_PROTO_GetShiftState [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 13 01 00 [20:39:43]Write to MH i2c: E2 08 00 6A 29 80 13 01 00 00 00 00 00 10 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0E 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0E 00 6A 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FE [20:39:43]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_GetShiftState done [20:39:43]FM_GetShiftState done [20:39:43]opened in 1729555832 [20:39:43]opened+sec_in_day 1729642232 [20:39:43]quantity*price = 200031 [20:39:43]sum+1 = 200032 [20:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 388 22.10.2024 20:39 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70440 ФПД: 179855546066686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203944&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70440&fm=179855546066686&tin=02508201610067®Number=0000000000156251&sum=200000 [20:39:44]StoreToDocumentArchive [20:39:44]shift 195 fd 70440 [20:39:44]save to /storage/0195/doc_00070440 [20:39:44]save last doc name /storage/0195/doc_00070440 to /storage/kkm_last_doc_name [20:39:44]save OK [20:39:44]Clear old archive folders... [20:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:44]tlvbuf is 00E04110 [20:39:44]SAM_PROTO_ClearQueue [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 09 00 00 [20:39:44]Write to MH i2c: E2 08 00 77 29 80 09 00 00 00 00 00 00 12 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_ClearQueue done [20:39:44]KKMCreateOFDPacket [20:39:44]OFDProtocolAddRootSTLVToBuf [20:39:44]FM_MakeSignedData [20:39:44]FM_MakeSignedData [20:39:44]SAM_PROTO_SignData [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 01 02 [20:39:44]Write to MH i2c: E2 08 00 78 29 80 0D 01 02 00 00 00 00 1A [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=255 [20:39:44]MH_SAM_APDU [20: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 84 01 00 00 F4 03 04 00 90 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 13 01 00 35 04 06 00 A3 [20:39:44]Write to MH i2c: E2 02 01 79 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 84 01 00 00 F4 03 04 00 90 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 13 01 00 35 04 06 00 A3 00 00 28 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=10 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 02 02 05 93 E1 EF 26 FE [20:39:44]Write to MH i2c: E2 0D 00 7A 29 80 0D 02 02 05 00 93 E1 EF 26 FE 00 00 AE [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 03 02 [20:39:44]Write to MH i2c: E2 08 00 7B 29 80 0D 03 02 00 00 00 00 1F [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 7B 29 00 65 62 70 73 B4 66 F3 0E 90 00 E5 [20:39:44]RAPDU: 65 62 70 73 B4 66 F3 0E 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_SignData done [20:39:44]FM_MakeSignedData done [20:39:44]CreateOFDProtocolMessage [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 11 00 00 [20:39:44]Write to MH i2c: E2 08 00 7C 29 80 11 00 00 00 00 00 00 1F [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]OFD Sender: No OFD packet to send [20:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 7C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [20:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:39:44]wFMCommunicate OK [20:39:44]CreateOFDProtocolMessage done [20:39:44]OFDSenderStorePacket 70440 [20:39:44]StoreOFDPacket docnum=70440 [20:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B6 E8 07 01 12 8E 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 84 01 00 00 F4 03 04 00 90 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 13 01 00 35 04 06 00 A3 93 E1 EF 26 FE 65 62 70 73 B4 66 F3 0E [20:39:44]CheckFolder [20:39:44]dirname=/storage/ofd_packets [20:39:44]CheckFolder done [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00070440 [20:39:44]NVStorageSaveData ofd_packets/00070440 [20:39:44]File name is /storage/ofd_packets/00070440 [20:39:44]Write 301 bytes [20:39:44]NVStorageSaveData done [20:39:44]OFDSenderStorePacket done [20:39:44]KKMCreateOFDPacket done [20:39:44]NVStorageSaveData kkm_last_timestamp [20:39:44]File name is /storage/kkm_last_timestamp [20:39:44]Write 4 bytes [20:39:44]NVStorageSaveData done [20:39:44]ExternCall_PrintAddStr [20:39:44]wPrintStart [20:39:44]Write to MH i2c: 01 00 00 7D 29 A6 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 7D 29 00 00 00 00 00 FF 0F BB [20:39:44]RasterBufferAndPrint [20:39:44]line Счет N : (1)2886209 [20:39:44]line ИНН: 02508201610067 [20:39:44]line Контрольно-Кассовый Чек [20:39:44]line ПРОДАЖА [20:39:44]line ТРК (МРК, ГНК) : 32 [20:39:44]line Товар: 2710124130 [20:39:44]line Аи-92-К-5 [20:39:44]line 29.900 * 66.90 [20:39:44]line = 2000.31 [20:39:44]line НДС 12% НСП 1% [20:39:44]line > о реализуемом товаре [20:39:44]line ОКРУГЛЕНИЕ: -0.31 [20:39:44]line ИТОГО: 2000.00 [20:39:44]line Внесено: 2000.00 [20:39:44]line СДАЧА: 0.00 [20:39:44]line НСП 1% : 17.70 [20:39:44]line НДС 12% : 212.42 [20:39:44]line Наличными: 2000.00 [20:39:44]line Безнал.: 0.00 [20:39:44]line Место: АЗС № 85 "Партнер Нефть" [20:39:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:39:44]line СНО: Общий режим [20:39:44]line Чек 388 22.10.2024 20:39 [20:39:44]line Смена: 195 ФФД: 1.0 [20:39:44]line ЗНМ: 0300000167 [20:39:44]line РНМ: 0000000000156251 [20:39:44]line Версия ККМ: v1.0 [20:39:44]line ФМ: 0000000000963346 [20:39:44]line ФД: 70440 [20:39:44]line ФПД: 179855546066686 [20:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203944&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70440&fm=179855546066686&tin=02508201610067®Number=0000000000156251&sum=200000 [20:39:45]OFD Sender: Processing packet 70440 [packets to send 18, broken 17] [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00070440 [20:39:45]OFD Sender: To server: pG, [20:39:45]CommunicateWithHost lk.salyk.kg:30040 [20:39:45]ConnectInit lk.salyk.kg [20:39:45]written 0, free lines is 4095 [20:39:45]Connected sock=10 [20: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 34 36 0F 01 00 00 B6 E8 07 01 12 8E 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 84 01 00 00 F4 03 04 00 90 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 13 01 00 35 04 06 00 A3 93 E1 EF 26 FE 65 62 70 73 B4 66 F3 0E [20: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 34 36 4F 00 00 00 E8 AD 47 00 AF 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 34 36 10 04 04 00 28 13 01 00 F4 03 04 00 30 B7 17 67 B6 04 01 00 00 A9 C4 EB 5F D2 98 0E 62 [20:39:45]CommunicateWithHost err = 0 [20:39:45]CheckOFDResponse [20:39:45]1017 (14) - 77093643461234 [20:39:45]1041 (16) - 0000000000963346 [20:39:45]1040 (4) - 70440 [20:39:45]1012 (4) - 22.10.2024 14:31 [20:39:45]1206 (1) - 0 [20:39:45]OFD Sender: Remove packet 70440 [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00070440 [20:39:45]NVStorageDeleteData [20:39:45]Write to MH i2c: 01 00 00 A8 29 D1 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 A8 29 00 00 00 00 00 F3 0C D7 [20:39:45]RasterBufferAndPrint [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]written 0, free lines is 3321 [20:39:45]MH_Cut [20:39:45]Write to MH i2c: D1 01 00 AF 29 01 AA [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 01 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 01 00 AF 29 00 A9 [20:39:45]Write to MH i2c: 01 00 00 B0 29 D9 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]OFD Sender: No OFD packet to send [20:39:46]*** Cut start [20:39:46]*** Partial cut [20:39:46]*** CUTSNS_PIN = 1 [20:39:46]*** CUTSNS_PIN = 0 [20:39:46]*** Brake cut motor [20:39:46]Read from MH i2c: 01 [20:39:46]MH_I2C_Read... [20:39:46]*** Stop cut motor [20:39:46]*** Cut end [20:39:46]Read from MH i2c: 01 07 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: 01 07 00 B0 29 00 00 00 00 00 FF 0F EE [20:39:46]process_action close_receipt done [20:39:46]requested_data is exist [20:39:46]produce_requested_data [20:39:46]requested_item fm.sn is exist - process it [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 11 00 00 [20:39:46]Write to MH i2c: E2 08 00 B1 29 80 11 00 00 00 00 00 00 54 [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 17 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 17 00 B1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [20:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:39:46]wFMCommunicate OK [20:39:46]requested_item fd.num is exist - process it [20:39:46]SAM_PROTO_GetFieldsCounters [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 13 00 00 [20:39:46]Write to MH i2c: E2 08 00 B2 29 80 13 00 00 00 00 00 00 57 [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:47]Read from MH i2c: E2 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 62 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 62 00 B2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:47]wFMCommunicate OK [20:39:47]SAM_PROTO_GetFieldsCounters done [20:39:47]requested_item shift.num is exist - process it [20:39:47]requested_item shift.opened is exist - process it [20:39:47]req_shift_opened [20:39:47]FM_GetShiftState [20:39:47]SAM_PROTO_GetShiftState [20:39:47]wFMCommunicate request_size=4 [20:39:47]MH_SAM_APDU [20:39:47]CAPDU: 80 13 01 00 [20:39:47]Write to MH i2c: E2 08 00 B3 29 80 13 01 00 00 00 00 00 59 [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:47]Read from MH i2c: E2 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 0E 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 0E 00 B3 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 47 [20:39:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:39:47]wFMCommunicate OK [20:39:47]SAM_PROTO_GetShiftState done [20:39:47]FM_GetShiftState done [20:39:47]req_shift_opened done [20:39:47]requested_item shift.open_date is exist - process it [20:39:47]req_shift_open_date [20:39:47]req_shift_open_date done [20:39:47]produce_requested_data done [20:39:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70440,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:39:47]process_action_free close_receipt [20:39:47]json_value_free [20:39:47]json_value_free done [20:39:47]process_json_proto returns [20:39:47]Send response to host [20:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70440,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:39:47]free response buf [20:39:47]execute_script done [20:39:47]execute_script returns [20:39:47]free content buf [20:39:47]Sock 7.Close socket [20:39:47]Sock 7.Thread stoped [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:29]accept exits with 9 [20:40:29]New connection [20:40:29]New thread 3066699108 created [20:40:29]Thread 3066555748 joined [20:40:29]Waiting for new connection... [20:40:29] Sock 9.Parse request [20:40:29]Sock 9.Check first char [20:40:29]Sock 9.First char is OK [20:40:29]request: POST /json_proto HTTP/1.0 [20:40:29]Method: POST [20:40:29]URL: /json_proto [20:40:29]Method is POST - this is cgi request [20:40:29]url: /json_proto [20:40:29]query_string will be loaded in cgi processing [20:40:29]execute_cgi json_proto POST (null) [20:40:29]execute_cgi path=json_proto method=POST [20:40:29]POST find Content-Length [20:40:29]Host: 172.17.50.3:8080 [20:40:29]Content-Length: 683 [20:40:29]Content-Type: application/json [20:40:29] [20:40:29]POST finish read [20:40:29]Found Content-Length = 683 [20:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [20:40:29]execute_script... [20:40: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)2886210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [20:40:29]POST & json_proto [20:40:29]process_json_proto [20:40:29]json parsed OK: [20:40:29]protocol is kg_v1.0 [20:40:29]action value=close_receipt [20:40:29]process_action close_receipt [20:40:29]cmd_close_receipt [20:40:29]MH_GetDate [20:40:29]Write to MH i2c: F0 00 00 B4 29 CC [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: F0 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: F0 09 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: F0 09 00 B4 29 00 BE 0D 18 67 6B 98 1E 66 A6 [20:40:29]GetLastDocTimeStamp 1729629584 [20:40:29]current date 1729629630 [20:40:29]FM_GetShiftState [20:40:29]SAM_PROTO_GetShiftState [20:40:29]wFMCommunicate request_size=4 [20:40:29]MH_SAM_APDU [20:40:29]CAPDU: 80 13 01 00 [20:40:29]Write to MH i2c: E2 08 00 B5 29 80 13 01 00 00 00 00 00 5B [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:29]Read from MH i2c: E2 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 0E 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 0E 00 B5 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 49 [20:40:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:40:29]wFMCommunicate OK [20:40:29]SAM_PROTO_GetShiftState done [20:40:29]FM_GetShiftState done [20:40:29]opened in 1729555832 [20:40:29]opened+sec_in_day 1729642232 [20:40:29]quantity*price = 100021 [20:40:29]sum+1 = 100023 [20:40:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 389 22.10.2024 20:40 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70441 ФПД: 14335857596898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70441&fm=14335857596898&tin=02508201610067®Number=0000000000156251&sum=100000 [20:40:30]StoreToDocumentArchive [20:40:30]shift 195 fd 70441 [20:40:30]save to /storage/0195/doc_00070441 [20:40:30]save last doc name /storage/0195/doc_00070441 to /storage/kkm_last_doc_name [20:40:30]save OK [20:40:30]Clear old archive folders... [20:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:30]tlvbuf is B6F17910 [20:40:30]SAM_PROTO_ClearQueue [20:40:30]wFMCommunicate request_size=4 [20:40:30]MH_SAM_APDU [20:40:30]CAPDU: 80 09 00 00 [20:40:30]Write to MH i2c: E2 08 00 C2 29 80 09 00 00 00 00 00 00 5D [20:40:30]Write i2c OK [20:40:30]MH_I2C_Read... [20:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:30]Read from MH i2c: E2 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 C2 29 00 90 00 5F [20:40:30]RAPDU: 90 00 [20:40:30]wFMCommunicate OK [20:40:30]SAM_PROTO_ClearQueue done [20:40:30]KKMCreateOFDPacket [20:40:30]OFDProtocolAddRootSTLVToBuf [20:40:30]FM_MakeSignedData [20:40:30]FM_MakeSignedData [20:40:30]SAM_PROTO_SignData [20:40:30]wFMCommunicate request_size=4 [20:40:30]MH_SAM_APDU [20:40:30]CAPDU: 80 0D 01 02 [20:40:30]Write to MH i2c: E2 08 00 C3 29 80 0D 01 02 00 00 00 00 65 [20:40:30]Write i2c OK [20:40:30]MH_I2C_Read... [20:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:30]Read from MH i2c: E2 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [20:40:30]RAPDU: 90 00 [20:40:30]wFMCommunicate OK [20:40:30]wFMCommunicate request_size=255 [20:40:30]MH_SAM_APDU [20:40: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 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 85 01 00 00 F4 03 04 00 BE 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 13 01 00 35 04 06 00 0D [20:40:30]Write to MH i2c: E2 02 01 C4 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 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 85 01 00 00 F4 03 04 00 BE 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 13 01 00 35 04 06 00 0D 00 00 E8 [20:40:30]Write i2c OK [20:40:30]MH_I2C_Read... [20:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:30]Read from MH i2c: E2 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 [20:40:30]MH_I2C_Read... [20:40:30]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [20:40:30]RAPDU: 90 00 [20:40:30]wFMCommunicate OK [20:40:30]wFMCommunicate request_size=10 [20:40:30]MH_SAM_APDU [20:40:30]CAPDU: 80 0D 02 02 05 09 D3 B3 19 E2 [20:40:30]Write to MH i2c: E2 0D 00 C5 29 80 0D 02 02 05 00 09 D3 B3 19 E2 00 00 FC [20:40:30]OFD Sender: No OFD packet to send [20:40:30]Write i2c OK [20:40:30]MH_I2C_Read... [20:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 03 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [20:40:31]RAPDU: 90 00 [20:40:31]wFMCommunicate OK [20:40:31]wFMCommunicate request_size=4 [20:40:31]MH_SAM_APDU [20:40:31]CAPDU: 80 0D 03 02 [20:40:31]Write to MH i2c: E2 08 00 C6 29 80 0D 03 02 00 00 00 00 6A [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 0B 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 0B 00 C6 29 00 DD 3E 73 65 E0 C0 A4 0B 90 00 AD [20:40:31]RAPDU: DD 3E 73 65 E0 C0 A4 0B 90 00 [20:40:31]wFMCommunicate OK [20:40:31]SAM_PROTO_SignData done [20:40:31]FM_MakeSignedData done [20:40:31]CreateOFDProtocolMessage [20:40:31]wFMCommunicate request_size=4 [20:40:31]MH_SAM_APDU [20:40:31]CAPDU: 80 11 00 00 [20:40:31]Write to MH i2c: E2 08 00 C7 29 80 11 00 00 00 00 00 00 6A [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 17 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 17 00 C7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [20:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:40:31]wFMCommunicate OK [20:40:31]CreateOFDProtocolMessage done [20:40:31]OFDSenderStorePacket 70441 [20:40:31]StoreOFDPacket docnum=70441 [20:40:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 88 E0 07 01 1A 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 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 85 01 00 00 F4 03 04 00 BE 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 13 01 00 35 04 06 00 0D 09 D3 B3 19 E2 DD 3E 73 65 E0 C0 A4 0B [20:40:31]CheckFolder [20:40:31]dirname=/storage/ofd_packets [20:40:31]CheckFolder done [20:40:31]ProducePacketName [20:40:31]name=ofd_packets/00070441 [20:40:31]NVStorageSaveData ofd_packets/00070441 [20:40:31]File name is /storage/ofd_packets/00070441 [20:40:31]Write 301 bytes [20:40:31]NVStorageSaveData done [20:40:31]OFDSenderStorePacket done [20:40:31]KKMCreateOFDPacket done [20:40:31]NVStorageSaveData kkm_last_timestamp [20:40:31]File name is /storage/kkm_last_timestamp [20:40:31]Write 4 bytes [20:40:31]NVStorageSaveData done [20:40:31]ExternCall_PrintAddStr [20:40:31]wPrintStart [20:40:31]Write to MH i2c: 01 00 00 C8 29 F1 [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 07 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 07 00 C8 29 00 00 00 00 00 FF 0F 06 [20:40:31]RasterBufferAndPrint [20:40:31]line Счет N : (1)2886210 [20:40:31]line ИНН: 02508201610067 [20:40:31]line Контрольно-Кассовый Чек [20:40:31]line ПРОДАЖА [20:40:31]line ТРК (МРК, ГНК) : 43 [20:40:31]line Товар: 2710124500 [20:40:31]line Аи-95-К-5 [20:40:31]line 13.480 * 74.20 [20:40:31]line = 1000.22 [20:40:31]line НДС 12% НСП 1% [20:40:31]line > о реализуемом товаре [20:40:31]line ОКРУГЛЕНИЕ: -0.22 [20:40:31]line ИТОГО: 1000.00 [20:40:31]line Внесено: 1000.00 [20:40:31]line СДАЧА: 0.00 [20:40:31]line НСП 1% : 8.85 [20:40:31]line НДС 12% : 106.22 [20:40:31]line Наличными: 1000.00 [20:40:31]line Безнал.: 0.00 [20:40:31]line Место: АЗС № 85 "Партнер Нефть" [20:40:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:40:31]line СНО: Общий режим [20:40:31]line Чек 389 22.10.2024 20:40 [20:40:31]line Смена: 195 ФФД: 1.0 [20:40:31]line ЗНМ: 0300000167 [20:40:31]line РНМ: 0000000000156251 [20:40:31]line Версия ККМ: v1.0 [20:40:31]line ФМ: 0000000000963346 [20:40:31]line ФД: 70441 [20:40:31]line ФПД: 14335857596898 [20:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70441&fm=14335857596898&tin=02508201610067®Number=0000000000156251&sum=100000 [20:40:31]OFD Sender: Processing packet 70441 [packets to send 18, broken 17] [20:40:31]ProducePacketName [20:40:31]name=ofd_packets/00070441 [20:40:31]OFD Sender: To server: pG, [20:40:31]CommunicateWithHost lk.salyk.kg:30040 [20:40:31]ConnectInit lk.salyk.kg [20:40:31]written 0, free lines is 4095 [20:40:31]Connected sock=10 [20:40: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 34 36 0F 01 00 00 88 E0 07 01 1A 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 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 85 01 00 00 F4 03 04 00 BE 0D 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 13 01 00 35 04 06 00 0D 09 D3 B3 19 E2 DD 3E 73 65 E0 C0 A4 0B [20:40: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 34 36 4F 00 00 00 74 E0 47 00 38 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 34 36 10 04 04 00 29 13 01 00 F4 03 04 00 5E B7 17 67 B6 04 01 00 00 5F 9F 4D 73 B7 61 96 47 [20:40:31]CommunicateWithHost err = 0 [20:40:31]CheckOFDResponse [20:40:31]1017 (14) - 77093643461234 [20:40:31]1041 (16) - 0000000000963346 [20:40:31]1040 (4) - 70441 [20:40:31]1012 (4) - 22.10.2024 14:31 [20:40:31]1206 (1) - 0 [20:40:31]OFD Sender: Remove packet 70441 [20:40:31]ProducePacketName [20:40:31]name=ofd_packets/00070441 [20:40:31]NVStorageDeleteData [20:40:31]Write to MH i2c: 01 00 00 F3 29 1C [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 07 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 07 00 F3 29 00 00 00 00 00 E4 0C 13 [20:40:31]RasterBufferAndPrint [20:40:31]line [20:40:31]line [20:40:31]line [20:40:31]line [20:40:31]line [20:40:31]written 0, free lines is 3309 [20:40:31]MH_Cut [20:40:31]Write to MH i2c: D1 01 00 FA 29 01 F5 [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: D1 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: D1 01 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: D1 01 00 FA 29 00 F4 [20:40:31]Write to MH i2c: 01 00 00 FB 29 24 [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:32]OFD Sender: No OFD packet to send [20:40:32]*** Cut start [20:40:32]*** Partial cut [20:40:32]*** CUTSNS_PIN = 1 [20:40:32]*** CUTSNS_PIN = 0 [20:40:32]*** Brake cut motor [20:40:33]Read from MH i2c: 01 [20:40:33]MH_I2C_Read... [20:40:33]*** Stop cut motor [20:40:33]*** Cut end [20:40:33]Read from MH i2c: 01 07 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [20:40:33]process_action close_receipt done [20:40:33]requested_data is exist [20:40:33]produce_requested_data [20:40:33]requested_item fm.sn is exist - process it [20:40:33]wFMCommunicate request_size=4 [20:40:33]MH_SAM_APDU [20:40:33]CAPDU: 80 11 00 00 [20:40:33]Write to MH i2c: E2 08 00 FC 29 80 11 00 00 00 00 00 00 9F [20:40:33]Write i2c OK [20:40:33]MH_I2C_Read... [20:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:33]Read from MH i2c: E2 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 17 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 17 00 FC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [20:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:40:33]wFMCommunicate OK [20:40:33]requested_item fd.num is exist - process it [20:40:33]SAM_PROTO_GetFieldsCounters [20:40:33]wFMCommunicate request_size=4 [20:40:33]MH_SAM_APDU [20:40:33]CAPDU: 80 13 00 00 [20:40:33]Write to MH i2c: E2 08 00 FD 29 80 13 00 00 00 00 00 00 A2 [20:40:33]Write i2c OK [20:40:33]MH_I2C_Read... [20:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:33]Read from MH i2c: E2 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 62 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 62 00 FD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:40: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:33]wFMCommunicate OK [20:40:33]SAM_PROTO_GetFieldsCounters done [20:40:33]requested_item shift.num is exist - process it [20:40:33]requested_item shift.opened is exist - process it [20:40:33]req_shift_opened [20:40:33]FM_GetShiftState [20:40:33]SAM_PROTO_GetShiftState [20:40:33]wFMCommunicate request_size=4 [20:40:33]MH_SAM_APDU [20:40:33]CAPDU: 80 13 01 00 [20:40:33]Write to MH i2c: E2 08 00 FE 29 80 13 01 00 00 00 00 00 A4 [20:40:33]Write i2c OK [20:40:33]MH_I2C_Read... [20:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:33]Read from MH i2c: E2 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 0E 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 0E 00 FE 29 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 92 [20:40:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:40:33]wFMCommunicate OK [20:40:33]SAM_PROTO_GetShiftState done [20:40:33]FM_GetShiftState done [20:40:33]req_shift_opened done [20:40:33]requested_item shift.open_date is exist - process it [20:40:33]req_shift_open_date [20:40:33]req_shift_open_date done [20:40:33]produce_requested_data done [20:40:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70441,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:40:33]process_action_free close_receipt [20:40:33]json_value_free [20:40:33]json_value_free done [20:40:33]process_json_proto returns [20:40:33]Send response to host [20:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70441,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:40:33]free response buf [20:40:33]execute_script done [20:40:33]execute_script returns [20:40:33]free content buf [20:40:33]Sock 9.Close socket [20:40:33]Sock 9.Thread stoped [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:06]accept exits with 7 [20:42:06]New connection [20:42:06]New thread 3066555748 created [20:42:06]Thread 3066699108 joined [20:42:06]Waiting for new connection... [20:42:06] Sock 7.Parse request [20:42:06]Sock 7.Check first char [20:42:06]Sock 7.First char is OK [20:42:06]request: POST /json_proto HTTP/1.0 [20:42:06]Method: POST [20:42:06]URL: /json_proto [20:42:06]Method is POST - this is cgi request [20:42:06]url: /json_proto [20:42:06]query_string will be loaded in cgi processing [20:42:06]execute_cgi json_proto POST (null) [20:42:06]execute_cgi path=json_proto method=POST [20:42:06]POST find Content-Length [20:42:06]Host: 172.17.50.3:8080 [20:42:06]Content-Length: 683 [20:42:06]Content-Type: application/json [20:42:06] [20:42:06]POST finish read [20:42:06]Found Content-Length = 683 [20:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [20:42:06]execute_script... [20:42: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)2886211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [20:42:06]POST & json_proto [20:42:06]process_json_proto [20:42:06]json parsed OK: [20:42:06]protocol is kg_v1.0 [20:42:06]action value=close_receipt [20:42:06]process_action close_receipt [20:42:06]cmd_close_receipt [20:42:06]MH_GetDate [20:42:06]Write to MH i2c: F0 00 00 FF 29 17 [20:42:06]Write i2c OK [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: F0 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: F0 09 00 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: F0 09 00 FF 29 00 1F 0E 18 67 6B 98 1E 66 53 [20:42:06]GetLastDocTimeStamp 1729629630 [20:42:06]current date 1729629727 [20:42:06]FM_GetShiftState [20:42:06]SAM_PROTO_GetShiftState [20:42:06]wFMCommunicate request_size=4 [20:42:06]MH_SAM_APDU [20:42:06]CAPDU: 80 13 01 00 [20:42:06]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [20:42:06]Write i2c OK [20:42:06]MH_I2C_Read... [20:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:06]Read from MH i2c: E2 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: E2 0E 00 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 95 [20:42:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:42:06]wFMCommunicate OK [20:42:06]SAM_PROTO_GetShiftState done [20:42:06]FM_GetShiftState done [20:42:06]opened in 1729555832 [20:42:06]opened+sec_in_day 1729642232 [20:42:06]quantity*price = 100015 [20:42:06]sum+1 = 100017 [20:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 390 22.10.2024 20:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70442 ФПД: 75334200151176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70442&fm=75334200151176&tin=02508201610067®Number=0000000000156251&sum=100000 [20:42:07]StoreToDocumentArchive [20:42:07]shift 195 fd 70442 [20:42:07]save to /storage/0195/doc_00070442 [20:42:07]save last doc name /storage/0195/doc_00070442 to /storage/kkm_last_doc_name [20:42:07]save OK [20:42:07]Clear old archive folders... [20:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:07]tlvbuf is 00CF2850 [20:42:07]SAM_PROTO_ClearQueue [20:42:07]wFMCommunicate request_size=4 [20:42:07]MH_SAM_APDU [20:42:07]CAPDU: 80 09 00 00 [20:42:07]Write to MH i2c: E2 08 00 0D 2A 80 09 00 00 00 00 00 00 A9 [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:07]Read from MH i2c: E2 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 03 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [20:42:07]RAPDU: 90 00 [20:42:07]wFMCommunicate OK [20:42:07]SAM_PROTO_ClearQueue done [20:42:07]KKMCreateOFDPacket [20:42:07]OFDProtocolAddRootSTLVToBuf [20:42:07]FM_MakeSignedData [20:42:07]FM_MakeSignedData [20:42:07]SAM_PROTO_SignData [20:42:07]wFMCommunicate request_size=4 [20:42:07]MH_SAM_APDU [20:42:07]CAPDU: 80 0D 01 02 [20:42:07]Write to MH i2c: E2 08 00 0E 2A 80 0D 01 02 00 00 00 00 B1 [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:07]Read from MH i2c: E2 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 03 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [20:42:07]RAPDU: 90 00 [20:42:07]wFMCommunicate OK [20:42:07]wFMCommunicate request_size=255 [20:42:07]MH_SAM_APDU [20:42: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 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 86 01 00 00 F4 03 04 00 1F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 13 01 00 35 04 06 00 44 [20:42:07]Write to MH i2c: E2 02 01 0F 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 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 86 01 00 00 F4 03 04 00 1F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 13 01 00 35 04 06 00 44 00 00 AC [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [20:42:08]RAPDU: 90 00 [20:42:08]wFMCommunicate OK [20:42:08]wFMCommunicate request_size=10 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 0D 02 02 05 84 1C 3D 4C 88 [20:42:08]Write to MH i2c: E2 0D 00 10 2A 80 0D 02 02 05 00 84 1C 3D 4C 88 00 00 6F [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [20:42:08]RAPDU: 90 00 [20:42:08]wFMCommunicate OK [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 0D 03 02 [20:42:08]Write to MH i2c: E2 08 00 11 2A 80 0D 03 02 00 00 00 00 B6 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 0B 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 0B 00 11 2A 00 EA B8 3B AC B3 67 EC 5F 90 00 A5 [20:42:08]RAPDU: EA B8 3B AC B3 67 EC 5F 90 00 [20:42:08]wFMCommunicate OK [20:42:08]SAM_PROTO_SignData done [20:42:08]FM_MakeSignedData done [20:42:08]CreateOFDProtocolMessage [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 11 00 00 [20:42:08]Write to MH i2c: E2 08 00 12 2A 80 11 00 00 00 00 00 00 B6 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 17 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 17 00 12 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [20:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:42:08]wFMCommunicate OK [20:42:08]CreateOFDProtocolMessage done [20:42:08]OFDSenderStorePacket 70442 [20:42:08]StoreOFDPacket docnum=70442 [20:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 D2 07 01 3E 3E 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 86 01 00 00 F4 03 04 00 1F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 13 01 00 35 04 06 00 44 84 1C 3D 4C 88 EA B8 3B AC B3 67 EC 5F [20:42:08]CheckFolder [20:42:08]dirname=/storage/ofd_packets [20:42:08]CheckFolder done [20:42:08]ProducePacketName [20:42:08]name=ofd_packets/00070442 [20:42:08]NVStorageSaveData ofd_packets/00070442 [20:42:08]File name is /storage/ofd_packets/00070442 [20:42:08]Write 301 bytes [20:42:08]NVStorageSaveData done [20:42:08]OFDSenderStorePacket done [20:42:08]KKMCreateOFDPacket done [20:42:08]NVStorageSaveData kkm_last_timestamp [20:42:08]File name is /storage/kkm_last_timestamp [20:42:08]Write 4 bytes [20:42:08]NVStorageSaveData done [20:42:08]ExternCall_PrintAddStr [20:42:08]wPrintStart [20:42:08]Write to MH i2c: 01 00 00 13 2A 3D [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 07 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 07 00 13 2A 00 00 00 00 00 FF 0F 52 [20:42:08]RasterBufferAndPrint [20:42:08]line Счет N : (1)2886211 [20:42:08]line ИНН: 02508201610067 [20:42:08]line Контрольно-Кассовый Чек [20:42:08]line ПРОДАЖА [20:42:08]line ТРК (МРК, ГНК) : 12 [20:42:08]line Товар: 2710124130 [20:42:08]line Аи-92-К-5 [20:42:08]line 14.950 * 66.90 [20:42:08]line = 1000.16 [20:42:08]line НДС 12% НСП 1% [20:42:08]line > о реализуемом товаре [20:42:08]line ОКРУГЛЕНИЕ: -0.16 [20:42:08]line ИТОГО: 1000.00 [20:42:08]line Внесено: 1000.00 [20:42:08]line СДАЧА: 0.00 [20:42:08]line НСП 1% : 8.85 [20:42:08]line НДС 12% : 106.21 [20:42:08]line Наличными: 1000.00 [20:42:08]line Безнал.: 0.00 [20:42:08]line Место: АЗС № 85 "Партнер Нефть" [20:42:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:42:08]line СНО: Общий режим [20:42:08]line Чек 390 22.10.2024 20:42 [20:42:08]line Смена: 195 ФФД: 1.0 [20:42:08]line ЗНМ: 0300000167 [20:42:08]line РНМ: 0000000000156251 [20:42:08]line Версия ККМ: v1.0 [20:42:08]line ФМ: 0000000000963346 [20:42:08]line ФД: 70442 [20:42:08]line ФПД: 75334200151176 [20:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70442&fm=75334200151176&tin=02508201610067®Number=0000000000156251&sum=100000 [20:42:08]OFD Sender: Processing packet 70442 [packets to send 18, broken 17] [20:42:08]ProducePacketName [20:42:08]name=ofd_packets/00070442 [20:42:08]OFD Sender: To server: pG, [20:42:08]CommunicateWithHost lk.salyk.kg:30040 [20:42:08]ConnectInit lk.salyk.kg [20:42:08]written 0, free lines is 4095 [20:42:08]Connected sock=10 [20:42: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 34 36 0F 01 00 00 32 D2 07 01 3E 3E 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 86 01 00 00 F4 03 04 00 1F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 13 01 00 35 04 06 00 44 84 1C 3D 4C 88 EA B8 3B AC B3 67 EC 5F [20:42: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 34 36 4F 00 00 00 D7 23 47 00 3D 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 13 01 00 F4 03 04 00 BF B7 17 67 B6 04 01 00 00 97 9B C8 D1 8F EB DF 7F [20:42:08]CommunicateWithHost err = 0 [20:42:08]CheckOFDResponse [20:42:08]1017 (14) - 77093643461234 [20:42:08]1041 (16) - 0000000000963346 [20:42:08]1040 (4) - 70442 [20:42:08]1012 (4) - 22.10.2024 14:33 [20:42:08]1206 (1) - 0 [20:42:08]OFD Sender: Remove packet 70442 [20:42:08]ProducePacketName [20:42:08]name=ofd_packets/00070442 [20:42:08]NVStorageDeleteData [20:42:08]Write to MH i2c: 01 00 00 3E 2A 68 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 07 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: 01 07 00 3E 2A 00 00 00 00 00 E0 0C 5B [20:42:08]RasterBufferAndPrint [20:42:08]line [20:42:08]line [20:42:08]line [20:42:08]line [20:42:08]line [20:42:08]written 0, free lines is 3304 [20:42:08]MH_Cut [20:42:08]Write to MH i2c: D1 01 00 45 2A 01 41 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: D1 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: D1 01 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: D1 01 00 45 2A 00 40 [20:42:08]Write to MH i2c: 01 00 00 46 2A 70 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:09]OFD Sender: No OFD packet to send [20:42:09]*** Cut start [20:42:09]*** Partial cut [20:42:09]*** CUTSNS_PIN = 1 [20:42:09]*** CUTSNS_PIN = 0 [20:42:09]*** Brake cut motor [20:42:10]Read from MH i2c: 01 [20:42:10]MH_I2C_Read... [20:42:10]*** Stop cut motor [20:42:10]*** Cut end [20:42:10]Read from MH i2c: 01 07 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 FF 0F 85 [20:42:10]process_action close_receipt done [20:42:10]requested_data is exist [20:42:10]produce_requested_data [20:42:10]requested_item fm.sn is exist - process it [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 11 00 00 [20:42:10]Write to MH i2c: E2 08 00 47 2A 80 11 00 00 00 00 00 00 EB [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 17 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 17 00 47 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [20:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:42:10]wFMCommunicate OK [20:42:10]requested_item fd.num is exist - process it [20:42:10]SAM_PROTO_GetFieldsCounters [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 13 00 00 [20:42:10]Write to MH i2c: E2 08 00 48 2A 80 13 00 00 00 00 00 00 EE [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 62 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 62 00 48 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [20:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:10]wFMCommunicate OK [20:42:10]SAM_PROTO_GetFieldsCounters done [20:42:10]requested_item shift.num is exist - process it [20:42:10]requested_item shift.opened is exist - process it [20:42:10]req_shift_opened [20:42:10]FM_GetShiftState [20:42:10]SAM_PROTO_GetShiftState [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 13 01 00 [20:42:10]Write to MH i2c: E2 08 00 49 2A 80 13 01 00 00 00 00 00 F0 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 0E 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 0E 00 49 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DE [20:42:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:42:10]wFMCommunicate OK [20:42:10]SAM_PROTO_GetShiftState done [20:42:10]FM_GetShiftState done [20:42:10]req_shift_opened done [20:42:10]requested_item shift.open_date is exist - process it [20:42:10]req_shift_open_date [20:42:10]req_shift_open_date done [20:42:10]produce_requested_data done [20:42:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70442,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:42:10]process_action_free close_receipt [20:42:10]json_value_free [20:42:10]json_value_free done [20:42:10]process_json_proto returns [20:42:10]Send response to host [20:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70442,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:42:10]free response buf [20:42:10]execute_script done [20:42:10]execute_script returns [20:42:10]free content buf [20:42:10]Sock 7.Close socket [20:42:10]Sock 7.Thread stoped [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:57]accept exits with 9 [20:43:57]New connection [20:43:57]New thread 3066699108 created [20:43:57]Thread 3066555748 joined [20:43:57]Waiting for new connection... [20:43:57] Sock 9.Parse request [20:43:57]Sock 9.Check first char [20:43:57]Sock 9.First char is OK [20:43:57]request: POST /json_proto HTTP/1.0 [20:43:57]Method: POST [20:43:57]URL: /json_proto [20:43:57]Method is POST - this is cgi request [20:43:57]url: /json_proto [20:43:57]query_string will be loaded in cgi processing [20:43:57]execute_cgi json_proto POST (null) [20:43:57]execute_cgi path=json_proto method=POST [20:43:57]POST find Content-Length [20:43:57]Host: 172.17.50.3:8080 [20:43:57]Content-Length: 683 [20:43:57]Content-Type: application/json [20:43:57] [20:43:57]POST finish read [20:43:57]Found Content-Length = 683 [20:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [20:43:57]execute_script... [20:43: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)2886213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [20:43:57]POST & json_proto [20:43:57]process_json_proto [20:43:57]json parsed OK: [20:43:57]protocol is kg_v1.0 [20:43:57]action value=close_receipt [20:43:57]process_action close_receipt [20:43:57]cmd_close_receipt [20:43:57]MH_GetDate [20:43:57]Write to MH i2c: F0 00 00 4A 2A 63 [20:43:57]Write i2c OK [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: F0 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: F0 09 00 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: F0 09 00 4A 2A 00 8F 0E 18 67 6B 98 1E 66 0F [20:43:57]GetLastDocTimeStamp 1729629727 [20:43:57]current date 1729629839 [20:43:57]FM_GetShiftState [20:43:57]SAM_PROTO_GetShiftState [20:43:57]wFMCommunicate request_size=4 [20:43:57]MH_SAM_APDU [20:43:57]CAPDU: 80 13 01 00 [20:43:57]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [20:43:57]Write i2c OK [20:43:57]MH_I2C_Read... [20:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:57]Read from MH i2c: E2 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: E2 0E 00 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E0 [20:43:57]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:43:57]wFMCommunicate OK [20:43:57]SAM_PROTO_GetShiftState done [20:43:57]FM_GetShiftState done [20:43:57]opened in 1729555832 [20:43:57]opened+sec_in_day 1729642232 [20:43:57]quantity*price = 150032 [20:43:57]sum+1 = 150033 [20:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 391 22.10.2024 20:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70443 ФПД: 65388016416281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204359&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70443&fm=65388016416281&tin=02508201610067®Number=0000000000156251&sum=150000 [20:43:59]StoreToDocumentArchive [20:43:59]shift 195 fd 70443 [20:43:59]save to /storage/0195/doc_00070443 [20:43:59]save last doc name /storage/0195/doc_00070443 to /storage/kkm_last_doc_name [20:43:59]save OK [20:43:59]Clear old archive folders... [20:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:59]tlvbuf is 00ED27F0 [20:43:59]SAM_PROTO_ClearQueue [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 09 00 00 [20:43:59]Write to MH i2c: E2 08 00 58 2A 80 09 00 00 00 00 00 00 F4 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]SAM_PROTO_ClearQueue done [20:43:59]KKMCreateOFDPacket [20:43:59]OFDProtocolAddRootSTLVToBuf [20:43:59]FM_MakeSignedData [20:43:59]FM_MakeSignedData [20:43:59]SAM_PROTO_SignData [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 01 02 [20:43:59]Write to MH i2c: E2 08 00 59 2A 80 0D 01 02 00 00 00 00 FC [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=255 [20:43:59]MH_SAM_APDU [20:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 87 01 00 00 F4 03 04 00 8F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 13 01 00 35 04 06 00 3B [20:43:59]Write to MH i2c: E2 02 01 5A 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 87 01 00 00 F4 03 04 00 8F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 13 01 00 35 04 06 00 3B 00 00 C9 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]OFD Sender: No OFD packet to send [20:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=10 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 02 02 05 78 55 7D B6 19 [20:43:59]Write to MH i2c: E2 0D 00 5B 2A 80 0D 02 02 05 00 78 55 7D B6 19 00 00 22 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 03 02 [20:43:59]Write to MH i2c: E2 08 00 5C 2A 80 0D 03 02 00 00 00 00 01 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 0B 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 0B 00 5C 2A 00 8D 67 EF C5 6E 36 D9 76 90 00 9D [20:43:59]RAPDU: 8D 67 EF C5 6E 36 D9 76 90 00 [20:43:59]wFMCommunicate OK [20:43:59]SAM_PROTO_SignData done [20:43:59]FM_MakeSignedData done [20:43:59]CreateOFDProtocolMessage [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 11 00 00 [20:43:59]Write to MH i2c: E2 08 00 5D 2A 80 11 00 00 00 00 00 00 01 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 17 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 17 00 5D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [20:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:43:59]wFMCommunicate OK [20:43:59]CreateOFDProtocolMessage done [20:43:59]OFDSenderStorePacket 70443 [20:43:59]StoreOFDPacket docnum=70443 [20:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3F DC 07 01 B0 97 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 87 01 00 00 F4 03 04 00 8F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 13 01 00 35 04 06 00 3B 78 55 7D B6 19 8D 67 EF C5 6E 36 D9 76 [20:43:59]CheckFolder [20:43:59]dirname=/storage/ofd_packets [20:43:59]CheckFolder done [20:43:59]ProducePacketName [20:43:59]name=ofd_packets/00070443 [20:43:59]NVStorageSaveData ofd_packets/00070443 [20:43:59]File name is /storage/ofd_packets/00070443 [20:43:59]Write 301 bytes [20:43:59]NVStorageSaveData done [20:43:59]OFDSenderStorePacket done [20:43:59]KKMCreateOFDPacket done [20:43:59]NVStorageSaveData kkm_last_timestamp [20:43:59]File name is /storage/kkm_last_timestamp [20:43:59]Write 4 bytes [20:43:59]NVStorageSaveData done [20:43:59]ExternCall_PrintAddStr [20:43:59]wPrintStart [20:43:59]Write to MH i2c: 01 00 00 5E 2A 88 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 07 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 FF 0F 9D [20:43:59]RasterBufferAndPrint [20:43:59]line Счет N : (1)2886213 [20:43:59]line ИНН: 02508201610067 [20:43:59]line Контрольно-Кассовый Чек [20:43:59]line ПРОДАЖА [20:43:59]line ТРК (МРК, ГНК) : 23 [20:43:59]line Товар: 2710124500 [20:43:59]line Аи-95-К-5 [20:43:59]line 20.220 * 74.20 [20:43:59]line = 1500.32 [20:43:59]line НДС 12% НСП 1% [20:43:59]line > о реализуемом товаре [20:43:59]line ОКРУГЛЕНИЕ: -0.32 [20:43:59]line ИТОГО: 1500.00 [20:43:59]line Внесено: 1500.00 [20:43:59]line СДАЧА: 0.00 [20:43:59]line НСП 1% : 13.28 [20:43:59]line НДС 12% : 159.33 [20:43:59]line Наличными: 1500.00 [20:43:59]line Безнал.: 0.00 [20:43:59]line Место: АЗС № 85 "Партнер Нефть" [20:43:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:43:59]line СНО: Общий режим [20:43:59]line Чек 391 22.10.2024 20:43 [20:43:59]line Смена: 195 ФФД: 1.0 [20:43:59]line ЗНМ: 0300000167 [20:43:59]line РНМ: 0000000000156251 [20:43:59]line Версия ККМ: v1.0 [20:43:59]line ФМ: 0000000000963346 [20:43:59]line ФД: 70443 [20:43:59]line ФПД: 65388016416281 [20:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204359&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70443&fm=65388016416281&tin=02508201610067®Number=0000000000156251&sum=150000 [20:43:59]OFD Sender: Processing packet 70443 [packets to send 18, broken 17] [20:43:59]ProducePacketName [20:43:59]name=ofd_packets/00070443 [20:43:59]OFD Sender: To server: pG, [20:43:59]CommunicateWithHost lk.salyk.kg:30040 [20:43:59]ConnectInit lk.salyk.kg [20:43:59]written 0, free lines is 4095 [20:44:00]Connected sock=10 [20:44: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 34 36 0F 01 00 00 3F DC 07 01 B0 97 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 87 01 00 00 F4 03 04 00 8F 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 13 01 00 35 04 06 00 3B 78 55 7D B6 19 8D 67 EF C5 6E 36 D9 76 [20:44: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 34 36 4F 00 00 00 5A BF 47 00 F9 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 34 36 10 04 04 00 2B 13 01 00 F4 03 04 00 2E B8 17 67 B6 04 01 00 00 10 96 98 4F 3F BE 74 52 [20:44:00]CommunicateWithHost err = 0 [20:44:00]CheckOFDResponse [20:44:00]1017 (14) - 77093643461234 [20:44:00]1041 (16) - 0000000000963346 [20:44:00]1040 (4) - 70443 [20:44:00]1012 (4) - 22.10.2024 14:35 [20:44:00]1206 (1) - 0 [20:44:00]OFD Sender: Remove packet 70443 [20:44:00]ProducePacketName [20:44:00]name=ofd_packets/00070443 [20:44:00]NVStorageDeleteData [20:44:00]Write to MH i2c: 01 00 00 89 2A B3 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 F5 0C BB [20:44:00]RasterBufferAndPrint [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]written 0, free lines is 3328 [20:44:00]MH_Cut [20:44:00]Write to MH i2c: D1 01 00 90 2A 01 8C [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 01 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 01 00 90 2A 00 8B [20:44:00]Write to MH i2c: 01 00 00 91 2A BB [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]OFD Sender: No OFD packet to send [20:44:01]*** Cut start [20:44:01]*** Partial cut [20:44:01]*** CUTSNS_PIN = 1 [20:44:01]*** CUTSNS_PIN = 0 [20:44:01]*** Brake cut motor [20:44:01]Read from MH i2c: 01 [20:44:01]MH_I2C_Read... [20:44:01]*** Stop cut motor [20:44:01]*** Cut end [20:44:01]Read from MH i2c: 01 07 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [20:44:01]process_action close_receipt done [20:44:01]requested_data is exist [20:44:01]produce_requested_data [20:44:01]requested_item fm.sn is exist - process it [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 11 00 00 [20:44:01]Write to MH i2c: E2 08 00 92 2A 80 11 00 00 00 00 00 00 36 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 17 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 17 00 92 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [20:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:44:01]wFMCommunicate OK [20:44:01]requested_item fd.num is exist - process it [20:44:01]SAM_PROTO_GetFieldsCounters [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 13 00 00 [20:44:01]Write to MH i2c: E2 08 00 93 2A 80 13 00 00 00 00 00 00 39 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 62 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 62 00 93 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_GetFieldsCounters done [20:44:01]requested_item shift.num is exist - process it [20:44:01]requested_item shift.opened is exist - process it [20:44:01]req_shift_opened [20:44:01]FM_GetShiftState [20:44:01]SAM_PROTO_GetShiftState [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 13 01 00 [20:44:01]Write to MH i2c: E2 08 00 94 2A 80 13 01 00 00 00 00 00 3B [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 94 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [20:44:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_GetShiftState done [20:44:01]FM_GetShiftState done [20:44:01]req_shift_opened done [20:44:01]requested_item shift.open_date is exist - process it [20:44:01]req_shift_open_date [20:44:01]req_shift_open_date done [20:44:01]produce_requested_data done [20:44:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70443,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:44:01]process_action_free close_receipt [20:44:01]json_value_free [20:44:01]json_value_free done [20:44:01]process_json_proto returns [20:44:01]Send response to host [20:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70443,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:44:01]free response buf [20:44:01]execute_script done [20:44:01]execute_script returns [20:44:01]free content buf [20:44:01]Sock 9.Close socket [20:44:01]Sock 9.Thread stoped [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:47]accept exits with 7 [20:44:47]New connection [20:44:47]New thread 3066555748 created [20:44:47]Thread 3066699108 joined [20:44:47]Waiting for new connection... [20:44:47] Sock 7.Parse request [20:44:47]Sock 7.Check first char [20:44:47]Sock 7.First char is OK [20:44:47]request: POST /json_proto HTTP/1.0 [20:44:47]Method: POST [20:44:47]URL: /json_proto [20:44:47]Method is POST - this is cgi request [20:44:47]url: /json_proto [20:44:47]query_string will be loaded in cgi processing [20:44:47]execute_cgi json_proto POST (null) [20:44:47]execute_cgi path=json_proto method=POST [20:44:47]POST find Content-Length [20:44:47]Host: 172.17.50.3:8080 [20:44:47]Content-Length: 689 [20:44:47]Content-Type: application/json [20:44:47] [20:44:47]POST finish read [20:44:47]Found Content-Length = 689 [20:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.410, "sum" : 1112.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1112.00, "total" : 1112.00, "payments": [ { "type": 0, "sum" : 1112.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:47]execute_script... [20:44: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)2886212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.410, "sum" : 1112.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1112.00, "total" : 1112.00, "payments": [ { "type": 0, "sum" : 1112.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:47]POST & json_proto [20:44:47]process_json_proto [20:44:47]json parsed OK: [20:44:47]protocol is kg_v1.0 [20:44:47]action value=close_receipt [20:44:47]process_action close_receipt [20:44:47]cmd_close_receipt [20:44:47]MH_GetDate [20:44:47]Write to MH i2c: F0 00 00 95 2A AE [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 09 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 09 00 95 2A 00 C1 0E 18 67 6B 98 1E 66 8C [20:44:47]GetLastDocTimeStamp 1729629839 [20:44:47]current date 1729629889 [20:44:47]FM_GetShiftState [20:44:47]SAM_PROTO_GetShiftState [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 13 01 00 [20:44:47]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0E 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2B [20:44:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:44:47]wFMCommunicate OK [20:44:47]SAM_PROTO_GetShiftState done [20:44:47]FM_GetShiftState done [20:44:47]opened in 1729555832 [20:44:47]opened+sec_in_day 1729642232 [20:44:47]quantity*price = 111245 [20:44:47]sum+1 = 111246 [20:44:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1112.00 Внесено: 1112.00 СДАЧА: 0.00 НСП 1% : 9.84 НДС 12% : 118.14 Наличными: 1112.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 392 22.10.2024 20:44 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70444 ФПД: 192394044658142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70444&fm=192394044658142&tin=02508201610067®Number=0000000000156251&sum=111200 [20:44:49]StoreToDocumentArchive [20:44:49]shift 195 fd 70444 [20:44:49]save to /storage/0195/doc_00070444 [20:44:49]save last doc name /storage/0195/doc_00070444 to /storage/kkm_last_doc_name [20:44:49]save OK [20:44:49]Clear old archive folders... [20:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:44:49]tlvbuf is B6F17650 [20:44:49]SAM_PROTO_ClearQueue [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 09 00 00 [20:44:49]Write to MH i2c: E2 08 00 A3 2A 80 09 00 00 00 00 00 00 3F [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [20:44:49]RAPDU: 90 00 [20:44:49]wFMCommunicate OK [20:44:49]SAM_PROTO_ClearQueue done [20:44:49]KKMCreateOFDPacket [20:44:49]OFDProtocolAddRootSTLVToBuf [20:44:49]FM_MakeSignedData [20:44:49]FM_MakeSignedData [20:44:49]SAM_PROTO_SignData [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 0D 01 02 [20:44:49]Write to MH i2c: E2 08 00 A4 2A 80 0D 01 02 00 00 00 00 47 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [20:44:49]RAPDU: 90 00 [20:44:49]wFMCommunicate OK [20:44:49]wFMCommunicate request_size=255 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 4A 38 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D B2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 13 01 [20:44:49]Write to MH i2c: E2 02 01 A5 2A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 4A 38 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D B2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 13 01 00 00 EE [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [20:44:49]RAPDU: 90 00 [20:44:49]wFMCommunicate OK [20:44:49]wFMCommunicate request_size=16 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AE FB 3A B0 51 DE [20:44:49]Write to MH i2c: E2 13 00 A6 2A 80 0D 02 02 0B 00 00 35 04 06 00 AE FB 3A B0 51 DE 00 00 61 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [20:44:49]RAPDU: 90 00 [20:44:49]wFMCommunicate OK [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 0D 03 02 [20:44:49]Write to MH i2c: E2 08 00 A7 2A 80 0D 03 02 00 00 00 00 4C [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 0B 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 0B 00 A7 2A 00 EF 30 85 18 2A 13 04 19 90 00 63 [20:44:49]RAPDU: EF 30 85 18 2A 13 04 19 90 00 [20:44:49]wFMCommunicate OK [20:44:49]SAM_PROTO_SignData done [20:44:49]FM_MakeSignedData done [20:44:49]CreateOFDProtocolMessage [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 11 00 00 [20:44:49]Write to MH i2c: E2 08 00 A8 2A 80 11 00 00 00 00 00 00 4C [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 17 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 17 00 A8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [20:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:44:49]wFMCommunicate OK [20:44:49]CreateOFDProtocolMessage done [20:44:49]OFDSenderStorePacket 70444 [20:44:49]StoreOFDPacket docnum=70444 [20:44:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 99 0C 0D 01 0C 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 4A 38 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D B2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 13 01 00 35 04 06 00 AE FB 3A B0 51 DE EF 30 85 18 2A 13 04 19 [20:44:49]CheckFolder [20:44:49]dirname=/storage/ofd_packets [20:44:49]CheckFolder done [20:44:49]ProducePacketName [20:44:49]name=ofd_packets/00070444 [20:44:49]NVStorageSaveData ofd_packets/00070444 [20:44:49]File name is /storage/ofd_packets/00070444 [20:44:49]Write 307 bytes [20:44:49]NVStorageSaveData done [20:44:49]OFDSenderStorePacket done [20:44:49]KKMCreateOFDPacket done [20:44:49]NVStorageSaveData kkm_last_timestamp [20:44:49]File name is /storage/kkm_last_timestamp [20:44:49]Write 4 bytes [20:44:49]NVStorageSaveData done [20:44:49]ExternCall_PrintAddStr [20:44:49]wPrintStart [20:44:49]Write to MH i2c: 01 00 00 A9 2A D3 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 A9 2A 00 00 00 00 00 FF 0F E8 [20:44:49]RasterBufferAndPrint [20:44:49]line Счет N : (1)2886212 [20:44:49]line ИНН: 02508201610067 [20:44:49]line Контрольно-Кассовый Чек [20:44:49]line ПРОДАЖА [20:44:49]line ТРК (МРК, ГНК) : 31 [20:44:49]line Товар: 2710194240 [20:44:49]line D-ENERGY Дт-К-2 [20:44:49]line 14.410 * 77.20 [20:44:49]line = 1112.45 [20:44:49]line НДС 12% НСП 1% [20:44:49]line > о реализуемом товаре [20:44:49]line ОКРУГЛЕНИЕ: -0.45 [20:44:49]line ИТОГО: 1112.00 [20:44:49]line Внесено: 1112.00 [20:44:49]line СДАЧА: 0.00 [20:44:49]line НСП 1% : 9.84 [20:44:49]line НДС 12% : 118.14 [20:44:49]line Наличными: 1112.00 [20:44:49]line Безнал.: 0.00 [20:44:49]line Место: АЗС № 85 "Партнер Нефть" [20:44:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:44:49]line СНО: Общий режим [20:44:49]line Чек 392 22.10.2024 20:44 [20:44:49]line Смена: 195 ФФД: 1.0 [20:44:49]line ЗНМ: 0300000167 [20:44:49]line РНМ: 0000000000156251 [20:44:49]line Версия ККМ: v1.0 [20:44:49]line ФМ: 0000000000963346 [20:44:49]line ФД: 70444 [20:44:49]line ФПД: 192394044658142 [20:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70444&fm=192394044658142&tin=02508201610067®Number=0000000000156251&sum=111200 [20:44:49]OFD Sender: Processing packet 70444 [packets to send 18, broken 17] [20:44:49]ProducePacketName [20:44:49]name=ofd_packets/00070444 [20:44:49]OFD Sender: To server: pG, [20:44:49]CommunicateWithHost lk.salyk.kg:30040 [20:44:49]ConnectInit lk.salyk.kg [20:44:49]written 0, free lines is 4095 [20:44:50]Connected sock=10 [20:44: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 34 36 15 01 00 00 99 0C 0D 01 0C 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 4A 38 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D B2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 0E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 13 01 00 35 04 06 00 AE FB 3A B0 51 DE EF 30 85 18 2A 13 04 19 [20:44: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 34 36 4F 00 00 00 62 CC 47 00 92 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 34 36 10 04 04 00 2C 13 01 00 F4 03 04 00 60 B8 17 67 B6 04 01 00 00 14 38 12 2A A4 31 E4 A0 [20:44:50]CommunicateWithHost err = 0 [20:44:50]CheckOFDResponse [20:44:50]1017 (14) - 77093643461234 [20:44:50]1041 (16) - 0000000000963346 [20:44:50]1040 (4) - 70444 [20:44:50]1012 (4) - 22.10.2024 14:36 [20:44:50]1206 (1) - 0 [20:44:50]OFD Sender: Remove packet 70444 [20:44:50]ProducePacketName [20:44:50]name=ofd_packets/00070444 [20:44:50]NVStorageDeleteData [20:44:50]Write to MH i2c: 01 00 00 D4 2A FE [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: 01 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: 01 07 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 F0 0C 01 [20:44:50]RasterBufferAndPrint [20:44:50]line [20:44:50]line [20:44:50]line [20:44:50]line [20:44:50]line [20:44:50]written 0, free lines is 3318 [20:44:50]MH_Cut [20:44:50]Write to MH i2c: D1 01 00 DB 2A 01 D7 [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: D1 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: D1 01 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: D1 01 00 DB 2A 00 D6 [20:44:50]Write to MH i2c: 01 00 00 DC 2A 06 [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]OFD Sender: No OFD packet to send [20:44:51]*** Cut start [20:44:51]*** Partial cut [20:44:51]*** CUTSNS_PIN = 1 [20:44:51]*** CUTSNS_PIN = 0 [20:44:51]*** Brake cut motor [20:44:51]Read from MH i2c: 01 [20:44:51]MH_I2C_Read... [20:44:51]*** Stop cut motor [20:44:51]*** Cut end [20:44:51]Read from MH i2c: 01 07 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: 01 07 00 DC 2A 00 00 00 00 00 FF 0F 1B [20:44:51]process_action close_receipt done [20:44:51]requested_data is exist [20:44:51]produce_requested_data [20:44:51]requested_item fm.sn is exist - process it [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 11 00 00 [20:44:51]Write to MH i2c: E2 08 00 DD 2A 80 11 00 00 00 00 00 00 81 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 DD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [20:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:44:51]wFMCommunicate OK [20:44:51]requested_item fd.num is exist - process it [20:44:51]SAM_PROTO_GetFieldsCounters [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 00 00 [20:44:51]Write to MH i2c: E2 08 00 DE 2A 80 13 00 00 00 00 00 00 84 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 DE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [20:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetFieldsCounters done [20:44:51]requested_item shift.num is exist - process it [20:44:51]requested_item shift.opened is exist - process it [20:44:51]req_shift_opened [20:44:51]FM_GetShiftState [20:44:51]SAM_PROTO_GetShiftState [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 01 00 [20:44:51]Write to MH i2c: E2 08 00 DF 2A 80 13 01 00 00 00 00 00 86 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 DF 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 74 [20:44:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetShiftState done [20:44:51]FM_GetShiftState done [20:44:51]req_shift_opened done [20:44:51]requested_item shift.open_date is exist - process it [20:44:51]req_shift_open_date [20:44:51]req_shift_open_date done [20:44:51]produce_requested_data done [20:44:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70444,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:44:51]process_action_free close_receipt [20:44:51]json_value_free [20:44:51]json_value_free done [20:44:51]process_json_proto returns [20:44:51]Send response to host [20:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70444,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:44:51]free response buf [20:44:51]execute_script done [20:44:51]execute_script returns [20:44:51]free content buf [20:44:51]Sock 7.Close socket [20:44:51]Sock 7.Thread stoped [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:49]accept exits with 9 [20:51:49]New connection [20:51:49]New thread 3066699108 created [20:51:49]Thread 3066555748 joined [20:51:49]Waiting for new connection... [20:51:49] Sock 9.Parse request [20:51:49]Sock 9.Check first char [20:51:49]Sock 9.First char is OK [20:51:49]request: POST /json_proto HTTP/1.0 [20:51:49]Method: POST [20:51:49]URL: /json_proto [20:51:49]Method is POST - this is cgi request [20:51:49]url: /json_proto [20:51:49]query_string will be loaded in cgi processing [20:51:49]execute_cgi json_proto POST (null) [20:51:49]execute_cgi path=json_proto method=POST [20:51:49]POST find Content-Length [20:51:49]Host: 172.17.50.3:8080 [20:51:49]Content-Length: 686 [20:51:49]Content-Type: application/json [20:51:49] [20:51:49]POST finish read [20:51:49]Found Content-Length = 686 [20:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.600, "sum" : 1501.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:49]execute_script... [20:51: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)2886214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.600, "sum" : 1501.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:49]POST & json_proto [20:51:49]process_json_proto [20:51:49]json parsed OK: [20:51:49]protocol is kg_v1.0 [20:51:49]action value=close_receipt [20:51:49]process_action close_receipt [20:51:49]cmd_close_receipt [20:51:49]MH_GetDate [20:51:49]Write to MH i2c: F0 00 00 E0 2A F9 [20:51:49]Write i2c OK [20:51:49]MH_I2C_Read... [20:51:49]Read from MH i2c: F0 [20:51:49]MH_I2C_Read... [20:51:49]Read from MH i2c: F0 09 00 [20:51:49]MH_I2C_Read... [20:51:49]Read from MH i2c: F0 09 00 E0 2A 00 66 10 18 67 6B 98 1E 66 7E [20:51:49]GetLastDocTimeStamp 1729629889 [20:51:49]current date 1729630310 [20:51:49]FM_GetShiftState [20:51:49]SAM_PROTO_GetShiftState [20:51:49]wFMCommunicate request_size=4 [20:51:49]MH_SAM_APDU [20:51:49]CAPDU: 80 13 01 00 [20:51:49]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [20:51:49]Write i2c OK [20:51:49]MH_I2C_Read... [20:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:49]Read from MH i2c: E2 [20:51:49]MH_I2C_Read... [20:51:49]Read from MH i2c: E2 0E 00 [20:51:49]MH_I2C_Read... [20:51:49]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 76 [20:51:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:51:49]wFMCommunicate OK [20:51:49]SAM_PROTO_GetShiftState done [20:51:49]FM_GetShiftState done [20:51:49]opened in 1729555832 [20:51:49]opened+sec_in_day 1729642232 [20:51:49]quantity*price = 150154 [20:51:49]sum+1 = 150155 [20:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1501.00 Внесено: 4000.00 СДАЧА: 2499.00 НСП 1% : 13.29 НДС 12% : 159.46 Наличными: 1501.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 393 22.10.2024 20:51 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70445 ФПД: 265695909284469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70445&fm=265695909284469&tin=02508201610067®Number=0000000000156251&sum=150100 [20:51:50]StoreToDocumentArchive [20:51:50]shift 195 fd 70445 [20:51:50]save to /storage/0195/doc_00070445 [20:51:50]save last doc name /storage/0195/doc_00070445 to /storage/kkm_last_doc_name [20:51:50]save OK [20:51:50]Clear old archive folders... [20:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:51:50]tlvbuf is 00AE3600 [20:51:50]SAM_PROTO_ClearQueue [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 09 00 00 [20:51:50]Write to MH i2c: E2 08 00 EE 2A 80 09 00 00 00 00 00 00 8A [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]SAM_PROTO_ClearQueue done [20:51:50]KKMCreateOFDPacket [20:51:50]OFDProtocolAddRootSTLVToBuf [20:51:50]FM_MakeSignedData [20:51:50]FM_MakeSignedData [20:51:50]SAM_PROTO_SignData [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 01 02 [20:51:50]Write to MH i2c: E2 08 00 EF 2A 80 0D 01 02 00 00 00 00 92 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=255 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 66 10 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 13 01 00 35 04 06 00 F1 A6 [20:51:50]Write to MH i2c: E2 02 01 F0 2A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 66 10 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 13 01 00 35 04 06 00 F1 A6 00 00 D1 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=9 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 02 02 04 26 4A 8A 75 [20:51:50]Write to MH i2c: E2 0C 00 F1 2A 80 0D 02 02 04 00 26 4A 8A 75 00 00 0C [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 03 02 [20:51:50]Write to MH i2c: E2 08 00 F2 2A 80 0D 03 02 00 00 00 00 97 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 0B 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 0B 00 F2 2A 00 A8 D2 B4 7C 49 BF 6B 7B 90 00 30 [20:51:50]RAPDU: A8 D2 B4 7C 49 BF 6B 7B 90 00 [20:51:50]wFMCommunicate OK [20:51:50]SAM_PROTO_SignData done [20:51:50]FM_MakeSignedData done [20:51:50]CreateOFDProtocolMessage [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 11 00 00 [20:51:50]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 17 00 [20:51:50]MH_I2C_Read... [20:51:51]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [20:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:51:51]wFMCommunicate OK [20:51:51]CreateOFDProtocolMessage done [20:51:51]OFDSenderStorePacket 70445 [20:51:51]StoreOFDPacket docnum=70445 [20:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 54 E9 06 01 F8 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 66 10 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 13 01 00 35 04 06 00 F1 A6 26 4A 8A 75 A8 D2 B4 7C 49 BF 6B 7B [20:51:51]CheckFolder [20:51:51]dirname=/storage/ofd_packets [20:51:51]CheckFolder done [20:51:51]ProducePacketName [20:51:51]name=ofd_packets/00070445 [20:51:51]NVStorageSaveData ofd_packets/00070445 [20:51:51]File name is /storage/ofd_packets/00070445 [20:51:51]Write 300 bytes [20:51:51]NVStorageSaveData done [20:51:51]OFDSenderStorePacket done [20:51:51]KKMCreateOFDPacket done [20:51:51]NVStorageSaveData kkm_last_timestamp [20:51:51]File name is /storage/kkm_last_timestamp [20:51:51]Write 4 bytes [20:51:51]NVStorageSaveData done [20:51:51]ExternCall_PrintAddStr [20:51:51]wPrintStart [20:51:51]Write to MH i2c: 01 00 00 F4 2A 1E [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [20:51:51]RasterBufferAndPrint [20:51:51]line Счет N : (1)2886214 [20:51:51]line ИНН: 02508201610067 [20:51:51]line Контрольно-Кассовый Чек [20:51:51]line ПРОДАЖА [20:51:51]line ТРК (МРК, ГНК) : 71 [20:51:51]line Товар: 2711129700 [20:51:51]line ГАЗ-К-3 [20:51:51]line 38.600 * 38.90 [20:51:51]line = 1501.54 [20:51:51]line НДС 12% НСП 1% [20:51:51]line > о реализуемом товаре [20:51:51]line ОКРУГЛЕНИЕ: -0.54 [20:51:51]line ИТОГО: 1501.00 [20:51:51]line Внесено: 4000.00 [20:51:51]line СДАЧА: 2499.00 [20:51:51]line НСП 1% : 13.29 [20:51:51]line НДС 12% : 159.46 [20:51:51]line Наличными: 1501.00 [20:51:51]line Безнал.: 0.00 [20:51:51]line Место: АЗС № 85 "Партнер Нефть" [20:51:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:51:51]line СНО: Общий режим [20:51:51]line Чек 393 22.10.2024 20:51 [20:51:51]line Смена: 195 ФФД: 1.0 [20:51:51]line ЗНМ: 0300000167 [20:51:51]line РНМ: 0000000000156251 [20:51:51]line Версия ККМ: v1.0 [20:51:51]line ФМ: 0000000000963346 [20:51:51]line ФД: 70445 [20:51:51]line ФПД: 265695909284469 [20:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70445&fm=265695909284469&tin=02508201610067®Number=0000000000156251&sum=150100 [20:51:51]OFD Sender: Processing packet 70445 [packets to send 18, broken 17] [20:51:51]ProducePacketName [20:51:51]name=ofd_packets/00070445 [20:51:51]OFD Sender: To server: pG, [20:51:51]CommunicateWithHost lk.salyk.kg:30040 [20:51:51]ConnectInit lk.salyk.kg [20:51:51]written 0, free lines is 4095 [20:51:51]Connected sock=10 [20:51: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 34 36 0E 01 00 00 54 E9 06 01 F8 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 66 10 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 13 01 00 35 04 06 00 F1 A6 26 4A 8A 75 A8 D2 B4 7C 49 BF 6B 7B [20:51: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 34 36 4F 00 00 00 1E 1C 47 00 B8 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 34 36 10 04 04 00 2D 13 01 00 F4 03 04 00 06 BA 17 67 B6 04 01 00 00 8F A5 18 80 85 A6 13 80 [20:51:51]CommunicateWithHost err = 0 [20:51:51]CheckOFDResponse [20:51:51]1017 (14) - 77093643461234 [20:51:51]1041 (16) - 0000000000963346 [20:51:51]1040 (4) - 70445 [20:51:51]1012 (4) - 22.10.2024 14:43 [20:51:51]1206 (1) - 0 [20:51:51]OFD Sender: Remove packet 70445 [20:51:51]ProducePacketName [20:51:51]name=ofd_packets/00070445 [20:51:51]NVStorageDeleteData [20:51:51]Write to MH i2c: 01 00 00 1F 2B 4A [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 E9 0C 46 [20:51:51]RasterBufferAndPrint [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]written 0, free lines is 3311 [20:51:51]MH_Cut [20:51:51]Write to MH i2c: D1 01 00 26 2B 01 23 [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 01 00 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 01 00 26 2B 00 22 [20:51:51]Write to MH i2c: 01 00 00 27 2B 52 [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:52]OFD Sender: No OFD packet to send [20:51:52]*** Cut start [20:51:52]*** Partial cut [20:51:52]*** CUTSNS_PIN = 1 [20:51:52]*** CUTSNS_PIN = 0 [20:51:52]*** Brake cut motor [20:51:53]Read from MH i2c: 01 [20:51:53]MH_I2C_Read... [20:51:53]*** Stop cut motor [20:51:53]*** Cut end [20:51:53]Read from MH i2c: 01 07 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: 01 07 00 27 2B 00 00 00 00 00 FF 0F 67 [20:51:53]process_action close_receipt done [20:51:53]requested_data is exist [20:51:53]produce_requested_data [20:51:53]requested_item fm.sn is exist - process it [20:51:53]wFMCommunicate request_size=4 [20:51:53]MH_SAM_APDU [20:51:53]CAPDU: 80 11 00 00 [20:51:53]Write to MH i2c: E2 08 00 28 2B 80 11 00 00 00 00 00 00 CD [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 17 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 17 00 28 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [20:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:51:53]wFMCommunicate OK [20:51:53]requested_item fd.num is exist - process it [20:51:53]SAM_PROTO_GetFieldsCounters [20:51:53]wFMCommunicate request_size=4 [20:51:53]MH_SAM_APDU [20:51:53]CAPDU: 80 13 00 00 [20:51:53]Write to MH i2c: E2 08 00 29 2B 80 13 00 00 00 00 00 00 D0 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 62 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 62 00 29 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:51: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:53]wFMCommunicate OK [20:51:53]SAM_PROTO_GetFieldsCounters done [20:51:53]requested_item shift.num is exist - process it [20:51:53]requested_item shift.opened is exist - process it [20:51:53]req_shift_opened [20:51:53]FM_GetShiftState [20:51:53]SAM_PROTO_GetShiftState [20:51:53]wFMCommunicate request_size=4 [20:51:53]MH_SAM_APDU [20:51:53]CAPDU: 80 13 01 00 [20:51:53]Write to MH i2c: E2 08 00 2A 2B 80 13 01 00 00 00 00 00 D2 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 2A 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C0 [20:51:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [20:51:53]wFMCommunicate OK [20:51:53]SAM_PROTO_GetShiftState done [20:51:53]FM_GetShiftState done [20:51:53]req_shift_opened done [20:51:53]requested_item shift.open_date is exist - process it [20:51:53]req_shift_open_date [20:51:53]req_shift_open_date done [20:51:53]produce_requested_data done [20:51:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70445,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [20:51:53]process_action_free close_receipt [20:51:53]json_value_free [20:51:53]json_value_free done [20:51:53]process_json_proto returns [20:51:53]Send response to host [20:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70445,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [20:51:53]free response buf [20:51:53]execute_script done [20:51:53]execute_script returns [20:51:53]free content buf [20:51:53]Sock 9.Close socket [20:51:53]Sock 9.Thread stoped [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:01]accept exits with 7 [21:00:01]New connection [21:00:01]New thread 3066555748 created [21:00:01]Thread 3066699108 joined [21:00:01]Waiting for new connection... [21:00:01] Sock 7.Parse request [21:00:01]Sock 7.Check first char [21:00:01]Sock 7.First char is OK [21:00:01]request: POST /json_proto HTTP/1.0 [21:00:01]Method: POST [21:00:01]URL: /json_proto [21:00:01]Method is POST - this is cgi request [21:00:01]url: /json_proto [21:00:01]query_string will be loaded in cgi processing [21:00:01]execute_cgi json_proto POST (null) [21:00:01]execute_cgi path=json_proto method=POST [21:00:01]POST find Content-Length [21:00:01]Host: 172.17.50.3:8080 [21:00:01]Content-Length: 790 [21:00:01]Content-Type: application/json [21:00:01] [21:00:01]POST finish read [21:00:01]Found Content-Length = 790 [21:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886215", "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" : 0.00, "quantity" : 15.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\u000A53073", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:01]execute_script... [21:00: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)2886215", "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" : 0.00, "quantity" : 15.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\u000A53073", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:01]POST & json_proto [21:00:01]process_json_proto [21:00:01]json parsed OK: [21:00:01]protocol is kg_v1.0 [21:00:01]action value=close_receipt [21:00:01]process_action close_receipt [21:00:01]cmd_close_receipt [21:00:01]MH_GetDate [21:00:01]Write to MH i2c: F0 00 00 2B 2B 45 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 09 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 09 00 2B 2B 00 53 12 18 67 6B 98 1E 66 B9 [21:00:01]GetLastDocTimeStamp 1729630310 [21:00:01]current date 1729630803 [21:00:01]FM_GetShiftState [21:00:01]SAM_PROTO_GetShiftState [21:00:01]wFMCommunicate request_size=4 [21:00:01]MH_SAM_APDU [21:00:01]CAPDU: 80 13 01 00 [21:00:01]Write to MH i2c: E2 08 00 2C 2B 80 13 01 00 00 00 00 00 D4 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:01]Read from MH i2c: E2 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 0E 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 0E 00 2C 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [21:00:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:00:01]wFMCommunicate OK [21:00:01]SAM_PROTO_GetShiftState done [21:00:01]FM_GetShiftState done [21:00:01]opened in 1729555832 [21:00:01]opened+sec_in_day 1729642232 [21:00:01]quantity*price = 0 [21:00:01]sum+1 = 1 [21:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 394 22.10.2024 21:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 53073 ФМ: 0000000000963346 ФД: 70446 ФПД: 102932933805361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70446&fm=102932933805361&tin=02508201610067®Number=0000000000156251&sum=0 [21:00:03]StoreToDocumentArchive [21:00:03]shift 195 fd 70446 [21:00:03]save to /storage/0195/doc_00070446 [21:00:03]save last doc name /storage/0195/doc_00070446 to /storage/kkm_last_doc_name [21:00:03]save OK [21:00:03]Clear old archive folders... [21:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:00:03]tlvbuf is 00ED9CE0 [21:00:03]SAM_PROTO_ClearQueue [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 09 00 00 [21:00:03]Write to MH i2c: E2 08 00 39 2B 80 09 00 00 00 00 00 00 D6 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_ClearQueue done [21:00:03]KKMCreateOFDPacket [21:00:03]OFDProtocolAddRootSTLVToBuf [21:00:03]FM_MakeSignedData [21:00:03]FM_MakeSignedData [21:00:03]SAM_PROTO_SignData [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 0D 01 02 [21:00:03]Write to MH i2c: E2 08 00 3A 2B 80 0D 01 02 00 00 00 00 DE [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]wFMCommunicate request_size=255 [21:00:03]MH_SAM_APDU [21:00:03]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 98 3A 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 8A 01 00 00 F4 03 04 00 53 12 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 13 01 00 35 04 06 00 5D 9D F0 F4 [21:00:03]Write to MH i2c: E2 02 01 3B 2B 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 98 3A 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 8A 01 00 00 F4 03 04 00 53 12 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 13 01 00 35 04 06 00 5D 9D F0 F4 00 00 59 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]wFMCommunicate request_size=7 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 0D 02 02 02 85 31 [21:00:03]Write to MH i2c: E2 0A 00 3C 2B 80 0D 02 02 02 00 85 31 00 00 9B [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 0D 03 02 [21:00:03]Write to MH i2c: E2 08 00 3D 2B 80 0D 03 02 00 00 00 00 E3 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0B 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0B 00 3D 2B 00 D6 8E 42 6E D5 A6 94 13 90 00 1A [21:00:03]RAPDU: D6 8E 42 6E D5 A6 94 13 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_SignData done [21:00:03]FM_MakeSignedData done [21:00:03]CreateOFDProtocolMessage [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 11 00 00 [21:00:03]Write to MH i2c: E2 08 00 3E 2B 80 11 00 00 00 00 00 00 E3 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 3E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [21:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:00:03]wFMCommunicate OK [21:00:03]CreateOFDProtocolMessage done [21:00:03]OFDSenderStorePacket 70446 [21:00:03]StoreOFDPacket docnum=70446 [21:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AB 42 04 01 3C CF 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 98 3A 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 8A 01 00 00 F4 03 04 00 53 12 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 13 01 00 35 04 06 00 5D 9D F0 F4 85 31 D6 8E 42 6E D5 A6 94 13 [21:00:03]CheckFolder [21:00:03]dirname=/storage/ofd_packets [21:00:03]CheckFolder done [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00070446 [21:00:03]NVStorageSaveData ofd_packets/00070446 [21:00:03]File name is /storage/ofd_packets/00070446 [21:00:03]Write 298 bytes [21:00:03]NVStorageSaveData done [21:00:03]OFDSenderStorePacket done [21:00:03]KKMCreateOFDPacket done [21:00:03]NVStorageSaveData kkm_last_timestamp [21:00:03]File name is /storage/kkm_last_timestamp [21:00:03]Write 4 bytes [21:00:03]NVStorageSaveData done [21:00:03]ExternCall_PrintAddStr [21:00:03]wPrintStart [21:00:03]Write to MH i2c: 01 00 00 3F 2B 6A [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 07 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 FF 0F 7F [21:00:03]RasterBufferAndPrint [21:00:03]line Счет N : (1)2886215 [21:00:03]line ИНН: 02508201610067 [21:00:03]line Контрольно-Кассовый Чек [21:00:03]line ПРОДАЖА [21:00:03]line ТРК (МРК, ГНК) : 51 [21:00:03]line Товар: 2710194210 [21:00:03]line ДТ-К-5 [21:00:03]line 15.000 * 0.00 [21:00:03]line = 0.00 [21:00:03]line НДС 12% НСП 1% [21:00:03]line > о реализуемом товаре [21:00:03]line ИТОГО: 0.00 [21:00:03]line НСП 1% : 0.00 [21:00:03]line НДС 12% : 0.00 [21:00:03]line Наличными: 0.00 [21:00:03]line Безнал.: 0.00 [21:00:03]line Место: АЗС № 85 "Партнер Нефть" [21:00:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:00:03]line СНО: Общий режим [21:00:03]line Чек 394 22.10.2024 21:00 [21:00:03]line Смена: 195 ФФД: 1.0 [21:00:03]line ЗНМ: 0300000167 [21:00:03]line РНМ: 0000000000156251 [21:00:03]line Версия ККМ: v1.0 [21:00:03]line Талоны: Топливная Карта [21:00:03]line 53073 [21:00:03]line ФМ: 0000000000963346 [21:00:03]line ФД: 70446 [21:00:03]line ФПД: 102932933805361 [21:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70446&fm=102932933805361&tin=02508201610067®Number=0000000000156251&sum=0 [21:00:03]OFD Sender: Processing packet 70446 [packets to send 18, broken 17] [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00070446 [21:00:03]OFD Sender: To server: pG, [21:00:03]CommunicateWithHost lk.salyk.kg:30040 [21:00:03]ConnectInit lk.salyk.kg [21:00:03]written 0, free lines is 4095 [21:00:04]Connected sock=10 [21:00: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 34 36 0C 01 00 00 AB 42 04 01 3C CF 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 98 3A 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 8A 01 00 00 F4 03 04 00 53 12 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 13 01 00 35 04 06 00 5D 9D F0 F4 85 31 D6 8E 42 6E D5 A6 94 13 [21:00: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 34 36 4F 00 00 00 08 C6 47 00 60 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 34 36 10 04 04 00 2E 13 01 00 F4 03 04 00 F2 BB 17 67 B6 04 01 00 00 19 2D F7 C9 89 1D E8 0D [21:00:04]CommunicateWithHost err = 0 [21:00:04]CheckOFDResponse [21:00:04]1017 (14) - 77093643461234 [21:00:04]1041 (16) - 0000000000963346 [21:00:04]1040 (4) - 70446 [21:00:04]1012 (4) - 22.10.2024 14:51 [21:00:04]1206 (1) - 0 [21:00:04]OFD Sender: Remove packet 70446 [21:00:04]ProducePacketName [21:00:04]name=ofd_packets/00070446 [21:00:04]NVStorageDeleteData [21:00:04]Write to MH i2c: 01 00 00 69 2B 94 [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 07 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 E5 0C 8C [21:00:04]RasterBufferAndPrint [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]written 0, free lines is 3308 [21:00:04]MH_Cut [21:00:04]Write to MH i2c: D1 01 00 70 2B 01 6D [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 01 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 01 00 70 2B 00 6C [21:00:04]Write to MH i2c: 01 00 00 71 2B 9C [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]OFD Sender: No OFD packet to send [21:00:05]*** Cut start [21:00:05]*** Partial cut [21:00:05]*** CUTSNS_PIN = 1 [21:00:05]*** CUTSNS_PIN = 0 [21:00:05]*** Brake cut motor [21:00:05]Read from MH i2c: 01 [21:00:05]MH_I2C_Read... [21:00:05]*** Stop cut motor [21:00:05]*** Cut end [21:00:05]Read from MH i2c: 01 07 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 07 00 71 2B 00 00 00 00 00 FF 0F B1 [21:00:05]process_action close_receipt done [21:00:05]requested_data is exist [21:00:05]produce_requested_data [21:00:05]requested_item fm.sn is exist - process it [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 11 00 00 [21:00:05]Write to MH i2c: E2 08 00 72 2B 80 11 00 00 00 00 00 00 17 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 72 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [21:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:00:05]wFMCommunicate OK [21:00:05]requested_item fd.num is exist - process it [21:00:05]SAM_PROTO_GetFieldsCounters [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 13 00 00 [21:00:05]Write to MH i2c: E2 08 00 73 2B 80 13 00 00 00 00 00 00 1A [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 62 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [21:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_GetFieldsCounters done [21:00:05]requested_item shift.num is exist - process it [21:00:05]requested_item shift.opened is exist - process it [21:00:05]req_shift_opened [21:00:05]FM_GetShiftState [21:00:05]SAM_PROTO_GetShiftState [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 13 01 00 [21:00:05]Write to MH i2c: E2 08 00 74 2B 80 13 01 00 00 00 00 00 1C [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 74 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0A [21:00:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_GetShiftState done [21:00:05]FM_GetShiftState done [21:00:05]req_shift_opened done [21:00:05]requested_item shift.open_date is exist - process it [21:00:05]req_shift_open_date [21:00:05]req_shift_open_date done [21:00:05]produce_requested_data done [21:00:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70446,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:00:05]process_action_free close_receipt [21:00:05]json_value_free [21:00:05]json_value_free done [21:00:05]process_json_proto returns [21:00:05]Send response to host [21:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70446,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:00:05]free response buf [21:00:05]execute_script done [21:00:05]execute_script returns [21:00:05]free content buf [21:00:05]Sock 7.Close socket [21:00:05]Sock 7.Thread stoped [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [21:06:52]New connection [21:06:52]New thread 3066699108 created [21:06:52]Thread 3066555748 joined [21:06:52]Waiting for new connection... [21:06:52] Sock 9.Parse request [21:06:52]Sock 9.Check first char [21:06:52]Sock 9.First char is OK [21:06:52]request: POST /json_proto HTTP/1.0 [21:06:52]Method: POST [21:06:52]URL: /json_proto [21:06:52]Method is POST - this is cgi request [21:06:52]url: /json_proto [21:06:52]query_string will be loaded in cgi processing [21:06:52]execute_cgi json_proto POST (null) [21:06:52]execute_cgi path=json_proto method=POST [21:06:52]POST find Content-Length [21:06:52]Host: 172.17.50.3:8080 [21:06:52]Content-Length: 801 [21:06:52]Content-Type: application/json [21:06:52] [21:06:52]POST finish read [21:06:52]Found Content-Length = 801 [21:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4220994", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:52]execute_script... [21:06: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)2886217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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\u000A4220994", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:52]POST & json_proto [21:06:52]process_json_proto [21:06:52]json parsed OK: [21:06:52]protocol is kg_v1.0 [21:06:52]action value=close_receipt [21:06:52]process_action close_receipt [21:06:52]cmd_close_receipt [21:06:52]MH_GetDate [21:06:52]Write to MH i2c: F0 00 00 75 2B 8F [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: F0 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: F0 09 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: F0 09 00 75 2B 00 ED 13 18 67 6B 98 1E 66 9E [21:06:52]GetLastDocTimeStamp 1729630803 [21:06:52]current date 1729631213 [21:06:52]FM_GetShiftState [21:06:52]SAM_PROTO_GetShiftState [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 13 01 00 [21:06:52]Write to MH i2c: E2 08 00 76 2B 80 13 01 00 00 00 00 00 1E [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0E 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0E 00 76 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0C [21:06:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_GetShiftState done [21:06:52]FM_GetShiftState done [21:06:52]opened in 1729555832 [21:06:52]opened+sec_in_day 1729642232 [21:06:52]quantity*price = 0 [21:06:52]sum+1 = 1 [21:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 395 22.10.2024 21:06 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4220994 ФМ: 0000000000963346 ФД: 70447 ФПД: 138224274173211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70447&fm=138224274173211&tin=02508201610067®Number=0000000000156251&sum=0 [21:06:53]StoreToDocumentArchive [21:06:53]shift 195 fd 70447 [21:06:53]save to /storage/0195/doc_00070447 [21:06:53]save last doc name /storage/0195/doc_00070447 to /storage/kkm_last_doc_name [21:06:53]save OK [21:06:53]Clear old archive folders... [21:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:53]tlvbuf is 00CA7220 [21:06:53]SAM_PROTO_ClearQueue [21:06:53]wFMCommunicate request_size=4 [21:06:53]MH_SAM_APDU [21:06:53]CAPDU: 80 09 00 00 [21:06:53]Write to MH i2c: E2 08 00 83 2B 80 09 00 00 00 00 00 00 20 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:53]Read from MH i2c: E2 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 83 2B 00 90 00 22 [21:06:53]RAPDU: 90 00 [21:06:53]wFMCommunicate OK [21:06:53]SAM_PROTO_ClearQueue done [21:06:53]KKMCreateOFDPacket [21:06:53]OFDProtocolAddRootSTLVToBuf [21:06:53]FM_MakeSignedData [21:06:53]FM_MakeSignedData [21:06:53]SAM_PROTO_SignData [21:06:53]wFMCommunicate request_size=4 [21:06:53]MH_SAM_APDU [21:06:53]CAPDU: 80 0D 01 02 [21:06:53]Write to MH i2c: E2 08 00 84 2B 80 0D 01 02 00 00 00 00 28 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:53]Read from MH i2c: E2 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [21:06:53]RAPDU: 90 00 [21:06:53]wFMCommunicate OK [21:06:53]wFMCommunicate request_size=255 [21:06:53]MH_SAM_APDU [21:06: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 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 8B 01 00 00 F4 03 04 00 ED 13 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 13 01 00 35 04 06 00 7D [21:06:53]Write to MH i2c: E2 02 01 85 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 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 8B 01 00 00 F4 03 04 00 ED 13 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 13 01 00 35 04 06 00 7D 00 00 F1 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:53]Read from MH i2c: E2 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: E2 03 00 85 2B 00 90 00 24 [21:06:53]RAPDU: 90 00 [21:06:53]wFMCommunicate OK [21:06:53]wFMCommunicate request_size=10 [21:06:53]MH_SAM_APDU [21:06:53]CAPDU: 80 0D 02 02 05 B6 D8 C2 ED 1B [21:06:53]Write to MH i2c: E2 0D 00 86 2B 80 0D 02 02 05 00 B6 D8 C2 ED 1B 00 00 8D [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:54]Read from MH i2c: E2 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 03 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [21:06:54]RAPDU: 90 00 [21:06:54]wFMCommunicate OK [21:06:54]wFMCommunicate request_size=4 [21:06:54]MH_SAM_APDU [21:06:54]CAPDU: 80 0D 03 02 [21:06:54]Write to MH i2c: E2 08 00 87 2B 80 0D 03 02 00 00 00 00 2D [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:54]Read from MH i2c: E2 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 0B 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 0B 00 87 2B 00 86 CC B3 16 DE 72 2E BF 90 00 86 [21:06:54]RAPDU: 86 CC B3 16 DE 72 2E BF 90 00 [21:06:54]wFMCommunicate OK [21:06:54]SAM_PROTO_SignData done [21:06:54]FM_MakeSignedData done [21:06:54]CreateOFDProtocolMessage [21:06:54]wFMCommunicate request_size=4 [21:06:54]MH_SAM_APDU [21:06:54]CAPDU: 80 11 00 00 [21:06:54]Write to MH i2c: E2 08 00 88 2B 80 11 00 00 00 00 00 00 2D [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:54]Read from MH i2c: E2 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 17 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 17 00 88 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [21:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:06:54]wFMCommunicate OK [21:06:54]CreateOFDProtocolMessage done [21:06:54]OFDSenderStorePacket 70447 [21:06:54]StoreOFDPacket docnum=70447 [21:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BD 3D 07 01 E7 46 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 8B 01 00 00 F4 03 04 00 ED 13 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 13 01 00 35 04 06 00 7D B6 D8 C2 ED 1B 86 CC B3 16 DE 72 2E BF [21:06:54]CheckFolder [21:06:54]dirname=/storage/ofd_packets [21:06:54]CheckFolder done [21:06:54]ProducePacketName [21:06:54]name=ofd_packets/00070447 [21:06:54]NVStorageSaveData ofd_packets/00070447 [21:06:54]File name is /storage/ofd_packets/00070447 [21:06:54]Write 301 bytes [21:06:54]NVStorageSaveData done [21:06:54]OFDSenderStorePacket done [21:06:54]KKMCreateOFDPacket done [21:06:54]NVStorageSaveData kkm_last_timestamp [21:06:54]File name is /storage/kkm_last_timestamp [21:06:54]Write 4 bytes [21:06:54]NVStorageSaveData done [21:06:54]ExternCall_PrintAddStr [21:06:54]wPrintStart [21:06:54]Write to MH i2c: 01 00 00 89 2B B4 [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 07 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 07 00 89 2B 00 00 00 00 00 FF 0F C9 [21:06:54]RasterBufferAndPrint [21:06:54]line Счет N : (1)2886217 [21:06:54]line ИНН: 02508201610067 [21:06:54]line Контрольно-Кассовый Чек [21:06:54]line ПРОДАЖА [21:06:54]line ТРК (МРК, ГНК) : 42 [21:06:54]line Товар: 2710124130 [21:06:54]line Аи-92-К-5 [21:06:54]line 10.000 * 0.00 [21:06:54]line = 0.00 [21:06:54]line НДС 12% НСП 1% [21:06:54]line > о реализуемом товаре [21:06:54]line ИТОГО: 0.00 [21:06:54]line НСП 1% : 0.00 [21:06:54]line НДС 12% : 0.00 [21:06:54]line Наличными: 0.00 [21:06:54]line Безнал.: 0.00 [21:06:54]line Место: АЗС № 85 "Партнер Нефть" [21:06:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:06:54]line СНО: Общий режим [21:06:54]line Чек 395 22.10.2024 21:06 [21:06:54]line Смена: 195 ФФД: 1.0 [21:06:54]line ЗНМ: 0300000167 [21:06:54]line РНМ: 0000000000156251 [21:06:54]line Версия ККМ: v1.0 [21:06:54]line Талоны: Топливные Талоны [21:06:54]line 4220994 [21:06:54]line ФМ: 0000000000963346 [21:06:54]line ФД: 70447 [21:06:54]line ФПД: 138224274173211 [21:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70447&fm=138224274173211&tin=02508201610067®Number=0000000000156251&sum=0 [21:06:54]OFD Sender: Processing packet 70447 [packets to send 18, broken 17] [21:06:54]ProducePacketName [21:06:54]name=ofd_packets/00070447 [21:06:54]OFD Sender: To server: pG, [21:06:54]CommunicateWithHost lk.salyk.kg:30040 [21:06:54]ConnectInit lk.salyk.kg [21:06:54]written 0, free lines is 4095 [21:06:54]Connected sock=10 [21:06: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 34 36 0F 01 00 00 BD 3D 07 01 E7 46 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 8B 01 00 00 F4 03 04 00 ED 13 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 13 01 00 35 04 06 00 7D B6 D8 C2 ED 1B 86 CC B3 16 DE 72 2E BF [21:06:54]Write to MH i2c: 01 00 00 B3 2B DE [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 07 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 07 00 B3 2B 00 00 00 00 00 FD 0C EE [21:06:54]RasterBufferAndPrint [21:06:54]line [21:06:54]line [21:06:54]line [21:06:54]line [21:06:54]line [21:06:54]written 0, free lines is 3331 [21:06:54]MH_Cut [21:06:54]Write to MH i2c: D1 01 00 BA 2B 01 B7 [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: D1 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: D1 01 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: D1 01 00 BA 2B 00 B6 [21:06:54]Write to MH i2c: 01 00 00 BB 2B E6 [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06: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 34 36 4F 00 00 00 AC 83 47 00 E3 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 13 01 00 F4 03 04 00 8D BD 17 67 B6 04 01 00 00 7C 55 46 C1 D1 CB C3 CF [21:06:54]CommunicateWithHost err = 0 [21:06:54]CheckOFDResponse [21:06:54]1017 (14) - 77093643461234 [21:06:54]1041 (16) - 0000000000963346 [21:06:54]1040 (4) - 70447 [21:06:54]1012 (4) - 22.10.2024 14:58 [21:06:54]1206 (1) - 0 [21:06:54]OFD Sender: Remove packet 70447 [21:06:54]ProducePacketName [21:06:54]name=ofd_packets/00070447 [21:06:54]NVStorageDeleteData [21:06:55]OFD Sender: No OFD packet to send [21:06:55]*** Cut start [21:06:55]*** Partial cut [21:06:55]*** CUTSNS_PIN = 1 [21:06:55]*** CUTSNS_PIN = 0 [21:06:55]*** Brake cut motor [21:06:56]Read from MH i2c: 01 [21:06:56]MH_I2C_Read... [21:06:56]*** Stop cut motor [21:06:56]*** Cut end [21:06:56]Read from MH i2c: 01 07 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: 01 07 00 BB 2B 00 00 00 00 00 FF 0F FB [21:06:56]process_action close_receipt done [21:06:56]requested_data is exist [21:06:56]produce_requested_data [21:06:56]requested_item fm.sn is exist - process it [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 11 00 00 [21:06:56]Write to MH i2c: E2 08 00 BC 2B 80 11 00 00 00 00 00 00 61 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 17 00 BC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [21:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:06:56]wFMCommunicate OK [21:06:56]requested_item fd.num is exist - process it [21:06:56]SAM_PROTO_GetFieldsCounters [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 13 00 00 [21:06:56]Write to MH i2c: E2 08 00 BD 2B 80 13 00 00 00 00 00 00 64 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 62 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 62 00 BD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_GetFieldsCounters done [21:06:56]requested_item shift.num is exist - process it [21:06:56]requested_item shift.opened is exist - process it [21:06:56]req_shift_opened [21:06:56]FM_GetShiftState [21:06:56]SAM_PROTO_GetShiftState [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 13 01 00 [21:06:56]Write to MH i2c: E2 08 00 BE 2B 80 13 01 00 00 00 00 00 66 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0E 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0E 00 BE 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 54 [21:06:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_GetShiftState done [21:06:56]FM_GetShiftState done [21:06:56]req_shift_opened done [21:06:56]requested_item shift.open_date is exist - process it [21:06:56]req_shift_open_date [21:06:56]req_shift_open_date done [21:06:56]produce_requested_data done [21:06:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70447,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:06:56]process_action_free close_receipt [21:06:56]json_value_free [21:06:56]json_value_free done [21:06:56]process_json_proto returns [21:06:56]Send response to host [21:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70447,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:06:56]free response buf [21:06:56]execute_script done [21:06:56]execute_script returns [21:06:56]free content buf [21:06:56]Sock 9.Close socket [21:06:56]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [21:07:33]accept exits with 7 [21:07:33]New connection [21:07:33]New thread 3066555748 created [21:07:33]Thread 3066699108 joined [21:07:33]Waiting for new connection... [21:07:33] Sock 7.Parse request [21:07:33]Sock 7.Check first char [21:07:33]Sock 7.First char is OK [21:07:33]request: POST /json_proto HTTP/1.0 [21:07:33]Method: POST [21:07:33]URL: /json_proto [21:07:33]Method is POST - this is cgi request [21:07:33]url: /json_proto [21:07:33]query_string will be loaded in cgi processing [21:07:33]execute_cgi json_proto POST (null) [21:07:33]execute_cgi path=json_proto method=POST [21:07:33]POST find Content-Length [21:07:33]Host: 172.17.50.3:8080 [21:07:33]Content-Length: 686 [21:07:33]Content-Type: application/json [21:07:33] [21:07:33]POST finish read [21:07:33]Found Content-Length = 686 [21:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.760, "sum" : 1624.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1624.00, "payments": [ { "type": 0, "sum" : 1624.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:33]execute_script... [21:07: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)2886216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.760, "sum" : 1624.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1624.00, "payments": [ { "type": 0, "sum" : 1624.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:33]POST & json_proto [21:07:33]process_json_proto [21:07:33]json parsed OK: [21:07:33]protocol is kg_v1.0 [21:07:33]action value=close_receipt [21:07:33]process_action close_receipt [21:07:33]cmd_close_receipt [21:07:33]MH_GetDate [21:07:33]Write to MH i2c: F0 00 00 BF 2B D9 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 09 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 09 00 BF 2B 00 16 14 18 67 6B 98 1E 66 12 [21:07:33]GetLastDocTimeStamp 1729631213 [21:07:33]current date 1729631254 [21:07:33]FM_GetShiftState [21:07:33]SAM_PROTO_GetShiftState [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 13 01 00 [21:07:33]Write to MH i2c: E2 08 00 C0 2B 80 13 01 00 00 00 00 00 68 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0E 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0E 00 C0 2B 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 56 [21:07:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:07:33]wFMCommunicate OK [21:07:33]SAM_PROTO_GetShiftState done [21:07:33]FM_GetShiftState done [21:07:33]opened in 1729555832 [21:07:33]opened+sec_in_day 1729642232 [21:07:33]quantity*price = 162446 [21:07:33]sum+1 = 162447 [21:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1624.00 Внесено: 2000.00 СДАЧА: 376.00 НСП 1% : 14.38 НДС 12% : 172.51 Наличными: 1624.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 396 22.10.2024 21:07 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70448 ФПД: 274286962234698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70448&fm=274286962234698&tin=02508201610067®Number=0000000000156251&sum=162400 [21:07:34]StoreToDocumentArchive [21:07:34]shift 195 fd 70448 [21:07:34]save to /storage/0195/doc_00070448 [21:07:34]save last doc name /storage/0195/doc_00070448 to /storage/kkm_last_doc_name [21:07:34]save OK [21:07:34]Clear old archive folders... [21:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:07:34]tlvbuf is 00B521E0 [21:07:34]SAM_PROTO_ClearQueue [21:07:34]wFMCommunicate request_size=4 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 09 00 00 [21:07:34]Write to MH i2c: E2 08 00 CD 2B 80 09 00 00 00 00 00 00 6A [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 03 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 03 00 CD 2B 00 90 00 6C [21:07:34]RAPDU: 90 00 [21:07:34]wFMCommunicate OK [21:07:34]SAM_PROTO_ClearQueue done [21:07:34]KKMCreateOFDPacket [21:07:34]OFDProtocolAddRootSTLVToBuf [21:07:34]FM_MakeSignedData [21:07:34]FM_MakeSignedData [21:07:34]SAM_PROTO_SignData [21:07:34]wFMCommunicate request_size=4 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 0D 01 02 [21:07:34]Write to MH i2c: E2 08 00 CE 2B 80 0D 01 02 00 00 00 00 72 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 03 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [21:07:34]RAPDU: 90 00 [21:07:34]wFMCommunicate OK [21:07:34]wFMCommunicate request_size=255 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 20 A3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8E 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 43 00 00 00 00 07 04 06 00 60 7A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 16 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 13 01 00 35 04 06 00 F9 76 [21:07:34]Write to MH i2c: E2 02 01 CF 2B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 20 A3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8E 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 43 00 00 00 00 07 04 06 00 60 7A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 16 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 13 01 00 35 04 06 00 F9 76 00 00 DF [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=9 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 02 02 04 68 F3 55 4A [21:07:35]Write to MH i2c: E2 0C 00 D0 2B 80 0D 02 02 04 00 68 F3 55 4A 00 00 77 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 03 02 [21:07:35]Write to MH i2c: E2 08 00 D1 2B 80 0D 03 02 00 00 00 00 77 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0B 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0B 00 D1 2B 00 1C 04 11 AB BF 4E BD 61 90 00 7F [21:07:35]RAPDU: 1C 04 11 AB BF 4E BD 61 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_SignData done [21:07:35]FM_MakeSignedData done [21:07:35]CreateOFDProtocolMessage [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 11 00 00 [21:07:35]Write to MH i2c: E2 08 00 D2 2B 80 11 00 00 00 00 00 00 77 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 17 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 17 00 D2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [21:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:35]wFMCommunicate OK [21:07:35]CreateOFDProtocolMessage done [21:07:35]OFDSenderStorePacket 70448 [21:07:35]StoreOFDPacket docnum=70448 [21:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D7 BE 06 01 E6 0A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 20 A3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8E 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 43 00 00 00 00 07 04 06 00 60 7A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 16 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 13 01 00 35 04 06 00 F9 76 68 F3 55 4A 1C 04 11 AB BF 4E BD 61 [21:07:35]CheckFolder [21:07:35]dirname=/storage/ofd_packets [21:07:35]CheckFolder done [21:07:35]ProducePacketName [21:07:35]name=ofd_packets/00070448 [21:07:35]NVStorageSaveData ofd_packets/00070448 [21:07:35]File name is /storage/ofd_packets/00070448 [21:07:35]Write 300 bytes [21:07:35]NVStorageSaveData done [21:07:35]OFDSenderStorePacket done [21:07:35]KKMCreateOFDPacket done [21:07:35]NVStorageSaveData kkm_last_timestamp [21:07:35]File name is /storage/kkm_last_timestamp [21:07:35]Write 4 bytes [21:07:35]NVStorageSaveData done [21:07:35]ExternCall_PrintAddStr [21:07:35]wPrintStart [21:07:35]Write to MH i2c: 01 00 00 D3 2B FE [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 D3 2B 00 00 00 00 00 FF 0F 13 [21:07:35]RasterBufferAndPrint [21:07:35]line Счет N : (1)2886216 [21:07:35]line ИНН: 02508201610067 [21:07:35]line Контрольно-Кассовый Чек [21:07:35]line ПРОДАЖА [21:07:35]line ТРК (МРК, ГНК) : 71 [21:07:35]line Товар: 2711129700 [21:07:35]line ГАЗ-К-3 [21:07:35]line 41.760 * 38.90 [21:07:35]line = 1624.46 [21:07:35]line НДС 12% НСП 1% [21:07:35]line > о реализуемом товаре [21:07:35]line ОКРУГЛЕНИЕ: -0.46 [21:07:35]line ИТОГО: 1624.00 [21:07:35]line Внесено: 2000.00 [21:07:35]line СДАЧА: 376.00 [21:07:35]line НСП 1% : 14.38 [21:07:35]line НДС 12% : 172.51 [21:07:35]line Наличными: 1624.00 [21:07:35]line Безнал.: 0.00 [21:07:35]line Место: АЗС № 85 "Партнер Нефть" [21:07:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:07:35]line СНО: Общий режим [21:07:35]line Чек 396 22.10.2024 21:07 [21:07:35]line Смена: 195 ФФД: 1.0 [21:07:35]line ЗНМ: 0300000167 [21:07:35]line РНМ: 0000000000156251 [21:07:35]line Версия ККМ: v1.0 [21:07:35]line ФМ: 0000000000963346 [21:07:35]line ФД: 70448 [21:07:35]line ФПД: 274286962234698 [21:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70448&fm=274286962234698&tin=02508201610067®Number=0000000000156251&sum=162400 [21:07:35]written 0, free lines is 4095 [21:07:35]OFD Sender: Processing packet 70448 [packets to send 18, broken 17] [21:07:35]ProducePacketName [21:07:35]name=ofd_packets/00070448 [21:07:35]OFD Sender: To server: pG, [21:07:35]CommunicateWithHost lk.salyk.kg:30040 [21:07:35]ConnectInit lk.salyk.kg [21:07:35]Connected sock=11 [21:07: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 34 36 0E 01 00 00 D7 BE 06 01 E6 0A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 20 A3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8E 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 43 00 00 00 00 07 04 06 00 60 7A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 16 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 13 01 00 35 04 06 00 F9 76 68 F3 55 4A 1C 04 11 AB BF 4E BD 61 [21:07: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 34 36 4F 00 00 00 16 2D 47 00 FC 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 34 36 10 04 04 00 30 13 01 00 F4 03 04 00 B6 BD 17 67 B6 04 01 00 00 00 70 60 3D DD E5 A5 27 [21:07:35]CommunicateWithHost err = 0 [21:07:35]CheckOFDResponse [21:07:35]1017 (14) - 77093643461234 [21:07:35]1041 (16) - 0000000000963346 [21:07:35]1040 (4) - 70448 [21:07:35]1012 (4) - 22.10.2024 14:59 [21:07:35]1206 (1) - 0 [21:07:35]OFD Sender: Remove packet 70448 [21:07:35]ProducePacketName [21:07:35]name=ofd_packets/00070448 [21:07:35]NVStorageDeleteData [21:07:35]Write to MH i2c: 01 00 00 FE 2B 29 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 FE 2B 00 00 00 00 00 02 0D 3F [21:07:35]RasterBufferAndPrint [21:07:35]line [21:07:35]line [21:07:35]line [21:07:35]line [21:07:35]line [21:07:35]written 0, free lines is 3342 [21:07:35]MH_Cut [21:07:35]Write to MH i2c: D1 01 00 05 2C 01 03 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: D1 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: D1 01 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: D1 01 00 05 2C 00 02 [21:07:35]Write to MH i2c: 01 00 00 06 2C 32 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:36]OFD Sender: No OFD packet to send [21:07:36]*** Cut start [21:07:36]*** Partial cut [21:07:36]*** CUTSNS_PIN = 1 [21:07:36]*** CUTSNS_PIN = 0 [21:07:36]*** Brake cut motor [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]*** Stop cut motor [21:07:37]*** Cut end [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 06 2C 00 00 00 00 00 FF 0F 47 [21:07:37]process_action close_receipt done [21:07:37]requested_data is exist [21:07:37]produce_requested_data [21:07:37]requested_item fm.sn is exist - process it [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 11 00 00 [21:07:37]Write to MH i2c: E2 08 00 07 2C 80 11 00 00 00 00 00 00 AD [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 07 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [21:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:37]wFMCommunicate OK [21:07:37]requested_item fd.num is exist - process it [21:07:37]SAM_PROTO_GetFieldsCounters [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 00 00 [21:07:37]Write to MH i2c: E2 08 00 08 2C 80 13 00 00 00 00 00 00 B0 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 08 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetFieldsCounters done [21:07:37]requested_item shift.num is exist - process it [21:07:37]requested_item shift.opened is exist - process it [21:07:37]req_shift_opened [21:07:37]FM_GetShiftState [21:07:37]SAM_PROTO_GetShiftState [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 01 00 [21:07:37]Write to MH i2c: E2 08 00 09 2C 80 13 01 00 00 00 00 00 B2 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 09 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A0 [21:07:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetShiftState done [21:07:37]FM_GetShiftState done [21:07:37]req_shift_opened done [21:07:37]requested_item shift.open_date is exist - process it [21:07:37]req_shift_open_date [21:07:37]req_shift_open_date done [21:07:37]produce_requested_data done [21:07:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70448,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:07:37]process_action_free close_receipt [21:07:37]json_value_free [21:07:37]json_value_free done [21:07:37]process_json_proto returns [21:07:37]Send response to host [21:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70448,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:07:37]free response buf [21:07:37]execute_script done [21:07:37]execute_script returns [21:07:37]free content buf [21:07:37]Sock 7.Close socket [21:07:37]Sock 7.Thread stoped [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:24]accept exits with 10 [21:10:24]New connection [21:10:24]New thread 3066699108 created [21:10:24]Thread 3066555748 joined [21:10:24]Waiting for new connection... [21:10:24] Sock 10.Parse request [21:10:24]Sock 10.Check first char [21:10:24]Sock 10.First char is OK [21:10:24]request: POST /json_proto HTTP/1.0 [21:10:24]Method: POST [21:10:24]URL: /json_proto [21:10:24]Method is POST - this is cgi request [21:10:24]url: /json_proto [21:10:24]query_string will be loaded in cgi processing [21:10:24]execute_cgi json_proto POST (null) [21:10:24]execute_cgi path=json_proto method=POST [21:10:24]POST find Content-Length [21:10:24]Host: 172.17.50.3:8080 [21:10:24]Content-Length: 689 [21:10:24]Content-Type: application/json [21:10:24] [21:10:24]POST finish read [21:10:24]Found Content-Length = 689 [21:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:24]execute_script... [21:10: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)2886219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:24]POST & json_proto [21:10:24]process_json_proto [21:10:24]json parsed OK: [21:10:24]protocol is kg_v1.0 [21:10:24]action value=close_receipt [21:10:24]process_action close_receipt [21:10:24]cmd_close_receipt [21:10:24]MH_GetDate [21:10:24]Write to MH i2c: F0 00 00 0A 2C 25 [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: F0 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: F0 09 00 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: F0 09 00 0A 2C 00 C2 14 18 67 6B 98 1E 66 0A [21:10:24]GetLastDocTimeStamp 1729631254 [21:10:24]current date 1729631426 [21:10:24]FM_GetShiftState [21:10:24]SAM_PROTO_GetShiftState [21:10:24]wFMCommunicate request_size=4 [21:10:24]MH_SAM_APDU [21:10:24]CAPDU: 80 13 01 00 [21:10:24]Write to MH i2c: E2 08 00 0B 2C 80 13 01 00 00 00 00 00 B4 [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: E2 [21:10:24]MH_I2C_Read... [21:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:24]Read from MH i2c: E2 0E 00 [21:10:24]MH_I2C_Read... [21:10:25]Read from MH i2c: E2 0E 00 0B 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A2 [21:10:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:10:25]wFMCommunicate OK [21:10:25]SAM_PROTO_GetShiftState done [21:10:25]FM_GetShiftState done [21:10:25]opened in 1729555832 [21:10:25]opened+sec_in_day 1729642232 [21:10:25]quantity*price = 140040 [21:10:25]sum+1 = 140042 [21:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 397 22.10.2024 21:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70449 ФПД: 27293081455757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70449&fm=27293081455757&tin=02508201610067®Number=0000000000156251&sum=140000 [21:10:26]StoreToDocumentArchive [21:10:26]shift 195 fd 70449 [21:10:26]save to /storage/0195/doc_00070449 [21:10:26]save last doc name /storage/0195/doc_00070449 to /storage/kkm_last_doc_name [21:10:26]save OK [21:10:26]Clear old archive folders... [21:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:10:26]tlvbuf is B6E83980 [21:10:26]SAM_PROTO_ClearQueue [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 09 00 00 [21:10:26]Write to MH i2c: E2 08 00 18 2C 80 09 00 00 00 00 00 00 B6 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 18 2C 00 90 00 B8 [21:10:26]RAPDU: 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_ClearQueue done [21:10:26]KKMCreateOFDPacket [21:10:26]OFDProtocolAddRootSTLVToBuf [21:10:26]FM_MakeSignedData [21:10:26]FM_MakeSignedData [21:10:26]SAM_PROTO_SignData [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 0D 01 02 [21:10:26]Write to MH i2c: E2 08 00 19 2C 80 0D 01 02 00 00 00 00 BE [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [21:10:26]RAPDU: 90 00 [21:10:26]wFMCommunicate OK [21:10:26]wFMCommunicate request_size=255 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 C2 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 13 01 [21:10:26]Write to MH i2c: E2 02 01 1A 2C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 C2 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 13 01 00 00 E4 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]OFD Sender: No OFD packet to send [21:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [21:10:26]RAPDU: 90 00 [21:10:26]wFMCommunicate OK [21:10:26]wFMCommunicate request_size=16 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 D2 AA 6C CC 8D [21:10:26]Write to MH i2c: E2 13 00 1B 2C 80 0D 02 02 0B 00 00 35 04 06 00 18 D2 AA 6C CC 8D 00 00 6F [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [21:10:26]RAPDU: 90 00 [21:10:26]wFMCommunicate OK [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 0D 03 02 [21:10:26]Write to MH i2c: E2 08 00 1C 2C 80 0D 03 02 00 00 00 00 C3 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0B 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0B 00 1C 2C 00 8D 5A C3 AE 6A AB 2B 7B 90 00 D7 [21:10:26]RAPDU: 8D 5A C3 AE 6A AB 2B 7B 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_SignData done [21:10:26]FM_MakeSignedData done [21:10:26]CreateOFDProtocolMessage [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 11 00 00 [21:10:26]Write to MH i2c: E2 08 00 1D 2C 80 11 00 00 00 00 00 00 C3 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 17 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 17 00 1D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [21:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:10:26]wFMCommunicate OK [21:10:26]CreateOFDProtocolMessage done [21:10:26]OFDSenderStorePacket 70449 [21:10:26]StoreOFDPacket docnum=70449 [21:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 FC F5 0D 01 74 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 C2 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 13 01 00 35 04 06 00 18 D2 AA 6C CC 8D 8D 5A C3 AE 6A AB 2B 7B [21:10:26]CheckFolder [21:10:26]dirname=/storage/ofd_packets [21:10:26]CheckFolder done [21:10:26]ProducePacketName [21:10:26]name=ofd_packets/00070449 [21:10:26]NVStorageSaveData ofd_packets/00070449 [21:10:26]File name is /storage/ofd_packets/00070449 [21:10:26]Write 307 bytes [21:10:26]NVStorageSaveData done [21:10:26]OFDSenderStorePacket done [21:10:26]KKMCreateOFDPacket done [21:10:26]NVStorageSaveData kkm_last_timestamp [21:10:26]File name is /storage/kkm_last_timestamp [21:10:26]Write 4 bytes [21:10:26]NVStorageSaveData done [21:10:26]ExternCall_PrintAddStr [21:10:26]wPrintStart [21:10:26]Write to MH i2c: 01 00 00 1E 2C 4A [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: 01 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: 01 07 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: 01 07 00 1E 2C 00 00 00 00 00 FF 0F 5F [21:10:26]RasterBufferAndPrint [21:10:26]line Счет N : (1)2886219 [21:10:26]line ИНН: 02508201610067 [21:10:26]line Контрольно-Кассовый Чек [21:10:26]line ПРОДАЖА [21:10:26]line ТРК (МРК, ГНК) : 31 [21:10:26]line Товар: 2710194240 [21:10:26]line D-ENERGY Дт-К-2 [21:10:26]line 18.140 * 77.20 [21:10:26]line = 1400.41 [21:10:26]line НДС 12% НСП 1% [21:10:26]line > о реализуемом товаре [21:10:26]line ОКРУГЛЕНИЕ: -0.41 [21:10:26]line ИТОГО: 1400.00 [21:10:26]line Внесено: 1400.00 [21:10:26]line СДАЧА: 0.00 [21:10:26]line НСП 1% : 12.39 [21:10:26]line НДС 12% : 148.72 [21:10:26]line Наличными: 1400.00 [21:10:26]line Безнал.: 0.00 [21:10:26]line Место: АЗС № 85 "Партнер Нефть" [21:10:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:10:26]line СНО: Общий режим [21:10:26]line Чек 397 22.10.2024 21:10 [21:10:26]line Смена: 195 ФФД: 1.0 [21:10:26]line ЗНМ: 0300000167 [21:10:26]line РНМ: 0000000000156251 [21:10:26]line Версия ККМ: v1.0 [21:10:26]line ФМ: 0000000000963346 [21:10:26]line ФД: 70449 [21:10:26]line ФПД: 27293081455757 [21:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70449&fm=27293081455757&tin=02508201610067®Number=0000000000156251&sum=140000 [21:10:26]written 0, free lines is 4095 [21:10:26]OFD Sender: Processing packet 70449 [packets to send 18, broken 17] [21:10:26]ProducePacketName [21:10:26]name=ofd_packets/00070449 [21:10:26]OFD Sender: To server: pG, [21:10:26]CommunicateWithHost lk.salyk.kg:30040 [21:10:26]ConnectInit lk.salyk.kg [21:10:26]Connected sock=9 [21:10: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 34 36 15 01 00 00 FC F5 0D 01 74 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 C2 14 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 13 01 00 35 04 06 00 18 D2 AA 6C CC 8D 8D 5A C3 AE 6A AB 2B 7B [21:10: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 34 36 4F 00 00 00 2D B0 47 00 54 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 34 36 10 04 04 00 31 13 01 00 F4 03 04 00 61 BE 17 67 B6 04 01 00 00 22 26 1F EE 22 64 92 87 [21:10:27]CommunicateWithHost err = 0 [21:10:27]CheckOFDResponse [21:10:27]1017 (14) - 77093643461234 [21:10:27]1041 (16) - 0000000000963346 [21:10:27]1040 (4) - 70449 [21:10:27]1012 (4) - 22.10.2024 15:01 [21:10:27]1206 (1) - 0 [21:10:27]OFD Sender: Remove packet 70449 [21:10:27]ProducePacketName [21:10:27]name=ofd_packets/00070449 [21:10:27]NVStorageDeleteData [21:10:27]Write to MH i2c: 01 00 00 49 2C 75 [21:10:27]Write i2c OK [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: 01 [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: 01 07 00 [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: 01 07 00 49 2C 00 00 00 00 00 FF 0C 87 [21:10:27]RasterBufferAndPrint [21:10:27]line [21:10:27]line [21:10:27]line [21:10:27]line [21:10:27]line [21:10:27]written 0, free lines is 3340 [21:10:27]MH_Cut [21:10:27]Write to MH i2c: D1 01 00 50 2C 01 4E [21:10:27]Write i2c OK [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: D1 [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: D1 01 00 [21:10:27]MH_I2C_Read... [21:10:27]Read from MH i2c: D1 01 00 50 2C 00 4D [21:10:27]Write to MH i2c: 01 00 00 51 2C 7D [21:10:27]Write i2c OK [21:10:27]MH_I2C_Read... [21:10:27]OFD Sender: No OFD packet to send [21:10:27]*** Cut start [21:10:27]*** Partial cut [21:10:27]*** CUTSNS_PIN = 1 [21:10:27]*** CUTSNS_PIN = 0 [21:10:28]*** Brake cut motor [21:10:28]Read from MH i2c: 01 [21:10:28]MH_I2C_Read... [21:10:28]*** Stop cut motor [21:10:28]*** Cut end [21:10:28]Read from MH i2c: 01 07 00 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: 01 07 00 51 2C 00 00 00 00 00 FF 0F 92 [21:10:28]process_action close_receipt done [21:10:28]requested_data is exist [21:10:28]produce_requested_data [21:10:28]requested_item fm.sn is exist - process it [21:10:28]wFMCommunicate request_size=4 [21:10:28]MH_SAM_APDU [21:10:28]CAPDU: 80 11 00 00 [21:10:28]Write to MH i2c: E2 08 00 52 2C 80 11 00 00 00 00 00 00 F8 [21:10:28]Write i2c OK [21:10:28]MH_I2C_Read... [21:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:28]Read from MH i2c: E2 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 17 00 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 17 00 52 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [21:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:10:28]wFMCommunicate OK [21:10:28]requested_item fd.num is exist - process it [21:10:28]SAM_PROTO_GetFieldsCounters [21:10:28]wFMCommunicate request_size=4 [21:10:28]MH_SAM_APDU [21:10:28]CAPDU: 80 13 00 00 [21:10:28]Write to MH i2c: E2 08 00 53 2C 80 13 00 00 00 00 00 00 FB [21:10:28]Write i2c OK [21:10:28]MH_I2C_Read... [21:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:28]Read from MH i2c: E2 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 62 00 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 62 00 53 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [21:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:28]wFMCommunicate OK [21:10:28]SAM_PROTO_GetFieldsCounters done [21:10:28]requested_item shift.num is exist - process it [21:10:28]requested_item shift.opened is exist - process it [21:10:28]req_shift_opened [21:10:28]FM_GetShiftState [21:10:28]SAM_PROTO_GetShiftState [21:10:28]wFMCommunicate request_size=4 [21:10:28]MH_SAM_APDU [21:10:28]CAPDU: 80 13 01 00 [21:10:28]Write to MH i2c: E2 08 00 54 2C 80 13 01 00 00 00 00 00 FD [21:10:28]Write i2c OK [21:10:28]MH_I2C_Read... [21:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:28]Read from MH i2c: E2 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 0E 00 [21:10:28]MH_I2C_Read... [21:10:28]Read from MH i2c: E2 0E 00 54 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EB [21:10:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:10:28]wFMCommunicate OK [21:10:28]SAM_PROTO_GetShiftState done [21:10:28]FM_GetShiftState done [21:10:28]req_shift_opened done [21:10:28]requested_item shift.open_date is exist - process it [21:10:28]req_shift_open_date [21:10:28]req_shift_open_date done [21:10:28]produce_requested_data done [21:10:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70449,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:10:28]process_action_free close_receipt [21:10:28]json_value_free [21:10:28]json_value_free done [21:10:28]process_json_proto returns [21:10:28]Send response to host [21:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70449,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:10:28]free response buf [21:10:28]execute_script done [21:10:28]execute_script returns [21:10:28]free content buf [21:10:28]Sock 10.Close socket [21:10:28]Sock 10.Thread stoped [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:29]accept exits with 7 [21:11:29]New connection [21:11:29]New thread 3066555748 created [21:11:29]Thread 3066699108 joined [21:11:29]Waiting for new connection... [21:11:29] Sock 7.Parse request [21:11:29]Sock 7.Check first char [21:11:29]Sock 7.First char is OK [21:11:29]request: POST /json_proto HTTP/1.0 [21:11:29]Method: POST [21:11:29]URL: /json_proto [21:11:29]Method is POST - this is cgi request [21:11:29]url: /json_proto [21:11:29]query_string will be loaded in cgi processing [21:11:29]execute_cgi json_proto POST (null) [21:11:29]execute_cgi path=json_proto method=POST [21:11:29]POST find Content-Length [21:11:29]Host: 172.17.50.3:8080 [21:11:29]Content-Length: 682 [21:11:29]Content-Type: application/json [21:11:29] [21:11:29]POST finish read [21:11:29]Found Content-Length = 682 [21:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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" ] } } [21:11:29]execute_script... [21:11: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)2886218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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" ] } } [21:11:29]POST & json_proto [21:11:29]process_json_proto [21:11:29]json parsed OK: [21:11:29]protocol is kg_v1.0 [21:11:29]action value=close_receipt [21:11:29]process_action close_receipt [21:11:29]cmd_close_receipt [21:11:29]MH_GetDate [21:11:29]Write to MH i2c: F0 00 00 55 2C 70 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: F0 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: F0 09 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: F0 09 00 55 2C 00 03 15 18 67 6B 98 1E 66 97 [21:11:29]GetLastDocTimeStamp 1729631426 [21:11:29]current date 1729631491 [21:11:29]FM_GetShiftState [21:11:29]SAM_PROTO_GetShiftState [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 13 01 00 [21:11:29]Write to MH i2c: E2 08 00 56 2C 80 13 01 00 00 00 00 00 FF [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0E 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0E 00 56 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 ED [21:11:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:11:29]wFMCommunicate OK [21:11:29]SAM_PROTO_GetShiftState done [21:11:29]FM_GetShiftState done [21:11:29]opened in 1729555832 [21:11:29]opened+sec_in_day 1729642232 [21:11:29]quantity*price = 60022 [21:11:29]sum+1 = 60024 [21:11:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 398 22.10.2024 21:11 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70450 ФПД: 63434220720587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70450&fm=63434220720587&tin=02508201610067®Number=0000000000156251&sum=60000 [21:11:30]StoreToDocumentArchive [21:11:30]shift 195 fd 70450 [21:11:30]save to /storage/0195/doc_00070450 [21:11:30]save last doc name /storage/0195/doc_00070450 to /storage/kkm_last_doc_name [21:11:31]save OK [21:11:31]Clear old archive folders... [21:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:11:31]tlvbuf is B6E9C350 [21:11:31]SAM_PROTO_ClearQueue [21:11:31]wFMCommunicate request_size=4 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 09 00 00 [21:11:31]Write to MH i2c: E2 08 00 63 2C 80 09 00 00 00 00 00 00 01 [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 63 2C 00 90 00 03 [21:11:31]RAPDU: 90 00 [21:11:31]wFMCommunicate OK [21:11:31]SAM_PROTO_ClearQueue done [21:11:31]KKMCreateOFDPacket [21:11:31]OFDProtocolAddRootSTLVToBuf [21:11:31]FM_MakeSignedData [21:11:31]FM_MakeSignedData [21:11:31]SAM_PROTO_SignData [21:11:31]wFMCommunicate request_size=4 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 0D 01 02 [21:11:31]Write to MH i2c: E2 08 00 64 2C 80 0D 01 02 00 00 00 00 09 [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [21:11:31]RAPDU: 90 00 [21:11:31]wFMCommunicate OK [21:11:31]wFMCommunicate request_size=255 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 8E 01 00 00 F4 03 04 00 03 15 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 13 01 00 35 04 06 00 39 B1 [21:11:31]Write to MH i2c: E2 02 01 65 2C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 8E 01 00 00 F4 03 04 00 03 15 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 13 01 00 35 04 06 00 39 B1 00 00 9F [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [21:11:31]RAPDU: 90 00 [21:11:31]wFMCommunicate OK [21:11:31]wFMCommunicate request_size=9 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 0D 02 02 04 6E 31 51 CB [21:11:31]Write to MH i2c: E2 0C 00 66 2C 80 0D 02 02 04 00 6E 31 51 CB 00 00 CF [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [21:11:31]RAPDU: 90 00 [21:11:31]wFMCommunicate OK [21:11:31]wFMCommunicate request_size=4 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 0D 03 02 [21:11:31]Write to MH i2c: E2 08 00 67 2C 80 0D 03 02 00 00 00 00 0E [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 0B 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 0B 00 67 2C 00 36 CF 04 FB 19 B7 4F FE 90 00 30 [21:11:31]RAPDU: 36 CF 04 FB 19 B7 4F FE 90 00 [21:11:31]wFMCommunicate OK [21:11:31]SAM_PROTO_SignData done [21:11:31]FM_MakeSignedData done [21:11:31]CreateOFDProtocolMessage [21:11:31]wFMCommunicate request_size=4 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 11 00 00 [21:11:31]Write to MH i2c: E2 08 00 68 2C 80 11 00 00 00 00 00 00 0E [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 17 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 17 00 68 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [21:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:11:31]wFMCommunicate OK [21:11:31]CreateOFDProtocolMessage done [21:11:31]OFDSenderStorePacket 70450 [21:11:31]StoreOFDPacket docnum=70450 [21:11:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 ED 90 06 01 9B 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 8E 01 00 00 F4 03 04 00 03 15 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 13 01 00 35 04 06 00 39 B1 6E 31 51 CB 36 CF 04 FB 19 B7 4F FE [21:11:31]CheckFolder [21:11:31]dirname=/storage/ofd_packets [21:11:31]CheckFolder done [21:11:31]ProducePacketName [21:11:31]name=ofd_packets/00070450 [21:11:31]NVStorageSaveData ofd_packets/00070450 [21:11:31]File name is /storage/ofd_packets/00070450 [21:11:31]Write 300 bytes [21:11:31]NVStorageSaveData done [21:11:31]OFDSenderStorePacket done [21:11:31]KKMCreateOFDPacket done [21:11:31]NVStorageSaveData kkm_last_timestamp [21:11:31]File name is /storage/kkm_last_timestamp [21:11:31]Write 4 bytes [21:11:31]NVStorageSaveData done [21:11:31]ExternCall_PrintAddStr [21:11:31]wPrintStart [21:11:31]Write to MH i2c: 01 00 00 69 2C 95 [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: 01 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: 01 07 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: 01 07 00 69 2C 00 00 00 00 00 FF 0F AA [21:11:31]RasterBufferAndPrint [21:11:31]line Счет N : (1)2886218 [21:11:31]line ИНН: 02508201610067 [21:11:31]line Контрольно-Кассовый Чек [21:11:31]line ПРОДАЖА [21:11:31]line ТРК (МРК, ГНК) : 71 [21:11:31]line Товар: 2711129700 [21:11:31]line ГАЗ-К-3 [21:11:31]line 15.430 * 38.90 [21:11:31]line = 600.23 [21:11:31]line НДС 12% НСП 1% [21:11:31]line > о реализуемом товаре [21:11:31]line ОКРУГЛЕНИЕ: -0.23 [21:11:31]line ИТОГО: 600.00 [21:11:31]line Внесено: 600.00 [21:11:31]line СДАЧА: 0.00 [21:11:31]line НСП 1% : 5.31 [21:11:31]line НДС 12% : 63.74 [21:11:31]line Наличными: 600.00 [21:11:31]line Безнал.: 0.00 [21:11:31]line Место: АЗС № 85 "Партнер Нефть" [21:11:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:11:31]line СНО: Общий режим [21:11:31]line Чек 398 22.10.2024 21:11 [21:11:31]line Смена: 195 ФФД: 1.0 [21:11:31]line ЗНМ: 0300000167 [21:11:31]line РНМ: 0000000000156251 [21:11:31]line Версия ККМ: v1.0 [21:11:31]line ФМ: 0000000000963346 [21:11:31]line ФД: 70450 [21:11:31]line ФПД: 63434220720587 [21:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70450&fm=63434220720587&tin=02508201610067®Number=0000000000156251&sum=60000 [21:11:31]OFD Sender: Processing packet 70450 [packets to send 18, broken 17] [21:11:31]ProducePacketName [21:11:31]name=ofd_packets/00070450 [21:11:31]OFD Sender: To server: pG, [21:11:31]CommunicateWithHost lk.salyk.kg:30040 [21:11:31]ConnectInit lk.salyk.kg [21:11:31]written 0, free lines is 4095 [21:11:32]Connected sock=10 [21: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 34 36 0E 01 00 00 ED 90 06 01 9B 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 8E 01 00 00 F4 03 04 00 03 15 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 13 01 00 35 04 06 00 39 B1 6E 31 51 CB 36 CF 04 FB 19 B7 4F FE [21: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 34 36 4F 00 00 00 C8 03 47 00 D2 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 13 01 00 F4 03 04 00 A3 BE 17 67 B6 04 01 00 00 69 3E A1 CF 54 F7 9D AF [21:11:32]CommunicateWithHost err = 0 [21:11:32]CheckOFDResponse [21:11:32]1017 (14) - 77093643461234 [21:11:32]1041 (16) - 0000000000963346 [21:11:32]1040 (4) - 70450 [21:11:32]1012 (4) - 22.10.2024 15:02 [21:11:32]1206 (1) - 0 [21:11:32]OFD Sender: Remove packet 70450 [21:11:32]ProducePacketName [21:11:32]name=ofd_packets/00070450 [21:11:32]NVStorageDeleteData [21:11:32]Write to MH i2c: 01 00 00 94 2C C0 [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: 01 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: 01 07 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: 01 07 00 94 2C 00 00 00 00 00 F9 0C CC [21:11:32]RasterBufferAndPrint [21:11:32]line [21:11:32]line [21:11:32]line [21:11:32]line [21:11:32]line [21:11:32]written 0, free lines is 3330 [21:11:32]MH_Cut [21:11:32]Write to MH i2c: D1 01 00 9B 2C 01 99 [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: D1 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: D1 01 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: D1 01 00 9B 2C 00 98 [21:11:32]Write to MH i2c: 01 00 00 9C 2C C8 [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]OFD Sender: No OFD packet to send [21:11:33]*** Cut start [21:11:33]*** Partial cut [21:11:33]*** CUTSNS_PIN = 1 [21:11:33]*** CUTSNS_PIN = 0 [21:11:33]*** Brake cut motor [21:11:33]Read from MH i2c: 01 [21:11:33]MH_I2C_Read... [21:11:33]*** Stop cut motor [21:11:33]*** Cut end [21:11:33]Read from MH i2c: 01 07 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: 01 07 00 9C 2C 00 00 00 00 00 FF 0F DD [21:11:33]process_action close_receipt done [21:11:33]requested_data is exist [21:11:33]produce_requested_data [21:11:33]requested_item fm.sn is exist - process it [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 11 00 00 [21:11:33]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 17 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [21:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:11:33]wFMCommunicate OK [21:11:33]requested_item fd.num is exist - process it [21:11:33]SAM_PROTO_GetFieldsCounters [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 13 00 00 [21:11:33]Write to MH i2c: E2 08 00 9E 2C 80 13 00 00 00 00 00 00 46 [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 62 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 62 00 9E 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [21:11: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:33]wFMCommunicate OK [21:11:33]SAM_PROTO_GetFieldsCounters done [21:11:33]requested_item shift.num is exist - process it [21:11:33]requested_item shift.opened is exist - process it [21:11:33]req_shift_opened [21:11:33]FM_GetShiftState [21:11:33]SAM_PROTO_GetShiftState [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 13 01 00 [21:11:33]Write to MH i2c: E2 08 00 9F 2C 80 13 01 00 00 00 00 00 48 [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 0E 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 0E 00 9F 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 36 [21:11:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:11:33]wFMCommunicate OK [21:11:33]SAM_PROTO_GetShiftState done [21:11:33]FM_GetShiftState done [21:11:33]req_shift_opened done [21:11:33]requested_item shift.open_date is exist - process it [21:11:33]req_shift_open_date [21:11:33]req_shift_open_date done [21:11:33]produce_requested_data done [21:11:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70450,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:11:33]process_action_free close_receipt [21:11:33]json_value_free [21:11:33]json_value_free done [21:11:33]process_json_proto returns [21:11:33]Send response to host [21:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70450,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:11:33]free response buf [21:11:33]execute_script done [21:11:33]execute_script returns [21:11:33]free content buf [21:11:33]Sock 7.Close socket [21:11:33]Sock 7.Thread stoped [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]accept exits with 9 [21:17:58]New connection [21:17:58]New thread 3066699108 created [21:17:58]Thread 3066555748 joined [21:17:58]Waiting for new connection... [21:17:58] Sock 9.Parse request [21:17:58]Sock 9.Check first char [21:17:58]Sock 9.First char is OK [21:17:58]request: POST /json_proto HTTP/1.0 [21:17:58]Method: POST [21:17:58]URL: /json_proto [21:17:58]Method is POST - this is cgi request [21:17:58]url: /json_proto [21:17:58]query_string will be loaded in cgi processing [21:17:58]execute_cgi json_proto POST (null) [21:17:58]execute_cgi path=json_proto method=POST [21:17:58]POST find Content-Length [21:17:58]Host: 172.17.50.3:8080 [21:17:58]Content-Length: 678 [21:17:58]Content-Type: application/json [21:17:58] [21:17:58]POST finish read [21:17:58]Found Content-Length = 678 [21:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:17:58]execute_script... [21:17: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)2886220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:17:58]POST & json_proto [21:17:58]process_json_proto [21:17:58]json parsed OK: [21:17:58]protocol is kg_v1.0 [21:17:58]action value=close_receipt [21:17:58]process_action close_receipt [21:17:58]cmd_close_receipt [21:17:58]MH_GetDate [21:17:58]Write to MH i2c: F0 00 00 A0 2C BB [21:17:58]Write i2c OK [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 09 00 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 09 00 A0 2C 00 87 16 18 67 6B 98 1E 66 67 [21:17:58]GetLastDocTimeStamp 1729631491 [21:17:58]current date 1729631879 [21:17:58]FM_GetShiftState [21:17:58]SAM_PROTO_GetShiftState [21:17:58]wFMCommunicate request_size=4 [21:17:58]MH_SAM_APDU [21:17:58]CAPDU: 80 13 01 00 [21:17:58]Write to MH i2c: E2 08 00 A1 2C 80 13 01 00 00 00 00 00 4A [21:17:58]Write i2c OK [21:17:58]MH_I2C_Read... [21:17:58]OFD Sender: No OFD packet to send [21:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:58]Read from MH i2c: E2 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: E2 0E 00 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: E2 0E 00 A1 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 38 [21:17:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:17:58]wFMCommunicate OK [21:17:58]SAM_PROTO_GetShiftState done [21:17:58]FM_GetShiftState done [21:17:58]opened in 1729555832 [21:17:58]opened+sec_in_day 1729642232 [21:17:58]quantity*price = 50041 [21:17:58]sum+1 = 50042 [21:17: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 399 22.10.2024 21:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70451 ФПД: 167581688565648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70451&fm=167581688565648&tin=02508201610067®Number=0000000000156251&sum=50000 [21:17:59]StoreToDocumentArchive [21:17:59]shift 195 fd 70451 [21:17:59]save to /storage/0195/doc_00070451 [21:17:59]save last doc name /storage/0195/doc_00070451 to /storage/kkm_last_doc_name [21:17:59]save OK [21:17:59]Clear old archive folders... [21:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:59]tlvbuf is B6D6A450 [21:17:59]SAM_PROTO_ClearQueue [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 09 00 00 [21:17:59]Write to MH i2c: E2 08 00 AE 2C 80 09 00 00 00 00 00 00 4C [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 AE 2C 00 90 00 4E [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]SAM_PROTO_ClearQueue done [21:17:59]KKMCreateOFDPacket [21:17:59]OFDProtocolAddRootSTLVToBuf [21:17:59]FM_MakeSignedData [21:17:59]FM_MakeSignedData [21:17:59]SAM_PROTO_SignData [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 0D 01 02 [21:17:59]Write to MH i2c: E2 08 00 AF 2C 80 0D 01 02 00 00 00 00 54 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]wFMCommunicate request_size=255 [21:17:59]MH_SAM_APDU [21:17: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 8F 01 00 00 F4 03 04 00 87 16 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 13 01 00 35 04 06 00 98 [21:17:59]Write to MH i2c: E2 02 01 B0 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 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 8F 01 00 00 F4 03 04 00 87 16 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 13 01 00 35 04 06 00 98 00 00 2B [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 B0 2C 00 90 00 50 [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]wFMCommunicate request_size=10 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 0D 02 02 05 6A 27 04 8F 90 [21:17:59]Write to MH i2c: E2 0D 00 B1 2C 80 0D 02 02 05 00 6A 27 04 8F 90 00 00 15 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 B1 2C 00 90 00 51 [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 0D 03 02 [21:17:59]Write to MH i2c: E2 08 00 B2 2C 80 0D 03 02 00 00 00 00 59 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 0B 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 0B 00 B2 2C 00 75 D9 60 EF 72 01 7C 64 90 00 4A [21:17:59]RAPDU: 75 D9 60 EF 72 01 7C 64 90 00 [21:17:59]wFMCommunicate OK [21:17:59]SAM_PROTO_SignData done [21:17:59]FM_MakeSignedData done [21:17:59]CreateOFDProtocolMessage [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 11 00 00 [21:17:59]Write to MH i2c: E2 08 00 B3 2C 80 11 00 00 00 00 00 00 59 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 17 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 17 00 B3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [21:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:17:59]wFMCommunicate OK [21:17:59]CreateOFDProtocolMessage done [21:17:59]OFDSenderStorePacket 70451 [21:17:59]StoreOFDPacket docnum=70451 [21:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F2 5C 07 01 77 33 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 8F 01 00 00 F4 03 04 00 87 16 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 13 01 00 35 04 06 00 98 6A 27 04 8F 90 75 D9 60 EF 72 01 7C 64 [21:17:59]CheckFolder [21:17:59]dirname=/storage/ofd_packets [21:17:59]CheckFolder done [21:17:59]ProducePacketName [21:17:59]name=ofd_packets/00070451 [21:17:59]NVStorageSaveData ofd_packets/00070451 [21:17:59]File name is /storage/ofd_packets/00070451 [21:17:59]Write 301 bytes [21:17:59]NVStorageSaveData done [21:17:59]OFDSenderStorePacket done [21:17:59]KKMCreateOFDPacket done [21:17:59]NVStorageSaveData kkm_last_timestamp [21:17:59]File name is /storage/kkm_last_timestamp [21:17:59]Write 4 bytes [21:17:59]NVStorageSaveData done [21:17:59]ExternCall_PrintAddStr [21:17:59]wPrintStart [21:17:59]Write to MH i2c: 01 00 00 B4 2C E0 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: 01 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: 01 07 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: 01 07 00 B4 2C 00 00 00 00 00 FF 0F F5 [21:17:59]RasterBufferAndPrint [21:17:59]line Счет N : (1)2886220 [21:17:59]line ИНН: 02508201610067 [21:17:59]line Контрольно-Кассовый Чек [21:17:59]line ПРОДАЖА [21:17:59]line ТРК (МРК, ГНК) : 32 [21:17:59]line Товар: 2710124130 [21:17:59]line Аи-92-К-5 [21:17:59]line 7.480 * 66.90 [21:17:59]line = 500.41 [21:17:59]line НДС 12% НСП 1% [21:17:59]line > о реализуемом товаре [21:17:59]line ОКРУГЛЕНИЕ: -0.41 [21:17:59]line ИТОГО: 500.00 [21:17:59]line Внесено: 500.00 [21:17:59]line СДАЧА: 0.00 [21:17:59]line НСП 1% : 4.43 [21:17:59]line НДС 12% : 53.14 [21:17:59]line Наличными: 500.00 [21:17:59]line Безнал.: 0.00 [21:17:59]line Место: АЗС № 85 "Партнер Нефть" [21:17:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:17:59]line СНО: Общий режим [21:17:59]line Чек 399 22.10.2024 21:17 [21:17:59]line Смена: 195 ФФД: 1.0 [21:17:59]line ЗНМ: 0300000167 [21:17:59]line РНМ: 0000000000156251 [21:17:59]line Версия ККМ: v1.0 [21:17:59]line ФМ: 0000000000963346 [21:17:59]line ФД: 70451 [21:17:59]line ФПД: 167581688565648 [21:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70451&fm=167581688565648&tin=02508201610067®Number=0000000000156251&sum=50000 [21:18:00]OFD Sender: Processing packet 70451 [packets to send 18, broken 17] [21:18:00]ProducePacketName [21:18:00]name=ofd_packets/00070451 [21:18:00]OFD Sender: To server: pG, [21:18:00]CommunicateWithHost lk.salyk.kg:30040 [21:18:00]ConnectInit lk.salyk.kg [21:18:00]written 0, free lines is 4095 [21:18:00]Connected sock=10 [21:18: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 34 36 0F 01 00 00 F2 5C 07 01 77 33 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 8F 01 00 00 F4 03 04 00 87 16 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 13 01 00 35 04 06 00 98 6A 27 04 8F 90 75 D9 60 EF 72 01 7C 64 [21:18: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 34 36 4F 00 00 00 87 FD 47 00 F6 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 34 36 10 04 04 00 33 13 01 00 F4 03 04 00 27 C0 17 67 B6 04 01 00 00 EB 85 2F 42 13 70 96 E7 [21:18:00]CommunicateWithHost err = 0 [21:18:00]CheckOFDResponse [21:18:00]1017 (14) - 77093643461234 [21:18:00]1041 (16) - 0000000000963346 [21:18:00]1040 (4) - 70451 [21:18:00]1012 (4) - 22.10.2024 15:09 [21:18:00]1206 (1) - 0 [21:18:00]OFD Sender: Remove packet 70451 [21:18:00]ProducePacketName [21:18:00]name=ofd_packets/00070451 [21:18:00]NVStorageDeleteData [21:18:00]Write to MH i2c: 01 00 00 DF 2C 0B [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 07 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 07 00 DF 2C 00 00 00 00 00 F1 0C 0F [21:18:00]RasterBufferAndPrint [21:18:00]line [21:18:00]line [21:18:00]line [21:18:00]line [21:18:00]line [21:18:00]written 0, free lines is 3319 [21:18:00]MH_Cut [21:18:00]Write to MH i2c: D1 01 00 E6 2C 01 E4 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: D1 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: D1 01 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: D1 01 00 E6 2C 00 E3 [21:18:00]Write to MH i2c: 01 00 00 E7 2C 13 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]OFD Sender: No OFD packet to send [21:18:01]*** Cut start [21:18:01]*** Partial cut [21:18:01]*** CUTSNS_PIN = 1 [21:18:01]*** CUTSNS_PIN = 0 [21:18:01]*** Brake cut motor [21:18:01]Read from MH i2c: 01 [21:18:01]MH_I2C_Read... [21:18:01]*** Stop cut motor [21:18:01]*** Cut end [21:18:01]Read from MH i2c: 01 07 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 E7 2C 00 00 00 00 00 FF 0F 28 [21:18:01]process_action close_receipt done [21:18:01]requested_data is exist [21:18:01]produce_requested_data [21:18:01]requested_item fm.sn is exist - process it [21:18:01]wFMCommunicate request_size=4 [21:18:01]MH_SAM_APDU [21:18:01]CAPDU: 80 11 00 00 [21:18:01]Write to MH i2c: E2 08 00 E8 2C 80 11 00 00 00 00 00 00 8E [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:01]Read from MH i2c: E2 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 E8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [21:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:18:01]wFMCommunicate OK [21:18:01]requested_item fd.num is exist - process it [21:18:01]SAM_PROTO_GetFieldsCounters [21:18:01]wFMCommunicate request_size=4 [21:18:01]MH_SAM_APDU [21:18:01]CAPDU: 80 13 00 00 [21:18:01]Write to MH i2c: E2 08 00 E9 2C 80 13 00 00 00 00 00 00 91 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 E9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [21:18: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetFieldsCounters done [21:18:02]requested_item shift.num is exist - process it [21:18:02]requested_item shift.opened is exist - process it [21:18:02]req_shift_opened [21:18:02]FM_GetShiftState [21:18:02]SAM_PROTO_GetShiftState [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 13 01 00 [21:18:02]Write to MH i2c: E2 08 00 EA 2C 80 13 01 00 00 00 00 00 93 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 EA 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 81 [21:18:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetShiftState done [21:18:02]FM_GetShiftState done [21:18:02]req_shift_opened done [21:18:02]requested_item shift.open_date is exist - process it [21:18:02]req_shift_open_date [21:18:02]req_shift_open_date done [21:18:02]produce_requested_data done [21:18:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70451,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:18:02]process_action_free close_receipt [21:18:02]json_value_free [21:18:02]json_value_free done [21:18:02]process_json_proto returns [21:18:02]Send response to host [21:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70451,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:18:02]free response buf [21:18:02]execute_script done [21:18:02]execute_script returns [21:18:02]free content buf [21:18:02]Sock 9.Close socket [21:18:02]Sock 9.Thread stoped [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]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:15]accept exits with 7 [21:20:15]New connection [21:20:15]New thread 3066555748 created [21:20:15]Thread 3066699108 joined [21:20:15]Waiting for new connection... [21:20:15] Sock 7.Parse request [21:20:15]Sock 7.Check first char [21:20:15]Sock 7.First char is OK [21:20:15]request: POST /json_proto HTTP/1.0 [21:20:15]Method: POST [21:20:15]URL: /json_proto [21:20:15]Method is POST - this is cgi request [21:20:15]url: /json_proto [21:20:15]query_string will be loaded in cgi processing [21:20:15]execute_cgi json_proto POST (null) [21:20:15]execute_cgi path=json_proto method=POST [21:20:15]POST find Content-Length [21:20:15]Host: 172.17.50.3:8080 [21:20:15]Content-Length: 684 [21:20:15]Content-Type: application/json [21:20:15] [21:20:15]POST finish read [21:20:15]Found Content-Length = 684 [21:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "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" ] } } [21:20:15]execute_script... [21:20: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)2886221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "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" ] } } [21:20:15]POST & json_proto [21:20:15]process_json_proto [21:20:15]json parsed OK: [21:20:15]protocol is kg_v1.0 [21:20:15]action value=close_receipt [21:20:15]process_action close_receipt [21:20:15]cmd_close_receipt [21:20:15]MH_GetDate [21:20:15]Write to MH i2c: F0 00 00 EB 2C 06 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: F0 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: F0 09 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: F0 09 00 EB 2C 00 10 17 18 67 6B 98 1E 66 3C [21:20:15]GetLastDocTimeStamp 1729631879 [21:20:15]current date 1729632016 [21:20:15]FM_GetShiftState [21:20:15]SAM_PROTO_GetShiftState [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 13 01 00 [21:20:15]Write to MH i2c: E2 08 00 EC 2C 80 13 01 00 00 00 00 00 95 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 0E 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 0E 00 EC 2C 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 83 [21:20:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:20:15]wFMCommunicate OK [21:20:15]SAM_PROTO_GetShiftState done [21:20:15]FM_GetShiftState done [21:20:15]opened in 1729555832 [21:20:15]opened+sec_in_day 1729642232 [21:20:15]quantity*price = 40066 [21:20:15]sum+1 = 40068 [21:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 400 22.10.2024 21:20 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70452 ФПД: 251939009290424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70452&fm=251939009290424&tin=02508201610067®Number=0000000000156251&sum=40000 [21:20:16]StoreToDocumentArchive [21:20:16]shift 195 fd 70452 [21:20:16]save to /storage/0195/doc_00070452 [21:20:16]save last doc name /storage/0195/doc_00070452 to /storage/kkm_last_doc_name [21:20:16]save OK [21:20:16]Clear old archive folders... [21:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:20:16]tlvbuf is 00ED4890 [21:20:16]SAM_PROTO_ClearQueue [21:20:16]wFMCommunicate request_size=4 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 09 00 00 [21:20:16]Write to MH i2c: E2 08 00 F9 2C 80 09 00 00 00 00 00 00 97 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 F9 2C 00 90 00 99 [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]SAM_PROTO_ClearQueue done [21:20:16]KKMCreateOFDPacket [21:20:16]OFDProtocolAddRootSTLVToBuf [21:20:16]FM_MakeSignedData [21:20:16]FM_MakeSignedData [21:20:16]SAM_PROTO_SignData [21:20:16]wFMCommunicate request_size=4 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 01 02 [21:20:16]Write to MH i2c: E2 08 00 FA 2C 80 0D 01 02 00 00 00 00 9F [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 FA 2C 00 90 00 9A [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]wFMCommunicate request_size=255 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 90 01 00 00 F4 03 04 00 10 17 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 13 01 [21:20:16]Write to MH i2c: E2 02 01 FB 2C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 90 01 00 00 F4 03 04 00 10 17 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 13 01 00 00 DB [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 FB 2C 00 90 00 9B [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]wFMCommunicate request_size=16 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 23 1F 27 60 B8 [21:20:16]Write to MH i2c: E2 13 00 FC 2C 80 0D 02 02 0B 00 00 35 04 06 00 E5 23 1F 27 60 B8 00 00 5D [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 FC 2C 00 90 00 9C [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]wFMCommunicate request_size=4 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 03 02 [21:20:16]Write to MH i2c: E2 08 00 FD 2C 80 0D 03 02 00 00 00 00 A4 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:17]Read from MH i2c: E2 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 0B 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 0B 00 FD 2C 00 C2 2A E7 5E A0 73 AE 18 90 00 AF [21:20:17]RAPDU: C2 2A E7 5E A0 73 AE 18 90 00 [21:20:17]wFMCommunicate OK [21:20:17]SAM_PROTO_SignData done [21:20:17]FM_MakeSignedData done [21:20:17]CreateOFDProtocolMessage [21:20:17]wFMCommunicate request_size=4 [21:20:17]MH_SAM_APDU [21:20:17]CAPDU: 80 11 00 00 [21:20:17]Write to MH i2c: E2 08 00 FE 2C 80 11 00 00 00 00 00 00 A4 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:17]Read from MH i2c: E2 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 17 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 17 00 FE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [21:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:20:17]wFMCommunicate OK [21:20:17]CreateOFDProtocolMessage done [21:20:17]OFDSenderStorePacket 70452 [21:20:17]StoreOFDPacket docnum=70452 [21:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5A 9F 0D 01 77 98 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 90 01 00 00 F4 03 04 00 10 17 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 13 01 00 35 04 06 00 E5 23 1F 27 60 B8 C2 2A E7 5E A0 73 AE 18 [21:20:17]CheckFolder [21:20:17]dirname=/storage/ofd_packets [21:20:17]CheckFolder done [21:20:17]ProducePacketName [21:20:17]name=ofd_packets/00070452 [21:20:17]NVStorageSaveData ofd_packets/00070452 [21:20:17]File name is /storage/ofd_packets/00070452 [21:20:17]Write 307 bytes [21:20:17]NVStorageSaveData done [21:20:17]OFDSenderStorePacket done [21:20:17]KKMCreateOFDPacket done [21:20:17]NVStorageSaveData kkm_last_timestamp [21:20:17]File name is /storage/kkm_last_timestamp [21:20:17]Write 4 bytes [21:20:17]NVStorageSaveData done [21:20:17]ExternCall_PrintAddStr [21:20:17]wPrintStart [21:20:17]Write to MH i2c: 01 00 00 FF 2C 2B [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 FF 2C 00 00 00 00 00 FF 0F 40 [21:20:17]RasterBufferAndPrint [21:20:17]line Счет N : (1)2886221 [21:20:17]line ИНН: 02508201610067 [21:20:17]line Контрольно-Кассовый Чек [21:20:17]line ПРОДАЖА [21:20:17]line ТРК (МРК, ГНК) : 11 [21:20:17]line Товар: 2710194240 [21:20:17]line D-ENERGY Дт-К-2 [21:20:17]line 5.190 * 77.20 [21:20:17]line = 400.67 [21:20:17]line НДС 12% НСП 1% [21:20:17]line > о реализуемом товаре [21:20:17]line ОКРУГЛЕНИЕ: -0.67 [21:20:17]line ИТОГО: 400.00 [21:20:17]line Внесено: 400.00 [21:20:17]line СДАЧА: 0.00 [21:20:17]line НСП 1% : 3.55 [21:20:17]line НДС 12% : 42.55 [21:20:17]line Наличными: 400.00 [21:20:17]line Безнал.: 0.00 [21:20:17]line Место: АЗС № 85 "Партнер Нефть" [21:20:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:20:17]line СНО: Общий режим [21:20:17]line Чек 400 22.10.2024 21:20 [21:20:17]line Смена: 195 ФФД: 1.0 [21:20:17]line ЗНМ: 0300000167 [21:20:17]line РНМ: 0000000000156251 [21:20:17]line Версия ККМ: v1.0 [21:20:17]line ФМ: 0000000000963346 [21:20:17]line ФД: 70452 [21:20:17]line ФПД: 251939009290424 [21:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70452&fm=251939009290424&tin=02508201610067®Number=0000000000156251&sum=40000 [21:20:17]OFD Sender: Processing packet 70452 [packets to send 18, broken 17] [21:20:17]ProducePacketName [21:20:17]name=ofd_packets/00070452 [21:20:17]OFD Sender: To server: pG, [21:20:17]CommunicateWithHost lk.salyk.kg:30040 [21:20:17]ConnectInit lk.salyk.kg [21:20:17]written 0, free lines is 4095 [21:20:17]Connected sock=10 [21:20: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 34 36 15 01 00 00 5A 9F 0D 01 77 98 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 90 01 00 00 F4 03 04 00 10 17 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 13 01 00 35 04 06 00 E5 23 1F 27 60 B8 C2 2A E7 5E A0 73 AE 18 [21:20: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 34 36 4F 00 00 00 30 04 47 00 52 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 34 36 10 04 04 00 34 13 01 00 F4 03 04 00 B0 C0 17 67 B6 04 01 00 00 27 89 3D 54 FC 5F C6 94 [21:20:17]CommunicateWithHost err = 0 [21:20:17]CheckOFDResponse [21:20:17]1017 (14) - 77093643461234 [21:20:17]1041 (16) - 0000000000963346 [21:20:17]1040 (4) - 70452 [21:20:17]1012 (4) - 22.10.2024 15:11 [21:20:17]1206 (1) - 0 [21:20:17]OFD Sender: Remove packet 70452 [21:20:17]ProducePacketName [21:20:17]name=ofd_packets/00070452 [21:20:17]NVStorageDeleteData [21:20:17]Write to MH i2c: 01 00 00 2A 2D 57 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 2A 2D 00 00 00 00 00 F2 0C 5C [21:20:17]RasterBufferAndPrint [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]written 0, free lines is 3324 [21:20:17]MH_Cut [21:20:17]Write to MH i2c: D1 01 00 31 2D 01 30 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 01 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 01 00 31 2D 00 2F [21:20:17]Write to MH i2c: 01 00 00 32 2D 5F [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:18]OFD Sender: No OFD packet to send [21:20:18]*** Cut start [21:20:18]*** Partial cut [21:20:18]*** CUTSNS_PIN = 1 [21:20:18]*** CUTSNS_PIN = 0 [21:20:18]*** Brake cut motor [21:20:19]Read from MH i2c: 01 [21:20:19]MH_I2C_Read... [21:20:19]*** Stop cut motor [21:20:19]*** Cut end [21:20:19]Read from MH i2c: 01 07 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 FF 0F 74 [21:20:19]process_action close_receipt done [21:20:19]requested_data is exist [21:20:19]produce_requested_data [21:20:19]requested_item fm.sn is exist - process it [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 11 00 00 [21:20:19]Write to MH i2c: E2 08 00 33 2D 80 11 00 00 00 00 00 00 DA [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 17 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 17 00 33 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [21:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:20:19]wFMCommunicate OK [21:20:19]requested_item fd.num is exist - process it [21:20:19]SAM_PROTO_GetFieldsCounters [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 13 00 00 [21:20:19]Write to MH i2c: E2 08 00 34 2D 80 13 00 00 00 00 00 00 DD [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 62 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 62 00 34 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [21:20: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:19]wFMCommunicate OK [21:20:19]SAM_PROTO_GetFieldsCounters done [21:20:19]requested_item shift.num is exist - process it [21:20:19]requested_item shift.opened is exist - process it [21:20:19]req_shift_opened [21:20:19]FM_GetShiftState [21:20:19]SAM_PROTO_GetShiftState [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 13 01 00 [21:20:19]Write to MH i2c: E2 08 00 35 2D 80 13 01 00 00 00 00 00 DF [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 35 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CD [21:20:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:20:19]wFMCommunicate OK [21:20:19]SAM_PROTO_GetShiftState done [21:20:19]FM_GetShiftState done [21:20:19]req_shift_opened done [21:20:19]requested_item shift.open_date is exist - process it [21:20:19]req_shift_open_date [21:20:19]req_shift_open_date done [21:20:19]produce_requested_data done [21:20:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70452,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:20:19]process_action_free close_receipt [21:20:19]json_value_free [21:20:19]json_value_free done [21:20:19]process_json_proto returns [21:20:19]Send response to host [21:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70452,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:20:19]free response buf [21:20:19]execute_script done [21:20:19]execute_script returns [21:20:19]free content buf [21:20:19]Sock 7.Close socket [21:20:19]Sock 7.Thread stoped [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:51]accept exits with 9 [21:32:51]New connection [21:32:51]New thread 3066699108 created [21:32:51]Thread 3066555748 joined [21:32:51]Waiting for new connection... [21:32:51] Sock 9.Parse request [21:32:51]Sock 9.Check first char [21:32:51]Sock 9.First char is OK [21:32:51]request: POST /json_proto HTTP/1.0 [21:32:51]Method: POST [21:32:51]URL: /json_proto [21:32:51]Method is POST - this is cgi request [21:32:51]url: /json_proto [21:32:51]query_string will be loaded in cgi processing [21:32:51]execute_cgi json_proto POST (null) [21:32:51]execute_cgi path=json_proto method=POST [21:32:51]POST find Content-Length [21:32:51]Host: 172.17.50.3:8080 [21:32:51]Content-Length: 678 [21:32:51]Content-Type: application/json [21:32:51] [21:32:51]POST finish read [21:32:51]Found Content-Length = 678 [21:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [21:32:51]execute_script... [21:32: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)2886222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [21:32:51]POST & json_proto [21:32:51]process_json_proto [21:32:51]json parsed OK: [21:32:51]protocol is kg_v1.0 [21:32:51]action value=close_receipt [21:32:51]process_action close_receipt [21:32:51]cmd_close_receipt [21:32:51]MH_GetDate [21:32:51]Write to MH i2c: F0 00 00 36 2D 52 [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: F0 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: F0 09 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: F0 09 00 36 2D 00 05 1A 18 67 6B 98 1E 66 80 [21:32:51]GetLastDocTimeStamp 1729632016 [21:32:51]current date 1729632773 [21:32:51]FM_GetShiftState [21:32:51]SAM_PROTO_GetShiftState [21:32:51]wFMCommunicate request_size=4 [21:32:51]MH_SAM_APDU [21:32:51]CAPDU: 80 13 01 00 [21:32:51]Write to MH i2c: E2 08 00 37 2D 80 13 01 00 00 00 00 00 E1 [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:51]Read from MH i2c: E2 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 0E 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 0E 00 37 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CF [21:32:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:32:51]wFMCommunicate OK [21:32:51]SAM_PROTO_GetShiftState done [21:32:51]FM_GetShiftState done [21:32:51]opened in 1729555832 [21:32:51]opened+sec_in_day 1729642232 [21:32:51]quantity*price = 50010 [21:32:51]sum+1 = 50012 [21:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 401 22.10.2024 21:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70453 ФПД: 115528815902156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70453&fm=115528815902156&tin=02508201610067®Number=0000000000156251&sum=50000 [21:32:52]StoreToDocumentArchive [21:32:52]shift 195 fd 70453 [21:32:52]save to /storage/0195/doc_00070453 [21:32:52]save last doc name /storage/0195/doc_00070453 to /storage/kkm_last_doc_name [21:32:52]save OK [21:32:52]Clear old archive folders... [21:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:52]tlvbuf is 00CF2350 [21:32:52]SAM_PROTO_ClearQueue [21:32:52]wFMCommunicate request_size=4 [21:32:52]MH_SAM_APDU [21:32:52]CAPDU: 80 09 00 00 [21:32:52]Write to MH i2c: E2 08 00 44 2D 80 09 00 00 00 00 00 00 E3 [21:32:52]Write i2c OK [21:32:52]MH_I2C_Read... [21:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:52]Read from MH i2c: E2 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 03 00 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 03 00 44 2D 00 90 00 E5 [21:32:52]RAPDU: 90 00 [21:32:52]wFMCommunicate OK [21:32:52]SAM_PROTO_ClearQueue done [21:32:52]KKMCreateOFDPacket [21:32:52]OFDProtocolAddRootSTLVToBuf [21:32:52]FM_MakeSignedData [21:32:52]FM_MakeSignedData [21:32:52]SAM_PROTO_SignData [21:32:52]wFMCommunicate request_size=4 [21:32:52]MH_SAM_APDU [21:32:52]CAPDU: 80 0D 01 02 [21:32:52]Write to MH i2c: E2 08 00 45 2D 80 0D 01 02 00 00 00 00 EB [21:32:52]Write i2c OK [21:32:52]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 45 2D 00 90 00 E6 [21:32:53]RAPDU: 90 00 [21:32:53]wFMCommunicate OK [21:32:53]wFMCommunicate request_size=255 [21:32:53]MH_SAM_APDU [21:32: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 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 91 01 00 00 F4 03 04 00 05 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 13 01 00 35 04 06 00 69 [21:32:53]Write to MH i2c: E2 02 01 46 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 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 91 01 00 00 F4 03 04 00 05 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 13 01 00 35 04 06 00 69 00 00 F1 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 46 2D 00 90 00 E7 [21:32:53]RAPDU: 90 00 [21:32:53]wFMCommunicate OK [21:32:53]wFMCommunicate request_size=10 [21:32:53]MH_SAM_APDU [21:32:53]CAPDU: 80 0D 02 02 05 12 A6 08 7D CC [21:32:53]Write to MH i2c: E2 0D 00 47 2D 80 0D 02 02 05 00 12 A6 08 7D CC 00 00 01 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 03 00 47 2D 00 90 00 E8 [21:32:53]RAPDU: 90 00 [21:32:53]wFMCommunicate OK [21:32:53]wFMCommunicate request_size=4 [21:32:53]MH_SAM_APDU [21:32:53]CAPDU: 80 0D 03 02 [21:32:53]Write to MH i2c: E2 08 00 48 2D 80 0D 03 02 00 00 00 00 F0 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 0B 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 0B 00 48 2D 00 93 56 E5 77 B2 4A E6 82 90 00 9A [21:32:53]RAPDU: 93 56 E5 77 B2 4A E6 82 90 00 [21:32:53]wFMCommunicate OK [21:32:53]SAM_PROTO_SignData done [21:32:53]FM_MakeSignedData done [21:32:53]CreateOFDProtocolMessage [21:32:53]wFMCommunicate request_size=4 [21:32:53]MH_SAM_APDU [21:32:53]CAPDU: 80 11 00 00 [21:32:53]Write to MH i2c: E2 08 00 49 2D 80 11 00 00 00 00 00 00 F0 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 17 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 17 00 49 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [21:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:32:53]wFMCommunicate OK [21:32:53]CreateOFDProtocolMessage done [21:32:53]OFDSenderStorePacket 70453 [21:32:53]StoreOFDPacket docnum=70453 [21:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 46 69 07 01 D7 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 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 91 01 00 00 F4 03 04 00 05 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 13 01 00 35 04 06 00 69 12 A6 08 7D CC 93 56 E5 77 B2 4A E6 82 [21:32:53]CheckFolder [21:32:53]dirname=/storage/ofd_packets [21:32:53]CheckFolder done [21:32:53]ProducePacketName [21:32:53]name=ofd_packets/00070453 [21:32:53]NVStorageSaveData ofd_packets/00070453 [21:32:53]File name is /storage/ofd_packets/00070453 [21:32:53]Write 301 bytes [21:32:53]NVStorageSaveData done [21:32:53]OFDSenderStorePacket done [21:32:53]KKMCreateOFDPacket done [21:32:53]NVStorageSaveData kkm_last_timestamp [21:32:53]File name is /storage/kkm_last_timestamp [21:32:53]Write 4 bytes [21:32:53]NVStorageSaveData done [21:32:53]ExternCall_PrintAddStr [21:32:53]wPrintStart [21:32:53]Write to MH i2c: 01 00 00 4A 2D 77 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 07 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 07 00 4A 2D 00 00 00 00 00 FF 0F 8C [21:32:53]RasterBufferAndPrint [21:32:53]line Счет N : (1)2886222 [21:32:53]line ИНН: 02508201610067 [21:32:53]line Контрольно-Кассовый Чек [21:32:53]line ПРОДАЖА [21:32:53]line ТРК (МРК, ГНК) : 33 [21:32:53]line Товар: 2710124500 [21:32:53]line Аи-95-К-5 [21:32:53]line 6.740 * 74.20 [21:32:53]line = 500.11 [21:32:53]line НДС 12% НСП 1% [21:32:53]line > о реализуемом товаре [21:32:53]line ОКРУГЛЕНИЕ: -0.11 [21:32:53]line ИТОГО: 500.00 [21:32:53]line Внесено: 500.00 [21:32:53]line СДАЧА: 0.00 [21:32:53]line НСП 1% : 4.43 [21:32:53]line НДС 12% : 53.11 [21:32:53]line Наличными: 500.00 [21:32:53]line Безнал.: 0.00 [21:32:53]line Место: АЗС № 85 "Партнер Нефть" [21:32:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:32:53]line СНО: Общий режим [21:32:53]line Чек 401 22.10.2024 21:32 [21:32:53]line Смена: 195 ФФД: 1.0 [21:32:53]line ЗНМ: 0300000167 [21:32:53]line РНМ: 0000000000156251 [21:32:53]line Версия ККМ: v1.0 [21:32:53]line ФМ: 0000000000963346 [21:32:53]line ФД: 70453 [21:32:53]line ФПД: 115528815902156 [21:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70453&fm=115528815902156&tin=02508201610067®Number=0000000000156251&sum=50000 [21:32:53]OFD Sender: Processing packet 70453 [packets to send 18, broken 17] [21:32:53]ProducePacketName [21:32:53]name=ofd_packets/00070453 [21:32:53]OFD Sender: To server: pG, [21:32:53]CommunicateWithHost lk.salyk.kg:30040 [21:32:53]ConnectInit lk.salyk.kg [21:32:53]written 0, free lines is 4095 [21:32:53]Connected sock=10 [21: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 34 36 0F 01 00 00 46 69 07 01 D7 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 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 91 01 00 00 F4 03 04 00 05 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 13 01 00 35 04 06 00 69 12 A6 08 7D CC 93 56 E5 77 B2 4A E6 82 [21:32: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 34 36 4F 00 00 00 2A A0 47 00 3E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 13 01 00 F4 03 04 00 A4 C3 17 67 B6 04 01 00 00 4B CB 27 2D 1B 8C C6 97 [21:32:54]CommunicateWithHost err = 0 [21:32:54]CheckOFDResponse [21:32:54]1017 (14) - 77093643461234 [21:32:54]1041 (16) - 0000000000963346 [21:32:54]1040 (4) - 70453 [21:32:54]1012 (4) - 22.10.2024 15:24 [21:32:54]1206 (1) - 0 [21:32:54]OFD Sender: Remove packet 70453 [21:32:54]ProducePacketName [21:32:54]name=ofd_packets/00070453 [21:32:54]NVStorageDeleteData [21:32:54]Write to MH i2c: 01 00 00 75 2D A2 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 07 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 07 00 75 2D 00 00 00 00 00 E4 0C 99 [21:32:54]RasterBufferAndPrint [21:32:54]line [21:32:54]line [21:32:54]line [21:32:54]line [21:32:54]line [21:32:54]written 0, free lines is 3309 [21:32:54]MH_Cut [21:32:54]Write to MH i2c: D1 01 00 7C 2D 01 7B [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: D1 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: D1 01 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: D1 01 00 7C 2D 00 7A [21:32:54]Write to MH i2c: 01 00 00 7D 2D AA [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]OFD Sender: No OFD packet to send [21:32:54]*** Cut start [21:32:54]*** Partial cut [21:32:54]*** CUTSNS_PIN = 1 [21:32:54]*** CUTSNS_PIN = 0 [21:32:55]*** Brake cut motor [21:32:55]Read from MH i2c: 01 [21:32:55]MH_I2C_Read... [21:32:55]*** Stop cut motor [21:32:55]*** Cut end [21:32:55]Read from MH i2c: 01 07 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: 01 07 00 7D 2D 00 00 00 00 00 FF 0F BF [21:32:55]process_action close_receipt done [21:32:55]requested_data is exist [21:32:55]produce_requested_data [21:32:55]requested_item fm.sn is exist - process it [21:32:55]wFMCommunicate request_size=4 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 11 00 00 [21:32:55]Write to MH i2c: E2 08 00 7E 2D 80 11 00 00 00 00 00 00 25 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 [21:32:55]MH_I2C_Read... [21:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:55]Read from MH i2c: E2 17 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 17 00 7E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [21:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:32:55]wFMCommunicate OK [21:32:55]requested_item fd.num is exist - process it [21:32:55]SAM_PROTO_GetFieldsCounters [21:32:55]wFMCommunicate request_size=4 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 13 00 00 [21:32:55]Write to MH i2c: E2 08 00 7F 2D 80 13 00 00 00 00 00 00 28 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:55]Read from MH i2c: E2 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 62 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 62 00 7F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [21:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:55]wFMCommunicate OK [21:32:55]SAM_PROTO_GetFieldsCounters done [21:32:55]requested_item shift.num is exist - process it [21:32:55]requested_item shift.opened is exist - process it [21:32:55]req_shift_opened [21:32:55]FM_GetShiftState [21:32:55]SAM_PROTO_GetShiftState [21:32:55]wFMCommunicate request_size=4 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 13 01 00 [21:32:55]Write to MH i2c: E2 08 00 80 2D 80 13 01 00 00 00 00 00 2A [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:55]Read from MH i2c: E2 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 0E 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 0E 00 80 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 18 [21:32:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:32:55]wFMCommunicate OK [21:32:55]SAM_PROTO_GetShiftState done [21:32:55]FM_GetShiftState done [21:32:55]req_shift_opened done [21:32:55]requested_item shift.open_date is exist - process it [21:32:55]req_shift_open_date [21:32:55]req_shift_open_date done [21:32:55]produce_requested_data done [21:32:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70453,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:32:55]process_action_free close_receipt [21:32:55]json_value_free [21:32:55]json_value_free done [21:32:55]process_json_proto returns [21:32:55]Send response to host [21:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70453,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:32:55]free response buf [21:32:55]execute_script done [21:32:55]execute_script returns [21:32:55]free content buf [21:32:55]Sock 9.Close socket [21:32:55]Sock 9.Thread stoped [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:09]accept exits with 7 [21:36:09]New connection [21:36:09]New thread 3066555748 created [21:36:09]Thread 3066699108 joined [21:36:09]Waiting for new connection... [21:36:09] Sock 7.Parse request [21:36:09]Sock 7.Check first char [21:36:09]Sock 7.First char is OK [21:36:09]request: POST /json_proto HTTP/1.0 [21:36:09]Method: POST [21:36:09]URL: /json_proto [21:36:09]Method is POST - this is cgi request [21:36:09]url: /json_proto [21:36:09]query_string will be loaded in cgi processing [21:36:09]execute_cgi json_proto POST (null) [21:36:09]execute_cgi path=json_proto method=POST [21:36:09]POST find Content-Length [21:36:09]Host: 172.17.50.3:8080 [21:36:09]Content-Length: 678 [21:36:09]Content-Type: application/json [21:36:09] [21:36:09]POST finish read [21:36:09]Found Content-Length = 678 [21:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [21:36:09]execute_script... [21:36: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 : (1)2886223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [21:36:09]POST & json_proto [21:36:09]process_json_proto [21:36:09]json parsed OK: [21:36:09]protocol is kg_v1.0 [21:36:09]action value=close_receipt [21:36:09]process_action close_receipt [21:36:09]cmd_close_receipt [21:36:09]MH_GetDate [21:36:09]Write to MH i2c: F0 00 00 81 2D 9D [21:36:09]Write i2c OK [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: F0 [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: F0 09 00 [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: F0 09 00 81 2D 00 CB 1A 18 67 6B 98 1E 66 91 [21:36:09]GetLastDocTimeStamp 1729632773 [21:36:09]current date 1729632971 [21:36:09]FM_GetShiftState [21:36:09]SAM_PROTO_GetShiftState [21:36:09]wFMCommunicate request_size=4 [21:36:09]MH_SAM_APDU [21:36:09]CAPDU: 80 13 01 00 [21:36:09]Write to MH i2c: E2 08 00 82 2D 80 13 01 00 00 00 00 00 2C [21:36:09]Write i2c OK [21:36:09]MH_I2C_Read... [21:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:10]Read from MH i2c: E2 [21:36:10]MH_I2C_Read... [21:36:10]Read from MH i2c: E2 0E 00 [21:36:10]MH_I2C_Read... [21:36:10]Read from MH i2c: E2 0E 00 82 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 1A [21:36:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:36:10]wFMCommunicate OK [21:36:10]SAM_PROTO_GetShiftState done [21:36:10]FM_GetShiftState done [21:36:10]opened in 1729555832 [21:36:10]opened+sec_in_day 1729642232 [21:36:10]quantity*price = 60009 [21:36:10]sum+1 = 60010 [21:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 402 22.10.2024 21:36 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70454 ФПД: 268842706331892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70454&fm=268842706331892&tin=02508201610067®Number=0000000000156251&sum=60000 [21:36:11]StoreToDocumentArchive [21:36:11]shift 195 fd 70454 [21:36:11]save to /storage/0195/doc_00070454 [21:36:11]save last doc name /storage/0195/doc_00070454 to /storage/kkm_last_doc_name [21:36:11]save OK [21:36:11]Clear old archive folders... [21:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:11]tlvbuf is 00B44EA0 [21:36:11]SAM_PROTO_ClearQueue [21:36:11]wFMCommunicate request_size=4 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 09 00 00 [21:36:11]Write to MH i2c: E2 08 00 8F 2D 80 09 00 00 00 00 00 00 2E [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [21:36:11]RAPDU: 90 00 [21:36:11]wFMCommunicate OK [21:36:11]SAM_PROTO_ClearQueue done [21:36:11]KKMCreateOFDPacket [21:36:11]OFDProtocolAddRootSTLVToBuf [21:36:11]FM_MakeSignedData [21:36:11]FM_MakeSignedData [21:36:11]SAM_PROTO_SignData [21:36:11]wFMCommunicate request_size=4 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 0D 01 02 [21:36:11]Write to MH i2c: E2 08 00 90 2D 80 0D 01 02 00 00 00 00 36 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 90 2D 00 90 00 31 [21:36:11]RAPDU: 90 00 [21:36:11]wFMCommunicate OK [21:36:11]wFMCommunicate request_size=255 [21:36:11]MH_SAM_APDU [21:36: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 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 92 01 00 00 F4 03 04 00 CB 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 13 01 00 35 04 06 00 F4 [21:36:11]Write to MH i2c: E2 02 01 91 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 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 92 01 00 00 F4 03 04 00 CB 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 13 01 00 35 04 06 00 F4 00 00 94 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 91 2D 00 90 00 32 [21:36:11]RAPDU: 90 00 [21:36:11]wFMCommunicate OK [21:36:11]wFMCommunicate request_size=10 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 0D 02 02 05 82 D2 02 E8 F4 [21:36:11]Write to MH i2c: E2 0D 00 92 2D 80 0D 02 02 05 00 82 D2 02 E8 F4 00 00 75 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 03 00 92 2D 00 90 00 33 [21:36:11]RAPDU: 90 00 [21:36:11]wFMCommunicate OK [21:36:11]wFMCommunicate request_size=4 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 0D 03 02 [21:36:11]Write to MH i2c: E2 08 00 93 2D 80 0D 03 02 00 00 00 00 3B [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 0B 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 0B 00 93 2D 00 D2 1E 20 8D 0D 79 A4 DF 90 00 E2 [21:36:11]RAPDU: D2 1E 20 8D 0D 79 A4 DF 90 00 [21:36:11]wFMCommunicate OK [21:36:11]SAM_PROTO_SignData done [21:36:11]FM_MakeSignedData done [21:36:11]CreateOFDProtocolMessage [21:36:11]wFMCommunicate request_size=4 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 11 00 00 [21:36:11]Write to MH i2c: E2 08 00 94 2D 80 11 00 00 00 00 00 00 3B [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:11]Read from MH i2c: E2 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 17 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: E2 17 00 94 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [21:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:36:11]wFMCommunicate OK [21:36:11]CreateOFDProtocolMessage done [21:36:11]OFDSenderStorePacket 70454 [21:36:11]StoreOFDPacket docnum=70454 [21:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 57 9F 07 01 A3 38 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 92 01 00 00 F4 03 04 00 CB 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 13 01 00 35 04 06 00 F4 82 D2 02 E8 F4 D2 1E 20 8D 0D 79 A4 DF [21:36:11]CheckFolder [21:36:11]dirname=/storage/ofd_packets [21:36:11]CheckFolder done [21:36:11]ProducePacketName [21:36:11]name=ofd_packets/00070454 [21:36:11]NVStorageSaveData ofd_packets/00070454 [21:36:11]File name is /storage/ofd_packets/00070454 [21:36:11]Write 301 bytes [21:36:11]NVStorageSaveData done [21:36:11]OFDSenderStorePacket done [21:36:11]KKMCreateOFDPacket done [21:36:11]NVStorageSaveData kkm_last_timestamp [21:36:11]File name is /storage/kkm_last_timestamp [21:36:11]Write 4 bytes [21:36:11]NVStorageSaveData done [21:36:11]ExternCall_PrintAddStr [21:36:11]wPrintStart [21:36:11]Write to MH i2c: 01 00 00 95 2D C2 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: 01 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: 01 07 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: 01 07 00 95 2D 00 00 00 00 00 FF 0F D7 [21:36:11]RasterBufferAndPrint [21:36:11]line Счет N : (1)2886223 [21:36:11]line ИНН: 02508201610067 [21:36:11]line Контрольно-Кассовый Чек [21:36:11]line ПРОДАЖА [21:36:11]line ТРК (МРК, ГНК) : 12 [21:36:11]line Товар: 2710124130 [21:36:11]line Аи-92-К-5 [21:36:11]line 8.970 * 66.90 [21:36:11]line = 600.09 [21:36:11]line НДС 12% НСП 1% [21:36:11]line > о реализуемом товаре [21:36:11]line ОКРУГЛЕНИЕ: -0.09 [21:36:11]line ИТОГО: 600.00 [21:36:11]line Внесено: 600.00 [21:36:11]line СДАЧА: 0.00 [21:36:11]line НСП 1% : 5.31 [21:36:11]line НДС 12% : 63.73 [21:36:11]line Наличными: 600.00 [21:36:11]line Безнал.: 0.00 [21:36:11]line Место: АЗС № 85 "Партнер Нефть" [21:36:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:36:11]line СНО: Общий режим [21:36:11]line Чек 402 22.10.2024 21:36 [21:36:11]line Смена: 195 ФФД: 1.0 [21:36:11]line ЗНМ: 0300000167 [21:36:11]line РНМ: 0000000000156251 [21:36:11]line Версия ККМ: v1.0 [21:36:11]line ФМ: 0000000000963346 [21:36:11]line ФД: 70454 [21:36:11]line ФПД: 268842706331892 [21:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70454&fm=268842706331892&tin=02508201610067®Number=0000000000156251&sum=60000 [21:36:12]OFD Sender: Processing packet 70454 [packets to send 18, broken 17] [21:36:12]ProducePacketName [21:36:12]name=ofd_packets/00070454 [21:36:12]OFD Sender: To server: pG, [21:36:12]CommunicateWithHost lk.salyk.kg:30040 [21:36:12]ConnectInit lk.salyk.kg [21:36:12]written 0, free lines is 4095 [21:36:12]Connected sock=10 [21:36: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 34 36 0F 01 00 00 57 9F 07 01 A3 38 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 92 01 00 00 F4 03 04 00 CB 1A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 13 01 00 35 04 06 00 F4 82 D2 02 E8 F4 D2 1E 20 8D 0D 79 A4 DF [21:36: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 34 36 4F 00 00 00 85 AF 47 00 64 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 34 36 10 04 04 00 36 13 01 00 F4 03 04 00 6B C4 17 67 B6 04 01 00 00 B4 76 7F 5B 27 BD 46 25 [21:36:12]CommunicateWithHost err = 0 [21:36:12]CheckOFDResponse [21:36:12]1017 (14) - 77093643461234 [21:36:12]1041 (16) - 0000000000963346 [21:36:12]1040 (4) - 70454 [21:36:12]1012 (4) - 22.10.2024 15:27 [21:36:12]1206 (1) - 0 [21:36:12]OFD Sender: Remove packet 70454 [21:36:12]ProducePacketName [21:36:12]name=ofd_packets/00070454 [21:36:12]NVStorageDeleteData [21:36:12]Write to MH i2c: 01 00 00 C0 2D ED [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: 01 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: 01 07 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 E8 0C E8 [21:36:12]RasterBufferAndPrint [21:36:12]line [21:36:12]line [21:36:12]line [21:36:12]line [21:36:12]line [21:36:12]written 0, free lines is 3310 [21:36:12]MH_Cut [21:36:12]Write to MH i2c: D1 01 00 C7 2D 01 C6 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: D1 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: D1 01 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: D1 01 00 C7 2D 00 C5 [21:36:12]Write to MH i2c: 01 00 00 C8 2D F5 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]OFD Sender: No OFD packet to send [21:36:13]*** Cut start [21:36:13]*** Partial cut [21:36:13]*** CUTSNS_PIN = 1 [21:36:13]*** CUTSNS_PIN = 0 [21:36:13]*** Brake cut motor [21:36:13]Read from MH i2c: 01 [21:36:13]MH_I2C_Read... [21:36:13]*** Stop cut motor [21:36:13]*** Cut end [21:36:13]Read from MH i2c: 01 07 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 C8 2D 00 00 00 00 00 FF 0F 0A [21:36:13]process_action close_receipt done [21:36:13]requested_data is exist [21:36:13]produce_requested_data [21:36:13]requested_item fm.sn is exist - process it [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 11 00 00 [21:36:13]Write to MH i2c: E2 08 00 C9 2D 80 11 00 00 00 00 00 00 70 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 C9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [21:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:36:13]wFMCommunicate OK [21:36:13]requested_item fd.num is exist - process it [21:36:13]SAM_PROTO_GetFieldsCounters [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 13 00 00 [21:36:13]Write to MH i2c: E2 08 00 CA 2D 80 13 00 00 00 00 00 00 73 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 62 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 62 00 CA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:14]wFMCommunicate OK [21:36:14]SAM_PROTO_GetFieldsCounters done [21:36:14]requested_item shift.num is exist - process it [21:36:14]requested_item shift.opened is exist - process it [21:36:14]req_shift_opened [21:36:14]FM_GetShiftState [21:36:14]SAM_PROTO_GetShiftState [21:36:14]wFMCommunicate request_size=4 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 13 01 00 [21:36:14]Write to MH i2c: E2 08 00 CB 2D 80 13 01 00 00 00 00 00 75 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:14]Read from MH i2c: E2 0E 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 0E 00 CB 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 63 [21:36:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:36:14]wFMCommunicate OK [21:36:14]SAM_PROTO_GetShiftState done [21:36:14]FM_GetShiftState done [21:36:14]req_shift_opened done [21:36:14]requested_item shift.open_date is exist - process it [21:36:14]req_shift_open_date [21:36:14]req_shift_open_date done [21:36:14]produce_requested_data done [21:36:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70454,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:36:14]process_action_free close_receipt [21:36:14]json_value_free [21:36:14]json_value_free done [21:36:14]process_json_proto returns [21:36:14]Send response to host [21:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70454,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:36:14]free response buf [21:36:14]execute_script done [21:36:14]execute_script returns [21:36:14]free content buf [21:36:14]Sock 7.Close socket [21:36:14]Sock 7.Thread stoped [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:10]accept exits with 9 [21:42:10]New connection [21:42:10]New thread 3066699108 created [21:42:10]Thread 3066555748 joined [21:42:10]Waiting for new connection... [21:42:10] Sock 9.Parse request [21:42:10]Sock 9.Check first char [21:42:10]Sock 9.First char is OK [21:42:10]request: POST /json_proto HTTP/1.0 [21:42:10]Method: POST [21:42:10]URL: /json_proto [21:42:10]Method is POST - this is cgi request [21:42:10]url: /json_proto [21:42:10]query_string will be loaded in cgi processing [21:42:10]execute_cgi json_proto POST (null) [21:42:10]execute_cgi path=json_proto method=POST [21:42:10]POST find Content-Length [21:42:10]Host: 172.17.50.3:8080 [21:42:10]Content-Length: 755 [21:42:10]Content-Type: application/json [21:42:10] [21:42:10]POST finish read [21:42:10]Found Content-Length = 755 [21:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.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\u000A30025748", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:10]execute_script... [21:42: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)2886224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.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\u000A30025748", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:10]POST & json_proto [21:42:10]process_json_proto [21:42:10]json parsed OK: [21:42:10]protocol is kg_v1.0 [21:42:10]action value=close_receipt [21:42:10]process_action close_receipt [21:42:10]cmd_close_receipt [21:42:10]MH_GetDate [21:42:10]Write to MH i2c: F0 00 00 CC 2D E8 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: F0 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: F0 09 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: F0 09 00 CC 2D 00 33 1C 18 67 6B 98 1E 66 46 [21:42:10]GetLastDocTimeStamp 1729632971 [21:42:10]current date 1729633331 [21:42:10]FM_GetShiftState [21:42:10]SAM_PROTO_GetShiftState [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 13 01 00 [21:42:10]Write to MH i2c: E2 08 00 CD 2D 80 13 01 00 00 00 00 00 77 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0E 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0E 00 CD 2D 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 65 [21:42:10]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:42:10]wFMCommunicate OK [21:42:10]SAM_PROTO_GetShiftState done [21:42:10]FM_GetShiftState done [21:42:10]opened in 1729555832 [21:42:10]opened+sec_in_day 1729642232 [21:42:10]quantity*price = 0 [21:42:10]sum+1 = 1 [21:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 403 22.10.2024 21:42 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30025748 ФМ: 0000000000963346 ФД: 70455 ФПД: 53342151626129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70455&fm=53342151626129&tin=02508201610067®Number=0000000000156251&sum=0 [21:42:11]StoreToDocumentArchive [21:42:11]shift 195 fd 70455 [21:42:11]save to /storage/0195/doc_00070455 [21:42:11]save last doc name /storage/0195/doc_00070455 to /storage/kkm_last_doc_name [21:42:11]save OK [21:42:11]Clear old archive folders... [21:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:11]tlvbuf is 00E043E0 [21:42:11]SAM_PROTO_ClearQueue [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 09 00 00 [21:42:11]Write to MH i2c: E2 08 00 DA 2D 80 09 00 00 00 00 00 00 79 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 DA 2D 00 90 00 7B [21:42:11]RAPDU: 90 00 [21:42:11]wFMCommunicate OK [21:42:11]SAM_PROTO_ClearQueue done [21:42:11]KKMCreateOFDPacket [21:42:11]OFDProtocolAddRootSTLVToBuf [21:42:11]FM_MakeSignedData [21:42:11]FM_MakeSignedData [21:42:11]SAM_PROTO_SignData [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 0D 01 02 [21:42:11]Write to MH i2c: E2 08 00 DB 2D 80 0D 01 02 00 00 00 00 81 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 DB 2D 00 90 00 7C [21:42:11]RAPDU: 90 00 [21:42:11]wFMCommunicate OK [21:42:11]wFMCommunicate request_size=255 [21:42:11]MH_SAM_APDU [21:42: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 40 9C 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 93 01 00 00 F4 03 04 00 33 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 13 01 00 35 04 06 00 30 [21:42:11]Write to MH i2c: E2 02 01 DC 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 40 9C 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 93 01 00 00 F4 03 04 00 33 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 13 01 00 35 04 06 00 30 00 00 01 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 DC 2D 00 90 00 7D [21:42:11]RAPDU: 90 00 [21:42:11]wFMCommunicate OK [21:42:11]wFMCommunicate request_size=10 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 0D 02 02 05 83 AF FF CD 91 [21:42:11]Write to MH i2c: E2 0D 00 DD 2D 80 0D 02 02 05 00 83 AF FF CD 91 00 00 1D [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 03 00 DD 2D 00 90 00 7E [21:42:11]RAPDU: 90 00 [21:42:11]wFMCommunicate OK [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 0D 03 02 [21:42:11]Write to MH i2c: E2 08 00 DE 2D 80 0D 03 02 00 00 00 00 86 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 0B 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 0B 00 DE 2D 00 9E C0 98 DF 4E 94 91 7C 90 00 4B [21:42:11]RAPDU: 9E C0 98 DF 4E 94 91 7C 90 00 [21:42:11]wFMCommunicate OK [21:42:11]SAM_PROTO_SignData done [21:42:11]FM_MakeSignedData done [21:42:11]CreateOFDProtocolMessage [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 11 00 00 [21:42:11]Write to MH i2c: E2 08 00 DF 2D 80 11 00 00 00 00 00 00 86 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 17 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 17 00 DF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [21:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:42:11]wFMCommunicate OK [21:42:11]CreateOFDProtocolMessage done [21:42:11]OFDSenderStorePacket 70455 [21:42:11]StoreOFDPacket docnum=70455 [21:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 E7 07 01 C6 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 40 9C 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 93 01 00 00 F4 03 04 00 33 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 13 01 00 35 04 06 00 30 83 AF FF CD 91 9E C0 98 DF 4E 94 91 7C [21:42:11]CheckFolder [21:42:11]dirname=/storage/ofd_packets [21:42:11]CheckFolder done [21:42:11]ProducePacketName [21:42:11]name=ofd_packets/00070455 [21:42:11]NVStorageSaveData ofd_packets/00070455 [21:42:11]File name is /storage/ofd_packets/00070455 [21:42:11]Write 301 bytes [21:42:11]NVStorageSaveData done [21:42:11]OFDSenderStorePacket done [21:42:11]KKMCreateOFDPacket done [21:42:11]NVStorageSaveData kkm_last_timestamp [21:42:11]File name is /storage/kkm_last_timestamp [21:42:11]Write 4 bytes [21:42:11]NVStorageSaveData done [21:42:11]ExternCall_PrintAddStr [21:42:11]wPrintStart [21:42:11]Write to MH i2c: 01 00 00 E0 2D 0D [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 07 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 07 00 E0 2D 00 00 00 00 00 FF 0F 22 [21:42:11]RasterBufferAndPrint [21:42:11]line Счет N : (1)2886224 [21:42:11]line ИНН: 02508201610067 [21:42:11]line Контрольно-Кассовый Чек [21:42:11]line ПРОДАЖА [21:42:11]line ТРК (МРК, ГНК) : 42 [21:42:11]line Товар: 2710124130 [21:42:11]line Аи-92-К-5 [21:42:11]line 40.000 * 0.00 [21:42:11]line = 0.00 [21:42:11]line НДС 12% НСП 1% [21:42:11]line > о реализуемом товаре [21:42:11]line ИТОГО: 0.00 [21:42:11]line НСП 1% : 0.00 [21:42:11]line НДС 12% : 0.00 [21:42:11]line Наличными: 0.00 [21:42:11]line Безнал.: 0.00 [21:42:11]line Место: АЗС № 85 "Партнер Нефть" [21:42:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:42:11]line СНО: Общий режим [21:42:11]line Чек 403 22.10.2024 21:42 [21:42:11]line Смена: 195 ФФД: 1.0 [21:42:11]line ЗНМ: 0300000167 [21:42:11]line РНМ: 0000000000156251 [21:42:11]line Версия ККМ: v1.0 [21:42:11]line Талоны: ТК ГПНА Online [21:42:11]line 30025748 [21:42:11]line ФМ: 0000000000963346 [21:42:11]line ФД: 70455 [21:42:11]line ФПД: 53342151626129 [21:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70455&fm=53342151626129&tin=02508201610067®Number=0000000000156251&sum=0 [21:42:12]OFD Sender: Processing packet 70455 [packets to send 18, broken 17] [21:42:12]ProducePacketName [21:42:12]name=ofd_packets/00070455 [21:42:12]OFD Sender: To server: pG, [21:42:12]CommunicateWithHost lk.salyk.kg:30040 [21:42:12]ConnectInit lk.salyk.kg [21:42:12]written 0, free lines is 4095 [21:42:12]Connected sock=10 [21:42: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 34 36 0F 01 00 00 58 E7 07 01 C6 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 40 9C 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 93 01 00 00 F4 03 04 00 33 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 13 01 00 35 04 06 00 30 83 AF FF CD 91 9E C0 98 DF 4E 94 91 7C [21:42: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 34 36 4F 00 00 00 C6 89 47 00 32 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 34 36 10 04 04 00 37 13 01 00 F4 03 04 00 D3 C5 17 67 B6 04 01 00 00 2E 05 6F F7 83 3F B5 D9 [21:42:12]CommunicateWithHost err = 0 [21:42:12]CheckOFDResponse [21:42:12]1017 (14) - 77093643461234 [21:42:12]1041 (16) - 0000000000963346 [21:42:12]1040 (4) - 70455 [21:42:12]1012 (4) - 22.10.2024 15:33 [21:42:12]1206 (1) - 0 [21:42:12]OFD Sender: Remove packet 70455 [21:42:12]ProducePacketName [21:42:12]name=ofd_packets/00070455 [21:42:12]NVStorageDeleteData [21:42:12]Write to MH i2c: 01 00 00 0A 2E 38 [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: 01 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: 01 07 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: 01 07 00 0A 2E 00 00 00 00 00 EC 0C 37 [21:42:12]RasterBufferAndPrint [21:42:12]line [21:42:12]line [21:42:12]line [21:42:12]line [21:42:12]line [21:42:12]written 0, free lines is 3315 [21:42:12]MH_Cut [21:42:12]Write to MH i2c: D1 01 00 11 2E 01 11 [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: D1 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: D1 01 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: D1 01 00 11 2E 00 10 [21:42:12]Write to MH i2c: 01 00 00 12 2E 40 [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]OFD Sender: No OFD packet to send [21:42:13]*** Cut start [21:42:13]*** Partial cut [21:42:13]*** CUTSNS_PIN = 1 [21:42:13]*** CUTSNS_PIN = 0 [21:42:13]*** Brake cut motor [21:42:13]Read from MH i2c: 01 [21:42:13]MH_I2C_Read... [21:42:13]*** Stop cut motor [21:42:13]*** Cut end [21:42:13]Read from MH i2c: 01 07 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: 01 07 00 12 2E 00 00 00 00 00 FF 0F 55 [21:42:13]process_action close_receipt done [21:42:13]requested_data is exist [21:42:13]produce_requested_data [21:42:13]requested_item fm.sn is exist - process it [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 11 00 00 [21:42:13]Write to MH i2c: E2 08 00 13 2E 80 11 00 00 00 00 00 00 BB [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 13 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [21:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:42:13]wFMCommunicate OK [21:42:13]requested_item fd.num is exist - process it [21:42:13]SAM_PROTO_GetFieldsCounters [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 13 00 00 [21:42:13]Write to MH i2c: E2 08 00 14 2E 80 13 00 00 00 00 00 00 BE [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 62 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 62 00 14 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [21:42: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:14]wFMCommunicate OK [21:42:14]SAM_PROTO_GetFieldsCounters done [21:42:14]requested_item shift.num is exist - process it [21:42:14]requested_item shift.opened is exist - process it [21:42:14]req_shift_opened [21:42:14]FM_GetShiftState [21:42:14]SAM_PROTO_GetShiftState [21:42:14]wFMCommunicate request_size=4 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 13 01 00 [21:42:14]Write to MH i2c: E2 08 00 15 2E 80 13 01 00 00 00 00 00 C0 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 0E 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 0E 00 15 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AE [21:42:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:42:14]wFMCommunicate OK [21:42:14]SAM_PROTO_GetShiftState done [21:42:14]FM_GetShiftState done [21:42:14]req_shift_opened done [21:42:14]requested_item shift.open_date is exist - process it [21:42:14]req_shift_open_date [21:42:14]req_shift_open_date done [21:42:14]produce_requested_data done [21:42:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70455,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:42:14]process_action_free close_receipt [21:42:14]json_value_free [21:42:14]json_value_free done [21:42:14]process_json_proto returns [21:42:14]Send response to host [21:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70455,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:42:14]free response buf [21:42:14]execute_script done [21:42:14]execute_script returns [21:42:14]free content buf [21:42:14]Sock 9.Close socket [21:42:14]Sock 9.Thread stoped [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:05]accept exits with 7 [21:43:05]New connection [21:43:05]New thread 3066555748 created [21:43:05]Thread 3066699108 joined [21:43:05]Waiting for new connection... [21:43:05] Sock 7.Parse request [21:43:05]Sock 7.Check first char [21:43:05]Sock 7.First char is OK [21:43:05]request: POST /json_proto HTTP/1.0 [21:43:05]Method: POST [21:43:05]URL: /json_proto [21:43:05]Method is POST - this is cgi request [21:43:05]url: /json_proto [21:43:05]query_string will be loaded in cgi processing [21:43:05]execute_cgi json_proto POST (null) [21:43:05]execute_cgi path=json_proto method=POST [21:43:05]POST find Content-Length [21:43:05]Host: 172.17.50.3:8080 [21:43:05]Content-Length: 678 [21:43:05]Content-Type: application/json [21:43:05] [21:43:05]POST finish read [21:43:05]Found Content-Length = 678 [21:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:43:05]execute_script... [21:43:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:43:05]POST & json_proto [21:43:05]process_json_proto [21:43:05]json parsed OK: [21:43:05]protocol is kg_v1.0 [21:43:05]action value=close_receipt [21:43:05]process_action close_receipt [21:43:05]cmd_close_receipt [21:43:05]MH_GetDate [21:43:05]Write to MH i2c: F0 00 00 16 2E 33 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 09 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 09 00 16 2E 00 6A 1C 18 67 6B 98 1E 66 C8 [21:43:05]GetLastDocTimeStamp 1729633331 [21:43:05]current date 1729633386 [21:43:05]FM_GetShiftState [21:43:05]SAM_PROTO_GetShiftState [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 13 01 00 [21:43:05]Write to MH i2c: E2 08 00 17 2E 80 13 01 00 00 00 00 00 C2 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 17 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B0 [21:43:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:43:05]wFMCommunicate OK [21:43:05]SAM_PROTO_GetShiftState done [21:43:05]FM_GetShiftState done [21:43:05]opened in 1729555832 [21:43:05]opened+sec_in_day 1729642232 [21:43:05]quantity*price = 50041 [21:43:05]sum+1 = 50042 [21:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 404 22.10.2024 21:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70456 ФПД: 75022556196225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214307&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70456&fm=75022556196225&tin=02508201610067®Number=0000000000156251&sum=50000 [21:43:06]StoreToDocumentArchive [21:43:06]shift 195 fd 70456 [21:43:06]save to /storage/0195/doc_00070456 [21:43:06]save last doc name /storage/0195/doc_00070456 to /storage/kkm_last_doc_name [21:43:06]save OK [21:43:06]Clear old archive folders... [21:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:06]tlvbuf is B6D6A0C0 [21:43:06]SAM_PROTO_ClearQueue [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 09 00 00 [21:43:06]Write to MH i2c: E2 08 00 24 2E 80 09 00 00 00 00 00 00 C4 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 24 2E 00 90 00 C6 [21:43:06]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]SAM_PROTO_ClearQueue done [21:43:06]KKMCreateOFDPacket [21:43:06]OFDProtocolAddRootSTLVToBuf [21:43:06]FM_MakeSignedData [21:43:06]FM_MakeSignedData [21:43:06]SAM_PROTO_SignData [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 0D 01 02 [21:43:06]Write to MH i2c: E2 08 00 25 2E 80 0D 01 02 00 00 00 00 CC [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 25 2E 00 90 00 C7 [21:43:06]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]wFMCommunicate request_size=255 [21:43:06]MH_SAM_APDU [21:43:06]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 94 01 00 00 F4 03 04 00 6B 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 13 01 00 35 04 06 00 44 [21:43:06]Write to MH i2c: E2 02 01 26 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 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 94 01 00 00 F4 03 04 00 6B 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 13 01 00 35 04 06 00 44 00 00 43 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 26 2E 00 90 00 C8 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=10 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 02 02 05 3B 8C CF ED 81 [21:43:07]Write to MH i2c: E2 0D 00 27 2E 80 0D 02 02 05 00 3B 8C CF ED 81 00 00 DD [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 27 2E 00 90 00 C9 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 03 02 [21:43:07]Write to MH i2c: E2 08 00 28 2E 80 0D 03 02 00 00 00 00 D1 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 28 2E 00 E6 86 79 7B AC 9C 6F 8E 90 00 77 [21:43:07]RAPDU: E6 86 79 7B AC 9C 6F 8E 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_SignData done [21:43:07]FM_MakeSignedData done [21:43:07]CreateOFDProtocolMessage [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 29 2E 80 11 00 00 00 00 00 00 D1 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 29 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [21:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:43:07]wFMCommunicate OK [21:43:07]CreateOFDProtocolMessage done [21:43:07]OFDSenderStorePacket 70456 [21:43:07]StoreOFDPacket docnum=70456 [21:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6C 31 07 01 EE 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 94 01 00 00 F4 03 04 00 6B 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 13 01 00 35 04 06 00 44 3B 8C CF ED 81 E6 86 79 7B AC 9C 6F 8E [21:43:07]CheckFolder [21:43:07]dirname=/storage/ofd_packets [21:43:07]CheckFolder done [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00070456 [21:43:07]NVStorageSaveData ofd_packets/00070456 [21:43:07]File name is /storage/ofd_packets/00070456 [21:43:07]Write 301 bytes [21:43:07]NVStorageSaveData done [21:43:07]OFDSenderStorePacket done [21:43:07]KKMCreateOFDPacket done [21:43:07]NVStorageSaveData kkm_last_timestamp [21:43:07]File name is /storage/kkm_last_timestamp [21:43:07]Write 4 bytes [21:43:07]NVStorageSaveData done [21:43:07]ExternCall_PrintAddStr [21:43:07]wPrintStart [21:43:07]Write to MH i2c: 01 00 00 2A 2E 58 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 2A 2E 00 00 00 00 00 FF 0F 6D [21:43:07]RasterBufferAndPrint [21:43:07]line Счет N : (1)2886225 [21:43:07]line ИНН: 02508201610067 [21:43:07]line Контрольно-Кассовый Чек [21:43:07]line ПРОДАЖА [21:43:07]line ТРК (МРК, ГНК) : 32 [21:43:07]line Товар: 2710124130 [21:43:07]line Аи-92-К-5 [21:43:07]line 7.480 * 66.90 [21:43:07]line = 500.41 [21:43:07]line НДС 12% НСП 1% [21:43:07]line > о реализуемом товаре [21:43:07]line ОКРУГЛЕНИЕ: -0.41 [21:43:07]line ИТОГО: 500.00 [21:43:07]line Внесено: 500.00 [21:43:07]line СДАЧА: 0.00 [21:43:07]line НСП 1% : 4.43 [21:43:07]line НДС 12% : 53.14 [21:43:07]line Наличными: 500.00 [21:43:07]line Безнал.: 0.00 [21:43:07]line Место: АЗС № 85 "Партнер Нефть" [21:43:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:43:07]line СНО: Общий режим [21:43:07]line Чек 404 22.10.2024 21:43 [21:43:07]line Смена: 195 ФФД: 1.0 [21:43:07]line ЗНМ: 0300000167 [21:43:07]line РНМ: 0000000000156251 [21:43:07]line Версия ККМ: v1.0 [21:43:07]line ФМ: 0000000000963346 [21:43:07]line ФД: 70456 [21:43:07]line ФПД: 75022556196225 [21:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214307&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70456&fm=75022556196225&tin=02508201610067®Number=0000000000156251&sum=50000 [21:43:07]OFD Sender: Processing packet 70456 [packets to send 18, broken 17] [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00070456 [21:43:07]OFD Sender: To server: pG, [21:43:07]CommunicateWithHost lk.salyk.kg:30040 [21:43:07]ConnectInit lk.salyk.kg [21:43:07]written 0, free lines is 4095 [21:43:07]Connected sock=10 [21:43: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 34 36 0F 01 00 00 6C 31 07 01 EE 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 94 01 00 00 F4 03 04 00 6B 1C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 13 01 00 35 04 06 00 44 3B 8C CF ED 81 E6 86 79 7B AC 9C 6F 8E [21:43: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 34 36 4F 00 00 00 AE F6 47 00 E7 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 34 36 10 04 04 00 38 13 01 00 F4 03 04 00 0A C6 17 67 B6 04 01 00 00 55 DE 62 65 5C 82 0B BE [21:43:07]CommunicateWithHost err = 0 [21:43:07]CheckOFDResponse [21:43:07]1017 (14) - 77093643461234 [21:43:07]1041 (16) - 0000000000963346 [21:43:07]1040 (4) - 70456 [21:43:07]1012 (4) - 22.10.2024 15:34 [21:43:07]1206 (1) - 0 [21:43:07]OFD Sender: Remove packet 70456 [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00070456 [21:43:07]NVStorageDeleteData [21:43:08]Write to MH i2c: 01 00 00 55 2E 83 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 07 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 07 00 55 2E 00 00 00 00 00 DF 0C 75 [21:43:08]RasterBufferAndPrint [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]written 0, free lines is 3304 [21:43:08]MH_Cut [21:43:08]Write to MH i2c: D1 01 00 5C 2E 01 5C [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 01 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 01 00 5C 2E 00 5B [21:43:08]Write to MH i2c: 01 00 00 5D 2E 8B [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]OFD Sender: No OFD packet to send [21:43:08]*** Cut start [21:43:08]*** Partial cut [21:43:08]*** CUTSNS_PIN = 1 [21:43:08]*** CUTSNS_PIN = 0 [21:43:08]*** Brake cut motor [21:43:09]Read from MH i2c: 01 [21:43:09]MH_I2C_Read... [21:43:09]*** Stop cut motor [21:43:09]*** Cut end [21:43:09]Read from MH i2c: 01 07 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: 01 07 00 5D 2E 00 00 00 00 00 FF 0F A0 [21:43:09]process_action close_receipt done [21:43:09]requested_data is exist [21:43:09]produce_requested_data [21:43:09]requested_item fm.sn is exist - process it [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 11 00 00 [21:43:09]Write to MH i2c: E2 08 00 5E 2E 80 11 00 00 00 00 00 00 06 [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 17 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 17 00 5E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [21:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:43:09]wFMCommunicate OK [21:43:09]requested_item fd.num is exist - process it [21:43:09]SAM_PROTO_GetFieldsCounters [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 13 00 00 [21:43:09]Write to MH i2c: E2 08 00 5F 2E 80 13 00 00 00 00 00 00 09 [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 62 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 62 00 5F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:43: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:09]wFMCommunicate OK [21:43:09]SAM_PROTO_GetFieldsCounters done [21:43:09]requested_item shift.num is exist - process it [21:43:09]requested_item shift.opened is exist - process it [21:43:09]req_shift_opened [21:43:09]FM_GetShiftState [21:43:09]SAM_PROTO_GetShiftState [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 13 01 00 [21:43:09]Write to MH i2c: E2 08 00 60 2E 80 13 01 00 00 00 00 00 0B [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 0E 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 0E 00 60 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [21:43:09]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:43:09]wFMCommunicate OK [21:43:09]SAM_PROTO_GetShiftState done [21:43:09]FM_GetShiftState done [21:43:09]req_shift_opened done [21:43:09]requested_item shift.open_date is exist - process it [21:43:09]req_shift_open_date [21:43:09]req_shift_open_date done [21:43:09]produce_requested_data done [21:43:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70456,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:43:09]process_action_free close_receipt [21:43:09]json_value_free [21:43:09]json_value_free done [21:43:09]process_json_proto returns [21:43:09]Send response to host [21:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70456,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:43:09]free response buf [21:43:09]execute_script done [21:43:09]execute_script returns [21:43:09]free content buf [21:43:09]Sock 7.Close socket [21:43:09]Sock 7.Thread stoped [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]accept exits with 9 [21:50:28]New connection [21:50:28]New thread 3066699108 created [21:50:28]Thread 3066555748 joined [21:50:28]Waiting for new connection... [21:50:28] Sock 9.Parse request [21:50:28]Sock 9.Check first char [21:50:28]Sock 9.First char is OK [21:50:28]request: POST /json_proto HTTP/1.0 [21:50:28]Method: POST [21:50:28]URL: /json_proto [21:50:28]Method is POST - this is cgi request [21:50:28]url: /json_proto [21:50:28]query_string will be loaded in cgi processing [21:50:28]execute_cgi json_proto POST (null) [21:50:28]execute_cgi path=json_proto method=POST [21:50:28]POST find Content-Length [21:50:28]Host: 172.17.50.3:8080 [21:50:28]Content-Length: 767 [21:50:28]Content-Type: application/json [21:50:28] [21:50:28]POST finish read [21:50:28]Found Content-Length = 767 [21:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:50:28]execute_script... [21:50: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)2886226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [21:50:28]POST & json_proto [21:50:28]process_json_proto [21:50:28]json parsed OK: [21:50:28]protocol is kg_v1.0 [21:50:28]action value=close_receipt [21:50:28]process_action close_receipt [21:50:28]cmd_close_receipt [21:50:28]MH_GetDate [21:50:28]Write to MH i2c: F0 00 00 61 2E 7E [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: F0 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: F0 09 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: F0 09 00 61 2E 00 26 1E 18 67 6B 98 1E 66 D1 [21:50:28]GetLastDocTimeStamp 1729633387 [21:50:28]current date 1729633830 [21:50:28]FM_GetShiftState [21:50:28]SAM_PROTO_GetShiftState [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 13 01 00 [21:50:28]Write to MH i2c: E2 08 00 62 2E 80 13 01 00 00 00 00 00 0D [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0E 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0E 00 62 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [21:50:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:50:28]wFMCommunicate OK [21:50:28]SAM_PROTO_GetShiftState done [21:50:28]FM_GetShiftState done [21:50:28]opened in 1729555832 [21:50:28]opened+sec_in_day 1729642232 [21:50:28]quantity*price = 50041 [21:50:28]sum+1 = 50042 [21:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 405 22.10.2024 21:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70457 ФПД: 186941931617427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70457&fm=186941931617427&tin=02508201610067®Number=0000000000156251&sum=50041 [21:50:29]StoreToDocumentArchive [21:50:29]shift 195 fd 70457 [21:50:29]save to /storage/0195/doc_00070457 [21:50:29]save last doc name /storage/0195/doc_00070457 to /storage/kkm_last_doc_name [21:50:29]save OK [21:50:29]Clear old archive folders... [21:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:29]tlvbuf is B6D6A190 [21:50:29]SAM_PROTO_ClearQueue [21:50:29]wFMCommunicate request_size=4 [21:50:29]MH_SAM_APDU [21:50:29]CAPDU: 80 09 00 00 [21:50:29]Write to MH i2c: E2 08 00 6F 2E 80 09 00 00 00 00 00 00 0F [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:29]Read from MH i2c: E2 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: E2 03 00 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: E2 03 00 6F 2E 00 90 00 11 [21:50:29]RAPDU: 90 00 [21:50:29]wFMCommunicate OK [21:50:29]SAM_PROTO_ClearQueue done [21:50:29]KKMCreateOFDPacket [21:50:29]OFDProtocolAddRootSTLVToBuf [21:50:29]FM_MakeSignedData [21:50:29]FM_MakeSignedData [21:50:29]SAM_PROTO_SignData [21:50:29]wFMCommunicate request_size=4 [21:50:29]MH_SAM_APDU [21:50:29]CAPDU: 80 0D 01 02 [21:50:29]Write to MH i2c: E2 08 00 70 2E 80 0D 01 02 00 00 00 00 17 [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:29]Read from MH i2c: E2 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: E2 03 00 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: E2 03 00 70 2E 00 90 00 12 [21:50:29]RAPDU: 90 00 [21:50:29]wFMCommunicate OK [21:50:29]wFMCommunicate request_size=255 [21:50:29]MH_SAM_APDU [21:50: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 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 95 01 00 00 F4 03 04 00 26 1E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 13 01 00 35 04 06 00 AA [21:50:29]Write to MH i2c: E2 02 01 71 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 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 95 01 00 00 F4 03 04 00 26 1E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 13 01 00 35 04 06 00 AA 00 00 05 [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 03 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 03 00 71 2E 00 90 00 13 [21:50:30]RAPDU: 90 00 [21:50:30]wFMCommunicate OK [21:50:30]wFMCommunicate request_size=10 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 0D 02 02 05 05 CF 6D 7C 93 [21:50:30]Write to MH i2c: E2 0D 00 72 2E 80 0D 02 02 05 00 05 CF 6D 7C 93 00 00 74 [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 03 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 03 00 72 2E 00 90 00 14 [21:50:30]RAPDU: 90 00 [21:50:30]wFMCommunicate OK [21:50:30]wFMCommunicate request_size=4 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 0D 03 02 [21:50:30]Write to MH i2c: E2 08 00 73 2E 80 0D 03 02 00 00 00 00 1C [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 0B 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 0B 00 73 2E 00 55 12 99 D2 6D 59 B4 2B 90 00 94 [21:50:30]RAPDU: 55 12 99 D2 6D 59 B4 2B 90 00 [21:50:30]wFMCommunicate OK [21:50:30]SAM_PROTO_SignData done [21:50:30]FM_MakeSignedData done [21:50:30]CreateOFDProtocolMessage [21:50:30]wFMCommunicate request_size=4 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 11 00 00 [21:50:30]Write to MH i2c: E2 08 00 74 2E 80 11 00 00 00 00 00 00 1C [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 17 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 17 00 74 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [21:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:50:30]wFMCommunicate OK [21:50:30]CreateOFDProtocolMessage done [21:50:30]OFDSenderStorePacket 70457 [21:50:30]StoreOFDPacket docnum=70457 [21:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8C E8 07 01 D2 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 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 95 01 00 00 F4 03 04 00 26 1E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 13 01 00 35 04 06 00 AA 05 CF 6D 7C 93 55 12 99 D2 6D 59 B4 2B [21:50:30]CheckFolder [21:50:30]dirname=/storage/ofd_packets [21:50:30]CheckFolder done [21:50:30]ProducePacketName [21:50:30]name=ofd_packets/00070457 [21:50:30]NVStorageSaveData ofd_packets/00070457 [21:50:30]File name is /storage/ofd_packets/00070457 [21:50:30]Write 301 bytes [21:50:30]NVStorageSaveData done [21:50:30]OFDSenderStorePacket done [21:50:30]KKMCreateOFDPacket done [21:50:30]NVStorageSaveData kkm_last_timestamp [21:50:30]File name is /storage/kkm_last_timestamp [21:50:30]Write 4 bytes [21:50:30]NVStorageSaveData done [21:50:30]ExternCall_PrintAddStr [21:50:30]wPrintStart [21:50:30]Write to MH i2c: 01 00 00 75 2E A3 [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: 01 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: 01 07 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: 01 07 00 75 2E 00 00 00 00 00 FF 0F B8 [21:50:30]RasterBufferAndPrint [21:50:30]line Счет N : (1)2886226 [21:50:30]line ИНН: 02508201610067 [21:50:30]line Контрольно-Кассовый Чек [21:50:30]line ПРОДАЖА [21:50:30]line ТРК (МРК, ГНК) : 32 [21:50:30]line Товар: 2710124130 [21:50:30]line Аи-92-К-5 [21:50:30]line 7.480 * 66.90 [21:50:30]line = 500.41 [21:50:30]line НДС 12% НСП 1% [21:50:30]line > о реализуемом товаре [21:50:30]line ИТОГО: 500.41 [21:50:30]line НСП 1% : 4.43 [21:50:30]line НДС 12% : 53.14 [21:50:30]line Наличными: 0.00 [21:50:30]line Безнал.: 500.41 [21:50:30]line Место: АЗС № 85 "Партнер Нефть" [21:50:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:50:30]line СНО: Общий режим [21:50:30]line Чек 405 22.10.2024 21:50 [21:50:30]line Смена: 195 ФФД: 1.0 [21:50:30]line ЗНМ: 0300000167 [21:50:30]line РНМ: 0000000000156251 [21:50:30]line Версия ККМ: v1.0 [21:50:30]line Платежная система: Mbank [21:50:30]line ФМ: 0000000000963346 [21:50:30]line ФД: 70457 [21:50:30]line ФПД: 186941931617427 [21:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70457&fm=186941931617427&tin=02508201610067®Number=0000000000156251&sum=50041 [21:50:30]OFD Sender: Processing packet 70457 [packets to send 18, broken 17] [21:50:30]ProducePacketName [21:50:30]name=ofd_packets/00070457 [21:50:30]OFD Sender: To server: pG, [21:50:30]CommunicateWithHost lk.salyk.kg:30040 [21:50:30]ConnectInit lk.salyk.kg [21:50:30]written 0, free lines is 4095 [21:50:30]Connected sock=10 [21:50: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 34 36 0F 01 00 00 8C E8 07 01 D2 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 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 95 01 00 00 F4 03 04 00 26 1E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 13 01 00 35 04 06 00 AA 05 CF 6D 7C 93 55 12 99 D2 6D 59 B4 2B [21:50: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 34 36 4F 00 00 00 70 AF 47 00 8E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 13 01 00 F4 03 04 00 C5 C7 17 67 B6 04 01 00 00 1D 17 4C 4D 07 29 F8 EA [21:50:30]CommunicateWithHost err = 0 [21:50:30]CheckOFDResponse [21:50:30]1017 (14) - 77093643461234 [21:50:30]1041 (16) - 0000000000963346 [21:50:30]1040 (4) - 70457 [21:50:30]1012 (4) - 22.10.2024 15:41 [21:50:30]1206 (1) - 0 [21:50:30]OFD Sender: Remove packet 70457 [21:50:30]ProducePacketName [21:50:30]name=ofd_packets/00070457 [21:50:30]NVStorageDeleteData [21:50:31]Write to MH i2c: 01 00 00 9E 2E CC [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: 01 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: 01 07 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: 01 07 00 9E 2E 00 00 00 00 00 1C 0D FC [21:50:31]RasterBufferAndPrint [21:50:31]line [21:50:31]line [21:50:31]line [21:50:31]line [21:50:31]line [21:50:31]written 0, free lines is 3365 [21:50:31]MH_Cut [21:50:31]Write to MH i2c: D1 01 00 A5 2E 01 A5 [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: D1 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: D1 01 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: D1 01 00 A5 2E 00 A4 [21:50:31]Write to MH i2c: 01 00 00 A6 2E D4 [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]OFD Sender: No OFD packet to send [21:50:31]*** Cut start [21:50:31]*** Partial cut [21:50:31]*** CUTSNS_PIN = 1 [21:50:31]*** CUTSNS_PIN = 0 [21:50:32]*** Brake cut motor [21:50:32]Read from MH i2c: 01 [21:50:32]MH_I2C_Read... [21:50:32]*** Stop cut motor [21:50:32]*** Cut end [21:50:32]Read from MH i2c: 01 07 00 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: 01 07 00 A6 2E 00 00 00 00 00 FF 0F E9 [21:50:32]process_action close_receipt done [21:50:32]requested_data is exist [21:50:32]produce_requested_data [21:50:32]requested_item fm.sn is exist - process it [21:50:32]wFMCommunicate request_size=4 [21:50:32]MH_SAM_APDU [21:50:32]CAPDU: 80 11 00 00 [21:50:32]Write to MH i2c: E2 08 00 A7 2E 80 11 00 00 00 00 00 00 4F [21:50:32]Write i2c OK [21:50:32]MH_I2C_Read... [21:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:32]Read from MH i2c: E2 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 17 00 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 17 00 A7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [21:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:50:32]wFMCommunicate OK [21:50:32]requested_item fd.num is exist - process it [21:50:32]SAM_PROTO_GetFieldsCounters [21:50:32]wFMCommunicate request_size=4 [21:50:32]MH_SAM_APDU [21:50:32]CAPDU: 80 13 00 00 [21:50:32]Write to MH i2c: E2 08 00 A8 2E 80 13 00 00 00 00 00 00 52 [21:50:32]Write i2c OK [21:50:32]MH_I2C_Read... [21:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:32]Read from MH i2c: E2 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 62 00 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 62 00 A8 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [21:50: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:32]wFMCommunicate OK [21:50:32]SAM_PROTO_GetFieldsCounters done [21:50:32]requested_item shift.num is exist - process it [21:50:32]requested_item shift.opened is exist - process it [21:50:32]req_shift_opened [21:50:32]FM_GetShiftState [21:50:32]SAM_PROTO_GetShiftState [21:50:32]wFMCommunicate request_size=4 [21:50:32]MH_SAM_APDU [21:50:32]CAPDU: 80 13 01 00 [21:50:32]Write to MH i2c: E2 08 00 A9 2E 80 13 01 00 00 00 00 00 54 [21:50:32]Write i2c OK [21:50:32]MH_I2C_Read... [21:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:32]Read from MH i2c: E2 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 0E 00 [21:50:32]MH_I2C_Read... [21:50:32]Read from MH i2c: E2 0E 00 A9 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 42 [21:50:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:50:32]wFMCommunicate OK [21:50:32]SAM_PROTO_GetShiftState done [21:50:32]FM_GetShiftState done [21:50:32]req_shift_opened done [21:50:32]requested_item shift.open_date is exist - process it [21:50:32]req_shift_open_date [21:50:32]req_shift_open_date done [21:50:32]produce_requested_data done [21:50:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70457,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:50:32]process_action_free close_receipt [21:50:32]json_value_free [21:50:32]json_value_free done [21:50:32]process_json_proto returns [21:50:32]Send response to host [21:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70457,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:50:32]free response buf [21:50:32]execute_script done [21:50:32]execute_script returns [21:50:32]free content buf [21:50:32]Sock 9.Close socket [21:50:32]Sock 9.Thread stoped [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:24]accept exits with 7 [21:55:24]New connection [21:55:24]New thread 3066555748 created [21:55:24]Thread 3066699108 joined [21:55:24]Waiting for new connection... [21:55:24] Sock 7.Parse request [21:55:24]Sock 7.Check first char [21:55:24]Sock 7.First char is OK [21:55:24]request: POST /json_proto HTTP/1.0 [21:55:24]Method: POST [21:55:24]URL: /json_proto [21:55:24]Method is POST - this is cgi request [21:55:24]url: /json_proto [21:55:24]query_string will be loaded in cgi processing [21:55:24]execute_cgi json_proto POST (null) [21:55:24]execute_cgi path=json_proto method=POST [21:55:24]POST find Content-Length [21:55:24]Host: 172.17.50.3:8080 [21:55:24]Content-Length: 767 [21:55:24]Content-Type: application/json [21:55:24] [21:55:24]POST finish read [21:55:24]Found Content-Length = 767 [21:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "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.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:24]execute_script... [21:55: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)2886227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "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.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:24]POST & json_proto [21:55:24]process_json_proto [21:55:24]json parsed OK: [21:55:24]protocol is kg_v1.0 [21:55:24]action value=close_receipt [21:55:24]process_action close_receipt [21:55:24]cmd_close_receipt [21:55:24]MH_GetDate [21:55:24]Write to MH i2c: F0 00 00 AA 2E C7 [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: F0 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: F0 09 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: F0 09 00 AA 2E 00 4D 1F 18 67 6B 98 1E 66 42 [21:55:24]GetLastDocTimeStamp 1729633830 [21:55:24]current date 1729634125 [21:55:24]FM_GetShiftState [21:55:24]SAM_PROTO_GetShiftState [21:55:24]wFMCommunicate request_size=4 [21:55:24]MH_SAM_APDU [21:55:24]CAPDU: 80 13 01 00 [21:55:24]Write to MH i2c: E2 08 00 AB 2E 80 13 01 00 00 00 00 00 56 [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:24]Read from MH i2c: E2 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 0E 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 0E 00 AB 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [21:55:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:55:24]wFMCommunicate OK [21:55:24]SAM_PROTO_GetShiftState done [21:55:24]FM_GetShiftState done [21:55:24]opened in 1729555832 [21:55:24]opened+sec_in_day 1729642232 [21:55:24]quantity*price = 50010 [21:55:24]sum+1 = 50012 [21:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 406 22.10.2024 21:55 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70458 ФПД: 235437783125327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70458&fm=235437783125327&tin=02508201610067®Number=0000000000156251&sum=50011 [21:55:25]StoreToDocumentArchive [21:55:25]shift 195 fd 70458 [21:55:25]save to /storage/0195/doc_00070458 [21:55:25]save last doc name /storage/0195/doc_00070458 to /storage/kkm_last_doc_name [21:55:25]save OK [21:55:25]Clear old archive folders... [21:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:25]tlvbuf is 00ED4610 [21:55:25]SAM_PROTO_ClearQueue [21:55:25]wFMCommunicate request_size=4 [21:55:25]MH_SAM_APDU [21:55:25]CAPDU: 80 09 00 00 [21:55:25]Write to MH i2c: E2 08 00 B8 2E 80 09 00 00 00 00 00 00 58 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 B8 2E 00 90 00 5A [21:55:25]RAPDU: 90 00 [21:55:25]wFMCommunicate OK [21:55:25]SAM_PROTO_ClearQueue done [21:55:25]KKMCreateOFDPacket [21:55:25]OFDProtocolAddRootSTLVToBuf [21:55:25]FM_MakeSignedData [21:55:25]FM_MakeSignedData [21:55:25]SAM_PROTO_SignData [21:55:25]wFMCommunicate request_size=4 [21:55:25]MH_SAM_APDU [21:55:25]CAPDU: 80 0D 01 02 [21:55:25]Write to MH i2c: E2 08 00 B9 2E 80 0D 01 02 00 00 00 00 60 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 B9 2E 00 90 00 5B [21:55:25]RAPDU: 90 00 [21:55:25]wFMCommunicate OK [21:55:25]wFMCommunicate request_size=255 [21:55:25]MH_SAM_APDU [21:55: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 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 5B 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 4D 1F 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 13 01 00 35 04 06 00 D6 [21:55:25]Write to MH i2c: E2 02 01 BA 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 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 5B 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 4D 1F 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 13 01 00 35 04 06 00 D6 00 00 40 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 BA 2E 00 90 00 5C [21:55:25]RAPDU: 90 00 [21:55:25]wFMCommunicate OK [21:55:25]wFMCommunicate request_size=10 [21:55:25]MH_SAM_APDU [21:55:25]CAPDU: 80 0D 02 02 05 21 21 6E 0D 4F [21:55:25]Write to MH i2c: E2 0D 00 BB 2E 80 0D 02 02 05 00 21 21 6E 0D 4F 00 00 79 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 03 00 BB 2E 00 90 00 5D [21:55:25]RAPDU: 90 00 [21:55:25]wFMCommunicate OK [21:55:25]wFMCommunicate request_size=4 [21:55:25]MH_SAM_APDU [21:55:25]CAPDU: 80 0D 03 02 [21:55:25]Write to MH i2c: E2 08 00 BC 2E 80 0D 03 02 00 00 00 00 65 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 0B 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 0B 00 BC 2E 00 B9 2E 17 C2 1F 23 0D AA 90 00 1F [21:55:25]RAPDU: B9 2E 17 C2 1F 23 0D AA 90 00 [21:55:25]wFMCommunicate OK [21:55:25]SAM_PROTO_SignData done [21:55:25]FM_MakeSignedData done [21:55:25]CreateOFDProtocolMessage [21:55:25]wFMCommunicate request_size=4 [21:55:25]MH_SAM_APDU [21:55:25]CAPDU: 80 11 00 00 [21:55:25]Write to MH i2c: E2 08 00 BD 2E 80 11 00 00 00 00 00 00 65 [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:25]Read from MH i2c: E2 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 17 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: E2 17 00 BD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [21:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:55:25]wFMCommunicate OK [21:55:25]CreateOFDProtocolMessage done [21:55:25]OFDSenderStorePacket 70458 [21:55:25]StoreOFDPacket docnum=70458 [21:55:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A4 82 07 01 46 76 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 5B 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 4D 1F 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 13 01 00 35 04 06 00 D6 21 21 6E 0D 4F B9 2E 17 C2 1F 23 0D AA [21:55:25]CheckFolder [21:55:25]dirname=/storage/ofd_packets [21:55:25]CheckFolder done [21:55:25]ProducePacketName [21:55:25]name=ofd_packets/00070458 [21:55:25]NVStorageSaveData ofd_packets/00070458 [21:55:25]File name is /storage/ofd_packets/00070458 [21:55:25]Write 301 bytes [21:55:25]NVStorageSaveData done [21:55:25]OFDSenderStorePacket done [21:55:25]KKMCreateOFDPacket done [21:55:25]NVStorageSaveData kkm_last_timestamp [21:55:25]File name is /storage/kkm_last_timestamp [21:55:25]Write 4 bytes [21:55:25]NVStorageSaveData done [21:55:25]ExternCall_PrintAddStr [21:55:25]wPrintStart [21:55:25]Write to MH i2c: 01 00 00 BE 2E EC [21:55:25]Write i2c OK [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: 01 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: 01 07 00 [21:55:25]MH_I2C_Read... [21:55:25]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 FF 0F 01 [21:55:25]RasterBufferAndPrint [21:55:25]line Счет N : (1)2886227 [21:55:25]line ИНН: 02508201610067 [21:55:25]line Контрольно-Кассовый Чек [21:55:25]line ПРОДАЖА [21:55:25]line ТРК (МРК, ГНК) : 23 [21:55:25]line Товар: 2710124500 [21:55:25]line Аи-95-К-5 [21:55:25]line 6.740 * 74.20 [21:55:25]line = 500.11 [21:55:25]line НДС 12% НСП 1% [21:55:25]line > о реализуемом товаре [21:55:25]line ИТОГО: 500.11 [21:55:25]line НСП 1% : 4.43 [21:55:25]line НДС 12% : 53.11 [21:55:25]line Наличными: 0.00 [21:55:25]line Безнал.: 500.11 [21:55:25]line Место: АЗС № 85 "Партнер Нефть" [21:55:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:55:25]line СНО: Общий режим [21:55:25]line Чек 406 22.10.2024 21:55 [21:55:25]line Смена: 195 ФФД: 1.0 [21:55:25]line ЗНМ: 0300000167 [21:55:25]line РНМ: 0000000000156251 [21:55:25]line Версия ККМ: v1.0 [21:55:25]line Платежная система: Mbank [21:55:25]line ФМ: 0000000000963346 [21:55:25]line ФД: 70458 [21:55:25]line ФПД: 235437783125327 [21:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70458&fm=235437783125327&tin=02508201610067®Number=0000000000156251&sum=50011 [21:55:26]OFD Sender: Processing packet 70458 [packets to send 18, broken 17] [21:55:26]ProducePacketName [21:55:26]name=ofd_packets/00070458 [21:55:26]OFD Sender: To server: pG, [21:55:26]CommunicateWithHost lk.salyk.kg:30040 [21:55:26]ConnectInit lk.salyk.kg [21:55:26]written 0, free lines is 4095 [21:55:26]Connected sock=10 [21:55: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 34 36 0F 01 00 00 A4 82 07 01 46 76 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 5B 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 4D 1F 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 13 01 00 35 04 06 00 D6 21 21 6E 0D 4F B9 2E 17 C2 1F 23 0D AA [21:55: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 34 36 4F 00 00 00 1D 34 47 00 00 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 34 36 10 04 04 00 3A 13 01 00 F4 03 04 00 ED C8 17 67 B6 04 01 00 00 BF 74 D3 16 64 E7 76 6A [21:55:26]CommunicateWithHost err = 0 [21:55:26]CheckOFDResponse [21:55:26]1017 (14) - 77093643461234 [21:55:26]1041 (16) - 0000000000963346 [21:55:26]1040 (4) - 70458 [21:55:26]1012 (4) - 22.10.2024 15:46 [21:55:26]1206 (1) - 0 [21:55:26]OFD Sender: Remove packet 70458 [21:55:26]ProducePacketName [21:55:26]name=ofd_packets/00070458 [21:55:26]NVStorageDeleteData [21:55:26]Write to MH i2c: 01 00 00 E7 2E 15 [21:55:26]Write i2c OK [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: 01 [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: 01 07 00 [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 22 0D 4B [21:55:26]RasterBufferAndPrint [21:55:26]line [21:55:26]line [21:55:26]line [21:55:26]line [21:55:26]line [21:55:26]written 0, free lines is 3372 [21:55:26]MH_Cut [21:55:26]Write to MH i2c: D1 01 00 EE 2E 01 EE [21:55:26]Write i2c OK [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: D1 [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: D1 01 00 [21:55:26]MH_I2C_Read... [21:55:26]Read from MH i2c: D1 01 00 EE 2E 00 ED [21:55:26]Write to MH i2c: 01 00 00 EF 2E 1D [21:55:26]Write i2c OK [21:55:26]MH_I2C_Read... [21:55:27]OFD Sender: No OFD packet to send [21:55:27]*** Cut start [21:55:27]*** Partial cut [21:55:27]*** CUTSNS_PIN = 1 [21:55:27]*** CUTSNS_PIN = 0 [21:55:27]*** Brake cut motor [21:55:28]Read from MH i2c: 01 [21:55:28]MH_I2C_Read... [21:55:28]*** Stop cut motor [21:55:28]*** Cut end [21:55:28]Read from MH i2c: 01 07 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: 01 07 00 EF 2E 00 00 00 00 00 FF 0F 32 [21:55:28]process_action close_receipt done [21:55:28]requested_data is exist [21:55:28]produce_requested_data [21:55:28]requested_item fm.sn is exist - process it [21:55:28]wFMCommunicate request_size=4 [21:55:28]MH_SAM_APDU [21:55:28]CAPDU: 80 11 00 00 [21:55:28]Write to MH i2c: E2 08 00 F0 2E 80 11 00 00 00 00 00 00 98 [21:55:28]Write i2c OK [21:55:28]MH_I2C_Read... [21:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:28]Read from MH i2c: E2 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 17 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 17 00 F0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [21:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:55:28]wFMCommunicate OK [21:55:28]requested_item fd.num is exist - process it [21:55:28]SAM_PROTO_GetFieldsCounters [21:55:28]wFMCommunicate request_size=4 [21:55:28]MH_SAM_APDU [21:55:28]CAPDU: 80 13 00 00 [21:55:28]Write to MH i2c: E2 08 00 F1 2E 80 13 00 00 00 00 00 00 9B [21:55:28]Write i2c OK [21:55:28]MH_I2C_Read... [21:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:28]Read from MH i2c: E2 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 62 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 62 00 F1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [21:55: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:28]wFMCommunicate OK [21:55:28]SAM_PROTO_GetFieldsCounters done [21:55:28]requested_item shift.num is exist - process it [21:55:28]requested_item shift.opened is exist - process it [21:55:28]req_shift_opened [21:55:28]FM_GetShiftState [21:55:28]SAM_PROTO_GetShiftState [21:55:28]wFMCommunicate request_size=4 [21:55:28]MH_SAM_APDU [21:55:28]CAPDU: 80 13 01 00 [21:55:28]Write to MH i2c: E2 08 00 F2 2E 80 13 01 00 00 00 00 00 9D [21:55:28]Write i2c OK [21:55:28]MH_I2C_Read... [21:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:28]Read from MH i2c: E2 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 0E 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 0E 00 F2 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8B [21:55:28]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [21:55:28]wFMCommunicate OK [21:55:28]SAM_PROTO_GetShiftState done [21:55:28]FM_GetShiftState done [21:55:28]req_shift_opened done [21:55:28]requested_item shift.open_date is exist - process it [21:55:28]req_shift_open_date [21:55:28]req_shift_open_date done [21:55:28]produce_requested_data done [21:55:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70458,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [21:55:28]process_action_free close_receipt [21:55:28]json_value_free [21:55:28]json_value_free done [21:55:28]process_json_proto returns [21:55:28]Send response to host [21:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70458,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [21:55:28]free response buf [21:55:28]execute_script done [21:55:28]execute_script returns [21:55:28]free content buf [21:55:28]Sock 7.Close socket [21:55:28]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]accept exits with 9 [22:08:52]New connection [22:08:52]New thread 3066699108 created [22:08:52]Thread 3066555748 joined [22:08:52]Waiting for new connection... [22:08:52] Sock 9.Parse request [22:08:52]Sock 9.Check first char [22:08:52]Sock 9.First char is OK [22:08:52]request: POST /json_proto HTTP/1.0 [22:08:52]Method: POST [22:08:52]URL: /json_proto [22:08:52]Method is POST - this is cgi request [22:08:52]url: /json_proto [22:08:52]query_string will be loaded in cgi processing [22:08:52]execute_cgi json_proto POST (null) [22:08:52]execute_cgi path=json_proto method=POST [22:08:52]POST find Content-Length [22:08:52]Host: 172.17.50.3:8080 [22:08:52]Content-Length: 678 [22:08:52]Content-Type: application/json [22:08:52] [22:08:52]POST finish read [22:08:52]Found Content-Length = 678 [22:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [22:08:52]execute_script... [22:08: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)2886228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [22:08:52]POST & json_proto [22:08:52]process_json_proto [22:08:52]json parsed OK: [22:08:52]protocol is kg_v1.0 [22:08:52]action value=close_receipt [22:08:52]process_action close_receipt [22:08:52]cmd_close_receipt [22:08:52]MH_GetDate [22:08:52]Write to MH i2c: F0 00 00 F3 2E 10 [22:08:52]Write i2c OK [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: F0 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: F0 09 00 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: F0 09 00 F3 2E 00 75 22 18 67 6B 98 1E 66 B6 [22:08:52]GetLastDocTimeStamp 1729634125 [22:08:52]current date 1729634933 [22:08:52]FM_GetShiftState [22:08:52]SAM_PROTO_GetShiftState [22:08:52]wFMCommunicate request_size=4 [22:08:52]MH_SAM_APDU [22:08:52]CAPDU: 80 13 01 00 [22:08:52]Write to MH i2c: E2 08 00 F4 2E 80 13 01 00 00 00 00 00 9F [22:08:52]Write i2c OK [22:08:52]MH_I2C_Read... [22:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:52]Read from MH i2c: E2 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 0E 00 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 0E 00 F4 2E 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8D [22:08:52]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:08:52]wFMCommunicate OK [22:08:52]SAM_PROTO_GetShiftState done [22:08:52]FM_GetShiftState done [22:08:52]opened in 1729555832 [22:08:52]opened+sec_in_day 1729642232 [22:08:52]quantity*price = 20003 [22:08:52]sum+1 = 20004 [22:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 407 22.10.2024 22:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70459 ФПД: 226413899384902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70459&fm=226413899384902&tin=02508201610067®Number=0000000000156251&sum=20000 [22:08:53]StoreToDocumentArchive [22:08:53]shift 195 fd 70459 [22:08:53]save to /storage/0195/doc_00070459 [22:08:53]save last doc name /storage/0195/doc_00070459 to /storage/kkm_last_doc_name [22:08:53]save OK [22:08:53]Clear old archive folders... [22:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:53]tlvbuf is 00B32FD0 [22:08:53]SAM_PROTO_ClearQueue [22:08:53]wFMCommunicate request_size=4 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 09 00 00 [22:08:53]Write to MH i2c: E2 08 00 01 2F 80 09 00 00 00 00 00 00 A2 [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [22:08:53]RAPDU: 90 00 [22:08:53]wFMCommunicate OK [22:08:53]SAM_PROTO_ClearQueue done [22:08:53]KKMCreateOFDPacket [22:08:53]OFDProtocolAddRootSTLVToBuf [22:08:53]FM_MakeSignedData [22:08:53]FM_MakeSignedData [22:08:53]SAM_PROTO_SignData [22:08:53]wFMCommunicate request_size=4 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 0D 01 02 [22:08:53]Write to MH i2c: E2 08 00 02 2F 80 0D 01 02 00 00 00 00 AA [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 02 2F 00 90 00 A5 [22:08:53]RAPDU: 90 00 [22:08:53]wFMCommunicate OK [22:08:53]wFMCommunicate request_size=255 [22:08:53]MH_SAM_APDU [22:08: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 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 97 01 00 00 F4 03 04 00 75 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 13 01 00 35 04 06 00 CD [22:08:53]Write to MH i2c: E2 02 01 03 2F 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 97 01 00 00 F4 03 04 00 75 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 13 01 00 35 04 06 00 CD 00 00 82 [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 03 2F 00 90 00 A6 [22:08:53]RAPDU: 90 00 [22:08:53]wFMCommunicate OK [22:08:53]wFMCommunicate request_size=10 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 0D 02 02 05 EC 18 0B 88 46 [22:08:53]Write to MH i2c: E2 0D 00 04 2F 80 0D 02 02 05 00 EC 18 0B 88 46 00 00 94 [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 03 00 04 2F 00 90 00 A7 [22:08:53]RAPDU: 90 00 [22:08:53]wFMCommunicate OK [22:08:53]wFMCommunicate request_size=4 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 0D 03 02 [22:08:53]Write to MH i2c: E2 08 00 05 2F 80 0D 03 02 00 00 00 00 AF [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 0B 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 0B 00 05 2F 00 5D EE 93 FD 24 5A 2B 33 90 00 67 [22:08:53]RAPDU: 5D EE 93 FD 24 5A 2B 33 90 00 [22:08:53]wFMCommunicate OK [22:08:53]SAM_PROTO_SignData done [22:08:53]FM_MakeSignedData done [22:08:53]CreateOFDProtocolMessage [22:08:53]wFMCommunicate request_size=4 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 11 00 00 [22:08:53]Write to MH i2c: E2 08 00 06 2F 80 11 00 00 00 00 00 00 AF [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 17 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 17 00 06 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [22:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:08:53]wFMCommunicate OK [22:08:53]CreateOFDProtocolMessage done [22:08:53]OFDSenderStorePacket 70459 [22:08:53]StoreOFDPacket docnum=70459 [22:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C0 97 07 01 AA 23 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 97 01 00 00 F4 03 04 00 75 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 13 01 00 35 04 06 00 CD EC 18 0B 88 46 5D EE 93 FD 24 5A 2B 33 [22:08:53]CheckFolder [22:08:53]dirname=/storage/ofd_packets [22:08:53]CheckFolder done [22:08:53]ProducePacketName [22:08:53]name=ofd_packets/00070459 [22:08:53]NVStorageSaveData ofd_packets/00070459 [22:08:53]File name is /storage/ofd_packets/00070459 [22:08:53]Write 301 bytes [22:08:53]NVStorageSaveData done [22:08:53]OFDSenderStorePacket done [22:08:53]KKMCreateOFDPacket done [22:08:53]NVStorageSaveData kkm_last_timestamp [22:08:53]File name is /storage/kkm_last_timestamp [22:08:53]Write 4 bytes [22:08:53]NVStorageSaveData done [22:08:53]ExternCall_PrintAddStr [22:08:53]wPrintStart [22:08:53]Write to MH i2c: 01 00 00 07 2F 36 [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 07 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 07 00 07 2F 00 00 00 00 00 FF 0F 4B [22:08:53]RasterBufferAndPrint [22:08:53]line Счет N : (1)2886228 [22:08:53]line ИНН: 02508201610067 [22:08:53]line Контрольно-Кассовый Чек [22:08:53]line ПРОДАЖА [22:08:53]line ТРК (МРК, ГНК) : 12 [22:08:53]line Товар: 2710124130 [22:08:53]line Аи-92-К-5 [22:08:53]line 2.990 * 66.90 [22:08:53]line = 200.03 [22:08:53]line НДС 12% НСП 1% [22:08:53]line > о реализуемом товаре [22:08:53]line ОКРУГЛЕНИЕ: -0.03 [22:08:53]line ИТОГО: 200.00 [22:08:53]line Внесено: 200.00 [22:08:53]line СДАЧА: 0.00 [22:08:53]line НСП 1% : 1.77 [22:08:53]line НДС 12% : 21.24 [22:08:53]line Наличными: 200.00 [22:08:53]line Безнал.: 0.00 [22:08:53]line Место: АЗС № 85 "Партнер Нефть" [22:08:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:08:53]line СНО: Общий режим [22:08:53]line Чек 407 22.10.2024 22:08 [22:08:53]line Смена: 195 ФФД: 1.0 [22:08:53]line ЗНМ: 0300000167 [22:08:53]line РНМ: 0000000000156251 [22:08:53]line Версия ККМ: v1.0 [22:08:53]line ФМ: 0000000000963346 [22:08:53]line ФД: 70459 [22:08:53]line ФПД: 226413899384902 [22:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70459&fm=226413899384902&tin=02508201610067®Number=0000000000156251&sum=20000 [22:08:54]OFD Sender: Processing packet 70459 [packets to send 18, broken 17] [22:08:54]ProducePacketName [22:08:54]name=ofd_packets/00070459 [22:08:54]OFD Sender: To server: pG, [22:08:54]CommunicateWithHost lk.salyk.kg:30040 [22:08:54]ConnectInit lk.salyk.kg [22:08:54]written 0, free lines is 4095 [22:08:54]Connected sock=10 [22:08: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 34 36 0F 01 00 00 C0 97 07 01 AA 23 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 97 01 00 00 F4 03 04 00 75 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 13 01 00 35 04 06 00 CD EC 18 0B 88 46 5D EE 93 FD 24 5A 2B 33 [22:08: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 34 36 4F 00 00 00 FF AB 47 00 DD 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 34 36 10 04 04 00 3B 13 01 00 F4 03 04 00 15 CC 17 67 B6 04 01 00 00 08 D9 B2 9C F7 29 18 97 [22:08:54]CommunicateWithHost err = 0 [22:08:54]CheckOFDResponse [22:08:54]1017 (14) - 77093643461234 [22:08:54]1041 (16) - 0000000000963346 [22:08:54]1040 (4) - 70459 [22:08:54]1012 (4) - 22.10.2024 16:00 [22:08:54]1206 (1) - 0 [22:08:54]OFD Sender: Remove packet 70459 [22:08:54]ProducePacketName [22:08:54]name=ofd_packets/00070459 [22:08:54]NVStorageDeleteData [22:08:54]Write to MH i2c: 01 00 00 32 2F 61 [22:08:54]Write i2c OK [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: 01 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: 01 07 00 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 FF 0C 73 [22:08:54]RasterBufferAndPrint [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]written 0, free lines is 3336 [22:08:54]MH_Cut [22:08:54]Write to MH i2c: D1 01 00 39 2F 01 3A [22:08:54]Write i2c OK [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: D1 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: D1 01 00 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: D1 01 00 39 2F 00 39 [22:08:54]Write to MH i2c: 01 00 00 3A 2F 69 [22:08:54]Write i2c OK [22:08:54]MH_I2C_Read... [22:08:54]OFD Sender: No OFD packet to send [22:08:55]*** Cut start [22:08:55]*** Partial cut [22:08:55]*** CUTSNS_PIN = 1 [22:08:55]*** CUTSNS_PIN = 0 [22:08:55]*** Brake cut motor [22:08:55]Read from MH i2c: 01 [22:08:55]MH_I2C_Read... [22:08:55]*** Stop cut motor [22:08:55]*** Cut end [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 3A 2F 00 00 00 00 00 FF 0F 7E [22:08:55]process_action close_receipt done [22:08:55]requested_data is exist [22:08:55]produce_requested_data [22:08:55]requested_item fm.sn is exist - process it [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 3B 2F 80 11 00 00 00 00 00 00 E4 [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 3B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [22:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:08:55]wFMCommunicate OK [22:08:55]requested_item fd.num is exist - process it [22:08:55]SAM_PROTO_GetFieldsCounters [22:08:55]wFMCommunicate request_size=4 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 13 00 00 [22:08:55]Write to MH i2c: E2 08 00 3C 2F 80 13 00 00 00 00 00 00 E7 [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:56]Read from MH i2c: E2 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 62 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 62 00 3C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [22:08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:56]wFMCommunicate OK [22:08:56]SAM_PROTO_GetFieldsCounters done [22:08:56]requested_item shift.num is exist - process it [22:08:56]requested_item shift.opened is exist - process it [22:08:56]req_shift_opened [22:08:56]FM_GetShiftState [22:08:56]SAM_PROTO_GetShiftState [22:08:56]wFMCommunicate request_size=4 [22:08:56]MH_SAM_APDU [22:08:56]CAPDU: 80 13 01 00 [22:08:56]Write to MH i2c: E2 08 00 3D 2F 80 13 01 00 00 00 00 00 E9 [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:56]Read from MH i2c: E2 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 0E 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 0E 00 3D 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D7 [22:08:56]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:08:56]wFMCommunicate OK [22:08:56]SAM_PROTO_GetShiftState done [22:08:56]FM_GetShiftState done [22:08:56]req_shift_opened done [22:08:56]requested_item shift.open_date is exist - process it [22:08:56]req_shift_open_date [22:08:56]req_shift_open_date done [22:08:56]produce_requested_data done [22:08:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70459,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:08:56]process_action_free close_receipt [22:08:56]json_value_free [22:08:56]json_value_free done [22:08:56]process_json_proto returns [22:08:56]Send response to host [22:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70459,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:08:56]free response buf [22:08:56]execute_script done [22:08:56]execute_script returns [22:08:56]free content buf [22:08:56]Sock 9.Close socket [22:08:56]Sock 9.Thread stoped [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:36]accept exits with 7 [22:10:36]New connection [22:10:36]New thread 3066555748 created [22:10:36]Thread 3066699108 joined [22:10:36]Waiting for new connection... [22:10:36] Sock 7.Parse request [22:10:36]Sock 7.Check first char [22:10:36]Sock 7.First char is OK [22:10:36]request: POST /json_proto HTTP/1.0 [22:10:36]Method: POST [22:10:36]URL: /json_proto [22:10:36]Method is POST - this is cgi request [22:10:36]url: /json_proto [22:10:36]query_string will be loaded in cgi processing [22:10:36]execute_cgi json_proto POST (null) [22:10:36]execute_cgi path=json_proto method=POST [22:10:36]POST find Content-Length [22:10:36]Host: 172.17.50.3:8080 [22:10:36]Content-Length: 682 [22:10:36]Content-Type: application/json [22:10:36] [22:10:36]POST finish read [22:10:36]Found Content-Length = 682 [22:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:10:36]execute_script... [22:10: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)2886229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:10:36]POST & json_proto [22:10:36]process_json_proto [22:10:36]json parsed OK: [22:10:36]protocol is kg_v1.0 [22:10:36]action value=close_receipt [22:10:36]process_action close_receipt [22:10:36]cmd_close_receipt [22:10:36]MH_GetDate [22:10:36]Write to MH i2c: F0 00 00 3E 2F 5C [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 09 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 09 00 3E 2F 00 DD 22 18 67 6B 98 1E 66 6A [22:10:36]GetLastDocTimeStamp 1729634933 [22:10:36]current date 1729635037 [22:10:36]FM_GetShiftState [22:10:36]SAM_PROTO_GetShiftState [22:10:36]wFMCommunicate request_size=4 [22:10:36]MH_SAM_APDU [22:10:36]CAPDU: 80 13 01 00 [22:10:36]Write to MH i2c: E2 08 00 3F 2F 80 13 01 00 00 00 00 00 EB [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:36]Read from MH i2c: E2 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 3F 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D9 [22:10:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:10:36]wFMCommunicate OK [22:10:36]SAM_PROTO_GetShiftState done [22:10:36]FM_GetShiftState done [22:10:36]opened in 1729555832 [22:10:36]opened+sec_in_day 1729642232 [22:10:36]quantity*price = 50025 [22:10:36]sum+1 = 50026 [22:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 408 22.10.2024 22:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70460 ФПД: 47195645254360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70460&fm=47195645254360&tin=02508201610067®Number=0000000000156251&sum=50000 [22:10:37]StoreToDocumentArchive [22:10:37]shift 195 fd 70460 [22:10:37]save to /storage/0195/doc_00070460 [22:10:37]save last doc name /storage/0195/doc_00070460 to /storage/kkm_last_doc_name [22:10:37]save OK [22:10:37]Clear old archive folders... [22:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:10:37]tlvbuf is B6F1AC40 [22:10:37]SAM_PROTO_ClearQueue [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 09 00 00 [22:10:37]Write to MH i2c: E2 08 00 4C 2F 80 09 00 00 00 00 00 00 ED [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 4C 2F 00 90 00 EF [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]SAM_PROTO_ClearQueue done [22:10:37]KKMCreateOFDPacket [22:10:37]OFDProtocolAddRootSTLVToBuf [22:10:37]FM_MakeSignedData [22:10:37]FM_MakeSignedData [22:10:37]SAM_PROTO_SignData [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 01 02 [22:10:37]Write to MH i2c: E2 08 00 4D 2F 80 0D 01 02 00 00 00 00 F5 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 4D 2F 00 90 00 F0 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=255 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 98 01 00 00 F4 03 04 00 DD 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 13 01 00 35 04 06 00 2A EC [22:10:37]Write to MH i2c: E2 02 01 4E 2F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 98 01 00 00 F4 03 04 00 DD 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 13 01 00 35 04 06 00 2A EC 00 00 78 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=9 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 02 02 04 97 AB 9A D8 [22:10:37]Write to MH i2c: E2 0C 00 4F 2F 80 0D 02 02 04 00 97 AB 9A D8 00 00 B4 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 4F 2F 00 90 00 F2 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 03 02 [22:10:37]Write to MH i2c: E2 08 00 50 2F 80 0D 03 02 00 00 00 00 FA [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 0B 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 0B 00 50 2F 00 D4 65 7A CC ED F9 82 85 90 00 67 [22:10:37]RAPDU: D4 65 7A CC ED F9 82 85 90 00 [22:10:37]wFMCommunicate OK [22:10:37]SAM_PROTO_SignData done [22:10:37]FM_MakeSignedData done [22:10:37]CreateOFDProtocolMessage [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 11 00 00 [22:10:37]Write to MH i2c: E2 08 00 51 2F 80 11 00 00 00 00 00 00 FA [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 17 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 17 00 51 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [22:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:10:37]wFMCommunicate OK [22:10:37]CreateOFDProtocolMessage done [22:10:37]OFDSenderStorePacket 70460 [22:10:37]StoreOFDPacket docnum=70460 [22:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5E 4F 06 01 92 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 98 01 00 00 F4 03 04 00 DD 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 13 01 00 35 04 06 00 2A EC 97 AB 9A D8 D4 65 7A CC ED F9 82 85 [22:10:37]CheckFolder [22:10:37]dirname=/storage/ofd_packets [22:10:37]CheckFolder done [22:10:37]ProducePacketName [22:10:37]name=ofd_packets/00070460 [22:10:37]NVStorageSaveData ofd_packets/00070460 [22:10:37]File name is /storage/ofd_packets/00070460 [22:10:37]Write 300 bytes [22:10:37]NVStorageSaveData done [22:10:37]OFDSenderStorePacket done [22:10:37]KKMCreateOFDPacket done [22:10:37]NVStorageSaveData kkm_last_timestamp [22:10:37]File name is /storage/kkm_last_timestamp [22:10:37]Write 4 bytes [22:10:37]NVStorageSaveData done [22:10:37]ExternCall_PrintAddStr [22:10:37]wPrintStart [22:10:37]Write to MH i2c: 01 00 00 52 2F 81 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 07 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 07 00 52 2F 00 00 00 00 00 FF 0F 96 [22:10:37]RasterBufferAndPrint [22:10:37]line Счет N : (1)2886229 [22:10:37]line ИНН: 02508201610067 [22:10:37]line Контрольно-Кассовый Чек [22:10:37]line ПРОДАЖА [22:10:37]line ТРК (МРК, ГНК) : 71 [22:10:37]line Товар: 2711129700 [22:10:37]line ГАЗ-К-3 [22:10:37]line 12.860 * 38.90 [22:10:37]line = 500.25 [22:10:37]line НДС 12% НСП 1% [22:10:37]line > о реализуемом товаре [22:10:37]line ОКРУГЛЕНИЕ: -0.25 [22:10:37]line ИТОГО: 500.00 [22:10:37]line Внесено: 500.00 [22:10:37]line СДАЧА: 0.00 [22:10:37]line НСП 1% : 4.43 [22:10:37]line НДС 12% : 53.12 [22:10:37]line Наличными: 500.00 [22:10:37]line Безнал.: 0.00 [22:10:37]line Место: АЗС № 85 "Партнер Нефть" [22:10:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:10:37]line СНО: Общий режим [22:10:37]line Чек 408 22.10.2024 22:10 [22:10:37]line Смена: 195 ФФД: 1.0 [22:10:37]line ЗНМ: 0300000167 [22:10:37]line РНМ: 0000000000156251 [22:10:37]line Версия ККМ: v1.0 [22:10:37]line ФМ: 0000000000963346 [22:10:37]line ФД: 70460 [22:10:37]line ФПД: 47195645254360 [22:10:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70460&fm=47195645254360&tin=02508201610067®Number=0000000000156251&sum=50000 [22:10:37]written 0, free lines is 4095 [22:10:37]OFD Sender: Processing packet 70460 [packets to send 18, broken 17] [22:10:37]ProducePacketName [22:10:37]name=ofd_packets/00070460 [22:10:37]OFD Sender: To server: pG, [22:10:37]CommunicateWithHost lk.salyk.kg:30040 [22:10:37]ConnectInit lk.salyk.kg [22:10:38]Connected sock=10 [22:10: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 34 36 0E 01 00 00 5E 4F 06 01 92 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 98 01 00 00 F4 03 04 00 DD 22 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 13 01 00 35 04 06 00 2A EC 97 AB 9A D8 D4 65 7A CC ED F9 82 85 [22:10: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 34 36 4F 00 00 00 7F 63 47 00 33 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 34 36 10 04 04 00 3C 13 01 00 F4 03 04 00 7D CC 17 67 B6 04 01 00 00 6D 1F 3A 50 88 0C 1D 9D [22:10:38]CommunicateWithHost err = 0 [22:10:38]CheckOFDResponse [22:10:38]1017 (14) - 77093643461234 [22:10:38]1041 (16) - 0000000000963346 [22:10:38]1040 (4) - 70460 [22:10:38]1012 (4) - 22.10.2024 16:02 [22:10:38]1206 (1) - 0 [22:10:38]OFD Sender: Remove packet 70460 [22:10:38]ProducePacketName [22:10:38]name=ofd_packets/00070460 [22:10:38]NVStorageDeleteData [22:10:38]Write to MH i2c: 01 00 00 7D 2F AC [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 07 00 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 F8 0C B7 [22:10:38]RasterBufferAndPrint [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]written 0, free lines is 3330 [22:10:38]MH_Cut [22:10:38]Write to MH i2c: D1 01 00 84 2F 01 85 [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: D1 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: D1 01 00 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: D1 01 00 84 2F 00 84 [22:10:38]Write to MH i2c: 01 00 00 85 2F B4 [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]OFD Sender: No OFD packet to send [22:10:39]*** Cut start [22:10:39]*** Partial cut [22:10:39]*** CUTSNS_PIN = 1 [22:10:39]*** CUTSNS_PIN = 0 [22:10:39]*** Brake cut motor [22:10:39]Read from MH i2c: 01 [22:10:39]MH_I2C_Read... [22:10:39]*** Stop cut motor [22:10:39]*** Cut end [22:10:39]Read from MH i2c: 01 07 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: 01 07 00 85 2F 00 00 00 00 00 FF 0F C9 [22:10:39]process_action close_receipt done [22:10:39]requested_data is exist [22:10:39]produce_requested_data [22:10:39]requested_item fm.sn is exist - process it [22:10:39]wFMCommunicate request_size=4 [22:10:39]MH_SAM_APDU [22:10:39]CAPDU: 80 11 00 00 [22:10:39]Write to MH i2c: E2 08 00 86 2F 80 11 00 00 00 00 00 00 2F [22:10:39]Write i2c OK [22:10:39]MH_I2C_Read... [22:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:39]Read from MH i2c: E2 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 17 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 17 00 86 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [22:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:10:39]wFMCommunicate OK [22:10:39]requested_item fd.num is exist - process it [22:10:39]SAM_PROTO_GetFieldsCounters [22:10:39]wFMCommunicate request_size=4 [22:10:39]MH_SAM_APDU [22:10:39]CAPDU: 80 13 00 00 [22:10:39]Write to MH i2c: E2 08 00 87 2F 80 13 00 00 00 00 00 00 32 [22:10:39]Write i2c OK [22:10:39]MH_I2C_Read... [22:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:39]Read from MH i2c: E2 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 62 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 62 00 87 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [22:10: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:39]wFMCommunicate OK [22:10:39]SAM_PROTO_GetFieldsCounters done [22:10:39]requested_item shift.num is exist - process it [22:10:39]requested_item shift.opened is exist - process it [22:10:39]req_shift_opened [22:10:39]FM_GetShiftState [22:10:39]SAM_PROTO_GetShiftState [22:10:39]wFMCommunicate request_size=4 [22:10:39]MH_SAM_APDU [22:10:39]CAPDU: 80 13 01 00 [22:10:39]Write to MH i2c: E2 08 00 88 2F 80 13 01 00 00 00 00 00 34 [22:10:39]Write i2c OK [22:10:39]MH_I2C_Read... [22:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:39]Read from MH i2c: E2 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 0E 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 0E 00 88 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 22 [22:10:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:10:39]wFMCommunicate OK [22:10:39]SAM_PROTO_GetShiftState done [22:10:39]FM_GetShiftState done [22:10:39]req_shift_opened done [22:10:39]requested_item shift.open_date is exist - process it [22:10:39]req_shift_open_date [22:10:39]req_shift_open_date done [22:10:39]produce_requested_data done [22:10:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70460,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:10:39]process_action_free close_receipt [22:10:39]json_value_free [22:10:39]json_value_free done [22:10:39]process_json_proto returns [22:10:39]Send response to host [22:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70460,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:10:39]free response buf [22:10:39]execute_script done [22:10:39]execute_script returns [22:10:39]free content buf [22:10:39]Sock 7.Close socket [22:10:39]Sock 7.Thread stoped [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:43]accept exits with 9 [22:15:43]New connection [22:15:43]New thread 3066699108 created [22:15:43]Thread 3066555748 joined [22:15:43]Waiting for new connection... [22:15:43] Sock 9.Parse request [22:15:43]Sock 9.Check first char [22:15:43]Sock 9.First char is OK [22:15:43]request: POST /json_proto HTTP/1.0 [22:15:43]Method: POST [22:15:43]URL: /json_proto [22:15:43]Method is POST - this is cgi request [22:15:43]url: /json_proto [22:15:43]query_string will be loaded in cgi processing [22:15:43]execute_cgi json_proto POST (null) [22:15:43]execute_cgi path=json_proto method=POST [22:15:43]POST find Content-Length [22:15:43]Host: 172.17.50.3:8080 [22:15:43]Content-Length: 683 [22:15:43]Content-Type: application/json [22:15:43] [22:15:43]POST finish read [22:15:43]Found Content-Length = 683 [22:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [22:15:43]execute_script... [22:15: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)2886230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [22:15:43]POST & json_proto [22:15:43]process_json_proto [22:15:43]json parsed OK: [22:15:43]protocol is kg_v1.0 [22:15:43]action value=close_receipt [22:15:43]process_action close_receipt [22:15:43]cmd_close_receipt [22:15:43]MH_GetDate [22:15:43]Write to MH i2c: F0 00 00 89 2F A7 [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: F0 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: F0 09 00 [22:15:43]MH_I2C_Read... [22:15:43]Read from MH i2c: F0 09 00 89 2F 00 11 24 18 67 6B 98 1E 66 EB [22:15:43]GetLastDocTimeStamp 1729635037 [22:15:43]current date 1729635345 [22:15:43]FM_GetShiftState [22:15:43]SAM_PROTO_GetShiftState [22:15:43]wFMCommunicate request_size=4 [22:15:43]MH_SAM_APDU [22:15:43]CAPDU: 80 13 01 00 [22:15:43]Write to MH i2c: E2 08 00 8A 2F 80 13 01 00 00 00 00 00 36 [22:15:43]Write i2c OK [22:15:43]MH_I2C_Read... [22:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:44]Read from MH i2c: E2 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: E2 0E 00 [22:15:44]MH_I2C_Read... [22:15:44]Read from MH i2c: E2 0E 00 8A 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 24 [22:15:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:15:44]wFMCommunicate OK [22:15:44]SAM_PROTO_GetShiftState done [22:15:44]FM_GetShiftState done [22:15:44]opened in 1729555832 [22:15:44]opened+sec_in_day 1729642232 [22:15:44]quantity*price = 100015 [22:15:44]sum+1 = 100017 [22:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 409 22.10.2024 22:15 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70461 ФПД: 155407909501565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70461&fm=155407909501565&tin=02508201610067®Number=0000000000156251&sum=100000 [22:15:45]StoreToDocumentArchive [22:15:45]shift 195 fd 70461 [22:15:45]save to /storage/0195/doc_00070461 [22:15:45]save last doc name /storage/0195/doc_00070461 to /storage/kkm_last_doc_name [22:15:45]save OK [22:15:45]Clear old archive folders... [22:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:45]tlvbuf is 00AE35C0 [22:15:45]SAM_PROTO_ClearQueue [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 09 00 00 [22:15:45]Write to MH i2c: E2 08 00 97 2F 80 09 00 00 00 00 00 00 38 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [22:15:45]RAPDU: 90 00 [22:15:45]wFMCommunicate OK [22:15:45]SAM_PROTO_ClearQueue done [22:15:45]KKMCreateOFDPacket [22:15:45]OFDProtocolAddRootSTLVToBuf [22:15:45]FM_MakeSignedData [22:15:45]FM_MakeSignedData [22:15:45]SAM_PROTO_SignData [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 0D 01 02 [22:15:45]Write to MH i2c: E2 08 00 98 2F 80 0D 01 02 00 00 00 00 40 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 98 2F 00 90 00 3B [22:15:45]RAPDU: 90 00 [22:15:45]wFMCommunicate OK [22:15:45]wFMCommunicate request_size=255 [22:15:45]MH_SAM_APDU [22:15:45]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 99 01 00 00 F4 03 04 00 11 24 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 13 01 00 35 04 06 00 8D [22:15:45]Write to MH i2c: E2 02 01 99 2F 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 99 01 00 00 F4 03 04 00 11 24 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 13 01 00 35 04 06 00 8D 00 00 B2 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [22:15:45]RAPDU: 90 00 [22:15:45]wFMCommunicate OK [22:15:45]wFMCommunicate request_size=10 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 0D 02 02 05 57 B9 3D BA 7D [22:15:45]Write to MH i2c: E2 0D 00 9A 2F 80 0D 02 02 05 00 57 B9 3D BA 7D 00 00 D1 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [22:15:45]RAPDU: 90 00 [22:15:45]wFMCommunicate OK [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 0D 03 02 [22:15:45]Write to MH i2c: E2 08 00 9B 2F 80 0D 03 02 00 00 00 00 45 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 0B 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 0B 00 9B 2F 00 EA E1 3A FA 8A 00 D5 27 90 00 CB [22:15:45]RAPDU: EA E1 3A FA 8A 00 D5 27 90 00 [22:15:45]wFMCommunicate OK [22:15:45]SAM_PROTO_SignData done [22:15:45]FM_MakeSignedData done [22:15:45]CreateOFDProtocolMessage [22:15:45]wFMCommunicate request_size=4 [22:15:45]MH_SAM_APDU [22:15:45]CAPDU: 80 11 00 00 [22:15:45]Write to MH i2c: E2 08 00 9C 2F 80 11 00 00 00 00 00 00 45 [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:45]Read from MH i2c: E2 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 17 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: E2 17 00 9C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [22:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:15:45]wFMCommunicate OK [22:15:45]CreateOFDProtocolMessage done [22:15:45]OFDSenderStorePacket 70461 [22:15:45]StoreOFDPacket docnum=70461 [22:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 AC 07 01 72 D7 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 99 01 00 00 F4 03 04 00 11 24 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 13 01 00 35 04 06 00 8D 57 B9 3D BA 7D EA E1 3A FA 8A 00 D5 27 [22:15:45]CheckFolder [22:15:45]dirname=/storage/ofd_packets [22:15:45]CheckFolder done [22:15:45]ProducePacketName [22:15:45]name=ofd_packets/00070461 [22:15:45]NVStorageSaveData ofd_packets/00070461 [22:15:45]File name is /storage/ofd_packets/00070461 [22:15:45]Write 301 bytes [22:15:45]NVStorageSaveData done [22:15:45]OFDSenderStorePacket done [22:15:45]KKMCreateOFDPacket done [22:15:45]NVStorageSaveData kkm_last_timestamp [22:15:45]File name is /storage/kkm_last_timestamp [22:15:45]Write 4 bytes [22:15:45]NVStorageSaveData done [22:15:45]ExternCall_PrintAddStr [22:15:45]wPrintStart [22:15:45]Write to MH i2c: 01 00 00 9D 2F CC [22:15:45]Write i2c OK [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: 01 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: 01 07 00 [22:15:45]MH_I2C_Read... [22:15:45]Read from MH i2c: 01 07 00 9D 2F 00 00 00 00 00 FF 0F E1 [22:15:45]RasterBufferAndPrint [22:15:45]line Счет N : (1)2886230 [22:15:45]line ИНН: 02508201610067 [22:15:45]line Контрольно-Кассовый Чек [22:15:45]line ПРОДАЖА [22:15:45]line ТРК (МРК, ГНК) : 22 [22:15:45]line Товар: 2710124130 [22:15:45]line Аи-92-К-5 [22:15:45]line 14.950 * 66.90 [22:15:45]line = 1000.16 [22:15:45]line НДС 12% НСП 1% [22:15:45]line > о реализуемом товаре [22:15:45]line ОКРУГЛЕНИЕ: -0.16 [22:15:45]line ИТОГО: 1000.00 [22:15:45]line Внесено: 1000.00 [22:15:45]line СДАЧА: 0.00 [22:15:45]line НСП 1% : 8.85 [22:15:45]line НДС 12% : 106.21 [22:15:45]line Наличными: 1000.00 [22:15:45]line Безнал.: 0.00 [22:15:45]line Место: АЗС № 85 "Партнер Нефть" [22:15:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:15:45]line СНО: Общий режим [22:15:45]line Чек 409 22.10.2024 22:15 [22:15:45]line Смена: 195 ФФД: 1.0 [22:15:45]line ЗНМ: 0300000167 [22:15:45]line РНМ: 0000000000156251 [22:15:45]line Версия ККМ: v1.0 [22:15:45]line ФМ: 0000000000963346 [22:15:45]line ФД: 70461 [22:15:45]line ФПД: 155407909501565 [22:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70461&fm=155407909501565&tin=02508201610067®Number=0000000000156251&sum=100000 [22:15:46]OFD Sender: Processing packet 70461 [packets to send 18, broken 17] [22:15:46]ProducePacketName [22:15:46]name=ofd_packets/00070461 [22:15:46]OFD Sender: To server: pG, [22:15:46]CommunicateWithHost lk.salyk.kg:30040 [22:15:46]ConnectInit lk.salyk.kg [22:15:46]written 0, free lines is 4095 [22:15:46]Connected sock=7 [22:15: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 34 36 0F 01 00 00 C7 AC 07 01 72 D7 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 99 01 00 00 F4 03 04 00 11 24 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 13 01 00 35 04 06 00 8D 57 B9 3D BA 7D EA E1 3A FA 8A 00 D5 27 [22:15: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 34 36 4F 00 00 00 EC 18 47 00 53 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 34 36 10 04 04 00 3D 13 01 00 F4 03 04 00 B1 CD 17 67 B6 04 01 00 00 E3 48 DD E0 B1 76 21 B0 [22:15:46]CommunicateWithHost err = 0 [22:15:46]CheckOFDResponse [22:15:46]1017 (14) - 77093643461234 [22:15:46]1041 (16) - 0000000000963346 [22:15:46]1040 (4) - 70461 [22:15:46]1012 (4) - 22.10.2024 16:07 [22:15:46]1206 (1) - 0 [22:15:46]OFD Sender: Remove packet 70461 [22:15:46]ProducePacketName [22:15:46]name=ofd_packets/00070461 [22:15:46]NVStorageDeleteData [22:15:46]Write to MH i2c: 01 00 00 C8 2F F7 [22:15:46]Write i2c OK [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: 01 [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: 01 07 00 [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: 01 07 00 C8 2F 00 00 00 00 00 F4 0C FE [22:15:46]RasterBufferAndPrint [22:15:46]line [22:15:46]line [22:15:46]line [22:15:46]line [22:15:46]line [22:15:46]written 0, free lines is 3326 [22:15:46]MH_Cut [22:15:46]Write to MH i2c: D1 01 00 CF 2F 01 D0 [22:15:46]Write i2c OK [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: D1 [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: D1 01 00 [22:15:46]MH_I2C_Read... [22:15:46]Read from MH i2c: D1 01 00 CF 2F 00 CF [22:15:46]Write to MH i2c: 01 00 00 D0 2F FF [22:15:46]Write i2c OK [22:15:46]MH_I2C_Read... [22:15:46]OFD Sender: No OFD packet to send [22:15:47]*** Cut start [22:15:47]*** Partial cut [22:15:47]*** CUTSNS_PIN = 1 [22:15:47]*** CUTSNS_PIN = 0 [22:15:47]*** Brake cut motor [22:15:47]Read from MH i2c: 01 [22:15:47]MH_I2C_Read... [22:15:47]*** Stop cut motor [22:15:47]*** Cut end [22:15:47]Read from MH i2c: 01 07 00 [22:15:47]MH_I2C_Read... [22:15:47]Read from MH i2c: 01 07 00 D0 2F 00 00 00 00 00 FF 0F 14 [22:15:47]process_action close_receipt done [22:15:47]requested_data is exist [22:15:47]produce_requested_data [22:15:47]requested_item fm.sn is exist - process it [22:15:47]wFMCommunicate request_size=4 [22:15:47]MH_SAM_APDU [22:15:47]CAPDU: 80 11 00 00 [22:15:47]Write to MH i2c: E2 08 00 D1 2F 80 11 00 00 00 00 00 00 7A [22:15:47]Write i2c OK [22:15:47]MH_I2C_Read... [22:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:47]Read from MH i2c: E2 [22:15:47]MH_I2C_Read... [22:15:47]Read from MH i2c: E2 17 00 [22:15:47]MH_I2C_Read... [22:15:47]Read from MH i2c: E2 17 00 D1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [22:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:15:47]wFMCommunicate OK [22:15:47]requested_item fd.num is exist - process it [22:15:47]SAM_PROTO_GetFieldsCounters [22:15:47]wFMCommunicate request_size=4 [22:15:47]MH_SAM_APDU [22:15:47]CAPDU: 80 13 00 00 [22:15:47]Write to MH i2c: E2 08 00 D2 2F 80 13 00 00 00 00 00 00 7D [22:15:47]Write i2c OK [22:15:47]MH_I2C_Read... [22:15:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:48]Read from MH i2c: E2 [22:15:48]MH_I2C_Read... [22:15:48]Read from MH i2c: E2 62 00 [22:15:48]MH_I2C_Read... [22:15:48]Read from MH i2c: E2 62 00 D2 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [22:15: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:48]wFMCommunicate OK [22:15:48]SAM_PROTO_GetFieldsCounters done [22:15:48]requested_item shift.num is exist - process it [22:15:48]requested_item shift.opened is exist - process it [22:15:48]req_shift_opened [22:15:48]FM_GetShiftState [22:15:48]SAM_PROTO_GetShiftState [22:15:48]wFMCommunicate request_size=4 [22:15:48]MH_SAM_APDU [22:15:48]CAPDU: 80 13 01 00 [22:15:48]Write to MH i2c: E2 08 00 D3 2F 80 13 01 00 00 00 00 00 7F [22:15:48]Write i2c OK [22:15:48]MH_I2C_Read... [22:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:48]Read from MH i2c: E2 [22:15:48]MH_I2C_Read... [22:15:48]Read from MH i2c: E2 0E 00 [22:15:48]MH_I2C_Read... [22:15:48]Read from MH i2c: E2 0E 00 D3 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6D [22:15:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:15:48]wFMCommunicate OK [22:15:48]SAM_PROTO_GetShiftState done [22:15:48]FM_GetShiftState done [22:15:48]req_shift_opened done [22:15:48]requested_item shift.open_date is exist - process it [22:15:48]req_shift_open_date [22:15:48]req_shift_open_date done [22:15:48]produce_requested_data done [22:15:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70461,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:15:48]process_action_free close_receipt [22:15:48]json_value_free [22:15:48]json_value_free done [22:15:48]process_json_proto returns [22:15:48]Send response to host [22:15:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70461,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:15:48]free response buf [22:15:48]execute_script done [22:15:48]execute_script returns [22:15:48]free content buf [22:15:48]Sock 9.Close socket [22:15:48]Sock 9.Thread stoped [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]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:44]accept exits with 10 [22:19:44]New connection [22:19:44]New thread 3066555748 created [22:19:44]Thread 3066699108 joined [22:19:44]Waiting for new connection... [22:19:44] Sock 10.Parse request [22:19:44]Sock 10.Check first char [22:19:44]Sock 10.First char is OK [22:19:44]request: POST /json_proto HTTP/1.0 [22:19:44]Method: POST [22:19:44]URL: /json_proto [22:19:44]Method is POST - this is cgi request [22:19:44]url: /json_proto [22:19:44]query_string will be loaded in cgi processing [22:19:44]execute_cgi json_proto POST (null) [22:19:44]execute_cgi path=json_proto method=POST [22:19:44]POST find Content-Length [22:19:44]Host: 172.17.50.3:8080 [22:19:44]Content-Length: 683 [22:19:44]Content-Type: application/json [22:19:44] [22:19:44]POST finish read [22:19:44]Found Content-Length = 683 [22:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 39.920, "sum" : 2670.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2670.00, "payments": [ { "type": 0, "sum" : 2670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:44]execute_script... [22:19: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)2886231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 39.920, "sum" : 2670.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2670.00, "payments": [ { "type": 0, "sum" : 2670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:44]POST & json_proto [22:19:44]process_json_proto [22:19:44]json parsed OK: [22:19:44]protocol is kg_v1.0 [22:19:44]action value=close_receipt [22:19:44]process_action close_receipt [22:19:44]cmd_close_receipt [22:19:44]MH_GetDate [22:19:44]Write to MH i2c: F0 00 00 D4 2F F2 [22:19:44]Write i2c OK [22:19:44]MH_I2C_Read... [22:19:44]Read from MH i2c: F0 [22:19:44]MH_I2C_Read... [22:19:44]Read from MH i2c: F0 09 00 [22:19:44]MH_I2C_Read... [22:19:44]Read from MH i2c: F0 09 00 D4 2F 00 02 25 18 67 6B 98 1E 66 28 [22:19:44]GetLastDocTimeStamp 1729635345 [22:19:44]current date 1729635586 [22:19:44]FM_GetShiftState [22:19:44]SAM_PROTO_GetShiftState [22:19:44]wFMCommunicate request_size=4 [22:19:44]MH_SAM_APDU [22:19:44]CAPDU: 80 13 01 00 [22:19:44]Write to MH i2c: E2 08 00 D5 2F 80 13 01 00 00 00 00 00 81 [22:19:44]Write i2c OK [22:19:44]MH_I2C_Read... [22:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:44]Read from MH i2c: E2 [22:19:44]MH_I2C_Read... [22:19:44]Read from MH i2c: E2 0E 00 [22:19:44]MH_I2C_Read... [22:19:44]Read from MH i2c: E2 0E 00 D5 2F 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 6F [22:19:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:19:44]wFMCommunicate OK [22:19:44]SAM_PROTO_GetShiftState done [22:19:44]FM_GetShiftState done [22:19:44]opened in 1729555832 [22:19:44]opened+sec_in_day 1729642232 [22:19:44]quantity*price = 267064 [22:19:44]sum+1 = 267066 [22:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 2670.00 Внесено: 5000.00 СДАЧА: 2330.00 НСП 1% : 23.63 НДС 12% : 283.61 Наличными: 2670.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 410 22.10.2024 22:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70462 ФПД: 11373708779390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70462&fm=11373708779390&tin=02508201610067®Number=0000000000156251&sum=267000 [22:19:46]StoreToDocumentArchive [22:19:46]shift 195 fd 70462 [22:19:46]save to /storage/0195/doc_00070462 [22:19:46]save last doc name /storage/0195/doc_00070462 to /storage/kkm_last_doc_name [22:19:46]save OK [22:19:46]Clear old archive folders... [22:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:46]tlvbuf is B6F17010 [22:19:46]SAM_PROTO_ClearQueue [22:19:46]wFMCommunicate request_size=4 [22:19:46]MH_SAM_APDU [22:19:46]CAPDU: 80 09 00 00 [22:19:46]Write to MH i2c: E2 08 00 E2 2F 80 09 00 00 00 00 00 00 83 [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [22:19:46]RAPDU: 90 00 [22:19:46]wFMCommunicate OK [22:19:46]SAM_PROTO_ClearQueue done [22:19:46]KKMCreateOFDPacket [22:19:46]OFDProtocolAddRootSTLVToBuf [22:19:46]FM_MakeSignedData [22:19:46]FM_MakeSignedData [22:19:46]SAM_PROTO_SignData [22:19:46]wFMCommunicate request_size=4 [22:19:46]MH_SAM_APDU [22:19:46]CAPDU: 80 0D 01 02 [22:19:46]Write to MH i2c: E2 08 00 E3 2F 80 0D 01 02 00 00 00 00 8B [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [22:19:46]RAPDU: 90 00 [22:19:46]wFMCommunicate OK [22:19:46]wFMCommunicate request_size=255 [22:19:46]MH_SAM_APDU [22:19: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 F0 9B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 13 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 12 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 6E 00 00 00 00 07 04 06 00 F8 12 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 02 25 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 13 01 00 35 04 06 00 0A [22:19:46]Write to MH i2c: E2 02 01 E4 2F 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 F0 9B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 13 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 12 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 6E 00 00 00 00 07 04 06 00 F8 12 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 02 25 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 13 01 00 35 04 06 00 0A 00 00 9D [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [22:19:46]RAPDU: 90 00 [22:19:46]wFMCommunicate OK [22:19:46]wFMCommunicate request_size=10 [22:19:46]MH_SAM_APDU [22:19:46]CAPDU: 80 0D 02 02 05 58 25 DF 1F 7E [22:19:46]Write to MH i2c: E2 0D 00 E5 2F 80 0D 02 02 05 00 58 25 DF 1F 7E 00 00 91 [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [22:19:46]RAPDU: 90 00 [22:19:46]wFMCommunicate OK [22:19:46]wFMCommunicate request_size=4 [22:19:46]MH_SAM_APDU [22:19:46]CAPDU: 80 0D 03 02 [22:19:46]Write to MH i2c: E2 08 00 E6 2F 80 0D 03 02 00 00 00 00 90 [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 0B 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 0B 00 E6 2F 00 0D 53 4D B4 10 1F 6B 83 90 00 0F [22:19:46]RAPDU: 0D 53 4D B4 10 1F 6B 83 90 00 [22:19:46]wFMCommunicate OK [22:19:46]SAM_PROTO_SignData done [22:19:46]FM_MakeSignedData done [22:19:46]CreateOFDProtocolMessage [22:19:46]wFMCommunicate request_size=4 [22:19:46]MH_SAM_APDU [22:19:46]CAPDU: 80 11 00 00 [22:19:46]Write to MH i2c: E2 08 00 E7 2F 80 11 00 00 00 00 00 00 90 [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:46]Read from MH i2c: E2 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 17 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: E2 17 00 E7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [22:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:19:46]wFMCommunicate OK [22:19:46]CreateOFDProtocolMessage done [22:19:46]OFDSenderStorePacket 70462 [22:19:46]StoreOFDPacket docnum=70462 [22:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC FF 07 01 DF 76 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 F0 9B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 13 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 12 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 6E 00 00 00 00 07 04 06 00 F8 12 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 02 25 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 13 01 00 35 04 06 00 0A 58 25 DF 1F 7E 0D 53 4D B4 10 1F 6B 83 [22:19:46]CheckFolder [22:19:46]dirname=/storage/ofd_packets [22:19:46]CheckFolder done [22:19:46]ProducePacketName [22:19:46]name=ofd_packets/00070462 [22:19:46]NVStorageSaveData ofd_packets/00070462 [22:19:46]File name is /storage/ofd_packets/00070462 [22:19:46]Write 301 bytes [22:19:46]NVStorageSaveData done [22:19:46]OFDSenderStorePacket done [22:19:46]KKMCreateOFDPacket done [22:19:46]NVStorageSaveData kkm_last_timestamp [22:19:46]File name is /storage/kkm_last_timestamp [22:19:46]Write 4 bytes [22:19:46]NVStorageSaveData done [22:19:46]ExternCall_PrintAddStr [22:19:46]wPrintStart [22:19:46]Write to MH i2c: 01 00 00 E8 2F 17 [22:19:46]Write i2c OK [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: 01 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: 01 07 00 [22:19:46]MH_I2C_Read... [22:19:46]Read from MH i2c: 01 07 00 E8 2F 00 00 00 00 00 FF 0F 2C [22:19:46]RasterBufferAndPrint [22:19:46]line Счет N : (1)2886231 [22:19:46]line ИНН: 02508201610067 [22:19:46]line Контрольно-Кассовый Чек [22:19:46]line ПРОДАЖА [22:19:46]line ТРК (МРК, ГНК) : 42 [22:19:46]line Товар: 2710124130 [22:19:46]line Аи-92-К-5 [22:19:46]line 39.920 * 66.90 [22:19:46]line = 2670.65 [22:19:46]line НДС 12% НСП 1% [22:19:46]line > о реализуемом товаре [22:19:46]line ОКРУГЛЕНИЕ: -0.65 [22:19:46]line ИТОГО: 2670.00 [22:19:46]line Внесено: 5000.00 [22:19:46]line СДАЧА: 2330.00 [22:19:46]line НСП 1% : 23.63 [22:19:46]line НДС 12% : 283.61 [22:19:46]line Наличными: 2670.00 [22:19:46]line Безнал.: 0.00 [22:19:46]line Место: АЗС № 85 "Партнер Нефть" [22:19:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:19:46]line СНО: Общий режим [22:19:46]line Чек 410 22.10.2024 22:19 [22:19:46]line Смена: 195 ФФД: 1.0 [22:19:46]line ЗНМ: 0300000167 [22:19:46]line РНМ: 0000000000156251 [22:19:46]line Версия ККМ: v1.0 [22:19:46]line ФМ: 0000000000963346 [22:19:46]line ФД: 70462 [22:19:46]line ФПД: 11373708779390 [22:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70462&fm=11373708779390&tin=02508201610067®Number=0000000000156251&sum=267000 [22:19:46]OFD Sender: Processing packet 70462 [packets to send 18, broken 17] [22:19:46]ProducePacketName [22:19:46]name=ofd_packets/00070462 [22:19:46]OFD Sender: To server: pG, [22:19:46]CommunicateWithHost lk.salyk.kg:30040 [22:19:46]ConnectInit lk.salyk.kg [22:19:46]written 0, free lines is 4095 [22:19:46]Connected sock=9 [22:19: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 34 36 0F 01 00 00 DC FF 07 01 DF 76 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 F0 9B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 13 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 12 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 6E 00 00 00 00 07 04 06 00 F8 12 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 02 25 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 13 01 00 35 04 06 00 0A 58 25 DF 1F 7E 0D 53 4D B4 10 1F 6B 83 [22:19: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 34 36 4F 00 00 00 75 99 47 00 E6 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 34 36 10 04 04 00 3E 13 01 00 F4 03 04 00 A2 CE 17 67 B6 04 01 00 00 DB 76 C1 BC 9C D7 B2 5C [22:19:47]CommunicateWithHost err = 0 [22:19:47]CheckOFDResponse [22:19:47]1017 (14) - 77093643461234 [22:19:47]1041 (16) - 0000000000963346 [22:19:47]1040 (4) - 70462 [22:19:47]1012 (4) - 22.10.2024 16:11 [22:19:47]1206 (1) - 0 [22:19:47]OFD Sender: Remove packet 70462 [22:19:47]ProducePacketName [22:19:47]name=ofd_packets/00070462 [22:19:47]NVStorageDeleteData [22:19:47]Write to MH i2c: 01 00 00 13 30 43 [22:19:47]Write i2c OK [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: 01 [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: 01 07 00 [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: 01 07 00 13 30 00 00 00 00 00 06 0D 5D [22:19:47]RasterBufferAndPrint [22:19:47]line [22:19:47]line [22:19:47]line [22:19:47]line [22:19:47]line [22:19:47]written 0, free lines is 3343 [22:19:47]MH_Cut [22:19:47]Write to MH i2c: D1 01 00 1A 30 01 1C [22:19:47]Write i2c OK [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: D1 [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: D1 01 00 [22:19:47]MH_I2C_Read... [22:19:47]Read from MH i2c: D1 01 00 1A 30 00 1B [22:19:47]Write to MH i2c: 01 00 00 1B 30 4B [22:19:47]Write i2c OK [22:19:47]MH_I2C_Read... [22:19:47]OFD Sender: No OFD packet to send [22:19:48]*** Cut start [22:19:48]*** Partial cut [22:19:48]*** CUTSNS_PIN = 1 [22:19:48]*** CUTSNS_PIN = 0 [22:19:48]*** Brake cut motor [22:19:48]Read from MH i2c: 01 [22:19:48]MH_I2C_Read... [22:19:48]*** Stop cut motor [22:19:48]*** Cut end [22:19:48]Read from MH i2c: 01 07 00 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: 01 07 00 1B 30 00 00 00 00 00 FF 0F 60 [22:19:48]process_action close_receipt done [22:19:48]requested_data is exist [22:19:48]produce_requested_data [22:19:48]requested_item fm.sn is exist - process it [22:19:48]wFMCommunicate request_size=4 [22:19:48]MH_SAM_APDU [22:19:48]CAPDU: 80 11 00 00 [22:19:48]Write to MH i2c: E2 08 00 1C 30 80 11 00 00 00 00 00 00 C6 [22:19:48]Write i2c OK [22:19:48]MH_I2C_Read... [22:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:48]Read from MH i2c: E2 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: E2 17 00 [22:19:48]MH_I2C_Read... [22:19:48]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 34 36 90 00 18 [22:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:19:48]wFMCommunicate OK [22:19:48]requested_item fd.num is exist - process it [22:19:48]SAM_PROTO_GetFieldsCounters [22:19:48]wFMCommunicate request_size=4 [22:19:48]MH_SAM_APDU [22:19:48]CAPDU: 80 13 00 00 [22:19:48]Write to MH i2c: E2 08 00 1D 30 80 13 00 00 00 00 00 00 C9 [22:19:48]Write i2c OK [22:19:48]MH_I2C_Read... [22:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:48]Read from MH i2c: E2 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: E2 62 00 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: E2 62 00 1D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [22:19: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:48]wFMCommunicate OK [22:19:48]SAM_PROTO_GetFieldsCounters done [22:19:48]requested_item shift.num is exist - process it [22:19:48]requested_item shift.opened is exist - process it [22:19:48]req_shift_opened [22:19:48]FM_GetShiftState [22:19:48]SAM_PROTO_GetShiftState [22:19:48]wFMCommunicate request_size=4 [22:19:48]MH_SAM_APDU [22:19:48]CAPDU: 80 13 01 00 [22:19:48]Write to MH i2c: E2 08 00 1E 30 80 13 01 00 00 00 00 00 CB [22:19:48]Write i2c OK [22:19:48]MH_I2C_Read... [22:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:48]Read from MH i2c: E2 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: E2 0E 00 [22:19:48]MH_I2C_Read... [22:19:48]Read from MH i2c: E2 0E 00 1E 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B9 [22:19:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:19:48]wFMCommunicate OK [22:19:48]SAM_PROTO_GetShiftState done [22:19:48]FM_GetShiftState done [22:19:48]req_shift_opened done [22:19:48]requested_item shift.open_date is exist - process it [22:19:48]req_shift_open_date [22:19:48]req_shift_open_date done [22:19:48]produce_requested_data done [22:19:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70462,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:19:48]process_action_free close_receipt [22:19:48]json_value_free [22:19:48]json_value_free done [22:19:48]process_json_proto returns [22:19:48]Send response to host [22:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70462,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:19:48]free response buf [22:19:48]execute_script done [22:19:48]execute_script returns [22:19:48]free content buf [22:19:48]Sock 10.Close socket [22:19:48]Sock 10.Thread stoped [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]accept exits with 7 [22:24:12]New connection [22:24:12]New thread 3066699108 created [22:24:12]Thread 3066555748 joined [22:24:12]Waiting for new connection... [22:24:12] Sock 7.Parse request [22:24:12]Sock 7.Check first char [22:24:12]Sock 7.First char is OK [22:24:12]request: POST /json_proto HTTP/1.0 [22:24:12]Method: POST [22:24:12]URL: /json_proto [22:24:12]Method is POST - this is cgi request [22:24:12]url: /json_proto [22:24:12]query_string will be loaded in cgi processing [22:24:12]execute_cgi json_proto POST (null) [22:24:12]execute_cgi path=json_proto method=POST [22:24:12]POST find Content-Length [22:24:12]Host: 172.17.50.3:8080 [22:24:12]Content-Length: 768 [22:24:12]Content-Type: application/json [22:24:12] [22:24:12]POST finish read [22:24:12]Found Content-Length = 768 [22:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:12]execute_script... [22:24: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 : (1)2886232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:12]POST & json_proto [22:24:12]process_json_proto [22:24:12]json parsed OK: [22:24:12]protocol is kg_v1.0 [22:24:12]action value=close_receipt [22:24:12]process_action close_receipt [22:24:12]cmd_close_receipt [22:24:12]MH_GetDate [22:24:12]Write to MH i2c: F0 00 00 1F 30 3E [22:24:12]Write i2c OK [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: F0 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: F0 09 00 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: F0 09 00 1F 30 00 0D 26 18 67 6B 98 1E 66 80 [22:24:12]GetLastDocTimeStamp 1729635586 [22:24:12]current date 1729635853 [22:24:12]FM_GetShiftState [22:24:12]SAM_PROTO_GetShiftState [22:24:12]wFMCommunicate request_size=4 [22:24:12]MH_SAM_APDU [22:24:12]CAPDU: 80 13 01 00 [22:24:12]Write to MH i2c: E2 08 00 20 30 80 13 01 00 00 00 00 00 CD [22:24:12]Write i2c OK [22:24:12]MH_I2C_Read... [22:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:12]Read from MH i2c: E2 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: E2 0E 00 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: E2 0E 00 20 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BB [22:24:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:24:12]wFMCommunicate OK [22:24:12]SAM_PROTO_GetShiftState done [22:24:12]FM_GetShiftState done [22:24:12]opened in 1729555832 [22:24:12]opened+sec_in_day 1729642232 [22:24:12]quantity*price = 70044 [22:24:12]sum+1 = 70045 [22:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 411 22.10.2024 22:24 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70463 ФПД: 83206653534788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70463&fm=83206653534788&tin=02508201610067®Number=0000000000156251&sum=70044 [22:24:13]StoreToDocumentArchive [22:24:13]shift 195 fd 70463 [22:24:13]save to /storage/0195/doc_00070463 [22:24:13]save last doc name /storage/0195/doc_00070463 to /storage/kkm_last_doc_name [22:24:13]save OK [22:24:13]Clear old archive folders... [22:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:13]tlvbuf is 00ED47A0 [22:24:13]SAM_PROTO_ClearQueue [22:24:13]wFMCommunicate request_size=4 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 09 00 00 [22:24:13]Write to MH i2c: E2 08 00 2D 30 80 09 00 00 00 00 00 00 CF [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 2D 30 00 90 00 D1 [22:24:13]RAPDU: 90 00 [22:24:13]wFMCommunicate OK [22:24:13]SAM_PROTO_ClearQueue done [22:24:13]KKMCreateOFDPacket [22:24:13]OFDProtocolAddRootSTLVToBuf [22:24:13]FM_MakeSignedData [22:24:13]FM_MakeSignedData [22:24:13]SAM_PROTO_SignData [22:24:13]wFMCommunicate request_size=4 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 0D 01 02 [22:24:13]Write to MH i2c: E2 08 00 2E 30 80 0D 01 02 00 00 00 00 D7 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 2E 30 00 90 00 D2 [22:24:13]RAPDU: 90 00 [22:24:13]wFMCommunicate OK [22:24:13]wFMCommunicate request_size=255 [22:24:13]MH_SAM_APDU [22:24:13]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 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 0D 26 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 13 01 00 35 04 06 00 4B [22:24:13]Write to MH i2c: E2 02 01 2F 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 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 0D 26 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 13 01 00 35 04 06 00 4B 00 00 77 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 2F 30 00 90 00 D3 [22:24:13]RAPDU: 90 00 [22:24:13]wFMCommunicate OK [22:24:13]wFMCommunicate request_size=10 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 0D 02 02 05 AD 0F 06 E2 44 [22:24:13]Write to MH i2c: E2 0D 00 30 30 80 0D 02 02 05 00 AD 0F 06 E2 44 00 00 CC [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 03 00 30 30 00 90 00 D4 [22:24:13]RAPDU: 90 00 [22:24:13]wFMCommunicate OK [22:24:13]wFMCommunicate request_size=4 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 0D 03 02 [22:24:13]Write to MH i2c: E2 08 00 31 30 80 0D 03 02 00 00 00 00 DC [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 0B 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 0B 00 31 30 00 B4 6B A1 78 52 2C A9 1B 90 00 57 [22:24:13]RAPDU: B4 6B A1 78 52 2C A9 1B 90 00 [22:24:13]wFMCommunicate OK [22:24:13]SAM_PROTO_SignData done [22:24:13]FM_MakeSignedData done [22:24:13]CreateOFDProtocolMessage [22:24:13]wFMCommunicate request_size=4 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 11 00 00 [22:24:13]Write to MH i2c: E2 08 00 32 30 80 11 00 00 00 00 00 00 DC [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 17 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 17 00 32 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [22:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:24:13]wFMCommunicate OK [22:24:13]CreateOFDProtocolMessage done [22:24:13]OFDSenderStorePacket 70463 [22:24:13]StoreOFDPacket docnum=70463 [22:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 28 85 07 01 0C FB 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 0D 26 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 13 01 00 35 04 06 00 4B AD 0F 06 E2 44 B4 6B A1 78 52 2C A9 1B [22:24:13]CheckFolder [22:24:13]dirname=/storage/ofd_packets [22:24:13]CheckFolder done [22:24:13]ProducePacketName [22:24:13]name=ofd_packets/00070463 [22:24:13]NVStorageSaveData ofd_packets/00070463 [22:24:13]File name is /storage/ofd_packets/00070463 [22:24:13]Write 301 bytes [22:24:13]NVStorageSaveData done [22:24:13]OFDSenderStorePacket done [22:24:13]KKMCreateOFDPacket done [22:24:13]NVStorageSaveData kkm_last_timestamp [22:24:13]File name is /storage/kkm_last_timestamp [22:24:13]Write 4 bytes [22:24:13]NVStorageSaveData done [22:24:13]ExternCall_PrintAddStr [22:24:13]wPrintStart [22:24:13]Write to MH i2c: 01 00 00 33 30 63 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 07 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 07 00 33 30 00 00 00 00 00 FF 0F 78 [22:24:13]RasterBufferAndPrint [22:24:13]line Счет N : (1)2886232 [22:24:13]line ИНН: 02508201610067 [22:24:13]line Контрольно-Кассовый Чек [22:24:13]line ПРОДАЖА [22:24:13]line ТРК (МРК, ГНК) : 22 [22:24:13]line Товар: 2710124130 [22:24:13]line Аи-92-К-5 [22:24:13]line 10.470 * 66.90 [22:24:13]line = 700.44 [22:24:13]line НДС 12% НСП 1% [22:24:13]line > о реализуемом товаре [22:24:13]line ИТОГО: 700.44 [22:24:13]line НСП 1% : 6.20 [22:24:13]line НДС 12% : 74.38 [22:24:13]line Наличными: 0.00 [22:24:13]line Безнал.: 700.44 [22:24:13]line Место: АЗС № 85 "Партнер Нефть" [22:24:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:24:13]line СНО: Общий режим [22:24:13]line Чек 411 22.10.2024 22:24 [22:24:13]line Смена: 195 ФФД: 1.0 [22:24:13]line ЗНМ: 0300000167 [22:24:13]line РНМ: 0000000000156251 [22:24:13]line Версия ККМ: v1.0 [22:24:13]line Платежная система: Mbank [22:24:13]line ФМ: 0000000000963346 [22:24:13]line ФД: 70463 [22:24:13]line ФПД: 83206653534788 [22:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70463&fm=83206653534788&tin=02508201610067®Number=0000000000156251&sum=70044 [22:24:13]written 0, free lines is 4095 [22:24:13]OFD Sender: Processing packet 70463 [packets to send 18, broken 17] [22:24:13]ProducePacketName [22:24:13]name=ofd_packets/00070463 [22:24:13]OFD Sender: To server: pG, [22:24:13]CommunicateWithHost lk.salyk.kg:30040 [22:24:13]ConnectInit lk.salyk.kg [22:24:14]Connected sock=11 [22:24: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 34 36 0F 01 00 00 28 85 07 01 0C FB 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 0D 26 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 13 01 00 35 04 06 00 4B AD 0F 06 E2 44 B4 6B A1 78 52 2C A9 1B [22:24: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 34 36 4F 00 00 00 11 98 47 00 C1 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 34 36 10 04 04 00 3F 13 01 00 F4 03 04 00 AD CF 17 67 B6 04 01 00 00 1A 75 98 4E DB 28 98 A6 [22:24:14]CommunicateWithHost err = 0 [22:24:14]CheckOFDResponse [22:24:14]1017 (14) - 77093643461234 [22:24:14]1041 (16) - 0000000000963346 [22:24:14]1040 (4) - 70463 [22:24:14]1012 (4) - 22.10.2024 16:15 [22:24:14]1206 (1) - 0 [22:24:14]OFD Sender: Remove packet 70463 [22:24:14]ProducePacketName [22:24:14]name=ofd_packets/00070463 [22:24:14]NVStorageDeleteData [22:24:14]Write to MH i2c: 01 00 00 5C 30 8C [22:24:14]Write i2c OK [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: 01 [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: 01 07 00 [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: 01 07 00 5C 30 00 00 00 00 00 25 0D C5 [22:24:14]RasterBufferAndPrint [22:24:14]line [22:24:14]line [22:24:14]line [22:24:14]line [22:24:14]line [22:24:14]written 0, free lines is 3371 [22:24:14]MH_Cut [22:24:14]Write to MH i2c: D1 01 00 63 30 01 65 [22:24:14]Write i2c OK [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: D1 [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: D1 01 00 [22:24:14]MH_I2C_Read... [22:24:14]Read from MH i2c: D1 01 00 63 30 00 64 [22:24:14]Write to MH i2c: 01 00 00 64 30 94 [22:24:14]Write i2c OK [22:24:14]MH_I2C_Read... [22:24:14]OFD Sender: No OFD packet to send [22:24:14]*** Cut start [22:24:14]*** Partial cut [22:24:14]*** CUTSNS_PIN = 1 [22:24:15]*** CUTSNS_PIN = 0 [22:24:15]*** Brake cut motor [22:24:15]Read from MH i2c: 01 [22:24:15]MH_I2C_Read... [22:24:15]*** Stop cut motor [22:24:15]*** Cut end [22:24:15]Read from MH i2c: 01 07 00 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: 01 07 00 64 30 00 00 00 00 00 FF 0F A9 [22:24:15]process_action close_receipt done [22:24:15]requested_data is exist [22:24:15]produce_requested_data [22:24:15]requested_item fm.sn is exist - process it [22:24:15]wFMCommunicate request_size=4 [22:24:15]MH_SAM_APDU [22:24:15]CAPDU: 80 11 00 00 [22:24:15]Write to MH i2c: E2 08 00 65 30 80 11 00 00 00 00 00 00 0F [22:24:15]Write i2c OK [22:24:15]MH_I2C_Read... [22:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:15]Read from MH i2c: E2 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 17 00 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 17 00 65 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [22:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:24:15]wFMCommunicate OK [22:24:15]requested_item fd.num is exist - process it [22:24:15]SAM_PROTO_GetFieldsCounters [22:24:15]wFMCommunicate request_size=4 [22:24:15]MH_SAM_APDU [22:24:15]CAPDU: 80 13 00 00 [22:24:15]Write to MH i2c: E2 08 00 66 30 80 13 00 00 00 00 00 00 12 [22:24:15]Write i2c OK [22:24:15]MH_I2C_Read... [22:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:15]Read from MH i2c: E2 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 62 00 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 62 00 66 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [22:24: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:15]wFMCommunicate OK [22:24:15]SAM_PROTO_GetFieldsCounters done [22:24:15]requested_item shift.num is exist - process it [22:24:15]requested_item shift.opened is exist - process it [22:24:15]req_shift_opened [22:24:15]FM_GetShiftState [22:24:15]SAM_PROTO_GetShiftState [22:24:15]wFMCommunicate request_size=4 [22:24:15]MH_SAM_APDU [22:24:15]CAPDU: 80 13 01 00 [22:24:15]Write to MH i2c: E2 08 00 67 30 80 13 01 00 00 00 00 00 14 [22:24:15]Write i2c OK [22:24:15]MH_I2C_Read... [22:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:15]Read from MH i2c: E2 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 0E 00 [22:24:15]MH_I2C_Read... [22:24:15]Read from MH i2c: E2 0E 00 67 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 02 [22:24:15]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:24:15]wFMCommunicate OK [22:24:15]SAM_PROTO_GetShiftState done [22:24:15]FM_GetShiftState done [22:24:15]req_shift_opened done [22:24:15]requested_item shift.open_date is exist - process it [22:24:15]req_shift_open_date [22:24:15]req_shift_open_date done [22:24:15]produce_requested_data done [22:24:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70463,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:24:15]process_action_free close_receipt [22:24:15]json_value_free [22:24:15]json_value_free done [22:24:15]process_json_proto returns [22:24:15]Send response to host [22:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70463,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:24:15]free response buf [22:24:15]execute_script done [22:24:15]execute_script returns [22:24:15]free content buf [22:24:15]Sock 7.Close socket [22:24:15]Sock 7.Thread stoped [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:18]accept exits with 9 [22:28:18]New connection [22:28:18]New thread 3066555748 created [22:28:18]Thread 3066699108 joined [22:28:18]Waiting for new connection... [22:28:18] Sock 9.Parse request [22:28:18]Sock 9.Check first char [22:28:18]Sock 9.First char is OK [22:28:18]request: POST /json_proto HTTP/1.0 [22:28:18]Method: POST [22:28:18]URL: /json_proto [22:28:18]Method is POST - this is cgi request [22:28:18]url: /json_proto [22:28:18]query_string will be loaded in cgi processing [22:28:18]execute_cgi json_proto POST (null) [22:28:18]execute_cgi path=json_proto method=POST [22:28:18]POST find Content-Length [22:28:18]Host: 172.17.50.3:8080 [22:28:18]Content-Length: 686 [22:28:18]Content-Type: application/json [22:28:18] [22:28:18]POST finish read [22:28:18]Found Content-Length = 686 [22:28:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.870, "sum" : 1434.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1434.00, "payments": [ { "type": 0, "sum" : 1434.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:18]execute_script... [22:28: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)2886233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.870, "sum" : 1434.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1434.00, "payments": [ { "type": 0, "sum" : 1434.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:18]POST & json_proto [22:28:18]process_json_proto [22:28:18]json parsed OK: [22:28:18]protocol is kg_v1.0 [22:28:18]action value=close_receipt [22:28:18]process_action close_receipt [22:28:18]cmd_close_receipt [22:28:18]MH_GetDate [22:28:18]Write to MH i2c: F0 00 00 68 30 87 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: F0 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: F0 09 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: F0 09 00 68 30 00 03 27 18 67 6B 98 1E 66 C0 [22:28:18]GetLastDocTimeStamp 1729635853 [22:28:18]current date 1729636099 [22:28:18]FM_GetShiftState [22:28:18]SAM_PROTO_GetShiftState [22:28:18]wFMCommunicate request_size=4 [22:28:18]MH_SAM_APDU [22:28:18]CAPDU: 80 13 01 00 [22:28:18]Write to MH i2c: E2 08 00 69 30 80 13 01 00 00 00 00 00 16 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:18]Read from MH i2c: E2 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 0E 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 0E 00 69 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 04 [22:28:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:28:18]wFMCommunicate OK [22:28:18]SAM_PROTO_GetShiftState done [22:28:18]FM_GetShiftState done [22:28:18]opened in 1729555832 [22:28:18]opened+sec_in_day 1729642232 [22:28:18]quantity*price = 143424 [22:28:18]sum+1 = 143425 [22:28:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1434.00 Внесено: 4000.00 СДАЧА: 2566.00 НСП 1% : 12.69 НДС 12% : 152.31 Наличными: 1434.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 412 22.10.2024 22:28 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70464 ФПД: 24337972277130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70464&fm=24337972277130&tin=02508201610067®Number=0000000000156251&sum=143400 [22:28:19]StoreToDocumentArchive [22:28:19]shift 195 fd 70464 [22:28:19]save to /storage/0195/doc_00070464 [22:28:19]save last doc name /storage/0195/doc_00070464 to /storage/kkm_last_doc_name [22:28:19]save OK [22:28:19]Clear old archive folders... [22:28:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:28:19]tlvbuf is 00B44CA0 [22:28:19]SAM_PROTO_ClearQueue [22:28:19]wFMCommunicate request_size=4 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 09 00 00 [22:28:19]Write to MH i2c: E2 08 00 76 30 80 09 00 00 00 00 00 00 18 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 76 30 00 90 00 1A [22:28:19]RAPDU: 90 00 [22:28:19]wFMCommunicate OK [22:28:19]SAM_PROTO_ClearQueue done [22:28:19]KKMCreateOFDPacket [22:28:19]OFDProtocolAddRootSTLVToBuf [22:28:19]FM_MakeSignedData [22:28:19]FM_MakeSignedData [22:28:19]SAM_PROTO_SignData [22:28:19]wFMCommunicate request_size=4 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 0D 01 02 [22:28:19]Write to MH i2c: E2 08 00 77 30 80 0D 01 02 00 00 00 00 20 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 77 30 00 90 00 1B [22:28:19]RAPDU: 90 00 [22:28:19]wFMCommunicate OK [22:28:19]wFMCommunicate request_size=255 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 06 90 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 40 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3B 00 00 00 00 07 04 06 00 28 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 03 27 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 13 01 00 35 04 06 00 16 22 [22:28:19]Write to MH i2c: E2 02 01 78 30 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 06 90 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 40 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3B 00 00 00 00 07 04 06 00 28 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 03 27 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 13 01 00 35 04 06 00 16 22 00 00 17 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 78 30 00 90 00 1C [22:28:19]RAPDU: 90 00 [22:28:19]wFMCommunicate OK [22:28:19]wFMCommunicate request_size=9 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 0D 02 02 04 A0 31 2F 8A [22:28:19]Write to MH i2c: E2 0C 00 79 30 80 0D 02 02 04 00 A0 31 2F 8A 00 00 B5 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 03 00 79 30 00 90 00 1D [22:28:19]RAPDU: 90 00 [22:28:19]wFMCommunicate OK [22:28:19]wFMCommunicate request_size=4 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 0D 03 02 [22:28:19]Write to MH i2c: E2 08 00 7A 30 80 0D 03 02 00 00 00 00 25 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 0B 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 0B 00 7A 30 00 40 19 57 CB 78 AA FD AE 90 00 6E [22:28:19]RAPDU: 40 19 57 CB 78 AA FD AE 90 00 [22:28:19]wFMCommunicate OK [22:28:19]SAM_PROTO_SignData done [22:28:19]FM_MakeSignedData done [22:28:19]CreateOFDProtocolMessage [22:28:19]wFMCommunicate request_size=4 [22:28:19]MH_SAM_APDU [22:28:19]CAPDU: 80 11 00 00 [22:28:19]Write to MH i2c: E2 08 00 7B 30 80 11 00 00 00 00 00 00 25 [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:19]Read from MH i2c: E2 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 17 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: E2 17 00 7B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [22:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:28:19]wFMCommunicate OK [22:28:19]CreateOFDProtocolMessage done [22:28:19]OFDSenderStorePacket 70464 [22:28:19]StoreOFDPacket docnum=70464 [22:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 32 92 06 01 66 D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 06 90 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 40 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3B 00 00 00 00 07 04 06 00 28 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 03 27 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 13 01 00 35 04 06 00 16 22 A0 31 2F 8A 40 19 57 CB 78 AA FD AE [22:28:19]CheckFolder [22:28:19]dirname=/storage/ofd_packets [22:28:19]CheckFolder done [22:28:19]ProducePacketName [22:28:19]name=ofd_packets/00070464 [22:28:19]NVStorageSaveData ofd_packets/00070464 [22:28:19]File name is /storage/ofd_packets/00070464 [22:28:19]Write 300 bytes [22:28:19]NVStorageSaveData done [22:28:19]OFDSenderStorePacket done [22:28:19]KKMCreateOFDPacket done [22:28:19]NVStorageSaveData kkm_last_timestamp [22:28:19]File name is /storage/kkm_last_timestamp [22:28:19]Write 4 bytes [22:28:19]NVStorageSaveData done [22:28:19]ExternCall_PrintAddStr [22:28:19]wPrintStart [22:28:19]Write to MH i2c: 01 00 00 7C 30 AC [22:28:19]Write i2c OK [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: 01 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: 01 07 00 [22:28:19]MH_I2C_Read... [22:28:19]Read from MH i2c: 01 07 00 7C 30 00 00 00 00 00 FF 0F C1 [22:28:19]RasterBufferAndPrint [22:28:19]line Счет N : (1)2886233 [22:28:19]line ИНН: 02508201610067 [22:28:19]line Контрольно-Кассовый Чек [22:28:19]line ПРОДАЖА [22:28:19]line ТРК (МРК, ГНК) : 71 [22:28:19]line Товар: 2711129700 [22:28:19]line ГАЗ-К-3 [22:28:19]line 36.870 * 38.90 [22:28:19]line = 1434.24 [22:28:19]line НДС 12% НСП 1% [22:28:19]line > о реализуемом товаре [22:28:19]line ОКРУГЛЕНИЕ: -0.24 [22:28:19]line ИТОГО: 1434.00 [22:28:19]line Внесено: 4000.00 [22:28:19]line СДАЧА: 2566.00 [22:28:19]line НСП 1% : 12.69 [22:28:19]line НДС 12% : 152.31 [22:28:19]line Наличными: 1434.00 [22:28:19]line Безнал.: 0.00 [22:28:19]line Место: АЗС № 85 "Партнер Нефть" [22:28:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:28:19]line СНО: Общий режим [22:28:19]line Чек 412 22.10.2024 22:28 [22:28:19]line Смена: 195 ФФД: 1.0 [22:28:19]line ЗНМ: 0300000167 [22:28:19]line РНМ: 0000000000156251 [22:28:19]line Версия ККМ: v1.0 [22:28:19]line ФМ: 0000000000963346 [22:28:19]line ФД: 70464 [22:28:19]line ФПД: 24337972277130 [22:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70464&fm=24337972277130&tin=02508201610067®Number=0000000000156251&sum=143400 [22:28:19]written 0, free lines is 4095 [22:28:19]OFD Sender: Processing packet 70464 [packets to send 18, broken 17] [22:28:19]ProducePacketName [22:28:19]name=ofd_packets/00070464 [22:28:19]OFD Sender: To server: pG, [22:28:19]CommunicateWithHost lk.salyk.kg:30040 [22:28:19]ConnectInit lk.salyk.kg [22:28:19]Connected sock=10 [22:28: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 34 36 0E 01 00 00 32 92 06 01 66 D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 06 90 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 40 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 3B 00 00 00 00 07 04 06 00 28 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 03 27 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 13 01 00 35 04 06 00 16 22 A0 31 2F 8A 40 19 57 CB 78 AA FD AE [22:28: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 34 36 4F 00 00 00 EA 21 47 00 36 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 34 36 10 04 04 00 40 13 01 00 F4 03 04 00 A2 D0 17 67 B6 04 01 00 00 A3 85 78 58 E1 FE D3 2F [22:28:20]CommunicateWithHost err = 0 [22:28:20]CheckOFDResponse [22:28:20]1017 (14) - 77093643461234 [22:28:20]1041 (16) - 0000000000963346 [22:28:20]1040 (4) - 70464 [22:28:20]1012 (4) - 22.10.2024 16:19 [22:28:20]1206 (1) - 0 [22:28:20]OFD Sender: Remove packet 70464 [22:28:20]ProducePacketName [22:28:20]name=ofd_packets/00070464 [22:28:20]NVStorageDeleteData [22:28:20]Write to MH i2c: 01 00 00 A7 30 D7 [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 07 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 07 00 A7 30 00 00 00 00 00 02 0D ED [22:28:20]RasterBufferAndPrint [22:28:20]line [22:28:20]line [22:28:20]line [22:28:20]line [22:28:20]line [22:28:20]written 0, free lines is 3337 [22:28:20]MH_Cut [22:28:20]Write to MH i2c: D1 01 00 AE 30 01 B0 [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: D1 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: D1 01 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: D1 01 00 AE 30 00 AF [22:28:20]Write to MH i2c: 01 00 00 AF 30 DF [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]OFD Sender: No OFD packet to send [22:28:20]*** Cut start [22:28:20]*** Partial cut [22:28:20]*** CUTSNS_PIN = 1 [22:28:20]*** CUTSNS_PIN = 0 [22:28:21]*** Brake cut motor [22:28:21]Read from MH i2c: 01 [22:28:21]MH_I2C_Read... [22:28:21]*** Stop cut motor [22:28:21]*** Cut end [22:28:21]Read from MH i2c: 01 07 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: 01 07 00 AF 30 00 00 00 00 00 FF 0F F4 [22:28:21]process_action close_receipt done [22:28:21]requested_data is exist [22:28:21]produce_requested_data [22:28:21]requested_item fm.sn is exist - process it [22:28:21]wFMCommunicate request_size=4 [22:28:21]MH_SAM_APDU [22:28:21]CAPDU: 80 11 00 00 [22:28:21]Write to MH i2c: E2 08 00 B0 30 80 11 00 00 00 00 00 00 5A [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:21]Read from MH i2c: E2 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 17 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 17 00 B0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [22:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:28:21]wFMCommunicate OK [22:28:21]requested_item fd.num is exist - process it [22:28:21]SAM_PROTO_GetFieldsCounters [22:28:21]wFMCommunicate request_size=4 [22:28:21]MH_SAM_APDU [22:28:21]CAPDU: 80 13 00 00 [22:28:21]Write to MH i2c: E2 08 00 B1 30 80 13 00 00 00 00 00 00 5D [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:21]Read from MH i2c: E2 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 62 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 62 00 B1 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [22:28: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:21]wFMCommunicate OK [22:28:21]SAM_PROTO_GetFieldsCounters done [22:28:21]requested_item shift.num is exist - process it [22:28:21]requested_item shift.opened is exist - process it [22:28:21]req_shift_opened [22:28:21]FM_GetShiftState [22:28:21]SAM_PROTO_GetShiftState [22:28:21]wFMCommunicate request_size=4 [22:28:21]MH_SAM_APDU [22:28:21]CAPDU: 80 13 01 00 [22:28:21]Write to MH i2c: E2 08 00 B2 30 80 13 01 00 00 00 00 00 5F [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:21]Read from MH i2c: E2 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 0E 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 0E 00 B2 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4D [22:28:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:28:21]wFMCommunicate OK [22:28:21]SAM_PROTO_GetShiftState done [22:28:21]FM_GetShiftState done [22:28:21]req_shift_opened done [22:28:21]requested_item shift.open_date is exist - process it [22:28:21]req_shift_open_date [22:28:21]req_shift_open_date done [22:28:21]produce_requested_data done [22:28:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70464,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:28:21]process_action_free close_receipt [22:28:21]json_value_free [22:28:21]json_value_free done [22:28:21]process_json_proto returns [22:28:21]Send response to host [22:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70464,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:28:21]free response buf [22:28:21]execute_script done [22:28:21]execute_script returns [22:28:21]free content buf [22:28:21]Sock 9.Close socket [22:28:21]Sock 9.Thread stoped [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]accept exits with 7 [22:35:30]New connection [22:35:30]New thread 3066699108 created [22:35:30]Thread 3066555748 joined [22:35:30]Waiting for new connection... [22:35:30] Sock 7.Parse request [22:35:30]Sock 7.Check first char [22:35:30]Sock 7.First char is OK [22:35:30]request: POST /json_proto HTTP/1.0 [22:35:30]Method: POST [22:35:30]URL: /json_proto [22:35:30]Method is POST - this is cgi request [22:35:30]url: /json_proto [22:35:30]query_string will be loaded in cgi processing [22:35:30]execute_cgi json_proto POST (null) [22:35:30]execute_cgi path=json_proto method=POST [22:35:30]POST find Content-Length [22:35:30]Host: 172.17.50.3:8080 [22:35:30]Content-Length: 686 [22:35:30]Content-Type: application/json [22:35:30] [22:35:30]POST finish read [22:35:30]Found Content-Length = 686 [22:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:35:30]execute_script... [22:35: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)2886234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:35:30]POST & json_proto [22:35:30]process_json_proto [22:35:30]json parsed OK: [22:35:30]protocol is kg_v1.0 [22:35:30]action value=close_receipt [22:35:30]process_action close_receipt [22:35:30]cmd_close_receipt [22:35:30]MH_GetDate [22:35:30]Write to MH i2c: F0 00 00 B3 30 D2 [22:35:30]Write i2c OK [22:35:30]MH_I2C_Read... [22:35:30]Read from MH i2c: F0 [22:35:30]MH_I2C_Read... [22:35:30]Read from MH i2c: F0 09 00 [22:35:30]MH_I2C_Read... [22:35:30]Read from MH i2c: F0 09 00 B3 30 00 B4 28 18 67 6B 98 1E 66 BD [22:35:30]GetLastDocTimeStamp 1729636099 [22:35:30]current date 1729636532 [22:35:30]FM_GetShiftState [22:35:30]SAM_PROTO_GetShiftState [22:35:30]wFMCommunicate request_size=4 [22:35:30]MH_SAM_APDU [22:35:30]CAPDU: 80 13 01 00 [22:35:30]Write to MH i2c: E2 08 00 B4 30 80 13 01 00 00 00 00 00 61 [22:35:30]Write i2c OK [22:35:30]MH_I2C_Read... [22:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:30]Read from MH i2c: E2 [22:35:30]MH_I2C_Read... [22:35:30]Read from MH i2c: E2 0E 00 [22:35:30]MH_I2C_Read... [22:35:30]Read from MH i2c: E2 0E 00 B4 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 4F [22:35:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:35:30]wFMCommunicate OK [22:35:30]SAM_PROTO_GetShiftState done [22:35:30]FM_GetShiftState done [22:35:30]opened in 1729555832 [22:35:30]opened+sec_in_day 1729642232 [22:35:30]quantity*price = 100011 [22:35:30]sum+1 = 100013 [22:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 413 22.10.2024 22:35 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70465 ФПД: 97458696103258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70465&fm=97458696103258&tin=02508201610067®Number=0000000000156251&sum=100000 [22:35:31]StoreToDocumentArchive [22:35:31]shift 195 fd 70465 [22:35:31]save to /storage/0195/doc_00070465 [22:35:31]save last doc name /storage/0195/doc_00070465 to /storage/kkm_last_doc_name [22:35:31]save OK [22:35:31]Clear old archive folders... [22:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:35:31]tlvbuf is 00D78CE0 [22:35:31]SAM_PROTO_ClearQueue [22:35:31]wFMCommunicate request_size=4 [22:35:31]MH_SAM_APDU [22:35:31]CAPDU: 80 09 00 00 [22:35:31]Write to MH i2c: E2 08 00 C1 30 80 09 00 00 00 00 00 00 63 [22:35:31]Write i2c OK [22:35:31]MH_I2C_Read... [22:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:31]Read from MH i2c: E2 [22:35:31]MH_I2C_Read... [22:35:31]Read from MH i2c: E2 03 00 [22:35:31]MH_I2C_Read... [22:35:31]Read from MH i2c: E2 03 00 C1 30 00 90 00 65 [22:35:31]RAPDU: 90 00 [22:35:31]wFMCommunicate OK [22:35:31]SAM_PROTO_ClearQueue done [22:35:31]KKMCreateOFDPacket [22:35:31]OFDProtocolAddRootSTLVToBuf [22:35:31]FM_MakeSignedData [22:35:31]FM_MakeSignedData [22:35:31]SAM_PROTO_SignData [22:35:31]wFMCommunicate request_size=4 [22:35:31]MH_SAM_APDU [22:35:31]CAPDU: 80 0D 01 02 [22:35:31]Write to MH i2c: E2 08 00 C2 30 80 0D 01 02 00 00 00 00 6B [22:35:31]Write i2c OK [22:35:31]MH_I2C_Read... [22:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:31]Read from MH i2c: E2 [22:35:31]MH_I2C_Read... [22:35:31]Read from MH i2c: E2 03 00 [22:35:31]MH_I2C_Read... [22:35:31]Read from MH i2c: E2 03 00 C2 30 00 90 00 66 [22:35:31]RAPDU: 90 00 [22:35:31]wFMCommunicate OK [22:35:31]wFMCommunicate request_size=255 [22:35:31]MH_SAM_APDU [22:35:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 9D 01 00 00 F4 03 04 00 B4 28 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 13 01 00 35 04 06 00 58 A3 [22:35:31]Write to MH i2c: E2 02 01 C3 30 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 9D 01 00 00 F4 03 04 00 B4 28 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 13 01 00 35 04 06 00 58 A3 00 00 DB [22:35:31]Write i2c OK [22:35:31]MH_I2C_Read... [22:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:32]Read from MH i2c: E2 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 03 00 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 03 00 C3 30 00 90 00 67 [22:35:32]RAPDU: 90 00 [22:35:32]wFMCommunicate OK [22:35:32]wFMCommunicate request_size=9 [22:35:32]MH_SAM_APDU [22:35:32]CAPDU: 80 0D 02 02 04 5E F6 25 5A [22:35:32]Write to MH i2c: E2 0C 00 C4 30 80 0D 02 02 04 00 5E F6 25 5A 00 00 49 [22:35:32]Write i2c OK [22:35:32]MH_I2C_Read... [22:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:32]Read from MH i2c: E2 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 03 00 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 03 00 C4 30 00 90 00 68 [22:35:32]RAPDU: 90 00 [22:35:32]wFMCommunicate OK [22:35:32]wFMCommunicate request_size=4 [22:35:32]MH_SAM_APDU [22:35:32]CAPDU: 80 0D 03 02 [22:35:32]Write to MH i2c: E2 08 00 C5 30 80 0D 03 02 00 00 00 00 70 [22:35:32]Write i2c OK [22:35:32]MH_I2C_Read... [22:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:32]Read from MH i2c: E2 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 0B 00 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 0B 00 C5 30 00 59 AF 4D 36 6E B5 98 E5 90 00 9C [22:35:32]RAPDU: 59 AF 4D 36 6E B5 98 E5 90 00 [22:35:32]wFMCommunicate OK [22:35:32]SAM_PROTO_SignData done [22:35:32]FM_MakeSignedData done [22:35:32]CreateOFDProtocolMessage [22:35:32]wFMCommunicate request_size=4 [22:35:32]MH_SAM_APDU [22:35:32]CAPDU: 80 11 00 00 [22:35:32]Write to MH i2c: E2 08 00 C6 30 80 11 00 00 00 00 00 00 70 [22:35:32]Write i2c OK [22:35:32]MH_I2C_Read... [22:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:32]Read from MH i2c: E2 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 17 00 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: E2 17 00 C6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [22:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:35:32]wFMCommunicate OK [22:35:32]CreateOFDProtocolMessage done [22:35:32]OFDSenderStorePacket 70465 [22:35:32]StoreOFDPacket docnum=70465 [22:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 07 B6 06 01 93 FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 9D 01 00 00 F4 03 04 00 B4 28 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 13 01 00 35 04 06 00 58 A3 5E F6 25 5A 59 AF 4D 36 6E B5 98 E5 [22:35:32]CheckFolder [22:35:32]dirname=/storage/ofd_packets [22:35:32]CheckFolder done [22:35:32]ProducePacketName [22:35:32]name=ofd_packets/00070465 [22:35:32]NVStorageSaveData ofd_packets/00070465 [22:35:32]File name is /storage/ofd_packets/00070465 [22:35:32]Write 300 bytes [22:35:32]NVStorageSaveData done [22:35:32]OFDSenderStorePacket done [22:35:32]KKMCreateOFDPacket done [22:35:32]NVStorageSaveData kkm_last_timestamp [22:35:32]File name is /storage/kkm_last_timestamp [22:35:32]Write 4 bytes [22:35:32]NVStorageSaveData done [22:35:32]ExternCall_PrintAddStr [22:35:32]wPrintStart [22:35:32]Write to MH i2c: 01 00 00 C7 30 F7 [22:35:32]Write i2c OK [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: 01 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: 01 07 00 [22:35:32]MH_I2C_Read... [22:35:32]Read from MH i2c: 01 07 00 C7 30 00 00 00 00 00 FF 0F 0C [22:35:32]RasterBufferAndPrint [22:35:32]line Счет N : (1)2886234 [22:35:32]line ИНН: 02508201610067 [22:35:32]line Контрольно-Кассовый Чек [22:35:32]line ПРОДАЖА [22:35:32]line ТРК (МРК, ГНК) : 71 [22:35:32]line Товар: 2711129700 [22:35:32]line ГАЗ-К-3 [22:35:32]line 25.710 * 38.90 [22:35:32]line = 1000.12 [22:35:32]line НДС 12% НСП 1% [22:35:32]line > о реализуемом товаре [22:35:32]line ОКРУГЛЕНИЕ: -0.12 [22:35:32]line ИТОГО: 1000.00 [22:35:32]line Внесено: 1000.00 [22:35:32]line СДАЧА: 0.00 [22:35:32]line НСП 1% : 8.85 [22:35:32]line НДС 12% : 106.21 [22:35:32]line Наличными: 1000.00 [22:35:32]line Безнал.: 0.00 [22:35:32]line Место: АЗС № 85 "Партнер Нефть" [22:35:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:35:32]line СНО: Общий режим [22:35:32]line Чек 413 22.10.2024 22:35 [22:35:32]line Смена: 195 ФФД: 1.0 [22:35:32]line ЗНМ: 0300000167 [22:35:32]line РНМ: 0000000000156251 [22:35:32]line Версия ККМ: v1.0 [22:35:32]line ФМ: 0000000000963346 [22:35:32]line ФД: 70465 [22:35:32]line ФПД: 97458696103258 [22:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70465&fm=97458696103258&tin=02508201610067®Number=0000000000156251&sum=100000 [22:35:32]OFD Sender: Processing packet 70465 [packets to send 18, broken 17] [22:35:32]ProducePacketName [22:35:32]name=ofd_packets/00070465 [22:35:32]OFD Sender: To server: pG, [22:35:32]CommunicateWithHost lk.salyk.kg:30040 [22:35:32]ConnectInit lk.salyk.kg [22:35:32]written 0, free lines is 4095 [22:35:32]Connected sock=10 [22:35: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 34 36 0E 01 00 00 07 B6 06 01 93 FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 9D 01 00 00 F4 03 04 00 B4 28 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 13 01 00 35 04 06 00 58 A3 5E F6 25 5A 59 AF 4D 36 6E B5 98 E5 [22:35: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 34 36 4F 00 00 00 54 1D 47 00 26 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 13 01 00 F4 03 04 00 53 D2 17 67 B6 04 01 00 00 21 66 CF F7 4A 92 3A 9B [22:35:32]CommunicateWithHost err = 0 [22:35:32]CheckOFDResponse [22:35:32]1017 (14) - 77093643461234 [22:35:32]1041 (16) - 0000000000963346 [22:35:32]1040 (4) - 70465 [22:35:32]1012 (4) - 22.10.2024 16:26 [22:35:32]1206 (1) - 0 [22:35:32]OFD Sender: Remove packet 70465 [22:35:32]ProducePacketName [22:35:32]name=ofd_packets/00070465 [22:35:32]NVStorageDeleteData [22:35:33]Write to MH i2c: 01 00 00 F2 30 22 [22:35:33]Write i2c OK [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: 01 [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: 01 07 00 [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: 01 07 00 F2 30 00 00 00 00 00 F5 0C 2A [22:35:33]RasterBufferAndPrint [22:35:33]line [22:35:33]line [22:35:33]line [22:35:33]line [22:35:33]line [22:35:33]written 0, free lines is 3323 [22:35:33]MH_Cut [22:35:33]Write to MH i2c: D1 01 00 F9 30 01 FB [22:35:33]Write i2c OK [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: D1 [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: D1 01 00 [22:35:33]MH_I2C_Read... [22:35:33]Read from MH i2c: D1 01 00 F9 30 00 FA [22:35:33]Write to MH i2c: 01 00 00 FA 30 2A [22:35:33]Write i2c OK [22:35:33]MH_I2C_Read... [22:35:33]OFD Sender: No OFD packet to send [22:35:33]*** Cut start [22:35:33]*** Partial cut [22:35:33]*** CUTSNS_PIN = 1 [22:35:33]*** CUTSNS_PIN = 0 [22:35:34]*** Brake cut motor [22:35:34]Read from MH i2c: 01 [22:35:34]MH_I2C_Read... [22:35:34]*** Stop cut motor [22:35:34]*** Cut end [22:35:34]Read from MH i2c: 01 07 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: 01 07 00 FA 30 00 00 00 00 00 FF 0F 3F [22:35:34]process_action close_receipt done [22:35:34]requested_data is exist [22:35:34]produce_requested_data [22:35:34]requested_item fm.sn is exist - process it [22:35:34]wFMCommunicate request_size=4 [22:35:34]MH_SAM_APDU [22:35:34]CAPDU: 80 11 00 00 [22:35:34]Write to MH i2c: E2 08 00 FB 30 80 11 00 00 00 00 00 00 A5 [22:35:34]Write i2c OK [22:35:34]MH_I2C_Read... [22:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:34]Read from MH i2c: E2 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 17 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 17 00 FB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [22:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:35:34]wFMCommunicate OK [22:35:34]requested_item fd.num is exist - process it [22:35:34]SAM_PROTO_GetFieldsCounters [22:35:34]wFMCommunicate request_size=4 [22:35:34]MH_SAM_APDU [22:35:34]CAPDU: 80 13 00 00 [22:35:34]Write to MH i2c: E2 08 00 FC 30 80 13 00 00 00 00 00 00 A8 [22:35:34]Write i2c OK [22:35:34]MH_I2C_Read... [22:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:34]Read from MH i2c: E2 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 62 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 62 00 FC 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [22:35: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:34]wFMCommunicate OK [22:35:34]SAM_PROTO_GetFieldsCounters done [22:35:34]requested_item shift.num is exist - process it [22:35:34]requested_item shift.opened is exist - process it [22:35:34]req_shift_opened [22:35:34]FM_GetShiftState [22:35:34]SAM_PROTO_GetShiftState [22:35:34]wFMCommunicate request_size=4 [22:35:34]MH_SAM_APDU [22:35:34]CAPDU: 80 13 01 00 [22:35:34]Write to MH i2c: E2 08 00 FD 30 80 13 01 00 00 00 00 00 AA [22:35:34]Write i2c OK [22:35:34]MH_I2C_Read... [22:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:34]Read from MH i2c: E2 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 0E 00 [22:35:34]MH_I2C_Read... [22:35:34]Read from MH i2c: E2 0E 00 FD 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 98 [22:35:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:35:34]wFMCommunicate OK [22:35:34]SAM_PROTO_GetShiftState done [22:35:34]FM_GetShiftState done [22:35:34]req_shift_opened done [22:35:34]requested_item shift.open_date is exist - process it [22:35:34]req_shift_open_date [22:35:34]req_shift_open_date done [22:35:34]produce_requested_data done [22:35:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70465,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:35:34]process_action_free close_receipt [22:35:34]json_value_free [22:35:34]json_value_free done [22:35:34]process_json_proto returns [22:35:34]Send response to host [22:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70465,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:35:34]free response buf [22:35:34]execute_script done [22:35:34]execute_script returns [22:35:34]free content buf [22:35:34]Sock 7.Close socket [22:35:34]Sock 7.Thread stoped [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:32]accept exits with 9 [22:37:32]New connection [22:37:32]New thread 3066555748 created [22:37:32]Thread 3066699108 joined [22:37:32]Waiting for new connection... [22:37:32] Sock 9.Parse request [22:37:32]Sock 9.Check first char [22:37:32]Sock 9.First char is OK [22:37:32]request: POST /json_proto HTTP/1.0 [22:37:32]Method: POST [22:37:32]URL: /json_proto [22:37:32]Method is POST - this is cgi request [22:37:32]url: /json_proto [22:37:32]query_string will be loaded in cgi processing [22:37:32]execute_cgi json_proto POST (null) [22:37:32]execute_cgi path=json_proto method=POST [22:37:32]POST find Content-Length [22:37:32]Host: 172.17.50.3:8080 [22:37:32]Content-Length: 678 [22:37:32]Content-Type: application/json [22:37:32] [22:37:32]POST finish read [22:37:32]Found Content-Length = 678 [22:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:37:32]execute_script... [22: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 : (1)2886235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:37:32]POST & json_proto [22:37:32]process_json_proto [22:37:32]json parsed OK: [22:37:32]protocol is kg_v1.0 [22:37:32]action value=close_receipt [22:37:32]process_action close_receipt [22:37:32]cmd_close_receipt [22:37:32]MH_GetDate [22:37:32]Write to MH i2c: F0 00 00 FE 30 1D [22:37:32]Write i2c OK [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: F0 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: F0 09 00 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: F0 09 00 FE 30 00 2E 29 18 67 6B 98 1E 66 83 [22:37:32]GetLastDocTimeStamp 1729636532 [22:37:32]current date 1729636654 [22:37:32]FM_GetShiftState [22:37:32]SAM_PROTO_GetShiftState [22:37:32]wFMCommunicate request_size=4 [22:37:32]MH_SAM_APDU [22:37:32]CAPDU: 80 13 01 00 [22:37:32]Write to MH i2c: E2 08 00 FF 30 80 13 01 00 00 00 00 00 AC [22:37:32]Write i2c OK [22:37:32]MH_I2C_Read... [22:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:32]Read from MH i2c: E2 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: E2 0E 00 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: E2 0E 00 FF 30 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9A [22:37:32]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:37:32]wFMCommunicate OK [22:37:32]SAM_PROTO_GetShiftState done [22:37:32]FM_GetShiftState done [22:37:32]opened in 1729555832 [22:37:32]opened+sec_in_day 1729642232 [22:37:32]quantity*price = 50010 [22:37:32]sum+1 = 50012 [22:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 414 22.10.2024 22:37 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70466 ФПД: 111864773227731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70466&fm=111864773227731&tin=02508201610067®Number=0000000000156251&sum=50000 [22:37:33]StoreToDocumentArchive [22:37:33]shift 195 fd 70466 [22:37:33]save to /storage/0195/doc_00070466 [22:37:33]save last doc name /storage/0195/doc_00070466 to /storage/kkm_last_doc_name [22:37:33]save OK [22:37:33]Clear old archive folders... [22:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:33]tlvbuf is 00B44F60 [22:37:33]SAM_PROTO_ClearQueue [22:37:33]wFMCommunicate request_size=4 [22:37:33]MH_SAM_APDU [22:37:33]CAPDU: 80 09 00 00 [22:37:33]Write to MH i2c: E2 08 00 0C 31 80 09 00 00 00 00 00 00 AF [22:37:33]Write i2c OK [22:37:33]MH_I2C_Read... [22:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:33]Read from MH i2c: E2 [22:37:33]MH_I2C_Read... [22:37:33]Read from MH i2c: E2 03 00 [22:37:33]MH_I2C_Read... [22:37:33]Read from MH i2c: E2 03 00 0C 31 00 90 00 B1 [22:37:33]RAPDU: 90 00 [22:37:33]wFMCommunicate OK [22:37:33]SAM_PROTO_ClearQueue done [22:37:33]KKMCreateOFDPacket [22:37:33]OFDProtocolAddRootSTLVToBuf [22:37:33]FM_MakeSignedData [22:37:33]FM_MakeSignedData [22:37:33]SAM_PROTO_SignData [22:37:33]wFMCommunicate request_size=4 [22:37:33]MH_SAM_APDU [22:37:33]CAPDU: 80 0D 01 02 [22:37:33]Write to MH i2c: E2 08 00 0D 31 80 0D 01 02 00 00 00 00 B7 [22:37:33]Write i2c OK [22:37:33]MH_I2C_Read... [22:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:33]Read from MH i2c: E2 [22:37:33]MH_I2C_Read... [22:37:33]Read from MH i2c: E2 03 00 [22:37:33]MH_I2C_Read... [22:37:33]Read from MH i2c: E2 03 00 0D 31 00 90 00 B2 [22:37:33]RAPDU: 90 00 [22:37:33]wFMCommunicate OK [22:37:33]wFMCommunicate request_size=255 [22:37:33]MH_SAM_APDU [22:37:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 9E 01 00 00 F4 03 04 00 2E 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 13 01 00 35 04 06 00 65 [22:37:33]Write to MH i2c: E2 02 01 0E 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 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 9E 01 00 00 F4 03 04 00 2E 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 13 01 00 35 04 06 00 65 00 00 0B [22:37:33]Write i2c OK [22:37:33]MH_I2C_Read... [22:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:34]Read from MH i2c: E2 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 03 00 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 03 00 0E 31 00 90 00 B3 [22:37:34]RAPDU: 90 00 [22:37:34]wFMCommunicate OK [22:37:34]wFMCommunicate request_size=10 [22:37:34]MH_SAM_APDU [22:37:34]CAPDU: 80 0D 02 02 05 BD 8C 12 34 D3 [22:37:34]Write to MH i2c: E2 0D 00 0F 31 80 0D 02 02 05 00 BD 8C 12 34 D3 00 00 26 [22:37:34]Write i2c OK [22:37:34]MH_I2C_Read... [22:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:34]Read from MH i2c: E2 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 03 00 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 03 00 0F 31 00 90 00 B4 [22:37:34]RAPDU: 90 00 [22:37:34]wFMCommunicate OK [22:37:34]wFMCommunicate request_size=4 [22:37:34]MH_SAM_APDU [22:37:34]CAPDU: 80 0D 03 02 [22:37:34]Write to MH i2c: E2 08 00 10 31 80 0D 03 02 00 00 00 00 BC [22:37:34]Write i2c OK [22:37:34]MH_I2C_Read... [22:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:34]Read from MH i2c: E2 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 0B 00 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 0B 00 10 31 00 FF A1 91 7A BA 06 52 2C 90 00 A6 [22:37:34]RAPDU: FF A1 91 7A BA 06 52 2C 90 00 [22:37:34]wFMCommunicate OK [22:37:34]SAM_PROTO_SignData done [22:37:34]FM_MakeSignedData done [22:37:34]CreateOFDProtocolMessage [22:37:34]wFMCommunicate request_size=4 [22:37:34]MH_SAM_APDU [22:37:34]CAPDU: 80 11 00 00 [22:37:34]Write to MH i2c: E2 08 00 11 31 80 11 00 00 00 00 00 00 BC [22:37:34]Write i2c OK [22:37:34]MH_I2C_Read... [22:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:34]Read from MH i2c: E2 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 17 00 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: E2 17 00 11 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [22:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:37:34]wFMCommunicate OK [22:37:34]CreateOFDProtocolMessage done [22:37:34]OFDSenderStorePacket 70466 [22:37:34]StoreOFDPacket docnum=70466 [22:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 17 07 01 92 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9E 01 00 00 F4 03 04 00 2E 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 13 01 00 35 04 06 00 65 BD 8C 12 34 D3 FF A1 91 7A BA 06 52 2C [22:37:34]CheckFolder [22:37:34]dirname=/storage/ofd_packets [22:37:34]CheckFolder done [22:37:34]ProducePacketName [22:37:34]name=ofd_packets/00070466 [22:37:34]NVStorageSaveData ofd_packets/00070466 [22:37:34]File name is /storage/ofd_packets/00070466 [22:37:34]Write 301 bytes [22:37:34]NVStorageSaveData done [22:37:34]OFDSenderStorePacket done [22:37:34]KKMCreateOFDPacket done [22:37:34]NVStorageSaveData kkm_last_timestamp [22:37:34]File name is /storage/kkm_last_timestamp [22:37:34]Write 4 bytes [22:37:34]NVStorageSaveData done [22:37:34]ExternCall_PrintAddStr [22:37:34]wPrintStart [22:37:34]Write to MH i2c: 01 00 00 12 31 43 [22:37:34]Write i2c OK [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: 01 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: 01 07 00 [22:37:34]MH_I2C_Read... [22:37:34]Read from MH i2c: 01 07 00 12 31 00 00 00 00 00 FF 0F 58 [22:37:34]RasterBufferAndPrint [22:37:34]line Счет N : (1)2886235 [22:37:34]line ИНН: 02508201610067 [22:37:34]line Контрольно-Кассовый Чек [22:37:34]line ПРОДАЖА [22:37:34]line ТРК (МРК, ГНК) : 23 [22:37:34]line Товар: 2710124500 [22:37:34]line Аи-95-К-5 [22:37:34]line 6.740 * 74.20 [22:37:34]line = 500.11 [22:37:34]line НДС 12% НСП 1% [22:37:34]line > о реализуемом товаре [22:37:34]line ОКРУГЛЕНИЕ: -0.11 [22:37:34]line ИТОГО: 500.00 [22:37:34]line Внесено: 500.00 [22:37:34]line СДАЧА: 0.00 [22:37:34]line НСП 1% : 4.43 [22:37:34]line НДС 12% : 53.11 [22:37:34]line Наличными: 500.00 [22:37:34]line Безнал.: 0.00 [22:37:34]line Место: АЗС № 85 "Партнер Нефть" [22:37:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:37:34]line СНО: Общий режим [22:37:34]line Чек 414 22.10.2024 22:37 [22:37:34]line Смена: 195 ФФД: 1.0 [22:37:34]line ЗНМ: 0300000167 [22:37:34]line РНМ: 0000000000156251 [22:37:34]line Версия ККМ: v1.0 [22:37:34]line ФМ: 0000000000963346 [22:37:34]line ФД: 70466 [22:37:34]line ФПД: 111864773227731 [22:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70466&fm=111864773227731&tin=02508201610067®Number=0000000000156251&sum=50000 [22:37:34]OFD Sender: Processing packet 70466 [packets to send 18, broken 17] [22:37:34]ProducePacketName [22:37:34]name=ofd_packets/00070466 [22:37:34]OFD Sender: To server: pG, [22:37:34]CommunicateWithHost lk.salyk.kg:30040 [22:37:34]ConnectInit lk.salyk.kg [22:37:34]written 0, free lines is 4095 [22:37:34]Connected sock=10 [22: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 34 36 0F 01 00 00 A8 17 07 01 92 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9E 01 00 00 F4 03 04 00 2E 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 13 01 00 35 04 06 00 65 BD 8C 12 34 D3 FF A1 91 7A BA 06 52 2C [22: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 34 36 4F 00 00 00 26 A5 47 00 B3 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 34 36 10 04 04 00 42 13 01 00 F4 03 04 00 CD D2 17 67 B6 04 01 00 00 90 57 9A A1 E8 7D A7 CB [22:37:34]CommunicateWithHost err = 0 [22:37:34]CheckOFDResponse [22:37:34]1017 (14) - 77093643461234 [22:37:34]1041 (16) - 0000000000963346 [22:37:34]1040 (4) - 70466 [22:37:34]1012 (4) - 22.10.2024 16:29 [22:37:34]1206 (1) - 0 [22:37:34]OFD Sender: Remove packet 70466 [22:37:34]ProducePacketName [22:37:34]name=ofd_packets/00070466 [22:37:34]NVStorageDeleteData [22:37:35]Write to MH i2c: 01 00 00 3D 31 6E [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: 01 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: 01 07 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: 01 07 00 3D 31 00 00 00 00 00 F2 0C 73 [22:37:35]RasterBufferAndPrint [22:37:35]line [22:37:35]line [22:37:35]line [22:37:35]line [22:37:35]line [22:37:35]written 0, free lines is 3320 [22:37:35]MH_Cut [22:37:35]Write to MH i2c: D1 01 00 44 31 01 47 [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: D1 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: D1 01 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: D1 01 00 44 31 00 46 [22:37:35]Write to MH i2c: 01 00 00 45 31 76 [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]OFD Sender: No OFD packet to send [22:37:35]*** Cut start [22:37:35]*** Partial cut [22:37:35]*** CUTSNS_PIN = 1 [22:37:35]*** CUTSNS_PIN = 0 [22:37:36]*** Brake cut motor [22:37:36]Read from MH i2c: 01 [22:37:36]MH_I2C_Read... [22:37:36]*** Stop cut motor [22:37:36]*** Cut end [22:37:36]Read from MH i2c: 01 07 00 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: 01 07 00 45 31 00 00 00 00 00 FF 0F 8B [22:37:36]process_action close_receipt done [22:37:36]requested_data is exist [22:37:36]produce_requested_data [22:37:36]requested_item fm.sn is exist - process it [22:37:36]wFMCommunicate request_size=4 [22:37:36]MH_SAM_APDU [22:37:36]CAPDU: 80 11 00 00 [22:37:36]Write to MH i2c: E2 08 00 46 31 80 11 00 00 00 00 00 00 F1 [22:37:36]Write i2c OK [22:37:36]MH_I2C_Read... [22:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:36]Read from MH i2c: E2 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 17 00 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 17 00 46 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [22:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:37:36]wFMCommunicate OK [22:37:36]requested_item fd.num is exist - process it [22:37:36]SAM_PROTO_GetFieldsCounters [22:37:36]wFMCommunicate request_size=4 [22:37:36]MH_SAM_APDU [22:37:36]CAPDU: 80 13 00 00 [22:37:36]Write to MH i2c: E2 08 00 47 31 80 13 00 00 00 00 00 00 F4 [22:37:36]Write i2c OK [22:37:36]MH_I2C_Read... [22:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:36]Read from MH i2c: E2 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 62 00 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 62 00 47 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:36]wFMCommunicate OK [22:37:36]SAM_PROTO_GetFieldsCounters done [22:37:36]requested_item shift.num is exist - process it [22:37:36]requested_item shift.opened is exist - process it [22:37:36]req_shift_opened [22:37:36]FM_GetShiftState [22:37:36]SAM_PROTO_GetShiftState [22:37:36]wFMCommunicate request_size=4 [22:37:36]MH_SAM_APDU [22:37:36]CAPDU: 80 13 01 00 [22:37:36]Write to MH i2c: E2 08 00 48 31 80 13 01 00 00 00 00 00 F6 [22:37:36]Write i2c OK [22:37:36]MH_I2C_Read... [22:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:36]Read from MH i2c: E2 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 0E 00 [22:37:36]MH_I2C_Read... [22:37:36]Read from MH i2c: E2 0E 00 48 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E4 [22:37:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:37:36]wFMCommunicate OK [22:37:36]SAM_PROTO_GetShiftState done [22:37:36]FM_GetShiftState done [22:37:36]req_shift_opened done [22:37:36]requested_item shift.open_date is exist - process it [22:37:36]req_shift_open_date [22:37:36]req_shift_open_date done [22:37:36]produce_requested_data done [22:37:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70466,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:37:36]process_action_free close_receipt [22:37:36]json_value_free [22:37:36]json_value_free done [22:37:36]process_json_proto returns [22:37:36]Send response to host [22:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70466,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:37:36]free response buf [22:37:36]execute_script done [22:37:36]execute_script returns [22:37:36]free content buf [22:37:36]Sock 9.Close socket [22:37:36]Sock 9.Thread stoped [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]accept exits with 7 [22:38:20]New connection [22:38:20]New thread 3066699108 created [22:38:20]Thread 3066555748 joined [22:38:20]Waiting for new connection... [22:38:20] Sock 7.Parse request [22:38:20]Sock 7.Check first char [22:38:20]Sock 7.First char is OK [22:38:20]request: POST /json_proto HTTP/1.0 [22:38:20]Method: POST [22:38:20]URL: /json_proto [22:38:20]Method is POST - this is cgi request [22:38:20]url: /json_proto [22:38:20]query_string will be loaded in cgi processing [22:38:20]execute_cgi json_proto POST (null) [22:38:20]execute_cgi path=json_proto method=POST [22:38:20]POST find Content-Length [22:38:20]Host: 172.17.50.3:8080 [22:38:20]Content-Length: 683 [22:38:20]Content-Type: application/json [22:38:20] [22:38:20]POST finish read [22:38:20]Found Content-Length = 683 [22:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 14.780, "sum" : 574.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 574.00, "payments": [ { "type": 0, "sum" : 574.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:20]execute_script... [22:38: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)2886236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 14.780, "sum" : 574.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 574.00, "payments": [ { "type": 0, "sum" : 574.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:20]POST & json_proto [22:38:20]process_json_proto [22:38:20]json parsed OK: [22:38:20]protocol is kg_v1.0 [22:38:20]action value=close_receipt [22:38:20]process_action close_receipt [22:38:20]cmd_close_receipt [22:38:20]MH_GetDate [22:38:20]Write to MH i2c: F0 00 00 49 31 69 [22:38:20]Write i2c OK [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: F0 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: F0 09 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: F0 09 00 49 31 00 5D 29 18 67 6B 98 1E 66 FE [22:38:20]GetLastDocTimeStamp 1729636654 [22:38:20]current date 1729636701 [22:38:20]FM_GetShiftState [22:38:20]SAM_PROTO_GetShiftState [22:38:20]wFMCommunicate request_size=4 [22:38:20]MH_SAM_APDU [22:38:20]CAPDU: 80 13 01 00 [22:38:20]Write to MH i2c: E2 08 00 4A 31 80 13 01 00 00 00 00 00 F8 [22:38:20]Write i2c OK [22:38:20]MH_I2C_Read... [22:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:20]Read from MH i2c: E2 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 0E 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 0E 00 4A 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E6 [22:38:20]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:38:20]wFMCommunicate OK [22:38:20]SAM_PROTO_GetShiftState done [22:38:20]FM_GetShiftState done [22:38:20]opened in 1729555832 [22:38:20]opened+sec_in_day 1729642232 [22:38:20]quantity*price = 57494 [22:38:20]sum+1 = 57495 [22:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 574.00 Внесено: 3000.00 СДАЧА: 2426.00 НСП 1% : 5.09 НДС 12% : 61.06 Наличными: 574.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 415 22.10.2024 22:38 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70467 ФПД: 219838933674096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70467&fm=219838933674096&tin=02508201610067®Number=0000000000156251&sum=57400 [22:38:21]StoreToDocumentArchive [22:38:21]shift 195 fd 70467 [22:38:21]save to /storage/0195/doc_00070467 [22:38:21]save last doc name /storage/0195/doc_00070467 to /storage/kkm_last_doc_name [22:38:21]save OK [22:38:21]Clear old archive folders... [22:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:38:21]tlvbuf is B6F179F0 [22:38:21]SAM_PROTO_ClearQueue [22:38:21]wFMCommunicate request_size=4 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 09 00 00 [22:38:21]Write to MH i2c: E2 08 00 57 31 80 09 00 00 00 00 00 00 FA [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 57 31 00 90 00 FC [22:38:21]RAPDU: 90 00 [22:38:21]wFMCommunicate OK [22:38:21]SAM_PROTO_ClearQueue done [22:38:21]KKMCreateOFDPacket [22:38:21]OFDProtocolAddRootSTLVToBuf [22:38:21]FM_MakeSignedData [22:38:21]FM_MakeSignedData [22:38:21]SAM_PROTO_SignData [22:38:21]wFMCommunicate request_size=4 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 0D 01 02 [22:38:21]Write to MH i2c: E2 08 00 58 31 80 0D 01 02 00 00 00 00 02 [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 58 31 00 90 00 FD [22:38:21]RAPDU: 90 00 [22:38:21]wFMCommunicate OK [22:38:21]wFMCommunicate request_size=255 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 38 E0 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 01 00 00 F4 03 04 00 5D 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 13 01 00 35 04 06 00 C7 F1 [22:38:21]Write to MH i2c: E2 02 01 59 31 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 38 E0 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 01 00 00 F4 03 04 00 5D 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 13 01 00 35 04 06 00 C7 F1 00 00 F6 [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 59 31 00 90 00 FE [22:38:21]RAPDU: 90 00 [22:38:21]wFMCommunicate OK [22:38:21]wFMCommunicate request_size=9 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 0D 02 02 04 3D 8C A8 70 [22:38:21]Write to MH i2c: E2 0C 00 5A 31 80 0D 02 02 04 00 3D 8C A8 70 00 00 EE [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 03 00 5A 31 00 90 00 FF [22:38:21]RAPDU: 90 00 [22:38:21]wFMCommunicate OK [22:38:21]wFMCommunicate request_size=4 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 0D 03 02 [22:38:21]Write to MH i2c: E2 08 00 5B 31 80 0D 03 02 00 00 00 00 07 [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 0B 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 0B 00 5B 31 00 8D 13 83 3E 95 FF 73 F4 90 00 64 [22:38:21]RAPDU: 8D 13 83 3E 95 FF 73 F4 90 00 [22:38:21]wFMCommunicate OK [22:38:21]SAM_PROTO_SignData done [22:38:21]FM_MakeSignedData done [22:38:21]CreateOFDProtocolMessage [22:38:21]wFMCommunicate request_size=4 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 11 00 00 [22:38:21]Write to MH i2c: E2 08 00 5C 31 80 11 00 00 00 00 00 00 07 [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 17 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 17 00 5C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [22:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:38:21]wFMCommunicate OK [22:38:21]CreateOFDProtocolMessage done [22:38:21]OFDSenderStorePacket 70467 [22:38:21]StoreOFDPacket docnum=70467 [22:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E3 E9 06 01 34 8E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 38 E0 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 01 00 00 F4 03 04 00 5D 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 13 01 00 35 04 06 00 C7 F1 3D 8C A8 70 8D 13 83 3E 95 FF 73 F4 [22:38:21]CheckFolder [22:38:21]dirname=/storage/ofd_packets [22:38:21]CheckFolder done [22:38:21]ProducePacketName [22:38:21]name=ofd_packets/00070467 [22:38:21]NVStorageSaveData ofd_packets/00070467 [22:38:21]File name is /storage/ofd_packets/00070467 [22:38:21]Write 300 bytes [22:38:21]NVStorageSaveData done [22:38:21]OFDSenderStorePacket done [22:38:21]KKMCreateOFDPacket done [22:38:21]NVStorageSaveData kkm_last_timestamp [22:38:21]File name is /storage/kkm_last_timestamp [22:38:21]Write 4 bytes [22:38:21]NVStorageSaveData done [22:38:21]ExternCall_PrintAddStr [22:38:21]wPrintStart [22:38:21]Write to MH i2c: 01 00 00 5D 31 8E [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: 01 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: 01 07 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: 01 07 00 5D 31 00 00 00 00 00 FF 0F A3 [22:38:21]RasterBufferAndPrint [22:38:21]line Счет N : (1)2886236 [22:38:21]line ИНН: 02508201610067 [22:38:21]line Контрольно-Кассовый Чек [22:38:21]line ПРОДАЖА [22:38:21]line ТРК (МРК, ГНК) : 71 [22:38:21]line Товар: 2711129700 [22:38:21]line ГАЗ-К-3 [22:38:21]line 14.780 * 38.90 [22:38:21]line = 574.94 [22:38:21]line НДС 12% НСП 1% [22:38:21]line > о реализуемом товаре [22:38:21]line ОКРУГЛЕНИЕ: -0.94 [22:38:21]line ИТОГО: 574.00 [22:38:21]line Внесено: 3000.00 [22:38:21]line СДАЧА: 2426.00 [22:38:21]line НСП 1% : 5.09 [22:38:21]line НДС 12% : 61.06 [22:38:21]line Наличными: 574.00 [22:38:21]line Безнал.: 0.00 [22:38:21]line Место: АЗС № 85 "Партнер Нефть" [22:38:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:38:21]line СНО: Общий режим [22:38:21]line Чек 415 22.10.2024 22:38 [22:38:21]line Смена: 195 ФФД: 1.0 [22:38:21]line ЗНМ: 0300000167 [22:38:21]line РНМ: 0000000000156251 [22:38:21]line Версия ККМ: v1.0 [22:38:21]line ФМ: 0000000000963346 [22:38:21]line ФД: 70467 [22:38:21]line ФПД: 219838933674096 [22:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70467&fm=219838933674096&tin=02508201610067®Number=0000000000156251&sum=57400 [22:38:22]OFD Sender: Processing packet 70467 [packets to send 18, broken 17] [22:38:22]ProducePacketName [22:38:22]name=ofd_packets/00070467 [22:38:22]OFD Sender: To server: pG, [22:38:22]CommunicateWithHost lk.salyk.kg:30040 [22:38:22]ConnectInit lk.salyk.kg [22:38:22]written 0, free lines is 4095 [22:38:22]Connected sock=10 [22:38: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 34 36 0E 01 00 00 E3 E9 06 01 34 8E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 38 E0 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 01 00 00 F4 03 04 00 5D 29 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 13 01 00 35 04 06 00 C7 F1 3D 8C A8 70 8D 13 83 3E 95 FF 73 F4 [22:38: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 34 36 4F 00 00 00 0D 7E 47 00 F1 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 34 36 10 04 04 00 43 13 01 00 F4 03 04 00 FD D2 17 67 B6 04 01 00 00 F9 5F 5D 29 A5 66 6E CA [22:38:22]CommunicateWithHost err = 0 [22:38:22]CheckOFDResponse [22:38:22]1017 (14) - 77093643461234 [22:38:22]1041 (16) - 0000000000963346 [22:38:22]1040 (4) - 70467 [22:38:22]1012 (4) - 22.10.2024 16:29 [22:38:22]1206 (1) - 0 [22:38:22]OFD Sender: Remove packet 70467 [22:38:22]ProducePacketName [22:38:22]name=ofd_packets/00070467 [22:38:22]NVStorageDeleteData [22:38:22]Write to MH i2c: 01 00 00 88 31 B9 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: 01 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: 01 07 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: 01 07 00 88 31 00 00 00 00 00 03 0D D0 [22:38:22]RasterBufferAndPrint [22:38:22]line [22:38:22]line [22:38:22]line [22:38:22]line [22:38:22]line [22:38:22]written 0, free lines is 3337 [22:38:22]MH_Cut [22:38:22]Write to MH i2c: D1 01 00 8F 31 01 92 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: D1 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: D1 01 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: D1 01 00 8F 31 00 91 [22:38:22]Write to MH i2c: 01 00 00 90 31 C1 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:23]OFD Sender: No OFD packet to send [22:38:23]*** Cut start [22:38:23]*** Partial cut [22:38:23]*** CUTSNS_PIN = 1 [22:38:23]*** CUTSNS_PIN = 0 [22:38:23]*** Brake cut motor [22:38:24]Read from MH i2c: 01 [22:38:24]MH_I2C_Read... [22:38:24]*** Stop cut motor [22:38:24]Read from MH i2c: 01 07 00 [22:38:24]MH_I2C_Read... [22:38:24]*** Cut end [22:38:24]Read from MH i2c: 01 07 00 90 31 00 00 00 00 00 FF 0F D6 [22:38:24]process_action close_receipt done [22:38:24]requested_data is exist [22:38:24]produce_requested_data [22:38:24]requested_item fm.sn is exist - process it [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 11 00 00 [22:38:24]Write to MH i2c: E2 08 00 91 31 80 11 00 00 00 00 00 00 3C [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 17 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 17 00 91 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [22:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:38:24]wFMCommunicate OK [22:38:24]requested_item fd.num is exist - process it [22:38:24]SAM_PROTO_GetFieldsCounters [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 13 00 00 [22:38:24]Write to MH i2c: E2 08 00 92 31 80 13 00 00 00 00 00 00 3F [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 62 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 62 00 92 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [22:38: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:24]wFMCommunicate OK [22:38:24]SAM_PROTO_GetFieldsCounters done [22:38:24]requested_item shift.num is exist - process it [22:38:24]requested_item shift.opened is exist - process it [22:38:24]req_shift_opened [22:38:24]FM_GetShiftState [22:38:24]SAM_PROTO_GetShiftState [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 13 01 00 [22:38:24]Write to MH i2c: E2 08 00 93 31 80 13 01 00 00 00 00 00 41 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 0E 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 0E 00 93 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 2F [22:38:24]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:38:24]wFMCommunicate OK [22:38:24]SAM_PROTO_GetShiftState done [22:38:24]FM_GetShiftState done [22:38:24]req_shift_opened done [22:38:24]requested_item shift.open_date is exist - process it [22:38:24]req_shift_open_date [22:38:24]req_shift_open_date done [22:38:24]produce_requested_data done [22:38:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70467,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:38:24]process_action_free close_receipt [22:38:24]json_value_free [22:38:24]json_value_free done [22:38:24]process_json_proto returns [22:38:24]Send response to host [22:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70467,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:38:24]free response buf [22:38:24]execute_script done [22:38:24]execute_script returns [22:38:24]free content buf [22:38:24]Sock 7.Close socket [22:38:24]Sock 7.Thread stoped [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:39]accept exits with 9 [22:50:39]New connection [22:50:39]New thread 3066555748 created [22:50:39]Thread 3066699108 joined [22:50:39]Waiting for new connection... [22:50:39] Sock 9.Parse request [22:50:39]Sock 9.Check first char [22:50:39]Sock 9.First char is OK [22:50:39]request: POST /json_proto HTTP/1.0 [22:50:39]Method: POST [22:50:39]URL: /json_proto [22:50:39]Method is POST - this is cgi request [22:50:39]url: /json_proto [22:50:39]query_string will be loaded in cgi processing [22:50:39]execute_cgi json_proto POST (null) [22:50:39]execute_cgi path=json_proto method=POST [22:50:39]POST find Content-Length [22:50:39]Host: 172.17.50.3:8080 [22:50:39]Content-Length: 686 [22:50:39]Content-Type: application/json [22:50:39] [22:50:39]POST finish read [22:50:39]Found Content-Length = 686 [22:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:50:39]execute_script... [22:50: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)2886237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:50:39]POST & json_proto [22:50:39]process_json_proto [22:50:39]json parsed OK: [22:50:39]protocol is kg_v1.0 [22:50:39]action value=close_receipt [22:50:39]process_action close_receipt [22:50:39]cmd_close_receipt [22:50:39]MH_GetDate [22:50:39]Write to MH i2c: F0 00 00 94 31 B4 [22:50:39]Write i2c OK [22:50:39]MH_I2C_Read... [22:50:39]Read from MH i2c: F0 [22:50:39]MH_I2C_Read... [22:50:39]Read from MH i2c: F0 09 00 [22:50:39]MH_I2C_Read... [22:50:39]Read from MH i2c: F0 09 00 94 31 00 41 2C 18 67 6B 98 1E 66 30 [22:50:39]GetLastDocTimeStamp 1729636701 [22:50:39]current date 1729637441 [22:50:39]FM_GetShiftState [22:50:39]SAM_PROTO_GetShiftState [22:50:39]wFMCommunicate request_size=4 [22:50:39]MH_SAM_APDU [22:50:39]CAPDU: 80 13 01 00 [22:50:39]Write to MH i2c: E2 08 00 95 31 80 13 01 00 00 00 00 00 43 [22:50:39]Write i2c OK [22:50:39]MH_I2C_Read... [22:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:40]Read from MH i2c: E2 [22:50:40]MH_I2C_Read... [22:50:40]Read from MH i2c: E2 0E 00 [22:50:40]MH_I2C_Read... [22:50:40]Read from MH i2c: E2 0E 00 95 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 31 [22:50:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:50:40]wFMCommunicate OK [22:50:40]SAM_PROTO_GetShiftState done [22:50:40]FM_GetShiftState done [22:50:40]opened in 1729555832 [22:50:40]opened+sec_in_day 1729642232 [22:50:40]quantity*price = 100011 [22:50:40]sum+1 = 100013 [22:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 416 22.10.2024 22:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70468 ФПД: 245650770289776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225041&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70468&fm=245650770289776&tin=02508201610067®Number=0000000000156251&sum=100000 [22:50:41]StoreToDocumentArchive [22:50:41]shift 195 fd 70468 [22:50:41]save to /storage/0195/doc_00070468 [22:50:41]save last doc name /storage/0195/doc_00070468 to /storage/kkm_last_doc_name [22:50:41]save OK [22:50:41]Clear old archive folders... [22:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:50:41]tlvbuf is 00ED1F40 [22:50:41]SAM_PROTO_ClearQueue [22:50:41]wFMCommunicate request_size=4 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 09 00 00 [22:50:41]Write to MH i2c: E2 08 00 A2 31 80 09 00 00 00 00 00 00 45 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 A2 31 00 90 00 47 [22:50:41]RAPDU: 90 00 [22:50:41]wFMCommunicate OK [22:50:41]SAM_PROTO_ClearQueue done [22:50:41]KKMCreateOFDPacket [22:50:41]OFDProtocolAddRootSTLVToBuf [22:50:41]FM_MakeSignedData [22:50:41]FM_MakeSignedData [22:50:41]SAM_PROTO_SignData [22:50:41]wFMCommunicate request_size=4 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 0D 01 02 [22:50:41]Write to MH i2c: E2 08 00 A3 31 80 0D 01 02 00 00 00 00 4D [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 A3 31 00 90 00 48 [22:50:41]RAPDU: 90 00 [22:50:41]wFMCommunicate OK [22:50:41]wFMCommunicate request_size=255 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 A0 01 00 00 F4 03 04 00 41 2C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 13 01 00 35 04 06 00 DF 6B [22:50:41]Write to MH i2c: E2 02 01 A4 31 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 A0 01 00 00 F4 03 04 00 41 2C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 13 01 00 35 04 06 00 DF 6B 00 00 A3 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 A4 31 00 90 00 49 [22:50:41]RAPDU: 90 00 [22:50:41]wFMCommunicate OK [22:50:41]wFMCommunicate request_size=9 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 0D 02 02 04 06 E6 E4 70 [22:50:41]Write to MH i2c: E2 0C 00 A5 31 80 0D 02 02 04 00 06 E6 E4 70 00 00 98 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 03 00 A5 31 00 90 00 4A [22:50:41]RAPDU: 90 00 [22:50:41]wFMCommunicate OK [22:50:41]wFMCommunicate request_size=4 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 0D 03 02 [22:50:41]Write to MH i2c: E2 08 00 A6 31 80 0D 03 02 00 00 00 00 52 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 0B 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 0B 00 A6 31 00 16 F5 F1 68 68 72 61 F5 90 00 E7 [22:50:41]RAPDU: 16 F5 F1 68 68 72 61 F5 90 00 [22:50:41]wFMCommunicate OK [22:50:41]SAM_PROTO_SignData done [22:50:41]FM_MakeSignedData done [22:50:41]CreateOFDProtocolMessage [22:50:41]wFMCommunicate request_size=4 [22:50:41]MH_SAM_APDU [22:50:41]CAPDU: 80 11 00 00 [22:50:41]Write to MH i2c: E2 08 00 A7 31 80 11 00 00 00 00 00 00 52 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:41]Read from MH i2c: E2 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 17 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: E2 17 00 A7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [22:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:50:41]wFMCommunicate OK [22:50:41]CreateOFDProtocolMessage done [22:50:41]OFDSenderStorePacket 70468 [22:50:41]StoreOFDPacket docnum=70468 [22:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 47 2B 06 01 CB FE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 A0 01 00 00 F4 03 04 00 41 2C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 13 01 00 35 04 06 00 DF 6B 06 E6 E4 70 16 F5 F1 68 68 72 61 F5 [22:50:41]CheckFolder [22:50:41]dirname=/storage/ofd_packets [22:50:41]CheckFolder done [22:50:41]ProducePacketName [22:50:41]name=ofd_packets/00070468 [22:50:41]NVStorageSaveData ofd_packets/00070468 [22:50:41]File name is /storage/ofd_packets/00070468 [22:50:41]Write 300 bytes [22:50:41]NVStorageSaveData done [22:50:41]OFDSenderStorePacket done [22:50:41]KKMCreateOFDPacket done [22:50:41]NVStorageSaveData kkm_last_timestamp [22:50:41]File name is /storage/kkm_last_timestamp [22:50:41]Write 4 bytes [22:50:41]NVStorageSaveData done [22:50:41]ExternCall_PrintAddStr [22:50:41]wPrintStart [22:50:41]Write to MH i2c: 01 00 00 A8 31 D9 [22:50:41]Write i2c OK [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: 01 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: 01 07 00 [22:50:41]MH_I2C_Read... [22:50:41]Read from MH i2c: 01 07 00 A8 31 00 00 00 00 00 FF 0F EE [22:50:41]RasterBufferAndPrint [22:50:41]line Счет N : (1)2886237 [22:50:41]line ИНН: 02508201610067 [22:50:41]line Контрольно-Кассовый Чек [22:50:41]line ПРОДАЖА [22:50:41]line ТРК (МРК, ГНК) : 71 [22:50:41]line Товар: 2711129700 [22:50:41]line ГАЗ-К-3 [22:50:41]line 25.710 * 38.90 [22:50:41]line = 1000.12 [22:50:41]line НДС 12% НСП 1% [22:50:41]line > о реализуемом товаре [22:50:41]line ОКРУГЛЕНИЕ: -0.12 [22:50:41]line ИТОГО: 1000.00 [22:50:41]line Внесено: 1000.00 [22:50:41]line СДАЧА: 0.00 [22:50:41]line НСП 1% : 8.85 [22:50:41]line НДС 12% : 106.21 [22:50:41]line Наличными: 1000.00 [22:50:41]line Безнал.: 0.00 [22:50:41]line Место: АЗС № 85 "Партнер Нефть" [22:50:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:50:41]line СНО: Общий режим [22:50:41]line Чек 416 22.10.2024 22:50 [22:50:41]line Смена: 195 ФФД: 1.0 [22:50:41]line ЗНМ: 0300000167 [22:50:41]line РНМ: 0000000000156251 [22:50:41]line Версия ККМ: v1.0 [22:50:41]line ФМ: 0000000000963346 [22:50:41]line ФД: 70468 [22:50:41]line ФПД: 245650770289776 [22:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225041&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70468&fm=245650770289776&tin=02508201610067®Number=0000000000156251&sum=100000 [22:50:42]OFD Sender: Processing packet 70468 [packets to send 18, broken 17] [22:50:42]ProducePacketName [22:50:42]name=ofd_packets/00070468 [22:50:42]OFD Sender: To server: pG, [22:50:42]CommunicateWithHost lk.salyk.kg:30040 [22:50:42]ConnectInit lk.salyk.kg [22:50:42]written 0, free lines is 4095 [22:50:42]Connected sock=10 [22: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 34 36 0E 01 00 00 47 2B 06 01 CB FE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 A0 01 00 00 F4 03 04 00 41 2C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 13 01 00 35 04 06 00 DF 6B 06 E6 E4 70 16 F5 F1 68 68 72 61 F5 [22:50: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 34 36 4F 00 00 00 34 74 47 00 67 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 34 36 10 04 04 00 44 13 01 00 F4 03 04 00 E1 D5 17 67 B6 04 01 00 00 34 51 66 69 20 45 24 2E [22:50:42]CommunicateWithHost err = 0 [22:50:42]CheckOFDResponse [22:50:42]1017 (14) - 77093643461234 [22:50:42]1041 (16) - 0000000000963346 [22:50:42]1040 (4) - 70468 [22:50:42]1012 (4) - 22.10.2024 16:42 [22:50:42]1206 (1) - 0 [22:50:42]OFD Sender: Remove packet 70468 [22:50:42]ProducePacketName [22:50:42]name=ofd_packets/00070468 [22:50:42]NVStorageDeleteData [22:50:42]Write to MH i2c: 01 00 00 D3 31 04 [22:50:42]Write i2c OK [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: 01 [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: 01 07 00 [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: 01 07 00 D3 31 00 00 00 00 00 E1 0C F8 [22:50:42]RasterBufferAndPrint [22:50:42]line [22:50:42]line [22:50:42]line [22:50:42]line [22:50:42]line [22:50:42]written 0, free lines is 3303 [22:50:42]MH_Cut [22:50:42]Write to MH i2c: D1 01 00 DA 31 01 DD [22:50:42]Write i2c OK [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: D1 [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: D1 01 00 [22:50:42]MH_I2C_Read... [22:50:42]Read from MH i2c: D1 01 00 DA 31 00 DC [22:50:42]Write to MH i2c: 01 00 00 DB 31 0C [22:50:42]Write i2c OK [22:50:42]MH_I2C_Read... [22:50:42]OFD Sender: No OFD packet to send [22:50:43]*** Cut start [22:50:43]*** Partial cut [22:50:43]*** CUTSNS_PIN = 1 [22:50:43]*** CUTSNS_PIN = 0 [22:50:43]*** Brake cut motor [22:50:43]Read from MH i2c: 01 [22:50:43]MH_I2C_Read... [22:50:43]*** Stop cut motor [22:50:43]*** Cut end [22:50:43]Read from MH i2c: 01 07 00 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: 01 07 00 DB 31 00 00 00 00 00 FF 0F 21 [22:50:43]process_action close_receipt done [22:50:43]requested_data is exist [22:50:43]produce_requested_data [22:50:43]requested_item fm.sn is exist - process it [22:50:43]wFMCommunicate request_size=4 [22:50:43]MH_SAM_APDU [22:50:43]CAPDU: 80 11 00 00 [22:50:43]Write to MH i2c: E2 08 00 DC 31 80 11 00 00 00 00 00 00 87 [22:50:43]Write i2c OK [22:50:43]MH_I2C_Read... [22:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:43]Read from MH i2c: E2 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: E2 17 00 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: E2 17 00 DC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D9 [22:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:50:43]wFMCommunicate OK [22:50:43]requested_item fd.num is exist - process it [22:50:43]SAM_PROTO_GetFieldsCounters [22:50:43]wFMCommunicate request_size=4 [22:50:43]MH_SAM_APDU [22:50:43]CAPDU: 80 13 00 00 [22:50:43]Write to MH i2c: E2 08 00 DD 31 80 13 00 00 00 00 00 00 8A [22:50:43]Write i2c OK [22:50:43]MH_I2C_Read... [22:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:44]Read from MH i2c: E2 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 62 00 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 62 00 DD 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:44]wFMCommunicate OK [22:50:44]SAM_PROTO_GetFieldsCounters done [22:50:44]requested_item shift.num is exist - process it [22:50:44]requested_item shift.opened is exist - process it [22:50:44]req_shift_opened [22:50:44]FM_GetShiftState [22:50:44]SAM_PROTO_GetShiftState [22:50:44]wFMCommunicate request_size=4 [22:50:44]MH_SAM_APDU [22:50:44]CAPDU: 80 13 01 00 [22:50:44]Write to MH i2c: E2 08 00 DE 31 80 13 01 00 00 00 00 00 8C [22:50:44]Write i2c OK [22:50:44]MH_I2C_Read... [22:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:44]Read from MH i2c: E2 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 0E 00 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 0E 00 DE 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7A [22:50:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:50:44]wFMCommunicate OK [22:50:44]SAM_PROTO_GetShiftState done [22:50:44]FM_GetShiftState done [22:50:44]req_shift_opened done [22:50:44]requested_item shift.open_date is exist - process it [22:50:44]req_shift_open_date [22:50:44]req_shift_open_date done [22:50:44]produce_requested_data done [22:50:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70468,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:50:44]process_action_free close_receipt [22:50:44]json_value_free [22:50:44]json_value_free done [22:50:44]process_json_proto returns [22:50:44]Send response to host [22:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70468,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:50:44]free response buf [22:50:44]execute_script done [22:50:44]execute_script returns [22:50:44]free content buf [22:50:44]Sock 9.Close socket [22:50:44]Sock 9.Thread stoped [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]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]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:08]accept exits with 7 [22:58:08]New connection [22:58:08]New thread 3066699108 created [22:58:08]Thread 3066555748 joined [22:58:08]Waiting for new connection... [22:58:08] Sock 7.Parse request [22:58:08]Sock 7.Check first char [22:58:08]Sock 7.First char is OK [22:58:08]request: POST /json_proto HTTP/1.0 [22:58:08]Method: POST [22:58:08]URL: /json_proto [22:58:08]Method is POST - this is cgi request [22:58:08]url: /json_proto [22:58:08]query_string will be loaded in cgi processing [22:58:08]execute_cgi json_proto POST (null) [22:58:08]execute_cgi path=json_proto method=POST [22:58:08]POST find Content-Length [22:58:08]Host: 172.17.50.3:8080 [22:58:08]Content-Length: 678 [22:58:08]Content-Type: application/json [22:58:08] [22:58:08]POST finish read [22:58:08]Found Content-Length = 678 [22:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [22:58:08]execute_script... [22:58: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)2886238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [22:58:08]POST & json_proto [22:58:08]process_json_proto [22:58:08]json parsed OK: [22:58:08]protocol is kg_v1.0 [22:58:08]action value=close_receipt [22:58:08]process_action close_receipt [22:58:08]cmd_close_receipt [22:58:08]MH_GetDate [22:58:08]Write to MH i2c: F0 00 00 DF 31 FF [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 09 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 09 00 DF 31 00 02 2E 18 67 6B 98 1E 66 3E [22:58:08]GetLastDocTimeStamp 1729637441 [22:58:08]current date 1729637890 [22:58:08]FM_GetShiftState [22:58:08]SAM_PROTO_GetShiftState [22:58:08]wFMCommunicate request_size=4 [22:58:08]MH_SAM_APDU [22:58:08]CAPDU: 80 13 01 00 [22:58:08]Write to MH i2c: E2 08 00 E0 31 80 13 01 00 00 00 00 00 8E [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:08]Read from MH i2c: E2 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 E0 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7C [22:58:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:58:08]wFMCommunicate OK [22:58:08]SAM_PROTO_GetShiftState done [22:58:08]FM_GetShiftState done [22:58:08]opened in 1729555832 [22:58:08]opened+sec_in_day 1729642232 [22:58:08]quantity*price = 50041 [22:58:08]sum+1 = 50042 [22:58: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 417 22.10.2024 22:58 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70469 ФПД: 21779764198379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225810&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70469&fm=21779764198379&tin=02508201610067®Number=0000000000156251&sum=50000 [22:58:09]StoreToDocumentArchive [22:58:09]shift 195 fd 70469 [22:58:09]save to /storage/0195/doc_00070469 [22:58:09]save last doc name /storage/0195/doc_00070469 to /storage/kkm_last_doc_name [22:58:09]save OK [22:58:09]Clear old archive folders... [22:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:09]tlvbuf is 00ED2300 [22:58:09]SAM_PROTO_ClearQueue [22:58:09]wFMCommunicate request_size=4 [22:58:09]MH_SAM_APDU [22:58:09]CAPDU: 80 09 00 00 [22:58:09]Write to MH i2c: E2 08 00 ED 31 80 09 00 00 00 00 00 00 90 [22:58:09]Write i2c OK [22:58:09]MH_I2C_Read... [22:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:09]Read from MH i2c: E2 [22:58:09]MH_I2C_Read... [22:58:09]Read from MH i2c: E2 03 00 [22:58:09]MH_I2C_Read... [22:58:09]Read from MH i2c: E2 03 00 ED 31 00 90 00 92 [22:58:09]RAPDU: 90 00 [22:58:09]wFMCommunicate OK [22:58:09]SAM_PROTO_ClearQueue done [22:58:09]KKMCreateOFDPacket [22:58:09]OFDProtocolAddRootSTLVToBuf [22:58:09]FM_MakeSignedData [22:58:09]FM_MakeSignedData [22:58:09]SAM_PROTO_SignData [22:58:09]wFMCommunicate request_size=4 [22:58:09]MH_SAM_APDU [22:58:09]CAPDU: 80 0D 01 02 [22:58:09]Write to MH i2c: E2 08 00 EE 31 80 0D 01 02 00 00 00 00 98 [22:58:09]Write i2c OK [22:58:09]MH_I2C_Read... [22:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:09]Read from MH i2c: E2 [22:58:09]MH_I2C_Read... [22:58:09]Read from MH i2c: E2 03 00 [22:58:09]MH_I2C_Read... [22:58:09]Read from MH i2c: E2 03 00 EE 31 00 90 00 93 [22:58:09]RAPDU: 90 00 [22:58:09]wFMCommunicate OK [22:58:09]wFMCommunicate request_size=255 [22:58:09]MH_SAM_APDU [22:58: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 A1 01 00 00 F4 03 04 00 02 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 13 01 00 35 04 06 00 13 [22:58:09]Write to MH i2c: E2 02 01 EF 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 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 A1 01 00 00 F4 03 04 00 02 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 13 01 00 35 04 06 00 13 00 00 A1 [22:58:09]Write i2c OK [22:58:09]MH_I2C_Read... [22:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 EF 31 00 90 00 94 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]wFMCommunicate request_size=10 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 02 02 05 CE FF 1B BB EB [22:58:10]Write to MH i2c: E2 0D 00 F0 31 80 0D 02 02 05 00 CE FF 1B BB EB 00 00 33 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 F0 31 00 90 00 95 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 03 02 [22:58:10]Write to MH i2c: E2 08 00 F1 31 80 0D 03 02 00 00 00 00 9D [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 0B 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 0B 00 F1 31 00 A8 3D E0 D7 A4 CA 04 5F 90 00 0B [22:58:10]RAPDU: A8 3D E0 D7 A4 CA 04 5F 90 00 [22:58:10]wFMCommunicate OK [22:58:10]SAM_PROTO_SignData done [22:58:10]FM_MakeSignedData done [22:58:10]CreateOFDProtocolMessage [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 11 00 00 [22:58:10]Write to MH i2c: E2 08 00 F2 31 80 11 00 00 00 00 00 00 9D [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 17 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 17 00 F2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [22:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:58:10]wFMCommunicate OK [22:58:10]CreateOFDProtocolMessage done [22:58:10]OFDSenderStorePacket 70469 [22:58:10]StoreOFDPacket docnum=70469 [22:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5C 23 07 01 E8 F4 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 A1 01 00 00 F4 03 04 00 02 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 13 01 00 35 04 06 00 13 CE FF 1B BB EB A8 3D E0 D7 A4 CA 04 5F [22:58:10]CheckFolder [22:58:10]dirname=/storage/ofd_packets [22:58:10]CheckFolder done [22:58:10]ProducePacketName [22:58:10]name=ofd_packets/00070469 [22:58:10]NVStorageSaveData ofd_packets/00070469 [22:58:10]File name is /storage/ofd_packets/00070469 [22:58:10]Write 301 bytes [22:58:10]NVStorageSaveData done [22:58:10]OFDSenderStorePacket done [22:58:10]KKMCreateOFDPacket done [22:58:10]NVStorageSaveData kkm_last_timestamp [22:58:10]File name is /storage/kkm_last_timestamp [22:58:10]Write 4 bytes [22:58:10]NVStorageSaveData done [22:58:10]ExternCall_PrintAddStr [22:58:10]wPrintStart [22:58:10]Write to MH i2c: 01 00 00 F3 31 24 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 F3 31 00 00 00 00 00 FF 0F 39 [22:58:10]RasterBufferAndPrint [22:58:10]line Счет N : (1)2886238 [22:58:10]line ИНН: 02508201610067 [22:58:10]line Контрольно-Кассовый Чек [22:58:10]line ПРОДАЖА [22:58:10]line ТРК (МРК, ГНК) : 42 [22:58:10]line Товар: 2710124130 [22:58:10]line Аи-92-К-5 [22:58:10]line 7.480 * 66.90 [22:58:10]line = 500.41 [22:58:10]line НДС 12% НСП 1% [22:58:10]line > о реализуемом товаре [22:58:10]line ОКРУГЛЕНИЕ: -0.41 [22:58:10]line ИТОГО: 500.00 [22:58:10]line Внесено: 500.00 [22:58:10]line СДАЧА: 0.00 [22:58:10]line НСП 1% : 4.43 [22:58:10]line НДС 12% : 53.14 [22:58:10]line Наличными: 500.00 [22:58:10]line Безнал.: 0.00 [22:58:10]line Место: АЗС № 85 "Партнер Нефть" [22:58:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:58:10]line СНО: Общий режим [22:58:10]line Чек 417 22.10.2024 22:58 [22:58:10]line Смена: 195 ФФД: 1.0 [22:58:10]line ЗНМ: 0300000167 [22:58:10]line РНМ: 0000000000156251 [22:58:10]line Версия ККМ: v1.0 [22:58:10]line ФМ: 0000000000963346 [22:58:10]line ФД: 70469 [22:58:10]line ФПД: 21779764198379 [22:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T225810&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70469&fm=21779764198379&tin=02508201610067®Number=0000000000156251&sum=50000 [22:58:10]OFD Sender: Processing packet 70469 [packets to send 18, broken 17] [22:58:10]ProducePacketName [22:58:10]name=ofd_packets/00070469 [22:58:10]OFD Sender: To server: pG, [22:58:10]CommunicateWithHost lk.salyk.kg:30040 [22:58:10]ConnectInit lk.salyk.kg [22:58:10]written 0, free lines is 4095 [22:58:10]Connected sock=11 [22:58: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 34 36 0F 01 00 00 5C 23 07 01 E8 F4 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 A1 01 00 00 F4 03 04 00 02 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 13 01 00 35 04 06 00 13 CE FF 1B BB EB A8 3D E0 D7 A4 CA 04 5F [22:58: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 34 36 4F 00 00 00 7A 56 47 00 CA 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 34 36 10 04 04 00 45 13 01 00 F4 03 04 00 A1 D7 17 67 B6 04 01 00 00 61 7F 7C 78 95 5C C3 FD [22:58:10]CommunicateWithHost err = 0 [22:58:10]CheckOFDResponse [22:58:10]1017 (14) - 77093643461234 [22:58:10]1041 (16) - 0000000000963346 [22:58:10]1040 (4) - 70469 [22:58:10]1012 (4) - 22.10.2024 16:49 [22:58:10]1206 (1) - 0 [22:58:10]OFD Sender: Remove packet 70469 [22:58:10]ProducePacketName [22:58:10]name=ofd_packets/00070469 [22:58:10]NVStorageDeleteData [22:58:10]Write to MH i2c: 01 00 00 1E 32 50 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 E4 0C 47 [22:58:10]RasterBufferAndPrint [22:58:10]line [22:58:10]line [22:58:10]line [22:58:10]line [22:58:10]line [22:58:10]written 0, free lines is 3306 [22:58:10]MH_Cut [22:58:10]Write to MH i2c: D1 01 00 25 32 01 29 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: D1 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: D1 01 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: D1 01 00 25 32 00 28 [22:58:10]Write to MH i2c: 01 00 00 26 32 58 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:11]OFD Sender: No OFD packet to send [22:58:11]*** Cut start [22:58:11]*** Partial cut [22:58:11]*** CUTSNS_PIN = 1 [22:58:11]*** CUTSNS_PIN = 0 [22:58:11]*** Brake cut motor [22:58:12]Read from MH i2c: 01 [22:58:12]MH_I2C_Read... [22:58:12]*** Stop cut motor [22:58:12]*** Cut end [22:58:12]Read from MH i2c: 01 07 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: 01 07 00 26 32 00 00 00 00 00 FF 0F 6D [22:58:12]process_action close_receipt done [22:58:12]requested_data is exist [22:58:12]produce_requested_data [22:58:12]requested_item fm.sn is exist - process it [22:58:12]wFMCommunicate request_size=4 [22:58:12]MH_SAM_APDU [22:58:12]CAPDU: 80 11 00 00 [22:58:12]Write to MH i2c: E2 08 00 27 32 80 11 00 00 00 00 00 00 D3 [22:58:12]Write i2c OK [22:58:12]MH_I2C_Read... [22:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:12]Read from MH i2c: E2 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 17 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 17 00 27 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [22:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:58:12]wFMCommunicate OK [22:58:12]requested_item fd.num is exist - process it [22:58:12]SAM_PROTO_GetFieldsCounters [22:58:12]wFMCommunicate request_size=4 [22:58:12]MH_SAM_APDU [22:58:12]CAPDU: 80 13 00 00 [22:58:12]Write to MH i2c: E2 08 00 28 32 80 13 00 00 00 00 00 00 D6 [22:58:12]Write i2c OK [22:58:12]MH_I2C_Read... [22:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:12]Read from MH i2c: E2 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 62 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 62 00 28 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [22:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:12]wFMCommunicate OK [22:58:12]SAM_PROTO_GetFieldsCounters done [22:58:12]requested_item shift.num is exist - process it [22:58:12]requested_item shift.opened is exist - process it [22:58:12]req_shift_opened [22:58:12]FM_GetShiftState [22:58:12]SAM_PROTO_GetShiftState [22:58:12]wFMCommunicate request_size=4 [22:58:12]MH_SAM_APDU [22:58:12]CAPDU: 80 13 01 00 [22:58:12]Write to MH i2c: E2 08 00 29 32 80 13 01 00 00 00 00 00 D8 [22:58:12]Write i2c OK [22:58:12]MH_I2C_Read... [22:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:12]Read from MH i2c: E2 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 0E 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 0E 00 29 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C6 [22:58:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [22:58:12]wFMCommunicate OK [22:58:12]SAM_PROTO_GetShiftState done [22:58:12]FM_GetShiftState done [22:58:12]req_shift_opened done [22:58:12]requested_item shift.open_date is exist - process it [22:58:12]req_shift_open_date [22:58:12]req_shift_open_date done [22:58:12]produce_requested_data done [22:58:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70469,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [22:58:12]process_action_free close_receipt [22:58:12]json_value_free [22:58:12]json_value_free done [22:58:12]process_json_proto returns [22:58:12]Send response to host [22:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70469,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [22:58:12]free response buf [22:58:12]execute_script done [22:58:12]execute_script returns [22:58:12]free content buf [22:58:12]Sock 7.Close socket [22:58:12]Sock 7.Thread stoped [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:17]accept exits with 9 [23:00:17]New connection [23:00:17]New thread 3066555748 created [23:00:17]Thread 3066699108 joined [23:00:17]Waiting for new connection... [23:00:17] Sock 9.Parse request [23:00:17]Sock 9.Check first char [23:00:17]Sock 9.First char is OK [23:00:17]request: POST /json_proto HTTP/1.0 [23:00:17]Method: POST [23:00:17]URL: /json_proto [23:00:17]Method is POST - this is cgi request [23:00:17]url: /json_proto [23:00:17]query_string will be loaded in cgi processing [23:00:17]execute_cgi json_proto POST (null) [23:00:17]execute_cgi path=json_proto method=POST [23:00:17]POST find Content-Length [23:00:17]Host: 172.17.50.3:8080 [23:00:17]Content-Length: 684 [23:00:17]Content-Type: application/json [23:00:17] [23:00:17]POST finish read [23:00:17]Found Content-Length = 684 [23:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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" ] } } [23:00:17]execute_script... [23:00: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)2886239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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" ] } } [23:00:17]POST & json_proto [23:00:17]process_json_proto [23:00:17]json parsed OK: [23:00:17]protocol is kg_v1.0 [23:00:17]action value=close_receipt [23:00:17]process_action close_receipt [23:00:17]cmd_close_receipt [23:00:17]MH_GetDate [23:00:17]Write to MH i2c: F0 00 00 2A 32 4B [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: F0 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: F0 09 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: F0 09 00 2A 32 00 83 2E 18 67 6B 98 1E 66 0B [23:00:17]GetLastDocTimeStamp 1729637890 [23:00:17]current date 1729638019 [23:00:17]FM_GetShiftState [23:00:17]SAM_PROTO_GetShiftState [23:00:17]wFMCommunicate request_size=4 [23:00:17]MH_SAM_APDU [23:00:17]CAPDU: 80 13 01 00 [23:00:17]Write to MH i2c: E2 08 00 2B 32 80 13 01 00 00 00 00 00 DA [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:17]Read from MH i2c: E2 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 0E 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 0E 00 2B 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C8 [23:00:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:00:17]wFMCommunicate OK [23:00:17]SAM_PROTO_GetShiftState done [23:00:17]FM_GetShiftState done [23:00:17]opened in 1729555832 [23:00:17]opened+sec_in_day 1729642232 [23:00:17]quantity*price = 60061 [23:00:17]sum+1 = 60063 [23:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 418 22.10.2024 23:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70470 ФПД: 250096342471559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70470&fm=250096342471559&tin=02508201610067®Number=0000000000156251&sum=60000 [23:00:18]StoreToDocumentArchive [23:00:18]shift 195 fd 70470 [23:00:18]save to /storage/0195/doc_00070470 [23:00:18]save last doc name /storage/0195/doc_00070470 to /storage/kkm_last_doc_name [23:00:18]save OK [23:00:18]Clear old archive folders... [23:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:00:18]tlvbuf is 00CF2CE0 [23:00:18]SAM_PROTO_ClearQueue [23:00:18]wFMCommunicate request_size=4 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 09 00 00 [23:00:18]Write to MH i2c: E2 08 00 38 32 80 09 00 00 00 00 00 00 DC [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 38 32 00 90 00 DE [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]SAM_PROTO_ClearQueue done [23:00:18]KKMCreateOFDPacket [23:00:18]OFDProtocolAddRootSTLVToBuf [23:00:18]FM_MakeSignedData [23:00:18]FM_MakeSignedData [23:00:18]SAM_PROTO_SignData [23:00:18]wFMCommunicate request_size=4 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 0D 01 02 [23:00:18]Write to MH i2c: E2 08 00 39 32 80 0D 01 02 00 00 00 00 E4 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 39 32 00 90 00 DF [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]wFMCommunicate request_size=255 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 A2 01 00 00 F4 03 04 00 83 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 13 01 [23:00:18]Write to MH i2c: E2 02 01 3A 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 A2 01 00 00 F4 03 04 00 83 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 13 01 00 00 3F [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 3A 32 00 90 00 E0 [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]wFMCommunicate request_size=16 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E3 76 17 A7 13 87 [23:00:18]Write to MH i2c: E2 13 00 3B 32 80 0D 02 02 0B 00 00 35 04 06 00 E3 76 17 A7 13 87 00 00 ED [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:19]Read from MH i2c: E2 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 03 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 03 00 3B 32 00 90 00 E1 [23:00:19]RAPDU: 90 00 [23:00:19]wFMCommunicate OK [23:00:19]wFMCommunicate request_size=4 [23:00:19]MH_SAM_APDU [23:00:19]CAPDU: 80 0D 03 02 [23:00:19]Write to MH i2c: E2 08 00 3C 32 80 0D 03 02 00 00 00 00 E9 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:19]Read from MH i2c: E2 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 0B 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 0B 00 3C 32 00 DE D3 F6 58 19 A6 7E 45 90 00 6B [23:00:19]RAPDU: DE D3 F6 58 19 A6 7E 45 90 00 [23:00:19]wFMCommunicate OK [23:00:19]SAM_PROTO_SignData done [23:00:19]FM_MakeSignedData done [23:00:19]CreateOFDProtocolMessage [23:00:19]wFMCommunicate request_size=4 [23:00:19]MH_SAM_APDU [23:00:19]CAPDU: 80 11 00 00 [23:00:19]Write to MH i2c: E2 08 00 3D 32 80 11 00 00 00 00 00 00 E9 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:19]Read from MH i2c: E2 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 17 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: E2 17 00 3D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [23:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:19]wFMCommunicate OK [23:00:19]CreateOFDProtocolMessage done [23:00:19]OFDSenderStorePacket 70470 [23:00:19]StoreOFDPacket docnum=70470 [23:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 88 96 0D 01 53 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 A2 01 00 00 F4 03 04 00 83 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 13 01 00 35 04 06 00 E3 76 17 A7 13 87 DE D3 F6 58 19 A6 7E 45 [23:00:19]CheckFolder [23:00:19]dirname=/storage/ofd_packets [23:00:19]CheckFolder done [23:00:19]ProducePacketName [23:00:19]name=ofd_packets/00070470 [23:00:19]NVStorageSaveData ofd_packets/00070470 [23:00:19]File name is /storage/ofd_packets/00070470 [23:00:19]Write 307 bytes [23:00:19]NVStorageSaveData done [23:00:19]OFDSenderStorePacket done [23:00:19]KKMCreateOFDPacket done [23:00:19]NVStorageSaveData kkm_last_timestamp [23:00:19]File name is /storage/kkm_last_timestamp [23:00:19]Write 4 bytes [23:00:19]NVStorageSaveData done [23:00:19]OFD Sender: Processing packet 70470 [packets to send 18, broken 17] [23:00:19]ProducePacketName [23:00:19]name=ofd_packets/00070470 [23:00:19]OFD Sender: To server: pG, [23:00:19]CommunicateWithHost lk.salyk.kg:30040 [23:00:19]ConnectInit lk.salyk.kg [23:00:19]ExternCall_PrintAddStr [23:00:19]wPrintStart [23:00:19]Write to MH i2c: 01 00 00 3E 32 70 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 07 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 07 00 3E 32 00 00 00 00 00 FF 0F 85 [23:00:19]RasterBufferAndPrint [23:00:19]line Счет N : (1)2886239 [23:00:19]line ИНН: 02508201610067 [23:00:19]line Контрольно-Кассовый Чек [23:00:19]line ПРОДАЖА [23:00:19]line ТРК (МРК, ГНК) : 31 [23:00:19]line Товар: 2710194240 [23:00:19]line D-ENERGY Дт-К-2 [23:00:19]line 7.780 * 77.20 [23:00:19]line = 600.62 [23:00:19]line НДС 12% НСП 1% [23:00:19]line > о реализуемом товаре [23:00:19]line ОКРУГЛЕНИЕ: -0.62 [23:00:19]line ИТОГО: 600.00 [23:00:19]line Внесено: 600.00 [23:00:19]line СДАЧА: 0.00 [23:00:19]line НСП 1% : 5.31 [23:00:19]line НДС 12% : 63.78 [23:00:19]line Наличными: 600.00 [23:00:19]line Безнал.: 0.00 [23:00:19]line Место: АЗС № 85 "Партнер Нефть" [23:00:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:00:19]line СНО: Общий режим [23:00:19]line Чек 418 22.10.2024 23:00 [23:00:19]line Смена: 195 ФФД: 1.0 [23:00:19]line ЗНМ: 0300000167 [23:00:19]line РНМ: 0000000000156251 [23:00:19]line Версия ККМ: v1.0 [23:00:19]line ФМ: 0000000000963346 [23:00:19]line ФД: 70470 [23:00:19]line ФПД: 250096342471559 [23:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70470&fm=250096342471559&tin=02508201610067®Number=0000000000156251&sum=60000 [23:00:19]Connected sock=11 [23:00: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 34 36 15 01 00 00 88 96 0D 01 53 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 A2 01 00 00 F4 03 04 00 83 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 13 01 00 35 04 06 00 E3 76 17 A7 13 87 DE D3 F6 58 19 A6 7E 45 [23:00:19]written 0, free lines is 4095 [23:00: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 34 36 4F 00 00 00 F9 9D 47 00 57 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 13 01 00 F4 03 04 00 22 D8 17 67 B6 04 01 00 00 4F C5 65 C3 32 1B 25 76 [23:00:19]CommunicateWithHost err = 0 [23:00:19]CheckOFDResponse [23:00:19]1017 (14) - 77093643461234 [23:00:19]1041 (16) - 0000000000963346 [23:00:19]1040 (4) - 70470 [23:00:19]1012 (4) - 22.10.2024 16:51 [23:00:19]1206 (1) - 0 [23:00:19]OFD Sender: Remove packet 70470 [23:00:19]ProducePacketName [23:00:19]name=ofd_packets/00070470 [23:00:19]NVStorageDeleteData [23:00:19]Write to MH i2c: 01 00 00 69 32 9B [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 07 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 F1 0C 9F [23:00:19]RasterBufferAndPrint [23:00:19]line [23:00:19]line [23:00:19]line [23:00:19]line [23:00:19]line [23:00:19]written 0, free lines is 3319 [23:00:19]MH_Cut [23:00:19]Write to MH i2c: D1 01 00 70 32 01 74 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 01 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 01 00 70 32 00 73 [23:00:19]Write to MH i2c: 01 00 00 71 32 A3 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:20]OFD Sender: No OFD packet to send [23:00:20]*** Cut start [23:00:20]*** Partial cut [23:00:20]*** CUTSNS_PIN = 1 [23:00:20]*** CUTSNS_PIN = 0 [23:00:20]*** Brake cut motor [23:00:21]Read from MH i2c: 01 [23:00:21]MH_I2C_Read... [23:00:21]*** Stop cut motor [23:00:21]*** Cut end [23:00:21]Read from MH i2c: 01 07 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: 01 07 00 71 32 00 00 00 00 00 FF 0F B8 [23:00:21]process_action close_receipt done [23:00:21]requested_data is exist [23:00:21]produce_requested_data [23:00:21]requested_item fm.sn is exist - process it [23:00:21]wFMCommunicate request_size=4 [23:00:21]MH_SAM_APDU [23:00:21]CAPDU: 80 11 00 00 [23:00:21]Write to MH i2c: E2 08 00 72 32 80 11 00 00 00 00 00 00 1E [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:21]Read from MH i2c: E2 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 17 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 17 00 72 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [23:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:21]wFMCommunicate OK [23:00:21]requested_item fd.num is exist - process it [23:00:21]SAM_PROTO_GetFieldsCounters [23:00:21]wFMCommunicate request_size=4 [23:00:21]MH_SAM_APDU [23:00:21]CAPDU: 80 13 00 00 [23:00:21]Write to MH i2c: E2 08 00 73 32 80 13 00 00 00 00 00 00 21 [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:21]Read from MH i2c: E2 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 62 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [23:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:21]wFMCommunicate OK [23:00:21]SAM_PROTO_GetFieldsCounters done [23:00:21]requested_item shift.num is exist - process it [23:00:21]requested_item shift.opened is exist - process it [23:00:21]req_shift_opened [23:00:21]FM_GetShiftState [23:00:21]SAM_PROTO_GetShiftState [23:00:21]wFMCommunicate request_size=4 [23:00:21]MH_SAM_APDU [23:00:21]CAPDU: 80 13 01 00 [23:00:21]Write to MH i2c: E2 08 00 74 32 80 13 01 00 00 00 00 00 23 [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:21]Read from MH i2c: E2 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 0E 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: E2 0E 00 74 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 11 [23:00:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:00:21]wFMCommunicate OK [23:00:21]SAM_PROTO_GetShiftState done [23:00:21]FM_GetShiftState done [23:00:21]req_shift_opened done [23:00:21]requested_item shift.open_date is exist - process it [23:00:21]req_shift_open_date [23:00:21]req_shift_open_date done [23:00:21]produce_requested_data done [23:00:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70470,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:00:21]process_action_free close_receipt [23:00:21]json_value_free [23:00:21]json_value_free done [23:00:21]process_json_proto returns [23:00:21]Send response to host [23:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70470,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:00:21]free response buf [23:00:21]execute_script done [23:00:21]execute_script returns [23:00:21]free content buf [23:00:21]Sock 9.Close socket [23:00:21]Sock 9.Thread stoped [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:46]accept exits with 7 [23:00:46]New connection [23:00:46]New thread 3066699108 created [23:00:46]Thread 3066555748 joined [23:00:46]Waiting for new connection... [23:00:46] Sock 7.Parse request [23:00:46]Sock 7.Check first char [23:00:46]Sock 7.First char is OK [23:00:46]request: POST /json_proto HTTP/1.0 [23:00:46]Method: POST [23:00:46]URL: /json_proto [23:00:46]Method is POST - this is cgi request [23:00:46]url: /json_proto [23:00:46]query_string will be loaded in cgi processing [23:00:46]execute_cgi json_proto POST (null) [23:00:46]execute_cgi path=json_proto method=POST [23:00:46]POST find Content-Length [23:00:46]Host: 172.17.50.3:8080 [23:00:46]Content-Length: 678 [23:00:46]Content-Type: application/json [23:00:46] [23:00:46]POST finish read [23:00:46]Found Content-Length = 678 [23:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [23:00:46]execute_script... [23:00: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)2886240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [23:00:46]POST & json_proto [23:00:46]process_json_proto [23:00:46]json parsed OK: [23:00:46]protocol is kg_v1.0 [23:00:46]action value=close_receipt [23:00:46]process_action close_receipt [23:00:46]cmd_close_receipt [23:00:46]MH_GetDate [23:00:46]Write to MH i2c: F0 00 00 75 32 96 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: F0 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: F0 09 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: F0 09 00 75 32 00 A0 2E 18 67 6B 98 1E 66 73 [23:00:46]GetLastDocTimeStamp 1729638019 [23:00:46]current date 1729638048 [23:00:46]FM_GetShiftState [23:00:46]SAM_PROTO_GetShiftState [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 13 01 00 [23:00:46]Write to MH i2c: E2 08 00 76 32 80 13 01 00 00 00 00 00 25 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0E 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0E 00 76 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 13 [23:00:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:00:46]wFMCommunicate OK [23:00:46]SAM_PROTO_GetShiftState done [23:00:46]FM_GetShiftState done [23:00:46]opened in 1729555832 [23:00:46]opened+sec_in_day 1729642232 [23:00:46]quantity*price = 60009 [23:00:46]sum+1 = 60010 [23:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 419 22.10.2024 23:00 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70471 ФПД: 127580710789392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70471&fm=127580710789392&tin=02508201610067®Number=0000000000156251&sum=60000 [23:00:47]StoreToDocumentArchive [23:00:47]shift 195 fd 70471 [23:00:47]save to /storage/0195/doc_00070471 [23:00:47]save last doc name /storage/0195/doc_00070471 to /storage/kkm_last_doc_name [23:00:47]save OK [23:00:47]Clear old archive folders... [23:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:47]tlvbuf is 00B457D0 [23:00:47]SAM_PROTO_ClearQueue [23:00:47]wFMCommunicate request_size=4 [23:00:47]MH_SAM_APDU [23:00:47]CAPDU: 80 09 00 00 [23:00:47]Write to MH i2c: E2 08 00 83 32 80 09 00 00 00 00 00 00 27 [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:47]Read from MH i2c: E2 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: E2 03 00 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: E2 03 00 83 32 00 90 00 29 [23:00:47]RAPDU: 90 00 [23:00:47]wFMCommunicate OK [23:00:47]SAM_PROTO_ClearQueue done [23:00:47]KKMCreateOFDPacket [23:00:47]OFDProtocolAddRootSTLVToBuf [23:00:47]FM_MakeSignedData [23:00:47]FM_MakeSignedData [23:00:47]SAM_PROTO_SignData [23:00:47]wFMCommunicate request_size=4 [23:00:47]MH_SAM_APDU [23:00:47]CAPDU: 80 0D 01 02 [23:00:47]Write to MH i2c: E2 08 00 84 32 80 0D 01 02 00 00 00 00 2F [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:47]Read from MH i2c: E2 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: E2 03 00 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: E2 03 00 84 32 00 90 00 2A [23:00:47]RAPDU: 90 00 [23:00:47]wFMCommunicate OK [23:00:47]wFMCommunicate request_size=255 [23:00:47]MH_SAM_APDU [23:00: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 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 A3 01 00 00 F4 03 04 00 A0 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 13 01 00 35 04 06 00 74 [23:00:47]Write to MH i2c: E2 02 01 85 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 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 A3 01 00 00 F4 03 04 00 A0 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 13 01 00 35 04 06 00 74 00 00 18 [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 03 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 03 00 85 32 00 90 00 2B [23:00:48]RAPDU: 90 00 [23:00:48]wFMCommunicate OK [23:00:48]wFMCommunicate request_size=10 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 0D 02 02 05 08 B2 F2 61 10 [23:00:48]Write to MH i2c: E2 0D 00 86 32 80 0D 02 02 05 00 08 B2 F2 61 10 00 00 59 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 03 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 03 00 86 32 00 90 00 2C [23:00:48]RAPDU: 90 00 [23:00:48]wFMCommunicate OK [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 0D 03 02 [23:00:48]Write to MH i2c: E2 08 00 87 32 80 0D 03 02 00 00 00 00 34 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 0B 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 0B 00 87 32 00 99 08 6C E9 F6 09 A3 4F 90 00 1C [23:00:48]RAPDU: 99 08 6C E9 F6 09 A3 4F 90 00 [23:00:48]wFMCommunicate OK [23:00:48]SAM_PROTO_SignData done [23:00:48]FM_MakeSignedData done [23:00:48]CreateOFDProtocolMessage [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 11 00 00 [23:00:48]Write to MH i2c: E2 08 00 88 32 80 11 00 00 00 00 00 00 34 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 17 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 17 00 88 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [23:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:48]wFMCommunicate OK [23:00:48]CreateOFDProtocolMessage done [23:00:48]OFDSenderStorePacket 70471 [23:00:48]StoreOFDPacket docnum=70471 [23:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 6F 07 01 75 28 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 A3 01 00 00 F4 03 04 00 A0 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 13 01 00 35 04 06 00 74 08 B2 F2 61 10 99 08 6C E9 F6 09 A3 4F [23:00:48]CheckFolder [23:00:48]dirname=/storage/ofd_packets [23:00:48]CheckFolder done [23:00:48]ProducePacketName [23:00:48]name=ofd_packets/00070471 [23:00:48]NVStorageSaveData ofd_packets/00070471 [23:00:48]File name is /storage/ofd_packets/00070471 [23:00:48]Write 301 bytes [23:00:48]NVStorageSaveData done [23:00:48]OFDSenderStorePacket done [23:00:48]KKMCreateOFDPacket done [23:00:48]NVStorageSaveData kkm_last_timestamp [23:00:48]File name is /storage/kkm_last_timestamp [23:00:48]Write 4 bytes [23:00:48]NVStorageSaveData done [23:00:48]ExternCall_PrintAddStr [23:00:48]wPrintStart [23:00:48]Write to MH i2c: 01 00 00 89 32 BB [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: 01 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: 01 07 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: 01 07 00 89 32 00 00 00 00 00 FF 0F D0 [23:00:48]RasterBufferAndPrint [23:00:48]line Счет N : (1)2886240 [23:00:48]line ИНН: 02508201610067 [23:00:48]line Контрольно-Кассовый Чек [23:00:48]line ПРОДАЖА [23:00:48]line ТРК (МРК, ГНК) : 12 [23:00:48]line Товар: 2710124130 [23:00:48]line Аи-92-К-5 [23:00:48]line 8.970 * 66.90 [23:00:48]line = 600.09 [23:00:48]line НДС 12% НСП 1% [23:00:48]line > о реализуемом товаре [23:00:48]line ОКРУГЛЕНИЕ: -0.09 [23:00:48]line ИТОГО: 600.00 [23:00:48]line Внесено: 600.00 [23:00:48]line СДАЧА: 0.00 [23:00:48]line НСП 1% : 5.31 [23:00:48]line НДС 12% : 63.73 [23:00:48]line Наличными: 600.00 [23:00:48]line Безнал.: 0.00 [23:00:48]line Место: АЗС № 85 "Партнер Нефть" [23:00:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:00:48]line СНО: Общий режим [23:00:48]line Чек 419 22.10.2024 23:00 [23:00:48]line Смена: 195 ФФД: 1.0 [23:00:48]line ЗНМ: 0300000167 [23:00:48]line РНМ: 0000000000156251 [23:00:48]line Версия ККМ: v1.0 [23:00:48]line ФМ: 0000000000963346 [23:00:48]line ФД: 70471 [23:00:48]line ФПД: 127580710789392 [23:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70471&fm=127580710789392&tin=02508201610067®Number=0000000000156251&sum=60000 [23:00:48]OFD Sender: Processing packet 70471 [packets to send 18, broken 17] [23:00:48]ProducePacketName [23:00:48]name=ofd_packets/00070471 [23:00:48]OFD Sender: To server: pG, [23:00:48]CommunicateWithHost lk.salyk.kg:30040 [23:00:48]ConnectInit lk.salyk.kg [23:00:48]written 0, free lines is 4095 [23:00:48]Connected sock=10 [23:00: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 34 36 0F 01 00 00 A8 6F 07 01 75 28 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 A3 01 00 00 F4 03 04 00 A0 2E 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 13 01 00 35 04 06 00 74 08 B2 F2 61 10 99 08 6C E9 F6 09 A3 4F [23:00: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 34 36 4F 00 00 00 C6 1C 47 00 2A 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 34 36 10 04 04 00 47 13 01 00 F4 03 04 00 3F D8 17 67 B6 04 01 00 00 85 A9 DE D8 0F C9 60 71 [23:00:48]CommunicateWithHost err = 0 [23:00:48]CheckOFDResponse [23:00:48]1017 (14) - 77093643461234 [23:00:48]1041 (16) - 0000000000963346 [23:00:48]1040 (4) - 70471 [23:00:48]1012 (4) - 22.10.2024 16:52 [23:00:48]1206 (1) - 0 [23:00:48]OFD Sender: Remove packet 70471 [23:00:48]ProducePacketName [23:00:48]name=ofd_packets/00070471 [23:00:48]NVStorageDeleteData [23:00:49]Write to MH i2c: 01 00 00 B4 32 E6 [23:00:49]Write i2c OK [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: 01 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: 01 07 00 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: 01 07 00 B4 32 00 00 00 00 00 F8 0C F1 [23:00:49]RasterBufferAndPrint [23:00:49]line [23:00:49]line [23:00:49]line [23:00:49]line [23:00:49]line [23:00:49]written 0, free lines is 3330 [23:00:49]MH_Cut [23:00:49]Write to MH i2c: D1 01 00 BB 32 01 BF [23:00:49]Write i2c OK [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: D1 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: D1 01 00 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: D1 01 00 BB 32 00 BE [23:00:49]Write to MH i2c: 01 00 00 BC 32 EE [23:00:49]Write i2c OK [23:00:49]MH_I2C_Read... [23:00:49]OFD Sender: No OFD packet to send [23:00:49]*** Cut start [23:00:49]*** Partial cut [23:00:49]*** CUTSNS_PIN = 1 [23:00:49]*** CUTSNS_PIN = 0 [23:00:50]*** Brake cut motor [23:00:50]Read from MH i2c: 01 [23:00:50]MH_I2C_Read... [23:00:50]*** Stop cut motor [23:00:50]*** Cut end [23:00:50]Read from MH i2c: 01 07 00 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 FF 0F 03 [23:00:50]process_action close_receipt done [23:00:50]requested_data is exist [23:00:50]produce_requested_data [23:00:50]requested_item fm.sn is exist - process it [23:00:50]wFMCommunicate request_size=4 [23:00:50]MH_SAM_APDU [23:00:50]CAPDU: 80 11 00 00 [23:00:50]Write to MH i2c: E2 08 00 BD 32 80 11 00 00 00 00 00 00 69 [23:00:50]Write i2c OK [23:00:50]MH_I2C_Read... [23:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:50]Read from MH i2c: E2 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 17 00 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 17 00 BD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [23:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:50]wFMCommunicate OK [23:00:50]requested_item fd.num is exist - process it [23:00:50]SAM_PROTO_GetFieldsCounters [23:00:50]wFMCommunicate request_size=4 [23:00:50]MH_SAM_APDU [23:00:50]CAPDU: 80 13 00 00 [23:00:50]Write to MH i2c: E2 08 00 BE 32 80 13 00 00 00 00 00 00 6C [23:00:50]Write i2c OK [23:00:50]MH_I2C_Read... [23:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:50]Read from MH i2c: E2 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 62 00 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 62 00 BE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [23:00: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:50]wFMCommunicate OK [23:00:50]SAM_PROTO_GetFieldsCounters done [23:00:50]requested_item shift.num is exist - process it [23:00:50]requested_item shift.opened is exist - process it [23:00:50]req_shift_opened [23:00:50]FM_GetShiftState [23:00:50]SAM_PROTO_GetShiftState [23:00:50]wFMCommunicate request_size=4 [23:00:50]MH_SAM_APDU [23:00:50]CAPDU: 80 13 01 00 [23:00:50]Write to MH i2c: E2 08 00 BF 32 80 13 01 00 00 00 00 00 6E [23:00:50]Write i2c OK [23:00:50]MH_I2C_Read... [23:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:50]Read from MH i2c: E2 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 0E 00 [23:00:50]MH_I2C_Read... [23:00:50]Read from MH i2c: E2 0E 00 BF 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5C [23:00:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:00:50]wFMCommunicate OK [23:00:50]SAM_PROTO_GetShiftState done [23:00:50]FM_GetShiftState done [23:00:50]req_shift_opened done [23:00:50]requested_item shift.open_date is exist - process it [23:00:50]req_shift_open_date [23:00:50]req_shift_open_date done [23:00:50]produce_requested_data done [23:00:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70471,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:00:50]process_action_free close_receipt [23:00:50]json_value_free [23:00:50]json_value_free done [23:00:50]process_json_proto returns [23:00:50]Send response to host [23:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70471,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:00:50]free response buf [23:00:50]execute_script done [23:00:50]execute_script returns [23:00:50]free content buf [23:00:50]Sock 7.Close socket [23:00:50]Sock 7.Thread stoped [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:03]accept exits with 9 [23:09:03]New connection [23:09:03]New thread 3066555748 created [23:09:03]Thread 3066699108 joined [23:09:03]Waiting for new connection... [23:09:03] Sock 9.Parse request [23:09:03]Sock 9.Check first char [23:09:03]Sock 9.First char is OK [23:09:03]request: POST /json_proto HTTP/1.0 [23:09:03]Method: POST [23:09:03]URL: /json_proto [23:09:03]Method is POST - this is cgi request [23:09:03]url: /json_proto [23:09:03]query_string will be loaded in cgi processing [23:09:03]execute_cgi json_proto POST (null) [23:09:03]execute_cgi path=json_proto method=POST [23:09:03]POST find Content-Length [23:09:03]Host: 172.17.50.3:8080 [23:09:03]Content-Length: 682 [23:09:03]Content-Type: application/json [23:09:03] [23:09:03]POST finish read [23:09:03]Found Content-Length = 682 [23:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:03]execute_script... [23:09: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)2886242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:03]POST & json_proto [23:09:03]process_json_proto [23:09:03]json parsed OK: [23:09:03]protocol is kg_v1.0 [23:09:03]action value=close_receipt [23:09:03]process_action close_receipt [23:09:03]cmd_close_receipt [23:09:03]MH_GetDate [23:09:03]Write to MH i2c: F0 00 00 C0 32 E1 [23:09:03]Write i2c OK [23:09:03]MH_I2C_Read... [23:09:03]Read from MH i2c: F0 [23:09:03]MH_I2C_Read... [23:09:03]Read from MH i2c: F0 09 00 [23:09:03]MH_I2C_Read... [23:09:03]Read from MH i2c: F0 09 00 C0 32 00 91 30 18 67 6B 98 1E 66 B1 [23:09:03]GetLastDocTimeStamp 1729638048 [23:09:03]current date 1729638545 [23:09:03]FM_GetShiftState [23:09:03]SAM_PROTO_GetShiftState [23:09:03]wFMCommunicate request_size=4 [23:09:03]MH_SAM_APDU [23:09:03]CAPDU: 80 13 01 00 [23:09:03]Write to MH i2c: E2 08 00 C1 32 80 13 01 00 00 00 00 00 70 [23:09:03]Write i2c OK [23:09:03]MH_I2C_Read... [23:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:03]Read from MH i2c: E2 [23:09:03]MH_I2C_Read... [23:09:03]Read from MH i2c: E2 0E 00 [23:09:03]MH_I2C_Read... [23:09:03]Read from MH i2c: E2 0E 00 C1 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5E [23:09:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:09:03]wFMCommunicate OK [23:09:03]SAM_PROTO_GetShiftState done [23:09:03]FM_GetShiftState done [23:09:03]opened in 1729555832 [23:09:03]opened+sec_in_day 1729642232 [23:09:03]quantity*price = 50025 [23:09:03]sum+1 = 50026 [23:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 420 22.10.2024 23:09 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70472 ФПД: 188471498917664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70472&fm=188471498917664&tin=02508201610067®Number=0000000000156251&sum=50000 [23:09:04]StoreToDocumentArchive [23:09:04]shift 195 fd 70472 [23:09:04]save to /storage/0195/doc_00070472 [23:09:04]save last doc name /storage/0195/doc_00070472 to /storage/kkm_last_doc_name [23:09:04]save OK [23:09:04]Clear old archive folders... [23:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:09:04]tlvbuf is 00CB7460 [23:09:04]SAM_PROTO_ClearQueue [23:09:04]wFMCommunicate request_size=4 [23:09:04]MH_SAM_APDU [23:09:04]CAPDU: 80 09 00 00 [23:09:04]Write to MH i2c: E2 08 00 CE 32 80 09 00 00 00 00 00 00 72 [23:09:04]Write i2c OK [23:09:04]MH_I2C_Read... [23:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:04]Read from MH i2c: E2 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 CE 32 00 90 00 74 [23:09:04]RAPDU: 90 00 [23:09:04]wFMCommunicate OK [23:09:04]SAM_PROTO_ClearQueue done [23:09:04]KKMCreateOFDPacket [23:09:04]OFDProtocolAddRootSTLVToBuf [23:09:04]FM_MakeSignedData [23:09:04]FM_MakeSignedData [23:09:04]SAM_PROTO_SignData [23:09:04]wFMCommunicate request_size=4 [23:09:04]MH_SAM_APDU [23:09:04]CAPDU: 80 0D 01 02 [23:09:04]Write to MH i2c: E2 08 00 CF 32 80 0D 01 02 00 00 00 00 7A [23:09:04]Write i2c OK [23:09:04]MH_I2C_Read... [23:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:04]Read from MH i2c: E2 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 CF 32 00 90 00 75 [23:09:04]RAPDU: 90 00 [23:09:04]wFMCommunicate OK [23:09:04]wFMCommunicate request_size=255 [23:09:04]MH_SAM_APDU [23:09:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 01 00 00 F4 03 04 00 91 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 13 01 00 35 04 06 00 AB 69 [23:09:04]Write to MH i2c: E2 02 01 D0 32 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 01 00 00 F4 03 04 00 91 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 13 01 00 35 04 06 00 AB 69 00 00 D5 [23:09:04]Write i2c OK [23:09:04]MH_I2C_Read... [23:09:04]OFD Sender: No OFD packet to send [23:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:04]Read from MH i2c: E2 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 [23:09:04]MH_I2C_Read... [23:09:04]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [23:09:04]RAPDU: 90 00 [23:09:04]wFMCommunicate OK [23:09:04]wFMCommunicate request_size=9 [23:09:04]MH_SAM_APDU [23:09:04]CAPDU: 80 0D 02 02 04 F0 BE 47 20 [23:09:04]Write to MH i2c: E2 0C 00 D1 32 80 0D 02 02 04 00 F0 BE 47 20 00 00 9A [23:09:04]Write i2c OK [23:09:04]MH_I2C_Read... [23:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:05]Read from MH i2c: E2 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 03 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [23:09:05]RAPDU: 90 00 [23:09:05]wFMCommunicate OK [23:09:05]wFMCommunicate request_size=4 [23:09:05]MH_SAM_APDU [23:09:05]CAPDU: 80 0D 03 02 [23:09:05]Write to MH i2c: E2 08 00 D2 32 80 0D 03 02 00 00 00 00 7F [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:05]Read from MH i2c: E2 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 0B 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 0B 00 D2 32 00 97 A5 6D 83 FE A0 D5 39 90 00 58 [23:09:05]RAPDU: 97 A5 6D 83 FE A0 D5 39 90 00 [23:09:05]wFMCommunicate OK [23:09:05]SAM_PROTO_SignData done [23:09:05]FM_MakeSignedData done [23:09:05]CreateOFDProtocolMessage [23:09:05]wFMCommunicate request_size=4 [23:09:05]MH_SAM_APDU [23:09:05]CAPDU: 80 11 00 00 [23:09:05]Write to MH i2c: E2 08 00 D3 32 80 11 00 00 00 00 00 00 7F [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:05]Read from MH i2c: E2 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 17 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: E2 17 00 D3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [23:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:09:05]wFMCommunicate OK [23:09:05]CreateOFDProtocolMessage done [23:09:05]OFDSenderStorePacket 70472 [23:09:05]StoreOFDPacket docnum=70472 [23:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 22 D2 06 01 40 2B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 01 00 00 F4 03 04 00 91 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 13 01 00 35 04 06 00 AB 69 F0 BE 47 20 97 A5 6D 83 FE A0 D5 39 [23:09:05]CheckFolder [23:09:05]dirname=/storage/ofd_packets [23:09:05]CheckFolder done [23:09:05]ProducePacketName [23:09:05]name=ofd_packets/00070472 [23:09:05]NVStorageSaveData ofd_packets/00070472 [23:09:05]File name is /storage/ofd_packets/00070472 [23:09:05]Write 300 bytes [23:09:05]NVStorageSaveData done [23:09:05]OFDSenderStorePacket done [23:09:05]KKMCreateOFDPacket done [23:09:05]NVStorageSaveData kkm_last_timestamp [23:09:05]File name is /storage/kkm_last_timestamp [23:09:05]Write 4 bytes [23:09:05]NVStorageSaveData done [23:09:05]ExternCall_PrintAddStr [23:09:05]wPrintStart [23:09:05]Write to MH i2c: 01 00 00 D4 32 06 [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 07 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 07 00 D4 32 00 00 00 00 00 FF 0F 1B [23:09:05]RasterBufferAndPrint [23:09:05]line Счет N : (1)2886242 [23:09:05]line ИНН: 02508201610067 [23:09:05]line Контрольно-Кассовый Чек [23:09:05]line ПРОДАЖА [23:09:05]line ТРК (МРК, ГНК) : 71 [23:09:05]line Товар: 2711129700 [23:09:05]line ГАЗ-К-3 [23:09:05]line 12.860 * 38.90 [23:09:05]line = 500.25 [23:09:05]line НДС 12% НСП 1% [23:09:05]line > о реализуемом товаре [23:09:05]line ОКРУГЛЕНИЕ: -0.25 [23:09:05]line ИТОГО: 500.00 [23:09:05]line Внесено: 500.00 [23:09:05]line СДАЧА: 0.00 [23:09:05]line НСП 1% : 4.43 [23:09:05]line НДС 12% : 53.12 [23:09:05]line Наличными: 500.00 [23:09:05]line Безнал.: 0.00 [23:09:05]line Место: АЗС № 85 "Партнер Нефть" [23:09:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:09:05]line СНО: Общий режим [23:09:05]line Чек 420 22.10.2024 23:09 [23:09:05]line Смена: 195 ФФД: 1.0 [23:09:05]line ЗНМ: 0300000167 [23:09:05]line РНМ: 0000000000156251 [23:09:05]line Версия ККМ: v1.0 [23:09:05]line ФМ: 0000000000963346 [23:09:05]line ФД: 70472 [23:09:05]line ФПД: 188471498917664 [23:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70472&fm=188471498917664&tin=02508201610067®Number=0000000000156251&sum=50000 [23:09:05]OFD Sender: Processing packet 70472 [packets to send 18, broken 17] [23:09:05]ProducePacketName [23:09:05]name=ofd_packets/00070472 [23:09:05]OFD Sender: To server: pG, [23:09:05]CommunicateWithHost lk.salyk.kg:30040 [23:09:05]ConnectInit lk.salyk.kg [23:09:05]written 0, free lines is 4095 [23:09:05]Connected sock=10 [23:09: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 34 36 0E 01 00 00 22 D2 06 01 40 2B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 C0 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 01 00 00 F4 03 04 00 91 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 13 01 00 35 04 06 00 AB 69 F0 BE 47 20 97 A5 6D 83 FE A0 D5 39 [23:09: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 34 36 4F 00 00 00 FC 83 47 00 65 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 34 36 10 04 04 00 48 13 01 00 F4 03 04 00 30 DA 17 67 B6 04 01 00 00 8D 3D 45 C6 9F E6 EA BB [23:09:05]CommunicateWithHost err = 0 [23:09:05]CheckOFDResponse [23:09:05]1017 (14) - 77093643461234 [23:09:05]1041 (16) - 0000000000963346 [23:09:05]1040 (4) - 70472 [23:09:05]1012 (4) - 22.10.2024 17:00 [23:09:05]1206 (1) - 0 [23:09:05]OFD Sender: Remove packet 70472 [23:09:05]ProducePacketName [23:09:05]name=ofd_packets/00070472 [23:09:05]NVStorageDeleteData [23:09:05]Write to MH i2c: 01 00 00 FF 32 31 [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 07 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: 01 07 00 FF 32 00 00 00 00 00 E9 0C 2D [23:09:05]RasterBufferAndPrint [23:09:05]line [23:09:05]line [23:09:05]line [23:09:05]line [23:09:05]line [23:09:05]written 0, free lines is 3314 [23:09:05]MH_Cut [23:09:05]Write to MH i2c: D1 01 00 06 33 01 0B [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: D1 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: D1 01 00 [23:09:05]MH_I2C_Read... [23:09:05]Read from MH i2c: D1 01 00 06 33 00 0A [23:09:05]Write to MH i2c: 01 00 00 07 33 3A [23:09:05]Write i2c OK [23:09:05]MH_I2C_Read... [23:09:06]OFD Sender: No OFD packet to send [23:09:06]*** Cut start [23:09:06]*** Partial cut [23:09:06]*** CUTSNS_PIN = 1 [23:09:06]*** CUTSNS_PIN = 0 [23:09:06]*** Brake cut motor [23:09:07]Read from MH i2c: 01 [23:09:07]MH_I2C_Read... [23:09:07]*** Stop cut motor [23:09:07]*** Cut end [23:09:07]Read from MH i2c: 01 07 00 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: 01 07 00 07 33 00 00 00 00 00 FF 0F 4F [23:09:07]process_action close_receipt done [23:09:07]requested_data is exist [23:09:07]produce_requested_data [23:09:07]requested_item fm.sn is exist - process it [23:09:07]wFMCommunicate request_size=4 [23:09:07]MH_SAM_APDU [23:09:07]CAPDU: 80 11 00 00 [23:09:07]Write to MH i2c: E2 08 00 08 33 80 11 00 00 00 00 00 00 B5 [23:09:07]Write i2c OK [23:09:07]MH_I2C_Read... [23:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:07]Read from MH i2c: E2 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 17 00 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 17 00 08 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [23:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:09:07]wFMCommunicate OK [23:09:07]requested_item fd.num is exist - process it [23:09:07]SAM_PROTO_GetFieldsCounters [23:09:07]wFMCommunicate request_size=4 [23:09:07]MH_SAM_APDU [23:09:07]CAPDU: 80 13 00 00 [23:09:07]Write to MH i2c: E2 08 00 09 33 80 13 00 00 00 00 00 00 B8 [23:09:07]Write i2c OK [23:09:07]MH_I2C_Read... [23:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:07]Read from MH i2c: E2 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 62 00 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 62 00 09 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [23:09: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:07]wFMCommunicate OK [23:09:07]SAM_PROTO_GetFieldsCounters done [23:09:07]requested_item shift.num is exist - process it [23:09:07]requested_item shift.opened is exist - process it [23:09:07]req_shift_opened [23:09:07]FM_GetShiftState [23:09:07]SAM_PROTO_GetShiftState [23:09:07]wFMCommunicate request_size=4 [23:09:07]MH_SAM_APDU [23:09:07]CAPDU: 80 13 01 00 [23:09:07]Write to MH i2c: E2 08 00 0A 33 80 13 01 00 00 00 00 00 BA [23:09:07]Write i2c OK [23:09:07]MH_I2C_Read... [23:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:07]Read from MH i2c: E2 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 0E 00 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: E2 0E 00 0A 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A8 [23:09:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:09:07]wFMCommunicate OK [23:09:07]SAM_PROTO_GetShiftState done [23:09:07]FM_GetShiftState done [23:09:07]req_shift_opened done [23:09:07]requested_item shift.open_date is exist - process it [23:09:07]req_shift_open_date [23:09:07]req_shift_open_date done [23:09:07]produce_requested_data done [23:09:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70472,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:09:07]process_action_free close_receipt [23:09:07]json_value_free [23:09:07]json_value_free done [23:09:07]process_json_proto returns [23:09:07]Send response to host [23:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70472,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:09:07]free response buf [23:09:07]execute_script done [23:09:07]execute_script returns [23:09:07]free content buf [23:09:07]Sock 9.Close socket [23:09:07]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:01]accept exits with 7 [23:10:01]New connection [23:10:01]New thread 3066699108 created [23:10:01]Thread 3066555748 joined [23:10:01]Waiting for new connection... [23:10:01] Sock 7.Parse request [23:10:01]Sock 7.Check first char [23:10:01]Sock 7.First char is OK [23:10:01]request: POST /json_proto HTTP/1.0 [23:10:01]Method: POST [23:10:01]URL: /json_proto [23:10:01]Method is POST - this is cgi request [23:10:01]url: /json_proto [23:10:01]query_string will be loaded in cgi processing [23:10:01]execute_cgi json_proto POST (null) [23:10:01]execute_cgi path=json_proto method=POST [23:10:01]POST find Content-Length [23:10:01]Host: 172.17.50.3:8080 [23:10:01]Content-Length: 683 [23:10:01]Content-Type: application/json [23:10:01] [23:10:01]POST finish read [23:10:01]Found Content-Length = 683 [23:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:10:01]execute_script... [23:10: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)2886241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:10:01]POST & json_proto [23:10:01]process_json_proto [23:10:01]json parsed OK: [23:10:01]protocol is kg_v1.0 [23:10:01]action value=close_receipt [23:10:01]process_action close_receipt [23:10:01]cmd_close_receipt [23:10:01]MH_GetDate [23:10:01]Write to MH i2c: F0 00 00 0B 33 2D [23:10:01]Write i2c OK [23:10:01]MH_I2C_Read... [23:10:01]Read from MH i2c: F0 [23:10:01]MH_I2C_Read... [23:10:01]Read from MH i2c: F0 09 00 [23:10:01]MH_I2C_Read... [23:10:01]Read from MH i2c: F0 09 00 0B 33 00 CB 30 18 67 6B 98 1E 66 37 [23:10:01]GetLastDocTimeStamp 1729638545 [23:10:01]current date 1729638603 [23:10:01]FM_GetShiftState [23:10:01]SAM_PROTO_GetShiftState [23:10:01]wFMCommunicate request_size=4 [23:10:01]MH_SAM_APDU [23:10:01]CAPDU: 80 13 01 00 [23:10:01]Write to MH i2c: E2 08 00 0C 33 80 13 01 00 00 00 00 00 BC [23:10:01]Write i2c OK [23:10:01]MH_I2C_Read... [23:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:01]Read from MH i2c: E2 [23:10:01]MH_I2C_Read... [23:10:01]Read from MH i2c: E2 0E 00 [23:10:01]MH_I2C_Read... [23:10:01]Read from MH i2c: E2 0E 00 0C 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AA [23:10:01]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:10:01]wFMCommunicate OK [23:10:01]SAM_PROTO_GetShiftState done [23:10:01]FM_GetShiftState done [23:10:01]opened in 1729555832 [23:10:01]opened+sec_in_day 1729642232 [23:10:01]quantity*price = 400012 [23:10:01]sum+1 = 400013 [23:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 421 22.10.2024 23:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70473 ФПД: 31575634053128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70473&fm=31575634053128&tin=02508201610067®Number=0000000000156251&sum=400000 [23:10:02]StoreToDocumentArchive [23:10:02]shift 195 fd 70473 [23:10:02]save to /storage/0195/doc_00070473 [23:10:02]save last doc name /storage/0195/doc_00070473 to /storage/kkm_last_doc_name [23:10:02]save OK [23:10:02]Clear old archive folders... [23:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:02]tlvbuf is 00E04AB0 [23:10:02]SAM_PROTO_ClearQueue [23:10:02]wFMCommunicate request_size=4 [23:10:02]MH_SAM_APDU [23:10:02]CAPDU: 80 09 00 00 [23:10:02]Write to MH i2c: E2 08 00 19 33 80 09 00 00 00 00 00 00 BE [23:10:02]Write i2c OK [23:10:02]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 19 33 00 90 00 C0 [23:10:03]RAPDU: 90 00 [23:10:03]wFMCommunicate OK [23:10:03]SAM_PROTO_ClearQueue done [23:10:03]KKMCreateOFDPacket [23:10:03]OFDProtocolAddRootSTLVToBuf [23:10:03]FM_MakeSignedData [23:10:03]FM_MakeSignedData [23:10:03]SAM_PROTO_SignData [23:10:03]wFMCommunicate request_size=4 [23:10:03]MH_SAM_APDU [23:10:03]CAPDU: 80 0D 01 02 [23:10:03]Write to MH i2c: E2 08 00 1A 33 80 0D 01 02 00 00 00 00 C6 [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 1A 33 00 90 00 C1 [23:10:03]RAPDU: 90 00 [23:10:03]wFMCommunicate OK [23:10:03]wFMCommunicate request_size=255 [23:10:03]MH_SAM_APDU [23:10:03]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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 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 EF 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 A5 01 00 00 F4 03 04 00 CB 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 13 01 00 35 04 06 00 1C [23:10:03]Write to MH i2c: E2 02 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 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 EF 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 A5 01 00 00 F4 03 04 00 CB 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 13 01 00 35 04 06 00 1C 00 00 0B [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 1B 33 00 90 00 C2 [23:10:03]RAPDU: 90 00 [23:10:03]wFMCommunicate OK [23:10:03]wFMCommunicate request_size=10 [23:10:03]MH_SAM_APDU [23:10:03]CAPDU: 80 0D 02 02 05 B7 C6 73 88 08 [23:10:03]Write to MH i2c: E2 0D 00 1C 33 80 0D 02 02 05 00 B7 C6 73 88 08 00 00 53 [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 03 00 1C 33 00 90 00 C3 [23:10:03]RAPDU: 90 00 [23:10:03]wFMCommunicate OK [23:10:03]wFMCommunicate request_size=4 [23:10:03]MH_SAM_APDU [23:10:03]CAPDU: 80 0D 03 02 [23:10:03]Write to MH i2c: E2 08 00 1D 33 80 0D 03 02 00 00 00 00 CB [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 0B 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 0B 00 1D 33 00 83 DA 18 8E 25 C5 D9 17 90 00 A9 [23:10:03]RAPDU: 83 DA 18 8E 25 C5 D9 17 90 00 [23:10:03]wFMCommunicate OK [23:10:03]SAM_PROTO_SignData done [23:10:03]FM_MakeSignedData done [23:10:03]CreateOFDProtocolMessage [23:10:03]wFMCommunicate request_size=4 [23:10:03]MH_SAM_APDU [23:10:03]CAPDU: 80 11 00 00 [23:10:03]Write to MH i2c: E2 08 00 1E 33 80 11 00 00 00 00 00 00 CB [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:03]Read from MH i2c: E2 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 17 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: E2 17 00 1E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [23:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:10:03]wFMCommunicate OK [23:10:03]CreateOFDProtocolMessage done [23:10:03]OFDSenderStorePacket 70473 [23:10:03]StoreOFDPacket docnum=70473 [23:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 03 07 01 76 A1 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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 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 EF 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 A5 01 00 00 F4 03 04 00 CB 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 13 01 00 35 04 06 00 1C B7 C6 73 88 08 83 DA 18 8E 25 C5 D9 17 [23:10:03]CheckFolder [23:10:03]dirname=/storage/ofd_packets [23:10:03]CheckFolder done [23:10:03]ProducePacketName [23:10:03]name=ofd_packets/00070473 [23:10:03]NVStorageSaveData ofd_packets/00070473 [23:10:03]File name is /storage/ofd_packets/00070473 [23:10:03]Write 301 bytes [23:10:03]NVStorageSaveData done [23:10:03]OFDSenderStorePacket done [23:10:03]KKMCreateOFDPacket done [23:10:03]NVStorageSaveData kkm_last_timestamp [23:10:03]File name is /storage/kkm_last_timestamp [23:10:03]Write 4 bytes [23:10:03]NVStorageSaveData done [23:10:03]ExternCall_PrintAddStr [23:10:03]wPrintStart [23:10:03]Write to MH i2c: 01 00 00 1F 33 52 [23:10:03]Write i2c OK [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: 01 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: 01 07 00 [23:10:03]MH_I2C_Read... [23:10:03]Read from MH i2c: 01 07 00 1F 33 00 00 00 00 00 FF 0F 67 [23:10:03]RasterBufferAndPrint [23:10:03]line Счет N : (1)2886241 [23:10:03]line ИНН: 02508201610067 [23:10:03]line Контрольно-Кассовый Чек [23:10:03]line ПРОДАЖА [23:10:03]line ТРК (МРК, ГНК) : 13 [23:10:03]line Товар: 2710124500 [23:10:03]line Аи-95-К-5 [23:10:03]line 53.910 * 74.20 [23:10:03]line = 4000.12 [23:10:03]line НДС 12% НСП 1% [23:10:03]line > о реализуемом товаре [23:10:03]line ОКРУГЛЕНИЕ: -0.12 [23:10:03]line ИТОГО: 4000.00 [23:10:03]line Внесено: 4000.00 [23:10:03]line СДАЧА: 0.00 [23:10:03]line НСП 1% : 35.40 [23:10:03]line НДС 12% : 424.79 [23:10:03]line Наличными: 4000.00 [23:10:03]line Безнал.: 0.00 [23:10:03]line Место: АЗС № 85 "Партнер Нефть" [23:10:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:10:03]line СНО: Общий режим [23:10:03]line Чек 421 22.10.2024 23:10 [23:10:03]line Смена: 195 ФФД: 1.0 [23:10:03]line ЗНМ: 0300000167 [23:10:03]line РНМ: 0000000000156251 [23:10:03]line Версия ККМ: v1.0 [23:10:03]line ФМ: 0000000000963346 [23:10:03]line ФД: 70473 [23:10:03]line ФПД: 31575634053128 [23:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70473&fm=31575634053128&tin=02508201610067®Number=0000000000156251&sum=400000 [23:10:03]OFD Sender: Processing packet 70473 [packets to send 18, broken 17] [23:10:03]ProducePacketName [23:10:03]name=ofd_packets/00070473 [23:10:03]OFD Sender: To server: pG, [23:10:03]CommunicateWithHost lk.salyk.kg:30040 [23:10:03]ConnectInit lk.salyk.kg [23:10:03]written 0, free lines is 4095 [23:10:03]Connected sock=10 [23: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 34 36 0F 01 00 00 EF 03 07 01 76 A1 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 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 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 EF 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 A5 01 00 00 F4 03 04 00 CB 30 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 13 01 00 35 04 06 00 1C B7 C6 73 88 08 83 DA 18 8E 25 C5 D9 17 [23:10: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 34 36 4F 00 00 00 B7 97 47 00 C5 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 34 36 10 04 04 00 49 13 01 00 F4 03 04 00 6B DA 17 67 B6 04 01 00 00 5A 96 38 D0 F2 02 69 AE [23:10:04]CommunicateWithHost err = 0 [23:10:04]CheckOFDResponse [23:10:04]1017 (14) - 77093643461234 [23:10:04]1041 (16) - 0000000000963346 [23:10:04]1040 (4) - 70473 [23:10:04]1012 (4) - 22.10.2024 17:01 [23:10:04]1206 (1) - 0 [23:10:04]OFD Sender: Remove packet 70473 [23:10:04]ProducePacketName [23:10:04]name=ofd_packets/00070473 [23:10:04]NVStorageDeleteData [23:10:04]Write to MH i2c: 01 00 00 4A 33 7D [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 07 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 07 00 4A 33 00 00 00 00 00 E4 0C 74 [23:10:04]RasterBufferAndPrint [23:10:04]line [23:10:04]line [23:10:04]line [23:10:04]line [23:10:04]line [23:10:04]written 0, free lines is 3306 [23:10:04]MH_Cut [23:10:04]Write to MH i2c: D1 01 00 51 33 01 56 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: D1 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: D1 01 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: D1 01 00 51 33 00 55 [23:10:04]Write to MH i2c: 01 00 00 52 33 85 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]OFD Sender: No OFD packet to send [23:10:04]*** Cut start [23:10:04]*** Partial cut [23:10:04]*** CUTSNS_PIN = 1 [23:10:05]*** CUTSNS_PIN = 0 [23:10:05]*** Brake cut motor [23:10:05]Read from MH i2c: 01 [23:10:05]MH_I2C_Read... [23:10:05]*** Stop cut motor [23:10:05]*** Cut end [23:10:05]Read from MH i2c: 01 07 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: 01 07 00 52 33 00 00 00 00 00 FF 0F 9A [23:10:05]process_action close_receipt done [23:10:05]requested_data is exist [23:10:05]produce_requested_data [23:10:05]requested_item fm.sn is exist - process it [23:10:05]wFMCommunicate request_size=4 [23:10:05]MH_SAM_APDU [23:10:05]CAPDU: 80 11 00 00 [23:10:05]Write to MH i2c: E2 08 00 53 33 80 11 00 00 00 00 00 00 00 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:05]Read from MH i2c: E2 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 17 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 17 00 53 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [23:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:10:05]wFMCommunicate OK [23:10:05]requested_item fd.num is exist - process it [23:10:05]SAM_PROTO_GetFieldsCounters [23:10:05]wFMCommunicate request_size=4 [23:10:05]MH_SAM_APDU [23:10:05]CAPDU: 80 13 00 00 [23:10:05]Write to MH i2c: E2 08 00 54 33 80 13 00 00 00 00 00 00 03 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:05]Read from MH i2c: E2 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 62 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 62 00 54 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:05]wFMCommunicate OK [23:10:05]SAM_PROTO_GetFieldsCounters done [23:10:05]requested_item shift.num is exist - process it [23:10:05]requested_item shift.opened is exist - process it [23:10:05]req_shift_opened [23:10:05]FM_GetShiftState [23:10:05]SAM_PROTO_GetShiftState [23:10:05]wFMCommunicate request_size=4 [23:10:05]MH_SAM_APDU [23:10:05]CAPDU: 80 13 01 00 [23:10:05]Write to MH i2c: E2 08 00 55 33 80 13 01 00 00 00 00 00 05 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:05]Read from MH i2c: E2 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 0E 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 0E 00 55 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F3 [23:10:05]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:10:05]wFMCommunicate OK [23:10:05]SAM_PROTO_GetShiftState done [23:10:05]FM_GetShiftState done [23:10:05]req_shift_opened done [23:10:05]requested_item shift.open_date is exist - process it [23:10:05]req_shift_open_date [23:10:05]req_shift_open_date done [23:10:05]produce_requested_data done [23:10:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70473,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:10:05]process_action_free close_receipt [23:10:05]json_value_free [23:10:05]json_value_free done [23:10:05]process_json_proto returns [23:10:05]Send response to host [23:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70473,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:10:05]free response buf [23:10:05]execute_script done [23:10:05]execute_script returns [23:10:05]free content buf [23:10:05]Sock 7.Close socket [23:10:05]Sock 7.Thread stoped [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:12]accept exits with 9 [23:12:12]New connection [23:12:12]New thread 3066555748 created [23:12:12]Thread 3066699108 joined [23:12:12]Waiting for new connection... [23:12:12] Sock 9.Parse request [23:12:12]Sock 9.Check first char [23:12:12]Sock 9.First char is OK [23:12:12]request: POST /json_proto HTTP/1.0 [23:12:12]Method: POST [23:12:12]URL: /json_proto [23:12:12]Method is POST - this is cgi request [23:12:12]url: /json_proto [23:12:12]query_string will be loaded in cgi processing [23:12:12]execute_cgi json_proto POST (null) [23:12:12]execute_cgi path=json_proto method=POST [23:12:12]POST find Content-Length [23:12:12]Host: 172.17.50.3:8080 [23:12:12]Content-Length: 678 [23:12:12]Content-Type: application/json [23:12:12] [23:12:12]POST finish read [23:12:12]Found Content-Length = 678 [23:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [23:12:12]execute_script... [23:12: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 : (1)2886243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [23:12:12]POST & json_proto [23:12:12]process_json_proto [23:12:12]json parsed OK: [23:12:12]protocol is kg_v1.0 [23:12:12]action value=close_receipt [23:12:12]process_action close_receipt [23:12:12]cmd_close_receipt [23:12:12]MH_GetDate [23:12:12]Write to MH i2c: F0 00 00 56 33 78 [23:12:12]Write i2c OK [23:12:12]MH_I2C_Read... [23:12:12]Read from MH i2c: F0 [23:12:12]MH_I2C_Read... [23:12:12]Read from MH i2c: F0 09 00 [23:12:12]MH_I2C_Read... [23:12:12]Read from MH i2c: F0 09 00 56 33 00 4E 31 18 67 6B 98 1E 66 06 [23:12:12]GetLastDocTimeStamp 1729638603 [23:12:12]current date 1729638734 [23:12:12]FM_GetShiftState [23:12:12]SAM_PROTO_GetShiftState [23:12:12]wFMCommunicate request_size=4 [23:12:12]MH_SAM_APDU [23:12:12]CAPDU: 80 13 01 00 [23:12:12]Write to MH i2c: E2 08 00 57 33 80 13 01 00 00 00 00 00 07 [23:12:12]Write i2c OK [23:12:12]MH_I2C_Read... [23:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:12]Read from MH i2c: E2 [23:12:12]MH_I2C_Read... [23:12:12]Read from MH i2c: E2 0E 00 [23:12:12]MH_I2C_Read... [23:12:12]Read from MH i2c: E2 0E 00 57 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F5 [23:12:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:12:12]wFMCommunicate OK [23:12:12]SAM_PROTO_GetShiftState done [23:12:12]FM_GetShiftState done [23:12:12]opened in 1729555832 [23:12:12]opened+sec_in_day 1729642232 [23:12:12]quantity*price = 40006 [23:12:12]sum+1 = 40007 [23:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 422 22.10.2024 23:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70474 ФПД: 236932833230308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70474&fm=236932833230308&tin=02508201610067®Number=0000000000156251&sum=40000 [23:12:14]StoreToDocumentArchive [23:12:14]shift 195 fd 70474 [23:12:14]save to /storage/0195/doc_00070474 [23:12:14]save last doc name /storage/0195/doc_00070474 to /storage/kkm_last_doc_name [23:12:14]save OK [23:12:14]Clear old archive folders... [23:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:14]tlvbuf is B6F1A7E0 [23:12:14]SAM_PROTO_ClearQueue [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 09 00 00 [23:12:14]Write to MH i2c: E2 08 00 64 33 80 09 00 00 00 00 00 00 09 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 64 33 00 90 00 0B [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]SAM_PROTO_ClearQueue done [23:12:14]KKMCreateOFDPacket [23:12:14]OFDProtocolAddRootSTLVToBuf [23:12:14]FM_MakeSignedData [23:12:14]FM_MakeSignedData [23:12:14]SAM_PROTO_SignData [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 01 02 [23:12:14]Write to MH i2c: E2 08 00 65 33 80 0D 01 02 00 00 00 00 11 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 65 33 00 90 00 0C [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=255 [23:12:14]MH_SAM_APDU [23:12: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 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 A6 01 00 00 F4 03 04 00 4E 31 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 13 01 00 35 04 06 00 D7 [23:12:14]Write to MH i2c: E2 02 01 66 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 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 A6 01 00 00 F4 03 04 00 4E 31 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 13 01 00 35 04 06 00 D7 00 00 06 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 66 33 00 90 00 0D [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=10 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 02 02 05 7D 39 5C 3D E4 [23:12:14]Write to MH i2c: E2 0D 00 67 33 80 0D 02 02 05 00 7D 39 5C 3D E4 00 00 51 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 03 02 [23:12:14]Write to MH i2c: E2 08 00 68 33 80 0D 03 02 00 00 00 00 16 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0B 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0B 00 68 33 00 EC 8D 64 10 DF 7B 1F 9E 90 00 1B [23:12:14]RAPDU: EC 8D 64 10 DF 7B 1F 9E 90 00 [23:12:14]wFMCommunicate OK [23:12:14]SAM_PROTO_SignData done [23:12:14]FM_MakeSignedData done [23:12:14]CreateOFDProtocolMessage [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 11 00 00 [23:12:14]Write to MH i2c: E2 08 00 69 33 80 11 00 00 00 00 00 00 16 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 17 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 17 00 69 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [23:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:12:14]wFMCommunicate OK [23:12:14]CreateOFDProtocolMessage done [23:12:14]OFDSenderStorePacket 70474 [23:12:14]StoreOFDPacket docnum=70474 [23:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 80 3A 07 01 5E DD 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 A6 01 00 00 F4 03 04 00 4E 31 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 13 01 00 35 04 06 00 D7 7D 39 5C 3D E4 EC 8D 64 10 DF 7B 1F 9E [23:12:14]CheckFolder [23:12:14]dirname=/storage/ofd_packets [23:12:14]CheckFolder done [23:12:14]ProducePacketName [23:12:14]name=ofd_packets/00070474 [23:12:14]NVStorageSaveData ofd_packets/00070474 [23:12:14]File name is /storage/ofd_packets/00070474 [23:12:14]Write 301 bytes [23:12:14]NVStorageSaveData done [23:12:14]OFDSenderStorePacket done [23:12:14]KKMCreateOFDPacket done [23:12:14]NVStorageSaveData kkm_last_timestamp [23:12:14]File name is /storage/kkm_last_timestamp [23:12:14]Write 4 bytes [23:12:14]NVStorageSaveData done [23:12:14]ExternCall_PrintAddStr [23:12:14]wPrintStart [23:12:14]Write to MH i2c: 01 00 00 6A 33 9D [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: 01 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: 01 07 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 FF 0F B2 [23:12:14]RasterBufferAndPrint [23:12:14]line Счет N : (1)2886243 [23:12:14]line ИНН: 02508201610067 [23:12:14]line Контрольно-Кассовый Чек [23:12:14]line ПРОДАЖА [23:12:14]line ТРК (МРК, ГНК) : 22 [23:12:14]line Товар: 2710124130 [23:12:14]line Аи-92-К-5 [23:12:14]line 5.980 * 66.90 [23:12:14]line = 400.06 [23:12:14]line НДС 12% НСП 1% [23:12:14]line > о реализуемом товаре [23:12:14]line ОКРУГЛЕНИЕ: -0.06 [23:12:14]line ИТОГО: 400.00 [23:12:14]line Внесено: 400.00 [23:12:14]line СДАЧА: 0.00 [23:12:14]line НСП 1% : 3.54 [23:12:14]line НДС 12% : 42.48 [23:12:14]line Наличными: 400.00 [23:12:14]line Безнал.: 0.00 [23:12:14]line Место: АЗС № 85 "Партнер Нефть" [23:12:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:12:14]line СНО: Общий режим [23:12:14]line Чек 422 22.10.2024 23:12 [23:12:14]line Смена: 195 ФФД: 1.0 [23:12:14]line ЗНМ: 0300000167 [23:12:14]line РНМ: 0000000000156251 [23:12:14]line Версия ККМ: v1.0 [23:12:14]line ФМ: 0000000000963346 [23:12:14]line ФД: 70474 [23:12:14]line ФПД: 236932833230308 [23:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70474&fm=236932833230308&tin=02508201610067®Number=0000000000156251&sum=40000 [23:12:14]OFD Sender: Processing packet 70474 [packets to send 18, broken 17] [23:12:14]ProducePacketName [23:12:14]name=ofd_packets/00070474 [23:12:14]OFD Sender: To server: pG, [23:12:14]CommunicateWithHost lk.salyk.kg:30040 [23:12:14]ConnectInit lk.salyk.kg [23:12:14]written 0, free lines is 4095 [23:12:14]Connected sock=10 [23:12: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 34 36 0F 01 00 00 80 3A 07 01 5E DD 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 A6 01 00 00 F4 03 04 00 4E 31 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 13 01 00 35 04 06 00 D7 7D 39 5C 3D E4 EC 8D 64 10 DF 7B 1F 9E [23:12: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 34 36 4F 00 00 00 02 CA 47 00 C7 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 34 36 10 04 04 00 4A 13 01 00 F4 03 04 00 EE DA 17 67 B6 04 01 00 00 17 86 A0 4D D7 61 66 A5 [23:12:15]CommunicateWithHost err = 0 [23:12:15]CheckOFDResponse [23:12:15]1017 (14) - 77093643461234 [23:12:15]1041 (16) - 0000000000963346 [23:12:15]1040 (4) - 70474 [23:12:15]1012 (4) - 22.10.2024 17:03 [23:12:15]1206 (1) - 0 [23:12:15]OFD Sender: Remove packet 70474 [23:12:15]ProducePacketName [23:12:15]name=ofd_packets/00070474 [23:12:15]NVStorageDeleteData [23:12:15]Write to MH i2c: 01 00 00 95 33 C8 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 F3 0C CE [23:12:15]RasterBufferAndPrint [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]written 0, free lines is 3321 [23:12:15]MH_Cut [23:12:15]Write to MH i2c: D1 01 00 9C 33 01 A1 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 01 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 01 00 9C 33 00 A0 [23:12:15]Write to MH i2c: 01 00 00 9D 33 D0 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]OFD Sender: No OFD packet to send [23:12:16]*** Cut start [23:12:16]*** Partial cut [23:12:16]*** CUTSNS_PIN = 1 [23:12:16]*** CUTSNS_PIN = 0 [23:12:16]*** Brake cut motor [23:12:16]Read from MH i2c: 01 [23:12:16]MH_I2C_Read... [23:12:16]*** Stop cut motor [23:12:16]*** Cut end [23:12:16]Read from MH i2c: 01 07 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [23:12:16]process_action close_receipt done [23:12:16]requested_data is exist [23:12:16]produce_requested_data [23:12:16]requested_item fm.sn is exist - process it [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 11 00 00 [23:12:16]Write to MH i2c: E2 08 00 9E 33 80 11 00 00 00 00 00 00 4B [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 9E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [23:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:12:16]wFMCommunicate OK [23:12:16]requested_item fd.num is exist - process it [23:12:16]SAM_PROTO_GetFieldsCounters [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 13 00 00 [23:12:16]Write to MH i2c: E2 08 00 9F 33 80 13 00 00 00 00 00 00 4E [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 62 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 62 00 9F 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [23:12: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:16]wFMCommunicate OK [23:12:16]SAM_PROTO_GetFieldsCounters done [23:12:16]requested_item shift.num is exist - process it [23:12:16]requested_item shift.opened is exist - process it [23:12:16]req_shift_opened [23:12:16]FM_GetShiftState [23:12:16]SAM_PROTO_GetShiftState [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 13 01 00 [23:12:16]Write to MH i2c: E2 08 00 A0 33 80 13 01 00 00 00 00 00 50 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0E 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0E 00 A0 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3E [23:12:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:12:16]wFMCommunicate OK [23:12:16]SAM_PROTO_GetShiftState done [23:12:16]FM_GetShiftState done [23:12:16]req_shift_opened done [23:12:16]requested_item shift.open_date is exist - process it [23:12:16]req_shift_open_date [23:12:16]req_shift_open_date done [23:12:16]produce_requested_data done [23:12:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70474,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:12:16]process_action_free close_receipt [23:12:16]json_value_free [23:12:16]json_value_free done [23:12:16]process_json_proto returns [23:12:16]Send response to host [23:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70474,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:12:16]free response buf [23:12:16]execute_script done [23:12:16]execute_script returns [23:12:16]free content buf [23:12:16]Sock 9.Close socket [23:12:16]Sock 9.Thread stoped [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:54]accept exits with 7 [23:17:54]New connection [23:17:54]New thread 3066699108 created [23:17:54]Thread 3066555748 joined [23:17:54]Waiting for new connection... [23:17:54] Sock 7.Parse request [23:17:54]Sock 7.Check first char [23:17:54]Sock 7.First char is OK [23:17:54]request: POST /json_proto HTTP/1.0 [23:17:54]Method: POST [23:17:54]URL: /json_proto [23:17:54]Method is POST - this is cgi request [23:17:54]url: /json_proto [23:17:54]query_string will be loaded in cgi processing [23:17:54]execute_cgi json_proto POST (null) [23:17:54]execute_cgi path=json_proto method=POST [23:17:54]POST find Content-Length [23:17:54]Host: 172.17.50.3:8080 [23:17:54]Content-Length: 679 [23:17:54]Content-Type: application/json [23:17:54] [23:17:54]POST finish read [23:17:54]Found Content-Length = 679 [23:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:54]execute_script... [23:17: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)2886244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:54]POST & json_proto [23:17:54]process_json_proto [23:17:54]json parsed OK: [23:17:54]protocol is kg_v1.0 [23:17:54]action value=close_receipt [23:17:54]process_action close_receipt [23:17:54]cmd_close_receipt [23:17:54]MH_GetDate [23:17:54]Write to MH i2c: F0 00 00 A1 33 C3 [23:17:54]Write i2c OK [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: F0 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: F0 09 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: F0 09 00 A1 33 00 A4 32 18 67 6B 98 1E 66 A8 [23:17:54]GetLastDocTimeStamp 1729638734 [23:17:54]current date 1729639076 [23:17:54]FM_GetShiftState [23:17:54]SAM_PROTO_GetShiftState [23:17:54]wFMCommunicate request_size=4 [23:17:54]MH_SAM_APDU [23:17:54]CAPDU: 80 13 01 00 [23:17:54]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [23:17:54]Write i2c OK [23:17:54]MH_I2C_Read... [23:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:54]Read from MH i2c: E2 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 0E 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 40 [23:17:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:17:54]wFMCommunicate OK [23:17:54]SAM_PROTO_GetShiftState done [23:17:54]FM_GetShiftState done [23:17:54]opened in 1729555832 [23:17:54]opened+sec_in_day 1729642232 [23:17:54]quantity*price = 85033 [23:17:54]sum+1 = 85034 [23:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 423 22.10.2024 23:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70475 ФПД: 150712626769309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70475&fm=150712626769309&tin=02508201610067®Number=0000000000156251&sum=85000 [23:17:55]StoreToDocumentArchive [23:17:55]shift 195 fd 70475 [23:17:55]save to /storage/0195/doc_00070475 [23:17:55]save last doc name /storage/0195/doc_00070475 to /storage/kkm_last_doc_name [23:17:55]save OK [23:17:55]Clear old archive folders... [23:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:55]tlvbuf is 00ED1F40 [23:17:55]SAM_PROTO_ClearQueue [23:17:55]wFMCommunicate request_size=4 [23:17:55]MH_SAM_APDU [23:17:55]CAPDU: 80 09 00 00 [23:17:55]Write to MH i2c: E2 08 00 AF 33 80 09 00 00 00 00 00 00 54 [23:17:55]Write i2c OK [23:17:55]MH_I2C_Read... [23:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:55]Read from MH i2c: E2 [23:17:55]MH_I2C_Read... [23:17:55]Read from MH i2c: E2 03 00 [23:17:55]MH_I2C_Read... [23:17:55]Read from MH i2c: E2 03 00 AF 33 00 90 00 56 [23:17:55]RAPDU: 90 00 [23:17:55]wFMCommunicate OK [23:17:55]SAM_PROTO_ClearQueue done [23:17:55]KKMCreateOFDPacket [23:17:55]OFDProtocolAddRootSTLVToBuf [23:17:55]FM_MakeSignedData [23:17:55]FM_MakeSignedData [23:17:55]SAM_PROTO_SignData [23:17:55]wFMCommunicate request_size=4 [23:17:55]MH_SAM_APDU [23:17:55]CAPDU: 80 0D 01 02 [23:17:55]Write to MH i2c: E2 08 00 B0 33 80 0D 01 02 00 00 00 00 5C [23:17:55]Write i2c OK [23:17:55]MH_I2C_Read... [23:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:55]Read from MH i2c: E2 [23:17:55]MH_I2C_Read... [23:17:55]Read from MH i2c: E2 03 00 [23:17:55]MH_I2C_Read... [23:17:55]Read from MH i2c: E2 03 00 B0 33 00 90 00 57 [23:17:55]RAPDU: 90 00 [23:17:55]wFMCommunicate OK [23:17:55]wFMCommunicate request_size=255 [23:17:55]MH_SAM_APDU [23:17: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 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A4 32 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 13 01 00 35 04 06 00 89 [23:17:55]Write to MH i2c: E2 02 01 B1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A4 32 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 13 01 00 35 04 06 00 89 00 00 8F [23:17:55]Write i2c OK [23:17:55]MH_I2C_Read... [23:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:56]Read from MH i2c: E2 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 03 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [23:17:56]RAPDU: 90 00 [23:17:56]wFMCommunicate OK [23:17:56]wFMCommunicate request_size=10 [23:17:56]MH_SAM_APDU [23:17:56]CAPDU: 80 0D 02 02 05 12 84 94 ED 9D [23:17:56]Write to MH i2c: E2 0D 00 B2 33 80 0D 02 02 05 00 12 84 94 ED 9D 00 00 1D [23:17:56]OFD Sender: No OFD packet to send [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:56]Read from MH i2c: E2 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 03 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [23:17:56]RAPDU: 90 00 [23:17:56]wFMCommunicate OK [23:17:56]wFMCommunicate request_size=4 [23:17:56]MH_SAM_APDU [23:17:56]CAPDU: 80 0D 03 02 [23:17:56]Write to MH i2c: E2 08 00 B3 33 80 0D 03 02 00 00 00 00 61 [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:56]Read from MH i2c: E2 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 0B 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 0B 00 B3 33 00 22 21 F7 BD FB 7A 01 B2 90 00 81 [23:17:56]RAPDU: 22 21 F7 BD FB 7A 01 B2 90 00 [23:17:56]wFMCommunicate OK [23:17:56]SAM_PROTO_SignData done [23:17:56]FM_MakeSignedData done [23:17:56]CreateOFDProtocolMessage [23:17:56]wFMCommunicate request_size=4 [23:17:56]MH_SAM_APDU [23:17:56]CAPDU: 80 11 00 00 [23:17:56]Write to MH i2c: E2 08 00 B4 33 80 11 00 00 00 00 00 00 61 [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:56]Read from MH i2c: E2 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 17 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: E2 17 00 B4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [23:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:17:56]wFMCommunicate OK [23:17:56]CreateOFDProtocolMessage done [23:17:56]OFDSenderStorePacket 70475 [23:17:56]StoreOFDPacket docnum=70475 [23:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 2F 07 01 96 D5 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 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A4 32 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 13 01 00 35 04 06 00 89 12 84 94 ED 9D 22 21 F7 BD FB 7A 01 B2 [23:17:56]CheckFolder [23:17:56]dirname=/storage/ofd_packets [23:17:56]CheckFolder done [23:17:56]ProducePacketName [23:17:56]name=ofd_packets/00070475 [23:17:56]NVStorageSaveData ofd_packets/00070475 [23:17:56]File name is /storage/ofd_packets/00070475 [23:17:56]Write 301 bytes [23:17:56]NVStorageSaveData done [23:17:56]OFDSenderStorePacket done [23:17:56]KKMCreateOFDPacket done [23:17:56]NVStorageSaveData kkm_last_timestamp [23:17:56]File name is /storage/kkm_last_timestamp [23:17:56]Write 4 bytes [23:17:56]NVStorageSaveData done [23:17:56]ExternCall_PrintAddStr [23:17:56]wPrintStart [23:17:56]Write to MH i2c: 01 00 00 B5 33 E8 [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 07 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 FF 0F FD [23:17:56]RasterBufferAndPrint [23:17:56]line Счет N : (1)2886244 [23:17:56]line ИНН: 02508201610067 [23:17:56]line Контрольно-Кассовый Чек [23:17:56]line ПРОДАЖА [23:17:56]line ТРК (МРК, ГНК) : 13 [23:17:56]line Товар: 2710124500 [23:17:56]line Аи-95-К-5 [23:17:56]line 11.460 * 74.20 [23:17:56]line = 850.33 [23:17:56]line НДС 12% НСП 1% [23:17:56]line > о реализуемом товаре [23:17:56]line ОКРУГЛЕНИЕ: -0.33 [23:17:56]line ИТОГО: 850.00 [23:17:56]line Внесено: 850.00 [23:17:56]line СДАЧА: 0.00 [23:17:56]line НСП 1% : 7.52 [23:17:56]line НДС 12% : 90.30 [23:17:56]line Наличными: 850.00 [23:17:56]line Безнал.: 0.00 [23:17:56]line Место: АЗС № 85 "Партнер Нефть" [23:17:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:17:56]line СНО: Общий режим [23:17:56]line Чек 423 22.10.2024 23:17 [23:17:56]line Смена: 195 ФФД: 1.0 [23:17:56]line ЗНМ: 0300000167 [23:17:56]line РНМ: 0000000000156251 [23:17:56]line Версия ККМ: v1.0 [23:17:56]line ФМ: 0000000000963346 [23:17:56]line ФД: 70475 [23:17:56]line ФПД: 150712626769309 [23:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70475&fm=150712626769309&tin=02508201610067®Number=0000000000156251&sum=85000 [23:17:56]OFD Sender: Processing packet 70475 [packets to send 18, broken 17] [23:17:56]ProducePacketName [23:17:56]name=ofd_packets/00070475 [23:17:56]OFD Sender: To server: pG, [23:17:56]CommunicateWithHost lk.salyk.kg:30040 [23:17:56]ConnectInit lk.salyk.kg [23:17:56]written 0, free lines is 4095 [23:17:56]Write to MH i2c: 01 00 00 E0 33 13 [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 07 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 E6 0C 0C [23:17:56]RasterBufferAndPrint [23:17:56]line [23:17:56]line [23:17:56]line [23:17:56]line [23:17:56]line [23:17:56]written 0, free lines is 3308 [23:17:56]MH_Cut [23:17:56]Write to MH i2c: D1 01 00 E7 33 01 EC [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: D1 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: D1 01 00 [23:17:56]MH_I2C_Read... [23:17:56]Read from MH i2c: D1 01 00 E7 33 00 EB [23:17:56]Write to MH i2c: 01 00 00 E8 33 1B [23:17:56]Write i2c OK [23:17:56]MH_I2C_Read... [23:17:57]*** Cut start [23:17:57]*** Partial cut [23:17:57]*** CUTSNS_PIN = 1 [23:17:57]*** CUTSNS_PIN = 0 [23:17:57]*** Brake cut motor [23:17:58]Read from MH i2c: 01 [23:17:58]MH_I2C_Read... [23:17:58]*** Stop cut motor [23:17:58]*** Cut end [23:17:58]Read from MH i2c: 01 07 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: 01 07 00 E8 33 00 00 00 00 00 FF 0F 30 [23:17:58]process_action close_receipt done [23:17:58]requested_data is exist [23:17:58]produce_requested_data [23:17:58]requested_item fm.sn is exist - process it [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 11 00 00 [23:17:58]Write to MH i2c: E2 08 00 E9 33 80 11 00 00 00 00 00 00 96 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 17 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 17 00 E9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [23:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:17:58]wFMCommunicate OK [23:17:58]requested_item fd.num is exist - process it [23:17:58]SAM_PROTO_GetFieldsCounters [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 13 00 00 [23:17:58]Write to MH i2c: E2 08 00 EA 33 80 13 00 00 00 00 00 00 99 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 62 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 62 00 EA 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [23:17: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:58]wFMCommunicate OK [23:17:58]SAM_PROTO_GetFieldsCounters done [23:17:58]requested_item shift.num is exist - process it [23:17:58]requested_item shift.opened is exist - process it [23:17:58]req_shift_opened [23:17:58]FM_GetShiftState [23:17:58]SAM_PROTO_GetShiftState [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 13 01 00 [23:17:58]Write to MH i2c: E2 08 00 EB 33 80 13 01 00 00 00 00 00 9B [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 0E 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 0E 00 EB 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 89 [23:17:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:17:58]wFMCommunicate OK [23:17:58]SAM_PROTO_GetShiftState done [23:17:58]FM_GetShiftState done [23:17:58]req_shift_opened done [23:17:58]requested_item shift.open_date is exist - process it [23:17:58]req_shift_open_date [23:17:58]req_shift_open_date done [23:17:58]produce_requested_data done [23:17:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70475,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:17:58]process_action_free close_receipt [23:17:58]json_value_free [23:17:58]json_value_free done [23:17:58]process_json_proto returns [23:17:58]Send response to host [23:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70475,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:17:58]free response buf [23:17:58]execute_script done [23:17:58]execute_script returns [23:17:58]free content buf [23:17:58]Sock 7.Close socket [23:17:58]Sock 7.Thread stoped [23:20:10]ConnectInit Can't connect to host [23:20:10]CommunicateWithHost connect error [23:20:10]CommunicateWithHost err = -1 [23:20:10]OFD Sender: Server communicate error [23:20:15]OFD Sender: Processing packet 70475 [packets to send 18, broken 17] [23:20:15]ProducePacketName [23:20:15]name=ofd_packets/00070475 [23:20:15]OFD Sender: To server: pG, [23:20:15]CommunicateWithHost lk.salyk.kg:30040 [23:20:15]ConnectInit lk.salyk.kg [23:20:15]Connected sock=7 [23:20: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 34 36 0F 01 00 00 39 2F 07 01 96 D5 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 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 A4 32 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 13 01 00 35 04 06 00 89 12 84 94 ED 9D 22 21 F7 BD FB 7A 01 B2 [23:20: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 34 36 4F 00 00 00 0D 69 47 00 4D 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 34 36 10 04 04 00 4B 13 01 00 F4 03 04 00 CE DC 17 67 B6 04 01 00 00 D9 9D 7F 6D 0B 91 83 92 [23:20:15]CommunicateWithHost err = 0 [23:20:15]CheckOFDResponse [23:20:15]1017 (14) - 77093643461234 [23:20:15]1041 (16) - 0000000000963346 [23:20:15]1040 (4) - 70475 [23:20:15]1012 (4) - 22.10.2024 17:11 [23:20:15]1206 (1) - 0 [23:20:15]OFD Sender: Remove packet 70475 [23:20:15]ProducePacketName [23:20:15]name=ofd_packets/00070475 [23:20:15]NVStorageDeleteData [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:03]accept exits with 9 [23:30:03]New connection [23:30:03]New thread 3066555748 created [23:30:03]Thread 3066699108 joined [23:30:03]Waiting for new connection... [23:30:03] Sock 9.Parse request [23:30:03]Sock 9.Check first char [23:30:03]Sock 9.First char is OK [23:30:03]request: POST /json_proto HTTP/1.0 [23:30:03]Method: POST [23:30:03]URL: /json_proto [23:30:03]Method is POST - this is cgi request [23:30:03]url: /json_proto [23:30:03]query_string will be loaded in cgi processing [23:30:03]execute_cgi json_proto POST (null) [23:30:03]execute_cgi path=json_proto method=POST [23:30:03]POST find Content-Length [23:30:03]Host: 172.17.50.3:8080 [23:30:03]Content-Length: 678 [23:30:03]Content-Type: application/json [23:30:03] [23:30:03]POST finish read [23:30:03]Found Content-Length = 678 [23:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [23:30:03]execute_script... [23: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 : (1)2886245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [23:30:03]POST & json_proto [23:30:03]process_json_proto [23:30:03]json parsed OK: [23:30:03]protocol is kg_v1.0 [23:30:03]action value=close_receipt [23:30:03]process_action close_receipt [23:30:03]cmd_close_receipt [23:30:03]MH_GetDate [23:30:03]Write to MH i2c: F0 00 00 EC 33 0E [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: F0 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: F0 09 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: F0 09 00 EC 33 00 7C 35 18 67 6B 98 1E 66 CE [23:30:03]GetLastDocTimeStamp 1729639076 [23:30:03]current date 1729639804 [23:30:03]FM_GetShiftState [23:30:03]SAM_PROTO_GetShiftState [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 13 01 00 [23:30:03]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0E 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8B [23:30:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:30:03]wFMCommunicate OK [23:30:03]SAM_PROTO_GetShiftState done [23:30:03]FM_GetShiftState done [23:30:03]opened in 1729555832 [23:30:03]opened+sec_in_day 1729642232 [23:30:03]quantity*price = 50041 [23:30:03]sum+1 = 50042 [23:30: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 424 22.10.2024 23:30 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70476 ФПД: 145520880053023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70476&fm=145520880053023&tin=02508201610067®Number=0000000000156251&sum=50000 [23:30:04]StoreToDocumentArchive [23:30:04]shift 195 fd 70476 [23:30:04]save to /storage/0195/doc_00070476 [23:30:04]save last doc name /storage/0195/doc_00070476 to /storage/kkm_last_doc_name [23:30:04]save OK [23:30:04]Clear old archive folders... [23:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:04]tlvbuf is 00BC2D10 [23:30:04]SAM_PROTO_ClearQueue [23:30:04]wFMCommunicate request_size=4 [23:30:04]MH_SAM_APDU [23:30:04]CAPDU: 80 09 00 00 [23:30:04]Write to MH i2c: E2 08 00 FA 33 80 09 00 00 00 00 00 00 9F [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 FA 33 00 90 00 A1 [23:30:04]RAPDU: 90 00 [23:30:04]wFMCommunicate OK [23:30:04]SAM_PROTO_ClearQueue done [23:30:04]KKMCreateOFDPacket [23:30:04]OFDProtocolAddRootSTLVToBuf [23:30:04]FM_MakeSignedData [23:30:04]FM_MakeSignedData [23:30:04]SAM_PROTO_SignData [23:30:04]wFMCommunicate request_size=4 [23:30:04]MH_SAM_APDU [23:30:04]CAPDU: 80 0D 01 02 [23:30:04]Write to MH i2c: E2 08 00 FB 33 80 0D 01 02 00 00 00 00 A7 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 FB 33 00 90 00 A2 [23:30:04]RAPDU: 90 00 [23:30:04]wFMCommunicate OK [23:30:04]wFMCommunicate request_size=255 [23:30:04]MH_SAM_APDU [23: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 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 A8 01 00 00 F4 03 04 00 7D 35 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 13 01 00 35 04 06 00 84 [23:30:04]Write to MH i2c: E2 02 01 FC 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 A8 01 00 00 F4 03 04 00 7D 35 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 13 01 00 35 04 06 00 84 00 00 B1 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 FC 33 00 90 00 A3 [23:30:04]RAPDU: 90 00 [23:30:04]wFMCommunicate OK [23:30:04]wFMCommunicate request_size=10 [23:30:04]MH_SAM_APDU [23:30:04]CAPDU: 80 0D 02 02 05 59 B8 5C EB 1F [23:30:04]Write to MH i2c: E2 0D 00 FD 33 80 0D 02 02 05 00 59 B8 5C EB 1F 00 00 2B [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [23:30:04]RAPDU: 90 00 [23:30:04]wFMCommunicate OK [23:30:04]wFMCommunicate request_size=4 [23:30:04]MH_SAM_APDU [23:30:04]CAPDU: 80 0D 03 02 [23:30:04]Write to MH i2c: E2 08 00 FE 33 80 0D 03 02 00 00 00 00 AC [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 0B 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 0B 00 FE 33 00 4F 33 0C 2B 31 6D 8B DC 90 00 6B [23:30:04]RAPDU: 4F 33 0C 2B 31 6D 8B DC 90 00 [23:30:04]wFMCommunicate OK [23:30:04]SAM_PROTO_SignData done [23:30:04]FM_MakeSignedData done [23:30:04]CreateOFDProtocolMessage [23:30:04]wFMCommunicate request_size=4 [23:30:04]MH_SAM_APDU [23:30:04]CAPDU: 80 11 00 00 [23:30:04]Write to MH i2c: E2 08 00 FF 33 80 11 00 00 00 00 00 00 AC [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:04]Read from MH i2c: E2 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 17 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: E2 17 00 FF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [23:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:30:04]wFMCommunicate OK [23:30:04]CreateOFDProtocolMessage done [23:30:04]OFDSenderStorePacket 70476 [23:30:04]StoreOFDPacket docnum=70476 [23:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A 2B 07 01 12 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 A8 01 00 00 F4 03 04 00 7D 35 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 13 01 00 35 04 06 00 84 59 B8 5C EB 1F 4F 33 0C 2B 31 6D 8B DC [23:30:04]CheckFolder [23:30:04]dirname=/storage/ofd_packets [23:30:04]CheckFolder done [23:30:04]ProducePacketName [23:30:04]name=ofd_packets/00070476 [23:30:04]NVStorageSaveData ofd_packets/00070476 [23:30:04]File name is /storage/ofd_packets/00070476 [23:30:04]Write 301 bytes [23:30:04]NVStorageSaveData done [23:30:04]OFDSenderStorePacket done [23:30:04]KKMCreateOFDPacket done [23:30:04]NVStorageSaveData kkm_last_timestamp [23:30:04]File name is /storage/kkm_last_timestamp [23:30:04]Write 4 bytes [23:30:04]NVStorageSaveData done [23:30:04]ExternCall_PrintAddStr [23:30:04]wPrintStart [23:30:04]Write to MH i2c: 01 00 00 00 34 34 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 00 34 00 00 00 00 00 FF 0F 49 [23:30:04]RasterBufferAndPrint [23:30:04]line Счет N : (1)2886245 [23:30:04]line ИНН: 02508201610067 [23:30:04]line Контрольно-Кассовый Чек [23:30:04]line ПРОДАЖА [23:30:04]line ТРК (МРК, ГНК) : 12 [23:30:04]line Товар: 2710124130 [23:30:04]line Аи-92-К-5 [23:30:04]line 7.480 * 66.90 [23:30:04]line = 500.41 [23:30:04]line НДС 12% НСП 1% [23:30:04]line > о реализуемом товаре [23:30:04]line ОКРУГЛЕНИЕ: -0.41 [23:30:04]line ИТОГО: 500.00 [23:30:04]line Внесено: 500.00 [23:30:04]line СДАЧА: 0.00 [23:30:04]line НСП 1% : 4.43 [23:30:04]line НДС 12% : 53.14 [23:30:04]line Наличными: 500.00 [23:30:04]line Безнал.: 0.00 [23:30:04]line Место: АЗС № 85 "Партнер Нефть" [23:30:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:30:04]line СНО: Общий режим [23:30:04]line Чек 424 22.10.2024 23:30 [23:30:04]line Смена: 195 ФФД: 1.0 [23:30:04]line ЗНМ: 0300000167 [23:30:04]line РНМ: 0000000000156251 [23:30:04]line Версия ККМ: v1.0 [23:30:04]line ФМ: 0000000000963346 [23:30:05]line ФД: 70476 [23:30:05]line ФПД: 145520880053023 [23:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70476&fm=145520880053023&tin=02508201610067®Number=0000000000156251&sum=50000 [23:30:05]OFD Sender: Processing packet 70476 [packets to send 18, broken 17] [23:30:05]ProducePacketName [23:30:05]name=ofd_packets/00070476 [23:30:05]OFD Sender: To server: pG, [23:30:05]CommunicateWithHost lk.salyk.kg:30040 [23:30:05]ConnectInit lk.salyk.kg [23:30:05]written 0, free lines is 4095 [23:30:05]Connected sock=10 [23: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 34 36 0F 01 00 00 7A 2B 07 01 12 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 A8 01 00 00 F4 03 04 00 7D 35 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 13 01 00 35 04 06 00 84 59 B8 5C EB 1F 4F 33 0C 2B 31 6D 8B DC [23: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 34 36 4F 00 00 00 8C 72 47 00 A0 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 34 36 10 04 04 00 4C 13 01 00 F4 03 04 00 1C DF 17 67 B6 04 01 00 00 9F 31 2C D8 A1 D2 0E 18 [23:30:05]CommunicateWithHost err = 0 [23:30:05]CheckOFDResponse [23:30:05]1017 (14) - 77093643461234 [23:30:05]1041 (16) - 0000000000963346 [23:30:05]1040 (4) - 70476 [23:30:05]1012 (4) - 22.10.2024 17:21 [23:30:05]1206 (1) - 0 [23:30:05]OFD Sender: Remove packet 70476 [23:30:05]ProducePacketName [23:30:05]name=ofd_packets/00070476 [23:30:05]NVStorageDeleteData [23:30:05]Write to MH i2c: 01 00 00 2B 34 5F [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: 01 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: 01 07 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: 01 07 00 2B 34 00 00 00 00 00 F3 0C 65 [23:30:05]RasterBufferAndPrint [23:30:05]line [23:30:05]line [23:30:05]line [23:30:05]line [23:30:05]line [23:30:05]written 0, free lines is 3321 [23:30:05]MH_Cut [23:30:05]Write to MH i2c: D1 01 00 32 34 01 38 [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: D1 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: D1 01 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: D1 01 00 32 34 00 37 [23:30:05]Write to MH i2c: 01 00 00 33 34 67 [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]OFD Sender: No OFD packet to send [23:30:06]*** Cut start [23:30:06]*** Partial cut [23:30:06]*** CUTSNS_PIN = 1 [23:30:06]*** CUTSNS_PIN = 0 [23:30:06]*** Brake cut motor [23:30:06]Read from MH i2c: 01 [23:30:06]MH_I2C_Read... [23:30:06]*** Stop cut motor [23:30:06]*** Cut end [23:30:06]Read from MH i2c: 01 07 00 [23:30:06]MH_I2C_Read... [23:30:06]Read from MH i2c: 01 07 00 33 34 00 00 00 00 00 FF 0F 7C [23:30:06]process_action close_receipt done [23:30:06]requested_data is exist [23:30:06]produce_requested_data [23:30:06]requested_item fm.sn is exist - process it [23:30:06]wFMCommunicate request_size=4 [23:30:06]MH_SAM_APDU [23:30:06]CAPDU: 80 11 00 00 [23:30:06]Write to MH i2c: E2 08 00 34 34 80 11 00 00 00 00 00 00 E2 [23:30:06]Write i2c OK [23:30:06]MH_I2C_Read... [23:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:06]Read from MH i2c: E2 [23:30:06]MH_I2C_Read... [23:30:06]Read from MH i2c: E2 17 00 [23:30:06]MH_I2C_Read... [23:30:06]Read from MH i2c: E2 17 00 34 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [23:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:30:06]wFMCommunicate OK [23:30:06]requested_item fd.num is exist - process it [23:30:06]SAM_PROTO_GetFieldsCounters [23:30:06]wFMCommunicate request_size=4 [23:30:06]MH_SAM_APDU [23:30:06]CAPDU: 80 13 00 00 [23:30:06]Write to MH i2c: E2 08 00 35 34 80 13 00 00 00 00 00 00 E5 [23:30:06]Write i2c OK [23:30:06]MH_I2C_Read... [23:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:07]Read from MH i2c: E2 [23:30:07]MH_I2C_Read... [23:30:07]Read from MH i2c: E2 62 00 [23:30:07]MH_I2C_Read... [23:30:07]Read from MH i2c: E2 62 00 35 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [23: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:07]wFMCommunicate OK [23:30:07]SAM_PROTO_GetFieldsCounters done [23:30:07]requested_item shift.num is exist - process it [23:30:07]requested_item shift.opened is exist - process it [23:30:07]req_shift_opened [23:30:07]FM_GetShiftState [23:30:07]SAM_PROTO_GetShiftState [23:30:07]wFMCommunicate request_size=4 [23:30:07]MH_SAM_APDU [23:30:07]CAPDU: 80 13 01 00 [23:30:07]Write to MH i2c: E2 08 00 36 34 80 13 01 00 00 00 00 00 E7 [23:30:07]Write i2c OK [23:30:07]MH_I2C_Read... [23:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:07]Read from MH i2c: E2 [23:30:07]MH_I2C_Read... [23:30:07]Read from MH i2c: E2 0E 00 [23:30:07]MH_I2C_Read... [23:30:07]Read from MH i2c: E2 0E 00 36 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D5 [23:30:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:30:07]wFMCommunicate OK [23:30:07]SAM_PROTO_GetShiftState done [23:30:07]FM_GetShiftState done [23:30:07]req_shift_opened done [23:30:07]requested_item shift.open_date is exist - process it [23:30:07]req_shift_open_date [23:30:07]req_shift_open_date done [23:30:07]produce_requested_data done [23:30:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70476,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:30:07]process_action_free close_receipt [23:30:07]json_value_free [23:30:07]json_value_free done [23:30:07]process_json_proto returns [23:30:07]Send response to host [23:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70476,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:30:07]free response buf [23:30:07]execute_script done [23:30:07]execute_script returns [23:30:07]free content buf [23:30:07]Sock 9.Close socket [23:30:07]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [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:00]accept exits with 7 [23:45:00]New connection [23:45:00]New thread 3066699108 created [23:45:00]Thread 3066555748 joined [23:45:00]Waiting for new connection... [23:45:00] Sock 7.Parse request [23:45:00]Sock 7.Check first char [23:45:00]Sock 7.First char is OK [23:45:00]request: POST /json_proto HTTP/1.0 [23:45:00]Method: POST [23:45:00]URL: /json_proto [23:45:00]Method is POST - this is cgi request [23:45:00]url: /json_proto [23:45:00]query_string will be loaded in cgi processing [23:45:00]execute_cgi json_proto POST (null) [23:45:00]execute_cgi path=json_proto method=POST [23:45:00]POST find Content-Length [23:45:00]Host: 172.17.50.3:8080 [23:45:00]Content-Length: 689 [23:45:00]Content-Type: application/json [23:45:00] [23:45:00]POST finish read [23:45:00]Found Content-Length = 689 [23:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [23:45:00]execute_script... [23:45: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)2886246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [23:45:00]POST & json_proto [23:45:00]process_json_proto [23:45:00]json parsed OK: [23:45:00]protocol is kg_v1.0 [23:45:00]action value=close_receipt [23:45:00]process_action close_receipt [23:45:00]cmd_close_receipt [23:45:00]MH_GetDate [23:45:00]Write to MH i2c: F0 00 00 37 34 5A [23:45:00]Write i2c OK [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: F0 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: F0 09 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: F0 09 00 37 34 00 FE 38 18 67 6B 98 1E 66 9F [23:45:00]GetLastDocTimeStamp 1729639805 [23:45:00]current date 1729640702 [23:45:00]FM_GetShiftState [23:45:00]SAM_PROTO_GetShiftState [23:45:00]wFMCommunicate request_size=4 [23:45:00]MH_SAM_APDU [23:45:00]CAPDU: 80 13 01 00 [23:45:00]Write to MH i2c: E2 08 00 38 34 80 13 01 00 00 00 00 00 E9 [23:45:00]Write i2c OK [23:45:00]MH_I2C_Read... [23:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:00]Read from MH i2c: E2 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 0E 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 0E 00 38 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 D7 [23:45:00]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:45:00]wFMCommunicate OK [23:45:00]SAM_PROTO_GetShiftState done [23:45:00]FM_GetShiftState done [23:45:00]opened in 1729555832 [23:45:00]opened+sec_in_day 1729642232 [23:45:00]quantity*price = 250050 [23:45:00]sum+1 = 250052 [23:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 425 22.10.2024 23:45 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70477 ФПД: 8155703452025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70477&fm=8155703452025&tin=02508201610067®Number=0000000000156251&sum=250000 [23:45:01]StoreToDocumentArchive [23:45:01]shift 195 fd 70477 [23:45:01]save to /storage/0195/doc_00070477 [23:45:01]save last doc name /storage/0195/doc_00070477 to /storage/kkm_last_doc_name [23:45:01]save OK [23:45:01]Clear old archive folders... [23:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:45:01]tlvbuf is 00CB7C80 [23:45:01]SAM_PROTO_ClearQueue [23:45:01]wFMCommunicate request_size=4 [23:45:01]MH_SAM_APDU [23:45:01]CAPDU: 80 09 00 00 [23:45:01]Write to MH i2c: E2 08 00 45 34 80 09 00 00 00 00 00 00 EB [23:45:01]Write i2c OK [23:45:01]MH_I2C_Read... [23:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:01]Read from MH i2c: E2 [23:45:01]MH_I2C_Read... [23:45:01]Read from MH i2c: E2 03 00 [23:45:01]MH_I2C_Read... [23:45:01]Read from MH i2c: E2 03 00 45 34 00 90 00 ED [23:45:01]RAPDU: 90 00 [23:45:01]wFMCommunicate OK [23:45:01]SAM_PROTO_ClearQueue done [23:45:01]KKMCreateOFDPacket [23:45:01]OFDProtocolAddRootSTLVToBuf [23:45:01]FM_MakeSignedData [23:45:01]FM_MakeSignedData [23:45:01]SAM_PROTO_SignData [23:45:01]wFMCommunicate request_size=4 [23:45:01]MH_SAM_APDU [23:45:01]CAPDU: 80 0D 01 02 [23:45:01]Write to MH i2c: E2 08 00 46 34 80 0D 01 02 00 00 00 00 F3 [23:45:01]Write i2c OK [23:45:01]MH_I2C_Read... [23:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:01]Read from MH i2c: E2 [23:45:01]MH_I2C_Read... [23:45:01]Read from MH i2c: E2 03 00 [23:45:01]MH_I2C_Read... [23:45:01]Read from MH i2c: E2 03 00 46 34 00 90 00 EE [23:45:01]RAPDU: 90 00 [23:45:01]wFMCommunicate OK [23:45:01]wFMCommunicate request_size=255 [23:45:01]MH_SAM_APDU [23:45:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 A9 01 00 00 F4 03 04 00 FE 38 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 13 01 [23:45:01]Write to MH i2c: E2 02 01 47 34 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 A9 01 00 00 F4 03 04 00 FE 38 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 13 01 00 00 5A [23:45:01]Write i2c OK [23:45:01]MH_I2C_Read... [23:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:02]Read from MH i2c: E2 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 03 00 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 03 00 47 34 00 90 00 EF [23:45:02]RAPDU: 90 00 [23:45:02]wFMCommunicate OK [23:45:02]wFMCommunicate request_size=16 [23:45:02]MH_SAM_APDU [23:45:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 07 6A E5 CE A1 79 [23:45:02]Write to MH i2c: E2 13 00 48 34 80 0D 02 02 0B 00 00 35 04 06 00 07 6A E5 CE A1 79 00 00 89 [23:45:02]Write i2c OK [23:45:02]MH_I2C_Read... [23:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:02]Read from MH i2c: E2 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 03 00 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 03 00 48 34 00 90 00 F0 [23:45:02]RAPDU: 90 00 [23:45:02]wFMCommunicate OK [23:45:02]wFMCommunicate request_size=4 [23:45:02]MH_SAM_APDU [23:45:02]CAPDU: 80 0D 03 02 [23:45:02]Write to MH i2c: E2 08 00 49 34 80 0D 03 02 00 00 00 00 F8 [23:45:02]Write i2c OK [23:45:02]MH_I2C_Read... [23:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:02]Read from MH i2c: E2 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 0B 00 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 0B 00 49 34 00 CC 8A 7F B5 7F 9A E5 A0 90 00 21 [23:45:02]RAPDU: CC 8A 7F B5 7F 9A E5 A0 90 00 [23:45:02]wFMCommunicate OK [23:45:02]SAM_PROTO_SignData done [23:45:02]FM_MakeSignedData done [23:45:02]CreateOFDProtocolMessage [23:45:02]wFMCommunicate request_size=4 [23:45:02]MH_SAM_APDU [23:45:02]CAPDU: 80 11 00 00 [23:45:02]Write to MH i2c: E2 08 00 4A 34 80 11 00 00 00 00 00 00 F8 [23:45:02]Write i2c OK [23:45:02]MH_I2C_Read... [23:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:02]Read from MH i2c: E2 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 17 00 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: E2 17 00 4A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [23:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:45:02]wFMCommunicate OK [23:45:02]CreateOFDProtocolMessage done [23:45:02]OFDSenderStorePacket 70477 [23:45:02]StoreOFDPacket docnum=70477 [23:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 47 FA 0D 01 0E A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 A9 01 00 00 F4 03 04 00 FE 38 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 13 01 00 35 04 06 00 07 6A E5 CE A1 79 CC 8A 7F B5 7F 9A E5 A0 [23:45:02]CheckFolder [23:45:02]dirname=/storage/ofd_packets [23:45:02]CheckFolder done [23:45:02]ProducePacketName [23:45:02]name=ofd_packets/00070477 [23:45:02]NVStorageSaveData ofd_packets/00070477 [23:45:02]File name is /storage/ofd_packets/00070477 [23:45:02]Write 307 bytes [23:45:02]NVStorageSaveData done [23:45:02]OFDSenderStorePacket done [23:45:02]KKMCreateOFDPacket done [23:45:02]NVStorageSaveData kkm_last_timestamp [23:45:02]File name is /storage/kkm_last_timestamp [23:45:02]Write 4 bytes [23:45:02]NVStorageSaveData done [23:45:02]ExternCall_PrintAddStr [23:45:02]wPrintStart [23:45:02]Write to MH i2c: 01 00 00 4B 34 7F [23:45:02]Write i2c OK [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: 01 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: 01 07 00 [23:45:02]MH_I2C_Read... [23:45:02]Read from MH i2c: 01 07 00 4B 34 00 00 00 00 00 FF 0F 94 [23:45:02]RasterBufferAndPrint [23:45:02]line Счет N : (1)2886246 [23:45:02]line ИНН: 02508201610067 [23:45:02]line Контрольно-Кассовый Чек [23:45:02]line ПРОДАЖА [23:45:02]line ТРК (МРК, ГНК) : 31 [23:45:02]line Товар: 2710194240 [23:45:02]line D-ENERGY Дт-К-2 [23:45:02]line 32.390 * 77.20 [23:45:02]line = 2500.51 [23:45:02]line НДС 12% НСП 1% [23:45:02]line > о реализуемом товаре [23:45:02]line ОКРУГЛЕНИЕ: -0.51 [23:45:02]line ИТОГО: 2500.00 [23:45:02]line Внесено: 2500.00 [23:45:02]line СДАЧА: 0.00 [23:45:02]line НСП 1% : 22.13 [23:45:02]line НДС 12% : 265.54 [23:45:02]line Наличными: 2500.00 [23:45:02]line Безнал.: 0.00 [23:45:02]line Место: АЗС № 85 "Партнер Нефть" [23:45:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:45:02]line СНО: Общий режим [23:45:02]line Чек 425 22.10.2024 23:45 [23:45:02]line Смена: 195 ФФД: 1.0 [23:45:02]line ЗНМ: 0300000167 [23:45:02]line РНМ: 0000000000156251 [23:45:02]line Версия ККМ: v1.0 [23:45:02]line ФМ: 0000000000963346 [23:45:02]line ФД: 70477 [23:45:02]line ФПД: 8155703452025 [23:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70477&fm=8155703452025&tin=02508201610067®Number=0000000000156251&sum=250000 [23:45:02]OFD Sender: Processing packet 70477 [packets to send 18, broken 17] [23:45:02]ProducePacketName [23:45:02]name=ofd_packets/00070477 [23:45:02]OFD Sender: To server: pG, [23:45:02]CommunicateWithHost lk.salyk.kg:30040 [23:45:02]ConnectInit lk.salyk.kg [23:45:02]written 0, free lines is 4095 [23:45:02]Connected sock=10 [23:45: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 34 36 15 01 00 00 47 FA 0D 01 0E A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 A9 01 00 00 F4 03 04 00 FE 38 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 13 01 00 35 04 06 00 07 6A E5 CE A1 79 CC 8A 7F B5 7F 9A E5 A0 [23:45: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 34 36 4F 00 00 00 2C 3F 47 00 9D 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 34 36 10 04 04 00 4D 13 01 00 F4 03 04 00 9D E2 17 67 B6 04 01 00 00 72 7B 38 78 97 DD 34 53 [23:45:02]CommunicateWithHost err = 0 [23:45:02]CheckOFDResponse [23:45:02]1017 (14) - 77093643461234 [23:45:02]1041 (16) - 0000000000963346 [23:45:02]1040 (4) - 70477 [23:45:02]1012 (4) - 22.10.2024 17:36 [23:45:02]1206 (1) - 0 [23:45:02]OFD Sender: Remove packet 70477 [23:45:02]ProducePacketName [23:45:02]name=ofd_packets/00070477 [23:45:02]NVStorageDeleteData [23:45:03]Write to MH i2c: 01 00 00 76 34 AA [23:45:03]Write i2c OK [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: 01 [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: 01 07 00 [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: 01 07 00 76 34 00 00 00 00 00 F4 0C B1 [23:45:03]RasterBufferAndPrint [23:45:03]line [23:45:03]line [23:45:03]line [23:45:03]line [23:45:03]line [23:45:03]written 0, free lines is 3322 [23:45:03]MH_Cut [23:45:03]Write to MH i2c: D1 01 00 7D 34 01 83 [23:45:03]Write i2c OK [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: D1 [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: D1 01 00 [23:45:03]MH_I2C_Read... [23:45:03]Read from MH i2c: D1 01 00 7D 34 00 82 [23:45:03]Write to MH i2c: 01 00 00 7E 34 B2 [23:45:03]Write i2c OK [23:45:03]MH_I2C_Read... [23:45:03]OFD Sender: No OFD packet to send [23:45:03]*** Cut start [23:45:03]*** Partial cut [23:45:03]*** CUTSNS_PIN = 1 [23:45:03]*** CUTSNS_PIN = 0 [23:45:04]*** Brake cut motor [23:45:04]Read from MH i2c: 01 [23:45:04]MH_I2C_Read... [23:45:04]*** Stop cut motor [23:45:04]*** Cut end [23:45:04]Read from MH i2c: 01 07 00 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: 01 07 00 7E 34 00 00 00 00 00 FF 0F C7 [23:45:04]process_action close_receipt done [23:45:04]requested_data is exist [23:45:04]produce_requested_data [23:45:04]requested_item fm.sn is exist - process it [23:45:04]wFMCommunicate request_size=4 [23:45:04]MH_SAM_APDU [23:45:04]CAPDU: 80 11 00 00 [23:45:04]Write to MH i2c: E2 08 00 7F 34 80 11 00 00 00 00 00 00 2D [23:45:04]Write i2c OK [23:45:04]MH_I2C_Read... [23:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:04]Read from MH i2c: E2 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 17 00 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 17 00 7F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [23:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:45:04]wFMCommunicate OK [23:45:04]requested_item fd.num is exist - process it [23:45:04]SAM_PROTO_GetFieldsCounters [23:45:04]wFMCommunicate request_size=4 [23:45:04]MH_SAM_APDU [23:45:04]CAPDU: 80 13 00 00 [23:45:04]Write to MH i2c: E2 08 00 80 34 80 13 00 00 00 00 00 00 30 [23:45:04]Write i2c OK [23:45:04]MH_I2C_Read... [23:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:04]Read from MH i2c: E2 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 62 00 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 62 00 80 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [23:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:04]wFMCommunicate OK [23:45:04]SAM_PROTO_GetFieldsCounters done [23:45:04]requested_item shift.num is exist - process it [23:45:04]requested_item shift.opened is exist - process it [23:45:04]req_shift_opened [23:45:04]FM_GetShiftState [23:45:04]SAM_PROTO_GetShiftState [23:45:04]wFMCommunicate request_size=4 [23:45:04]MH_SAM_APDU [23:45:04]CAPDU: 80 13 01 00 [23:45:04]Write to MH i2c: E2 08 00 81 34 80 13 01 00 00 00 00 00 32 [23:45:04]Write i2c OK [23:45:04]MH_I2C_Read... [23:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:04]Read from MH i2c: E2 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 0E 00 [23:45:04]MH_I2C_Read... [23:45:04]Read from MH i2c: E2 0E 00 81 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 20 [23:45:04]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:45:04]wFMCommunicate OK [23:45:04]SAM_PROTO_GetShiftState done [23:45:04]FM_GetShiftState done [23:45:04]req_shift_opened done [23:45:04]requested_item shift.open_date is exist - process it [23:45:04]req_shift_open_date [23:45:04]req_shift_open_date done [23:45:04]produce_requested_data done [23:45:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70477,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:45:04]process_action_free close_receipt [23:45:04]json_value_free [23:45:04]json_value_free done [23:45:04]process_json_proto returns [23:45:04]Send response to host [23:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70477,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:45:04]free response buf [23:45:04]execute_script done [23:45:04]execute_script returns [23:45:04]free content buf [23:45:04]Sock 7.Close socket [23:45:04]Sock 7.Thread stoped [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:03]int [23:47:03]Write to MH i2c: 01 00 00 82 34 B6 [23:47:03]*** FLAG_PRN_PAP1 set [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 82 34 00 01 00 00 00 FF 0F CC [23:47:03]state=0 [23:47:03]No paper [23:47:03]int [23:47:03]Write to MH i2c: 01 00 00 83 34 B7 [23:47:03]*** FLAG_PRN_PAP2 set [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 83 34 00 03 00 00 00 FF 0F CF [23:47:03]state=0 [23:47:03]No paper [23:47:03]Cover opened [23:47:03]int [23:47:03]Write to MH i2c: 01 00 00 84 34 B8 [23:47:03]*** FLAG_PRN_PAP2 reset [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: 01 07 00 84 34 00 01 00 00 00 FF 0F CE [23:47:03]state=3 [23:47:03]No paper [23:47:03]Cover closed [23:47:04]int [23:47:04]Write to MH i2c: 01 00 00 85 34 B9 [23:47:04]*** FLAG_PRN_PAP2 set [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 85 34 00 03 00 00 00 FF 0F D1 [23:47:04]state=0 [23:47:04]No paper [23:47:04]Cover opened [23:47:06]int [23:47:06]Write to MH i2c: 01 00 00 86 34 BA [23:47:06]*** FLAG_PRN_PAP2 reset [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 86 34 00 01 00 00 00 FF 0F D0 [23:47:06]state=3 [23:47:06]No paper [23:47:06]Cover closed [23:47:06]int [23:47:06]Write to MH i2c: 01 00 00 87 34 BB [23:47:06]*** FLAG_PRN_PAP1 reset [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 87 34 00 00 00 00 00 FF 0F D0 [23:47:06]state=0 [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:21]accept exits with 9 [23:48:21]New connection [23:48:21]New thread 3066555748 created [23:48:21]Thread 3066699108 joined [23:48:21]Waiting for new connection... [23:48:21] Sock 9.Parse request [23:48:21]Sock 9.Check first char [23:48:21]Sock 9.First char is OK [23:48:21]request: POST /json_proto HTTP/1.0 [23:48:21]Method: POST [23:48:21]URL: /json_proto [23:48:21]Method is POST - this is cgi request [23:48:21]url: /json_proto [23:48:21]query_string will be loaded in cgi processing [23:48:21]execute_cgi json_proto POST (null) [23:48:21]execute_cgi path=json_proto method=POST [23:48:21]POST find Content-Length [23:48:21]Host: 172.17.50.3:8080 [23:48:21]Content-Length: 798 [23:48:21]Content-Type: application/json [23:48:21] [23:48:21]POST finish read [23:48:21]Found Content-Length = 798 [23:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.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\u000A4339729", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:21]execute_script... [23:48: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)2886247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.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\u000A4339729", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:21]POST & json_proto [23:48:21]process_json_proto [23:48:21]json parsed OK: [23:48:21]protocol is kg_v1.0 [23:48:21]action value=close_receipt [23:48:21]process_action close_receipt [23:48:21]cmd_close_receipt [23:48:21]MH_GetDate [23:48:21]Write to MH i2c: F0 00 00 88 34 AB [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: F0 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: F0 09 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: F0 09 00 88 34 00 C7 39 18 67 6B 98 1E 66 BA [23:48:21]GetLastDocTimeStamp 1729640702 [23:48:21]current date 1729640903 [23:48:21]FM_GetShiftState [23:48:21]SAM_PROTO_GetShiftState [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 13 01 00 [23:48:21]Write to MH i2c: E2 08 00 89 34 80 13 01 00 00 00 00 00 3A [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 0E 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 0E 00 89 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 28 [23:48:21]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:48:21]wFMCommunicate OK [23:48:21]SAM_PROTO_GetShiftState done [23:48:21]FM_GetShiftState done [23:48:21]opened in 1729555832 [23:48:21]opened+sec_in_day 1729642232 [23:48:21]quantity*price = 0 [23:48:21]sum+1 = 1 [23:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 426 22.10.2024 23:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4339729 ФМ: 0000000000963346 ФД: 70478 ФПД: 71056542037036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70478&fm=71056542037036&tin=02508201610067®Number=0000000000156251&sum=0 [23:48:22]StoreToDocumentArchive [23:48:22]shift 195 fd 70478 [23:48:22]save to /storage/0195/doc_00070478 [23:48:22]save last doc name /storage/0195/doc_00070478 to /storage/kkm_last_doc_name [23:48:22]save OK [23:48:22]Clear old archive folders... [23:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:48:22]tlvbuf is B6F17410 [23:48:22]SAM_PROTO_ClearQueue [23:48:22]wFMCommunicate request_size=4 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 09 00 00 [23:48:22]Write to MH i2c: E2 08 00 96 34 80 09 00 00 00 00 00 00 3C [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]SAM_PROTO_ClearQueue done [23:48:22]KKMCreateOFDPacket [23:48:22]OFDProtocolAddRootSTLVToBuf [23:48:22]FM_MakeSignedData [23:48:22]FM_MakeSignedData [23:48:22]SAM_PROTO_SignData [23:48:22]wFMCommunicate request_size=4 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 0D 01 02 [23:48:22]Write to MH i2c: E2 08 00 97 34 80 0D 01 02 00 00 00 00 44 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 97 34 00 90 00 3F [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]wFMCommunicate request_size=255 [23:48:22]MH_SAM_APDU [23:48: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 40 9C 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 AA 01 00 00 F4 03 04 00 C7 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 13 01 00 35 04 06 00 40 A0 23 F2 [23:48:22]Write to MH i2c: E2 02 01 98 34 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 40 9C 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 AA 01 00 00 F4 03 04 00 C7 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 13 01 00 35 04 06 00 40 A0 23 F2 00 00 BB [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 98 34 00 90 00 40 [23:48:23]RAPDU: 90 00 [23:48:23]wFMCommunicate OK [23:48:23]wFMCommunicate request_size=7 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 0D 02 02 02 74 2C [23:48:23]Write to MH i2c: E2 0A 00 99 34 80 0D 02 02 02 00 74 2C 00 00 EB [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 99 34 00 90 00 41 [23:48:23]RAPDU: 90 00 [23:48:23]wFMCommunicate OK [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 0D 03 02 [23:48:23]Write to MH i2c: E2 08 00 9A 34 80 0D 03 02 00 00 00 00 49 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 0B 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 0B 00 9A 34 00 74 27 69 16 7E BD D8 B9 90 00 30 [23:48:23]RAPDU: 74 27 69 16 7E BD D8 B9 90 00 [23:48:23]wFMCommunicate OK [23:48:23]SAM_PROTO_SignData done [23:48:23]FM_MakeSignedData done [23:48:23]CreateOFDProtocolMessage [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 11 00 00 [23:48:23]Write to MH i2c: E2 08 00 9B 34 80 11 00 00 00 00 00 00 49 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 17 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 17 00 9B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [23:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:23]wFMCommunicate OK [23:48:23]CreateOFDProtocolMessage done [23:48:23]OFDSenderStorePacket 70478 [23:48:23]StoreOFDPacket docnum=70478 [23:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 08 D1 04 01 7F DC 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 40 9C 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 AA 01 00 00 F4 03 04 00 C7 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 13 01 00 35 04 06 00 40 A0 23 F2 74 2C 74 27 69 16 7E BD D8 B9 [23:48:23]CheckFolder [23:48:23]dirname=/storage/ofd_packets [23:48:23]CheckFolder done [23:48:23]ProducePacketName [23:48:23]name=ofd_packets/00070478 [23:48:23]NVStorageSaveData ofd_packets/00070478 [23:48:23]File name is /storage/ofd_packets/00070478 [23:48:23]Write 298 bytes [23:48:23]NVStorageSaveData done [23:48:23]OFDSenderStorePacket done [23:48:23]KKMCreateOFDPacket done [23:48:23]NVStorageSaveData kkm_last_timestamp [23:48:23]File name is /storage/kkm_last_timestamp [23:48:23]Write 4 bytes [23:48:23]NVStorageSaveData done [23:48:23]ExternCall_PrintAddStr [23:48:23]wPrintStart [23:48:23]Write to MH i2c: 01 00 00 9C 34 D0 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 07 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 07 00 9C 34 00 00 00 00 00 FF 0F E5 [23:48:23]RasterBufferAndPrint [23:48:23]line Счет N : (1)2886247 [23:48:23]line ИНН: 02508201610067 [23:48:23]line Контрольно-Кассовый Чек [23:48:23]line ПРОДАЖА [23:48:23]line ТРК (МРК, ГНК) : 61 [23:48:23]line Товар: 2710194210 [23:48:23]line ДТ-К-5 [23:48:23]line 40.000 * 0.00 [23:48:23]line = 0.00 [23:48:23]line НДС 12% НСП 1% [23:48:23]line > о реализуемом товаре [23:48:23]line ИТОГО: 0.00 [23:48:23]line НСП 1% : 0.00 [23:48:23]line НДС 12% : 0.00 [23:48:23]line Наличными: 0.00 [23:48:23]line Безнал.: 0.00 [23:48:23]line Место: АЗС № 85 "Партнер Нефть" [23:48:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:48:23]line СНО: Общий режим [23:48:23]line Чек 426 22.10.2024 23:48 [23:48:23]line Смена: 195 ФФД: 1.0 [23:48:23]line ЗНМ: 0300000167 [23:48:23]line РНМ: 0000000000156251 [23:48:23]line Версия ККМ: v1.0 [23:48:23]line Талоны: Топливные Талоны [23:48:23]line 4339729 [23:48:23]line ФМ: 0000000000963346 [23:48:23]line ФД: 70478 [23:48:23]line ФПД: 71056542037036 [23:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70478&fm=71056542037036&tin=02508201610067®Number=0000000000156251&sum=0 [23:48:23]OFD Sender: Processing packet 70478 [packets to send 18, broken 17] [23:48:23]ProducePacketName [23:48:23]name=ofd_packets/00070478 [23:48:23]OFD Sender: To server: pG, [23:48:23]CommunicateWithHost lk.salyk.kg:30040 [23:48:23]ConnectInit lk.salyk.kg [23:48:23]written 0, free lines is 4095 [23:48:23]Connected sock=11 [23:48: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 34 36 0C 01 00 00 08 D1 04 01 7F DC 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 40 9C 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 AA 01 00 00 F4 03 04 00 C7 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 13 01 00 35 04 06 00 40 A0 23 F2 74 2C 74 27 69 16 7E BD D8 B9 [23: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 34 36 4F 00 00 00 C2 8E 47 00 06 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 34 36 10 04 04 00 4E 13 01 00 F4 03 04 00 66 E3 17 67 B6 04 01 00 00 8C 48 73 8E 62 6E C7 6D [23:48:23]CommunicateWithHost err = 0 [23:48:23]CheckOFDResponse [23:48:23]1017 (14) - 77093643461234 [23:48:23]1041 (16) - 0000000000963346 [23:48:23]1040 (4) - 70478 [23:48:23]1012 (4) - 22.10.2024 17:39 [23:48:23]1206 (1) - 0 [23:48:23]OFD Sender: Remove packet 70478 [23:48:23]ProducePacketName [23:48:23]name=ofd_packets/00070478 [23:48:23]NVStorageDeleteData [23:48:23]Write to MH i2c: 01 00 00 C6 34 FA [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 07 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 07 0D 15 [23:48:23]RasterBufferAndPrint [23:48:23]line [23:48:23]line [23:48:23]line [23:48:23]line [23:48:23]line [23:48:23]written 0, free lines is 3343 [23:48:23]MH_Cut [23:48:23]Write to MH i2c: D1 01 00 CD 34 01 D3 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: D1 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: D1 01 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: D1 01 00 CD 34 00 D2 [23:48:23]Write to MH i2c: 01 00 00 CE 34 02 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:24]OFD Sender: No OFD packet to send [23:48:24]*** Cut start [23:48:24]*** Partial cut [23:48:24]*** CUTSNS_PIN = 1 [23:48:24]*** CUTSNS_PIN = 0 [23:48:24]*** Brake cut motor [23:48:25]Read from MH i2c: 01 [23:48:25]MH_I2C_Read... [23:48:25]*** Stop cut motor [23:48:25]*** Cut end [23:48:25]Read from MH i2c: 01 07 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: 01 07 00 CE 34 00 00 00 00 00 FF 0F 17 [23:48:25]process_action close_receipt done [23:48:25]requested_data is exist [23:48:25]produce_requested_data [23:48:25]requested_item fm.sn is exist - process it [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 11 00 00 [23:48:25]Write to MH i2c: E2 08 00 CF 34 80 11 00 00 00 00 00 00 7D [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 17 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 17 00 CF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [23:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:25]wFMCommunicate OK [23:48:25]requested_item fd.num is exist - process it [23:48:25]SAM_PROTO_GetFieldsCounters [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 13 00 00 [23:48:25]Write to MH i2c: E2 08 00 D0 34 80 13 00 00 00 00 00 00 80 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 62 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 62 00 D0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:25]wFMCommunicate OK [23:48:25]SAM_PROTO_GetFieldsCounters done [23:48:25]requested_item shift.num is exist - process it [23:48:25]requested_item shift.opened is exist - process it [23:48:25]req_shift_opened [23:48:25]FM_GetShiftState [23:48:25]SAM_PROTO_GetShiftState [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 13 01 00 [23:48:25]Write to MH i2c: E2 08 00 D1 34 80 13 01 00 00 00 00 00 82 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 0E 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 0E 00 D1 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 70 [23:48:25]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:48:25]wFMCommunicate OK [23:48:25]SAM_PROTO_GetShiftState done [23:48:25]FM_GetShiftState done [23:48:25]req_shift_opened done [23:48:25]requested_item shift.open_date is exist - process it [23:48:25]req_shift_open_date [23:48:25]req_shift_open_date done [23:48:25]produce_requested_data done [23:48:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70478,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:48:25]process_action_free close_receipt [23:48:25]json_value_free [23:48:25]json_value_free done [23:48:25]process_json_proto returns [23:48:25]Send response to host [23:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70478,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:48:25]free response buf [23:48:25]execute_script done [23:48:25]execute_script returns [23:48:25]free content buf [23:48:25]Sock 9.Close socket [23:48:25]Sock 9.Thread stoped [23:48:26]int [23:48:26]Write to MH i2c: 01 00 00 D2 34 06 [23:48:26]*** FLAG_PRN_PAP1 set [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 D2 34 00 01 00 00 00 FF 0F 1C [23:48:26]state=0 [23:48:26]No paper [23:48:26]int [23:48:26]Write to MH i2c: 01 00 00 D3 34 07 [23:48:26]*** FLAG_PRN_PAP2 set [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 D3 34 00 03 00 00 00 FF 0F 1F [23:48:26]state=0 [23:48:26]No paper [23:48:26]Cover opened [23:48:26]int [23:48:26]Write to MH i2c: 01 00 00 D4 34 08 [23:48:26]*** FLAG_PRN_PAP2 reset [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 D4 34 00 01 00 00 00 FF 0F 1E [23:48:26]state=3 [23:48:26]No paper [23:48:26]Cover closed [23:48:26]int [23:48:26]Write to MH i2c: 01 00 00 D5 34 09 [23:48:26]*** FLAG_PRN_PAP2 set [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 D5 34 00 03 00 00 00 FF 0F 21 [23:48:26]state=0 [23:48:26]No paper [23:48:26]Cover opened [23:48:29]OFD Sender: No OFD packet to send [23:48:31]int [23:48:31]Write to MH i2c: 01 00 00 D6 34 0A [23:48:31]*** FLAG_PRN_PAP2 reset [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 D6 34 00 01 00 00 00 FF 0F 20 [23:48:31]state=3 [23:48:31]No paper [23:48:31]Cover closed [23:48:31]int [23:48:31]Write to MH i2c: 01 00 00 D7 34 0B [23:48:31]*** FLAG_PRN_PAP1 reset [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 D7 34 00 00 00 00 00 FF 0F 20 [23:48:31]state=0 [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:49]accept exits with 7 [23:48:49]New connection [23:48:49]New thread 3066699108 created [23:48:49]Thread 3066555748 joined [23:48:49]Waiting for new connection... [23:48:49] Sock 7.Parse request [23:48:49]Sock 7.Check first char [23:48:49]Sock 7.First char is OK [23:48:49]request: POST /json_proto HTTP/1.0 [23:48:49]Method: POST [23:48:49]URL: /json_proto [23:48:49]Method is POST - this is cgi request [23:48:49]url: /json_proto [23:48:49]query_string will be loaded in cgi processing [23:48:49]execute_cgi json_proto POST (null) [23:48:49]execute_cgi path=json_proto method=POST [23:48:49]POST find Content-Length [23:48:49]Host: 172.17.50.3:8080 [23:48:49]Content-Length: 686 [23:48:49]Content-Type: application/json [23:48:49] [23:48:49]POST finish read [23:48:49]Found Content-Length = 686 [23:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:49]execute_script... [23:48: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)2886248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:49]POST & json_proto [23:48:49]process_json_proto [23:48:49]json parsed OK: [23:48:49]protocol is kg_v1.0 [23:48:49]action value=close_receipt [23:48:49]process_action close_receipt [23:48:49]cmd_close_receipt [23:48:49]MH_GetDate [23:48:49]Write to MH i2c: F0 00 00 D8 34 FB [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: F0 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: F0 09 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: F0 09 00 D8 34 00 E3 39 18 67 6B 98 1E 66 26 [23:48:49]GetLastDocTimeStamp 1729640903 [23:48:49]current date 1729640931 [23:48:49]FM_GetShiftState [23:48:49]SAM_PROTO_GetShiftState [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 13 01 00 [23:48:49]Write to MH i2c: E2 08 00 D9 34 80 13 01 00 00 00 00 00 8A [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 0E 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 0E 00 D9 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 78 [23:48:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:48:49]wFMCommunicate OK [23:48:49]SAM_PROTO_GetShiftState done [23:48:49]FM_GetShiftState done [23:48:49]opened in 1729555832 [23:48:49]opened+sec_in_day 1729642232 [23:48:49]quantity*price = 100011 [23:48:49]sum+1 = 100013 [23:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 427 22.10.2024 23:48 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70479 ФПД: 127384369002352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70479&fm=127384369002352&tin=02508201610067®Number=0000000000156251&sum=100000 [23:48:51]StoreToDocumentArchive [23:48:51]shift 195 fd 70479 [23:48:51]save to /storage/0195/doc_00070479 [23:48:51]save last doc name /storage/0195/doc_00070479 to /storage/kkm_last_doc_name [23:48:51]save OK [23:48:51]Clear old archive folders... [23:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:48:51]tlvbuf is 00D78940 [23:48:51]SAM_PROTO_ClearQueue [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 09 00 00 [23:48:51]Write to MH i2c: E2 08 00 E6 34 80 09 00 00 00 00 00 00 8C [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 E6 34 00 90 00 8E [23:48:51]RAPDU: 90 00 [23:48:51]wFMCommunicate OK [23:48:51]SAM_PROTO_ClearQueue done [23:48:51]KKMCreateOFDPacket [23:48:51]OFDProtocolAddRootSTLVToBuf [23:48:51]FM_MakeSignedData [23:48:51]FM_MakeSignedData [23:48:51]SAM_PROTO_SignData [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 0D 01 02 [23:48:51]Write to MH i2c: E2 08 00 E7 34 80 0D 01 02 00 00 00 00 94 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 E7 34 00 90 00 8F [23:48:51]RAPDU: 90 00 [23:48:51]wFMCommunicate OK [23:48:51]wFMCommunicate request_size=255 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 AB 01 00 00 F4 03 04 00 E3 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 13 01 00 35 04 06 00 73 DA [23:48:51]Write to MH i2c: E2 02 01 E8 34 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 AB 01 00 00 F4 03 04 00 E3 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 13 01 00 35 04 06 00 73 DA 00 00 B2 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [23:48:51]RAPDU: 90 00 [23:48:51]wFMCommunicate OK [23:48:51]wFMCommunicate request_size=9 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 0D 02 02 04 FC 10 77 70 [23:48:51]Write to MH i2c: E2 0C 00 E9 34 80 0D 02 02 04 00 FC 10 77 70 00 00 92 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [23:48:51]RAPDU: 90 00 [23:48:51]wFMCommunicate OK [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 0D 03 02 [23:48:51]Write to MH i2c: E2 08 00 EA 34 80 0D 03 02 00 00 00 00 99 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 0B 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 0B 00 EA 34 00 EC 99 EF 64 8A 70 CC 06 90 00 3E [23:48:51]RAPDU: EC 99 EF 64 8A 70 CC 06 90 00 [23:48:51]wFMCommunicate OK [23:48:51]SAM_PROTO_SignData done [23:48:51]FM_MakeSignedData done [23:48:51]CreateOFDProtocolMessage [23:48:51]wFMCommunicate request_size=4 [23:48:51]MH_SAM_APDU [23:48:51]CAPDU: 80 11 00 00 [23:48:51]Write to MH i2c: E2 08 00 EB 34 80 11 00 00 00 00 00 00 99 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:51]Read from MH i2c: E2 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 17 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: E2 17 00 EB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [23:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:51]wFMCommunicate OK [23:48:51]CreateOFDProtocolMessage done [23:48:51]OFDSenderStorePacket 70479 [23:48:51]StoreOFDPacket docnum=70479 [23:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 21 A9 06 01 BF C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 AB 01 00 00 F4 03 04 00 E3 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 13 01 00 35 04 06 00 73 DA FC 10 77 70 EC 99 EF 64 8A 70 CC 06 [23:48:51]CheckFolder [23:48:51]dirname=/storage/ofd_packets [23:48:51]CheckFolder done [23:48:51]ProducePacketName [23:48:51]name=ofd_packets/00070479 [23:48:51]NVStorageSaveData ofd_packets/00070479 [23:48:51]File name is /storage/ofd_packets/00070479 [23:48:51]Write 300 bytes [23:48:51]NVStorageSaveData done [23:48:51]OFDSenderStorePacket done [23:48:51]KKMCreateOFDPacket done [23:48:51]NVStorageSaveData kkm_last_timestamp [23:48:51]File name is /storage/kkm_last_timestamp [23:48:51]Write 4 bytes [23:48:51]NVStorageSaveData done [23:48:51]ExternCall_PrintAddStr [23:48:51]wPrintStart [23:48:51]Write to MH i2c: 01 00 00 EC 34 20 [23:48:51]Write i2c OK [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: 01 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: 01 07 00 [23:48:51]MH_I2C_Read... [23:48:51]Read from MH i2c: 01 07 00 EC 34 00 00 00 00 00 FF 0F 35 [23:48:51]RasterBufferAndPrint [23:48:51]line Счет N : (1)2886248 [23:48:51]line ИНН: 02508201610067 [23:48:51]line Контрольно-Кассовый Чек [23:48:51]line ПРОДАЖА [23:48:51]line ТРК (МРК, ГНК) : 71 [23:48:51]line Товар: 2711129700 [23:48:51]line ГАЗ-К-3 [23:48:51]line 25.710 * 38.90 [23:48:51]line = 1000.12 [23:48:51]line НДС 12% НСП 1% [23:48:51]line > о реализуемом товаре [23:48:51]line ОКРУГЛЕНИЕ: -0.12 [23:48:51]line ИТОГО: 1000.00 [23:48:51]line Внесено: 1000.00 [23:48:51]line СДАЧА: 0.00 [23:48:51]line НСП 1% : 8.85 [23:48:51]line НДС 12% : 106.21 [23:48:51]line Наличными: 1000.00 [23:48:51]line Безнал.: 0.00 [23:48:51]line Место: АЗС № 85 "Партнер Нефть" [23:48:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:48:51]line СНО: Общий режим [23:48:51]line Чек 427 22.10.2024 23:48 [23:48:51]line Смена: 195 ФФД: 1.0 [23:48:51]line ЗНМ: 0300000167 [23:48:51]line РНМ: 0000000000156251 [23:48:51]line Версия ККМ: v1.0 [23:48:51]line ФМ: 0000000000963346 [23:48:51]line ФД: 70479 [23:48:51]line ФПД: 127384369002352 [23:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70479&fm=127384369002352&tin=02508201610067®Number=0000000000156251&sum=100000 [23:48:51]OFD Sender: Processing packet 70479 [packets to send 18, broken 17] [23:48:51]ProducePacketName [23:48:51]name=ofd_packets/00070479 [23:48:51]OFD Sender: To server: pG, [23:48:51]CommunicateWithHost lk.salyk.kg:30040 [23:48:51]ConnectInit lk.salyk.kg [23:48:51]written 0, free lines is 4095 [23:48:51]Connected sock=9 [23:48: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 34 36 0E 01 00 00 21 A9 06 01 BF C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 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 AB 01 00 00 F4 03 04 00 E3 39 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 13 01 00 35 04 06 00 73 DA FC 10 77 70 EC 99 EF 64 8A 70 CC 06 [23:48: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 34 36 4F 00 00 00 E5 A5 47 00 4F 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 34 36 10 04 04 00 4F 13 01 00 F4 03 04 00 83 E3 17 67 B6 04 01 00 00 8B 0F 9A 56 FB CA 3C B3 [23:48:52]CommunicateWithHost err = 0 [23:48:52]CheckOFDResponse [23:48:52]1017 (14) - 77093643461234 [23:48:52]1041 (16) - 0000000000963346 [23:48:52]1040 (4) - 70479 [23:48:52]1012 (4) - 22.10.2024 17:40 [23:48:52]1206 (1) - 0 [23:48:52]OFD Sender: Remove packet 70479 [23:48:52]ProducePacketName [23:48:52]name=ofd_packets/00070479 [23:48:52]NVStorageDeleteData [23:48:52]Write to MH i2c: 01 00 00 17 35 4C [23:48:52]Write i2c OK [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: 01 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: 01 07 00 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: 01 07 00 17 35 00 00 00 00 00 F8 0C 57 [23:48:52]RasterBufferAndPrint [23:48:52]line [23:48:52]line [23:48:52]line [23:48:52]line [23:48:52]line [23:48:52]written 0, free lines is 3330 [23:48:52]MH_Cut [23:48:52]Write to MH i2c: D1 01 00 1E 35 01 25 [23:48:52]Write i2c OK [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: D1 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: D1 01 00 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: D1 01 00 1E 35 00 24 [23:48:52]Write to MH i2c: 01 00 00 1F 35 54 [23:48:52]Write i2c OK [23:48:52]MH_I2C_Read... [23:48:52]OFD Sender: No OFD packet to send [23:48:53]*** Cut start [23:48:53]*** Partial cut [23:48:53]*** CUTSNS_PIN = 1 [23:48:53]*** CUTSNS_PIN = 0 [23:48:53]*** Brake cut motor [23:48:53]Read from MH i2c: 01 [23:48:53]MH_I2C_Read... [23:48:53]*** Stop cut motor [23:48:53]*** Cut end [23:48:53]Read from MH i2c: 01 07 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: 01 07 00 1F 35 00 00 00 00 00 FF 0F 69 [23:48:53]process_action close_receipt done [23:48:53]requested_data is exist [23:48:53]produce_requested_data [23:48:53]requested_item fm.sn is exist - process it [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 11 00 00 [23:48:53]Write to MH i2c: E2 08 00 20 35 80 11 00 00 00 00 00 00 CF [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 20 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [23:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:53]wFMCommunicate OK [23:48:53]requested_item fd.num is exist - process it [23:48:53]SAM_PROTO_GetFieldsCounters [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 00 00 [23:48:53]Write to MH i2c: E2 08 00 21 35 80 13 00 00 00 00 00 00 D2 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 62 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 62 00 21 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [23:48: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_GetFieldsCounters done [23:48:53]requested_item shift.num is exist - process it [23:48:53]requested_item shift.opened is exist - process it [23:48:53]req_shift_opened [23:48:53]FM_GetShiftState [23:48:53]SAM_PROTO_GetShiftState [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 01 00 [23:48:53]Write to MH i2c: E2 08 00 22 35 80 13 01 00 00 00 00 00 D4 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 22 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [23:48:53]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_GetShiftState done [23:48:53]FM_GetShiftState done [23:48:53]req_shift_opened done [23:48:53]requested_item shift.open_date is exist - process it [23:48:53]req_shift_open_date [23:48:53]req_shift_open_date done [23:48:53]produce_requested_data done [23:48:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70479,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:48:53]process_action_free close_receipt [23:48:53]json_value_free [23:48:53]json_value_free done [23:48:53]process_json_proto returns [23:48:53]Send response to host [23:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70479,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:48:53]free response buf [23:48:53]execute_script done [23:48:53]execute_script returns [23:48:53]free content buf [23:48:53]Sock 7.Close socket [23:48:53]Sock 7.Thread stoped [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]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:33]int [23:49:33]Write to MH i2c: 01 00 00 23 35 58 [23:49:33]*** FLAG_PRN_PAP1 set [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 23 35 00 01 00 00 00 FF 0F 6E [23:49:33]state=0 [23:49:33]No paper [23:49:33]int [23:49:33]Write to MH i2c: 01 00 00 24 35 59 [23:49:33]*** FLAG_PRN_PAP2 set [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 24 35 00 03 00 00 00 FF 0F 71 [23:49:33]state=0 [23:49:33]No paper [23:49:33]Cover opened [23:49:37]OFD Sender: No OFD packet to send [23:49:38]Write to MH i2c: 01 00 00 25 35 5A [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 25 35 00 03 00 00 00 FF 0F 72 [23:49:38]state=3 [23:49:38]No paper [23:49:38]Cover opened [23:49:38]int [23:49:38]Write to MH i2c: 01 00 00 26 35 5B [23:49:38]*** FLAG_PRN_PAP2 reset [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 26 35 00 01 00 00 00 FF 0F 71 [23:49:38]state=3 [23:49:38]No paper [23:49:38]Cover closed [23:49:38]int [23:49:38]Write to MH i2c: 01 00 00 27 35 5C [23:49:38]*** FLAG_PRN_PAP2 set [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 27 35 00 03 00 00 00 FF 0F 74 [23:49:38]state=0 [23:49:38]No paper [23:49:38]Cover opened [23:49:38]int [23:49:38]Write to MH i2c: 01 00 00 28 35 5D [23:49:38]*** FLAG_PRN_PAP2 reset [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 28 35 00 01 00 00 00 FF 0F 73 [23:49:38]state=3 [23:49:38]No paper [23:49:38]Cover closed [23:49:39]int [23:49:39]Write to MH i2c: 01 00 00 29 35 5E [23:49:39]*** FLAG_PRN_PAP1 reset [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 07 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 FF 0F 73 [23:49:39]state=0 [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]accept exits with 10 [23:50:22]New connection [23:50:22]New thread 3066555748 created [23:50:22]Thread 3066699108 joined [23:50:22]Waiting for new connection... [23:50:22] Sock 10.Parse request [23:50:22]Sock 10.Check first char [23:50:22]Sock 10.First char is OK [23:50:22]request: POST /json_proto HTTP/1.0 [23:50:22]Method: POST [23:50:22]URL: /json_proto [23:50:22]Method is POST - this is cgi request [23:50:22]url: /json_proto [23:50:22]query_string will be loaded in cgi processing [23:50:22]execute_cgi json_proto POST (null) [23:50:22]execute_cgi path=json_proto method=POST [23:50:22]POST find Content-Length [23:50:22]Host: 172.17.50.3:8080 [23:50:22]Content-Length: 678 [23:50:22]Content-Type: application/json [23:50:22] [23:50:22]POST finish read [23:50:22]Found Content-Length = 678 [23:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [23:50:22]execute_script... [23:50: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)2886249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [23:50:22]POST & json_proto [23:50:22]process_json_proto [23:50:22]json parsed OK: [23:50:22]protocol is kg_v1.0 [23:50:22]action value=close_receipt [23:50:22]process_action close_receipt [23:50:22]cmd_close_receipt [23:50:22]MH_GetDate [23:50:22]Write to MH i2c: F0 00 00 2A 35 4E [23:50:22]Write i2c OK [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: F0 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: F0 09 00 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: F0 09 00 2A 35 00 3F 3A 18 67 6B 98 1E 66 D6 [23:50:22]GetLastDocTimeStamp 1729640931 [23:50:22]current date 1729641023 [23:50:22]FM_GetShiftState [23:50:22]SAM_PROTO_GetShiftState [23:50:22]wFMCommunicate request_size=4 [23:50:22]MH_SAM_APDU [23:50:22]CAPDU: 80 13 01 00 [23:50:22]Write to MH i2c: E2 08 00 2B 35 80 13 01 00 00 00 00 00 DD [23:50:22]Write i2c OK [23:50:22]MH_I2C_Read... [23:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:22]Read from MH i2c: E2 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 0E 00 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 0E 00 2B 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CB [23:50:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:50:22]wFMCommunicate OK [23:50:22]SAM_PROTO_GetShiftState done [23:50:22]FM_GetShiftState done [23:50:22]opened in 1729555832 [23:50:22]opened+sec_in_day 1729642232 [23:50:22]quantity*price = 50010 [23:50:22]sum+1 = 50012 [23:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 428 22.10.2024 23:50 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70480 ФПД: 183444227135403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70480&fm=183444227135403&tin=02508201610067®Number=0000000000156251&sum=50000 [23:50:23]StoreToDocumentArchive [23:50:23]shift 195 fd 70480 [23:50:23]save to /storage/0195/doc_00070480 [23:50:23]save last doc name /storage/0195/doc_00070480 to /storage/kkm_last_doc_name [23:50:23]save OK [23:50:23]Clear old archive folders... [23:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:23]tlvbuf is 00EA5000 [23:50:23]SAM_PROTO_ClearQueue [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 09 00 00 [23:50:23]Write to MH i2c: E2 08 00 38 35 80 09 00 00 00 00 00 00 DF [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 38 35 00 90 00 E1 [23:50:23]RAPDU: 90 00 [23:50:23]wFMCommunicate OK [23:50:23]SAM_PROTO_ClearQueue done [23:50:23]KKMCreateOFDPacket [23:50:23]OFDProtocolAddRootSTLVToBuf [23:50:23]FM_MakeSignedData [23:50:23]FM_MakeSignedData [23:50:23]SAM_PROTO_SignData [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 0D 01 02 [23:50:23]Write to MH i2c: E2 08 00 39 35 80 0D 01 02 00 00 00 00 E7 [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 39 35 00 90 00 E2 [23:50:23]RAPDU: 90 00 [23:50:23]wFMCommunicate OK [23:50:23]wFMCommunicate request_size=255 [23:50:23]MH_SAM_APDU [23:50: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 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 AC 01 00 00 F4 03 04 00 40 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 13 01 00 35 04 06 00 A6 [23:50:23]Write to MH i2c: E2 02 01 3A 35 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 AC 01 00 00 F4 03 04 00 40 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 13 01 00 35 04 06 00 A6 00 00 BB [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 3A 35 00 90 00 E3 [23:50:23]RAPDU: 90 00 [23:50:23]wFMCommunicate OK [23:50:23]wFMCommunicate request_size=10 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 0D 02 02 05 D7 6F FE 97 AB [23:50:23]Write to MH i2c: E2 0D 00 3B 35 80 0D 02 02 05 00 D7 6F FE 97 AB 00 00 7A [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [23:50:23]RAPDU: 90 00 [23:50:23]wFMCommunicate OK [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 0D 03 02 [23:50:23]Write to MH i2c: E2 08 00 3C 35 80 0D 03 02 00 00 00 00 EC [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 0B 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 0B 00 3C 35 00 03 12 04 58 E7 D9 9A CF 90 00 87 [23:50:23]RAPDU: 03 12 04 58 E7 D9 9A CF 90 00 [23:50:23]wFMCommunicate OK [23:50:23]SAM_PROTO_SignData done [23:50:23]FM_MakeSignedData done [23:50:23]CreateOFDProtocolMessage [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 11 00 00 [23:50:23]Write to MH i2c: E2 08 00 3D 35 80 11 00 00 00 00 00 00 EC [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 17 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 17 00 3D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [23:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:50:23]wFMCommunicate OK [23:50:23]CreateOFDProtocolMessage done [23:50:23]OFDSenderStorePacket 70480 [23:50:23]StoreOFDPacket docnum=70480 [23:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A CA 07 01 CA 1F 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 AC 01 00 00 F4 03 04 00 40 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 13 01 00 35 04 06 00 A6 D7 6F FE 97 AB 03 12 04 58 E7 D9 9A CF [23:50:23]CheckFolder [23:50:23]dirname=/storage/ofd_packets [23:50:23]CheckFolder done [23:50:23]ProducePacketName [23:50:23]name=ofd_packets/00070480 [23:50:23]NVStorageSaveData ofd_packets/00070480 [23:50:23]File name is /storage/ofd_packets/00070480 [23:50:23]Write 301 bytes [23:50:23]NVStorageSaveData done [23:50:23]OFDSenderStorePacket done [23:50:23]KKMCreateOFDPacket done [23:50:23]NVStorageSaveData kkm_last_timestamp [23:50:23]File name is /storage/kkm_last_timestamp [23:50:23]Write 4 bytes [23:50:23]NVStorageSaveData done [23:50:23]ExternCall_PrintAddStr [23:50:23]wPrintStart [23:50:23]Write to MH i2c: 01 00 00 3E 35 73 [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: 01 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: 01 07 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: 01 07 00 3E 35 00 00 00 00 00 FF 0F 88 [23:50:23]RasterBufferAndPrint [23:50:23]line Счет N : (1)2886249 [23:50:23]line ИНН: 02508201610067 [23:50:23]line Контрольно-Кассовый Чек [23:50:23]line ПРОДАЖА [23:50:23]line ТРК (МРК, ГНК) : 43 [23:50:23]line Товар: 2710124500 [23:50:23]line Аи-95-К-5 [23:50:23]line 6.740 * 74.20 [23:50:23]line = 500.11 [23:50:23]line НДС 12% НСП 1% [23:50:23]line > о реализуемом товаре [23:50:23]line ОКРУГЛЕНИЕ: -0.11 [23:50:23]line ИТОГО: 500.00 [23:50:23]line Внесено: 500.00 [23:50:23]line СДАЧА: 0.00 [23:50:23]line НСП 1% : 4.43 [23:50:23]line НДС 12% : 53.11 [23:50:23]line Наличными: 500.00 [23:50:23]line Безнал.: 0.00 [23:50:23]line Место: АЗС № 85 "Партнер Нефть" [23:50:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:50:23]line СНО: Общий режим [23:50:23]line Чек 428 22.10.2024 23:50 [23:50:23]line Смена: 195 ФФД: 1.0 [23:50:23]line ЗНМ: 0300000167 [23:50:23]line РНМ: 0000000000156251 [23:50:23]line Версия ККМ: v1.0 [23:50:23]line ФМ: 0000000000963346 [23:50:23]line ФД: 70480 [23:50:23]line ФПД: 183444227135403 [23:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70480&fm=183444227135403&tin=02508201610067®Number=0000000000156251&sum=50000 [23:50:24]OFD Sender: Processing packet 70480 [packets to send 18, broken 17] [23:50:24]ProducePacketName [23:50:24]name=ofd_packets/00070480 [23:50:24]OFD Sender: To server: pG, [23:50:24]CommunicateWithHost lk.salyk.kg:30040 [23:50:24]ConnectInit lk.salyk.kg [23:50:24]written 0, free lines is 4095 [23:50:24]Connected sock=9 [23:50: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 34 36 0F 01 00 00 4A CA 07 01 CA 1F 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 AC 01 00 00 F4 03 04 00 40 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 13 01 00 35 04 06 00 A6 D7 6F FE 97 AB 03 12 04 58 E7 D9 9A CF [23:50: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 34 36 4F 00 00 00 A7 CA 47 00 ED 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 34 36 10 04 04 00 50 13 01 00 F4 03 04 00 DF E3 17 67 B6 04 01 00 00 0F F9 25 DB 03 08 4F A1 [23:50:24]CommunicateWithHost err = 0 [23:50:24]CheckOFDResponse [23:50:24]1017 (14) - 77093643461234 [23:50:24]1041 (16) - 0000000000963346 [23:50:24]1040 (4) - 70480 [23:50:24]1012 (4) - 22.10.2024 17:41 [23:50:24]1206 (1) - 0 [23:50:24]OFD Sender: Remove packet 70480 [23:50:24]ProducePacketName [23:50:24]name=ofd_packets/00070480 [23:50:24]NVStorageDeleteData [23:50:24]Write to MH i2c: 01 00 00 69 35 9E [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: 01 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: 01 07 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 F4 0C A5 [23:50:24]RasterBufferAndPrint [23:50:24]line [23:50:24]line [23:50:24]line [23:50:24]line [23:50:24]line [23:50:24]written 0, free lines is 3326 [23:50:24]MH_Cut [23:50:24]Write to MH i2c: D1 01 00 70 35 01 77 [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: D1 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: D1 01 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: D1 01 00 70 35 00 76 [23:50:24]Write to MH i2c: 01 00 00 71 35 A6 [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]OFD Sender: No OFD packet to send [23:50:25]*** Cut start [23:50:25]*** Partial cut [23:50:25]*** CUTSNS_PIN = 1 [23:50:25]*** CUTSNS_PIN = 0 [23:50:25]*** Brake cut motor [23:50:25]Read from MH i2c: 01 [23:50:25]MH_I2C_Read... [23:50:25]*** Stop cut motor [23:50:25]*** Cut end [23:50:25]Read from MH i2c: 01 07 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: 01 07 00 71 35 00 00 00 00 00 FF 0F BB [23:50:25]process_action close_receipt done [23:50:25]requested_data is exist [23:50:25]produce_requested_data [23:50:25]requested_item fm.sn is exist - process it [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 11 00 00 [23:50:25]Write to MH i2c: E2 08 00 72 35 80 11 00 00 00 00 00 00 21 [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:25]Read from MH i2c: E2 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 17 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 17 00 72 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [23:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:50:25]wFMCommunicate OK [23:50:25]requested_item fd.num is exist - process it [23:50:25]SAM_PROTO_GetFieldsCounters [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 13 00 00 [23:50:25]Write to MH i2c: E2 08 00 73 35 80 13 00 00 00 00 00 00 24 [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 62 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 62 00 73 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [23:50: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:26]wFMCommunicate OK [23:50:26]SAM_PROTO_GetFieldsCounters done [23:50:26]requested_item shift.num is exist - process it [23:50:26]requested_item shift.opened is exist - process it [23:50:26]req_shift_opened [23:50:26]FM_GetShiftState [23:50:26]SAM_PROTO_GetShiftState [23:50:26]wFMCommunicate request_size=4 [23:50:26]MH_SAM_APDU [23:50:26]CAPDU: 80 13 01 00 [23:50:26]Write to MH i2c: E2 08 00 74 35 80 13 01 00 00 00 00 00 26 [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 0E 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 0E 00 74 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 14 [23:50:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:50:26]wFMCommunicate OK [23:50:26]SAM_PROTO_GetShiftState done [23:50:26]FM_GetShiftState done [23:50:26]req_shift_opened done [23:50:26]requested_item shift.open_date is exist - process it [23:50:26]req_shift_open_date [23:50:26]req_shift_open_date done [23:50:26]produce_requested_data done [23:50:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70480,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:50:26]process_action_free close_receipt [23:50:26]json_value_free [23:50:26]json_value_free done [23:50:26]process_json_proto returns [23:50:26]Send response to host [23:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70480,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:50:26]free response buf [23:50:26]execute_script done [23:50:26]execute_script returns [23:50:26]free content buf [23:50:26]Sock 10.Close socket [23:50:26]Sock 10.Thread stoped [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:45]accept exits with 7 [23:52:45]New connection [23:52:45]New thread 3066699108 created [23:52:45]Thread 3066555748 joined [23:52:45]Waiting for new connection... [23:52:45] Sock 7.Parse request [23:52:45]Sock 7.Check first char [23:52:45]Sock 7.First char is OK [23:52:45]request: POST /json_proto HTTP/1.0 [23:52:45]Method: POST [23:52:45]URL: /json_proto [23:52:45]Method is POST - this is cgi request [23:52:45]url: /json_proto [23:52:45]query_string will be loaded in cgi processing [23:52:45]execute_cgi json_proto POST (null) [23:52:45]execute_cgi path=json_proto method=POST [23:52:45]POST find Content-Length [23:52:45]Host: 172.17.50.3:8080 [23:52:45]Content-Length: 773 [23:52:45]Content-Type: application/json [23:52:45] [23:52:45]POST finish read [23:52:45]Found Content-Length = 773 [23:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:45]execute_script... [23:52: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)2886250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:45]POST & json_proto [23:52:45]process_json_proto [23:52:45]json parsed OK: [23:52:45]protocol is kg_v1.0 [23:52:45]action value=close_receipt [23:52:45]process_action close_receipt [23:52:45]cmd_close_receipt [23:52:45]MH_GetDate [23:52:45]Write to MH i2c: F0 00 00 75 35 99 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: F0 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: F0 09 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: F0 09 00 75 35 00 CF 3A 18 67 6B 98 1E 66 B1 [23:52:45]GetLastDocTimeStamp 1729641024 [23:52:45]current date 1729641167 [23:52:45]FM_GetShiftState [23:52:45]SAM_PROTO_GetShiftState [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 13 01 00 [23:52:45]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 0E 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 16 [23:52:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:52:45]wFMCommunicate OK [23:52:45]SAM_PROTO_GetShiftState done [23:52:45]FM_GetShiftState done [23:52:45]opened in 1729555832 [23:52:45]opened+sec_in_day 1729642232 [23:52:45]quantity*price = 100011 [23:52:45]sum+1 = 100013 [23:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 429 22.10.2024 23:52 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70481 ФПД: 229582994644049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70481&fm=229582994644049&tin=02508201610067®Number=0000000000156251&sum=100012 [23:52:46]StoreToDocumentArchive [23:52:46]shift 195 fd 70481 [23:52:46]save to /storage/0195/doc_00070481 [23:52:46]save last doc name /storage/0195/doc_00070481 to /storage/kkm_last_doc_name [23:52:46]save OK [23:52:46]Clear old archive folders... [23:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:52:46]tlvbuf is 00EA5860 [23:52:46]SAM_PROTO_ClearQueue [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 09 00 00 [23:52:46]Write to MH i2c: E2 08 00 83 35 80 09 00 00 00 00 00 00 2A [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 83 35 00 90 00 2C [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]SAM_PROTO_ClearQueue done [23:52:46]KKMCreateOFDPacket [23:52:46]OFDProtocolAddRootSTLVToBuf [23:52:46]FM_MakeSignedData [23:52:46]FM_MakeSignedData [23:52:46]SAM_PROTO_SignData [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 01 02 [23:52:46]Write to MH i2c: E2 08 00 84 35 80 0D 01 02 00 00 00 00 32 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 84 35 00 90 00 2D [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=255 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CF 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 13 01 00 35 04 06 00 D0 CD [23:52:46]Write to MH i2c: E2 02 01 85 35 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CF 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 13 01 00 35 04 06 00 D0 CD 00 00 A9 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=9 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 02 02 04 F4 D7 9C 51 [23:52:46]Write to MH i2c: E2 0C 00 86 35 80 0D 02 02 04 00 F4 D7 9C 51 00 00 F5 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 03 02 [23:52:46]Write to MH i2c: E2 08 00 87 35 80 0D 03 02 00 00 00 00 37 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 0B 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 0B 00 87 35 00 A7 1E 96 81 4A FA E9 45 90 00 86 [23:52:46]RAPDU: A7 1E 96 81 4A FA E9 45 90 00 [23:52:46]wFMCommunicate OK [23:52:46]SAM_PROTO_SignData done [23:52:46]FM_MakeSignedData done [23:52:46]CreateOFDProtocolMessage [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 11 00 00 [23:52:46]Write to MH i2c: E2 08 00 88 35 80 11 00 00 00 00 00 00 37 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 17 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 17 00 88 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [23:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:52:46]wFMCommunicate OK [23:52:46]CreateOFDProtocolMessage done [23:52:46]OFDSenderStorePacket 70481 [23:52:46]StoreOFDPacket docnum=70481 [23:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 3B FB 06 01 B6 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CF 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 13 01 00 35 04 06 00 D0 CD F4 D7 9C 51 A7 1E 96 81 4A FA E9 45 [23:52:46]CheckFolder [23:52:46]dirname=/storage/ofd_packets [23:52:46]CheckFolder done [23:52:46]ProducePacketName [23:52:46]name=ofd_packets/00070481 [23:52:46]NVStorageSaveData ofd_packets/00070481 [23:52:46]File name is /storage/ofd_packets/00070481 [23:52:46]Write 300 bytes [23:52:46]NVStorageSaveData done [23:52:46]OFDSenderStorePacket done [23:52:46]KKMCreateOFDPacket done [23:52:46]NVStorageSaveData kkm_last_timestamp [23:52:46]File name is /storage/kkm_last_timestamp [23:52:46]Write 4 bytes [23:52:46]NVStorageSaveData done [23:52:46]ExternCall_PrintAddStr [23:52:46]wPrintStart [23:52:46]Write to MH i2c: 01 00 00 89 35 BE [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 07 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 07 00 89 35 00 00 00 00 00 FF 0F D3 [23:52:46]RasterBufferAndPrint [23:52:46]line Счет N : (1)2886250 [23:52:46]line ИНН: 02508201610067 [23:52:46]line Контрольно-Кассовый Чек [23:52:46]line ПРОДАЖА [23:52:46]line ТРК (МРК, ГНК) : 71 [23:52:46]line Товар: 2711129700 [23:52:46]line ГАЗ-К-3 [23:52:46]line 25.710 * 38.90 [23:52:46]line = 1000.12 [23:52:46]line НДС 12% НСП 1% [23:52:46]line > о реализуемом товаре [23:52:46]line ИТОГО: 1000.12 [23:52:46]line НСП 1% : 8.85 [23:52:46]line НДС 12% : 106.21 [23:52:46]line Наличными: 0.00 [23:52:46]line Безнал.: 1000.12 [23:52:46]line Место: АЗС № 85 "Партнер Нефть" [23:52:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:52:46]line СНО: Общий режим [23:52:46]line Чек 429 22.10.2024 23:52 [23:52:46]line Смена: 195 ФФД: 1.0 [23:52:46]line ЗНМ: 0300000167 [23:52:46]line РНМ: 0000000000156251 [23:52:46]line Версия ККМ: v1.0 [23:52:46]line Платежная система: Mbank [23:52:46]line ФМ: 0000000000963346 [23:52:46]line ФД: 70481 [23:52:46]line ФПД: 229582994644049 [23:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70481&fm=229582994644049&tin=02508201610067®Number=0000000000156251&sum=100012 [23:52:47]OFD Sender: Processing packet 70481 [packets to send 18, broken 17] [23:52:47]ProducePacketName [23:52:47]name=ofd_packets/00070481 [23:52:47]OFD Sender: To server: pG, [23:52:47]CommunicateWithHost lk.salyk.kg:30040 [23:52:47]ConnectInit lk.salyk.kg [23:52:47]written 0, free lines is 4095 [23:52:47]Connected sock=10 [23:52: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 34 36 0E 01 00 00 3B FB 06 01 B6 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CF 3A 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 13 01 00 35 04 06 00 D0 CD F4 D7 9C 51 A7 1E 96 81 4A FA E9 45 [23:52: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 34 36 4F 00 00 00 B1 67 47 00 51 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 34 36 10 04 04 00 51 13 01 00 F4 03 04 00 6E E4 17 67 B6 04 01 00 00 EE 9C 7B FF 4D 73 B0 43 [23:52:47]CommunicateWithHost err = 0 [23:52:47]CheckOFDResponse [23:52:47]1017 (14) - 77093643461234 [23:52:47]1041 (16) - 0000000000963346 [23:52:47]1040 (4) - 70481 [23:52:47]1012 (4) - 22.10.2024 17:44 [23:52:47]1206 (1) - 0 [23:52:47]OFD Sender: Remove packet 70481 [23:52:47]ProducePacketName [23:52:47]name=ofd_packets/00070481 [23:52:47]NVStorageDeleteData [23:52:47]Write to MH i2c: 01 00 00 B2 35 E7 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 07 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 07 00 B2 35 00 00 00 00 00 26 0D 21 [23:52:47]RasterBufferAndPrint [23:52:47]line [23:52:47]line [23:52:47]line [23:52:47]line [23:52:47]line [23:52:47]written 0, free lines is 3372 [23:52:47]MH_Cut [23:52:47]Write to MH i2c: D1 01 00 B9 35 01 C0 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: D1 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: D1 01 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: D1 01 00 B9 35 00 BF [23:52:47]Write to MH i2c: 01 00 00 BA 35 EF [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:48]OFD Sender: No OFD packet to send [23:52:48]*** Cut start [23:52:48]*** Partial cut [23:52:48]*** CUTSNS_PIN = 1 [23:52:48]*** CUTSNS_PIN = 0 [23:52:48]*** Brake cut motor [23:52:49]Read from MH i2c: 01 [23:52:49]MH_I2C_Read... [23:52:49]*** Stop cut motor [23:52:49]*** Cut end [23:52:49]Read from MH i2c: 01 07 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: 01 07 00 BA 35 00 00 00 00 00 FF 0F 04 [23:52:49]process_action close_receipt done [23:52:49]requested_data is exist [23:52:49]produce_requested_data [23:52:49]requested_item fm.sn is exist - process it [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 11 00 00 [23:52:49]Write to MH i2c: E2 08 00 BB 35 80 11 00 00 00 00 00 00 6A [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 17 00 [23:52:49]MH_I2C_Read... [23:52:49]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 34 36 90 00 BC [23:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:52:49]wFMCommunicate OK [23:52:49]requested_item fd.num is exist - process it [23:52:49]SAM_PROTO_GetFieldsCounters [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 00 00 [23:52:49]Write to MH i2c: E2 08 00 BC 35 80 13 00 00 00 00 00 00 6D [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 62 00 [23:52:49]MH_I2C_Read... [23:52:49]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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [23:52: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetFieldsCounters done [23:52:49]requested_item shift.num is exist - process it [23:52:49]requested_item shift.opened is exist - process it [23:52:49]req_shift_opened [23:52:49]FM_GetShiftState [23:52:49]SAM_PROTO_GetShiftState [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 01 00 [23:52:49]Write to MH i2c: E2 08 00 BD 35 80 13 01 00 00 00 00 00 6F [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 BD 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [23:52:49]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetShiftState done [23:52:49]FM_GetShiftState done [23:52:49]req_shift_opened done [23:52:49]requested_item shift.open_date is exist - process it [23:52:49]req_shift_open_date [23:52:49]req_shift_open_date done [23:52:49]produce_requested_data done [23:52:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70481,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:52:49]process_action_free close_receipt [23:52:49]json_value_free [23:52:49]json_value_free done [23:52:49]process_json_proto returns [23:52:49]Send response to host [23:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70481,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:52:49]free response buf [23:52:49]execute_script done [23:52:49]execute_script returns [23:52:49]free content buf [23:52:49]Sock 7.Close socket [23:52:49]Sock 7.Thread stoped [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:22]accept exits with 9 [23:59:22]New connection [23:59:22]New thread 3066555748 created [23:59:22]Thread 3066699108 joined [23:59:22]Waiting for new connection... [23:59:22] Sock 9.Parse request [23:59:22]Sock 9.Check first char [23:59:22]Sock 9.First char is OK [23:59:22]request: POST /json_proto HTTP/1.0 [23:59:22]Method: POST [23:59:22]URL: /json_proto [23:59:22]Method is POST - this is cgi request [23:59:22]url: /json_proto [23:59:22]query_string will be loaded in cgi processing [23:59:22]execute_cgi json_proto POST (null) [23:59:22]execute_cgi path=json_proto method=POST [23:59:22]POST find Content-Length [23:59:22]Host: 172.17.50.3:8080 [23:59:22]Content-Length: 680 [23:59:22]Content-Type: application/json [23:59:22] [23:59:22]POST finish read [23:59:22]Found Content-Length = 680 [23:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886251", "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" : 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" ] } } [23:59:22]execute_script... [23:59: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)2886251", "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" : 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" ] } } [23:59:22]POST & json_proto [23:59:22]process_json_proto [23:59:22]json parsed OK: [23:59:22]protocol is kg_v1.0 [23:59:22]action value=close_receipt [23:59:22]process_action close_receipt [23:59:22]cmd_close_receipt [23:59:22]MH_GetDate [23:59:22]Write to MH i2c: F0 00 00 BE 35 E2 [23:59:22]Write i2c OK [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: F0 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: F0 09 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: F0 09 00 BE 35 00 5C 3C 18 67 6B 98 1E 66 89 [23:59:22]GetLastDocTimeStamp 1729641167 [23:59:22]current date 1729641564 [23:59:22]FM_GetShiftState [23:59:22]SAM_PROTO_GetShiftState [23:59:22]wFMCommunicate request_size=4 [23:59:22]MH_SAM_APDU [23:59:22]CAPDU: 80 13 01 00 [23:59:22]Write to MH i2c: E2 08 00 BF 35 80 13 01 00 00 00 00 00 71 [23:59:22]Write i2c OK [23:59:22]MH_I2C_Read... [23:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:22]Read from MH i2c: E2 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 0E 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 0E 00 BF 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [23:59:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:59:22]wFMCommunicate OK [23:59:22]SAM_PROTO_GetShiftState done [23:59:22]FM_GetShiftState done [23:59:22]opened in 1729555832 [23:59:22]opened+sec_in_day 1729642232 [23:59:22]quantity*price = 200025 [23:59:22]sum+1 = 200026 [23:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 430 22.10.2024 23:59 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70482 ФПД: 147547587339546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70482&fm=147547587339546&tin=02508201610067®Number=0000000000156251&sum=200000 [23:59:23]StoreToDocumentArchive [23:59:23]shift 195 fd 70482 [23:59:23]save to /storage/0195/doc_00070482 [23:59:23]save last doc name /storage/0195/doc_00070482 to /storage/kkm_last_doc_name [23:59:23]save OK [23:59:23]Clear old archive folders... [23:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:59:23]tlvbuf is 00C38860 [23:59:23]SAM_PROTO_ClearQueue [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 09 00 00 [23:59:23]Write to MH i2c: E2 08 00 CC 35 80 09 00 00 00 00 00 00 73 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 03 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 03 00 CC 35 00 90 00 75 [23:59:23]RAPDU: 90 00 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_ClearQueue done [23:59:23]KKMCreateOFDPacket [23:59:23]OFDProtocolAddRootSTLVToBuf [23:59:23]FM_MakeSignedData [23:59:23]FM_MakeSignedData [23:59:23]SAM_PROTO_SignData [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 0D 01 02 [23:59:23]Write to MH i2c: E2 08 00 CD 35 80 0D 01 02 00 00 00 00 7B [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 03 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [23:59:23]RAPDU: 90 00 [23:59:23]wFMCommunicate OK [23:59:23]wFMCommunicate request_size=255 [23:59:23]MH_SAM_APDU [23:59: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 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 AE 01 00 00 F4 03 04 00 5C 3C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 13 01 00 35 04 06 00 86 31 99 87 [23:59:23]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 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 AE 01 00 00 F4 03 04 00 5C 3C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 13 01 00 35 04 06 00 86 31 99 87 00 00 AE [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 03 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 03 00 CE 35 00 90 00 77 [23:59:24]RAPDU: 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=7 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 0D 02 02 02 E5 1A [23:59:24]Write to MH i2c: E2 0A 00 CF 35 80 0D 02 02 02 00 E5 1A 00 00 81 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 03 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 03 00 CF 35 00 90 00 78 [23:59:24]RAPDU: 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 0D 03 02 [23:59:24]Write to MH i2c: E2 08 00 D0 35 80 0D 03 02 00 00 00 00 80 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 0B 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 0B 00 D0 35 00 A8 00 05 87 A4 82 64 DB 90 00 1A [23:59:24]RAPDU: A8 00 05 87 A4 82 64 DB 90 00 [23:59:24]wFMCommunicate OK [23:59:24]SAM_PROTO_SignData done [23:59:24]FM_MakeSignedData done [23:59:24]CreateOFDProtocolMessage [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 11 00 00 [23:59:24]Write to MH i2c: E2 08 00 D1 35 80 11 00 00 00 00 00 00 80 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 17 00 [23:59:24]MH_I2C_Read... [23:59:24]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 34 36 90 00 D2 [23:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:59:24]wFMCommunicate OK [23:59:24]CreateOFDProtocolMessage done [23:59:24]OFDSenderStorePacket 70482 [23:59:24]StoreOFDPacket docnum=70482 [23:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1C A0 04 01 47 5C 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 AE 01 00 00 F4 03 04 00 5C 3C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 13 01 00 35 04 06 00 86 31 99 87 E5 1A A8 00 05 87 A4 82 64 DB [23:59:24]CheckFolder [23:59:24]dirname=/storage/ofd_packets [23:59:24]CheckFolder done [23:59:24]ProducePacketName [23:59:24]name=ofd_packets/00070482 [23:59:24]NVStorageSaveData ofd_packets/00070482 [23:59:24]File name is /storage/ofd_packets/00070482 [23:59:24]Write 298 bytes [23:59:24]NVStorageSaveData done [23:59:24]OFDSenderStorePacket done [23:59:24]KKMCreateOFDPacket done [23:59:24]NVStorageSaveData kkm_last_timestamp [23:59:24]File name is /storage/kkm_last_timestamp [23:59:24]Write 4 bytes [23:59:24]NVStorageSaveData done [23:59:24]ExternCall_PrintAddStr [23:59:24]wPrintStart [23:59:24]Write to MH i2c: 01 00 00 D2 35 07 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: 01 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: 01 07 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: 01 07 00 D2 35 00 00 00 00 00 FF 0F 1C [23:59:24]RasterBufferAndPrint [23:59:24]line Счет N : (1)2886251 [23:59:24]line ИНН: 02508201610067 [23:59:24]line Контрольно-Кассовый Чек [23:59:24]line ПРОДАЖА [23:59:24]line ТРК (МРК, ГНК) : 51 [23:59:24]line Товар: 2710194210 [23:59:24]line ДТ-К-5 [23:59:24]line 26.250 * 76.20 [23:59:24]line = 2000.25 [23:59:24]line НДС 12% НСП 1% [23:59:24]line > о реализуемом товаре [23:59:24]line ОКРУГЛЕНИЕ: -0.25 [23:59:24]line ИТОГО: 2000.00 [23:59:24]line Внесено: 2000.00 [23:59:24]line СДАЧА: 0.00 [23:59:24]line НСП 1% : 17.70 [23:59:24]line НДС 12% : 212.42 [23:59:24]line Наличными: 2000.00 [23:59:24]line Безнал.: 0.00 [23:59:24]line Место: АЗС № 85 "Партнер Нефть" [23:59:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:59:24]line СНО: Общий режим [23:59:24]line Чек 430 22.10.2024 23:59 [23:59:24]line Смена: 195 ФФД: 1.0 [23:59:24]line ЗНМ: 0300000167 [23:59:24]line РНМ: 0000000000156251 [23:59:24]line Версия ККМ: v1.0 [23:59:24]line ФМ: 0000000000963346 [23:59:24]line ФД: 70482 [23:59:24]line ФПД: 147547587339546 [23:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70482&fm=147547587339546&tin=02508201610067®Number=0000000000156251&sum=200000 [23:59:24]OFD Sender: Processing packet 70482 [packets to send 18, broken 17] [23:59:24]ProducePacketName [23:59:24]name=ofd_packets/00070482 [23:59:24]OFD Sender: To server: pG, [23:59:24]CommunicateWithHost lk.salyk.kg:30040 [23:59:24]ConnectInit lk.salyk.kg [23:59:24]written 0, free lines is 4095 [23:59:24]Connected sock=10 [23:59: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 34 36 0C 01 00 00 1C A0 04 01 47 5C 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 AE 01 00 00 F4 03 04 00 5C 3C 18 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 13 01 00 35 04 06 00 86 31 99 87 E5 1A A8 00 05 87 A4 82 64 DB [23: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 34 36 4F 00 00 00 6F 3E 47 00 7E 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 13 01 00 F4 03 04 00 FC E5 17 67 B6 04 01 00 00 6E 92 B3 E7 6D 22 22 80 [23:59:25]CommunicateWithHost err = 0 [23:59:25]CheckOFDResponse [23:59:25]1017 (14) - 77093643461234 [23:59:25]1041 (16) - 0000000000963346 [23:59:25]1040 (4) - 70482 [23:59:25]1012 (4) - 22.10.2024 17:50 [23:59:25]1206 (1) - 0 [23:59:25]OFD Sender: Remove packet 70482 [23:59:25]ProducePacketName [23:59:25]name=ofd_packets/00070482 [23:59:25]NVStorageDeleteData [23:59:25]Write to MH i2c: 01 00 00 FD 35 32 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: 01 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: 01 07 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: 01 07 00 FD 35 00 00 00 00 00 F4 0C 39 [23:59:25]RasterBufferAndPrint [23:59:25]line [23:59:25]line [23:59:25]line [23:59:25]line [23:59:25]line [23:59:25]written 0, free lines is 3322 [23:59:25]MH_Cut [23:59:25]Write to MH i2c: D1 01 00 04 36 01 0C [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: D1 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: D1 01 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: D1 01 00 04 36 00 0B [23:59:25]Write to MH i2c: 01 00 00 05 36 3B [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]OFD Sender: No OFD packet to send [23:59:25]*** Cut start [23:59:25]*** Partial cut [23:59:25]*** CUTSNS_PIN = 1 [23:59:25]*** CUTSNS_PIN = 0 [23:59:26]*** Brake cut motor [23:59:26]Read from MH i2c: 01 [23:59:26]MH_I2C_Read... [23:59:26]*** Stop cut motor [23:59:26]*** Cut end [23:59:26]Read from MH i2c: 01 07 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 05 36 00 00 00 00 00 FF 0F 50 [23:59:26]process_action close_receipt done [23:59:26]requested_data is exist [23:59:26]produce_requested_data [23:59:26]requested_item fm.sn is exist - process it [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 11 00 00 [23:59:26]Write to MH i2c: E2 08 00 06 36 80 11 00 00 00 00 00 00 B6 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 17 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 17 00 06 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [23:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:59:26]wFMCommunicate OK [23:59:26]requested_item fd.num is exist - process it [23:59:26]SAM_PROTO_GetFieldsCounters [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 13 00 00 [23:59:26]Write to MH i2c: E2 08 00 07 36 80 13 00 00 00 00 00 00 B9 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 62 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 62 00 07 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [23:59: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]SAM_PROTO_GetFieldsCounters done [23:59:26]requested_item shift.num is exist - process it [23:59:26]requested_item shift.opened is exist - process it [23:59:26]req_shift_opened [23:59:26]FM_GetShiftState [23:59:26]SAM_PROTO_GetShiftState [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 13 01 00 [23:59:26]Write to MH i2c: E2 08 00 08 36 80 13 01 00 00 00 00 00 BB [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 0E 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 0E 00 08 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [23:59:26]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]SAM_PROTO_GetShiftState done [23:59:26]FM_GetShiftState done [23:59:26]req_shift_opened done [23:59:26]requested_item shift.open_date is exist - process it [23:59:26]req_shift_open_date [23:59:26]req_shift_open_date done [23:59:26]produce_requested_data done [23:59:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [23:59:26]process_action_free close_receipt [23:59:26]json_value_free [23:59:26]json_value_free done [23:59:26]process_json_proto returns [23:59:26]Send response to host [23:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [23:59:26]free response buf [23:59:26]execute_script done [23:59:26]execute_script returns [23:59:26]free content buf [23:59:26]Sock 9.Close socket [23:59:26]Sock 9.Thread stoped [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:08]accept exits with 7 [00:05:08]New connection [00:05:08]New thread 3066699108 created [00:05:08]Thread 3066555748 joined [00:05:08]Waiting for new connection... [00:05:08] Sock 7.Parse request [00:05:08]Sock 7.Check first char [00:05:08]Sock 7.First char is OK [00:05:08]request: POST /json_proto HTTP/1.0 [00:05:08]Method: POST [00:05:08]URL: /json_proto [00:05:08]Method is POST - this is cgi request [00:05:08]url: /json_proto [00:05:08]query_string will be loaded in cgi processing [00:05:08]execute_cgi json_proto POST (null) [00:05:08]execute_cgi path=json_proto method=POST [00:05:08]POST find Content-Length [00:05:08]Host: 172.17.50.3:8080 [00:05:08]Content-Length: 215 [00:05:08]Content-Type: application/json [00:05:08] [00:05:08]POST finish read [00:05:08]Found Content-Length = 215 [00:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:08]execute_script... [00:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:08]POST & json_proto [00:05:08]process_json_proto [00:05:08]json parsed OK: [00:05:08]protocol is kg_v1.0 [00:05:08]action value=get_value [00:05:08]process_action get_value [00:05:08]cmd_get_value [00:05:08]process_action get_value done [00:05:08]requested_data is exist [00:05:08]produce_requested_data [00:05:08]requested_item kkm.sn is exist - process it [00:05:08]requested_item kkm.ver is exist - process it [00:05:08]requested_item fm.sn is exist - process it [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 11 00 00 [00:05:08]Write to MH i2c: E2 08 00 09 36 80 11 00 00 00 00 00 00 B9 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 17 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 17 00 09 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [00:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:05:08]wFMCommunicate OK [00:05:08]requested_item fd.num is exist - process it [00:05:08]SAM_PROTO_GetFieldsCounters [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 13 00 00 [00:05:08]Write to MH i2c: E2 08 00 0A 36 80 13 00 00 00 00 00 00 BC [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 62 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 62 00 0A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [00:05: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:08]wFMCommunicate OK [00:05:08]SAM_PROTO_GetFieldsCounters done [00:05:08]requested_item shift.num is exist - process it [00:05:08]requested_item shift.opened is exist - process it [00:05:08]req_shift_opened [00:05:08]FM_GetShiftState [00:05:08]SAM_PROTO_GetShiftState [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 13 01 00 [00:05:08]Write to MH i2c: E2 08 00 0B 36 80 13 01 00 00 00 00 00 BE [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 0E 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 0E 00 0B 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AC [00:05:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:05:08]wFMCommunicate OK [00:05:08]SAM_PROTO_GetShiftState done [00:05:08]FM_GetShiftState done [00:05:08]req_shift_opened done [00:05:08]requested_item shift.open_date is exist - process it [00:05:08]req_shift_open_date [00:05:08]req_shift_open_date done [00:05:08]produce_requested_data done [00:05:08]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:05:08]process_action_free get_value [00:05:08]json_value_free [00:05:08]json_value_free done [00:05:08]process_json_proto returns [00:05:08]Send response to host [00:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:05:08]free response buf [00:05:08]execute_script done [00:05:08]execute_script returns [00:05:08]free content buf [00:05:08]Sock 7.Close socket [00:05:08]Sock 7.Thread stoped [00:05:08]accept exits with 9 [00:05:08]New connection [00:05:08]New thread 3066555748 created [00:05:08]Thread 3066699108 joined [00:05:08]Waiting for new connection... [00:05:08] Sock 9.Parse request [00:05:08]Sock 9.Check first char [00:05:08]Sock 9.First char is OK [00:05:08]request: POST /json_proto HTTP/1.0 [00:05:08]Method: POST [00:05:08]URL: /json_proto [00:05:08]Method is POST - this is cgi request [00:05:08]url: /json_proto [00:05:08]query_string will be loaded in cgi processing [00:05:08]execute_cgi json_proto POST (null) [00:05:08]execute_cgi path=json_proto method=POST [00:05:08]POST find Content-Length [00:05:08]Host: 172.17.50.3:8080 [00:05:08]Content-Length: 331 [00:05:08]Content-Type: application/json [00:05:08] [00:05:08]POST finish read [00:05:08]Found Content-Length = 331 [00:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:08]execute_script... [00:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:08]POST & json_proto [00:05:08]process_json_proto [00:05:08]json parsed OK: [00:05:08]protocol is kg_v1.0 [00:05:08]action value=get_value [00:05:08]process_action get_value [00:05:08]cmd_get_value [00:05:08]process_action get_value done [00:05:08]requested_data is exist [00:05:08]produce_requested_data [00:05:08]requested_item fm.sale.total is exist - process it [00:05:08]SAM_PROTO_GetFMData [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 13 03 00 [00:05:08]Write to MH i2c: E2 08 00 0C 36 80 13 03 00 00 00 00 00 C1 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 0C 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 5E [00:05:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:05:09]wFMCommunicate OK [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 17 00 00 [00:05:09]Write to MH i2c: E2 08 00 0D 36 80 17 00 00 00 00 00 00 C3 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 0D 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [00:05:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:09]wFMCommunicate OK [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 17 00 00 [00:05:09]Write to MH i2c: E2 08 00 0E 36 80 17 00 00 00 00 00 00 C4 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 0E 36 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 D6 [00:05:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:09]wFMCommunicate OK [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 17 00 00 [00:05:09]Write to MH i2c: E2 08 00 0F 36 80 17 00 00 00 00 00 00 C5 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 0F 36 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 51 [00:05:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:10]wFMCommunicate OK [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 17 00 00 [00:05:10]Write to MH i2c: E2 08 00 10 36 80 17 00 00 00 00 00 00 C6 [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 E2 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 E2 00 10 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 [00:05:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:10]wFMCommunicate OK [00:05:10]SAM_PROTO_GetFMData done [00:05:10]requested_item fm.sale_refund.total is exist - process it [00:05:10]requested_item fm.buy.total is exist - process it [00:05:10]requested_item shift.sale.total is exist - process it [00:05:10]SAM_PROTO_GetShiftData [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 13 02 00 [00:05:10]Write to MH i2c: E2 08 00 11 36 80 13 02 00 00 00 00 00 C5 [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:10]OFD Sender: No OFD packet to send [00:05:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 11 36 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 A1 [00:05:10]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:10]wFMCommunicate OK [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 17 00 00 [00:05:10]Write to MH i2c: E2 08 00 12 36 80 17 00 00 00 00 00 00 C8 [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 12 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [00:05:11]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:11]wFMCommunicate OK [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 17 00 00 [00:05:11]Write to MH i2c: E2 08 00 13 36 80 17 00 00 00 00 00 00 C9 [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 13 36 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [00:05:11]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:05:11]wFMCommunicate OK [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 17 00 00 [00:05:11]Write to MH i2c: E2 08 00 14 36 80 17 00 00 00 00 00 00 CA [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 14 36 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 4B [00:05:11]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:05:11]wFMCommunicate OK [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 17 00 00 [00:05:11]Write to MH i2c: E2 08 00 15 36 80 17 00 00 00 00 00 00 CB [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 D9 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 D9 00 15 36 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 AA [00:05:12]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:05:12]wFMCommunicate OK [00:05:12]SAM_PROTO_GetShiftData done [00:05:12]requested_item shift.sale.total_cash is exist - process it [00:05:12]requested_item shift.sale_refund.total is exist - process it [00:05:12]requested_item shift.sale_refund.total_cash is exist - process it [00:05:12]requested_item shift.buy.total is exist - process it [00:05:12]requested_item shift.buy.total_cash is exist - process it [00:05:12]produce_requested_data done [00:05:12]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:12]process_action_free get_value [00:05:12]json_value_free [00:05:12]json_value_free done [00:05:12]process_json_proto returns [00:05:12]Send response to host [00:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:12]free response buf [00:05:12]execute_script done [00:05:12]execute_script returns [00:05:12]free content buf [00:05:12]Sock 9.Close socket [00:05:12]Sock 9.Thread stoped [00:05:12]accept exits with 7 [00:05:12]New connection [00:05:12]New thread 3066699108 created [00:05:12]Thread 3066555748 joined [00:05:12]Waiting for new connection... [00:05:12] Sock 7.Parse request [00:05:12]Sock 7.Check first char [00:05:12]Sock 7.First char is OK [00:05:12]request: POST /json_proto HTTP/1.0 [00:05:12]Method: POST [00:05:12]URL: /json_proto [00:05:12]Method is POST - this is cgi request [00:05:12]url: /json_proto [00:05:12]query_string will be loaded in cgi processing [00:05:12]execute_cgi json_proto POST (null) [00:05:12]execute_cgi path=json_proto method=POST [00:05:12]POST find Content-Length [00:05:12]Host: 172.17.50.3:8080 [00:05:12]Content-Length: 331 [00:05:12]Content-Type: application/json [00:05:12] [00:05:12]POST finish read [00:05:12]Found Content-Length = 331 [00:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:12]execute_script... [00:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:12]POST & json_proto [00:05:12]process_json_proto [00:05:12]json parsed OK: [00:05:12]protocol is kg_v1.0 [00:05:12]action value=get_value [00:05:12]process_action get_value [00:05:12]cmd_get_value [00:05:12]process_action get_value done [00:05:12]requested_data is exist [00:05:12]produce_requested_data [00:05:12]requested_item fm.sale.total is exist - process it [00:05:12]SAM_PROTO_GetFMData [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 13 03 00 [00:05:12]Write to MH i2c: E2 08 00 16 36 80 13 03 00 00 00 00 00 CB [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 FD 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 FD 00 16 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 68 [00:05:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 17 00 00 [00:05:12]Write to MH i2c: E2 08 00 17 36 80 17 00 00 00 00 00 00 CD [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 FD 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 FD 00 17 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A [00:05:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 17 00 00 [00:05:13]Write to MH i2c: E2 08 00 18 36 80 17 00 00 00 00 00 00 CE [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 18 36 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 E0 [00:05:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 17 00 00 [00:05:13]Write to MH i2c: E2 08 00 19 36 80 17 00 00 00 00 00 00 CF [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 19 36 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 5B [00:05:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:13]wFMCommunicate OK [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 17 00 00 [00:05:13]Write to MH i2c: E2 08 00 1A 36 80 17 00 00 00 00 00 00 D0 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 E2 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 E2 00 1A 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AE [00:05:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:14]wFMCommunicate OK [00:05:14]SAM_PROTO_GetFMData done [00:05:14]requested_item fm.sale_refund.total is exist - process it [00:05:14]requested_item fm.buy.total is exist - process it [00:05:14]requested_item shift.sale.total is exist - process it [00:05:14]SAM_PROTO_GetShiftData [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 13 02 00 [00:05:14]Write to MH i2c: E2 08 00 1B 36 80 13 02 00 00 00 00 00 CF [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 1B 36 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 AB [00:05:14]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:14]wFMCommunicate OK [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 1C 36 80 17 00 00 00 00 00 00 D2 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 1C 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [00:05:15]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 1D 36 80 17 00 00 00 00 00 00 D3 [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 1D 36 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [00:05:15]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:05:15]wFMCommunicate OK [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 1E 36 80 17 00 00 00 00 00 00 D4 [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 1E 36 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 55 [00:05:16]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 OFD Sender: No OFD packet to send [00:05:16]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:16]wFMCommunicate OK [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 17 00 00 [00:05:16]Write to MH i2c: E2 08 00 1F 36 80 17 00 00 00 00 00 00 D5 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 D9 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 D9 00 1F 36 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 B4 [00:05:16]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:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetShiftData done [00:05:16]requested_item shift.sale.total_cash is exist - process it [00:05:16]requested_item shift.sale_refund.total is exist - process it [00:05:16]requested_item shift.sale_refund.total_cash is exist - process it [00:05:16]requested_item shift.buy.total is exist - process it [00:05:16]requested_item shift.buy.total_cash is exist - process it [00:05:16]produce_requested_data done [00:05:16]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:16]process_action_free get_value [00:05:16]json_value_free [00:05:16]json_value_free done [00:05:16]process_json_proto returns [00:05:16]Send response to host [00:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:16]free response buf [00:05:16]execute_script done [00:05:16]execute_script returns [00:05:16]free content buf [00:05:16]Sock 7.Close socket [00:05:16]Sock 7.Thread stoped [00:05:16]accept exits with 9 [00:05:16]New connection [00:05:16]New thread 3066555748 created [00:05:16]Thread 3066699108 joined [00:05:16]Waiting for new connection... [00:05:16] Sock 9.Parse request [00:05:16]Sock 9.Check first char [00:05:16]Sock 9.First char is OK [00:05:16]request: POST /json_proto HTTP/1.0 [00:05:16]Method: POST [00:05:16]URL: /json_proto [00:05:16]Method is POST - this is cgi request [00:05:16]url: /json_proto [00:05:16]query_string will be loaded in cgi processing [00:05:16]execute_cgi json_proto POST (null) [00:05:16]execute_cgi path=json_proto method=POST [00:05:16]POST find Content-Length [00:05:16]Host: 172.17.50.3:8080 [00:05:16]Content-Length: 257 [00:05:16]Content-Type: application/json [00:05:16] [00:05:16]POST finish read [00:05:16]Found Content-Length = 257 [00:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:16]execute_script... [00:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:16]POST & json_proto [00:05:16]process_json_proto [00:05:16]json parsed OK: [00:05:16]protocol is kg_v1.0 [00:05:16]action value=x_report [00:05:16]process_action x_report [00:05:16]cmd_x_report [00:05:16]MH_GetDate [00:05:16]Write to MH i2c: F0 00 00 20 36 45 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 09 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 09 00 20 36 00 BE 3D 18 67 6B 98 1E 66 4F [00:05:16]GetLastDocTimeStamp 1729641564 [00:05:16]current date 1729641918 [00:05:16]FM_GetShiftState [00:05:16]SAM_PROTO_GetShiftState [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 01 00 [00:05:16]Write to MH i2c: E2 08 00 21 36 80 13 01 00 00 00 00 00 D4 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0E 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0E 00 21 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C2 [00:05:16]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetShiftState done [00:05:16]FM_GetShiftState done [00:05:16]KKMCreateXReportDocument [00:05:16]Load OK [00:05:16]Malloc new data [00:05:16]MH_GetDate [00:05:16]Write to MH i2c: F0 00 00 22 36 47 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 09 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: F0 09 00 22 36 00 BE 3D 18 67 6B 98 1E 66 51 [00:05:16]Malloc new data [00:05:16]Malloc new data [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 11 00 00 [00:05:16]Write to MH i2c: E2 08 00 23 36 80 11 00 00 00 00 00 00 D3 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 17 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 17 00 23 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [00:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetFieldsCounters [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 00 00 [00:05:16]Write to MH i2c: E2 08 00 24 36 80 13 00 00 00 00 00 00 D6 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 62 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 62 00 24 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:05: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:17]wFMCommunicate OK [00:05:17]SAM_PROTO_GetFieldsCounters done [00:05:17]Malloc new data [00:05:17]Malloc new data [00:05:17]Malloc new data [00:05:17]KKMCreateXReportDocument OK [00:05:17]KKMSetXReportData OK [00:05:17]KKMPrepareXReportFMData [00:05:17]SAM_PROTO_GetShiftData [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 13 02 00 [00:05:17]Write to MH i2c: E2 08 00 25 36 80 13 02 00 00 00 00 00 D9 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 25 36 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B5 [00:05:17]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 26 36 80 17 00 00 00 00 00 00 DC [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 26 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [00:05:18]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 27 36 80 17 00 00 00 00 00 00 DD [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 27 36 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [00:05:18]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:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 28 36 80 17 00 00 00 00 00 00 DE [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 28 36 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 5F [00:05: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:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 29 36 80 17 00 00 00 00 00 00 DF [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 D9 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 D9 00 29 36 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 BE [00:05:19]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:05:19]wFMCommunicate OK [00:05:19]SAM_PROTO_GetShiftData done [00:05:19]1194 (1208) - счетчики итогов смены [00:05:19] 1134 (4) - 430 - количество чеков со всеми признаками расчетов [00:05:19] 1129 (158) - счетчики операций «приход» [00:05:19] 1135 (4) - 424 - количество чеков по признаку расчетов [00:05:19] 1201 (4) - 533673.87 - общая итоговая сумма в чеках [00:05:19] 1136 (4) - 433666.00 - итоговая сумма в чеках наличными [00:05:19] 1138 (3) - 100007.87 - итоговая сумма в чеках безналичными [00:05:19] 1024 (123) - суммы налогов [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 0% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1006 (12) - суммы НДС [00:05:19] 1010 (1) - 12% - код ставки НДС [00:05:19] 1011 (3) - 56684.29 - сумма НДС по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (12) - суммы НСП [00:05:19] 1014 (1) - 1% - код ставки НСП [00:05:19] 1015 (3) - 4723.53 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 2% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 3% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 5% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1130 (152) - счетчики операций «возврат прихода» [00:05:19] 1135 (4) - 6 - количество чеков по признаку расчетов [00:05:19] 1201 (3) - 30710.00 - общая итоговая сумма в чеках [00:05:19] 1136 (3) - 30710.00 - итоговая сумма в чеках наличными [00:05:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:19] 1024 (122) - суммы налогов [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 0% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1006 (12) - суммы НДС [00:05:19] 1010 (1) - 12% - код ставки НДС [00:05:19] 1011 (3) - 3261.30 - сумма НДС по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (11) - суммы НСП [00:05:19] 1014 (1) - 1% - код ставки НСП [00:05:19] 1015 (2) - 271.78 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 2% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 3% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 5% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1131 (141) - счетчики операций «расход» [00:05:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:19] 1024 (117) - суммы налогов [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 0% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 12% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 2% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 3% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 5% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1132 (141) - счетчики операций «возврат расхода» [00:05:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:19] 1024 (117) - суммы налогов [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 0% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1006 (9) - суммы НДС [00:05:19] 1010 (1) - 12% - код ставки НДС [00:05:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 2% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 3% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 5% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 0,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1007 (9) - суммы НСП [00:05:19] 1014 (1) - 1,50% - код ставки НСП [00:05:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:19] 1133 (588) - - счетчики коррекции - не используются [00:05:19]SetTLVBufToDocument [00:05:19]Processing tag 1194 (04AA) [00:05:19]Load OK [00:05:19]SetTLVBufToDocument [00:05:19]Processing tag 1134 (046E) [00:05:19]Malloc new data [00:05:19]Processing tag 1129 (0469) [00:05:19]Load OK [00:05:19]SetTLVBufToDocument [00:05:19]Processing tag 1135 (046F) [00:05:19]Malloc new data [00:05:19]Processing tag 1201 (04B1) [00:05:19]Malloc new data [00:05:19]Processing tag 1136 (0470) [00:05:19]Malloc new data [00:05:19]Processing tag 1138 (0472) [00:05:19]Malloc new data [00:05:19]Processing tag 1024 (0400) [00:05:19]Load OK [00:05:19]SetTLVBufToDocument [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1130 (046A) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1135 (046F) [00:05:20]Malloc new data [00:05:20]Processing tag 1201 (04B1) [00:05:20]Malloc new data [00:05:20]Processing tag 1136 (0470) [00:05:20]Malloc new data [00:05:20]Processing tag 1138 (0472) [00:05:20]Malloc new data [00:05:20]Processing tag 1024 (0400) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1131 (046B) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1135 (046F) [00:05:20]Malloc new data [00:05:20]Processing tag 1201 (04B1) [00:05:20]Malloc new data [00:05:20]Processing tag 1136 (0470) [00:05:20]Malloc new data [00:05:20]Processing tag 1138 (0472) [00:05:20]Malloc new data [00:05:20]Processing tag 1024 (0400) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1132 (046C) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1135 (046F) [00:05:20]Malloc new data [00:05:20]Processing tag 1201 (04B1) [00:05:20]Malloc new data [00:05:20]Processing tag 1136 (0470) [00:05:20]Malloc new data [00:05:20]Processing tag 1138 (0472) [00:05:20]Malloc new data [00:05:20]Processing tag 1024 (0400) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1006 (03EE) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1010 (03F2) [00:05:20]Malloc new data [00:05:20]Processing tag 1011 (03F3) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1007 (03EF) [00:05:20]Load OK [00:05:20]SetTLVBufToDocument [00:05:20]Processing tag 1014 (03F6) [00:05:20]Malloc new data [00:05:20]Processing tag 1015 (03F7) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Processing tag 1133 (046D) [00:05:20]Malloc new data [00:05:20]SetTLVBufToDocument err=0 [00:05:20]SetTLVBufToDocument err=0 [00:05:20]Malloc new data [00:05:20]SAM_PROTO_GetFMData [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 13 03 00 [00:05:20]Write to MH i2c: E2 08 00 2A 36 80 13 03 00 00 00 00 00 DF [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 2A 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 7C [00:05:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 OFD Sender: No OFD packet to send [00:05:21]AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 17 00 00 [00:05:21]Write to MH i2c: E2 08 00 2B 36 80 17 00 00 00 00 00 00 E1 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 FD 00 2B 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6E [00:05: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 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 17 00 00 [00:05:21]Write to MH i2c: E2 08 00 2C 36 80 17 00 00 00 00 00 00 E2 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 2C 36 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 F4 [00:05: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:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 2D 36 80 17 00 00 00 00 00 00 E3 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 2D 36 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 6F [00:05: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:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 2E 36 80 17 00 00 00 00 00 00 E4 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 E2 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 E2 00 2E 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [00:05: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:05:23]wFMCommunicate OK [00:05:23]SAM_PROTO_GetFMData done [00:05:23]FM_GetFMData:85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 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 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:24]oper:6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:24]total:C0 AA 6A E8 01 [00:05:24]Malloc new data [00:05:24]oper:6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 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 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:24]total:5C C4 04 12 [00:05:24]Malloc new data [00:05:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:24]total: [00:05:24]Malloc new data [00:05:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:05:24]total: [00:05:24]Malloc new data [00:05:24]KKMPrepareXReportFMData err=0 [00:05:24]Х отчет ИНН: 02508201610067 Кассир: Ахмедова У. 23.10.2024 00:05 Смена: 10 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Всего чеков: 430 ИТОГИ ПРИХОД Чеков: 424 Общий итог: 533673.87 Итого наличными: 433666.00 Итого безнал.: 100007.87 НДС 0% : 0.00 НДС 12% : 56684.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4723.53 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 30710.00 Итого наличными: 30710.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3261.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 271.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 402956.00 НС Приход: 81942719.36 НС Возвр.Прихода: 3023023.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963346 [00:05:24]StoreToDocumentArchive [00:05:24]MH_GetDate [00:05:24]Write to MH i2c: F0 00 00 2F 36 54 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: F0 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: F0 09 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: F0 09 00 2F 36 00 C6 3D 18 67 6B 98 1E 66 66 [00:05:24]shift 10 fd 1729641926 [00:05:24]Create dir for shift 0010 [00:05:24]save to /storage/0010/doc_1729641926 [00:05:24]save last doc name /storage/0010/doc_1729641926 to /storage/kkm_last_doc_name [00:05:24]save OK [00:05:24]Clear old archive folders... [00:05:24]NVStorageSaveData kkm_last_timestamp [00:05:24]File name is /storage/kkm_last_timestamp [00:05:24]Write 4 bytes [00:05:24]NVStorageSaveData done [00:05:24]ExternCall_PrintAddStr [00:05:24]wPrintStart [00:05:24]Write to MH i2c: 01 00 00 30 36 66 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: 01 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: 01 07 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: 01 07 00 30 36 00 00 00 00 00 FF 0F 7B [00:05:24]RasterBufferAndPrint [00:05:24]line Х отчет [00:05:24]line ИНН: 02508201610067 [00:05:24]line Кассир: Ахмедова У. [00:05:24]line 23.10.2024 00:05 [00:05:24]line Смена: 10 [00:05:24]line РНМ: 0000000000156251 [00:05:24]line ЗНМ: 0300000167 [00:05:24]line СНО: Общий режим [00:05:24]line Всего чеков: 430 [00:05:24]line ИТОГИ ПРИХОД [00:05:24]line Чеков: 424 [00:05:24]line Общий итог: 533673.87 [00:05:24]line Итого наличными: 433666.00 [00:05:24]line Итого безнал.: 100007.87 [00:05:24]line НДС 0% : 0.00 [00:05:24]line НДС 12% : 56684.29 [00:05:24]line НСП 0% : 0.00 [00:05:24]line НСП 1,50% : 0.00 [00:05:24]line НСП 0,50% : 0.00 [00:05:24]line НСП 5% : 0.00 [00:05:24]line НСП 3% : 0.00 [00:05:24]line НСП 2% : 0.00 [00:05:24]line НСП 1% : 4723.53 [00:05:24]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:24]line Чеков: 6 [00:05:24]line Общий итог: 30710.00 [00:05:24]line Итого наличными: 30710.00 [00:05:24]line Итого безнал.: 0.00 [00:05:24]line НДС 0% : 0.00 [00:05:24]line НДС 12% : 3261.30 [00:05:24]line НСП 0% : 0.00 [00:05:24]line НСП 1,50% : 0.00 [00:05:24]line НСП 0,50% : 0.00 [00:05:24]line НСП 5% : 0.00 [00:05:24]line НСП 3% : 0.00 [00:05:24]line НСП 2% : 0.00 [00:05:24]line НСП 1% : 271.78 [00:05:24]line ИТОГИ РАСХОД [00:05:24]line Чеков: 0 [00:05:24]line Общий итог: 0.00 [00:05:24]line Итого наличными: 0.00 [00:05:24]line Итого безнал.: 0.00 [00:05:24]line НДС 0% : 0.00 [00:05:24]line НДС 12% : 0.00 [00:05:24]line НСП 0% : 0.00 [00:05:24]line НСП 1,50% : 0.00 [00:05:24]line НСП 0,50% : 0.00 [00:05:24]line НСП 5% : 0.00 [00:05:24]line НСП 3% : 0.00 [00:05:24]line НСП 2% : 0.00 [00:05:24]line НСП 1% : 0.00 [00:05:24]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:24]line Чеков: 0 [00:05:24]line Общий итог: 0.00 [00:05:24]line Итого наличными: 0.00 [00:05:24]line Итого безнал.: 0.00 [00:05:24]line НДС 0% : 0.00 [00:05:24]line НДС 12% : 0.00 [00:05:24]line НСП 0% : 0.00 [00:05:24]line НСП 1,50% : 0.00 [00:05:24]line НСП 0,50% : 0.00 [00:05:24]line НСП 5% : 0.00 [00:05:24]line НСП 3% : 0.00 [00:05:24]line НСП 2% : 0.00 [00:05:24]line НСП 1% : 0.00 [00:05:24]line Сумма внесений: 0.00 [00:05:24]line Сумма выплат: 0.00 [00:05:24]line Нал. в кассе: 402956.00 [00:05:24]line НС Приход: 81942719.36 [00:05:24]line НС Возвр.Прихода: 3023023.00 [00:05:24]line НС Расход: 0.00 [00:05:24]line НС Возвр.Расхода: 0.00 [00:05:24]line ФМ: 0000000000963346 [00:05:24]written 0, free lines is 4095 [00:05:25]Write to MH i2c: 01 00 00 7B 36 B1 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 07 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 07 00 7B 36 00 00 00 00 00 16 0B D9 [00:05:25]RasterBufferAndPrint [00:05:25]line [00:05:25]line [00:05:25]line [00:05:25]line [00:05:25]line [00:05:25]written 0, free lines is 2873 [00:05:25]MH_Cut [00:05:25]Write to MH i2c: D1 01 00 82 36 01 8A [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: D1 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: D1 01 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: D1 01 00 82 36 00 89 [00:05:25]Write to MH i2c: 01 00 00 83 36 B9 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:26]OFD Sender: No OFD packet to send [00:05:26]*** Cut start [00:05:26]*** Partial cut [00:05:26]*** CUTSNS_PIN = 1 [00:05:26]*** CUTSNS_PIN = 0 [00:05:26]*** Brake cut motor [00:05:27]Read from MH i2c: 01 [00:05:27]MH_I2C_Read... [00:05:27]*** Stop cut motor [00:05:27]*** Cut end [00:05:27]Read from MH i2c: 01 07 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 07 00 83 36 00 00 00 00 00 FF 0F CE [00:05:27]process_action x_report done [00:05:27]requested_data is exist [00:05:27]produce_requested_data [00:05:27]requested_item fd.num is exist - process it [00:05:27]SAM_PROTO_GetFieldsCounters [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 00 00 [00:05:27]Write to MH i2c: E2 08 00 84 36 80 13 00 00 00 00 00 00 36 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 62 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 62 00 84 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:05: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetFieldsCounters done [00:05:27]requested_item shift.num is exist - process it [00:05:27]requested_item shift.opened is exist - process it [00:05:27]req_shift_opened [00:05:27]FM_GetShiftState [00:05:27]SAM_PROTO_GetShiftState [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 01 00 [00:05:27]Write to MH i2c: E2 08 00 85 36 80 13 01 00 00 00 00 00 38 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 85 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 26 [00:05:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetShiftState done [00:05:27]FM_GetShiftState done [00:05:27]req_shift_opened done [00:05:27]requested_item shift.open_date is exist - process it [00:05:27]req_shift_open_date [00:05:27]req_shift_open_date done [00:05:27]produce_requested_data done [00:05:27]produce_requested_data return {"fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:05:27]process_action_free x_report [00:05:27]json_value_free [00:05:27]json_value_free done [00:05:27]process_json_proto returns [00:05:27]Send response to host [00:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:05:27]free response buf [00:05:27]execute_script done [00:05:27]execute_script returns [00:05:27]free content buf [00:05:27]Sock 9.Close socket [00:05:27]Sock 9.Thread stoped [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:19]accept exits with 7 [00:06:19]New connection [00:06:19]New thread 3066699108 created [00:06:19]Thread 3066555748 joined [00:06:19]Waiting for new connection... [00:06:19] Sock 7.Parse request [00:06:19]Sock 7.Check first char [00:06:19]Sock 7.First char is OK [00:06:19]request: POST /json_proto HTTP/1.0 [00:06:19]Method: POST [00:06:19]URL: /json_proto [00:06:19]Method is POST - this is cgi request [00:06:19]url: /json_proto [00:06:19]query_string will be loaded in cgi processing [00:06:19]execute_cgi json_proto POST (null) [00:06:19]execute_cgi path=json_proto method=POST [00:06:19]POST find Content-Length [00:06:19]Host: 172.17.50.3:8080 [00:06:19]Content-Length: 215 [00:06:19]Content-Type: application/json [00:06:19] [00:06:19]POST finish read [00:06:19]Found Content-Length = 215 [00:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:19]execute_script... [00:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:19]POST & json_proto [00:06:19]process_json_proto [00:06:19]json parsed OK: [00:06:19]protocol is kg_v1.0 [00:06:19]action value=get_value [00:06:19]process_action get_value [00:06:19]cmd_get_value [00:06:19]process_action get_value done [00:06:19]requested_data is exist [00:06:19]produce_requested_data [00:06:19]requested_item kkm.sn is exist - process it [00:06:19]requested_item kkm.ver is exist - process it [00:06:19]requested_item fm.sn is exist - process it [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 11 00 00 [00:06:19]Write to MH i2c: E2 08 00 86 36 80 11 00 00 00 00 00 00 36 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 17 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 17 00 86 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [00:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:06:19]wFMCommunicate OK [00:06:19]requested_item fd.num is exist - process it [00:06:19]SAM_PROTO_GetFieldsCounters [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 00 00 [00:06:19]Write to MH i2c: E2 08 00 87 36 80 13 00 00 00 00 00 00 39 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 87 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [00:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetFieldsCounters done [00:06:19]requested_item shift.num is exist - process it [00:06:19]requested_item shift.opened is exist - process it [00:06:19]req_shift_opened [00:06:19]FM_GetShiftState [00:06:19]SAM_PROTO_GetShiftState [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 01 00 [00:06:19]Write to MH i2c: E2 08 00 88 36 80 13 01 00 00 00 00 00 3B [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 88 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 29 [00:06:19]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetShiftState done [00:06:19]FM_GetShiftState done [00:06:19]req_shift_opened done [00:06:19]requested_item shift.open_date is exist - process it [00:06:19]req_shift_open_date [00:06:19]req_shift_open_date done [00:06:19]produce_requested_data done [00:06:19]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:06:19]process_action_free get_value [00:06:19]json_value_free [00:06:19]json_value_free done [00:06:19]process_json_proto returns [00:06:19]Send response to host [00:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70482,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:06:19]free response buf [00:06:19]execute_script done [00:06:19]execute_script returns [00:06:19]free content buf [00:06:19]Sock 7.Close socket [00:06:19]Sock 7.Thread stoped [00:06:19]accept exits with 9 [00:06:19]New connection [00:06:19]New thread 3066555748 created [00:06:19]Thread 3066699108 joined [00:06:19]Waiting for new connection... [00:06:19] Sock 9.Parse request [00:06:19]Sock 9.Check first char [00:06:19]Sock 9.First char is OK [00:06:19]request: POST /json_proto HTTP/1.0 [00:06:19]Method: POST [00:06:19]URL: /json_proto [00:06:19]Method is POST - this is cgi request [00:06:19]url: /json_proto [00:06:19]query_string will be loaded in cgi processing [00:06:19]execute_cgi json_proto POST (null) [00:06:19]execute_cgi path=json_proto method=POST [00:06:19]POST find Content-Length [00:06:19]Host: 172.17.50.3:8080 [00:06:19]Content-Length: 331 [00:06:19]Content-Type: application/json [00:06:19] [00:06:19]POST finish read [00:06:19]Found Content-Length = 331 [00:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:19]execute_script... [00:06:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:20]POST & json_proto [00:06:20]process_json_proto [00:06:20]json parsed OK: [00:06:20]protocol is kg_v1.0 [00:06:20]action value=get_value [00:06:20]process_action get_value [00:06:20]cmd_get_value [00:06:20]process_action get_value done [00:06:20]requested_data is exist [00:06:20]produce_requested_data [00:06:20]requested_item fm.sale.total is exist - process it [00:06:20]SAM_PROTO_GetFMData [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 03 00 [00:06:20]Write to MH i2c: E2 08 00 89 36 80 13 03 00 00 00 00 00 3E [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 89 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 DB [00:06:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 8A 36 80 17 00 00 00 00 00 00 40 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 8A 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:06:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 8B 36 80 17 00 00 00 00 00 00 41 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 8B 36 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 53 [00:06:21]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 8C 36 80 17 00 00 00 00 00 00 42 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]OFD Sender: No OFD packet to send [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 8C 36 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 CE [00:06:21]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 8D 36 80 17 00 00 00 00 00 00 43 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 E2 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 E2 00 8D 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 21 [00:06:21]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_GetFMData done [00:06:21]requested_item fm.sale_refund.total is exist - process it [00:06:21]requested_item fm.buy.total is exist - process it [00:06:21]requested_item shift.sale.total is exist - process it [00:06:21]SAM_PROTO_GetShiftData [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 13 02 00 [00:06:21]Write to MH i2c: E2 08 00 8E 36 80 13 02 00 00 00 00 00 42 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 8E 36 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 1E [00:06:22]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 8F 36 80 17 00 00 00 00 00 00 45 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 8F 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [00:06:22]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 90 36 80 17 00 00 00 00 00 00 46 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 90 36 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [00:06: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:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 91 36 80 17 00 00 00 00 00 00 47 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 91 36 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 C8 [00:06:23]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:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 92 36 80 17 00 00 00 00 00 00 48 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 D9 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 D9 00 92 36 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 27 [00:06: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:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetShiftData done [00:06:23]requested_item shift.sale.total_cash is exist - process it [00:06:23]requested_item shift.sale_refund.total is exist - process it [00:06:23]requested_item shift.sale_refund.total_cash is exist - process it [00:06:23]requested_item shift.buy.total is exist - process it [00:06:23]requested_item shift.buy.total_cash is exist - process it [00:06:23]produce_requested_data done [00:06:23]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:23]process_action_free get_value [00:06:23]json_value_free [00:06:23]json_value_free done [00:06:23]process_json_proto returns [00:06:23]Send response to host [00:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:23]free response buf [00:06:23]execute_script done [00:06:23]execute_script returns [00:06:23]free content buf [00:06:23]Sock 9.Close socket [00:06:23]Sock 9.Thread stoped [00:06:23]accept exits with 7 [00:06:23]New connection [00:06:23]New thread 3066699108 created [00:06:23]Thread 3066555748 joined [00:06:23]Waiting for new connection... [00:06:23] Sock 7.Parse request [00:06:23]Sock 7.Check first char [00:06:23]Sock 7.First char is OK [00:06:23]request: POST /json_proto HTTP/1.0 [00:06:23]Method: POST [00:06:23]URL: /json_proto [00:06:23]Method is POST - this is cgi request [00:06:23]url: /json_proto [00:06:23]query_string will be loaded in cgi processing [00:06:23]execute_cgi json_proto POST (null) [00:06:23]execute_cgi path=json_proto method=POST [00:06:23]POST find Content-Length [00:06:23]Host: 172.17.50.3:8080 [00:06:23]Content-Length: 331 [00:06:23]Content-Type: application/json [00:06:23] [00:06:23]POST finish read [00:06:23]Found Content-Length = 331 [00:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:23]execute_script... [00:06:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:23]POST & json_proto [00:06:23]process_json_proto [00:06:23]json parsed OK: [00:06:23]protocol is kg_v1.0 [00:06:23]action value=get_value [00:06:23]process_action get_value [00:06:23]cmd_get_value [00:06:23]process_action get_value done [00:06:23]requested_data is exist [00:06:23]produce_requested_data [00:06:23]requested_item fm.sale.total is exist - process it [00:06:23]SAM_PROTO_GetFMData [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 13 03 00 [00:06:23]Write to MH i2c: E2 08 00 93 36 80 13 03 00 00 00 00 00 48 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 93 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 E5 [00:06:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 94 36 80 17 00 00 00 00 00 00 4A [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 94 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [00:06:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 95 36 80 17 00 00 00 00 00 00 4B [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 95 36 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 5D [00:06:24]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 96 36 80 17 00 00 00 00 00 00 4C [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 96 36 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 D8 [00:06:25]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 97 36 80 17 00 00 00 00 00 00 4D [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 E2 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 E2 00 97 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [00:06:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:25]wFMCommunicate OK [00:06:25]SAM_PROTO_GetFMData done [00:06:25]requested_item fm.sale_refund.total is exist - process it [00:06:25]requested_item fm.buy.total is exist - process it [00:06:25]requested_item shift.sale.total is exist - process it [00:06:25]SAM_PROTO_GetShiftData [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 13 02 00 [00:06:25]Write to MH i2c: E2 08 00 98 36 80 13 02 00 00 00 00 00 4C [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 98 36 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 28 [00:06:25]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 99 36 80 17 00 00 00 00 00 00 4F [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 99 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:06:26]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 9A 36 80 17 00 00 00 00 00 00 50 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]OFD Sender: No OFD packet to send [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 9A 36 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [00:06:26]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:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 9B 36 80 17 00 00 00 00 00 00 51 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 9B 36 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 D2 [00:06:27]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:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 17 00 00 [00:06:27]Write to MH i2c: E2 08 00 9C 36 80 17 00 00 00 00 00 00 52 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 D9 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 D9 00 9C 36 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 31 [00:06:27]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:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetShiftData done [00:06:27]requested_item shift.sale.total_cash is exist - process it [00:06:27]requested_item shift.sale_refund.total is exist - process it [00:06:27]requested_item shift.sale_refund.total_cash is exist - process it [00:06:27]requested_item shift.buy.total is exist - process it [00:06:27]requested_item shift.buy.total_cash is exist - process it [00:06:27]produce_requested_data done [00:06:27]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:27]process_action_free get_value [00:06:27]json_value_free [00:06:27]json_value_free done [00:06:27]process_json_proto returns [00:06:27]Send response to host [00:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:27]free response buf [00:06:27]execute_script done [00:06:27]execute_script returns [00:06:27]free content buf [00:06:27]Sock 7.Close socket [00:06:27]Sock 7.Thread stoped [00:06:27]accept exits with 9 [00:06:27]New connection [00:06:27]New thread 3066555748 created [00:06:27]Thread 3066699108 joined [00:06:27]Waiting for new connection... [00:06:27] Sock 9.Parse request [00:06:27]Sock 9.Check first char [00:06:27]Sock 9.First char is OK [00:06:27]request: POST /json_proto HTTP/1.0 [00:06:27]Method: POST [00:06:27]URL: /json_proto [00:06:27]Method is POST - this is cgi request [00:06:27]url: /json_proto [00:06:27]query_string will be loaded in cgi processing [00:06:27]execute_cgi json_proto POST (null) [00:06:27]execute_cgi path=json_proto method=POST [00:06:27]POST find Content-Length [00:06:27]Host: 172.17.50.3:8080 [00:06:27]Content-Length: 260 [00:06:27]Content-Type: application/json [00:06:27] [00:06:27]POST finish read [00:06:27]Found Content-Length = 260 [00:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:27]execute_script... [00:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:27]POST & json_proto [00:06:27]process_json_proto [00:06:27]json parsed OK: [00:06:27]protocol is kg_v1.0 [00:06:27]action value=close_shift [00:06:27]process_action close_shift [00:06:27]cmd_close_shift [00:06:27]MH_GetDate [00:06:27]Write to MH i2c: F0 00 00 9D 36 C2 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 9D 36 00 05 3E 18 67 6B 98 1E 66 14 [00:06:27]GetLastDocTimeStamp 1729641918 [00:06:27]current date 1729641989 [00:06:27]FM_GetShiftState [00:06:27]SAM_PROTO_GetShiftState [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 01 00 [00:06:27]Write to MH i2c: E2 08 00 9E 36 80 13 01 00 00 00 00 00 51 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 9E 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 3F [00:06:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetShiftState done [00:06:27]FM_GetShiftState done [00:06:27]KKMCreateCloseShiftDocument [00:06:27]Load OK [00:06:27]Malloc new data [00:06:27]MH_GetDate [00:06:27]Write to MH i2c: F0 00 00 9F 36 C4 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 9F 36 00 05 3E 18 67 6B 98 1E 66 16 [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]KKMCreateCloseShiftDocument OK [00:06:27]KKMSetCloseShiftData OK [00:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:06:27]tlvbuf is 00BD8D80 [00:06:27]KKMLoadAndSignCloseShiftData [00:06:27]SAM_PROTO_ProcessDocument [00:06:27]wFMCommunicate request_size=9 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 01 00 04 05 00 47 00 [00:06:27]Write to MH i2c: E2 0C 00 A0 36 80 15 01 00 04 00 05 00 47 00 00 00 A9 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 A0 36 00 90 00 4A [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=23 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:27]Write to MH i2c: E2 1A 00 A1 36 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 4C [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 A1 36 00 90 00 4B [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=30 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 [00:06:27]Write to MH i2c: E2 21 00 A2 36 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 00 00 5B [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 A2 36 00 90 00 4C [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=13 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 08 F4 03 04 00 05 3E 18 67 [00:06:27]Write to MH i2c: E2 10 00 A3 36 80 15 02 00 08 00 F4 03 04 00 05 3E 18 67 00 00 26 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 A3 36 00 90 00 4D [00:06:28]RAPDU: 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=25 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:06:28]Write to MH i2c: E2 1C 00 A4 36 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 B7 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 03 00 A4 36 00 90 00 4E [00:06:28]RAPDU: 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 15 03 00 [00:06:28]Write to MH i2c: E2 08 00 A5 36 80 15 03 00 00 00 00 00 5C [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 A5 36 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 34 36 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 90 00 B0 [00:06:28]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 34 36 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 90 00 [00:06:28]wFMCommunicate OK [00:06:28]SAM_PROTO_ProcessDocument answer len = 1279 [00:06:28]SAM_PROTO_ProcessDocument remain to read = 1031 [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 A6 36 80 17 00 00 00 00 00 00 5C [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 A6 36 00 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [00:06:29]RAPDU: DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:29]SAM_PROTO_ProcessDocument remain to read = 781 [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 17 00 00 [00:06:29]Write to MH i2c: E2 08 00 A7 36 80 17 00 00 00 00 00 00 5D [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 A7 36 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 C3 [00:06:29]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:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:29]SAM_PROTO_ProcessDocument remain to read = 531 [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 17 00 00 [00:06:29]Write to MH i2c: E2 08 00 A8 36 80 17 00 00 00 00 00 00 5E [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 [00:06:29]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 FD 00 A8 36 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 FF [00:06:30]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:06:30]wFMCommunicate OK [00:06:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:30]SAM_PROTO_ProcessDocument remain to read = 281 [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 17 00 00 [00:06:30]Write to MH i2c: E2 08 00 A9 36 80 17 00 00 00 00 00 00 5F [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 FD 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 FD 00 A9 36 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B [00:06:30]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:06:30]wFMCommunicate OK [00:06:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:30]SAM_PROTO_ProcessDocument remain to read = 31 [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 17 00 00 [00:06:30]Write to MH i2c: E2 08 00 AA 36 80 17 00 00 00 00 00 00 60 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 22 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 22 00 AA 36 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 31 A4 4C 08 BD 9F 90 00 2F [00:06:30]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 31 A4 4C 08 BD 9F 90 00 [00:06:30]wFMCommunicate OK [00:06:30]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:06:30]SAM_PROTO_ProcessDocument done [00:06:30]1209 (1) - 1.0 - номер версии ФФД [00:06:30]1041 (16) - 0000000000963346 - номер ФМ [00:06:30]1040 (4) - 70483 - номер ФД [00:06:30]1038 (4) - 195 - номер смены [00:06:30]1118 (4) - 430 - количество кассовых чеков за смену [00:06:30]1111 (4) - 432 - общее количество ФД за смену [00:06:30]1194 (1208) - счетчики итогов смены [00:06:30] 1134 (4) - 430 - количество чеков со всеми признаками расчетов [00:06:30] 1129 (158) - счетчики операций «приход» [00:06:30] 1135 (4) - 424 - количество чеков по признаку расчетов [00:06:30] 1201 (4) - 533673.87 - общая итоговая сумма в чеках [00:06:30] 1136 (4) - 433666.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (3) - 100007.87 - итоговая сумма в чеках безналичными [00:06:30] 1024 (123) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (12) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (3) - 56684.29 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (12) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (3) - 4723.53 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1130 (152) - счетчики операций «возврат прихода» [00:06:30] 1135 (4) - 6 - количество чеков по признаку расчетов [00:06:30] 1201 (3) - 30710.00 - общая итоговая сумма в чеках [00:06:30] 1136 (3) - 30710.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:30] 1024 (122) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (12) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (3) - 3261.30 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (11) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (2) - 271.78 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1131 (141) - счетчики операций «расход» [00:06:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:31] 1024 (117) - суммы налогов [00:06:31] 1006 (9) - суммы НДС [00:06:31] 1010 (1) - 0% - код ставки НДС [00:06:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:31] 1006 (9) - суммы НДС [00:06:31] 1010 (1) - 12% - код ставки НДС [00:06:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 0% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 1% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 2% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 3% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 5% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 0,50% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 1,50% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1132 (141) - счетчики операций «возврат расхода» [00:06:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:31] 1024 (117) - суммы налогов [00:06:31] 1006 (9) - суммы НДС [00:06:31] 1010 (1) - 0% - код ставки НДС [00:06:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:31] 1006 (9) - суммы НДС [00:06:31] 1010 (1) - 12% - код ставки НДС [00:06:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 0% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 1% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 2% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 3% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 5% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 0,50% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1007 (9) - суммы НСП [00:06:31] 1014 (1) - 1,50% - код ставки НСП [00:06:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:31] 1133 (588) - - счетчики коррекции - не используются [00:06:31]1077 (6) - 54581720038815 - ФПД [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1209 (04B9) [00:06:31]Malloc new data [00:06:31]Processing tag 1041 (0411) [00:06:31]Processing tag 1040 (0410) [00:06:31]Malloc new data [00:06:31]Processing tag 1038 (040E) [00:06:31]Malloc new data [00:06:31]Processing tag 1118 (045E) [00:06:31]Malloc new data [00:06:31]Processing tag 1111 (0457) [00:06:31]Malloc new data [00:06:31]Processing tag 1194 (04AA) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1134 (046E) [00:06:31]Malloc new data [00:06:31]Processing tag 1129 (0469) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1135 (046F) [00:06:31]Malloc new data [00:06:31]Processing tag 1201 (04B1) [00:06:31]Malloc new data [00:06:31]Processing tag 1136 (0470) [00:06:31]Malloc new data [00:06:31]Processing tag 1138 (0472) [00:06:31]Malloc new data [00:06:31]Processing tag 1024 (0400) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1130 (046A) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1135 (046F) [00:06:31]Malloc new data [00:06:31]Processing tag 1201 (04B1) [00:06:31]Malloc new data [00:06:31]Processing tag 1136 (0470) [00:06:31]Malloc new data [00:06:31]Processing tag 1138 (0472) [00:06:31]Malloc new data [00:06:31]Processing tag 1024 (0400) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1131 (046B) [00:06:31]OFD Sender: No OFD packet to send [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1135 (046F) [00:06:31]Malloc new data [00:06:31]Processing tag 1201 (04B1) [00:06:31]Malloc new data [00:06:31]Processing tag 1136 (0470) [00:06:31]Malloc new data [00:06:31]Processing tag 1138 (0472) [00:06:31]Malloc new data [00:06:31]Processing tag 1024 (0400) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1132 (046C) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1135 (046F) [00:06:31]Malloc new data [00:06:31]Processing tag 1201 (04B1) [00:06:31]Malloc new data [00:06:31]Processing tag 1136 (0470) [00:06:31]Malloc new data [00:06:31]Processing tag 1138 (0472) [00:06:31]Malloc new data [00:06:31]Processing tag 1024 (0400) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:32]Processing tag 1014 (03F6) [00:06:32]Malloc new data [00:06:32]Processing tag 1015 (03F7) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Processing tag 1007 (03EF) [00:06:32]Load OK [00:06:32]SetTLVBufToDocument [00:06:32]Processing tag 1014 (03F6) [00:06:32]Malloc new data [00:06:32]Processing tag 1015 (03F7) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Processing tag 1007 (03EF) [00:06:32]Load OK [00:06:32]SetTLVBufToDocument [00:06:32]Processing tag 1014 (03F6) [00:06:32]Malloc new data [00:06:32]Processing tag 1015 (03F7) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Processing tag 1007 (03EF) [00:06:32]Load OK [00:06:32]SetTLVBufToDocument [00:06:32]Processing tag 1014 (03F6) [00:06:32]Malloc new data [00:06:32]Processing tag 1015 (03F7) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]SetTLVBufToDocument err=0 [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Processing tag 1133 (046D) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Processing tag 1077 (0435) [00:06:32]Malloc new data [00:06:32]SetTLVBufToDocument err=0 [00:06:32]Malloc new data [00:06:32]SAM_PROTO_GetFMData [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 13 03 00 [00:06:32]Write to MH i2c: E2 08 00 AB 36 80 13 03 00 00 00 00 00 60 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 AB 36 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 FD [00:06:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 AC 36 80 17 00 00 00 00 00 00 62 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 AC 36 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [00:06:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 AD 36 80 17 00 00 00 00 00 00 63 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 AD 36 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 75 [00:06:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 AE 36 80 17 00 00 00 00 00 00 64 [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 AE 36 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 F0 [00:06: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:06:34]wFMCommunicate OK [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 17 00 00 [00:06:34]Write to MH i2c: E2 08 00 AF 36 80 17 00 00 00 00 00 00 65 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 E2 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 E2 00 AF 36 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [00:06: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:06:34]wFMCommunicate OK [00:06:34]SAM_PROTO_GetFMData done [00:06:34]Malloc new data [00:06:34]Malloc new data [00:06:34]Malloc new data [00:06:34]Malloc new data [00:06:34]KKMLoadAndSignCloseShiftData err=0 [00:06:34]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ахмедова У. 23.10.2024 00:06 Смена: 195 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Чеков за смену: 430 ФД за смену: 432 Всего чеков: 430 ИТОГИ ПРИХОД Чеков: 424 Общий итог: 533673.87 Итого наличными: 433666.00 Итого безнал.: 100007.87 НДС 0% : 0.00 НДС 12% : 56684.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4723.53 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 30710.00 Итого наличными: 30710.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3261.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 271.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 402956.00 НС Приход: 81942719.36 НС Возвр.Прихода: 3023023.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 70483 ФМ: 0000000000963346 ФПД: 54581720038815 [00:06:34]StoreToDocumentArchive [00:06:34]shift 195 fd 70483 [00:06:34]save to /storage/0195/doc_00070483 [00:06:34]save last doc name /storage/0195/doc_00070483 to /storage/kkm_last_doc_name [00:06:34]save OK [00:06:34]Clear old archive folders... [00:06:34]Remove dir /storage/0010 [00:06:34]opendir ok [00:06:34]file . [00:06:34]file .. [00:06:34]file doc_1729641926 [00:06:34]remove file /storage/0010/doc_1729641926 [00:06:34]remove dir /storage/0010 [00:06:34]NVStorageSaveData kkm_registers [00:06:34]File name is /storage/kkm_registers [00:06:34]Write 24 bytes [00:06:34]NVStorageSaveData done [00:06:34]NVStorageSaveData kkm_registers [00:06:34]File name is /storage/kkm_registers [00:06:34]Write 24 bytes [00:06:34]NVStorageSaveData done [00:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:06:34]tlvbuf is 00C6DD60 [00:06:34]SAM_PROTO_ClearQueue [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 09 00 00 [00:06:34]Write to MH i2c: E2 08 00 B0 36 80 09 00 00 00 00 00 00 58 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 03 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 03 00 B0 36 00 90 00 5A [00:06:34]RAPDU: 90 00 [00:06:34]wFMCommunicate OK [00:06:34]SAM_PROTO_ClearQueue done [00:06:34]KKMCreateOFDPacket [00:06:34]OFDProtocolAddRootSTLVToBuf [00:06:34]FM_MakeSignedData [00:06:34]FM_MakeSignedData [00:06:34]SAM_PROTO_SignData [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 0D 01 02 [00:06:34]Write to MH i2c: E2 08 00 B1 36 80 0D 01 02 00 00 00 00 60 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 03 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 03 00 B1 36 00 90 00 5B [00:06:34]RAPDU: 90 00 [00:06:34]wFMCommunicate OK [00:06:34]wFMCommunicate request_size=255 [00:06:34]MH_SAM_APDU [00:06:34]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 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 05 3E 18 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 DF 04 6E 04 04 00 AE 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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:06:35]Write to MH i2c: E2 02 01 B2 36 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 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 05 3E 18 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 DF 04 6E 04 04 00 AE 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 B2 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 03 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 03 00 B2 36 00 90 00 5C [00:06:35]RAPDU: 90 00 [00:06:35]wFMCommunicate OK [00:06:35]wFMCommunicate request_size=255 [00:06:35]MH_SAM_APDU [00:06:35]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 21 35 07 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A 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:06:35]Write to MH i2c: E2 02 01 B3 36 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 21 35 07 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A 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 14 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 03 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 03 00 B3 36 00 90 00 5D [00:06:36]RAPDU: 90 00 [00:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=255 [00:06:36]MH_SAM_APDU [00:06:36]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:06:36]Write to MH i2c: E2 02 01 B4 36 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 1C [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 03 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 03 00 B4 36 00 90 00 5E [00:06:36]RAPDU: 90 00 [00:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=255 [00:06:36]MH_SAM_APDU [00:06:36]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 OFD Sender: No OFD packet to send [00:06:36]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:06:36]Write to MH i2c: E2 02 01 B5 36 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 3C [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 B5 36 00 90 00 5F [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=255 [00:06:37]MH_SAM_APDU [00:06:37]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:06:37]Write to MH i2c: E2 02 01 B6 36 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 F6 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 03 00 B6 36 00 90 00 60 [00:06:37]RAPDU: 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=148 [00:06:37]MH_SAM_APDU [00:06:37]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 53 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 31 A4 4C 08 BD 9F [00:06:38]Write to MH i2c: E2 97 00 B7 36 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 53 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 31 A4 4C 08 BD 9F 00 00 91 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 03 00 B7 36 00 90 00 61 [00:06:38]RAPDU: 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 0D 03 02 [00:06:38]Write to MH i2c: E2 08 00 B8 36 80 0D 03 02 00 00 00 00 69 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 0B 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 0B 00 B8 36 00 E9 A4 7A 50 2B E6 47 31 90 00 4A [00:06:38]RAPDU: E9 A4 7A 50 2B E6 47 31 90 00 [00:06:38]wFMCommunicate OK [00:06:38]SAM_PROTO_SignData done [00:06:38]FM_MakeSignedData done [00:06:38]CreateOFDProtocolMessage [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 11 00 00 [00:06:38]Write to MH i2c: E2 08 00 B9 36 80 11 00 00 00 00 00 00 69 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 17 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 17 00 B9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [00:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:06:38]wFMCommunicate OK [00:06:38]CreateOFDProtocolMessage done [00:06:38]OFDSenderStorePacket 70483 [00:06:38]StoreOFDPacket docnum=70483 [00:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 81 05 00 00 19 31 79 05 B4 1F 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 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 05 3E 18 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 DF 04 6E 04 04 00 AE 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A 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 53 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 31 A4 4C 08 BD 9F E9 A4 7A 50 2B E6 47 31 [00:06:38]CheckFolder [00:06:38]dirname=/storage/ofd_packets [00:06:38]CheckFolder done [00:06:38]ProducePacketName [00:06:38]name=ofd_packets/00070483 [00:06:38]NVStorageSaveData ofd_packets/00070483 [00:06:38]File name is /storage/ofd_packets/00070483 [00:06:38]Write 1439 bytes [00:06:38]NVStorageSaveData done [00:06:38]OFDSenderStorePacket done [00:06:38]KKMCreateOFDPacket done [00:06:38]NVStorageSaveData kkm_last_timestamp [00:06:38]File name is /storage/kkm_last_timestamp [00:06:38]Write 4 bytes [00:06:38]NVStorageSaveData done [00:06:38]ExternCall_PrintAddStr [00:06:38]wPrintStart [00:06:38]Write to MH i2c: 01 00 00 BA 36 F0 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: 01 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: 01 07 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: 01 07 00 BA 36 00 00 00 00 00 FF 0F 05 [00:06:38]RasterBufferAndPrint [00:06:38]line Отчет о закрытии смены [00:06:38]line ФФД: 1.0 [00:06:38]line ИНН: 02508201610067 [00:06:38]line Кассир: Ахмедова У. [00:06:38]line 23.10.2024 00:06 [00:06:38]line Смена: 195 [00:06:38]line РНМ: 0000000000156251 [00:06:38]line ЗНМ: 0300000167 [00:06:38]line СНО: Общий режим [00:06:38]line Чеков за смену: 430 [00:06:38]line ФД за смену: 432 [00:06:38]line Всего чеков: 430 [00:06:38]line ИТОГИ ПРИХОД [00:06:38]line Чеков: 424 [00:06:38]line Общий итог: 533673.87 [00:06:38]line Итого наличными: 433666.00 [00:06:38]line Итого безнал.: 100007.87 [00:06:38]line НДС 0% : 0.00 [00:06:38]OFD Sender: Processing packet 70483 [packets to send 18, broken 17] [00:06:38]ProducePacketName [00:06:38]name=ofd_packets/00070483 [00:06:38]OFD Sender: To server: pG, [00:06:38]CommunicateWithHost lk.salyk.kg:30040 [00:06:38]ConnectInit lk.salyk.kg [00:06:38]line НДС 12% : 56684.29 [00:06:38]line НСП 0% : 0.00 [00:06:38]line НСП 1,50% : 0.00 [00:06:38]line НСП 0,50% : 0.00 [00:06:38]line НСП 5% : 0.00 [00:06:38]line НСП 3% : 0.00 [00:06:38]line НСП 2% : 0.00 [00:06:38]line НСП 1% : 4723.53 [00:06:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:38]line Чеков: 6 [00:06:38]line Общий итог: 30710.00 [00:06:38]line Итого наличными: 30710.00 [00:06:38]line Итого безнал.: 0.00 [00:06:38]line НДС 0% : 0.00 [00:06:38]line НДС 12% : 3261.30 [00:06:38]line НСП 0% : 0.00 [00:06:38]line НСП 1,50% : 0.00 [00:06:38]line НСП 0,50% : 0.00 [00:06:38]line НСП 5% : 0.00 [00:06:38]line НСП 3% : 0.00 [00:06:38]line НСП 2% : 0.00 [00:06:38]line НСП 1% : 271.78 [00:06:38]line ИТОГИ РАСХОД [00:06:38]line Чеков: 0 [00:06:38]line Общий итог: 0.00 [00:06:38]line Итого наличными: 0.00 [00:06:38]line Итого безнал.: 0.00 [00:06:38]line НДС 0% : 0.00 [00:06:38]line НДС 12% : 0.00 [00:06:38]line НСП 0% : 0.00 [00:06:38]line НСП 1,50% : 0.00 [00:06:38]line НСП 0,50% : 0.00 [00:06:38]line НСП 5% : 0.00 [00:06:38]line НСП 3% : 0.00 [00:06:38]line НСП 2% : 0.00 [00:06:38]line НСП 1% : 0.00 [00:06:38]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:38]line Чеков: 0 [00:06:38]line Общий итог: 0.00 [00:06:38]line Итого наличными: 0.00 [00:06:38]line Итого безнал.: 0.00 [00:06:38]line НДС 0% : 0.00 [00:06:38]line НДС 12% : 0.00 [00:06:38]line НСП 0% : 0.00 [00:06:38]line НСП 1,50% : 0.00 [00:06:38]line НСП 0,50% : 0.00 [00:06:38]line НСП 5% : 0.00 [00:06:38]line НСП 3% : 0.00 [00:06:38]line НСП 2% : 0.00 [00:06:38]line НСП 1% : 0.00 [00:06:38]line Сумма внесений: 0.00 [00:06:38]line Сумма выплат: 0.00 [00:06:38]line Нал. в кассе: 402956.00 [00:06:38]line НС Приход: 81942719.36 [00:06:38]line НС Возвр.Прихода: 3023023.00 [00:06:38]line НС Расход: 0.00 [00:06:38]line НС Возвр.Расхода: 0.00 [00:06:38]line ФД: 70483 [00:06:38]line ФМ: 0000000000963346 [00:06:38]line ФПД: 54581720038815 [00:06:38]written 0, free lines is 4095 [00:06:38]Connected sock=10 [00:06: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 34 36 81 05 00 00 19 31 79 05 B4 1F 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 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 05 3E 18 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 AA 04 DF 04 6E 04 04 00 AE 01 00 00 69 04 A5 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 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 2A 6A 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 Write to MH i2c: 03 01 00 00 00 00 EF 0A 03 37 09 41 00 [00:06:39]F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 Write i2c OK [00:06:39]B1 MH_I2C_Read... [00:06:39]04 Read from MH i2c: 00 01 00 [00:06:39]70 MH_I2C_Read... [00:06:39]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 Read from MH i2c: 00 01 00 07 F3 00 03 [00:06:39]00 MH_I2C_Read... [00:06:39]00 Read from MH i2c: EE 01 03 07 09 00 00 0A F2 37 03 00 01 00 00 00 01 00 F3 00 03 F5 00 0A 00 47 EF [00:06:39]03 RasterBufferAndPrint [00:06:39]09 line [00:06:39]00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 line [00:06:39]01 line [00:06:39]00 line [00:06:39]01 line [00:06:39]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 31 A4 4C 08 BD 9F E9 A4 7A 50 2B E6 47 31 [00:06:40]written 0, free lines is 2952 [00:06:40]MH_Cut [00:06:40]Write to MH i2c: D1 01 00 11 37 01 1A [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 01 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: D1 01 00 11 37 00 19 [00:06:40]Write to MH i2c: 01 00 00 12 37 49 [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06: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 34 36 4F 00 00 00 FF F8 47 00 F8 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 34 36 10 04 04 00 53 13 01 00 F4 03 04 00 AF E7 17 67 B6 04 01 00 00 18 75 A2 7B 6C D0 CB 90 [00:06:40]CommunicateWithHost err = 0 [00:06:40]CheckOFDResponse [00:06:40]1017 (14) - 77093643461234 [00:06:40]1041 (16) - 0000000000963346 [00:06:40]1040 (4) - 70483 [00:06:40]1012 (4) - 22.10.2024 17:58 [00:06:40]1206 (1) - 0 [00:06:40]OFD Sender: Remove packet 70483 [00:06:40]ProducePacketName [00:06:40]name=ofd_packets/00070483 [00:06:40]NVStorageDeleteData [00:06:40]*** Cut start [00:06:40]*** Partial cut [00:06:40]*** CUTSNS_PIN = 1 [00:06:40]OFD Sender: No OFD packet to send [00:06:40]*** CUTSNS_PIN = 0 [00:06:41]*** Brake cut motor [00:06:41]Read from MH i2c: 01 [00:06:41]MH_I2C_Read... [00:06:41]*** Stop cut motor [00:06:41]*** Cut end [00:06:41]Read from MH i2c: 01 07 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: 01 07 00 12 37 00 00 00 00 00 FF 0F 5E [00:06:41]process_action close_shift done [00:06:41]requested_data is exist [00:06:41]produce_requested_data [00:06:41]requested_item fd.num is exist - process it [00:06:41]SAM_PROTO_GetFieldsCounters [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 00 00 [00:06:41]Write to MH i2c: E2 08 00 13 37 80 13 00 00 00 00 00 00 C6 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 62 00 13 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [00:06: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetFieldsCounters done [00:06:41]requested_item shift.num is exist - process it [00:06:41]requested_item shift.opened is exist - process it [00:06:41]req_shift_opened [00:06:41]FM_GetShiftState [00:06:41]SAM_PROTO_GetShiftState [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 01 00 [00:06:41]Write to MH i2c: E2 08 00 14 37 80 13 01 00 00 00 00 00 C8 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 14 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D3 [00:06:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetShiftState done [00:06:41]FM_GetShiftState done [00:06:41]req_shift_opened done [00:06:41]requested_item shift.open_date is exist - process it [00:06:41]req_shift_open_date [00:06:41]FM_GetShiftState [00:06:41]SAM_PROTO_GetShiftState [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 01 00 [00:06:41]Write to MH i2c: E2 08 00 15 37 80 13 01 00 00 00 00 00 C9 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 0E 00 15 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D4 [00:06:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]SAM_PROTO_GetShiftState done [00:06:41]FM_GetShiftState done [00:06:41]req_shift_open_date done [00:06:41]produce_requested_data done [00:06:41]produce_requested_data return {"fd.num":70483,"shift.num":195,"shift.opened":0,"shift.open_date":0} [00:06:41]process_action_free close_shift [00:06:41]json_value_free [00:06:41]json_value_free done [00:06:41]process_json_proto returns [00:06:41]Send response to host [00:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70483,"shift.num":195,"shift.opened":0,"shift.open_date":0}}} [00:06:41]free response buf [00:06:41]execute_script done [00:06:41]execute_script returns [00:06:41]free content buf [00:06:41]Sock 9.Close socket [00:06:41]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:49]accept exits with 7 [00:13:49]New connection [00:13:49]New thread 3066699108 created [00:13:49]Thread 3066555748 joined [00:13:49]Waiting for new connection... [00:13:49] Sock 7.Parse request [00:13:49]Sock 7.Check first char [00:13:49]Sock 7.First char is OK [00:13:49]request: POST /json_proto HTTP/1.0 [00:13:49]Method: POST [00:13:49]URL: /json_proto [00:13:49]Method is POST - this is cgi request [00:13:49]url: /json_proto [00:13:49]query_string will be loaded in cgi processing [00:13:49]execute_cgi json_proto POST (null) [00:13:49]execute_cgi path=json_proto method=POST [00:13:49]POST find Content-Length [00:13:49]Host: 172.17.50.3:8080 [00:13:49]Content-Length: 215 [00:13:49]Content-Type: application/json [00:13:49] [00:13:49]POST finish read [00:13:49]Found Content-Length = 215 [00:13:49]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:13:49]execute_script... [00:13:49]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:13:49]POST & json_proto [00:13:49]process_json_proto [00:13:49]json parsed OK: [00:13:49]protocol is kg_v1.0 [00:13:49]action value=get_value [00:13:49]process_action get_value [00:13:49]cmd_get_value [00:13:49]process_action get_value done [00:13:49]requested_data is exist [00:13:49]produce_requested_data [00:13:49]requested_item kkm.sn is exist - process it [00:13:49]requested_item kkm.ver is exist - process it [00:13:49]requested_item fm.sn is exist - process it [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 11 00 00 [00:13:49]Write to MH i2c: E2 08 00 16 37 80 11 00 00 00 00 00 00 C7 [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 17 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 17 00 16 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [00:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:13:49]wFMCommunicate OK [00:13:49]requested_item fd.num is exist - process it [00:13:49]SAM_PROTO_GetFieldsCounters [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 00 00 [00:13:49]Write to MH i2c: E2 08 00 17 37 80 13 00 00 00 00 00 00 CA [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 62 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 62 00 17 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [00:13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 13 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:49]wFMCommunicate OK [00:13:49]SAM_PROTO_GetFieldsCounters done [00:13:49]requested_item shift.num is exist - process it [00:13:49]requested_item shift.opened is exist - process it [00:13:49]req_shift_opened [00:13:49]FM_GetShiftState [00:13:49]SAM_PROTO_GetShiftState [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 01 00 [00:13:49]Write to MH i2c: E2 08 00 18 37 80 13 01 00 00 00 00 00 CC [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 18 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D7 [00:13:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:49]wFMCommunicate OK [00:13:49]SAM_PROTO_GetShiftState done [00:13:49]FM_GetShiftState done [00:13:49]req_shift_opened done [00:13:49]requested_item shift.open_date is exist - process it [00:13:49]req_shift_open_date [00:13:49]FM_GetShiftState [00:13:49]SAM_PROTO_GetShiftState [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 01 00 [00:13:49]Write to MH i2c: E2 08 00 19 37 80 13 01 00 00 00 00 00 CD [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 19 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D8 [00:13:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:49]wFMCommunicate OK [00:13:49]SAM_PROTO_GetShiftState done [00:13:49]FM_GetShiftState done [00:13:49]req_shift_open_date done [00:13:49]produce_requested_data done [00:13:49]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70483,"shift.num":195,"shift.opened":0,"shift.open_date":0} [00:13:49]process_action_free get_value [00:13:49]json_value_free [00:13:49]json_value_free done [00:13:49]process_json_proto returns [00:13:49]Send response to host [00:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70483,"shift.num":195,"shift.opened":0,"shift.open_date":0}}} [00:13:49]free response buf [00:13:49]execute_script done [00:13:49]execute_script returns [00:13:49]free content buf [00:13:49]Sock 7.Close socket [00:13:49]Sock 7.Thread stoped [00:13:49]accept exits with 9 [00:13:49]New connection [00:13:49]New thread 3066555748 created [00:13:49]Thread 3066699108 joined [00:13:49]Waiting for new connection... [00:13:49] Sock 9.Parse request [00:13:49]Sock 9.Check first char [00:13:49]Sock 9.First char is OK [00:13:49]request: POST /json_proto HTTP/1.0 [00:13:49]Method: POST [00:13:49]URL: /json_proto [00:13:49]Method is POST - this is cgi request [00:13:49]url: /json_proto [00:13:49]query_string will be loaded in cgi processing [00:13:49]execute_cgi json_proto POST (null) [00:13:49]execute_cgi path=json_proto method=POST [00:13:49]POST find Content-Length [00:13:49]Host: 172.17.50.3:8080 [00:13:49]Content-Length: 331 [00:13:49]Content-Type: application/json [00:13:49] [00:13:49]POST finish read [00:13:49]Found Content-Length = 331 [00:13:49]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:13:49]execute_script... [00:13:49]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:13:49]POST & json_proto [00:13:49]process_json_proto [00:13:49]json parsed OK: [00:13:49]protocol is kg_v1.0 [00:13:49]action value=get_value [00:13:49]process_action get_value [00:13:49]cmd_get_value [00:13:49]process_action get_value done [00:13:49]requested_data is exist [00:13:49]produce_requested_data [00:13:49]requested_item fm.sale.total is exist - process it [00:13:49]SAM_PROTO_GetFMData [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 03 00 [00:13:49]Write to MH i2c: E2 08 00 1A 37 80 13 03 00 00 00 00 00 D0 [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:50]Read from MH i2c: E2 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 1A 37 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 6D [00:13:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:13:50]wFMCommunicate OK [00:13:50]wFMCommunicate request_size=4 [00:13:50]MH_SAM_APDU [00:13:50]CAPDU: 80 17 00 00 [00:13:50]Write to MH i2c: E2 08 00 1B 37 80 17 00 00 00 00 00 00 D2 [00:13:50]Write i2c OK [00:13:50]MH_I2C_Read... [00:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:50]Read from MH i2c: E2 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 1B 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [00:13:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:50]wFMCommunicate OK [00:13:50]wFMCommunicate request_size=4 [00:13:50]MH_SAM_APDU [00:13:50]CAPDU: 80 17 00 00 [00:13:50]Write to MH i2c: E2 08 00 1C 37 80 17 00 00 00 00 00 00 D3 [00:13:50]Write i2c OK [00:13:50]MH_I2C_Read... [00:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:50]Read from MH i2c: E2 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 [00:13:50]MH_I2C_Read... [00:13:50]Read from MH i2c: E2 FD 00 1C 37 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 E5 [00:13:50]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:13:50]wFMCommunicate OK [00:13:50]wFMCommunicate request_size=4 [00:13:50]MH_SAM_APDU [00:13:50]CAPDU: 80 17 00 00 [00:13:50]Write to MH i2c: E2 08 00 1D 37 80 17 00 00 00 00 00 00 D4 [00:13:50]Write i2c OK [00:13:50]MH_I2C_Read... [00:13:51]OFD Sender: No OFD packet to send [00:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:51]Read from MH i2c: E2 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 FD 00 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 FD 00 1D 37 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 60 [00:13:51]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:13:51]wFMCommunicate OK [00:13:51]wFMCommunicate request_size=4 [00:13:51]MH_SAM_APDU [00:13:51]CAPDU: 80 17 00 00 [00:13:51]Write to MH i2c: E2 08 00 1E 37 80 17 00 00 00 00 00 00 D5 [00:13:51]Write i2c OK [00:13:51]MH_I2C_Read... [00:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:13:51]Read from MH i2c: E2 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 E2 00 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 E2 00 1E 37 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [00:13:51]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:13:51]wFMCommunicate OK [00:13:51]SAM_PROTO_GetFMData done [00:13:51]requested_item fm.sale_refund.total is exist - process it [00:13:51]requested_item fm.buy.total is exist - process it [00:13:51]requested_item shift.sale.total is exist - process it [00:13:51]SAM_PROTO_GetShiftData [00:13:51]wFMCommunicate request_size=4 [00:13:51]MH_SAM_APDU [00:13:51]CAPDU: 80 13 02 00 [00:13:51]Write to MH i2c: E2 08 00 1F 37 80 13 02 00 00 00 00 00 D4 [00:13:51]Write i2c OK [00:13:51]MH_I2C_Read... [00:13:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:51]Read from MH i2c: E2 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 FD 00 [00:13:51]MH_I2C_Read... [00:13:51]Read from MH i2c: E2 FD 00 1F 37 00 BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B0 [00:13:51]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 AE 01 00 00 69 04 9E 00 6F 04 04 00 A8 01 00 00 B1 04 04 00 5B 52 2E 03 70 04 04 00 C8 B8 95 02 72 04 03 00 93 99 98 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 4D 7E 56 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 21 35 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 18 DC 2E 70 04 03 00 18 DC 2E 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 F2 F9 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:13:51]wFMCommunicate OK [00:13:51]wFMCommunicate request_size=4 [00:13:51]MH_SAM_APDU [00:13:51]CAPDU: 80 17 00 00 [00:13:51]Write to MH i2c: E2 08 00 20 37 80 17 00 00 00 00 00 00 D7 [00:13:51]Write i2c OK [00:13:51]MH_I2C_Read... [00:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:52]Read from MH i2c: E2 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 20 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [00:13:52]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:52]wFMCommunicate OK [00:13:52]wFMCommunicate request_size=4 [00:13:52]MH_SAM_APDU [00:13:52]CAPDU: 80 17 00 00 [00:13:52]Write to MH i2c: E2 08 00 21 37 80 17 00 00 00 00 00 00 D8 [00:13:52]Write i2c OK [00:13:52]MH_I2C_Read... [00:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:52]Read from MH i2c: E2 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 21 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 01 [00:13:52]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:13:52]wFMCommunicate OK [00:13:52]wFMCommunicate request_size=4 [00:13:52]MH_SAM_APDU [00:13:52]CAPDU: 80 17 00 00 [00:13:52]Write to MH i2c: E2 08 00 22 37 80 17 00 00 00 00 00 00 D9 [00:13:52]Write i2c OK [00:13:52]MH_I2C_Read... [00:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:52]Read from MH i2c: E2 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 [00:13:52]MH_I2C_Read... [00:13:52]Read from MH i2c: E2 FD 00 22 37 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 5A [00:13:52]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:13:52]wFMCommunicate OK [00:13:52]wFMCommunicate request_size=4 [00:13:52]MH_SAM_APDU [00:13:52]CAPDU: 80 17 00 00 [00:13:52]Write to MH i2c: E2 08 00 23 37 80 17 00 00 00 00 00 00 DA [00:13:52]Write i2c OK [00:13:52]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:13:53]Read from MH i2c: E2 D9 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 D9 00 23 37 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 B9 [00:13:53]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:13:53]wFMCommunicate OK [00:13:53]SAM_PROTO_GetShiftData done [00:13:53]requested_item shift.sale.total_cash is exist - process it [00:13:53]requested_item shift.sale_refund.total is exist - process it [00:13:53]requested_item shift.sale_refund.total_cash is exist - process it [00:13:53]requested_item shift.buy.total is exist - process it [00:13:53]requested_item shift.buy.total_cash is exist - process it [00:13:53]produce_requested_data done [00:13:53]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:13:53]process_action_free get_value [00:13:53]json_value_free [00:13:53]json_value_free done [00:13:53]process_json_proto returns [00:13:53]Send response to host [00:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":533673.87,"shift.sale.total_cash":433666.00,"shift.sale_refund.total":30710.00,"shift.sale_refund.total_cash":30710.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:13:53]free response buf [00:13:53]execute_script done [00:13:53]execute_script returns [00:13:53]free content buf [00:13:53]Sock 9.Close socket [00:13:53]Sock 9.Thread stoped [00:13:53]accept exits with 7 [00:13:53]New connection [00:13:53]New thread 3066699108 created [00:13:53]Thread 3066555748 joined [00:13:53]Waiting for new connection... [00:13:53] Sock 7.Parse request [00:13:53]Sock 7.Check first char [00:13:53]Sock 7.First char is OK [00:13:53]request: POST /json_proto HTTP/1.0 [00:13:53]Method: POST [00:13:53]URL: /json_proto [00:13:53]Method is POST - this is cgi request [00:13:53]url: /json_proto [00:13:53]query_string will be loaded in cgi processing [00:13:53]execute_cgi json_proto POST (null) [00:13:53]execute_cgi path=json_proto method=POST [00:13:53]POST find Content-Length [00:13:53]Host: 172.17.50.3:8080 [00:13:53]Content-Length: 259 [00:13:53]Content-Type: application/json [00:13:53] [00:13:53]POST finish read [00:13:53]Found Content-Length = 259 [00:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:53]execute_script... [00:13:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:53]POST & json_proto [00:13:53]process_json_proto [00:13:53]json parsed OK: [00:13:53]protocol is kg_v1.0 [00:13:53]action value=open_shift [00:13:53]process_action open_shift [00:13:53]cmd_open_shift [00:13:53]MH_GetDate [00:13:53]Write to MH i2c: F0 00 00 24 37 4A [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 09 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 09 00 24 37 00 C3 3F 18 67 6B 98 1E 66 5B [00:13:53]GetLastDocTimeStamp 1729641989 [00:13:53]current date 1729642435 [00:13:53]FM_GetShiftState [00:13:53]SAM_PROTO_GetShiftState [00:13:53]wFMCommunicate request_size=4 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 13 01 00 [00:13:53]Write to MH i2c: E2 08 00 25 37 80 13 01 00 00 00 00 00 D9 [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 0E 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 0E 00 25 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:13:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:53]wFMCommunicate OK [00:13:53]SAM_PROTO_GetShiftState done [00:13:53]FM_GetShiftState done [00:13:53]KKMCreateOpenShiftDocument [00:13:53]Load OK [00:13:53]Malloc new data [00:13:53]MH_GetDate [00:13:53]Write to MH i2c: F0 00 00 26 37 4C [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 09 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: F0 09 00 26 37 00 C3 3F 18 67 6B 98 1E 66 5D [00:13:53]Malloc new data [00:13:53]KKMCreateOpenShiftDocument OK [00:13:53]KKMSetOpenShiftData OK [00:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=209 [00:13:53]tlvbuf is 00CE59F0 [00:13:53]KKMLoadAndSignOpenShiftData [00:13:53]SAM_PROTO_ProcessDocument [00:13:53]wFMCommunicate request_size=9 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 15 01 00 04 02 00 D1 00 [00:13:53]Write to MH i2c: E2 0C 00 27 37 80 15 01 00 04 00 02 00 D1 00 00 00 B8 [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 27 37 00 90 00 D2 [00:13:53]RAPDU: 90 00 [00:13:53]wFMCommunicate OK [00:13:53]wFMCommunicate request_size=23 [00:13:53]MH_SAM_APDU [00:13:53]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:13:53]Write to MH i2c: E2 1A 00 28 37 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 D4 [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 28 37 00 90 00 D3 [00:13:53]RAPDU: 90 00 [00:13:53]wFMCommunicate OK [00:13:53]wFMCommunicate request_size=30 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:13:53]Write to MH i2c: E2 21 00 29 37 80 15 02 00 19 00 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 00 [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 29 37 00 90 00 D4 [00:13:53]RAPDU: 90 00 [00:13:53]wFMCommunicate OK [00:13:53]wFMCommunicate request_size=98 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 [00:13:53]Write to MH i2c: E2 65 00 2A 37 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 00 00 F8 [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 2A 37 00 90 00 D5 [00:13:53]RAPDU: 90 00 [00:13:53]wFMCommunicate OK [00:13:53]wFMCommunicate request_size=50 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:13:53]Write to MH i2c: E2 35 00 2B 37 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 5E [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:53]Read from MH i2c: E2 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 [00:13:53]MH_I2C_Read... [00:13:53]Read from MH i2c: E2 03 00 2B 37 00 90 00 D6 [00:13:53]RAPDU: 90 00 [00:13:53]wFMCommunicate OK [00:13:53]wFMCommunicate request_size=13 [00:13:53]MH_SAM_APDU [00:13:53]CAPDU: 80 15 02 00 08 F4 03 04 00 C3 3F 18 67 [00:13:53]Write to MH i2c: E2 10 00 2C 37 80 15 02 00 08 00 F4 03 04 00 C3 3F 18 67 00 00 6F [00:13:53]Write i2c OK [00:13:53]MH_I2C_Read... [00:13:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:54]Read from MH i2c: E2 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 03 00 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 03 00 2C 37 00 90 00 D7 [00:13:54]RAPDU: 90 00 [00:13:54]wFMCommunicate OK [00:13:54]wFMCommunicate request_size=25 [00:13:54]MH_SAM_APDU [00:13:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:13:54]Write to MH i2c: E2 1C 00 2D 37 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 41 [00:13:54]Write i2c OK [00:13:54]MH_I2C_Read... [00:13:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:54]Read from MH i2c: E2 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 03 00 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 03 00 2D 37 00 90 00 D8 [00:13:54]RAPDU: 90 00 [00:13:54]wFMCommunicate OK [00:13:54]wFMCommunicate request_size=4 [00:13:54]MH_SAM_APDU [00:13:54]CAPDU: 80 15 03 00 [00:13:54]Write to MH i2c: E2 08 00 2E 37 80 15 03 00 00 00 00 00 E6 [00:13:54]Write i2c OK [00:13:54]MH_I2C_Read... [00:13:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:13:54]Read from MH i2c: E2 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 38 00 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 38 00 2E 37 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 34 36 10 04 04 00 54 13 01 00 0E 04 04 00 C4 00 00 00 35 04 06 00 8A B6 0E 61 DF 28 90 00 93 [00:13:54]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 34 36 10 04 04 00 54 13 01 00 0E 04 04 00 C4 00 00 00 35 04 06 00 8A B6 0E 61 DF 28 90 00 [00:13:54]wFMCommunicate OK [00:13:54]SAM_PROTO_ProcessDocument answer len = 51 [00:13:54]SAM_PROTO_ProcessDocument done [00:13:54]SetTLVBufToDocument [00:13:54]Processing tag 1209 (04B9) [00:13:54]Malloc new data [00:13:54]Processing tag 1041 (0411) [00:13:54]Processing tag 1040 (0410) [00:13:54]Malloc new data [00:13:54]Processing tag 1038 (040E) [00:13:54]Malloc new data [00:13:54]Processing tag 1077 (0435) [00:13:54]Malloc new data [00:13:54]SetTLVBufToDocument err=0 [00:13:54]KKMLoadAndSignOpenShiftData store KKM data [00:13:54]KKMLoadAndSignOpenShiftData err=0 [00:13:54]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Калмаева Г. Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 Место: АЗС № 85 "Партнер Нефть" 23.10.2024 00:13 Смена: 196 РНМ: 0000000000156251 ЗНМ: 0300000167 ФД: 70484 ФМ: 0000000000963346 ФПД: 152514529976104 [00:13:54]StoreToDocumentArchive [00:13:54]shift 196 fd 70484 [00:13:54]Create dir for shift 0196 [00:13:54]save to /storage/0196/doc_00070484 [00:13:54]save last doc name /storage/0196/doc_00070484 to /storage/kkm_last_doc_name [00:13:54]save OK [00:13:54]Clear old archive folders... [00:13:54]Remove dir /storage/0195 [00:13:54]opendir ok [00:13:54]file . [00:13:54]file .. [00:13:54]file doc_00070052 [00:13:54]remove file /storage/0195/doc_00070052 [00:13:54]file doc_00070053 [00:13:54]remove file /storage/0195/doc_00070053 [00:13:54]file doc_00070054 [00:13:54]remove file /storage/0195/doc_00070054 [00:13:54]file doc_00070055 [00:13:54]remove file /storage/0195/doc_00070055 [00:13:54]file doc_00070056 [00:13:54]remove file /storage/0195/doc_00070056 [00:13:54]file doc_00070057 [00:13:54]remove file /storage/0195/doc_00070057 [00:13:54]file doc_00070058 [00:13:54]remove file /storage/0195/doc_00070058 [00:13:54]file doc_00070059 [00:13:54]remove file /storage/0195/doc_00070059 [00:13:54]file doc_00070060 [00:13:54]remove file /storage/0195/doc_00070060 [00:13:54]file doc_00070061 [00:13:54]remove file /storage/0195/doc_00070061 [00:13:54]file doc_00070062 [00:13:54]remove file /storage/0195/doc_00070062 [00:13:54]file doc_00070063 [00:13:54]remove file /storage/0195/doc_00070063 [00:13:54]file doc_00070064 [00:13:54]remove file /storage/0195/doc_00070064 [00:13:54]file doc_00070065 [00:13:54]remove file /storage/0195/doc_00070065 [00:13:54]file doc_00070066 [00:13:54]remove file /storage/0195/doc_00070066 [00:13:54]file doc_00070067 [00:13:54]remove file /storage/0195/doc_00070067 [00:13:54]file doc_00070068 [00:13:54]remove file /storage/0195/doc_00070068 [00:13:54]file doc_00070069 [00:13:54]remove file /storage/0195/doc_00070069 [00:13:54]file doc_00070070 [00:13:54]remove file /storage/0195/doc_00070070 [00:13:54]file doc_00070071 [00:13:54]remove file /storage/0195/doc_00070071 [00:13:54]file doc_00070072 [00:13:54]remove file /storage/0195/doc_00070072 [00:13:54]file doc_00070073 [00:13:54]remove file /storage/0195/doc_00070073 [00:13:54]file doc_00070074 [00:13:54]remove file /storage/0195/doc_00070074 [00:13:54]file doc_00070075 [00:13:54]remove file /storage/0195/doc_00070075 [00:13:54]file doc_00070076 [00:13:54]remove file /storage/0195/doc_00070076 [00:13:54]file doc_00070077 [00:13:54]remove file /storage/0195/doc_00070077 [00:13:54]file doc_00070078 [00:13:54]remove file /storage/0195/doc_00070078 [00:13:54]file doc_00070079 [00:13:54]remove file /storage/0195/doc_00070079 [00:13:54]file doc_00070080 [00:13:54]remove file /storage/0195/doc_00070080 [00:13:54]file doc_00070081 [00:13:54]remove file /storage/0195/doc_00070081 [00:13:54]file doc_00070082 [00:13:54]remove file /storage/0195/doc_00070082 [00:13:54]file doc_00070083 [00:13:54]remove file /storage/0195/doc_00070083 [00:13:54]file doc_00070084 [00:13:54]remove file /storage/0195/doc_00070084 [00:13:54]file doc_00070085 [00:13:54]remove file /storage/0195/doc_00070085 [00:13:54]file doc_00070086 [00:13:54]remove file /storage/0195/doc_00070086 [00:13:54]file doc_00070087 [00:13:54]remove file /storage/0195/doc_00070087 [00:13:54]file doc_00070088 [00:13:54]remove file /storage/0195/doc_00070088 [00:13:54]file doc_00070089 [00:13:54]remove file /storage/0195/doc_00070089 [00:13:54]file doc_00070090 [00:13:54]remove file /storage/0195/doc_00070090 [00:13:54]file doc_00070091 [00:13:54]remove file /storage/0195/doc_00070091 [00:13:54]file doc_00070092 [00:13:54]remove file /storage/0195/doc_00070092 [00:13:54]file doc_00070093 [00:13:54]remove file /storage/0195/doc_00070093 [00:13:54]file doc_00070094 [00:13:54]remove file /storage/0195/doc_00070094 [00:13:54]file doc_00070095 [00:13:54]remove file /storage/0195/doc_00070095 [00:13:54]file doc_00070096 [00:13:54]remove file /storage/0195/doc_00070096 [00:13:54]file doc_00070097 [00:13:54]remove file /storage/0195/doc_00070097 [00:13:54]file doc_00070098 [00:13:54]remove file /storage/0195/doc_00070098 [00:13:54]file doc_00070099 [00:13:54]remove file /storage/0195/doc_00070099 [00:13:54]file doc_00070100 [00:13:54]remove file /storage/0195/doc_00070100 [00:13:54]file doc_00070101 [00:13:54]remove file /storage/0195/doc_00070101 [00:13:54]file doc_00070102 [00:13:54]remove file /storage/0195/doc_00070102 [00:13:54]file doc_00070103 [00:13:54]remove file /storage/0195/doc_00070103 [00:13:54]file doc_00070104 [00:13:54]remove file /storage/0195/doc_00070104 [00:13:54]file doc_00070105 [00:13:54]remove file /storage/0195/doc_00070105 [00:13:54]file doc_00070106 [00:13:54]remove file /storage/0195/doc_00070106 [00:13:54]file doc_00070107 [00:13:54]remove file /storage/0195/doc_00070107 [00:13:54]file doc_00070108 [00:13:54]remove file /storage/0195/doc_00070108 [00:13:54]file doc_00070109 [00:13:54]remove file /storage/0195/doc_00070109 [00:13:54]file doc_00070110 [00:13:54]remove file /storage/0195/doc_00070110 [00:13:54]file doc_00070111 [00:13:54]remove file /storage/0195/doc_00070111 [00:13:54]file doc_00070112 [00:13:54]remove file /storage/0195/doc_00070112 [00:13:54]file doc_00070113 [00:13:54]remove file /storage/0195/doc_00070113 [00:13:54]file doc_00070114 [00:13:54]remove file /storage/0195/doc_00070114 [00:13:54]file doc_00070115 [00:13:54]remove file /storage/0195/doc_00070115 [00:13:54]file doc_00070116 [00:13:54]remove file /storage/0195/doc_00070116 [00:13:54]file doc_00070117 [00:13:54]remove file /storage/0195/doc_00070117 [00:13:54]file doc_00070118 [00:13:54]remove file /storage/0195/doc_00070118 [00:13:54]file doc_00070119 [00:13:54]remove file /storage/0195/doc_00070119 [00:13:54]file doc_00070120 [00:13:54]remove file /storage/0195/doc_00070120 [00:13:54]file doc_00070121 [00:13:54]remove file /storage/0195/doc_00070121 [00:13:54]file doc_00070122 [00:13:54]remove file /storage/0195/doc_00070122 [00:13:54]file doc_00070123 [00:13:54]remove file /storage/0195/doc_00070123 [00:13:54]file doc_00070124 [00:13:54]remove file /storage/0195/doc_00070124 [00:13:54]file doc_00070125 [00:13:54]remove file /storage/0195/doc_00070125 [00:13:54]file doc_00070126 [00:13:54]remove file /storage/0195/doc_00070126 [00:13:54]file doc_00070127 [00:13:54]remove file /storage/0195/doc_00070127 [00:13:54]file doc_00070128 [00:13:54]remove file /storage/0195/doc_00070128 [00:13:54]file doc_00070129 [00:13:54]remove file /storage/0195/doc_00070129 [00:13:54]file doc_00070130 [00:13:54]remove file /storage/0195/doc_00070130 [00:13:54]file doc_00070131 [00:13:54]remove file /storage/0195/doc_00070131 [00:13:54]file doc_00070132 [00:13:54]remove file /storage/0195/doc_00070132 [00:13:54]file doc_00070133 [00:13:54]remove file /storage/0195/doc_00070133 [00:13:54]file doc_00070134 [00:13:54]remove file /storage/0195/doc_00070134 [00:13:54]file doc_00070135 [00:13:54]remove file /storage/0195/doc_00070135 [00:13:54]file doc_00070136 [00:13:54]remove file /storage/0195/doc_00070136 [00:13:54]file doc_00070137 [00:13:54]remove file /storage/0195/doc_00070137 [00:13:54]file doc_00070138 [00:13:54]remove file /storage/0195/doc_00070138 [00:13:54]file doc_00070139 [00:13:54]remove file /storage/0195/doc_00070139 [00:13:54]file doc_00070140 [00:13:54]remove file /storage/0195/doc_00070140 [00:13:54]file doc_00070141 [00:13:54]remove file /storage/0195/doc_00070141 [00:13:54]file doc_00070142 [00:13:54]remove file /storage/0195/doc_00070142 [00:13:54]file doc_00070143 [00:13:54]remove file /storage/0195/doc_00070143 [00:13:54]file doc_00070144 [00:13:54]remove file /storage/0195/doc_00070144 [00:13:54]file doc_00070145 [00:13:54]remove file /storage/0195/doc_00070145 [00:13:54]file doc_00070146 [00:13:54]remove file /storage/0195/doc_00070146 [00:13:54]file doc_00070147 [00:13:54]remove file /storage/0195/doc_00070147 [00:13:54]file doc_00070148 [00:13:54]remove file /storage/0195/doc_00070148 [00:13:54]file doc_00070149 [00:13:54]remove file /storage/0195/doc_00070149 [00:13:54]file doc_00070150 [00:13:54]remove file /storage/0195/doc_00070150 [00:13:54]file doc_00070151 [00:13:54]remove file /storage/0195/doc_00070151 [00:13:54]file doc_00070152 [00:13:54]remove file /storage/0195/doc_00070152 [00:13:54]file doc_00070153 [00:13:54]remove file /storage/0195/doc_00070153 [00:13:54]file doc_00070154 [00:13:54]remove file /storage/0195/doc_00070154 [00:13:54]file doc_00070155 [00:13:54]remove file /storage/0195/doc_00070155 [00:13:54]file doc_00070156 [00:13:54]remove file /storage/0195/doc_00070156 [00:13:54]file doc_00070157 [00:13:54]remove file /storage/0195/doc_00070157 [00:13:54]file doc_00070158 [00:13:54]remove file /storage/0195/doc_00070158 [00:13:54]file doc_00070159 [00:13:54]remove file /storage/0195/doc_00070159 [00:13:54]file doc_00070160 [00:13:54]remove file /storage/0195/doc_00070160 [00:13:54]file doc_00070161 [00:13:54]remove file /storage/0195/doc_00070161 [00:13:54]file doc_00070162 [00:13:54]remove file /storage/0195/doc_00070162 [00:13:54]file doc_00070163 [00:13:54]remove file /storage/0195/doc_00070163 [00:13:54]file doc_00070164 [00:13:54]remove file /storage/0195/doc_00070164 [00:13:54]file doc_00070165 [00:13:54]remove file /storage/0195/doc_00070165 [00:13:54]file doc_00070166 [00:13:54]remove file /storage/0195/doc_00070166 [00:13:54]file doc_00070167 [00:13:54]remove file /storage/0195/doc_00070167 [00:13:54]file doc_00070168 [00:13:54]remove file /storage/0195/doc_00070168 [00:13:54]file doc_00070169 [00:13:54]remove file /storage/0195/doc_00070169 [00:13:54]file doc_00070170 [00:13:54]remove file /storage/0195/doc_00070170 [00:13:54]file doc_00070171 [00:13:54]remove file /storage/0195/doc_00070171 [00:13:54]file doc_00070172 [00:13:54]remove file /storage/0195/doc_00070172 [00:13:55]file doc_00070173 [00:13:55]remove file /storage/0195/doc_00070173 [00:13:55]file doc_00070174 [00:13:55]remove file /storage/0195/doc_00070174 [00:13:55]file doc_00070175 [00:13:55]remove file /storage/0195/doc_00070175 [00:13:55]file doc_00070176 [00:13:55]remove file /storage/0195/doc_00070176 [00:13:55]file doc_00070177 [00:13:55]remove file /storage/0195/doc_00070177 [00:13:55]file doc_00070178 [00:13:55]remove file /storage/0195/doc_00070178 [00:13:55]file doc_00070179 [00:13:55]remove file /storage/0195/doc_00070179 [00:13:55]file doc_00070180 [00:13:55]remove file /storage/0195/doc_00070180 [00:13:55]file doc_00070181 [00:13:55]remove file /storage/0195/doc_00070181 [00:13:55]file doc_00070182 [00:13:55]remove file /storage/0195/doc_00070182 [00:13:55]file doc_00070183 [00:13:55]remove file /storage/0195/doc_00070183 [00:13:55]file doc_00070184 [00:13:55]remove file /storage/0195/doc_00070184 [00:13:55]file doc_00070185 [00:13:55]remove file /storage/0195/doc_00070185 [00:13:55]file doc_00070186 [00:13:55]remove file /storage/0195/doc_00070186 [00:13:55]file doc_00070187 [00:13:55]remove file /storage/0195/doc_00070187 [00:13:55]file doc_00070188 [00:13:55]remove file /storage/0195/doc_00070188 [00:13:55]file doc_00070189 [00:13:55]remove file /storage/0195/doc_00070189 [00:13:55]file doc_00070190 [00:13:55]remove file /storage/0195/doc_00070190 [00:13:55]file doc_00070191 [00:13:55]remove file /storage/0195/doc_00070191 [00:13:55]file doc_00070192 [00:13:55]remove file /storage/0195/doc_00070192 [00:13:55]file doc_00070193 [00:13:55]remove file /storage/0195/doc_00070193 [00:13:55]file doc_00070194 [00:13:55]remove file /storage/0195/doc_00070194 [00:13:55]file doc_00070195 [00:13:55]remove file /storage/0195/doc_00070195 [00:13:55]file doc_00070196 [00:13:55]remove file /storage/0195/doc_00070196 [00:13:55]file doc_00070197 [00:13:55]remove file /storage/0195/doc_00070197 [00:13:55]file doc_00070198 [00:13:55]remove file /storage/0195/doc_00070198 [00:13:55]file doc_00070199 [00:13:55]remove file /storage/0195/doc_00070199 [00:13:55]file doc_00070200 [00:13:55]remove file /storage/0195/doc_00070200 [00:13:55]file doc_00070201 [00:13:55]remove file /storage/0195/doc_00070201 [00:13:55]file doc_00070202 [00:13:55]remove file /storage/0195/doc_00070202 [00:13:55]file doc_00070203 [00:13:55]remove file /storage/0195/doc_00070203 [00:13:55]file doc_00070204 [00:13:55]remove file /storage/0195/doc_00070204 [00:13:55]file doc_00070205 [00:13:55]remove file /storage/0195/doc_00070205 [00:13:55]file doc_00070206 [00:13:55]remove file /storage/0195/doc_00070206 [00:13:55]file doc_00070207 [00:13:55]remove file /storage/0195/doc_00070207 [00:13:55]file doc_00070208 [00:13:55]remove file /storage/0195/doc_00070208 [00:13:55]file doc_00070209 [00:13:55]remove file /storage/0195/doc_00070209 [00:13:55]file doc_00070210 [00:13:55]remove file /storage/0195/doc_00070210 [00:13:55]file doc_00070211 [00:13:55]remove file /storage/0195/doc_00070211 [00:13:55]file doc_00070212 [00:13:55]remove file /storage/0195/doc_00070212 [00:13:55]file doc_00070213 [00:13:55]remove file /storage/0195/doc_00070213 [00:13:55]file doc_00070214 [00:13:55]remove file /storage/0195/doc_00070214 [00:13:55]file doc_00070215 [00:13:55]remove file /storage/0195/doc_00070215 [00:13:55]file doc_00070216 [00:13:55]remove file /storage/0195/doc_00070216 [00:13:55]file doc_00070217 [00:13:55]remove file /storage/0195/doc_00070217 [00:13:55]file doc_00070218 [00:13:55]remove file /storage/0195/doc_00070218 [00:13:55]file doc_00070219 [00:13:55]remove file /storage/0195/doc_00070219 [00:13:55]file doc_00070220 [00:13:55]remove file /storage/0195/doc_00070220 [00:13:55]file doc_00070221 [00:13:55]remove file /storage/0195/doc_00070221 [00:13:55]file doc_00070222 [00:13:55]remove file /storage/0195/doc_00070222 [00:13:55]file doc_00070223 [00:13:55]remove file /storage/0195/doc_00070223 [00:13:55]file doc_00070224 [00:13:55]remove file /storage/0195/doc_00070224 [00:13:55]file doc_00070225 [00:13:55]remove file /storage/0195/doc_00070225 [00:13:55]file doc_00070226 [00:13:55]remove file /storage/0195/doc_00070226 [00:13:55]file doc_00070227 [00:13:55]remove file /storage/0195/doc_00070227 [00:13:55]file doc_00070228 [00:13:55]remove file /storage/0195/doc_00070228 [00:13:55]file doc_00070229 [00:13:55]remove file /storage/0195/doc_00070229 [00:13:55]file doc_00070230 [00:13:55]remove file /storage/0195/doc_00070230 [00:13:55]file doc_00070231 [00:13:55]remove file /storage/0195/doc_00070231 [00:13:55]file doc_00070232 [00:13:55]remove file /storage/0195/doc_00070232 [00:13:55]file doc_00070233 [00:13:55]remove file /storage/0195/doc_00070233 [00:13:55]file doc_00070234 [00:13:55]remove file /storage/0195/doc_00070234 [00:13:55]file doc_00070235 [00:13:55]remove file /storage/0195/doc_00070235 [00:13:55]file doc_00070236 [00:13:55]remove file /storage/0195/doc_00070236 [00:13:55]file doc_00070237 [00:13:55]remove file /storage/0195/doc_00070237 [00:13:55]file doc_00070238 [00:13:55]remove file /storage/0195/doc_00070238 [00:13:55]file doc_00070239 [00:13:55]remove file /storage/0195/doc_00070239 [00:13:55]file doc_00070240 [00:13:55]remove file /storage/0195/doc_00070240 [00:13:55]file doc_00070241 [00:13:55]remove file /storage/0195/doc_00070241 [00:13:55]file doc_00070242 [00:13:55]remove file /storage/0195/doc_00070242 [00:13:55]file doc_00070243 [00:13:55]remove file /storage/0195/doc_00070243 [00:13:55]file doc_00070244 [00:13:55]remove file /storage/0195/doc_00070244 [00:13:55]file doc_00070245 [00:13:55]remove file /storage/0195/doc_00070245 [00:13:55]file doc_00070246 [00:13:55]remove file /storage/0195/doc_00070246 [00:13:55]file doc_00070247 [00:13:55]remove file /storage/0195/doc_00070247 [00:13:55]file doc_00070248 [00:13:55]remove file /storage/0195/doc_00070248 [00:13:55]file doc_00070249 [00:13:55]remove file /storage/0195/doc_00070249 [00:13:55]file doc_00070250 [00:13:55]remove file /storage/0195/doc_00070250 [00:13:55]file doc_00070251 [00:13:55]remove file /storage/0195/doc_00070251 [00:13:55]file doc_00070252 [00:13:55]remove file /storage/0195/doc_00070252 [00:13:55]file doc_00070253 [00:13:55]remove file /storage/0195/doc_00070253 [00:13:55]file doc_00070254 [00:13:55]remove file /storage/0195/doc_00070254 [00:13:55]file doc_00070255 [00:13:55]remove file /storage/0195/doc_00070255 [00:13:55]file doc_00070256 [00:13:55]remove file /storage/0195/doc_00070256 [00:13:55]file doc_00070257 [00:13:55]remove file /storage/0195/doc_00070257 [00:13:55]file doc_00070258 [00:13:55]remove file /storage/0195/doc_00070258 [00:13:55]file doc_00070259 [00:13:55]remove file /storage/0195/doc_00070259 [00:13:55]file doc_00070260 [00:13:55]remove file /storage/0195/doc_00070260 [00:13:55]file doc_00070261 [00:13:55]remove file /storage/0195/doc_00070261 [00:13:55]file doc_00070262 [00:13:55]remove file /storage/0195/doc_00070262 [00:13:55]file doc_00070263 [00:13:55]remove file /storage/0195/doc_00070263 [00:13:55]file doc_00070264 [00:13:55]remove file /storage/0195/doc_00070264 [00:13:55]file doc_00070265 [00:13:55]remove file /storage/0195/doc_00070265 [00:13:55]file doc_00070266 [00:13:55]remove file /storage/0195/doc_00070266 [00:13:55]file doc_00070267 [00:13:55]remove file /storage/0195/doc_00070267 [00:13:55]file doc_00070268 [00:13:55]remove file /storage/0195/doc_00070268 [00:13:55]file doc_00070269 [00:13:55]remove file /storage/0195/doc_00070269 [00:13:55]file doc_00070270 [00:13:55]remove file /storage/0195/doc_00070270 [00:13:55]file doc_00070271 [00:13:55]remove file /storage/0195/doc_00070271 [00:13:55]file doc_00070272 [00:13:55]remove file /storage/0195/doc_00070272 [00:13:55]file doc_00070273 [00:13:55]remove file /storage/0195/doc_00070273 [00:13:55]file doc_00070274 [00:13:55]remove file /storage/0195/doc_00070274 [00:13:55]file doc_00070275 [00:13:55]remove file /storage/0195/doc_00070275 [00:13:55]file doc_00070276 [00:13:55]remove file /storage/0195/doc_00070276 [00:13:55]file doc_00070277 [00:13:55]remove file /storage/0195/doc_00070277 [00:13:55]file doc_00070278 [00:13:55]remove file /storage/0195/doc_00070278 [00:13:55]file doc_00070279 [00:13:55]remove file /storage/0195/doc_00070279 [00:13:55]file doc_00070280 [00:13:55]remove file /storage/0195/doc_00070280 [00:13:55]file doc_00070281 [00:13:55]remove file /storage/0195/doc_00070281 [00:13:55]file doc_00070282 [00:13:55]remove file /storage/0195/doc_00070282 [00:13:55]file doc_00070283 [00:13:55]remove file /storage/0195/doc_00070283 [00:13:55]file doc_00070284 [00:13:55]remove file /storage/0195/doc_00070284 [00:13:55]file doc_00070285 [00:13:55]remove file /storage/0195/doc_00070285 [00:13:55]file doc_00070286 [00:13:55]remove file /storage/0195/doc_00070286 [00:13:55]file doc_00070287 [00:13:55]remove file /storage/0195/doc_00070287 [00:13:55]file doc_00070288 [00:13:55]remove file /storage/0195/doc_00070288 [00:13:55]file doc_00070289 [00:13:55]remove file /storage/0195/doc_00070289 [00:13:55]file doc_00070290 [00:13:55]remove file /storage/0195/doc_00070290 [00:13:55]file doc_00070291 [00:13:55]remove file /storage/0195/doc_00070291 [00:13:55]file doc_00070292 [00:13:55]remove file /storage/0195/doc_00070292 [00:13:55]file doc_00070293 [00:13:55]remove file /storage/0195/doc_00070293 [00:13:55]file doc_00070294 [00:13:55]remove file /storage/0195/doc_00070294 [00:13:55]file doc_00070295 [00:13:55]remove file /storage/0195/doc_00070295 [00:13:55]file doc_00070296 [00:13:55]remove file /storage/0195/doc_00070296 [00:13:55]file doc_00070297 [00:13:55]remove file /storage/0195/doc_00070297 [00:13:55]file doc_00070298 [00:13:55]remove file /storage/0195/doc_00070298 [00:13:55]file doc_00070299 [00:13:55]remove file /storage/0195/doc_00070299 [00:13:55]file doc_00070300 [00:13:55]remove file /storage/0195/doc_00070300 [00:13:55]file doc_00070301 [00:13:55]remove file /storage/0195/doc_00070301 [00:13:55]file doc_00070302 [00:13:55]remove file /storage/0195/doc_00070302 [00:13:55]file doc_00070303 [00:13:55]remove file /storage/0195/doc_00070303 [00:13:55]file doc_00070304 [00:13:55]remove file /storage/0195/doc_00070304 [00:13:55]file doc_00070305 [00:13:55]remove file /storage/0195/doc_00070305 [00:13:55]file doc_00070306 [00:13:55]remove file /storage/0195/doc_00070306 [00:13:55]file doc_00070307 [00:13:55]remove file /storage/0195/doc_00070307 [00:13:55]file doc_00070308 [00:13:55]remove file /storage/0195/doc_00070308 [00:13:55]file doc_00070309 [00:13:55]remove file /storage/0195/doc_00070309 [00:13:55]file doc_00070310 [00:13:55]remove file /storage/0195/doc_00070310 [00:13:55]file doc_00070311 [00:13:55]remove file /storage/0195/doc_00070311 [00:13:55]file doc_00070312 [00:13:55]remove file /storage/0195/doc_00070312 [00:13:55]file doc_00070313 [00:13:55]remove file /storage/0195/doc_00070313 [00:13:55]file doc_00070314 [00:13:55]remove file /storage/0195/doc_00070314 [00:13:55]file doc_00070315 [00:13:55]remove file /storage/0195/doc_00070315 [00:13:55]file doc_00070316 [00:13:55]remove file /storage/0195/doc_00070316 [00:13:55]file doc_00070317 [00:13:55]remove file /storage/0195/doc_00070317 [00:13:55]file doc_00070318 [00:13:55]remove file /storage/0195/doc_00070318 [00:13:55]file doc_00070319 [00:13:55]remove file /storage/0195/doc_00070319 [00:13:55]file doc_00070320 [00:13:55]remove file /storage/0195/doc_00070320 [00:13:55]file doc_00070321 [00:13:55]remove file /storage/0195/doc_00070321 [00:13:55]file doc_00070322 [00:13:55]remove file /storage/0195/doc_00070322 [00:13:55]file doc_00070323 [00:13:55]remove file /storage/0195/doc_00070323 [00:13:55]file doc_00070324 [00:13:55]remove file /storage/0195/doc_00070324 [00:13:55]file doc_00070325 [00:13:55]remove file /storage/0195/doc_00070325 [00:13:55]file doc_00070326 [00:13:55]remove file /storage/0195/doc_00070326 [00:13:55]file doc_00070327 [00:13:55]remove file /storage/0195/doc_00070327 [00:13:55]file doc_00070328 [00:13:55]remove file /storage/0195/doc_00070328 [00:13:55]file doc_00070329 [00:13:55]remove file /storage/0195/doc_00070329 [00:13:55]file doc_00070330 [00:13:55]remove file /storage/0195/doc_00070330 [00:13:55]file doc_00070331 [00:13:55]remove file /storage/0195/doc_00070331 [00:13:55]file doc_00070332 [00:13:55]remove file /storage/0195/doc_00070332 [00:13:55]file doc_00070333 [00:13:55]remove file /storage/0195/doc_00070333 [00:13:55]file doc_00070334 [00:13:55]remove file /storage/0195/doc_00070334 [00:13:55]file doc_00070335 [00:13:55]remove file /storage/0195/doc_00070335 [00:13:55]file doc_00070336 [00:13:55]remove file /storage/0195/doc_00070336 [00:13:55]file doc_00070337 [00:13:55]remove file /storage/0195/doc_00070337 [00:13:55]file doc_00070338 [00:13:55]remove file /storage/0195/doc_00070338 [00:13:55]file doc_00070339 [00:13:55]remove file /storage/0195/doc_00070339 [00:13:55]file doc_00070340 [00:13:55]remove file /storage/0195/doc_00070340 [00:13:55]file doc_00070341 [00:13:55]remove file /storage/0195/doc_00070341 [00:13:55]file doc_00070342 [00:13:55]remove file /storage/0195/doc_00070342 [00:13:55]file doc_00070343 [00:13:55]remove file /storage/0195/doc_00070343 [00:13:55]file doc_00070344 [00:13:55]remove file /storage/0195/doc_00070344 [00:13:55]file doc_00070345 [00:13:55]remove file /storage/0195/doc_00070345 [00:13:55]file doc_00070346 [00:13:55]remove file /storage/0195/doc_00070346 [00:13:55]file doc_00070347 [00:13:55]remove file /storage/0195/doc_00070347 [00:13:55]file doc_00070348 [00:13:55]remove file /storage/0195/doc_00070348 [00:13:55]file doc_00070349 [00:13:55]remove file /storage/0195/doc_00070349 [00:13:55]file doc_00070350 [00:13:55]remove file /storage/0195/doc_00070350 [00:13:55]file doc_00070351 [00:13:55]remove file /storage/0195/doc_00070351 [00:13:55]file doc_00070352 [00:13:55]remove file /storage/0195/doc_00070352 [00:13:55]file doc_00070353 [00:13:55]remove file /storage/0195/doc_00070353 [00:13:55]file doc_00070354 [00:13:55]remove file /storage/0195/doc_00070354 [00:13:55]file doc_00070355 [00:13:55]remove file /storage/0195/doc_00070355 [00:13:55]file doc_00070356 [00:13:55]remove file /storage/0195/doc_00070356 [00:13:55]file doc_00070357 [00:13:55]remove file /storage/0195/doc_00070357 [00:13:55]file doc_00070358 [00:13:55]remove file /storage/0195/doc_00070358 [00:13:55]file doc_00070359 [00:13:55]remove file /storage/0195/doc_00070359 [00:13:55]file doc_00070360 [00:13:55]remove file /storage/0195/doc_00070360 [00:13:55]file doc_00070361 [00:13:55]remove file /storage/0195/doc_00070361 [00:13:55]file doc_00070362 [00:13:55]remove file /storage/0195/doc_00070362 [00:13:55]file doc_00070363 [00:13:55]remove file /storage/0195/doc_00070363 [00:13:55]file doc_00070364 [00:13:55]remove file /storage/0195/doc_00070364 [00:13:55]file doc_00070365 [00:13:55]remove file /storage/0195/doc_00070365 [00:13:55]file doc_00070366 [00:13:55]remove file /storage/0195/doc_00070366 [00:13:55]file doc_00070367 [00:13:55]remove file /storage/0195/doc_00070367 [00:13:55]file doc_00070368 [00:13:55]remove file /storage/0195/doc_00070368 [00:13:55]file doc_00070369 [00:13:55]remove file /storage/0195/doc_00070369 [00:13:56]file doc_00070370 [00:13:56]remove file /storage/0195/doc_00070370 [00:13:56]file doc_00070371 [00:13:56]remove file /storage/0195/doc_00070371 [00:13:56]file doc_00070372 [00:13:56]remove file /storage/0195/doc_00070372 [00:13:56]file doc_00070373 [00:13:56]remove file /storage/0195/doc_00070373 [00:13:56]file doc_00070374 [00:13:56]remove file /storage/0195/doc_00070374 [00:13:56]file doc_00070375 [00:13:56]remove file /storage/0195/doc_00070375 [00:13:56]file doc_00070376 [00:13:56]remove file /storage/0195/doc_00070376 [00:13:56]file doc_00070377 [00:13:56]remove file /storage/0195/doc_00070377 [00:13:56]file doc_00070378 [00:13:56]remove file /storage/0195/doc_00070378 [00:13:56]file doc_00070379 [00:13:56]remove file /storage/0195/doc_00070379 [00:13:56]file doc_00070380 [00:13:56]remove file /storage/0195/doc_00070380 [00:13:56]file doc_00070381 [00:13:56]remove file /storage/0195/doc_00070381 [00:13:56]file doc_00070382 [00:13:56]remove file /storage/0195/doc_00070382 [00:13:56]file doc_00070383 [00:13:56]remove file /storage/0195/doc_00070383 [00:13:56]file doc_00070384 [00:13:56]remove file /storage/0195/doc_00070384 [00:13:56]file doc_00070385 [00:13:56]remove file /storage/0195/doc_00070385 [00:13:56]file doc_00070386 [00:13:56]remove file /storage/0195/doc_00070386 [00:13:56]file doc_00070387 [00:13:56]remove file /storage/0195/doc_00070387 [00:13:56]file doc_00070388 [00:13:56]remove file /storage/0195/doc_00070388 [00:13:56]file doc_00070389 [00:13:56]remove file /storage/0195/doc_00070389 [00:13:56]file doc_00070390 [00:13:56]remove file /storage/0195/doc_00070390 [00:13:56]file doc_00070391 [00:13:56]remove file /storage/0195/doc_00070391 [00:13:56]file doc_00070392 [00:13:56]remove file /storage/0195/doc_00070392 [00:13:56]OFD Sender: No OFD packet to send [00:13:56]file doc_00070393 [00:13:56]remove file /storage/0195/doc_00070393 [00:13:56]file doc_00070394 [00:13:56]remove file /storage/0195/doc_00070394 [00:13:56]file doc_00070395 [00:13:56]remove file /storage/0195/doc_00070395 [00:13:56]file doc_00070396 [00:13:56]remove file /storage/0195/doc_00070396 [00:13:56]file doc_00070397 [00:13:56]remove file /storage/0195/doc_00070397 [00:13:56]file doc_00070398 [00:13:56]remove file /storage/0195/doc_00070398 [00:13:56]file doc_00070399 [00:13:56]remove file /storage/0195/doc_00070399 [00:13:56]file doc_00070400 [00:13:56]remove file /storage/0195/doc_00070400 [00:13:56]file doc_00070401 [00:13:56]remove file /storage/0195/doc_00070401 [00:13:56]file doc_00070402 [00:13:56]remove file /storage/0195/doc_00070402 [00:13:56]file doc_00070403 [00:13:56]remove file /storage/0195/doc_00070403 [00:13:56]file doc_00070404 [00:13:56]remove file /storage/0195/doc_00070404 [00:13:56]file doc_00070405 [00:13:56]remove file /storage/0195/doc_00070405 [00:13:56]file doc_00070406 [00:13:56]remove file /storage/0195/doc_00070406 [00:13:56]file doc_00070407 [00:13:56]remove file /storage/0195/doc_00070407 [00:13:56]file doc_00070408 [00:13:56]remove file /storage/0195/doc_00070408 [00:13:56]file doc_00070409 [00:13:56]remove file /storage/0195/doc_00070409 [00:13:56]file doc_00070410 [00:13:56]remove file /storage/0195/doc_00070410 [00:13:56]file doc_00070411 [00:13:56]remove file /storage/0195/doc_00070411 [00:13:56]file doc_00070412 [00:13:56]remove file /storage/0195/doc_00070412 [00:13:56]file doc_00070413 [00:13:56]remove file /storage/0195/doc_00070413 [00:13:56]file doc_00070414 [00:13:56]remove file /storage/0195/doc_00070414 [00:13:56]file doc_00070415 [00:13:56]remove file /storage/0195/doc_00070415 [00:13:56]file doc_00070416 [00:13:56]remove file /storage/0195/doc_00070416 [00:13:56]file doc_00070417 [00:13:56]remove file /storage/0195/doc_00070417 [00:13:56]file doc_00070418 [00:13:56]remove file /storage/0195/doc_00070418 [00:13:56]file doc_00070419 [00:13:56]remove file /storage/0195/doc_00070419 [00:13:56]file doc_00070420 [00:13:56]remove file /storage/0195/doc_00070420 [00:13:56]file doc_00070421 [00:13:56]remove file /storage/0195/doc_00070421 [00:13:56]file doc_00070422 [00:13:56]remove file /storage/0195/doc_00070422 [00:13:56]file doc_00070423 [00:13:56]remove file /storage/0195/doc_00070423 [00:13:56]file doc_00070424 [00:13:56]remove file /storage/0195/doc_00070424 [00:13:56]file doc_00070425 [00:13:56]remove file /storage/0195/doc_00070425 [00:13:56]file doc_00070426 [00:13:56]remove file /storage/0195/doc_00070426 [00:13:56]file doc_00070427 [00:13:56]remove file /storage/0195/doc_00070427 [00:13:56]file doc_00070428 [00:13:56]remove file /storage/0195/doc_00070428 [00:13:56]file doc_00070429 [00:13:56]remove file /storage/0195/doc_00070429 [00:13:56]file doc_00070430 [00:13:56]remove file /storage/0195/doc_00070430 [00:13:56]file doc_00070431 [00:13:56]remove file /storage/0195/doc_00070431 [00:13:56]file doc_00070432 [00:13:56]remove file /storage/0195/doc_00070432 [00:13:56]file doc_00070433 [00:13:56]remove file /storage/0195/doc_00070433 [00:13:56]file doc_00070434 [00:13:56]remove file /storage/0195/doc_00070434 [00:13:56]file doc_00070435 [00:13:56]remove file /storage/0195/doc_00070435 [00:13:56]file doc_00070436 [00:13:56]remove file /storage/0195/doc_00070436 [00:13:56]file doc_00070437 [00:13:56]remove file /storage/0195/doc_00070437 [00:13:56]file doc_00070438 [00:13:56]remove file /storage/0195/doc_00070438 [00:13:56]file doc_00070439 [00:13:56]remove file /storage/0195/doc_00070439 [00:13:56]file doc_00070440 [00:13:56]remove file /storage/0195/doc_00070440 [00:13:56]file doc_00070441 [00:13:56]remove file /storage/0195/doc_00070441 [00:13:56]file doc_00070442 [00:13:56]remove file /storage/0195/doc_00070442 [00:13:56]file doc_00070443 [00:13:56]remove file /storage/0195/doc_00070443 [00:13:56]file doc_00070444 [00:13:56]remove file /storage/0195/doc_00070444 [00:13:56]file doc_00070445 [00:13:56]remove file /storage/0195/doc_00070445 [00:13:56]file doc_00070446 [00:13:56]remove file /storage/0195/doc_00070446 [00:13:56]file doc_00070447 [00:13:56]remove file /storage/0195/doc_00070447 [00:13:56]file doc_00070448 [00:13:56]remove file /storage/0195/doc_00070448 [00:13:56]file doc_00070449 [00:13:56]remove file /storage/0195/doc_00070449 [00:13:56]file doc_00070450 [00:13:56]remove file /storage/0195/doc_00070450 [00:13:56]file doc_00070451 [00:13:56]remove file /storage/0195/doc_00070451 [00:13:56]file doc_00070452 [00:13:56]remove file /storage/0195/doc_00070452 [00:13:56]file doc_00070453 [00:13:56]remove file /storage/0195/doc_00070453 [00:13:56]file doc_00070454 [00:13:56]remove file /storage/0195/doc_00070454 [00:13:56]file doc_00070455 [00:13:56]remove file /storage/0195/doc_00070455 [00:13:56]file doc_00070456 [00:13:56]remove file /storage/0195/doc_00070456 [00:13:56]file doc_00070457 [00:13:56]remove file /storage/0195/doc_00070457 [00:13:56]file doc_00070458 [00:13:56]remove file /storage/0195/doc_00070458 [00:13:56]file doc_00070459 [00:13:56]remove file /storage/0195/doc_00070459 [00:13:56]file doc_00070460 [00:13:56]remove file /storage/0195/doc_00070460 [00:13:56]file doc_00070461 [00:13:56]remove file /storage/0195/doc_00070461 [00:13:56]file doc_00070462 [00:13:56]remove file /storage/0195/doc_00070462 [00:13:56]file doc_00070463 [00:13:56]remove file /storage/0195/doc_00070463 [00:13:56]file doc_00070464 [00:13:56]remove file /storage/0195/doc_00070464 [00:13:56]file doc_00070465 [00:13:56]remove file /storage/0195/doc_00070465 [00:13:56]file doc_00070466 [00:13:56]remove file /storage/0195/doc_00070466 [00:13:56]file doc_00070467 [00:13:56]remove file /storage/0195/doc_00070467 [00:13:56]file doc_00070468 [00:13:56]remove file /storage/0195/doc_00070468 [00:13:56]file doc_00070469 [00:13:56]remove file /storage/0195/doc_00070469 [00:13:56]file doc_00070470 [00:13:56]remove file /storage/0195/doc_00070470 [00:13:56]file doc_00070471 [00:13:56]remove file /storage/0195/doc_00070471 [00:13:56]file doc_00070472 [00:13:56]remove file /storage/0195/doc_00070472 [00:13:56]file doc_00070473 [00:13:56]remove file /storage/0195/doc_00070473 [00:13:56]file doc_00070474 [00:13:56]remove file /storage/0195/doc_00070474 [00:13:56]file doc_00070475 [00:13:56]remove file /storage/0195/doc_00070475 [00:13:56]file doc_00070476 [00:13:56]remove file /storage/0195/doc_00070476 [00:13:56]file doc_00070477 [00:13:56]remove file /storage/0195/doc_00070477 [00:13:56]file doc_00070478 [00:13:56]remove file /storage/0195/doc_00070478 [00:13:56]file doc_00070479 [00:13:56]remove file /storage/0195/doc_00070479 [00:13:56]file doc_00070480 [00:13:56]remove file /storage/0195/doc_00070480 [00:13:56]file doc_00070481 [00:13:56]remove file /storage/0195/doc_00070481 [00:13:56]file doc_00070482 [00:13:56]remove file /storage/0195/doc_00070482 [00:13:56]file doc_00070483 [00:13:56]remove file /storage/0195/doc_00070483 [00:13:56]remove dir /storage/0195 [00:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=260 [00:13:56]tlvbuf is 00BC2DB0 [00:13:56]SAM_PROTO_ClearQueue [00:13:56]wFMCommunicate request_size=4 [00:13:56]MH_SAM_APDU [00:13:56]CAPDU: 80 09 00 00 [00:13:56]Write to MH i2c: E2 08 00 2F 37 80 09 00 00 00 00 00 00 D8 [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:56]Read from MH i2c: E2 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 2F 37 00 90 00 DA [00:13:56]RAPDU: 90 00 [00:13:56]wFMCommunicate OK [00:13:56]SAM_PROTO_ClearQueue done [00:13:56]KKMCreateOFDPacket [00:13:56]OFDProtocolAddRootSTLVToBuf [00:13:56]FM_MakeSignedData [00:13:56]FM_MakeSignedData [00:13:56]SAM_PROTO_SignData [00:13:56]wFMCommunicate request_size=4 [00:13:56]MH_SAM_APDU [00:13:56]CAPDU: 80 0D 01 02 [00:13:56]Write to MH i2c: E2 08 00 30 37 80 0D 01 02 00 00 00 00 E0 [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:56]Read from MH i2c: E2 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 30 37 00 90 00 DB [00:13:56]RAPDU: 90 00 [00:13:56]wFMCommunicate OK [00:13:56]wFMCommunicate request_size=255 [00:13:56]MH_SAM_APDU [00:13:56]CAPDU: 80 0D 02 02 FA 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3F 18 67 0E 04 04 00 C4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [00:13:56]Write to MH i2c: E2 02 01 31 37 80 0D 02 02 FA 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3F 18 67 0E 04 04 00 C4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 5A [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 03 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 03 00 31 37 00 90 00 DC [00:13:57]RAPDU: 90 00 [00:13:57]wFMCommunicate OK [00:13:57]wFMCommunicate request_size=19 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 0D 02 02 0E 33 33 34 36 35 04 06 00 8A B6 0E 61 DF 28 [00:13:57]Write to MH i2c: E2 16 00 32 37 80 0D 02 02 0E 00 33 33 34 36 35 04 06 00 8A B6 0E 61 DF 28 00 00 C4 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 03 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [00:13:57]RAPDU: 90 00 [00:13:57]wFMCommunicate OK [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 0D 03 02 [00:13:57]Write to MH i2c: E2 08 00 33 37 80 0D 03 02 00 00 00 00 E5 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0B 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0B 00 33 37 00 5F 82 82 11 E1 0B 1B 87 90 00 E8 [00:13:57]RAPDU: 5F 82 82 11 E1 0B 1B 87 90 00 [00:13:57]wFMCommunicate OK [00:13:57]SAM_PROTO_SignData done [00:13:57]FM_MakeSignedData done [00:13:57]CreateOFDProtocolMessage [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 11 00 00 [00:13:57]Write to MH i2c: E2 08 00 34 37 80 11 00 00 00 00 00 00 E5 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 17 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 17 00 34 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [00:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:13:57]wFMCommunicate OK [00:13:57]CreateOFDProtocolMessage done [00:13:57]OFDSenderStorePacket 70484 [00:13:57]StoreOFDPacket docnum=70484 [00:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 18 01 00 00 E3 95 10 01 AD 1D 5A 02 01 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3F 18 67 0E 04 04 00 C4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 8A B6 0E 61 DF 28 5F 82 82 11 E1 0B 1B 87 [00:13:57]CheckFolder [00:13:57]dirname=/storage/ofd_packets [00:13:57]CheckFolder done [00:13:57]ProducePacketName [00:13:57]name=ofd_packets/00070484 [00:13:57]NVStorageSaveData ofd_packets/00070484 [00:13:57]File name is /storage/ofd_packets/00070484 [00:13:57]Write 310 bytes [00:13:57]NVStorageSaveData done [00:13:57]OFDSenderStorePacket done [00:13:57]KKMCreateOFDPacket done [00:13:57]NVStorageSaveData kkm_last_timestamp [00:13:57]File name is /storage/kkm_last_timestamp [00:13:57]Write 4 bytes [00:13:57]NVStorageSaveData done [00:13:57]ExternCall_PrintAddStr [00:13:57]wPrintStart [00:13:57]Write to MH i2c: 01 00 00 35 37 6C [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 07 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 07 00 35 37 00 00 00 00 00 FF 0F 81 [00:13:57]RasterBufferAndPrint [00:13:57]line Отчет об открытии смены [00:13:57]line ФФД: 1.0 [00:13:57]line ИНН: 02508201610067 [00:13:57]line Кассир: Калмаева Г. [00:13:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:13:57]line Место: АЗС № 85 "Партнер Нефть" [00:13:57]line 23.10.2024 00:13 [00:13:57]line Смена: 196 [00:13:57]line РНМ: 0000000000156251 [00:13:57]line ЗНМ: 0300000167 [00:13:57]line ФД: 70484 [00:13:57]line ФМ: 0000000000963346 [00:13:57]line ФПД: 152514529976104 [00:13:57]written 0, free lines is 4095 [00:13:57]OFD Sender: Processing packet 70484 [packets to send 18, broken 17] [00:13:57]ProducePacketName [00:13:57]name=ofd_packets/00070484 [00:13:57]OFD Sender: To server: pG, [00:13:57]CommunicateWithHost lk.salyk.kg:30040 [00:13:57]ConnectInit lk.salyk.kg [00:13:57]Connected sock=10 [00:13: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 34 36 18 01 00 00 E3 95 10 01 AD 1D 5A 02 01 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3F 18 67 0E 04 04 00 C4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 8A B6 0E 61 DF 28 5F 82 82 11 E1 0B 1B 87 [00:13:57]Write to MH i2c: 01 00 00 47 37 7E [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 07 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: 01 07 00 47 37 00 00 00 00 00 B2 0E 45 [00:13:57]RasterBufferAndPrint [00:13:57]line [00:13:57]line [00:13:57]line [00:13:57]line [00:13:57]line [00:13:57]written 0, free lines is 3779 [00:13:57]MH_Cut [00:13:57]Write to MH i2c: D1 01 00 4E 37 01 57 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: D1 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: D1 01 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: D1 01 00 4E 37 00 56 [00:13:57]Write to MH i2c: 01 00 00 4F 37 86 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13: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 34 36 4F 00 00 00 4D E9 47 00 5A 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 34 36 10 04 04 00 54 13 01 00 F4 03 04 00 65 E9 17 67 B6 04 01 00 00 C1 6E E5 4D D2 DA 43 09 [00:13:57]CommunicateWithHost err = 0 [00:13:57]CheckOFDResponse [00:13:57]1017 (14) - 77093643461234 [00:13:57]1041 (16) - 0000000000963346 [00:13:57]1040 (4) - 70484 [00:13:57]1012 (4) - 22.10.2024 18:05 [00:13:57]1206 (1) - 0 [00:13:57]OFD Sender: Remove packet 70484 [00:13:57]ProducePacketName [00:13:57]name=ofd_packets/00070484 [00:13:57]NVStorageDeleteData [00:13:58]*** Cut start [00:13:58]*** Partial cut [00:13:58]*** CUTSNS_PIN = 1 [00:13:58]*** CUTSNS_PIN = 0 [00:13:58]*** Brake cut motor [00:13:58]OFD Sender: No OFD packet to send [00:13:58]Read from MH i2c: 01 [00:13:58]MH_I2C_Read... [00:13:58]*** Stop cut motor [00:13:58]*** Cut end [00:13:58]Read from MH i2c: 01 07 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: 01 07 00 4F 37 00 00 00 00 00 FF 0F 9B [00:13:58]process_action open_shift done [00:13:58]requested_data is exist [00:13:58]produce_requested_data [00:13:58]requested_item fd.num is exist - process it [00:13:58]SAM_PROTO_GetFieldsCounters [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 13 00 00 [00:13:58]Write to MH i2c: E2 08 00 50 37 80 13 00 00 00 00 00 00 03 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 62 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 62 00 50 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 0E 04 04 00 C4 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 4A [00:13: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 13 01 00 0E 04 04 00 C4 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:13:59]wFMCommunicate OK [00:13:59]SAM_PROTO_GetFieldsCounters done [00:13:59]requested_item shift.num is exist - process it [00:13:59]requested_item shift.opened is exist - process it [00:13:59]req_shift_opened [00:13:59]FM_GetShiftState [00:13:59]SAM_PROTO_GetShiftState [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 13 01 00 [00:13:59]Write to MH i2c: E2 08 00 51 37 80 13 01 00 00 00 00 00 05 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 0E 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 0E 00 51 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 92 [00:13:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:13:59]wFMCommunicate OK [00:13:59]SAM_PROTO_GetShiftState done [00:13:59]FM_GetShiftState done [00:13:59]req_shift_opened done [00:13:59]requested_item shift.open_date is exist - process it [00:13:59]req_shift_open_date [00:13:59]req_shift_open_date done [00:13:59]produce_requested_data done [00:13:59]produce_requested_data return {"fd.num":70484,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:13:59]process_action_free open_shift [00:13:59]json_value_free [00:13:59]json_value_free done [00:13:59]process_json_proto returns [00:13:59]Send response to host [00:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70484,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:13:59]free response buf [00:13:59]execute_script done [00:13:59]execute_script returns [00:13:59]free content buf [00:13:59]Sock 7.Close socket [00:13:59]Sock 7.Thread stoped [00:13:59]accept exits with 9 [00:13:59]New connection [00:13:59]New thread 3066555748 created [00:13:59]Thread 3066699108 joined [00:13:59]Waiting for new connection... [00:13:59] Sock 9.Parse request [00:13:59]Sock 9.Check first char [00:13:59]Sock 9.First char is OK [00:13:59]request: POST /json_proto HTTP/1.0 [00:13:59]Method: POST [00:13:59]URL: /json_proto [00:13:59]Method is POST - this is cgi request [00:13:59]url: /json_proto [00:13:59]query_string will be loaded in cgi processing [00:13:59]execute_cgi json_proto POST (null) [00:13:59]execute_cgi path=json_proto method=POST [00:13:59]POST find Content-Length [00:13:59]Host: 172.17.50.3:8080 [00:13:59]Content-Length: 331 [00:13:59]Content-Type: application/json [00:13:59] [00:13:59]POST finish read [00:13:59]Found Content-Length = 331 [00:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:13:59]execute_script... [00:13:59]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:13:59]POST & json_proto [00:13:59]process_json_proto [00:13:59]json parsed OK: [00:13:59]protocol is kg_v1.0 [00:13:59]action value=get_value [00:13:59]process_action get_value [00:13:59]cmd_get_value [00:13:59]process_action get_value done [00:13:59]requested_data is exist [00:13:59]produce_requested_data [00:13:59]requested_item fm.sale.total is exist - process it [00:13:59]SAM_PROTO_GetFMData [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 13 03 00 [00:13:59]Write to MH i2c: E2 08 00 52 37 80 13 03 00 00 00 00 00 08 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 52 37 00 C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 A5 [00:13:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CC 11 01 00 69 04 A3 00 6F 04 04 00 87 0E 01 00 B1 04 05 00 C0 AA 6A E8 01 70 04 05 00 0C E3 E4 5C 01 72 04 04 00 B4 C7 85 8B 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 DC C0 E0 33 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 40 AB 52 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 72 04 00 00 00 04 7C 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 1A E5 E9 01 EF 03 09 90 00 [00:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 17 00 00 [00:13:59]Write to MH i2c: E2 08 00 53 37 80 17 00 00 00 00 00 00 0A [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 53 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [00:14:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 54 37 80 17 00 00 00 00 00 00 0B [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:00]Read from MH i2c: E2 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 54 37 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 1D [00:14:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 55 37 80 17 00 00 00 00 00 00 0C [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:00]Read from MH i2c: E2 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 55 37 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 98 [00:14:00]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:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 56 37 80 17 00 00 00 00 00 00 0D [00:14:01]Write i2c OK [00:14:01]MH_I2C_Read... [00:14:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:14:01]Read from MH i2c: E2 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 E2 00 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 E2 00 56 37 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB [00:14:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:01]wFMCommunicate OK [00:14:01]SAM_PROTO_GetFMData done [00:14:01]requested_item fm.sale_refund.total is exist - process it [00:14:01]requested_item fm.buy.total is exist - process it [00:14:01]requested_item shift.sale.total is exist - process it [00:14:01]SAM_PROTO_GetShiftData [00:14:01]wFMCommunicate request_size=4 [00:14:01]MH_SAM_APDU [00:14:01]CAPDU: 80 13 02 00 [00:14:01]Write to MH i2c: E2 08 00 57 37 80 13 02 00 00 00 00 00 0C [00:14:01]Write i2c OK [00:14:01]MH_I2C_Read... [00:14:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:01]Read from MH i2c: E2 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 FD 00 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 FD 00 57 37 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 7F [00:14:01]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:14:01]wFMCommunicate OK [00:14:01]wFMCommunicate request_size=4 [00:14:01]MH_SAM_APDU [00:14:01]CAPDU: 80 17 00 00 [00:14:01]Write to MH i2c: E2 08 00 58 37 80 17 00 00 00 00 00 00 0F [00:14:01]Write i2c OK [00:14:01]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 FD 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 FD 00 58 37 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 17 [00:14:02]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:14:02]wFMCommunicate OK [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 17 00 00 [00:14:02]Write to MH i2c: E2 08 00 59 37 80 17 00 00 00 00 00 00 10 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 FD 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 FD 00 59 37 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 E2 [00:14:02]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:14:02]wFMCommunicate OK [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 17 00 00 [00:14:02]Write to MH i2c: E2 08 00 5A 37 80 17 00 00 00 00 00 00 11 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 5A 37 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 83 [00:14:03]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:14:03]wFMCommunicate OK [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 17 00 00 [00:14:03]Write to MH i2c: E2 08 00 5B 37 80 17 00 00 00 00 00 00 12 [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 BD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 BD 00 5B 37 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 F8 [00:14:03]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 OFD Sender: No OFD packet to send [00:14:03]00 90 00 [00:14:03]wFMCommunicate OK [00:14:03]SAM_PROTO_GetShiftData done [00:14:03]requested_item shift.sale.total_cash is exist - process it [00:14:03]requested_item shift.sale_refund.total is exist - process it [00:14:03]requested_item shift.sale_refund.total_cash is exist - process it [00:14:03]requested_item shift.buy.total is exist - process it [00:14:03]requested_item shift.buy.total_cash is exist - process it [00:14:03]produce_requested_data done [00:14:03]produce_requested_data return {"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.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:14:03]process_action_free get_value [00:14:03]json_value_free [00:14:03]json_value_free done [00:14:03]process_json_proto returns [00:14:03]Send response to host [00:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81942719.36,"fm.sale_refund.total":3023023.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:14:03]free response buf [00:14:03]execute_script done [00:14:03]execute_script returns [00:14:03]free content buf [00:14:03]Sock 9.Close socket [00:14:03]Sock 9.Thread stoped [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:51]accept exits with 7 [00:25:51]New connection [00:25:51]New thread 3066699108 created [00:25:51]Thread 3066555748 joined [00:25:51]Waiting for new connection... [00:25:51] Sock 7.Parse request [00:25:51]Sock 7.Check first char [00:25:51]Sock 7.First char is OK [00:25:51]request: POST /json_proto HTTP/1.0 [00:25:51]Method: POST [00:25:51]URL: /json_proto [00:25:51]Method is POST - this is cgi request [00:25:51]url: /json_proto [00:25:51]query_string will be loaded in cgi processing [00:25:51]execute_cgi json_proto POST (null) [00:25:51]execute_cgi path=json_proto method=POST [00:25:51]POST find Content-Length [00:25:51]Host: 172.17.50.3:8080 [00:25:51]Content-Length: 683 [00:25:51]Content-Type: application/json [00:25:51] [00:25:51]POST finish read [00:25:51]Found Content-Length = 683 [00:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:25:51]execute_script... [00:25: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)2886252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:25:51]POST & json_proto [00:25:51]process_json_proto [00:25:51]json parsed OK: [00:25:51]protocol is kg_v1.0 [00:25:51]action value=close_receipt [00:25:51]process_action close_receipt [00:25:51]cmd_close_receipt [00:25:51]MH_GetDate [00:25:51]Write to MH i2c: F0 00 00 5C 37 82 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: F0 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: F0 09 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: F0 09 00 5C 37 00 91 42 18 67 6B 98 1E 66 64 [00:25:51]GetLastDocTimeStamp 1729642435 [00:25:51]current date 1729643153 [00:25:51]FM_GetShiftState [00:25:51]SAM_PROTO_GetShiftState [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 13 01 00 [00:25:51]Write to MH i2c: E2 08 00 5D 37 80 13 01 00 00 00 00 00 11 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 0E 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 0E 00 5D 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9E [00:25:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:25:51]wFMCommunicate OK [00:25:51]SAM_PROTO_GetShiftState done [00:25:51]FM_GetShiftState done [00:25:51]opened in 1729642435 [00:25:51]opened+sec_in_day 1729728835 [00:25:51]quantity*price = 150032 [00:25:51]sum+1 = 150033 [00:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 1 23.10.2024 00:25 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70485 ФПД: 238246283640642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70485&fm=238246283640642&tin=02508201610067®Number=0000000000156251&sum=150000 [00:25:52]StoreToDocumentArchive [00:25:52]shift 196 fd 70485 [00:25:52]save to /storage/0196/doc_00070485 [00:25:52]save last doc name /storage/0196/doc_00070485 to /storage/kkm_last_doc_name [00:25:52]save OK [00:25:52]Clear old archive folders... [00:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:52]tlvbuf is 00B45230 [00:25:52]SAM_PROTO_ClearQueue [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 09 00 00 [00:25:52]Write to MH i2c: E2 08 00 6A 37 80 09 00 00 00 00 00 00 13 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 6A 37 00 90 00 15 [00:25:52]RAPDU: 90 00 [00:25:52]wFMCommunicate OK [00:25:52]SAM_PROTO_ClearQueue done [00:25:52]KKMCreateOFDPacket [00:25:52]OFDProtocolAddRootSTLVToBuf [00:25:52]FM_MakeSignedData [00:25:52]FM_MakeSignedData [00:25:52]SAM_PROTO_SignData [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 0D 01 02 [00:25:52]Write to MH i2c: E2 08 00 6B 37 80 0D 01 02 00 00 00 00 1B [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 6B 37 00 90 00 16 [00:25:52]RAPDU: 90 00 [00:25:52]wFMCommunicate OK [00:25:52]wFMCommunicate request_size=255 [00:25:52]MH_SAM_APDU [00:25: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 01 00 00 00 F4 03 04 00 91 42 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 13 01 00 35 04 06 00 D8 [00:25:52]Write to MH i2c: E2 02 01 6C 37 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 01 00 00 00 F4 03 04 00 91 42 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 13 01 00 35 04 06 00 D8 00 00 5F [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 6C 37 00 90 00 17 [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=10 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 02 02 05 AF 09 1A FF 42 [00:25:53]Write to MH i2c: E2 0D 00 6D 37 80 0D 02 02 05 00 AF 09 1A FF 42 00 00 3B [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 6D 37 00 90 00 18 [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 03 02 [00:25:53]Write to MH i2c: E2 08 00 6E 37 80 0D 03 02 00 00 00 00 20 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 0B 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 0B 00 6E 37 00 61 EF 6D AE 53 8D 4D A5 90 00 5E [00:25:53]RAPDU: 61 EF 6D AE 53 8D 4D A5 90 00 [00:25:53]wFMCommunicate OK [00:25:53]SAM_PROTO_SignData done [00:25:53]FM_MakeSignedData done [00:25:53]CreateOFDProtocolMessage [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 11 00 00 [00:25:53]Write to MH i2c: E2 08 00 6F 37 80 11 00 00 00 00 00 00 20 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 17 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 17 00 6F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [00:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:53]wFMCommunicate OK [00:25:53]CreateOFDProtocolMessage done [00:25:53]OFDSenderStorePacket 70485 [00:25:53]StoreOFDPacket docnum=70485 [00:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 5D 07 01 9C 80 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 01 00 00 00 F4 03 04 00 91 42 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 13 01 00 35 04 06 00 D8 AF 09 1A FF 42 61 EF 6D AE 53 8D 4D A5 [00:25:53]CheckFolder [00:25:53]dirname=/storage/ofd_packets [00:25:53]CheckFolder done [00:25:53]ProducePacketName [00:25:53]name=ofd_packets/00070485 [00:25:53]NVStorageSaveData ofd_packets/00070485 [00:25:53]File name is /storage/ofd_packets/00070485 [00:25:53]Write 301 bytes [00:25:53]NVStorageSaveData done [00:25:53]OFDSenderStorePacket done [00:25:53]KKMCreateOFDPacket done [00:25:53]NVStorageSaveData kkm_last_timestamp [00:25:53]File name is /storage/kkm_last_timestamp [00:25:53]Write 4 bytes [00:25:53]NVStorageSaveData done [00:25:53]ExternCall_PrintAddStr [00:25:53]wPrintStart [00:25:53]Write to MH i2c: 01 00 00 70 37 A7 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 07 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 07 00 70 37 00 00 00 00 00 FF 0F BC [00:25:53]RasterBufferAndPrint [00:25:53]line Счет N : (1)2886252 [00:25:53]line ИНН: 02508201610067 [00:25:53]line Контрольно-Кассовый Чек [00:25:53]line ПРОДАЖА [00:25:53]line ТРК (МРК, ГНК) : 23 [00:25:53]line Товар: 2710124500 [00:25:53]line Аи-95-К-5 [00:25:53]line 20.220 * 74.20 [00:25:53]line = 1500.32 [00:25:53]line НДС 12% НСП 1% [00:25:53]line > о реализуемом товаре [00:25:53]line ОКРУГЛЕНИЕ: -0.32 [00:25:53]line ИТОГО: 1500.00 [00:25:53]line Внесено: 1500.00 [00:25:53]line СДАЧА: 0.00 [00:25:53]line НСП 1% : 13.28 [00:25:53]line НДС 12% : 159.33 [00:25:53]line Наличными: 1500.00 [00:25:53]line Безнал.: 0.00 [00:25:53]line Место: АЗС № 85 "Партнер Нефть" [00:25:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:25:53]line СНО: Общий режим [00:25:53]line Чек 1 23.10.2024 00:25 [00:25:53]line Смена: 196 ФФД: 1.0 [00:25:53]line ЗНМ: 0300000167 [00:25:53]line РНМ: 0000000000156251 [00:25:53]line Версия ККМ: v1.0 [00:25:53]line ФМ: 0000000000963346 [00:25:53]line ФД: 70485 [00:25:53]line ФПД: 238246283640642 [00:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70485&fm=238246283640642&tin=02508201610067®Number=0000000000156251&sum=150000 [00:25:53]OFD Sender: Processing packet 70485 [packets to send 18, broken 17] [00:25:53]ProducePacketName [00:25:53]name=ofd_packets/00070485 [00:25:53]OFD Sender: To server: pG, [00:25:53]CommunicateWithHost lk.salyk.kg:30040 [00:25:53]ConnectInit lk.salyk.kg [00:25:53]written 0, free lines is 4095 [00:25:53]Connected sock=10 [00:25: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 34 36 0F 01 00 00 95 5D 07 01 9C 80 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 01 00 00 00 F4 03 04 00 91 42 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 13 01 00 35 04 06 00 D8 AF 09 1A FF 42 61 EF 6D AE 53 8D 4D A5 [00:25: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 34 36 4F 00 00 00 D2 AB 47 00 C0 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 13 01 00 F4 03 04 00 30 EC 17 67 B6 04 01 00 00 E3 06 A8 4C 79 E9 A6 F1 [00:25:53]CommunicateWithHost err = 0 [00:25:53]CheckOFDResponse [00:25:53]1017 (14) - 77093643461234 [00:25:53]1041 (16) - 0000000000963346 [00:25:53]1040 (4) - 70485 [00:25:53]1012 (4) - 22.10.2024 18:17 [00:25:53]1206 (1) - 0 [00:25:53]OFD Sender: Remove packet 70485 [00:25:53]ProducePacketName [00:25:53]name=ofd_packets/00070485 [00:25:53]NVStorageDeleteData [00:25:53]Write to MH i2c: 01 00 00 9B 37 D2 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 07 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: 01 07 00 9B 37 00 00 00 00 00 E0 0C C5 [00:25:53]RasterBufferAndPrint [00:25:53]line [00:25:53]line [00:25:53]line [00:25:53]line [00:25:53]line [00:25:53]written 0, free lines is 3302 [00:25:54]MH_Cut [00:25:54]Write to MH i2c: D1 01 00 A2 37 01 AB [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 01 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 01 00 A2 37 00 AA [00:25:54]Write to MH i2c: 01 00 00 A3 37 DA [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]OFD Sender: No OFD packet to send [00:25:54]*** Cut start [00:25:54]*** Partial cut [00:25:54]*** CUTSNS_PIN = 1 [00:25:54]*** CUTSNS_PIN = 0 [00:25:54]*** Brake cut motor [00:25:55]Read from MH i2c: 01 [00:25:55]MH_I2C_Read... [00:25:55]*** Stop cut motor [00:25:55]*** Cut end [00:25:55]Read from MH i2c: 01 07 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: 01 07 00 A3 37 00 00 00 00 00 FF 0F EF [00:25:55]process_action close_receipt done [00:25:55]requested_data is exist [00:25:55]produce_requested_data [00:25:55]requested_item fm.sn is exist - process it [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 11 00 00 [00:25:55]Write to MH i2c: E2 08 00 A4 37 80 11 00 00 00 00 00 00 55 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 17 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 17 00 A4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [00:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:55]wFMCommunicate OK [00:25:55]requested_item fd.num is exist - process it [00:25:55]SAM_PROTO_GetFieldsCounters [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 00 00 [00:25:55]Write to MH i2c: E2 08 00 A5 37 80 13 00 00 00 00 00 00 58 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 A5 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 13 01 00 0E 04 04 00 C4 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 A3 [00:25: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 13 01 00 0E 04 04 00 C4 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:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetFieldsCounters done [00:25:55]requested_item shift.num is exist - process it [00:25:55]requested_item shift.opened is exist - process it [00:25:55]req_shift_opened [00:25:55]FM_GetShiftState [00:25:55]SAM_PROTO_GetShiftState [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 01 00 [00:25:55]Write to MH i2c: E2 08 00 A6 37 80 13 01 00 00 00 00 00 5A [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 A6 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E7 [00:25:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetShiftState done [00:25:55]FM_GetShiftState done [00:25:55]req_shift_opened done [00:25:55]requested_item shift.open_date is exist - process it [00:25:55]req_shift_open_date [00:25:55]req_shift_open_date done [00:25:55]produce_requested_data done [00:25:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70485,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:25:55]process_action_free close_receipt [00:25:55]json_value_free [00:25:55]json_value_free done [00:25:55]process_json_proto returns [00:25:55]Send response to host [00:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70485,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:25:55]free response buf [00:25:55]execute_script done [00:25:55]execute_script returns [00:25:55]free content buf [00:25:55]Sock 7.Close socket [00:25:55]Sock 7.Thread stoped [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:44]accept exits with 9 [00:27:44]New connection [00:27:44]New thread 3066555748 created [00:27:44]Thread 3066699108 joined [00:27:44]Waiting for new connection... [00:27:44] Sock 9.Parse request [00:27:44]Sock 9.Check first char [00:27:44]Sock 9.First char is OK [00:27:44]request: POST /json_proto HTTP/1.0 [00:27:44]Method: POST [00:27:44]URL: /json_proto [00:27:44]Method is POST - this is cgi request [00:27:44]url: /json_proto [00:27:44]query_string will be loaded in cgi processing [00:27:44]execute_cgi json_proto POST (null) [00:27:44]execute_cgi path=json_proto method=POST [00:27:44]POST find Content-Length [00:27:44]Host: 172.17.50.3:8080 [00:27:44]Content-Length: 689 [00:27:44]Content-Type: application/json [00:27:44] [00:27:44]POST finish read [00:27:44]Found Content-Length = 689 [00:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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" ] } } [00:27:44]execute_script... [00:27: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)2886253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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" ] } } [00:27:44]POST & json_proto [00:27:44]process_json_proto [00:27:44]json parsed OK: [00:27:44]protocol is kg_v1.0 [00:27:44]action value=close_receipt [00:27:44]process_action close_receipt [00:27:44]cmd_close_receipt [00:27:44]MH_GetDate [00:27:44]Write to MH i2c: F0 00 00 A7 37 CD [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: F0 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: F0 09 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: F0 09 00 A7 37 00 02 43 18 67 6B 98 1E 66 21 [00:27:44]GetLastDocTimeStamp 1729643153 [00:27:44]current date 1729643266 [00:27:44]FM_GetShiftState [00:27:44]SAM_PROTO_GetShiftState [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 13 01 00 [00:27:44]Write to MH i2c: E2 08 00 A8 37 80 13 01 00 00 00 00 00 5C [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0E 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0E 00 A8 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E9 [00:27:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:27:44]wFMCommunicate OK [00:27:44]SAM_PROTO_GetShiftState done [00:27:44]FM_GetShiftState done [00:27:44]opened in 1729642435 [00:27:44]opened+sec_in_day 1729728835 [00:27:44]quantity*price = 300076 [00:27:44]sum+1 = 300077 [00:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 2 23.10.2024 00:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70486 ФПД: 263964082433384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70486&fm=263964082433384&tin=02508201610067®Number=0000000000156251&sum=300000 [00:27:45]StoreToDocumentArchive [00:27:45]shift 196 fd 70486 [00:27:45]save to /storage/0196/doc_00070486 [00:27:45]save last doc name /storage/0196/doc_00070486 to /storage/kkm_last_doc_name [00:27:45]save OK [00:27:45]Clear old archive folders... [00:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:27:45]tlvbuf is 00D87AB0 [00:27:45]SAM_PROTO_ClearQueue [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 09 00 00 [00:27:45]Write to MH i2c: E2 08 00 B5 37 80 09 00 00 00 00 00 00 5E [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 B5 37 00 90 00 60 [00:27:45]RAPDU: 90 00 [00:27:45]wFMCommunicate OK [00:27:45]SAM_PROTO_ClearQueue done [00:27:45]KKMCreateOFDPacket [00:27:45]OFDProtocolAddRootSTLVToBuf [00:27:45]FM_MakeSignedData [00:27:45]FM_MakeSignedData [00:27:45]SAM_PROTO_SignData [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 0D 01 02 [00:27:45]Write to MH i2c: E2 08 00 B6 37 80 0D 01 02 00 00 00 00 66 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 B6 37 00 90 00 61 [00:27:45]RAPDU: 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=255 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 02 00 00 00 F4 03 04 00 02 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 13 01 [00:27:45]Write to MH i2c: E2 02 01 B7 37 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 02 00 00 00 F4 03 04 00 02 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 13 01 00 00 8E [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 03 00 B7 37 00 90 00 62 [00:27:45]RAPDU: 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=16 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F0 12 ED 5D ED 68 [00:27:45]Write to MH i2c: E2 13 00 B8 37 80 0D 02 02 0B 00 00 35 04 06 00 F0 12 ED 5D ED 68 00 00 5F [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 03 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 03 00 B8 37 00 90 00 63 [00:27:46]RAPDU: 90 00 [00:27:46]wFMCommunicate OK [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 0D 03 02 [00:27:46]Write to MH i2c: E2 08 00 B9 37 80 0D 03 02 00 00 00 00 6B [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0B 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0B 00 B9 37 00 2A 93 A1 CA C8 5C 7C B6 90 00 EA [00:27:46]RAPDU: 2A 93 A1 CA C8 5C 7C B6 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_SignData done [00:27:46]FM_MakeSignedData done [00:27:46]CreateOFDProtocolMessage [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 11 00 00 [00:27:46]Write to MH i2c: E2 08 00 BA 37 80 11 00 00 00 00 00 00 6B [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 17 00 [00:27:46]MH_I2C_Read... [00:27:46]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 34 36 90 00 BD [00:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:27:46]wFMCommunicate OK [00:27:46]CreateOFDProtocolMessage done [00:27:46]OFDSenderStorePacket 70486 [00:27:46]StoreOFDPacket docnum=70486 [00:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E5 91 0D 01 08 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 02 00 00 00 F4 03 04 00 02 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 13 01 00 35 04 06 00 F0 12 ED 5D ED 68 2A 93 A1 CA C8 5C 7C B6 [00:27:46]CheckFolder [00:27:46]dirname=/storage/ofd_packets [00:27:46]CheckFolder done [00:27:46]ProducePacketName [00:27:46]name=ofd_packets/00070486 [00:27:46]NVStorageSaveData ofd_packets/00070486 [00:27:46]File name is /storage/ofd_packets/00070486 [00:27:46]Write 307 bytes [00:27:46]NVStorageSaveData done [00:27:46]OFDSenderStorePacket done [00:27:46]KKMCreateOFDPacket done [00:27:46]NVStorageSaveData kkm_last_timestamp [00:27:46]File name is /storage/kkm_last_timestamp [00:27:46]Write 4 bytes [00:27:46]NVStorageSaveData done [00:27:46]ExternCall_PrintAddStr [00:27:46]wPrintStart [00:27:46]Write to MH i2c: 01 00 00 BB 37 F2 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 07 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 07 00 BB 37 00 00 00 00 00 FF 0F 07 [00:27:46]RasterBufferAndPrint [00:27:46]line Счет N : (1)2886253 [00:27:46]line ИНН: 02508201610067 [00:27:46]line Контрольно-Кассовый Чек [00:27:46]line ПРОДАЖА [00:27:46]line ТРК (МРК, ГНК) : 41 [00:27:46]line Товар: 2710194240 [00:27:46]line D-ENERGY Дт-К-2 [00:27:46]line 38.870 * 77.20 [00:27:46]line = 3000.76 [00:27:46]line НДС 12% НСП 1% [00:27:46]line > о реализуемом товаре [00:27:46]line ОКРУГЛЕНИЕ: -0.76 [00:27:46]line ИТОГО: 3000.00 [00:27:46]line Внесено: 3000.00 [00:27:46]line СДАЧА: 0.00 [00:27:46]line НСП 1% : 26.55 [00:27:46]line НДС 12% : 318.66 [00:27:46]line Наличными: 3000.00 [00:27:46]line Безнал.: 0.00 [00:27:46]line Место: АЗС № 85 "Партнер Нефть" [00:27:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:27:46]line СНО: Общий режим [00:27:46]line Чек 2 23.10.2024 00:27 [00:27:46]line Смена: 196 ФФД: 1.0 [00:27:46]line ЗНМ: 0300000167 [00:27:46]line РНМ: 0000000000156251 [00:27:46]line Версия ККМ: v1.0 [00:27:46]line ФМ: 0000000000963346 [00:27:46]line ФД: 70486 [00:27:46]line ФПД: 263964082433384 [00:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70486&fm=263964082433384&tin=02508201610067®Number=0000000000156251&sum=300000 [00:27:46]OFD Sender: Processing packet 70486 [packets to send 18, broken 17] [00:27:46]ProducePacketName [00:27:46]name=ofd_packets/00070486 [00:27:46]OFD Sender: To server: pG, [00:27:46]CommunicateWithHost lk.salyk.kg:30040 [00:27:46]ConnectInit lk.salyk.kg [00:27:46]written 0, free lines is 4095 [00:27:46]Connected sock=10 [00:27: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 34 36 15 01 00 00 E5 91 0D 01 08 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 02 00 00 00 F4 03 04 00 02 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 13 01 00 35 04 06 00 F0 12 ED 5D ED 68 2A 93 A1 CA C8 5C 7C B6 [00:27: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 34 36 4F 00 00 00 4B 75 47 00 68 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 34 36 10 04 04 00 56 13 01 00 F4 03 04 00 A1 EC 17 67 B6 04 01 00 00 DF CF 0B DE AD C7 CD DA [00:27:46]CommunicateWithHost err = 0 [00:27:46]CheckOFDResponse [00:27:46]1017 (14) - 77093643461234 [00:27:46]1041 (16) - 0000000000963346 [00:27:46]1040 (4) - 70486 [00:27:46]1012 (4) - 22.10.2024 18:19 [00:27:46]1206 (1) - 0 [00:27:46]OFD Sender: Remove packet 70486 [00:27:46]ProducePacketName [00:27:46]name=ofd_packets/00070486 [00:27:46]NVStorageDeleteData [00:27:46]Write to MH i2c: 01 00 00 E6 37 1D [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 07 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: 01 07 00 E6 37 00 00 00 00 00 EB 0C 1B [00:27:46]RasterBufferAndPrint [00:27:46]line [00:27:46]line [00:27:46]line [00:27:46]line [00:27:46]line [00:27:46]written 0, free lines is 3314 [00:27:46]MH_Cut [00:27:46]Write to MH i2c: D1 01 00 ED 37 01 F6 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: D1 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: D1 01 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: D1 01 00 ED 37 00 F5 [00:27:46]Write to MH i2c: 01 00 00 EE 37 25 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:47]OFD Sender: No OFD packet to send [00:27:47]*** Cut start [00:27:47]*** Partial cut [00:27:47]*** CUTSNS_PIN = 1 [00:27:47]*** CUTSNS_PIN = 0 [00:27:47]*** Brake cut motor [00:27:48]Read from MH i2c: 01 [00:27:48]MH_I2C_Read... [00:27:48]*** Stop cut motor [00:27:48]*** Cut end [00:27:48]Read from MH i2c: 01 07 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: 01 07 00 EE 37 00 00 00 00 00 FF 0F 3A [00:27:48]process_action close_receipt done [00:27:48]requested_data is exist [00:27:48]produce_requested_data [00:27:48]requested_item fm.sn is exist - process it [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 11 00 00 [00:27:48]Write to MH i2c: E2 08 00 EF 37 80 11 00 00 00 00 00 00 A0 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 17 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 17 00 EF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [00:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:27:48]wFMCommunicate OK [00:27:48]requested_item fd.num is exist - process it [00:27:48]SAM_PROTO_GetFieldsCounters [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 13 00 00 [00:27:48]Write to MH i2c: E2 08 00 F0 37 80 13 00 00 00 00 00 00 A3 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 62 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 62 00 F0 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 13 01 00 0E 04 04 00 C4 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 F2 [00:27: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 13 01 00 0E 04 04 00 C4 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:27:48]wFMCommunicate OK [00:27:48]SAM_PROTO_GetFieldsCounters done [00:27:48]requested_item shift.num is exist - process it [00:27:48]requested_item shift.opened is exist - process it [00:27:48]req_shift_opened [00:27:48]FM_GetShiftState [00:27:48]SAM_PROTO_GetShiftState [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 13 01 00 [00:27:48]Write to MH i2c: E2 08 00 F1 37 80 13 01 00 00 00 00 00 A5 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:48]Read from MH i2c: E2 0E 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 0E 00 F1 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 32 [00:27:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:27:48]wFMCommunicate OK [00:27:48]SAM_PROTO_GetShiftState done [00:27:48]FM_GetShiftState done [00:27:48]req_shift_opened done [00:27:48]requested_item shift.open_date is exist - process it [00:27:48]req_shift_open_date [00:27:48]req_shift_open_date done [00:27:48]produce_requested_data done [00:27:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70486,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:27:48]process_action_free close_receipt [00:27:48]json_value_free [00:27:48]json_value_free done [00:27:48]process_json_proto returns [00:27:48]Send response to host [00:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70486,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:27:48]free response buf [00:27:48]execute_script done [00:27:48]execute_script returns [00:27:48]free content buf [00:27:48]Sock 9.Close socket [00:27:48]Sock 9.Thread stoped [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]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]accept exits with 7 [00:31:22]New connection [00:31:22]New thread 3066699108 created [00:31:22]Thread 3066555748 joined [00:31:22]Waiting for new connection... [00:31:22] Sock 7.Parse request [00:31:22]Sock 7.Check first char [00:31:22]Sock 7.First char is OK [00:31:22]request: POST /json_proto HTTP/1.0 [00:31:22]Method: POST [00:31:22]URL: /json_proto [00:31:22]Method is POST - this is cgi request [00:31:22]url: /json_proto [00:31:22]query_string will be loaded in cgi processing [00:31:22]execute_cgi json_proto POST (null) [00:31:22]execute_cgi path=json_proto method=POST [00:31:22]POST find Content-Length [00:31:22]Host: 172.17.50.3:8080 [00:31:22]Content-Length: 683 [00:31:22]Content-Type: application/json [00:31:22] [00:31:22]POST finish read [00:31:22]Found Content-Length = 683 [00:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [00:31:22]execute_script... [00:31: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)2886254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [00:31:22]POST & json_proto [00:31:22]process_json_proto [00:31:22]json parsed OK: [00:31:22]protocol is kg_v1.0 [00:31:22]action value=close_receipt [00:31:22]process_action close_receipt [00:31:22]cmd_close_receipt [00:31:22]MH_GetDate [00:31:22]Write to MH i2c: F0 00 00 F2 37 18 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 F2 37 00 DC 43 18 67 6B 98 1E 66 46 [00:31:22]GetLastDocTimeStamp 1729643266 [00:31:22]current date 1729643484 [00:31:22]FM_GetShiftState [00:31:22]SAM_PROTO_GetShiftState [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 13 01 00 [00:31:22]Write to MH i2c: E2 08 00 F3 37 80 13 01 00 00 00 00 00 A7 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 F3 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 34 [00:31:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:31:22]wFMCommunicate OK [00:31:22]SAM_PROTO_GetShiftState done [00:31:22]FM_GetShiftState done [00:31:22]opened in 1729642435 [00:31:22]opened+sec_in_day 1729728835 [00:31:22]quantity*price = 100015 [00:31:22]sum+1 = 100017 [00:31: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 3 23.10.2024 00:31 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70487 ФПД: 23757235220165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70487&fm=23757235220165&tin=02508201610067®Number=0000000000156251&sum=100000 [00:31:23]StoreToDocumentArchive [00:31:23]shift 196 fd 70487 [00:31:23]save to /storage/0196/doc_00070487 [00:31:23]save last doc name /storage/0196/doc_00070487 to /storage/kkm_last_doc_name [00:31:23]save OK [00:31:23]Clear old archive folders... [00:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:31:23]tlvbuf is 00EA5120 [00:31:23]SAM_PROTO_ClearQueue [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 09 00 00 [00:31:23]Write to MH i2c: E2 08 00 00 38 80 09 00 00 00 00 00 00 AA [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 00 38 00 90 00 AC [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_ClearQueue done [00:31:23]KKMCreateOFDPacket [00:31:23]OFDProtocolAddRootSTLVToBuf [00:31:23]FM_MakeSignedData [00:31:23]FM_MakeSignedData [00:31:23]SAM_PROTO_SignData [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 01 02 [00:31:23]Write to MH i2c: E2 08 00 01 38 80 0D 01 02 00 00 00 00 B2 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 01 38 00 90 00 AD [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=255 [00:31:23]MH_SAM_APDU [00:31: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 03 00 00 00 F4 03 04 00 DC 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 13 01 00 35 04 06 00 15 [00:31:23]Write to MH i2c: E2 02 01 02 38 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 03 00 00 00 F4 03 04 00 DC 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 13 01 00 35 04 06 00 15 00 00 1A [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 02 38 00 90 00 AE [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=10 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 02 02 05 9B 69 90 EE C5 [00:31:23]Write to MH i2c: E2 0D 00 03 38 80 0D 02 02 05 00 9B 69 90 EE C5 00 00 06 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 03 38 00 90 00 AF [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 03 02 [00:31:23]Write to MH i2c: E2 08 00 04 38 80 0D 03 02 00 00 00 00 B7 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 0B 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 0B 00 04 38 00 2C 3E 4F BB 60 E5 FA 38 90 00 A3 [00:31:23]RAPDU: 2C 3E 4F BB 60 E5 FA 38 90 00 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_SignData done [00:31:23]FM_MakeSignedData done [00:31:23]CreateOFDProtocolMessage [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 11 00 00 [00:31:23]Write to MH i2c: E2 08 00 05 38 80 11 00 00 00 00 00 00 B7 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 17 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 17 00 05 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [00:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:31:23]wFMCommunicate OK [00:31:23]CreateOFDProtocolMessage done [00:31:23]OFDSenderStorePacket 70487 [00:31:23]StoreOFDPacket docnum=70487 [00:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 DF 07 01 7F D0 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 03 00 00 00 F4 03 04 00 DC 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 13 01 00 35 04 06 00 15 9B 69 90 EE C5 2C 3E 4F BB 60 E5 FA 38 [00:31:23]CheckFolder [00:31:23]dirname=/storage/ofd_packets [00:31:23]CheckFolder done [00:31:23]ProducePacketName [00:31:23]name=ofd_packets/00070487 [00:31:23]NVStorageSaveData ofd_packets/00070487 [00:31:23]File name is /storage/ofd_packets/00070487 [00:31:23]Write 301 bytes [00:31:23]NVStorageSaveData done [00:31:23]OFDSenderStorePacket done [00:31:23]KKMCreateOFDPacket done [00:31:23]NVStorageSaveData kkm_last_timestamp [00:31:23]File name is /storage/kkm_last_timestamp [00:31:23]Write 4 bytes [00:31:23]NVStorageSaveData done [00:31:23]ExternCall_PrintAddStr [00:31:23]wPrintStart [00:31:23]Write to MH i2c: 01 00 00 06 38 3E [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: 01 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: 01 07 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: 01 07 00 06 38 00 00 00 00 00 FF 0F 53 [00:31:23]RasterBufferAndPrint [00:31:23]line Счет N : (1)2886254 [00:31:23]line ИНН: 02508201610067 [00:31:23]line Контрольно-Кассовый Чек [00:31:23]line ПРОДАЖА [00:31:23]line ТРК (МРК, ГНК) : 12 [00:31:23]line Товар: 2710124130 [00:31:23]line Аи-92-К-5 [00:31:23]line 14.950 * 66.90 [00:31:23]line = 1000.16 [00:31:23]line НДС 12% НСП 1% [00:31:23]line > о реализуемом товаре [00:31:23]line ОКРУГЛЕНИЕ: -0.16 [00:31:23]line ИТОГО: 1000.00 [00:31:23]line Внесено: 1000.00 [00:31:23]line СДАЧА: 0.00 [00:31:23]line НСП 1% : 8.85 [00:31:23]line НДС 12% : 106.21 [00:31:23]line Наличными: 1000.00 [00:31:23]line Безнал.: 0.00 [00:31:23]line Место: АЗС № 85 "Партнер Нефть" [00:31:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:31:23]line СНО: Общий режим [00:31:23]line Чек 3 23.10.2024 00:31 [00:31:23]line Смена: 196 ФФД: 1.0 [00:31:23]line ЗНМ: 0300000167 [00:31:23]line РНМ: 0000000000156251 [00:31:23]line Версия ККМ: v1.0 [00:31:23]line ФМ: 0000000000963346 [00:31:23]line ФД: 70487 [00:31:23]line ФПД: 23757235220165 [00:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70487&fm=23757235220165&tin=02508201610067®Number=0000000000156251&sum=100000 [00:31:24]OFD Sender: Processing packet 70487 [packets to send 18, broken 17] [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00070487 [00:31:24]OFD Sender: To server: pG, [00:31:24]CommunicateWithHost lk.salyk.kg:30040 [00:31:24]ConnectInit lk.salyk.kg [00:31:24]written 0, free lines is 4095 [00:31:24]Connected sock=10 [00:31: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 34 36 0F 01 00 00 59 DF 07 01 7F D0 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 03 00 00 00 F4 03 04 00 DC 43 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 13 01 00 35 04 06 00 15 9B 69 90 EE C5 2C 3E 4F BB 60 E5 FA 38 [00:31: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 34 36 4F 00 00 00 B2 E6 47 00 C0 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 13 01 00 F4 03 04 00 7B ED 17 67 B6 04 01 00 00 BE 8C 75 43 14 11 BD 34 [00:31:24]CommunicateWithHost err = 0 [00:31:24]CheckOFDResponse [00:31:24]1017 (14) - 77093643461234 [00:31:24]1041 (16) - 0000000000963346 [00:31:24]1040 (4) - 70487 [00:31:24]1012 (4) - 22.10.2024 18:22 [00:31:24]1206 (1) - 0 [00:31:24]OFD Sender: Remove packet 70487 [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00070487 [00:31:24]NVStorageDeleteData [00:31:24]Write to MH i2c: 01 00 00 31 38 69 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 31 38 00 00 00 00 00 F6 0C 72 [00:31:24]RasterBufferAndPrint [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]line [00:31:24]written 0, free lines is 3324 [00:31:24]MH_Cut [00:31:24]Write to MH i2c: D1 01 00 38 38 01 42 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 01 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: D1 01 00 38 38 00 41 [00:31:24]Write to MH i2c: 01 00 00 39 38 71 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:25]OFD Sender: No OFD packet to send [00:31:25]*** Cut start [00:31:25]*** Partial cut [00:31:25]*** CUTSNS_PIN = 1 [00:31:25]*** CUTSNS_PIN = 0 [00:31:25]*** Brake cut motor [00:31:26]Read from MH i2c: 01 [00:31:26]MH_I2C_Read... [00:31:26]*** Stop cut motor [00:31:26]*** Cut end [00:31:26]Read from MH i2c: 01 07 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: 01 07 00 39 38 00 00 00 00 00 FF 0F 86 [00:31:26]process_action close_receipt done [00:31:26]requested_data is exist [00:31:26]produce_requested_data [00:31:26]requested_item fm.sn is exist - process it [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 11 00 00 [00:31:26]Write to MH i2c: E2 08 00 3A 38 80 11 00 00 00 00 00 00 EC [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 17 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 17 00 3A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [00:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:31:26]wFMCommunicate OK [00:31:26]requested_item fd.num is exist - process it [00:31:26]SAM_PROTO_GetFieldsCounters [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 13 00 00 [00:31:26]Write to MH i2c: E2 08 00 3B 38 80 13 00 00 00 00 00 00 EF [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 62 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 62 00 3B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 13 01 00 0E 04 04 00 C4 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 42 [00:31: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 13 01 00 0E 04 04 00 C4 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:31:26]wFMCommunicate OK [00:31:26]SAM_PROTO_GetFieldsCounters done [00:31:26]requested_item shift.num is exist - process it [00:31:26]requested_item shift.opened is exist - process it [00:31:26]req_shift_opened [00:31:26]FM_GetShiftState [00:31:26]SAM_PROTO_GetShiftState [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 13 01 00 [00:31:26]Write to MH i2c: E2 08 00 3C 38 80 13 01 00 00 00 00 00 F1 [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 0E 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 0E 00 3C 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7E [00:31:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:31:26]wFMCommunicate OK [00:31:26]SAM_PROTO_GetShiftState done [00:31:26]FM_GetShiftState done [00:31:26]req_shift_opened done [00:31:26]requested_item shift.open_date is exist - process it [00:31:26]req_shift_open_date [00:31:26]req_shift_open_date done [00:31:26]produce_requested_data done [00:31:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70487,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:31:26]process_action_free close_receipt [00:31:26]json_value_free [00:31:26]json_value_free done [00:31:26]process_json_proto returns [00:31:26]Send response to host [00:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70487,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:31:26]free response buf [00:31:26]execute_script done [00:31:26]execute_script returns [00:31:26]free content buf [00:31:26]Sock 7.Close socket [00:31:26]Sock 7.Thread stoped [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:36]accept exits with 9 [00:33:36]New connection [00:33:36]New thread 3066555748 created [00:33:36]Thread 3066699108 joined [00:33:36]Waiting for new connection... [00:33:36] Sock 9.Parse request [00:33:36]Sock 9.Check first char [00:33:36]Sock 9.First char is OK [00:33:36]request: POST /json_proto HTTP/1.0 [00:33:36]Method: POST [00:33:36]URL: /json_proto [00:33:36]Method is POST - this is cgi request [00:33:36]url: /json_proto [00:33:36]query_string will be loaded in cgi processing [00:33:36]execute_cgi json_proto POST (null) [00:33:36]execute_cgi path=json_proto method=POST [00:33:36]POST find Content-Length [00:33:36]Host: 172.17.50.3:8080 [00:33:36]Content-Length: 765 [00:33:36]Content-Type: application/json [00:33:36] [00:33:36]POST finish read [00:33:36]Found Content-Length = 765 [00:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:36]execute_script... [00:33: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)2886255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:36]POST & json_proto [00:33:36]process_json_proto [00:33:36]json parsed OK: [00:33:36]protocol is kg_v1.0 [00:33:36]action value=close_receipt [00:33:36]process_action close_receipt [00:33:36]cmd_close_receipt [00:33:36]MH_GetDate [00:33:36]Write to MH i2c: F0 00 00 3D 38 64 [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: F0 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: F0 09 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: F0 09 00 3D 38 00 62 44 18 67 6B 98 1E 66 19 [00:33:36]GetLastDocTimeStamp 1729643484 [00:33:36]current date 1729643618 [00:33:36]FM_GetShiftState [00:33:36]SAM_PROTO_GetShiftState [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 13 01 00 [00:33:36]Write to MH i2c: E2 08 00 3E 38 80 13 01 00 00 00 00 00 F3 [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 0E 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 0E 00 3E 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 80 [00:33:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:33:36]wFMCommunicate OK [00:33:36]SAM_PROTO_GetShiftState done [00:33:36]FM_GetShiftState done [00:33:36]opened in 1729642435 [00:33:36]opened+sec_in_day 1729728835 [00:33:36]quantity*price = 90068 [00:33:36]sum+1 = 90069 [00:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.68 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 0.00 Безнал.: 900.68 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 4 23.10.2024 00:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70488 ФПД: 154575735266403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003338&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70488&fm=154575735266403&tin=02508201610067®Number=0000000000156251&sum=90068 [00:33:37]StoreToDocumentArchive [00:33:37]shift 196 fd 70488 [00:33:37]save to /storage/0196/doc_00070488 [00:33:37]save last doc name /storage/0196/doc_00070488 to /storage/kkm_last_doc_name [00:33:37]save OK [00:33:37]Clear old archive folders... [00:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:33:37]tlvbuf is 00E04380 [00:33:37]SAM_PROTO_ClearQueue [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 09 00 00 [00:33:37]Write to MH i2c: E2 08 00 4B 38 80 09 00 00 00 00 00 00 F5 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 4B 38 00 90 00 F7 [00:33:37]RAPDU: 90 00 [00:33:37]wFMCommunicate OK [00:33:37]SAM_PROTO_ClearQueue done [00:33:37]KKMCreateOFDPacket [00:33:37]OFDProtocolAddRootSTLVToBuf [00:33:37]FM_MakeSignedData [00:33:37]FM_MakeSignedData [00:33:37]SAM_PROTO_SignData [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 0D 01 02 [00:33:37]Write to MH i2c: E2 08 00 4C 38 80 0D 01 02 00 00 00 00 FD [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 4C 38 00 90 00 F8 [00:33:37]RAPDU: 90 00 [00:33:37]wFMCommunicate OK [00:33:37]wFMCommunicate request_size=255 [00:33:37]MH_SAM_APDU [00:33:37]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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 44 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 13 01 00 35 04 06 00 8C 95 F7 CA [00:33:37]Write to MH i2c: E2 02 01 4D 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 44 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 13 01 00 35 04 06 00 8C 95 F7 CA 00 00 08 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 4D 38 00 90 00 F9 [00:33:37]RAPDU: 90 00 [00:33:37]wFMCommunicate OK [00:33:37]wFMCommunicate request_size=7 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 0D 02 02 02 9C 63 [00:33:37]Write to MH i2c: E2 0A 00 4E 38 80 0D 02 02 02 00 9C 63 00 00 03 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 03 00 4E 38 00 90 00 FA [00:33:37]RAPDU: 90 00 [00:33:37]wFMCommunicate OK [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 0D 03 02 [00:33:37]Write to MH i2c: E2 08 00 4F 38 80 0D 03 02 00 00 00 00 02 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 0B 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 0B 00 4F 38 00 CD 01 89 C7 EA 30 32 68 90 00 D5 [00:33:38]RAPDU: CD 01 89 C7 EA 30 32 68 90 00 [00:33:38]wFMCommunicate OK [00:33:38]SAM_PROTO_SignData done [00:33:38]FM_MakeSignedData done [00:33:38]CreateOFDProtocolMessage [00:33:38]wFMCommunicate request_size=4 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 11 00 00 [00:33:38]Write to MH i2c: E2 08 00 50 38 80 11 00 00 00 00 00 00 02 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 17 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 17 00 50 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [00:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:33:38]wFMCommunicate OK [00:33:38]CreateOFDProtocolMessage done [00:33:38]OFDSenderStorePacket 70488 [00:33:38]StoreOFDPacket docnum=70488 [00:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 4F 2E 04 01 E3 21 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 44 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 13 01 00 35 04 06 00 8C 95 F7 CA 9C 63 CD 01 89 C7 EA 30 32 68 [00:33:38]CheckFolder [00:33:38]dirname=/storage/ofd_packets [00:33:38]CheckFolder done [00:33:38]ProducePacketName [00:33:38]name=ofd_packets/00070488 [00:33:38]NVStorageSaveData ofd_packets/00070488 [00:33:38]File name is /storage/ofd_packets/00070488 [00:33:38]Write 298 bytes [00:33:38]NVStorageSaveData done [00:33:38]OFDSenderStorePacket done [00:33:38]KKMCreateOFDPacket done [00:33:38]NVStorageSaveData kkm_last_timestamp [00:33:38]File name is /storage/kkm_last_timestamp [00:33:38]Write 4 bytes [00:33:38]NVStorageSaveData done [00:33:38]ExternCall_PrintAddStr [00:33:38]wPrintStart [00:33:38]Write to MH i2c: 01 00 00 51 38 89 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 07 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 07 00 51 38 00 00 00 00 00 FF 0F 9E [00:33:38]RasterBufferAndPrint [00:33:38]line Счет N : (1)2886255 [00:33:38]line ИНН: 02508201610067 [00:33:38]line Контрольно-Кассовый Чек [00:33:38]line ПРОДАЖА [00:33:38]line ТРК (МРК, ГНК) : 61 [00:33:38]line Товар: 2710194210 [00:33:38]line ДТ-К-5 [00:33:38]line 11.820 * 76.20 [00:33:38]line = 900.68 [00:33:38]line НДС 12% НСП 1% [00:33:38]line > о реализуемом товаре [00:33:38]line ИТОГО: 900.68 [00:33:38]line НСП 1% : 7.97 [00:33:38]line НДС 12% : 95.65 [00:33:38]line Наличными: 0.00 [00:33:38]line Безнал.: 900.68 [00:33:38]line Место: АЗС № 85 "Партнер Нефть" [00:33:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:33:38]line СНО: Общий режим [00:33:38]line Чек 4 23.10.2024 00:33 [00:33:38]line Смена: 196 ФФД: 1.0 [00:33:38]line ЗНМ: 0300000167 [00:33:38]line РНМ: 0000000000156251 [00:33:38]line Версия ККМ: v1.0 [00:33:38]line Платежная система: Mbank [00:33:38]line ФМ: 0000000000963346 [00:33:38]line ФД: 70488 [00:33:38]line ФПД: 154575735266403 [00:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003338&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70488&fm=154575735266403&tin=02508201610067®Number=0000000000156251&sum=90068 [00:33:38]OFD Sender: Processing packet 70488 [packets to send 18, broken 17] [00:33:38]ProducePacketName [00:33:38]name=ofd_packets/00070488 [00:33:38]OFD Sender: To server: pG, [00:33:38]CommunicateWithHost lk.salyk.kg:30040 [00:33:38]ConnectInit lk.salyk.kg [00:33:38]written 0, free lines is 4095 [00:33:38]Connected sock=10 [00:33: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 34 36 0C 01 00 00 4F 2E 04 01 E3 21 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 44 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 13 01 00 35 04 06 00 8C 95 F7 CA 9C 63 CD 01 89 C7 EA 30 32 68 [00:33: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 34 36 4F 00 00 00 02 44 47 00 1D 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 34 36 10 04 04 00 58 13 01 00 F4 03 04 00 01 EE 17 67 B6 04 01 00 00 BA 21 AE 4F 4F A0 84 E6 [00:33:38]CommunicateWithHost err = 0 [00:33:38]CheckOFDResponse [00:33:38]1017 (14) - 77093643461234 [00:33:38]1041 (16) - 0000000000963346 [00:33:38]1040 (4) - 70488 [00:33:38]1012 (4) - 22.10.2024 18:25 [00:33:38]1206 (1) - 0 [00:33:38]OFD Sender: Remove packet 70488 [00:33:38]ProducePacketName [00:33:38]name=ofd_packets/00070488 [00:33:38]NVStorageDeleteData [00:33:38]Write to MH i2c: 01 00 00 7A 38 B2 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 07 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: 01 07 00 7A 38 00 00 00 00 00 0E 0D D4 [00:33:38]RasterBufferAndPrint [00:33:38]line [00:33:38]line [00:33:38]line [00:33:38]line [00:33:38]line [00:33:38]written 0, free lines is 3348 [00:33:38]MH_Cut [00:33:38]Write to MH i2c: D1 01 00 81 38 01 8B [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: D1 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: D1 01 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: D1 01 00 81 38 00 8A [00:33:38]Write to MH i2c: 01 00 00 82 38 BA [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:39]OFD Sender: No OFD packet to send [00:33:39]*** Cut start [00:33:39]*** Partial cut [00:33:39]*** CUTSNS_PIN = 1 [00:33:39]*** CUTSNS_PIN = 0 [00:33:39]*** Brake cut motor [00:33:40]Read from MH i2c: 01 [00:33:40]MH_I2C_Read... [00:33:40]*** Stop cut motor [00:33:40]*** Cut end [00:33:40]Read from MH i2c: 01 07 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: 01 07 00 82 38 00 00 00 00 00 FF 0F CF [00:33:40]process_action close_receipt done [00:33:40]requested_data is exist [00:33:40]produce_requested_data [00:33:40]requested_item fm.sn is exist - process it [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 11 00 00 [00:33:40]Write to MH i2c: E2 08 00 83 38 80 11 00 00 00 00 00 00 35 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 17 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 17 00 83 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [00:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:33:40]wFMCommunicate OK [00:33:40]requested_item fd.num is exist - process it [00:33:40]SAM_PROTO_GetFieldsCounters [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 13 00 00 [00:33:40]Write to MH i2c: E2 08 00 84 38 80 13 00 00 00 00 00 00 38 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 62 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 62 00 84 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 13 01 00 0E 04 04 00 C4 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 8F [00:33: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 13 01 00 0E 04 04 00 C4 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:33:40]wFMCommunicate OK [00:33:40]SAM_PROTO_GetFieldsCounters done [00:33:40]requested_item shift.num is exist - process it [00:33:40]requested_item shift.opened is exist - process it [00:33:40]req_shift_opened [00:33:40]FM_GetShiftState [00:33:40]SAM_PROTO_GetShiftState [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 13 01 00 [00:33:40]Write to MH i2c: E2 08 00 85 38 80 13 01 00 00 00 00 00 3A [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 0E 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 0E 00 85 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C7 [00:33:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:33:40]wFMCommunicate OK [00:33:40]SAM_PROTO_GetShiftState done [00:33:40]FM_GetShiftState done [00:33:40]req_shift_opened done [00:33:40]requested_item shift.open_date is exist - process it [00:33:40]req_shift_open_date [00:33:40]req_shift_open_date done [00:33:40]produce_requested_data done [00:33:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70488,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:33:40]process_action_free close_receipt [00:33:40]json_value_free [00:33:40]json_value_free done [00:33:40]process_json_proto returns [00:33:40]Send response to host [00:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70488,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:33:40]free response buf [00:33:40]execute_script done [00:33:40]execute_script returns [00:33:40]free content buf [00:33:40]Sock 9.Close socket [00:33:40]Sock 9.Thread stoped [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:16]accept exits with 7 [00:36:16]New connection [00:36:16]New thread 3066699108 created [00:36:16]Thread 3066555748 joined [00:36:16]Waiting for new connection... [00:36:16] Sock 7.Parse request [00:36:16]Sock 7.Check first char [00:36:16]Sock 7.First char is OK [00:36:16]request: POST /json_proto HTTP/1.0 [00:36:16]Method: POST [00:36:16]URL: /json_proto [00:36:16]Method is POST - this is cgi request [00:36:16]url: /json_proto [00:36:16]query_string will be loaded in cgi processing [00:36:16]execute_cgi json_proto POST (null) [00:36:16]execute_cgi path=json_proto method=POST [00:36:16]POST find Content-Length [00:36:16]Host: 172.17.50.3:8080 [00:36:16]Content-Length: 683 [00:36:16]Content-Type: application/json [00:36:16] [00:36:16]POST finish read [00:36:16]Found Content-Length = 683 [00:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.030, "sum" : 1041.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1041.00, "total" : 1041.00, "payments": [ { "type": 0, "sum" : 1041.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:16]execute_script... [00:36: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)2886256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.030, "sum" : 1041.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1041.00, "total" : 1041.00, "payments": [ { "type": 0, "sum" : 1041.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:16]POST & json_proto [00:36:16]process_json_proto [00:36:16]json parsed OK: [00:36:16]protocol is kg_v1.0 [00:36:16]action value=close_receipt [00:36:16]process_action close_receipt [00:36:16]cmd_close_receipt [00:36:16]MH_GetDate [00:36:16]Write to MH i2c: F0 00 00 86 38 AD [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: F0 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: F0 09 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: F0 09 00 86 38 00 02 45 18 67 6B 98 1E 66 03 [00:36:16]GetLastDocTimeStamp 1729643618 [00:36:16]current date 1729643778 [00:36:16]FM_GetShiftState [00:36:16]SAM_PROTO_GetShiftState [00:36:16]wFMCommunicate request_size=4 [00:36:16]MH_SAM_APDU [00:36:16]CAPDU: 80 13 01 00 [00:36:16]Write to MH i2c: E2 08 00 87 38 80 13 01 00 00 00 00 00 3C [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:16]Read from MH i2c: E2 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 0E 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 0E 00 87 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C9 [00:36:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:36:16]wFMCommunicate OK [00:36:16]SAM_PROTO_GetShiftState done [00:36:16]FM_GetShiftState done [00:36:16]opened in 1729642435 [00:36:16]opened+sec_in_day 1729728835 [00:36:16]quantity*price = 104102 [00:36:16]sum+1 = 104104 [00:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1041.00 Внесено: 1041.00 СДАЧА: 0.00 НСП 1% : 9.21 НДС 12% : 110.55 Наличными: 1041.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 5 23.10.2024 00:36 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70489 ФПД: 82812161145732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70489&fm=82812161145732&tin=02508201610067®Number=0000000000156251&sum=104100 [00:36:17]StoreToDocumentArchive [00:36:17]shift 196 fd 70489 [00:36:17]save to /storage/0196/doc_00070489 [00:36:17]save last doc name /storage/0196/doc_00070489 to /storage/kkm_last_doc_name [00:36:17]save OK [00:36:17]Clear old archive folders... [00:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:17]tlvbuf is 00CB73E0 [00:36:17]SAM_PROTO_ClearQueue [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 09 00 00 [00:36:17]Write to MH i2c: E2 08 00 94 38 80 09 00 00 00 00 00 00 3E [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 94 38 00 90 00 40 [00:36:17]RAPDU: 90 00 [00:36:17]wFMCommunicate OK [00:36:17]SAM_PROTO_ClearQueue done [00:36:17]KKMCreateOFDPacket [00:36:17]OFDProtocolAddRootSTLVToBuf [00:36:17]FM_MakeSignedData [00:36:17]FM_MakeSignedData [00:36:17]SAM_PROTO_SignData [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 0D 01 02 [00:36:17]Write to MH i2c: E2 08 00 95 38 80 0D 01 02 00 00 00 00 46 [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 95 38 00 90 00 41 [00:36:17]RAPDU: 90 00 [00:36:17]wFMCommunicate OK [00:36:17]wFMCommunicate request_size=255 [00:36:17]MH_SAM_APDU [00:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 2B 00 00 00 00 07 04 06 00 A4 96 01 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 02 45 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 13 01 00 35 04 06 00 4B [00:36:17]Write to MH i2c: E2 02 01 96 38 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 CE 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 2B 00 00 00 00 07 04 06 00 A4 96 01 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 02 45 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 13 01 00 35 04 06 00 4B 00 00 5B [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 96 38 00 90 00 42 [00:36:17]RAPDU: 90 00 [00:36:17]wFMCommunicate OK [00:36:17]wFMCommunicate request_size=10 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 0D 02 02 05 51 35 72 BB 84 [00:36:17]Write to MH i2c: E2 0D 00 97 38 80 0D 02 02 05 00 51 35 72 BB 84 00 00 8A [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 03 00 97 38 00 90 00 43 [00:36:17]RAPDU: 90 00 [00:36:17]wFMCommunicate OK [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 0D 03 02 [00:36:17]Write to MH i2c: E2 08 00 98 38 80 0D 03 02 00 00 00 00 4B [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 0B 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 0B 00 98 38 00 2E 3C 0A B1 A6 81 33 4C 90 00 17 [00:36:17]RAPDU: 2E 3C 0A B1 A6 81 33 4C 90 00 [00:36:17]wFMCommunicate OK [00:36:17]SAM_PROTO_SignData done [00:36:17]FM_MakeSignedData done [00:36:17]CreateOFDProtocolMessage [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 11 00 00 [00:36:17]Write to MH i2c: E2 08 00 99 38 80 11 00 00 00 00 00 00 4B [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 17 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 17 00 99 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [00:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:36:18]wFMCommunicate OK [00:36:18]CreateOFDProtocolMessage done [00:36:18]OFDSenderStorePacket 70489 [00:36:18]StoreOFDPacket docnum=70489 [00:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 23 35 07 01 94 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 CE 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 2B 00 00 00 00 07 04 06 00 A4 96 01 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 02 45 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 13 01 00 35 04 06 00 4B 51 35 72 BB 84 2E 3C 0A B1 A6 81 33 4C [00:36:18]CheckFolder [00:36:18]dirname=/storage/ofd_packets [00:36:18]CheckFolder done [00:36:18]ProducePacketName [00:36:18]name=ofd_packets/00070489 [00:36:18]NVStorageSaveData ofd_packets/00070489 [00:36:18]File name is /storage/ofd_packets/00070489 [00:36:18]Write 301 bytes [00:36:18]NVStorageSaveData done [00:36:18]OFDSenderStorePacket done [00:36:18]KKMCreateOFDPacket done [00:36:18]NVStorageSaveData kkm_last_timestamp [00:36:18]File name is /storage/kkm_last_timestamp [00:36:18]Write 4 bytes [00:36:18]NVStorageSaveData done [00:36:18]ExternCall_PrintAddStr [00:36:18]wPrintStart [00:36:18]Write to MH i2c: 01 00 00 9A 38 D2 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 07 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 07 00 9A 38 00 00 00 00 00 FF 0F E7 [00:36:18]RasterBufferAndPrint [00:36:18]line Счет N : (1)2886256 [00:36:18]line ИНН: 02508201610067 [00:36:18]line Контрольно-Кассовый Чек [00:36:18]line ПРОДАЖА [00:36:18]line ТРК (МРК, ГНК) : 33 [00:36:18]line Товар: 2710124500 [00:36:18]line Аи-95-К-5 [00:36:18]line 14.030 * 74.20 [00:36:18]line = 1041.03 [00:36:18]line НДС 12% НСП 1% [00:36:18]line > о реализуемом товаре [00:36:18]line ОКРУГЛЕНИЕ: -0.03 [00:36:18]line ИТОГО: 1041.00 [00:36:18]line Внесено: 1041.00 [00:36:18]line СДАЧА: 0.00 [00:36:18]line НСП 1% : 9.21 [00:36:18]line НДС 12% : 110.55 [00:36:18]line Наличными: 1041.00 [00:36:18]line Безнал.: 0.00 [00:36:18]line Место: АЗС № 85 "Партнер Нефть" [00:36:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:36:18]line СНО: Общий режим [00:36:18]line Чек 5 23.10.2024 00:36 [00:36:18]line Смена: 196 ФФД: 1.0 [00:36:18]line ЗНМ: 0300000167 [00:36:18]line РНМ: 0000000000156251 [00:36:18]line Версия ККМ: v1.0 [00:36:18]line ФМ: 0000000000963346 [00:36:18]line ФД: 70489 [00:36:18]line ФПД: 82812161145732 [00:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70489&fm=82812161145732&tin=02508201610067®Number=0000000000156251&sum=104100 [00:36:18]OFD Sender: Processing packet 70489 [packets to send 18, broken 17] [00:36:18]ProducePacketName [00:36:18]name=ofd_packets/00070489 [00:36:18]OFD Sender: To server: pG, [00:36:18]CommunicateWithHost lk.salyk.kg:30040 [00:36:18]ConnectInit lk.salyk.kg [00:36:18]written 0, free lines is 4095 [00:36:18]Connected sock=10 [00:36: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 34 36 0F 01 00 00 23 35 07 01 94 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 CE 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 2B 00 00 00 00 07 04 06 00 A4 96 01 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 02 45 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 13 01 00 35 04 06 00 4B 51 35 72 BB 84 2E 3C 0A B1 A6 81 33 4C [00:36: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 34 36 4F 00 00 00 0F 20 47 00 1D 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 34 36 10 04 04 00 59 13 01 00 F4 03 04 00 A1 EE 17 67 B6 04 01 00 00 F8 CC 8E BF E9 BE 5E 35 [00:36:18]CommunicateWithHost err = 0 [00:36:18]CheckOFDResponse [00:36:18]1017 (14) - 77093643461234 [00:36:18]1041 (16) - 0000000000963346 [00:36:18]1040 (4) - 70489 [00:36:18]1012 (4) - 22.10.2024 18:27 [00:36:18]1206 (1) - 0 [00:36:18]OFD Sender: Remove packet 70489 [00:36:18]ProducePacketName [00:36:18]name=ofd_packets/00070489 [00:36:18]NVStorageDeleteData [00:36:18]Write to MH i2c: 01 00 00 C5 38 FD [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 07 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 07 00 C5 38 00 00 00 00 00 E4 0C F4 [00:36:18]RasterBufferAndPrint [00:36:18]line [00:36:18]line [00:36:18]line [00:36:18]line [00:36:18]line [00:36:18]written 0, free lines is 3306 [00:36:18]MH_Cut [00:36:18]Write to MH i2c: D1 01 00 CC 38 01 D6 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: D1 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: D1 01 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: D1 01 00 CC 38 00 D5 [00:36:18]Write to MH i2c: 01 00 00 CD 38 05 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:19]OFD Sender: No OFD packet to send [00:36:19]*** Cut start [00:36:19]*** Partial cut [00:36:19]*** CUTSNS_PIN = 1 [00:36:19]*** CUTSNS_PIN = 0 [00:36:19]*** Brake cut motor [00:36:20]Read from MH i2c: 01 [00:36:20]MH_I2C_Read... [00:36:20]*** Stop cut motor [00:36:20]*** Cut end [00:36:20]Read from MH i2c: 01 07 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: 01 07 00 CD 38 00 00 00 00 00 FF 0F 1A [00:36:20]process_action close_receipt done [00:36:20]requested_data is exist [00:36:20]produce_requested_data [00:36:20]requested_item fm.sn is exist - process it [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 11 00 00 [00:36:20]Write to MH i2c: E2 08 00 CE 38 80 11 00 00 00 00 00 00 80 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 17 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 17 00 CE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [00:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:36:20]wFMCommunicate OK [00:36:20]requested_item fd.num is exist - process it [00:36:20]SAM_PROTO_GetFieldsCounters [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 13 00 00 [00:36:20]Write to MH i2c: E2 08 00 CF 38 80 13 00 00 00 00 00 00 83 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 62 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 62 00 CF 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 13 01 00 0E 04 04 00 C4 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 DE [00:36: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 13 01 00 0E 04 04 00 C4 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 [00:36:20]wFMCommunicate OK [00:36:20]SAM_PROTO_GetFieldsCounters done [00:36:20]requested_item shift.num is exist - process it [00:36:20]requested_item shift.opened is exist - process it [00:36:20]req_shift_opened [00:36:20]FM_GetShiftState [00:36:20]SAM_PROTO_GetShiftState [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 13 01 00 [00:36:20]Write to MH i2c: E2 08 00 D0 38 80 13 01 00 00 00 00 00 85 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 0E 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 0E 00 D0 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 12 [00:36:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:36:20]wFMCommunicate OK [00:36:20]SAM_PROTO_GetShiftState done [00:36:20]FM_GetShiftState done [00:36:20]req_shift_opened done [00:36:20]requested_item shift.open_date is exist - process it [00:36:20]req_shift_open_date [00:36:20]req_shift_open_date done [00:36:20]produce_requested_data done [00:36:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70489,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:36:20]process_action_free close_receipt [00:36:20]json_value_free [00:36:20]json_value_free done [00:36:20]process_json_proto returns [00:36:20]Send response to host [00:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70489,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:36:20]free response buf [00:36:20]execute_script done [00:36:20]execute_script returns [00:36:20]free content buf [00:36:20]Sock 7.Close socket [00:36:20]Sock 7.Thread stoped [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:25]accept exits with 9 [00:45:25]New connection [00:45:25]New thread 3066555748 created [00:45:25]Thread 3066699108 joined [00:45:25]Waiting for new connection... [00:45:25] Sock 9.Parse request [00:45:25]Sock 9.Check first char [00:45:25]Sock 9.First char is OK [00:45:25]request: POST /json_proto HTTP/1.0 [00:45:25]Method: POST [00:45:25]URL: /json_proto [00:45:25]Method is POST - this is cgi request [00:45:25]url: /json_proto [00:45:25]query_string will be loaded in cgi processing [00:45:25]execute_cgi json_proto POST (null) [00:45:25]execute_cgi path=json_proto method=POST [00:45:25]POST find Content-Length [00:45:25]Host: 172.17.50.3:8080 [00:45:25]Content-Length: 682 [00:45:25]Content-Type: application/json [00:45:25] [00:45:25]POST finish read [00:45:25]Found Content-Length = 682 [00:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "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" ] } } [00:45:25]execute_script... [00:45: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)2886257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "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" ] } } [00:45:25]POST & json_proto [00:45:25]process_json_proto [00:45:25]json parsed OK: [00:45:25]protocol is kg_v1.0 [00:45:25]action value=close_receipt [00:45:25]process_action close_receipt [00:45:25]cmd_close_receipt [00:45:25]MH_GetDate [00:45:25]Write to MH i2c: F0 00 00 D1 38 F8 [00:45:25]Write i2c OK [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: F0 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: F0 09 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: F0 09 00 D1 38 00 27 47 18 67 6B 98 1E 66 75 [00:45:25]GetLastDocTimeStamp 1729643778 [00:45:25]current date 1729644327 [00:45:25]FM_GetShiftState [00:45:25]SAM_PROTO_GetShiftState [00:45:25]wFMCommunicate request_size=4 [00:45:25]MH_SAM_APDU [00:45:25]CAPDU: 80 13 01 00 [00:45:25]Write to MH i2c: E2 08 00 D2 38 80 13 01 00 00 00 00 00 87 [00:45:25]Write i2c OK [00:45:25]MH_I2C_Read... [00:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:25]Read from MH i2c: E2 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 0E 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 0E 00 D2 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 14 [00:45:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:45:25]wFMCommunicate OK [00:45:25]SAM_PROTO_GetShiftState done [00:45:25]FM_GetShiftState done [00:45:25]opened in 1729642435 [00:45:25]opened+sec_in_day 1729728835 [00:45:25]quantity*price = 80017 [00:45:25]sum+1 = 80018 [00:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 6 23.10.2024 00:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70490 ФПД: 65238354005411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70490&fm=65238354005411&tin=02508201610067®Number=0000000000156251&sum=80000 [00:45:26]StoreToDocumentArchive [00:45:26]shift 196 fd 70490 [00:45:26]save to /storage/0196/doc_00070490 [00:45:26]save last doc name /storage/0196/doc_00070490 to /storage/kkm_last_doc_name [00:45:26]save OK [00:45:26]Clear old archive folders... [00:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:45:26]tlvbuf is 00B456A0 [00:45:26]SAM_PROTO_ClearQueue [00:45:26]wFMCommunicate request_size=4 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 09 00 00 [00:45:26]Write to MH i2c: E2 08 00 DF 38 80 09 00 00 00 00 00 00 89 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 DF 38 00 90 00 8B [00:45:26]RAPDU: 90 00 [00:45:26]wFMCommunicate OK [00:45:26]SAM_PROTO_ClearQueue done [00:45:26]KKMCreateOFDPacket [00:45:26]OFDProtocolAddRootSTLVToBuf [00:45:26]FM_MakeSignedData [00:45:26]FM_MakeSignedData [00:45:26]SAM_PROTO_SignData [00:45:26]wFMCommunicate request_size=4 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 0D 01 02 [00:45:26]Write to MH i2c: E2 08 00 E0 38 80 0D 01 02 00 00 00 00 91 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 E0 38 00 90 00 8C [00:45:26]RAPDU: 90 00 [00:45:26]wFMCommunicate OK [00:45:26]wFMCommunicate request_size=255 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 06 00 00 00 F4 03 04 00 27 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 13 01 00 35 04 06 00 3B 55 [00:45:26]Write to MH i2c: E2 02 01 E1 38 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 06 00 00 00 F4 03 04 00 27 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 13 01 00 35 04 06 00 3B 55 00 00 37 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:27]Read from MH i2c: E2 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 03 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 03 00 E1 38 00 90 00 8D [00:45:27]RAPDU: 90 00 [00:45:27]wFMCommunicate OK [00:45:27]wFMCommunicate request_size=9 [00:45:27]MH_SAM_APDU [00:45:27]CAPDU: 80 0D 02 02 04 7C EA 8D A3 [00:45:27]Write to MH i2c: E2 0C 00 E2 38 80 0D 02 02 04 00 7C EA 8D A3 00 00 32 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:27]Read from MH i2c: E2 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 03 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 03 00 E2 38 00 90 00 8E [00:45:27]RAPDU: 90 00 [00:45:27]wFMCommunicate OK [00:45:27]wFMCommunicate request_size=4 [00:45:27]MH_SAM_APDU [00:45:27]CAPDU: 80 0D 03 02 [00:45:27]Write to MH i2c: E2 08 00 E3 38 80 0D 03 02 00 00 00 00 96 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:27]Read from MH i2c: E2 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 0B 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 0B 00 E3 38 00 3D 5F A5 20 E0 CA 5F 68 90 00 69 [00:45:27]RAPDU: 3D 5F A5 20 E0 CA 5F 68 90 00 [00:45:27]wFMCommunicate OK [00:45:27]SAM_PROTO_SignData done [00:45:27]FM_MakeSignedData done [00:45:27]CreateOFDProtocolMessage [00:45:27]wFMCommunicate request_size=4 [00:45:27]MH_SAM_APDU [00:45:27]CAPDU: 80 11 00 00 [00:45:27]Write to MH i2c: E2 08 00 E4 38 80 11 00 00 00 00 00 00 96 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:27]Read from MH i2c: E2 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 17 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 17 00 E4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [00:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:45:27]wFMCommunicate OK [00:45:27]CreateOFDProtocolMessage done [00:45:27]OFDSenderStorePacket 70490 [00:45:27]StoreOFDPacket docnum=70490 [00:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B7 55 06 01 E0 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 06 00 00 00 F4 03 04 00 27 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 13 01 00 35 04 06 00 3B 55 7C EA 8D A3 3D 5F A5 20 E0 CA 5F 68 [00:45:27]CheckFolder [00:45:27]dirname=/storage/ofd_packets [00:45:27]CheckFolder done [00:45:27]ProducePacketName [00:45:27]name=ofd_packets/00070490 [00:45:27]NVStorageSaveData ofd_packets/00070490 [00:45:27]File name is /storage/ofd_packets/00070490 [00:45:27]Write 300 bytes [00:45:27]NVStorageSaveData done [00:45:27]OFDSenderStorePacket done [00:45:27]KKMCreateOFDPacket done [00:45:27]NVStorageSaveData kkm_last_timestamp [00:45:27]File name is /storage/kkm_last_timestamp [00:45:27]Write 4 bytes [00:45:27]NVStorageSaveData done [00:45:27]ExternCall_PrintAddStr [00:45:27]wPrintStart [00:45:27]Write to MH i2c: 01 00 00 E5 38 1D [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 07 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 07 00 E5 38 00 00 00 00 00 FF 0F 32 [00:45:27]RasterBufferAndPrint [00:45:27]line Счет N : (1)2886257 [00:45:27]line ИНН: 02508201610067 [00:45:27]line Контрольно-Кассовый Чек [00:45:27]line ПРОДАЖА [00:45:27]line ТРК (МРК, ГНК) : 71 [00:45:27]line Товар: 2711129700 [00:45:27]line ГАЗ-К-3 [00:45:27]line 20.570 * 38.90 [00:45:27]line = 800.17 [00:45:27]line НДС 12% НСП 1% [00:45:27]line > о реализуемом товаре [00:45:27]line ОКРУГЛЕНИЕ: -0.17 [00:45:27]line ИТОГО: 800.00 [00:45:27]line Внесено: 800.00 [00:45:27]line СДАЧА: 0.00 [00:45:27]line НСП 1% : 7.08 [00:45:27]line НДС 12% : 84.97 [00:45:27]line Наличными: 800.00 [00:45:27]line Безнал.: 0.00 [00:45:27]line Место: АЗС № 85 "Партнер Нефть" [00:45:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:45:27]line СНО: Общий режим [00:45:27]line Чек 6 23.10.2024 00:45 [00:45:27]line Смена: 196 ФФД: 1.0 [00:45:27]line ЗНМ: 0300000167 [00:45:27]line РНМ: 0000000000156251 [00:45:27]line Версия ККМ: v1.0 [00:45:27]line ФМ: 0000000000963346 [00:45:27]line ФД: 70490 [00:45:27]line ФПД: 65238354005411 [00:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70490&fm=65238354005411&tin=02508201610067®Number=0000000000156251&sum=80000 [00:45:27]OFD Sender: Processing packet 70490 [packets to send 18, broken 17] [00:45:27]ProducePacketName [00:45:27]name=ofd_packets/00070490 [00:45:27]OFD Sender: To server: pG, [00:45:27]CommunicateWithHost lk.salyk.kg:30040 [00:45:27]ConnectInit lk.salyk.kg [00:45:27]written 0, free lines is 4095 [00:45:27]Connected sock=10 [00:45: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 34 36 0E 01 00 00 B7 55 06 01 E0 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 06 00 00 00 F4 03 04 00 27 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 13 01 00 35 04 06 00 3B 55 7C EA 8D A3 3D 5F A5 20 E0 CA 5F 68 [00:45: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 34 36 4F 00 00 00 6D 30 47 00 60 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 34 36 10 04 04 00 5A 13 01 00 F4 03 04 00 C7 F0 17 67 B6 04 01 00 00 6A EC A6 74 26 71 31 F6 [00:45:28]CommunicateWithHost err = 0 [00:45:28]CheckOFDResponse [00:45:28]1017 (14) - 77093643461234 [00:45:28]1041 (16) - 0000000000963346 [00:45:28]1040 (4) - 70490 [00:45:28]1012 (4) - 22.10.2024 18:36 [00:45:28]1206 (1) - 0 [00:45:28]OFD Sender: Remove packet 70490 [00:45:28]ProducePacketName [00:45:28]name=ofd_packets/00070490 [00:45:28]NVStorageDeleteData [00:45:28]Write to MH i2c: 01 00 00 10 39 49 [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: 01 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: 01 07 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: 01 07 00 10 39 00 00 00 00 00 D9 0C 35 [00:45:28]RasterBufferAndPrint [00:45:28]line [00:45:28]line [00:45:28]line [00:45:28]line [00:45:28]line [00:45:28]written 0, free lines is 3300 [00:45:28]MH_Cut [00:45:28]Write to MH i2c: D1 01 00 17 39 01 22 [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: D1 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: D1 01 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: D1 01 00 17 39 00 21 [00:45:28]Write to MH i2c: 01 00 00 18 39 51 [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]OFD Sender: No OFD packet to send [00:45:28]*** Cut start [00:45:28]*** Partial cut [00:45:28]*** CUTSNS_PIN = 1 [00:45:28]*** CUTSNS_PIN = 0 [00:45:29]*** Brake cut motor [00:45:29]Read from MH i2c: 01 [00:45:29]MH_I2C_Read... [00:45:29]*** Stop cut motor [00:45:29]*** Cut end [00:45:29]Read from MH i2c: 01 07 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: 01 07 00 18 39 00 00 00 00 00 FF 0F 66 [00:45:29]process_action close_receipt done [00:45:29]requested_data is exist [00:45:29]produce_requested_data [00:45:29]requested_item fm.sn is exist - process it [00:45:29]wFMCommunicate request_size=4 [00:45:29]MH_SAM_APDU [00:45:29]CAPDU: 80 11 00 00 [00:45:29]Write to MH i2c: E2 08 00 19 39 80 11 00 00 00 00 00 00 CC [00:45:29]Write i2c OK [00:45:29]MH_I2C_Read... [00:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:29]Read from MH i2c: E2 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 17 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 17 00 19 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [00:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:45:29]wFMCommunicate OK [00:45:29]requested_item fd.num is exist - process it [00:45:29]SAM_PROTO_GetFieldsCounters [00:45:29]wFMCommunicate request_size=4 [00:45:29]MH_SAM_APDU [00:45:29]CAPDU: 80 13 00 00 [00:45:29]Write to MH i2c: E2 08 00 1A 39 80 13 00 00 00 00 00 00 CF [00:45:29]Write i2c OK [00:45:29]MH_I2C_Read... [00:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:29]Read from MH i2c: E2 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 62 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 62 00 1A 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 13 01 00 0E 04 04 00 C4 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 2E [00:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 13 01 00 0E 04 04 00 C4 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 [00:45:29]wFMCommunicate OK [00:45:29]SAM_PROTO_GetFieldsCounters done [00:45:29]requested_item shift.num is exist - process it [00:45:29]requested_item shift.opened is exist - process it [00:45:29]req_shift_opened [00:45:29]FM_GetShiftState [00:45:29]SAM_PROTO_GetShiftState [00:45:29]wFMCommunicate request_size=4 [00:45:29]MH_SAM_APDU [00:45:29]CAPDU: 80 13 01 00 [00:45:29]Write to MH i2c: E2 08 00 1B 39 80 13 01 00 00 00 00 00 D1 [00:45:29]Write i2c OK [00:45:29]MH_I2C_Read... [00:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:29]Read from MH i2c: E2 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 0E 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 0E 00 1B 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5E [00:45:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:45:29]wFMCommunicate OK [00:45:29]SAM_PROTO_GetShiftState done [00:45:29]FM_GetShiftState done [00:45:29]req_shift_opened done [00:45:29]requested_item shift.open_date is exist - process it [00:45:29]req_shift_open_date [00:45:29]req_shift_open_date done [00:45:29]produce_requested_data done [00:45:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70490,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:45:29]process_action_free close_receipt [00:45:29]json_value_free [00:45:29]json_value_free done [00:45:29]process_json_proto returns [00:45:29]Send response to host [00:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70490,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:45:29]free response buf [00:45:29]execute_script done [00:45:29]execute_script returns [00:45:29]free content buf [00:45:29]Sock 9.Close socket [00:45:29]Sock 9.Thread stoped [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:48]accept exits with 7 [00:45:48]New connection [00:45:48]New thread 3066699108 created [00:45:48]Thread 3066555748 joined [00:45:48]Waiting for new connection... [00:45:48] Sock 7.Parse request [00:45:48]Sock 7.Check first char [00:45:48]Sock 7.First char is OK [00:45:48]request: POST /json_proto HTTP/1.0 [00:45:48]Method: POST [00:45:48]URL: /json_proto [00:45:48]Method is POST - this is cgi request [00:45:48]url: /json_proto [00:45:48]query_string will be loaded in cgi processing [00:45:48]execute_cgi json_proto POST (null) [00:45:48]execute_cgi path=json_proto method=POST [00:45:48]POST find Content-Length [00:45:48]Host: 172.17.50.3:8080 [00:45:48]Content-Length: 767 [00:45:48]Content-Type: application/json [00:45:48] [00:45:48]POST finish read [00:45:48]Found Content-Length = 767 [00:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:48]execute_script... [00:45: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)2886258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:48]POST & json_proto [00:45:48]process_json_proto [00:45:48]json parsed OK: [00:45:48]protocol is kg_v1.0 [00:45:48]action value=close_receipt [00:45:48]process_action close_receipt [00:45:48]cmd_close_receipt [00:45:48]MH_GetDate [00:45:48]Write to MH i2c: F0 00 00 1C 39 44 [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 09 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 09 00 1C 39 00 3E 47 18 67 6B 98 1E 66 D8 [00:45:48]GetLastDocTimeStamp 1729644327 [00:45:48]current date 1729644350 [00:45:48]FM_GetShiftState [00:45:48]SAM_PROTO_GetShiftState [00:45:48]wFMCommunicate request_size=4 [00:45:48]MH_SAM_APDU [00:45:48]CAPDU: 80 13 01 00 [00:45:48]Write to MH i2c: E2 08 00 1D 39 80 13 01 00 00 00 00 00 D3 [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:48]Read from MH i2c: E2 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 1D 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 60 [00:45:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:45:48]wFMCommunicate OK [00:45:48]SAM_PROTO_GetShiftState done [00:45:48]FM_GetShiftState done [00:45:48]opened in 1729642435 [00:45:48]opened+sec_in_day 1729728835 [00:45:48]quantity*price = 40068 [00:45:48]sum+1 = 40069 [00:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.68 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 0.00 Безнал.: 400.68 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 7 23.10.2024 00:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70491 ФПД: 165911975147185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70491&fm=165911975147185&tin=02508201610067®Number=0000000000156251&sum=40068 [00:45:49]StoreToDocumentArchive [00:45:49]shift 196 fd 70491 [00:45:49]save to /storage/0196/doc_00070491 [00:45:49]save last doc name /storage/0196/doc_00070491 to /storage/kkm_last_doc_name [00:45:49]save OK [00:45:49]Clear old archive folders... [00:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:49]tlvbuf is 00EDA290 [00:45:49]SAM_PROTO_ClearQueue [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 09 00 00 [00:45:49]Write to MH i2c: E2 08 00 2A 39 80 09 00 00 00 00 00 00 D5 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 2A 39 00 90 00 D7 [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]SAM_PROTO_ClearQueue done [00:45:50]KKMCreateOFDPacket [00:45:50]OFDProtocolAddRootSTLVToBuf [00:45:50]FM_MakeSignedData [00:45:50]FM_MakeSignedData [00:45:50]SAM_PROTO_SignData [00:45:50]wFMCommunicate request_size=4 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 0D 01 02 [00:45:50]Write to MH i2c: E2 08 00 2B 39 80 0D 01 02 00 00 00 00 DD [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 2B 39 00 90 00 D8 [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]wFMCommunicate request_size=255 [00:45:50]MH_SAM_APDU [00:45: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 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 84 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 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 3E 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 13 01 00 35 04 06 00 96 [00:45:50]Write to MH i2c: E2 02 01 2C 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 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 84 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 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 3E 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 13 01 00 35 04 06 00 96 00 00 71 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 2C 39 00 90 00 D9 [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]wFMCommunicate request_size=10 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 0D 02 02 05 E5 64 57 B6 B1 [00:45:50]Write to MH i2c: E2 0D 00 2D 39 80 0D 02 02 05 00 E5 64 57 B6 B1 00 00 F1 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 2D 39 00 90 00 DA [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]wFMCommunicate request_size=4 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 0D 03 02 [00:45:50]Write to MH i2c: E2 08 00 2E 39 80 0D 03 02 00 00 00 00 E2 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 0B 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 0B 00 2E 39 00 6B 09 AF B8 66 3D 90 A6 90 00 97 [00:45:50]RAPDU: 6B 09 AF B8 66 3D 90 A6 90 00 [00:45:50]wFMCommunicate OK [00:45:50]SAM_PROTO_SignData done [00:45:50]FM_MakeSignedData done [00:45:50]CreateOFDProtocolMessage [00:45:50]wFMCommunicate request_size=4 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 11 00 00 [00:45:50]Write to MH i2c: E2 08 00 2F 39 80 11 00 00 00 00 00 00 E2 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 17 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 17 00 2F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [00:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:45:50]wFMCommunicate OK [00:45:50]CreateOFDProtocolMessage done [00:45:50]OFDSenderStorePacket 70491 [00:45:50]StoreOFDPacket docnum=70491 [00:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FC DC 07 01 9E 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 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 84 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 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 3E 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 13 01 00 35 04 06 00 96 E5 64 57 B6 B1 6B 09 AF B8 66 3D 90 A6 [00:45:50]CheckFolder [00:45:50]dirname=/storage/ofd_packets [00:45:50]CheckFolder done [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00070491 [00:45:50]NVStorageSaveData ofd_packets/00070491 [00:45:50]File name is /storage/ofd_packets/00070491 [00:45:50]Write 301 bytes [00:45:50]NVStorageSaveData done [00:45:50]OFDSenderStorePacket done [00:45:50]KKMCreateOFDPacket done [00:45:50]NVStorageSaveData kkm_last_timestamp [00:45:50]File name is /storage/kkm_last_timestamp [00:45:50]Write 4 bytes [00:45:50]NVStorageSaveData done [00:45:50]ExternCall_PrintAddStr [00:45:50]wPrintStart [00:45:50]Write to MH i2c: 01 00 00 30 39 69 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 30 39 00 00 00 00 00 FF 0F 7E [00:45:50]RasterBufferAndPrint [00:45:50]line Счет N : (1)2886258 [00:45:50]line ИНН: 02508201610067 [00:45:50]line Контрольно-Кассовый Чек [00:45:50]line ПРОДАЖА [00:45:50]line ТРК (МРК, ГНК) : 13 [00:45:50]line Товар: 2710124500 [00:45:50]line Аи-95-К-5 [00:45:50]line 5.400 * 74.20 [00:45:50]line = 400.68 [00:45:50]line НДС 12% НСП 1% [00:45:50]line > о реализуемом товаре [00:45:50]line ИТОГО: 400.68 [00:45:50]line НСП 1% : 3.55 [00:45:50]line НДС 12% : 42.55 [00:45:50]line Наличными: 0.00 [00:45:50]line Безнал.: 400.68 [00:45:50]line Место: АЗС № 85 "Партнер Нефть" [00:45:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:45:50]line СНО: Общий режим [00:45:50]line Чек 7 23.10.2024 00:45 [00:45:50]line Смена: 196 ФФД: 1.0 [00:45:50]line ЗНМ: 0300000167 [00:45:50]line РНМ: 0000000000156251 [00:45:50]line Версия ККМ: v1.0 [00:45:50]line Платежная система: Mbank [00:45:50]line ФМ: 0000000000963346 [00:45:50]line ФД: 70491 [00:45:50]line ФПД: 165911975147185 [00:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70491&fm=165911975147185&tin=02508201610067®Number=0000000000156251&sum=40068 [00:45:50]OFD Sender: Processing packet 70491 [packets to send 18, broken 17] [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00070491 [00:45:50]OFD Sender: To server: pG, [00:45:50]CommunicateWithHost lk.salyk.kg:30040 [00:45:50]ConnectInit lk.salyk.kg [00:45:50]written 0, free lines is 4095 [00:45:50]Connected sock=10 [00:45: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 34 36 0F 01 00 00 FC DC 07 01 9E 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 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 84 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 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 3E 47 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 13 01 00 35 04 06 00 96 E5 64 57 B6 B1 6B 09 AF B8 66 3D 90 A6 [00:45: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 34 36 4F 00 00 00 9D 1D 47 00 03 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 34 36 10 04 04 00 5B 13 01 00 F4 03 04 00 DE F0 17 67 B6 04 01 00 00 02 CC 85 0F 3D EA 15 E4 [00:45:51]CommunicateWithHost err = 0 [00:45:51]CheckOFDResponse [00:45:51]1017 (14) - 77093643461234 [00:45:51]1041 (16) - 0000000000963346 [00:45:51]1040 (4) - 70491 [00:45:51]1012 (4) - 22.10.2024 18:37 [00:45:51]1206 (1) - 0 [00:45:51]OFD Sender: Remove packet 70491 [00:45:51]ProducePacketName [00:45:51]name=ofd_packets/00070491 [00:45:51]NVStorageDeleteData [00:45:51]Write to MH i2c: 01 00 00 59 39 92 [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: 01 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: 01 07 00 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: 01 07 00 59 39 00 00 00 00 00 07 0D AD [00:45:51]RasterBufferAndPrint [00:45:51]line [00:45:51]line [00:45:51]line [00:45:51]line [00:45:51]line [00:45:51]written 0, free lines is 3341 [00:45:51]MH_Cut [00:45:51]Write to MH i2c: D1 01 00 60 39 01 6B [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: D1 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: D1 01 00 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: D1 01 00 60 39 00 6A [00:45:51]Write to MH i2c: 01 00 00 61 39 9A [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:51]OFD Sender: No OFD packet to send [00:45:51]*** Cut start [00:45:51]*** Partial cut [00:45:51]*** CUTSNS_PIN = 1 [00:45:52]*** CUTSNS_PIN = 0 [00:45:52]*** Brake cut motor [00:45:52]Read from MH i2c: 01 [00:45:52]MH_I2C_Read... [00:45:52]*** Stop cut motor [00:45:52]*** Cut end [00:45:52]Read from MH i2c: 01 07 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: 01 07 00 61 39 00 00 00 00 00 FF 0F AF [00:45:52]process_action close_receipt done [00:45:52]requested_data is exist [00:45:52]produce_requested_data [00:45:52]requested_item fm.sn is exist - process it [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 11 00 00 [00:45:52]Write to MH i2c: E2 08 00 62 39 80 11 00 00 00 00 00 00 15 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 17 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 17 00 62 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [00:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:45:52]wFMCommunicate OK [00:45:52]requested_item fd.num is exist - process it [00:45:52]SAM_PROTO_GetFieldsCounters [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 13 00 00 [00:45:52]Write to MH i2c: E2 08 00 63 39 80 13 00 00 00 00 00 00 18 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 62 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 62 00 63 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 13 01 00 0E 04 04 00 C4 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 7B [00:45: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 13 01 00 0E 04 04 00 C4 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 [00:45:52]wFMCommunicate OK [00:45:52]SAM_PROTO_GetFieldsCounters done [00:45:52]requested_item shift.num is exist - process it [00:45:52]requested_item shift.opened is exist - process it [00:45:52]req_shift_opened [00:45:52]FM_GetShiftState [00:45:52]SAM_PROTO_GetShiftState [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 13 01 00 [00:45:52]Write to MH i2c: E2 08 00 64 39 80 13 01 00 00 00 00 00 1A [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:52]Read from MH i2c: E2 0E 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 64 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A7 [00:45:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:45:52]wFMCommunicate OK [00:45:52]SAM_PROTO_GetShiftState done [00:45:52]FM_GetShiftState done [00:45:52]req_shift_opened done [00:45:52]requested_item shift.open_date is exist - process it [00:45:52]req_shift_open_date [00:45:52]req_shift_open_date done [00:45:52]produce_requested_data done [00:45:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70491,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:45:52]process_action_free close_receipt [00:45:52]json_value_free [00:45:52]json_value_free done [00:45:52]process_json_proto returns [00:45:52]Send response to host [00:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70491,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:45:52]free response buf [00:45:52]execute_script done [00:45:52]execute_script returns [00:45:52]free content buf [00:45:52]Sock 7.Close socket [00:45:52]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:39]accept exits with 9 [00:58:39]New connection [00:58:39]New thread 3066555748 created [00:58:39]Thread 3066699108 joined [00:58:39]Waiting for new connection... [00:58:39] Sock 9.Parse request [00:58:39]Sock 9.Check first char [00:58:39]Sock 9.First char is OK [00:58:39]request: POST /json_proto HTTP/1.0 [00:58:39]Method: POST [00:58:39]URL: /json_proto [00:58:39]Method is POST - this is cgi request [00:58:39]url: /json_proto [00:58:39]query_string will be loaded in cgi processing [00:58:39]execute_cgi json_proto POST (null) [00:58:39]execute_cgi path=json_proto method=POST [00:58:39]POST find Content-Length [00:58:39]Host: 172.17.50.3:8080 [00:58:39]Content-Length: 686 [00:58:39]Content-Type: application/json [00:58:39] [00:58:39]POST finish read [00:58:39]Found Content-Length = 686 [00:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.000, "sum" : 2061.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2061.00, "payments": [ { "type": 0, "sum" : 2061.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:39]execute_script... [00:58: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)2886259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.000, "sum" : 2061.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2061.00, "payments": [ { "type": 0, "sum" : 2061.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:39]POST & json_proto [00:58:39]process_json_proto [00:58:39]json parsed OK: [00:58:39]protocol is kg_v1.0 [00:58:39]action value=close_receipt [00:58:39]process_action close_receipt [00:58:39]cmd_close_receipt [00:58:39]MH_GetDate [00:58:39]Write to MH i2c: F0 00 00 65 39 8D [00:58:39]Write i2c OK [00:58:39]MH_I2C_Read... [00:58:39]Read from MH i2c: F0 [00:58:39]MH_I2C_Read... [00:58:39]Read from MH i2c: F0 09 00 [00:58:39]MH_I2C_Read... [00:58:39]Read from MH i2c: F0 09 00 65 39 00 41 4A 18 67 6B 98 1E 66 27 [00:58:39]GetLastDocTimeStamp 1729644350 [00:58:39]current date 1729645121 [00:58:39]FM_GetShiftState [00:58:39]SAM_PROTO_GetShiftState [00:58:39]wFMCommunicate request_size=4 [00:58:39]MH_SAM_APDU [00:58:39]CAPDU: 80 13 01 00 [00:58:39]Write to MH i2c: E2 08 00 66 39 80 13 01 00 00 00 00 00 1C [00:58:39]Write i2c OK [00:58:39]MH_I2C_Read... [00:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:39]Read from MH i2c: E2 [00:58:39]MH_I2C_Read... [00:58:39]Read from MH i2c: E2 0E 00 [00:58:39]MH_I2C_Read... [00:58:39]Read from MH i2c: E2 0E 00 66 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A9 [00:58:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:58:39]wFMCommunicate OK [00:58:39]SAM_PROTO_GetShiftState done [00:58:39]FM_GetShiftState done [00:58:39]opened in 1729642435 [00:58:39]opened+sec_in_day 1729728835 [00:58:39]quantity*price = 206170 [00:58:39]sum+1 = 206171 [00:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2061.00 Внесено: 3000.00 СДАЧА: 939.00 НСП 1% : 18.24 НДС 12% : 218.94 Наличными: 2061.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 8 23.10.2024 00:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70492 ФПД: 271430579571555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70492&fm=271430579571555&tin=02508201610067®Number=0000000000156251&sum=206100 [00:58:40]StoreToDocumentArchive [00:58:40]shift 196 fd 70492 [00:58:40]save to /storage/0196/doc_00070492 [00:58:40]save last doc name /storage/0196/doc_00070492 to /storage/kkm_last_doc_name [00:58:40]save OK [00:58:40]Clear old archive folders... [00:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:58:40]tlvbuf is 00B47710 [00:58:40]SAM_PROTO_ClearQueue [00:58:40]wFMCommunicate request_size=4 [00:58:40]MH_SAM_APDU [00:58:40]CAPDU: 80 09 00 00 [00:58:40]Write to MH i2c: E2 08 00 73 39 80 09 00 00 00 00 00 00 1E [00:58:40]Write i2c OK [00:58:40]MH_I2C_Read... [00:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:40]Read from MH i2c: E2 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 73 39 00 90 00 20 [00:58:40]RAPDU: 90 00 [00:58:40]wFMCommunicate OK [00:58:40]SAM_PROTO_ClearQueue done [00:58:40]KKMCreateOFDPacket [00:58:40]OFDProtocolAddRootSTLVToBuf [00:58:40]FM_MakeSignedData [00:58:40]FM_MakeSignedData [00:58:40]SAM_PROTO_SignData [00:58:40]wFMCommunicate request_size=4 [00:58:40]MH_SAM_APDU [00:58:40]CAPDU: 80 0D 01 02 [00:58:40]Write to MH i2c: E2 08 00 74 39 80 0D 01 02 00 00 00 00 26 [00:58:40]Write i2c OK [00:58:40]MH_I2C_Read... [00:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:40]Read from MH i2c: E2 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 74 39 00 90 00 21 [00:58:40]RAPDU: 90 00 [00:58:40]wFMCommunicate OK [00:58:40]wFMCommunicate request_size=255 [00:58:40]MH_SAM_APDU [00:58:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 08 CF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5A 25 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 25 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 55 00 00 00 00 07 04 06 00 14 25 03 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 41 4A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 13 01 00 35 04 06 00 F6 DD [00:58:40]Write to MH i2c: E2 02 01 75 39 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 08 CF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5A 25 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 25 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 55 00 00 00 00 07 04 06 00 14 25 03 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 41 4A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 13 01 00 35 04 06 00 F6 DD 00 00 05 [00:58:40]Write i2c OK [00:58:40]MH_I2C_Read... [00:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:40]Read from MH i2c: E2 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 75 39 00 90 00 22 [00:58:40]RAPDU: 90 00 [00:58:40]wFMCommunicate OK [00:58:40]wFMCommunicate request_size=9 [00:58:40]MH_SAM_APDU [00:58:40]CAPDU: 80 0D 02 02 04 5B 46 CB 63 [00:58:40]Write to MH i2c: E2 0C 00 76 39 80 0D 02 02 04 00 5B 46 CB 63 00 00 00 [00:58:40]Write i2c OK [00:58:40]MH_I2C_Read... [00:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:40]Read from MH i2c: E2 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 [00:58:40]MH_I2C_Read... [00:58:40]Read from MH i2c: E2 03 00 76 39 00 90 00 23 [00:58:40]RAPDU: 90 00 [00:58:40]wFMCommunicate OK [00:58:40]wFMCommunicate request_size=4 [00:58:40]MH_SAM_APDU [00:58:40]CAPDU: 80 0D 03 02 [00:58:40]Write to MH i2c: E2 08 00 77 39 80 0D 03 02 00 00 00 00 2B [00:58:40]Write i2c OK [00:58:40]MH_I2C_Read... [00:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:41]Read from MH i2c: E2 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: E2 0B 00 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: E2 0B 00 77 39 00 9F 3F A4 2A 56 E7 F0 F5 90 00 FA [00:58:41]RAPDU: 9F 3F A4 2A 56 E7 F0 F5 90 00 [00:58:41]wFMCommunicate OK [00:58:41]SAM_PROTO_SignData done [00:58:41]FM_MakeSignedData done [00:58:41]CreateOFDProtocolMessage [00:58:41]wFMCommunicate request_size=4 [00:58:41]MH_SAM_APDU [00:58:41]CAPDU: 80 11 00 00 [00:58:41]Write to MH i2c: E2 08 00 78 39 80 11 00 00 00 00 00 00 2B [00:58:41]Write i2c OK [00:58:41]MH_I2C_Read... [00:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:41]Read from MH i2c: E2 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: E2 17 00 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: E2 17 00 78 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [00:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:58:41]wFMCommunicate OK [00:58:41]CreateOFDProtocolMessage done [00:58:41]OFDSenderStorePacket 70492 [00:58:41]StoreOFDPacket docnum=70492 [00:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 53 8B 06 01 26 AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 08 CF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5A 25 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 25 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 55 00 00 00 00 07 04 06 00 14 25 03 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 41 4A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 13 01 00 35 04 06 00 F6 DD 5B 46 CB 63 9F 3F A4 2A 56 E7 F0 F5 [00:58:41]CheckFolder [00:58:41]dirname=/storage/ofd_packets [00:58:41]CheckFolder done [00:58:41]ProducePacketName [00:58:41]name=ofd_packets/00070492 [00:58:41]NVStorageSaveData ofd_packets/00070492 [00:58:41]File name is /storage/ofd_packets/00070492 [00:58:41]Write 300 bytes [00:58:41]NVStorageSaveData done [00:58:41]OFDSenderStorePacket done [00:58:41]KKMCreateOFDPacket done [00:58:41]NVStorageSaveData kkm_last_timestamp [00:58:41]File name is /storage/kkm_last_timestamp [00:58:41]Write 4 bytes [00:58:41]NVStorageSaveData done [00:58:41]ExternCall_PrintAddStr [00:58:41]wPrintStart [00:58:41]Write to MH i2c: 01 00 00 79 39 B2 [00:58:41]Write i2c OK [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 07 00 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 07 00 79 39 00 00 00 00 00 FF 0F C7 [00:58:41]RasterBufferAndPrint [00:58:41]line Счет N : (1)2886259 [00:58:41]line ИНН: 02508201610067 [00:58:41]line Контрольно-Кассовый Чек [00:58:41]line ПРОДАЖА [00:58:41]line ТРК (МРК, ГНК) : 71 [00:58:41]line Товар: 2711129700 [00:58:41]line ГАЗ-К-3 [00:58:41]line 53.000 * 38.90 [00:58:41]line = 2061.70 [00:58:41]line НДС 12% НСП 1% [00:58:41]line > о реализуемом товаре [00:58:41]line ОКРУГЛЕНИЕ: -0.70 [00:58:41]line ИТОГО: 2061.00 [00:58:41]line Внесено: 3000.00 [00:58:41]line СДАЧА: 939.00 [00:58:41]line НСП 1% : 18.24 [00:58:41]line НДС 12% : 218.94 [00:58:41]line Наличными: 2061.00 [00:58:41]line Безнал.: 0.00 [00:58:41]line Место: АЗС № 85 "Партнер Нефть" [00:58:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:58:41]line СНО: Общий режим [00:58:41]line Чек 8 23.10.2024 00:58 [00:58:41]line Смена: 196 ФФД: 1.0 [00:58:41]line ЗНМ: 0300000167 [00:58:41]line РНМ: 0000000000156251 [00:58:41]line Версия ККМ: v1.0 [00:58:41]line ФМ: 0000000000963346 [00:58:41]line ФД: 70492 [00:58:41]line ФПД: 271430579571555 [00:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70492&fm=271430579571555&tin=02508201610067®Number=0000000000156251&sum=206100 [00:58:41]OFD Sender: Processing packet 70492 [packets to send 18, broken 17] [00:58:41]ProducePacketName [00:58:41]name=ofd_packets/00070492 [00:58:41]OFD Sender: To server: pG, [00:58:41]CommunicateWithHost lk.salyk.kg:30040 [00:58:41]ConnectInit lk.salyk.kg [00:58:41]written 0, free lines is 4095 [00:58:41]Connected sock=10 [00:58: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 34 36 0E 01 00 00 53 8B 06 01 26 AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 08 CF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5A 25 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 25 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 55 00 00 00 00 07 04 06 00 14 25 03 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 41 4A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 13 01 00 35 04 06 00 F6 DD 5B 46 CB 63 9F 3F A4 2A 56 E7 F0 F5 [00:58: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 34 36 4F 00 00 00 2D 6E 47 00 19 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 13 01 00 F4 03 04 00 E0 F3 17 67 B6 04 01 00 00 02 1F 8F 92 E0 C4 94 39 [00:58:41]CommunicateWithHost err = 0 [00:58:41]CheckOFDResponse [00:58:41]1017 (14) - 77093643461234 [00:58:41]1041 (16) - 0000000000963346 [00:58:41]1040 (4) - 70492 [00:58:41]1012 (4) - 22.10.2024 18:50 [00:58:41]1206 (1) - 0 [00:58:41]OFD Sender: Remove packet 70492 [00:58:41]ProducePacketName [00:58:41]name=ofd_packets/00070492 [00:58:41]NVStorageDeleteData [00:58:41]Write to MH i2c: 01 00 00 A4 39 DD [00:58:41]Write i2c OK [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 07 00 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: 01 07 00 A4 39 00 00 00 00 00 EC 0C DC [00:58:41]RasterBufferAndPrint [00:58:41]line [00:58:41]line [00:58:41]line [00:58:41]line [00:58:41]line [00:58:41]written 0, free lines is 3314 [00:58:41]MH_Cut [00:58:41]Write to MH i2c: D1 01 00 AB 39 01 B6 [00:58:41]Write i2c OK [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: D1 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: D1 01 00 [00:58:41]MH_I2C_Read... [00:58:41]Read from MH i2c: D1 01 00 AB 39 00 B5 [00:58:41]Write to MH i2c: 01 00 00 AC 39 E5 [00:58:41]Write i2c OK [00:58:41]MH_I2C_Read... [00:58:42]OFD Sender: No OFD packet to send [00:58:42]*** Cut start [00:58:42]*** Partial cut [00:58:42]*** CUTSNS_PIN = 1 [00:58:42]*** CUTSNS_PIN = 0 [00:58:42]*** Brake cut motor [00:58:43]Read from MH i2c: 01 [00:58:43]MH_I2C_Read... [00:58:43]*** Stop cut motor [00:58:43]*** Cut end [00:58:43]Read from MH i2c: 01 07 00 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: 01 07 00 AC 39 00 00 00 00 00 FF 0F FA [00:58:43]process_action close_receipt done [00:58:43]requested_data is exist [00:58:43]produce_requested_data [00:58:43]requested_item fm.sn is exist - process it [00:58:43]wFMCommunicate request_size=4 [00:58:43]MH_SAM_APDU [00:58:43]CAPDU: 80 11 00 00 [00:58:43]Write to MH i2c: E2 08 00 AD 39 80 11 00 00 00 00 00 00 60 [00:58:43]Write i2c OK [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 [00:58:43]MH_I2C_Read... [00:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:43]Read from MH i2c: E2 17 00 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 17 00 AD 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [00:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:58:43]wFMCommunicate OK [00:58:43]requested_item fd.num is exist - process it [00:58:43]SAM_PROTO_GetFieldsCounters [00:58:43]wFMCommunicate request_size=4 [00:58:43]MH_SAM_APDU [00:58:43]CAPDU: 80 13 00 00 [00:58:43]Write to MH i2c: E2 08 00 AE 39 80 13 00 00 00 00 00 00 63 [00:58:43]Write i2c OK [00:58:43]MH_I2C_Read... [00:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:43]Read from MH i2c: E2 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 62 00 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 62 00 AE 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 13 01 00 0E 04 04 00 C4 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 CA [00:58: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 13 01 00 0E 04 04 00 C4 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 [00:58:43]wFMCommunicate OK [00:58:43]SAM_PROTO_GetFieldsCounters done [00:58:43]requested_item shift.num is exist - process it [00:58:43]requested_item shift.opened is exist - process it [00:58:43]req_shift_opened [00:58:43]FM_GetShiftState [00:58:43]SAM_PROTO_GetShiftState [00:58:43]wFMCommunicate request_size=4 [00:58:43]MH_SAM_APDU [00:58:43]CAPDU: 80 13 01 00 [00:58:43]Write to MH i2c: E2 08 00 AF 39 80 13 01 00 00 00 00 00 65 [00:58:43]Write i2c OK [00:58:43]MH_I2C_Read... [00:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:43]Read from MH i2c: E2 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 0E 00 [00:58:43]MH_I2C_Read... [00:58:43]Read from MH i2c: E2 0E 00 AF 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F2 [00:58:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [00:58:43]wFMCommunicate OK [00:58:43]SAM_PROTO_GetShiftState done [00:58:43]FM_GetShiftState done [00:58:43]req_shift_opened done [00:58:43]requested_item shift.open_date is exist - process it [00:58:43]req_shift_open_date [00:58:43]req_shift_open_date done [00:58:43]produce_requested_data done [00:58:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70492,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [00:58:43]process_action_free close_receipt [00:58:43]json_value_free [00:58:43]json_value_free done [00:58:43]process_json_proto returns [00:58:43]Send response to host [00:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70492,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [00:58:43]free response buf [00:58:43]execute_script done [00:58:43]execute_script returns [00:58:43]free content buf [00:58:43]Sock 9.Close socket [00:58:43]Sock 9.Thread stoped [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:46]accept exits with 7 [01:22:46]New connection [01:22:46]New thread 3066699108 created [01:22:46]Thread 3066555748 joined [01:22:46]Waiting for new connection... [01:22:46] Sock 7.Parse request [01:22:46]Sock 7.Check first char [01:22:46]Sock 7.First char is OK [01:22:46]request: POST /json_proto HTTP/1.0 [01:22:46]Method: POST [01:22:46]URL: /json_proto [01:22:46]Method is POST - this is cgi request [01:22:46]url: /json_proto [01:22:46]query_string will be loaded in cgi processing [01:22:46]execute_cgi json_proto POST (null) [01:22:46]execute_cgi path=json_proto method=POST [01:22:46]POST find Content-Length [01:22:46]Host: 172.17.50.3:8080 [01:22:46]Content-Length: 686 [01:22:46]Content-Type: application/json [01:22:46] [01:22:46]POST finish read [01:22:46]Found Content-Length = 686 [01:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.940, "sum" : 1320.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:46]execute_script... [01:22: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)2886260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.940, "sum" : 1320.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:46]POST & json_proto [01:22:46]process_json_proto [01:22:46]json parsed OK: [01:22:46]protocol is kg_v1.0 [01:22:46]action value=close_receipt [01:22:46]process_action close_receipt [01:22:46]cmd_close_receipt [01:22:46]MH_GetDate [01:22:46]Write to MH i2c: F0 00 00 B0 39 D8 [01:22:46]Write i2c OK [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: F0 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: F0 09 00 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: F0 09 00 B0 39 00 E8 4F 18 67 6B 98 1E 66 1E [01:22:46]GetLastDocTimeStamp 1729645121 [01:22:46]current date 1729646568 [01:22:46]FM_GetShiftState [01:22:46]SAM_PROTO_GetShiftState [01:22:46]wFMCommunicate request_size=4 [01:22:46]MH_SAM_APDU [01:22:46]CAPDU: 80 13 01 00 [01:22:46]Write to MH i2c: E2 08 00 B1 39 80 13 01 00 00 00 00 00 67 [01:22:46]Write i2c OK [01:22:46]MH_I2C_Read... [01:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:46]Read from MH i2c: E2 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 0E 00 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 0E 00 B1 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F4 [01:22:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:22:46]wFMCommunicate OK [01:22:46]SAM_PROTO_GetShiftState done [01:22:46]FM_GetShiftState done [01:22:46]opened in 1729642435 [01:22:46]opened+sec_in_day 1729728835 [01:22:46]quantity*price = 132026 [01:22:46]sum+1 = 132028 [01:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1320.00 Внесено: 1320.00 СДАЧА: 0.00 НСП 1% : 11.68 НДС 12% : 140.21 Наличными: 1320.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 9 23.10.2024 01:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70493 ФПД: 269073606773231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70493&fm=269073606773231&tin=02508201610067®Number=0000000000156251&sum=132000 [01:22:47]StoreToDocumentArchive [01:22:47]shift 196 fd 70493 [01:22:47]save to /storage/0196/doc_00070493 [01:22:47]save last doc name /storage/0196/doc_00070493 to /storage/kkm_last_doc_name [01:22:47]save OK [01:22:47]Clear old archive folders... [01:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:22:47]tlvbuf is B6F17830 [01:22:47]SAM_PROTO_ClearQueue [01:22:47]wFMCommunicate request_size=4 [01:22:47]MH_SAM_APDU [01:22:47]CAPDU: 80 09 00 00 [01:22:47]Write to MH i2c: E2 08 00 BE 39 80 09 00 00 00 00 00 00 69 [01:22:47]Write i2c OK [01:22:47]MH_I2C_Read... [01:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:47]Read from MH i2c: E2 [01:22:47]MH_I2C_Read... [01:22:47]Read from MH i2c: E2 03 00 [01:22:47]MH_I2C_Read... [01:22:47]Read from MH i2c: E2 03 00 BE 39 00 90 00 6B [01:22:47]RAPDU: 90 00 [01:22:47]wFMCommunicate OK [01:22:47]SAM_PROTO_ClearQueue done [01:22:47]KKMCreateOFDPacket [01:22:47]OFDProtocolAddRootSTLVToBuf [01:22:47]FM_MakeSignedData [01:22:47]FM_MakeSignedData [01:22:47]SAM_PROTO_SignData [01:22:47]wFMCommunicate request_size=4 [01:22:47]MH_SAM_APDU [01:22:47]CAPDU: 80 0D 01 02 [01:22:47]Write to MH i2c: E2 08 00 BF 39 80 0D 01 02 00 00 00 00 71 [01:22:47]Write i2c OK [01:22:47]MH_I2C_Read... [01:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:47]Read from MH i2c: E2 [01:22:47]MH_I2C_Read... [01:22:47]Read from MH i2c: E2 03 00 [01:22:47]MH_I2C_Read... [01:22:47]Read from MH i2c: E2 03 00 BF 39 00 90 00 6C [01:22:47]RAPDU: 90 00 [01:22:47]wFMCommunicate OK [01:22:47]wFMCommunicate request_size=255 [01:22:47]MH_SAM_APDU [01:22:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 94 84 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 36 00 00 00 00 07 04 06 00 A0 03 02 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 E8 4F 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 13 01 00 35 04 06 00 F4 B8 [01:22:47]Write to MH i2c: E2 02 01 C0 39 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 94 84 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 36 00 00 00 00 07 04 06 00 A0 03 02 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 E8 4F 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 13 01 00 35 04 06 00 F4 B8 00 00 B5 [01:22:47]Write i2c OK [01:22:47]MH_I2C_Read... [01:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:48]Read from MH i2c: E2 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 03 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 03 00 C0 39 00 90 00 6D [01:22:48]RAPDU: 90 00 [01:22:48]wFMCommunicate OK [01:22:48]wFMCommunicate request_size=9 [01:22:48]MH_SAM_APDU [01:22:48]CAPDU: 80 0D 02 02 04 94 C0 09 EF [01:22:48]Write to MH i2c: E2 0C 00 C1 39 80 0D 02 02 04 00 94 C0 09 EF 00 00 C8 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:48]Read from MH i2c: E2 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 03 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 03 00 C1 39 00 90 00 6E [01:22:48]RAPDU: 90 00 [01:22:48]wFMCommunicate OK [01:22:48]wFMCommunicate request_size=4 [01:22:48]MH_SAM_APDU [01:22:48]CAPDU: 80 0D 03 02 [01:22:48]Write to MH i2c: E2 08 00 C2 39 80 0D 03 02 00 00 00 00 76 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:48]Read from MH i2c: E2 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 0B 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 0B 00 C2 39 00 AA 4B A7 03 2A 76 15 94 90 00 5F [01:22:48]RAPDU: AA 4B A7 03 2A 76 15 94 90 00 [01:22:48]wFMCommunicate OK [01:22:48]SAM_PROTO_SignData done [01:22:48]FM_MakeSignedData done [01:22:48]CreateOFDProtocolMessage [01:22:48]wFMCommunicate request_size=4 [01:22:48]MH_SAM_APDU [01:22:48]CAPDU: 80 11 00 00 [01:22:48]Write to MH i2c: E2 08 00 C3 39 80 11 00 00 00 00 00 00 76 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:48]Read from MH i2c: E2 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 17 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: E2 17 00 C3 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [01:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:22:48]wFMCommunicate OK [01:22:48]CreateOFDProtocolMessage done [01:22:48]OFDSenderStorePacket 70493 [01:22:48]StoreOFDPacket docnum=70493 [01:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 24 E7 06 01 1B F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 94 84 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 36 00 00 00 00 07 04 06 00 A0 03 02 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 E8 4F 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 13 01 00 35 04 06 00 F4 B8 94 C0 09 EF AA 4B A7 03 2A 76 15 94 [01:22:48]CheckFolder [01:22:48]dirname=/storage/ofd_packets [01:22:48]CheckFolder done [01:22:48]ProducePacketName [01:22:48]name=ofd_packets/00070493 [01:22:48]NVStorageSaveData ofd_packets/00070493 [01:22:48]File name is /storage/ofd_packets/00070493 [01:22:48]Write 300 bytes [01:22:48]NVStorageSaveData done [01:22:48]OFDSenderStorePacket done [01:22:48]KKMCreateOFDPacket done [01:22:48]NVStorageSaveData kkm_last_timestamp [01:22:48]File name is /storage/kkm_last_timestamp [01:22:48]Write 4 bytes [01:22:48]NVStorageSaveData done [01:22:48]ExternCall_PrintAddStr [01:22:48]wPrintStart [01:22:48]Write to MH i2c: 01 00 00 C4 39 FD [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 C4 39 00 00 00 00 00 FF 0F 12 [01:22:48]RasterBufferAndPrint [01:22:48]line Счет N : (1)2886260 [01:22:48]line ИНН: 02508201610067 [01:22:48]line Контрольно-Кассовый Чек [01:22:48]line ПРОДАЖА [01:22:48]line ТРК (МРК, ГНК) : 71 [01:22:48]line Товар: 2711129700 [01:22:48]line ГАЗ-К-3 [01:22:48]line 33.940 * 38.90 [01:22:48]line = 1320.27 [01:22:48]line НДС 12% НСП 1% [01:22:48]line > о реализуемом товаре [01:22:48]line ОКРУГЛЕНИЕ: -0.27 [01:22:48]line ИТОГО: 1320.00 [01:22:48]line Внесено: 1320.00 [01:22:48]line СДАЧА: 0.00 [01:22:48]line НСП 1% : 11.68 [01:22:48]line НДС 12% : 140.21 [01:22:48]line Наличными: 1320.00 [01:22:48]line Безнал.: 0.00 [01:22:48]line Место: АЗС № 85 "Партнер Нефть" [01:22:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:22:48]line СНО: Общий режим [01:22:48]line Чек 9 23.10.2024 01:22 [01:22:48]line Смена: 196 ФФД: 1.0 [01:22:48]line ЗНМ: 0300000167 [01:22:48]line РНМ: 0000000000156251 [01:22:48]line Версия ККМ: v1.0 [01:22:48]line ФМ: 0000000000963346 [01:22:48]line ФД: 70493 [01:22:48]line ФПД: 269073606773231 [01:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70493&fm=269073606773231&tin=02508201610067®Number=0000000000156251&sum=132000 [01:22:48]OFD Sender: Processing packet 70493 [packets to send 18, broken 17] [01:22:48]ProducePacketName [01:22:48]name=ofd_packets/00070493 [01:22:48]OFD Sender: To server: pG, [01:22:48]CommunicateWithHost lk.salyk.kg:30040 [01:22:48]ConnectInit lk.salyk.kg [01:22:48]written 0, free lines is 4095 [01:22:48]Connected sock=10 [01:22: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 34 36 0E 01 00 00 24 E7 06 01 1B F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 94 84 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 36 00 00 00 00 07 04 06 00 A0 03 02 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 E8 4F 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 13 01 00 35 04 06 00 F4 B8 94 C0 09 EF AA 4B A7 03 2A 76 15 94 [01:22: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 34 36 4F 00 00 00 15 1E 47 00 A5 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 13 01 00 F4 03 04 00 88 F9 17 67 B6 04 01 00 00 83 96 34 FA 8F D8 57 09 [01:22:48]CommunicateWithHost err = 0 [01:22:48]CheckOFDResponse [01:22:48]1017 (14) - 77093643461234 [01:22:48]1041 (16) - 0000000000963346 [01:22:48]1040 (4) - 70493 [01:22:48]1012 (4) - 22.10.2024 19:14 [01:22:48]1206 (1) - 0 [01:22:48]OFD Sender: Remove packet 70493 [01:22:48]ProducePacketName [01:22:48]name=ofd_packets/00070493 [01:22:48]NVStorageDeleteData [01:22:48]Write to MH i2c: 01 00 00 EF 39 28 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 EF 39 00 00 00 00 00 EB 0C 26 [01:22:48]RasterBufferAndPrint [01:22:48]line [01:22:48]line [01:22:48]line [01:22:48]line [01:22:48]line [01:22:48]written 0, free lines is 3313 [01:22:48]MH_Cut [01:22:48]Write to MH i2c: D1 01 00 F6 39 01 01 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: D1 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: D1 01 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: D1 01 00 F6 39 00 00 [01:22:48]Write to MH i2c: 01 00 00 F7 39 30 [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:49]OFD Sender: No OFD packet to send [01:22:49]*** Cut start [01:22:49]*** Partial cut [01:22:49]*** CUTSNS_PIN = 1 [01:22:49]*** CUTSNS_PIN = 0 [01:22:49]*** Brake cut motor [01:22:50]Read from MH i2c: 01 [01:22:50]MH_I2C_Read... [01:22:50]*** Stop cut motor [01:22:50]*** Cut end [01:22:50]Read from MH i2c: 01 07 00 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: 01 07 00 F7 39 00 00 00 00 00 FF 0F 45 [01:22:50]process_action close_receipt done [01:22:50]requested_data is exist [01:22:50]produce_requested_data [01:22:50]requested_item fm.sn is exist - process it [01:22:50]wFMCommunicate request_size=4 [01:22:50]MH_SAM_APDU [01:22:50]CAPDU: 80 11 00 00 [01:22:50]Write to MH i2c: E2 08 00 F8 39 80 11 00 00 00 00 00 00 AB [01:22:50]Write i2c OK [01:22:50]MH_I2C_Read... [01:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:50]Read from MH i2c: E2 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 17 00 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 17 00 F8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [01:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:22:50]wFMCommunicate OK [01:22:50]requested_item fd.num is exist - process it [01:22:50]SAM_PROTO_GetFieldsCounters [01:22:50]wFMCommunicate request_size=4 [01:22:50]MH_SAM_APDU [01:22:50]CAPDU: 80 13 00 00 [01:22:50]Write to MH i2c: E2 08 00 F9 39 80 13 00 00 00 00 00 00 AE [01:22:50]Write i2c OK [01:22:50]MH_I2C_Read... [01:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:50]Read from MH i2c: E2 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 62 00 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 62 00 F9 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 13 01 00 0E 04 04 00 C4 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 19 [01:22: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 13 01 00 0E 04 04 00 C4 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 [01:22:50]wFMCommunicate OK [01:22:50]SAM_PROTO_GetFieldsCounters done [01:22:50]requested_item shift.num is exist - process it [01:22:50]requested_item shift.opened is exist - process it [01:22:50]req_shift_opened [01:22:50]FM_GetShiftState [01:22:50]SAM_PROTO_GetShiftState [01:22:50]wFMCommunicate request_size=4 [01:22:50]MH_SAM_APDU [01:22:50]CAPDU: 80 13 01 00 [01:22:50]Write to MH i2c: E2 08 00 FA 39 80 13 01 00 00 00 00 00 B0 [01:22:50]Write i2c OK [01:22:50]MH_I2C_Read... [01:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:50]Read from MH i2c: E2 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 0E 00 [01:22:50]MH_I2C_Read... [01:22:50]Read from MH i2c: E2 0E 00 FA 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3D [01:22:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:22:50]wFMCommunicate OK [01:22:50]SAM_PROTO_GetShiftState done [01:22:50]FM_GetShiftState done [01:22:50]req_shift_opened done [01:22:50]requested_item shift.open_date is exist - process it [01:22:50]req_shift_open_date [01:22:50]req_shift_open_date done [01:22:50]produce_requested_data done [01:22:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70493,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [01:22:50]process_action_free close_receipt [01:22:50]json_value_free [01:22:50]json_value_free done [01:22:50]process_json_proto returns [01:22:50]Send response to host [01:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70493,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [01:22:50]free response buf [01:22:50]execute_script done [01:22:50]execute_script returns [01:22:50]free content buf [01:22:50]Sock 7.Close socket [01:22:50]Sock 7.Thread stoped [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:22]accept exits with 9 [01:26:22]New connection [01:26:22]New thread 3066555748 created [01:26:22]Thread 3066699108 joined [01:26:22]Waiting for new connection... [01:26:22] Sock 9.Parse request [01:26:22]Sock 9.Check first char [01:26:22]Sock 9.First char is OK [01:26:22]request: POST /json_proto HTTP/1.0 [01:26:22]Method: POST [01:26:22]URL: /json_proto [01:26:22]Method is POST - this is cgi request [01:26:22]url: /json_proto [01:26:22]query_string will be loaded in cgi processing [01:26:22]execute_cgi json_proto POST (null) [01:26:22]execute_cgi path=json_proto method=POST [01:26:22]POST find Content-Length [01:26:22]Host: 172.17.50.3:8080 [01:26:22]Content-Length: 773 [01:26:22]Content-Type: application/json [01:26:22] [01:26:22]POST finish read [01:26:22]Found Content-Length = 773 [01:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:22]execute_script... [01:26: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)2886261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:22]POST & json_proto [01:26:22]process_json_proto [01:26:22]json parsed OK: [01:26:22]protocol is kg_v1.0 [01:26:22]action value=close_receipt [01:26:22]process_action close_receipt [01:26:22]cmd_close_receipt [01:26:22]MH_GetDate [01:26:22]Write to MH i2c: F0 00 00 FB 39 23 [01:26:22]Write i2c OK [01:26:22]MH_I2C_Read... [01:26:22]Read from MH i2c: F0 [01:26:22]MH_I2C_Read... [01:26:22]Read from MH i2c: F0 09 00 [01:26:22]MH_I2C_Read... [01:26:22]Read from MH i2c: F0 09 00 FB 39 00 C0 50 18 67 6B 98 1E 66 42 [01:26:22]GetLastDocTimeStamp 1729646568 [01:26:22]current date 1729646784 [01:26:22]FM_GetShiftState [01:26:22]SAM_PROTO_GetShiftState [01:26:22]wFMCommunicate request_size=4 [01:26:22]MH_SAM_APDU [01:26:22]CAPDU: 80 13 01 00 [01:26:22]Write to MH i2c: E2 08 00 FC 39 80 13 01 00 00 00 00 00 B2 [01:26:22]Write i2c OK [01:26:22]MH_I2C_Read... [01:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:22]Read from MH i2c: E2 [01:26:22]MH_I2C_Read... [01:26:22]Read from MH i2c: E2 0E 00 [01:26:22]MH_I2C_Read... [01:26:22]Read from MH i2c: E2 0E 00 FC 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3F [01:26:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:26:22]wFMCommunicate OK [01:26:22]SAM_PROTO_GetShiftState done [01:26:22]FM_GetShiftState done [01:26:22]opened in 1729642435 [01:26:22]opened+sec_in_day 1729728835 [01:26:22]quantity*price = 100011 [01:26:22]sum+1 = 100013 [01:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 10 23.10.2024 01:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70494 ФПД: 115152671127240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70494&fm=115152671127240&tin=02508201610067®Number=0000000000156251&sum=100012 [01:26:23]StoreToDocumentArchive [01:26:23]shift 196 fd 70494 [01:26:23]save to /storage/0196/doc_00070494 [01:26:23]save last doc name /storage/0196/doc_00070494 to /storage/kkm_last_doc_name [01:26:23]save OK [01:26:23]Clear old archive folders... [01:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:26:23]tlvbuf is 00CB7440 [01:26:23]SAM_PROTO_ClearQueue [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 09 00 00 [01:26:23]Write to MH i2c: E2 08 00 09 3A 80 09 00 00 00 00 00 00 B5 [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 03 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 03 00 09 3A 00 90 00 B7 [01:26:23]RAPDU: 90 00 [01:26:23]wFMCommunicate OK [01:26:23]SAM_PROTO_ClearQueue done [01:26:23]KKMCreateOFDPacket [01:26:23]OFDProtocolAddRootSTLVToBuf [01:26:23]FM_MakeSignedData [01:26:23]FM_MakeSignedData [01:26:23]SAM_PROTO_SignData [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 0D 01 02 [01:26:23]Write to MH i2c: E2 08 00 0A 3A 80 0D 01 02 00 00 00 00 BD [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 03 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 03 00 0A 3A 00 90 00 B8 [01:26:23]RAPDU: 90 00 [01:26:23]wFMCommunicate OK [01:26:23]wFMCommunicate request_size=255 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 C0 50 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 13 01 00 35 04 06 00 68 BB [01:26:23]Write to MH i2c: E2 02 01 0B 3A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 C0 50 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 13 01 00 35 04 06 00 68 BB 00 00 2B [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:24]Read from MH i2c: E2 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 03 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 03 00 0B 3A 00 90 00 B9 [01:26:24]RAPDU: 90 00 [01:26:24]wFMCommunicate OK [01:26:24]wFMCommunicate request_size=9 [01:26:24]MH_SAM_APDU [01:26:24]CAPDU: 80 0D 02 02 04 12 0E B6 C8 [01:26:24]Write to MH i2c: E2 0C 00 0C 3A 80 0D 02 02 04 00 12 0E B6 C8 00 00 66 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:24]Read from MH i2c: E2 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 03 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 03 00 0C 3A 00 90 00 BA [01:26:24]RAPDU: 90 00 [01:26:24]wFMCommunicate OK [01:26:24]wFMCommunicate request_size=4 [01:26:24]MH_SAM_APDU [01:26:24]CAPDU: 80 0D 03 02 [01:26:24]Write to MH i2c: E2 08 00 0D 3A 80 0D 03 02 00 00 00 00 C2 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:24]Read from MH i2c: E2 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 0B 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 0B 00 0D 3A 00 D8 57 29 99 05 27 E7 C4 90 00 8B [01:26:24]RAPDU: D8 57 29 99 05 27 E7 C4 90 00 [01:26:24]wFMCommunicate OK [01:26:24]SAM_PROTO_SignData done [01:26:24]FM_MakeSignedData done [01:26:24]CreateOFDProtocolMessage [01:26:24]wFMCommunicate request_size=4 [01:26:24]MH_SAM_APDU [01:26:24]CAPDU: 80 11 00 00 [01:26:24]Write to MH i2c: E2 08 00 0E 3A 80 11 00 00 00 00 00 00 C2 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:24]Read from MH i2c: E2 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 17 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: E2 17 00 0E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [01:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:26:24]wFMCommunicate OK [01:26:24]CreateOFDProtocolMessage done [01:26:24]OFDSenderStorePacket 70494 [01:26:24]StoreOFDPacket docnum=70494 [01:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 21 99 06 01 8E 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 C0 50 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 13 01 00 35 04 06 00 68 BB 12 0E B6 C8 D8 57 29 99 05 27 E7 C4 [01:26:24]CheckFolder [01:26:24]dirname=/storage/ofd_packets [01:26:24]CheckFolder done [01:26:24]ProducePacketName [01:26:24]name=ofd_packets/00070494 [01:26:24]NVStorageSaveData ofd_packets/00070494 [01:26:24]File name is /storage/ofd_packets/00070494 [01:26:24]Write 300 bytes [01:26:24]NVStorageSaveData done [01:26:24]OFDSenderStorePacket done [01:26:24]KKMCreateOFDPacket done [01:26:24]NVStorageSaveData kkm_last_timestamp [01:26:24]File name is /storage/kkm_last_timestamp [01:26:24]Write 4 bytes [01:26:24]NVStorageSaveData done [01:26:24]ExternCall_PrintAddStr [01:26:24]wPrintStart [01:26:24]Write to MH i2c: 01 00 00 0F 3A 49 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 07 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 07 00 0F 3A 00 00 00 00 00 FF 0F 5E [01:26:24]RasterBufferAndPrint [01:26:24]line Счет N : (1)2886261 [01:26:24]line ИНН: 02508201610067 [01:26:24]line Контрольно-Кассовый Чек [01:26:24]line ПРОДАЖА [01:26:24]line ТРК (МРК, ГНК) : 71 [01:26:24]line Товар: 2711129700 [01:26:24]line ГАЗ-К-3 [01:26:24]line 25.710 * 38.90 [01:26:24]line = 1000.12 [01:26:24]line НДС 12% НСП 1% [01:26:24]line > о реализуемом товаре [01:26:24]line ИТОГО: 1000.12 [01:26:24]line НСП 1% : 8.85 [01:26:24]line НДС 12% : 106.21 [01:26:24]line Наличными: 0.00 [01:26:24]line Безнал.: 1000.12 [01:26:24]line Место: АЗС № 85 "Партнер Нефть" [01:26:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:26:24]line СНО: Общий режим [01:26:24]line Чек 10 23.10.2024 01:26 [01:26:24]line Смена: 196 ФФД: 1.0 [01:26:24]line ЗНМ: 0300000167 [01:26:24]line РНМ: 0000000000156251 [01:26:24]line Версия ККМ: v1.0 [01:26:24]line Платежная система: Mbank [01:26:24]line ФМ: 0000000000963346 [01:26:24]line ФД: 70494 [01:26:24]line ФПД: 115152671127240 [01:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70494&fm=115152671127240&tin=02508201610067®Number=0000000000156251&sum=100012 [01:26:24]written 0, free lines is 4095 [01:26:24]OFD Sender: Processing packet 70494 [packets to send 18, broken 17] [01:26:24]ProducePacketName [01:26:24]name=ofd_packets/00070494 [01:26:24]OFD Sender: To server: pG, [01:26:24]CommunicateWithHost lk.salyk.kg:30040 [01:26:24]ConnectInit lk.salyk.kg [01:26:24]Connected sock=10 [01:26: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 34 36 0E 01 00 00 21 99 06 01 8E 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 C0 50 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 13 01 00 35 04 06 00 68 BB 12 0E B6 C8 D8 57 29 99 05 27 E7 C4 [01:26:24]Write to MH i2c: 01 00 00 38 3A 72 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 07 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: 01 07 00 38 3A 00 00 00 00 00 12 0D 98 [01:26:24]RasterBufferAndPrint [01:26:24]line [01:26:24]line [01:26:24]line [01:26:24]line [01:26:24]line [01:26:24]written 0, free lines is 3353 [01:26:24]MH_Cut [01:26:24]Write to MH i2c: D1 01 00 3F 3A 01 4B [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: D1 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: D1 01 00 [01:26:24]MH_I2C_Read... [01:26:24]Read from MH i2c: D1 01 00 3F 3A 00 4A [01:26:24]Write to MH i2c: 01 00 00 40 3A 7A [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26: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 34 36 4F 00 00 00 B2 9E 47 00 4B 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 34 36 10 04 04 00 5E 13 01 00 F4 03 04 00 60 FA 17 67 B6 04 01 00 00 B4 DD 2A 04 65 71 6D 04 [01:26:25]CommunicateWithHost err = 0 [01:26:25]CheckOFDResponse [01:26:25]1017 (14) - 77093643461234 [01:26:25]1041 (16) - 0000000000963346 [01:26:25]1040 (4) - 70494 [01:26:25]1012 (4) - 22.10.2024 19:17 [01:26:25]1206 (1) - 0 [01:26:25]OFD Sender: Remove packet 70494 [01:26:25]ProducePacketName [01:26:25]name=ofd_packets/00070494 [01:26:25]NVStorageDeleteData [01:26:25]*** Cut start [01:26:25]*** Partial cut [01:26:25]*** CUTSNS_PIN = 1 [01:26:25]OFD Sender: No OFD packet to send [01:26:25]*** CUTSNS_PIN = 0 [01:26:25]*** Brake cut motor [01:26:26]Read from MH i2c: 01 [01:26:26]MH_I2C_Read... [01:26:26]*** Stop cut motor [01:26:26]*** Cut end [01:26:26]Read from MH i2c: 01 07 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: 01 07 00 40 3A 00 00 00 00 00 FF 0F 8F [01:26:26]process_action close_receipt done [01:26:26]requested_data is exist [01:26:26]produce_requested_data [01:26:26]requested_item fm.sn is exist - process it [01:26:26]wFMCommunicate request_size=4 [01:26:26]MH_SAM_APDU [01:26:26]CAPDU: 80 11 00 00 [01:26:26]Write to MH i2c: E2 08 00 41 3A 80 11 00 00 00 00 00 00 F5 [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:26]Read from MH i2c: E2 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 17 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 17 00 41 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [01:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:26:26]wFMCommunicate OK [01:26:26]requested_item fd.num is exist - process it [01:26:26]SAM_PROTO_GetFieldsCounters [01:26:26]wFMCommunicate request_size=4 [01:26:26]MH_SAM_APDU [01:26:26]CAPDU: 80 13 00 00 [01:26:26]Write to MH i2c: E2 08 00 42 3A 80 13 00 00 00 00 00 00 F8 [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:26]Read from MH i2c: E2 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 62 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 62 00 42 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 13 01 00 0E 04 04 00 C4 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 67 [01:26: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 13 01 00 0E 04 04 00 C4 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 [01:26:26]wFMCommunicate OK [01:26:26]SAM_PROTO_GetFieldsCounters done [01:26:26]requested_item shift.num is exist - process it [01:26:26]requested_item shift.opened is exist - process it [01:26:26]req_shift_opened [01:26:26]FM_GetShiftState [01:26:26]SAM_PROTO_GetShiftState [01:26:26]wFMCommunicate request_size=4 [01:26:26]MH_SAM_APDU [01:26:26]CAPDU: 80 13 01 00 [01:26:26]Write to MH i2c: E2 08 00 43 3A 80 13 01 00 00 00 00 00 FA [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:26]Read from MH i2c: E2 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 0E 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: E2 0E 00 43 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 87 [01:26:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:26:26]wFMCommunicate OK [01:26:26]SAM_PROTO_GetShiftState done [01:26:26]FM_GetShiftState done [01:26:26]req_shift_opened done [01:26:26]requested_item shift.open_date is exist - process it [01:26:26]req_shift_open_date [01:26:26]req_shift_open_date done [01:26:26]produce_requested_data done [01:26:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70494,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [01:26:26]process_action_free close_receipt [01:26:26]json_value_free [01:26:26]json_value_free done [01:26:26]process_json_proto returns [01:26:26]Send response to host [01:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70494,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [01:26:26]free response buf [01:26:26]execute_script done [01:26:26]execute_script returns [01:26:26]free content buf [01:26:26]Sock 9.Close socket [01:26:26]Sock 9.Thread stoped [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:24]accept exits with 7 [01:35:24]New connection [01:35:24]New thread 3066699108 created [01:35:24]Thread 3066555748 joined [01:35:24]Waiting for new connection... [01:35:24] Sock 7.Parse request [01:35:24]Sock 7.Check first char [01:35:24]Sock 7.First char is OK [01:35:24]request: POST /json_proto HTTP/1.0 [01:35:24]Method: POST [01:35:24]URL: /json_proto [01:35:24]Method is POST - this is cgi request [01:35:24]url: /json_proto [01:35:24]query_string will be loaded in cgi processing [01:35:24]execute_cgi json_proto POST (null) [01:35:24]execute_cgi path=json_proto method=POST [01:35:24]POST find Content-Length [01:35:24]Host: 172.17.50.3:8080 [01:35:24]Content-Length: 770 [01:35:24]Content-Type: application/json [01:35:24] [01:35:24]POST finish read [01:35:24]Found Content-Length = 770 [01:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:24]execute_script... [01:35: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)2886262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:24]POST & json_proto [01:35:24]process_json_proto [01:35:24]json parsed OK: [01:35:24]protocol is kg_v1.0 [01:35:24]action value=close_receipt [01:35:24]process_action close_receipt [01:35:24]cmd_close_receipt [01:35:24]MH_GetDate [01:35:24]Write to MH i2c: F0 00 00 44 3A 6D [01:35:24]Write i2c OK [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: F0 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: F0 09 00 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: F0 09 00 44 3A 00 DE 52 18 67 6B 98 1E 66 AC [01:35:24]GetLastDocTimeStamp 1729646784 [01:35:24]current date 1729647326 [01:35:24]FM_GetShiftState [01:35:24]SAM_PROTO_GetShiftState [01:35:24]wFMCommunicate request_size=4 [01:35:24]MH_SAM_APDU [01:35:24]CAPDU: 80 13 01 00 [01:35:24]Write to MH i2c: E2 08 00 45 3A 80 13 01 00 00 00 00 00 FC [01:35:24]Write i2c OK [01:35:24]MH_I2C_Read... [01:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:24]Read from MH i2c: E2 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: E2 0E 00 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: E2 0E 00 45 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 89 [01:35:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:35:24]wFMCommunicate OK [01:35:24]SAM_PROTO_GetShiftState done [01:35:24]FM_GetShiftState done [01:35:24]opened in 1729642435 [01:35:24]opened+sec_in_day 1729728835 [01:35:24]quantity*price = 150032 [01:35:24]sum+1 = 150033 [01:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 11 23.10.2024 01:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70495 ФПД: 66966298958088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70495&fm=66966298958088&tin=02508201610067®Number=0000000000156251&sum=150032 [01:35:25]StoreToDocumentArchive [01:35:25]shift 196 fd 70495 [01:35:25]save to /storage/0196/doc_00070495 [01:35:25]save last doc name /storage/0196/doc_00070495 to /storage/kkm_last_doc_name [01:35:25]save OK [01:35:25]Clear old archive folders... [01:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:35:25]tlvbuf is 00ED9850 [01:35:25]SAM_PROTO_ClearQueue [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 09 00 00 [01:35:25]Write to MH i2c: E2 08 00 52 3A 80 09 00 00 00 00 00 00 FE [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 52 3A 00 90 00 00 [01:35:25]RAPDU: 90 00 [01:35:25]wFMCommunicate OK [01:35:25]SAM_PROTO_ClearQueue done [01:35:25]KKMCreateOFDPacket [01:35:25]OFDProtocolAddRootSTLVToBuf [01:35:25]FM_MakeSignedData [01:35:25]FM_MakeSignedData [01:35:25]SAM_PROTO_SignData [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 0D 01 02 [01:35:25]Write to MH i2c: E2 08 00 53 3A 80 0D 01 02 00 00 00 00 06 [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 53 3A 00 90 00 01 [01:35:25]RAPDU: 90 00 [01:35:25]wFMCommunicate OK [01:35:25]wFMCommunicate request_size=255 [01:35:25]MH_SAM_APDU [01:35: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DE 52 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 13 01 00 35 04 06 00 3C [01:35:25]Write to MH i2c: E2 02 01 54 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DE 52 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 13 01 00 35 04 06 00 3C 00 00 61 [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 54 3A 00 90 00 02 [01:35:25]RAPDU: 90 00 [01:35:25]wFMCommunicate OK [01:35:25]wFMCommunicate request_size=10 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 0D 02 02 05 E7 CE 76 19 08 [01:35:25]Write to MH i2c: E2 0D 00 55 3A 80 0D 02 02 05 00 E7 CE 76 19 08 00 00 5F [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 03 00 55 3A 00 90 00 03 [01:35:25]RAPDU: 90 00 [01:35:25]wFMCommunicate OK [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 0D 03 02 [01:35:25]Write to MH i2c: E2 08 00 56 3A 80 0D 03 02 00 00 00 00 0B [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:26]OFD Sender: No OFD packet to send [01:35:26]Read from MH i2c: E2 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 0B 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 0B 00 56 3A 00 5D 7F D3 32 72 2E A1 5A 90 00 88 [01:35:26]RAPDU: 5D 7F D3 32 72 2E A1 5A 90 00 [01:35:26]wFMCommunicate OK [01:35:26]SAM_PROTO_SignData done [01:35:26]FM_MakeSignedData done [01:35:26]CreateOFDProtocolMessage [01:35:26]wFMCommunicate request_size=4 [01:35:26]MH_SAM_APDU [01:35:26]CAPDU: 80 11 00 00 [01:35:26]Write to MH i2c: E2 08 00 57 3A 80 11 00 00 00 00 00 00 0B [01:35:26]Write i2c OK [01:35:26]MH_I2C_Read... [01:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:26]Read from MH i2c: E2 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 17 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 17 00 57 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [01:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:35:26]wFMCommunicate OK [01:35:26]CreateOFDProtocolMessage done [01:35:26]OFDSenderStorePacket 70495 [01:35:26]StoreOFDPacket docnum=70495 [01:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 33 04 07 01 D3 FA 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DE 52 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 13 01 00 35 04 06 00 3C E7 CE 76 19 08 5D 7F D3 32 72 2E A1 5A [01:35:26]CheckFolder [01:35:26]dirname=/storage/ofd_packets [01:35:26]CheckFolder done [01:35:26]ProducePacketName [01:35:26]name=ofd_packets/00070495 [01:35:26]NVStorageSaveData ofd_packets/00070495 [01:35:26]File name is /storage/ofd_packets/00070495 [01:35:26]Write 301 bytes [01:35:26]NVStorageSaveData done [01:35:26]OFDSenderStorePacket done [01:35:26]KKMCreateOFDPacket done [01:35:26]NVStorageSaveData kkm_last_timestamp [01:35:26]File name is /storage/kkm_last_timestamp [01:35:26]Write 4 bytes [01:35:26]NVStorageSaveData done [01:35:26]ExternCall_PrintAddStr [01:35:26]wPrintStart [01:35:26]Write to MH i2c: 01 00 00 58 3A 92 [01:35:26]Write i2c OK [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 07 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 07 00 58 3A 00 00 00 00 00 FF 0F A7 [01:35:26]RasterBufferAndPrint [01:35:26]line Счет N : (1)2886262 [01:35:26]line ИНН: 02508201610067 [01:35:26]line Контрольно-Кассовый Чек [01:35:26]line ПРОДАЖА [01:35:26]line ТРК (МРК, ГНК) : 33 [01:35:26]line Товар: 2710124500 [01:35:26]line Аи-95-К-5 [01:35:26]line 20.220 * 74.20 [01:35:26]line = 1500.32 [01:35:26]line НДС 12% НСП 1% [01:35:26]line > о реализуемом товаре [01:35:26]line ИТОГО: 1500.32 [01:35:26]line НСП 1% : 13.28 [01:35:26]line НДС 12% : 159.33 [01:35:26]line Наличными: 0.00 [01:35:26]line Безнал.: 1500.32 [01:35:26]line Место: АЗС № 85 "Партнер Нефть" [01:35:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:35:26]line СНО: Общий режим [01:35:26]line Чек 11 23.10.2024 01:35 [01:35:26]line Смена: 196 ФФД: 1.0 [01:35:26]line ЗНМ: 0300000167 [01:35:26]line РНМ: 0000000000156251 [01:35:26]line Версия ККМ: v1.0 [01:35:26]line Платежная система: Mbank [01:35:26]line ФМ: 0000000000963346 [01:35:26]line ФД: 70495 [01:35:26]line ФПД: 66966298958088 [01:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70495&fm=66966298958088&tin=02508201610067®Number=0000000000156251&sum=150032 [01:35:26]OFD Sender: Processing packet 70495 [packets to send 18, broken 17] [01:35:26]ProducePacketName [01:35:26]name=ofd_packets/00070495 [01:35:26]OFD Sender: To server: pG, [01:35:26]CommunicateWithHost lk.salyk.kg:30040 [01:35:26]ConnectInit lk.salyk.kg [01:35:26]written 0, free lines is 4095 [01:35:26]Connected sock=10 [01:35: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 34 36 0F 01 00 00 33 04 07 01 D3 FA 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 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 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DE 52 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 13 01 00 35 04 06 00 3C E7 CE 76 19 08 5D 7F D3 32 72 2E A1 5A [01:35: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 34 36 4F 00 00 00 D4 BA 47 00 9A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 13 01 00 F4 03 04 00 7D FC 17 67 B6 04 01 00 00 E3 91 5C BA C4 1E 47 04 [01:35:26]CommunicateWithHost err = 0 [01:35:26]CheckOFDResponse [01:35:26]1017 (14) - 77093643461234 [01:35:26]1041 (16) - 0000000000963346 [01:35:26]1040 (4) - 70495 [01:35:26]1012 (4) - 22.10.2024 19:26 [01:35:26]1206 (1) - 0 [01:35:26]OFD Sender: Remove packet 70495 [01:35:26]ProducePacketName [01:35:26]name=ofd_packets/00070495 [01:35:26]NVStorageDeleteData [01:35:26]Write to MH i2c: 01 00 00 81 3A BB [01:35:26]Write i2c OK [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 07 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: 01 07 00 81 3A 00 00 00 00 00 0A 0D D9 [01:35:26]RasterBufferAndPrint [01:35:26]line [01:35:26]line [01:35:26]line [01:35:26]line [01:35:26]line [01:35:26]written 0, free lines is 3344 [01:35:26]MH_Cut [01:35:26]Write to MH i2c: D1 01 00 88 3A 01 94 [01:35:26]Write i2c OK [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: D1 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: D1 01 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: D1 01 00 88 3A 00 93 [01:35:26]Write to MH i2c: 01 00 00 89 3A C3 [01:35:26]Write i2c OK [01:35:26]MH_I2C_Read... [01:35:27]OFD Sender: No OFD packet to send [01:35:27]*** Cut start [01:35:27]*** Partial cut [01:35:27]*** CUTSNS_PIN = 1 [01:35:27]*** CUTSNS_PIN = 0 [01:35:27]*** Brake cut motor [01:35:28]Read from MH i2c: 01 [01:35:28]MH_I2C_Read... [01:35:28]*** Stop cut motor [01:35:28]*** Cut end [01:35:28]Read from MH i2c: 01 07 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: 01 07 00 89 3A 00 00 00 00 00 FF 0F D8 [01:35:28]process_action close_receipt done [01:35:28]requested_data is exist [01:35:28]produce_requested_data [01:35:28]requested_item fm.sn is exist - process it [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 11 00 00 [01:35:28]Write to MH i2c: E2 08 00 8A 3A 80 11 00 00 00 00 00 00 3E [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 17 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 17 00 8A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [01:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:35:28]wFMCommunicate OK [01:35:28]requested_item fd.num is exist - process it [01:35:28]SAM_PROTO_GetFieldsCounters [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 13 00 00 [01:35:28]Write to MH i2c: E2 08 00 8B 3A 80 13 00 00 00 00 00 00 41 [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 62 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 62 00 8B 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 13 01 00 0E 04 04 00 C4 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 B4 [01:35: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 13 01 00 0E 04 04 00 C4 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 [01:35:28]wFMCommunicate OK [01:35:28]SAM_PROTO_GetFieldsCounters done [01:35:28]requested_item shift.num is exist - process it [01:35:28]requested_item shift.opened is exist - process it [01:35:28]req_shift_opened [01:35:28]FM_GetShiftState [01:35:28]SAM_PROTO_GetShiftState [01:35:28]wFMCommunicate request_size=4 [01:35:28]MH_SAM_APDU [01:35:28]CAPDU: 80 13 01 00 [01:35:28]Write to MH i2c: E2 08 00 8C 3A 80 13 01 00 00 00 00 00 43 [01:35:28]Write i2c OK [01:35:28]MH_I2C_Read... [01:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:28]Read from MH i2c: E2 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 0E 00 [01:35:28]MH_I2C_Read... [01:35:28]Read from MH i2c: E2 0E 00 8C 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D0 [01:35:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:35:28]wFMCommunicate OK [01:35:28]SAM_PROTO_GetShiftState done [01:35:28]FM_GetShiftState done [01:35:28]req_shift_opened done [01:35:28]requested_item shift.open_date is exist - process it [01:35:28]req_shift_open_date [01:35:28]req_shift_open_date done [01:35:28]produce_requested_data done [01:35:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70495,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [01:35:28]process_action_free close_receipt [01:35:28]json_value_free [01:35:28]json_value_free done [01:35:28]process_json_proto returns [01:35:28]Send response to host [01:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70495,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [01:35:28]free response buf [01:35:28]execute_script done [01:35:28]execute_script returns [01:35:28]free content buf [01:35:28]Sock 7.Close socket [01:35:28]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]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:10]accept exits with 9 [01:53:10]New connection [01:53:10]New thread 3066555748 created [01:53:10]Thread 3066699108 joined [01:53:10]Waiting for new connection... [01:53:10] Sock 9.Parse request [01:53:10]Sock 9.Check first char [01:53:10]Sock 9.First char is OK [01:53:10]request: POST /json_proto HTTP/1.0 [01:53:10]Method: POST [01:53:10]URL: /json_proto [01:53:10]Method is POST - this is cgi request [01:53:10]url: /json_proto [01:53:10]query_string will be loaded in cgi processing [01:53:10]execute_cgi json_proto POST (null) [01:53:10]execute_cgi path=json_proto method=POST [01:53:10]POST find Content-Length [01:53:10]Host: 172.17.50.3:8080 [01:53:10]Content-Length: 683 [01:53:10]Content-Type: application/json [01:53:10] [01:53:10]POST finish read [01:53:10]Found Content-Length = 683 [01:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [01:53:10]execute_script... [01:53: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)2886263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [01:53:10]POST & json_proto [01:53:10]process_json_proto [01:53:10]json parsed OK: [01:53:10]protocol is kg_v1.0 [01:53:10]action value=close_receipt [01:53:10]process_action close_receipt [01:53:10]cmd_close_receipt [01:53:10]MH_GetDate [01:53:10]Write to MH i2c: F0 00 00 8D 3A B6 [01:53:10]Write i2c OK [01:53:10]MH_I2C_Read... [01:53:10]Read from MH i2c: F0 [01:53:10]MH_I2C_Read... [01:53:10]Read from MH i2c: F0 09 00 [01:53:10]MH_I2C_Read... [01:53:10]Read from MH i2c: F0 09 00 8D 3A 00 08 57 18 67 6B 98 1E 66 24 [01:53:10]GetLastDocTimeStamp 1729647326 [01:53:10]current date 1729648392 [01:53:10]FM_GetShiftState [01:53:10]SAM_PROTO_GetShiftState [01:53:10]wFMCommunicate request_size=4 [01:53:10]MH_SAM_APDU [01:53:10]CAPDU: 80 13 01 00 [01:53:10]Write to MH i2c: E2 08 00 8E 3A 80 13 01 00 00 00 00 00 45 [01:53:10]Write i2c OK [01:53:10]MH_I2C_Read... [01:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:10]Read from MH i2c: E2 [01:53:10]MH_I2C_Read... [01:53:10]Read from MH i2c: E2 0E 00 [01:53:10]MH_I2C_Read... [01:53:10]Read from MH i2c: E2 0E 00 8E 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D2 [01:53:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:53:10]wFMCommunicate OK [01:53:10]SAM_PROTO_GetShiftState done [01:53:10]FM_GetShiftState done [01:53:10]opened in 1729642435 [01:53:10]opened+sec_in_day 1729728835 [01:53:10]quantity*price = 100015 [01:53:10]sum+1 = 100017 [01:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 12 23.10.2024 01:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70496 ФПД: 225880660359616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015312&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70496&fm=225880660359616&tin=02508201610067®Number=0000000000156251&sum=100000 [01:53:11]StoreToDocumentArchive [01:53:11]shift 196 fd 70496 [01:53:11]save to /storage/0196/doc_00070496 [01:53:11]save last doc name /storage/0196/doc_00070496 to /storage/kkm_last_doc_name [01:53:11]save OK [01:53:11]Clear old archive folders... [01:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:53:11]tlvbuf is 00B33210 [01:53:11]SAM_PROTO_ClearQueue [01:53:11]wFMCommunicate request_size=4 [01:53:11]MH_SAM_APDU [01:53:11]CAPDU: 80 09 00 00 [01:53:11]Write to MH i2c: E2 08 00 9B 3A 80 09 00 00 00 00 00 00 47 [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 9B 3A 00 90 00 49 [01:53:11]RAPDU: 90 00 [01:53:11]wFMCommunicate OK [01:53:11]SAM_PROTO_ClearQueue done [01:53:11]KKMCreateOFDPacket [01:53:11]OFDProtocolAddRootSTLVToBuf [01:53:11]FM_MakeSignedData [01:53:11]FM_MakeSignedData [01:53:11]SAM_PROTO_SignData [01:53:11]wFMCommunicate request_size=4 [01:53:11]MH_SAM_APDU [01:53:11]CAPDU: 80 0D 01 02 [01:53:11]Write to MH i2c: E2 08 00 9C 3A 80 0D 01 02 00 00 00 00 4F [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 9C 3A 00 90 00 4A [01:53:11]RAPDU: 90 00 [01:53:11]wFMCommunicate OK [01:53:11]wFMCommunicate request_size=255 [01:53:11]MH_SAM_APDU [01:53: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 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 0C 00 00 00 F4 03 04 00 08 57 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 13 01 00 35 04 06 00 CD [01:53:11]Write to MH i2c: E2 02 01 9D 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 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 0C 00 00 00 F4 03 04 00 08 57 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 13 01 00 35 04 06 00 CD 00 00 C1 [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 9D 3A 00 90 00 4B [01:53:11]RAPDU: 90 00 [01:53:11]wFMCommunicate OK [01:53:11]wFMCommunicate request_size=10 [01:53:11]MH_SAM_APDU [01:53:11]CAPDU: 80 0D 02 02 05 6F F0 85 B9 C0 [01:53:11]Write to MH i2c: E2 0D 00 9E 3A 80 0D 02 02 05 00 6F F0 85 B9 C0 00 00 B9 [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 03 00 9E 3A 00 90 00 4C [01:53:11]RAPDU: 90 00 [01:53:11]wFMCommunicate OK [01:53:11]wFMCommunicate request_size=4 [01:53:11]MH_SAM_APDU [01:53:11]CAPDU: 80 0D 03 02 [01:53:11]Write to MH i2c: E2 08 00 9F 3A 80 0D 03 02 00 00 00 00 54 [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 0B 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 0B 00 9F 3A 00 97 01 6E 94 CF 0E 13 54 90 00 33 [01:53:11]RAPDU: 97 01 6E 94 CF 0E 13 54 90 00 [01:53:11]wFMCommunicate OK [01:53:11]SAM_PROTO_SignData done [01:53:11]FM_MakeSignedData done [01:53:11]CreateOFDProtocolMessage [01:53:11]wFMCommunicate request_size=4 [01:53:11]MH_SAM_APDU [01:53:11]CAPDU: 80 11 00 00 [01:53:11]Write to MH i2c: E2 08 00 A0 3A 80 11 00 00 00 00 00 00 54 [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:11]Read from MH i2c: E2 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 17 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: E2 17 00 A0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [01:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:53:11]wFMCommunicate OK [01:53:11]CreateOFDProtocolMessage done [01:53:11]OFDSenderStorePacket 70496 [01:53:11]StoreOFDPacket docnum=70496 [01:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2D 7C 07 01 B9 79 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 0C 00 00 00 F4 03 04 00 08 57 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 13 01 00 35 04 06 00 CD 6F F0 85 B9 C0 97 01 6E 94 CF 0E 13 54 [01:53:11]CheckFolder [01:53:11]dirname=/storage/ofd_packets [01:53:11]CheckFolder done [01:53:11]ProducePacketName [01:53:11]name=ofd_packets/00070496 [01:53:11]NVStorageSaveData ofd_packets/00070496 [01:53:11]File name is /storage/ofd_packets/00070496 [01:53:11]Write 301 bytes [01:53:11]NVStorageSaveData done [01:53:11]OFDSenderStorePacket done [01:53:11]KKMCreateOFDPacket done [01:53:11]NVStorageSaveData kkm_last_timestamp [01:53:11]File name is /storage/kkm_last_timestamp [01:53:11]Write 4 bytes [01:53:11]NVStorageSaveData done [01:53:11]ExternCall_PrintAddStr [01:53:11]wPrintStart [01:53:11]Write to MH i2c: 01 00 00 A1 3A DB [01:53:11]Write i2c OK [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: 01 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: 01 07 00 [01:53:11]MH_I2C_Read... [01:53:11]Read from MH i2c: 01 07 00 A1 3A 00 00 00 00 00 FF 0F F0 [01:53:11]RasterBufferAndPrint [01:53:11]line Счет N : (1)2886263 [01:53:11]line ИНН: 02508201610067 [01:53:11]line Контрольно-Кассовый Чек [01:53:11]line ПРОДАЖА [01:53:11]line ТРК (МРК, ГНК) : 32 [01:53:11]line Товар: 2710124130 [01:53:11]line Аи-92-К-5 [01:53:11]line 14.950 * 66.90 [01:53:11]line = 1000.16 [01:53:11]line НДС 12% НСП 1% [01:53:11]line > о реализуемом товаре [01:53:11]line ОКРУГЛЕНИЕ: -0.16 [01:53:11]line ИТОГО: 1000.00 [01:53:11]line Внесено: 1000.00 [01:53:11]line СДАЧА: 0.00 [01:53:11]line НСП 1% : 8.85 [01:53:11]line НДС 12% : 106.21 [01:53:11]line Наличными: 1000.00 [01:53:11]line Безнал.: 0.00 [01:53:11]line Место: АЗС № 85 "Партнер Нефть" [01:53:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:53:11]line СНО: Общий режим [01:53:11]line Чек 12 23.10.2024 01:53 [01:53:11]line Смена: 196 ФФД: 1.0 [01:53:11]line ЗНМ: 0300000167 [01:53:11]line РНМ: 0000000000156251 [01:53:11]line Версия ККМ: v1.0 [01:53:11]line ФМ: 0000000000963346 [01:53:11]line ФД: 70496 [01:53:11]line ФПД: 225880660359616 [01:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015312&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70496&fm=225880660359616&tin=02508201610067®Number=0000000000156251&sum=100000 [01:53:12]OFD Sender: Processing packet 70496 [packets to send 18, broken 17] [01:53:12]ProducePacketName [01:53:12]name=ofd_packets/00070496 [01:53:12]OFD Sender: To server: pG, [01:53:12]CommunicateWithHost lk.salyk.kg:30040 [01:53:12]ConnectInit lk.salyk.kg [01:53:12]written 0, free lines is 4095 [01:53:12]Connected sock=10 [01:53: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 34 36 0F 01 00 00 2D 7C 07 01 B9 79 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 0C 00 00 00 F4 03 04 00 08 57 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 13 01 00 35 04 06 00 CD 6F F0 85 B9 C0 97 01 6E 94 CF 0E 13 54 [01:53: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 34 36 4F 00 00 00 3B 5A 47 00 A6 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 13 01 00 F4 03 04 00 A7 00 18 67 B6 04 01 00 00 07 EA 2F CE E3 51 A6 F5 [01:53:12]CommunicateWithHost err = 0 [01:53:12]CheckOFDResponse [01:53:12]1017 (14) - 77093643461234 [01:53:12]1041 (16) - 0000000000963346 [01:53:12]1040 (4) - 70496 [01:53:12]1012 (4) - 22.10.2024 19:44 [01:53:12]1206 (1) - 0 [01:53:12]OFD Sender: Remove packet 70496 [01:53:12]ProducePacketName [01:53:12]name=ofd_packets/00070496 [01:53:12]NVStorageDeleteData [01:53:12]Write to MH i2c: 01 00 00 CC 3A 06 [01:53:12]Write i2c OK [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: 01 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: 01 07 00 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: 01 07 00 CC 3A 00 00 00 00 00 E9 0C 02 [01:53:12]RasterBufferAndPrint [01:53:12]line [01:53:12]line [01:53:12]line [01:53:12]line [01:53:12]line [01:53:12]written 0, free lines is 3311 [01:53:12]MH_Cut [01:53:12]Write to MH i2c: D1 01 00 D3 3A 01 DF [01:53:12]Write i2c OK [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: D1 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: D1 01 00 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: D1 01 00 D3 3A 00 DE [01:53:12]Write to MH i2c: 01 00 00 D4 3A 0E [01:53:12]Write i2c OK [01:53:12]MH_I2C_Read... [01:53:12]OFD Sender: No OFD packet to send [01:53:13]*** Cut start [01:53:13]*** Partial cut [01:53:13]*** CUTSNS_PIN = 1 [01:53:13]*** CUTSNS_PIN = 0 [01:53:13]*** Brake cut motor [01:53:13]Read from MH i2c: 01 [01:53:13]MH_I2C_Read... [01:53:13]*** Stop cut motor [01:53:13]*** Cut end [01:53:13]Read from MH i2c: 01 07 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: 01 07 00 D4 3A 00 00 00 00 00 FF 0F 23 [01:53:13]process_action close_receipt done [01:53:13]requested_data is exist [01:53:13]produce_requested_data [01:53:13]requested_item fm.sn is exist - process it [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 11 00 00 [01:53:13]Write to MH i2c: E2 08 00 D5 3A 80 11 00 00 00 00 00 00 89 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 17 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 17 00 D5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [01:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:53:13]wFMCommunicate OK [01:53:13]requested_item fd.num is exist - process it [01:53:13]SAM_PROTO_GetFieldsCounters [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 13 00 00 [01:53:13]Write to MH i2c: E2 08 00 D6 3A 80 13 00 00 00 00 00 00 8C [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:14]Read from MH i2c: E2 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: E2 62 00 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: E2 62 00 D6 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 13 01 00 0E 04 04 00 C4 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 [01:53: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 13 01 00 0E 04 04 00 C4 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 [01:53:14]wFMCommunicate OK [01:53:14]SAM_PROTO_GetFieldsCounters done [01:53:14]requested_item shift.num is exist - process it [01:53:14]requested_item shift.opened is exist - process it [01:53:14]req_shift_opened [01:53:14]FM_GetShiftState [01:53:14]SAM_PROTO_GetShiftState [01:53:14]wFMCommunicate request_size=4 [01:53:14]MH_SAM_APDU [01:53:14]CAPDU: 80 13 01 00 [01:53:14]Write to MH i2c: E2 08 00 D7 3A 80 13 01 00 00 00 00 00 8E [01:53:14]Write i2c OK [01:53:14]MH_I2C_Read... [01:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:14]Read from MH i2c: E2 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: E2 0E 00 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: E2 0E 00 D7 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1B [01:53:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [01:53:14]wFMCommunicate OK [01:53:14]SAM_PROTO_GetShiftState done [01:53:14]FM_GetShiftState done [01:53:14]req_shift_opened done [01:53:14]requested_item shift.open_date is exist - process it [01:53:14]req_shift_open_date [01:53:14]req_shift_open_date done [01:53:14]produce_requested_data done [01:53:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70496,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [01:53:14]process_action_free close_receipt [01:53:14]json_value_free [01:53:14]json_value_free done [01:53:14]process_json_proto returns [01:53:14]Send response to host [01:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70496,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [01:53:14]free response buf [01:53:14]execute_script done [01:53:14]execute_script returns [01:53:14]free content buf [01:53:14]Sock 9.Close socket [01:53:14]Sock 9.Thread stoped [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]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:45]accept exits with 7 [02:08:45]New connection [02:08:45]New thread 3066699108 created [02:08:45]Thread 3066555748 joined [02:08:45]Waiting for new connection... [02:08:45] Sock 7.Parse request [02:08:45]Sock 7.Check first char [02:08:45]Sock 7.First char is OK [02:08:45]request: POST /json_proto HTTP/1.0 [02:08:45]Method: POST [02:08:45]URL: /json_proto [02:08:45]Method is POST - this is cgi request [02:08:45]url: /json_proto [02:08:45]query_string will be loaded in cgi processing [02:08:45]execute_cgi json_proto POST (null) [02:08:45]execute_cgi path=json_proto method=POST [02:08:45]POST find Content-Length [02:08:45]Host: 172.17.50.3:8080 [02:08:45]Content-Length: 686 [02:08:45]Content-Type: application/json [02:08:45] [02:08:45]POST finish read [02:08:45]Found Content-Length = 686 [02:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 90.680, "sum" : 3527.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3527.00, "payments": [ { "type": 0, "sum" : 3527.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:45]execute_script... [02:08: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)2886264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 90.680, "sum" : 3527.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3527.00, "payments": [ { "type": 0, "sum" : 3527.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:45]POST & json_proto [02:08:45]process_json_proto [02:08:45]json parsed OK: [02:08:45]protocol is kg_v1.0 [02:08:45]action value=close_receipt [02:08:45]process_action close_receipt [02:08:45]cmd_close_receipt [02:08:45]MH_GetDate [02:08:45]Write to MH i2c: F0 00 00 D8 3A 01 [02:08:45]Write i2c OK [02:08:45]MH_I2C_Read... [02:08:45]Read from MH i2c: F0 [02:08:45]MH_I2C_Read... [02:08:45]Read from MH i2c: F0 09 00 [02:08:45]MH_I2C_Read... [02:08:45]Read from MH i2c: F0 09 00 D8 3A 00 AF 5A 18 67 6B 98 1E 66 19 [02:08:45]GetLastDocTimeStamp 1729648392 [02:08:45]current date 1729649327 [02:08:45]FM_GetShiftState [02:08:45]SAM_PROTO_GetShiftState [02:08:45]wFMCommunicate request_size=4 [02:08:45]MH_SAM_APDU [02:08:45]CAPDU: 80 13 01 00 [02:08:45]Write to MH i2c: E2 08 00 D9 3A 80 13 01 00 00 00 00 00 90 [02:08:45]Write i2c OK [02:08:45]MH_I2C_Read... [02:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:45]Read from MH i2c: E2 [02:08:45]MH_I2C_Read... [02:08:45]Read from MH i2c: E2 0E 00 [02:08:45]MH_I2C_Read... [02:08:45]Read from MH i2c: E2 0E 00 D9 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [02:08:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:08:45]wFMCommunicate OK [02:08:45]SAM_PROTO_GetShiftState done [02:08:45]FM_GetShiftState done [02:08:45]opened in 1729642435 [02:08:45]opened+sec_in_day 1729728835 [02:08:45]quantity*price = 352745 [02:08:45]sum+1 = 352746 [02:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 3527.00 Внесено: 4000.00 СДАЧА: 473.00 НСП 1% : 31.22 НДС 12% : 374.60 Наличными: 3527.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 13 23.10.2024 02:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70497 ФПД: 38631948627515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T020847&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70497&fm=38631948627515&tin=02508201610067®Number=0000000000156251&sum=352700 [02:08:46]StoreToDocumentArchive [02:08:46]shift 196 fd 70497 [02:08:46]save to /storage/0196/doc_00070497 [02:08:46]save last doc name /storage/0196/doc_00070497 to /storage/kkm_last_doc_name [02:08:46]save OK [02:08:46]Clear old archive folders... [02:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:08:46]tlvbuf is 00CB73E0 [02:08:46]SAM_PROTO_ClearQueue [02:08:46]wFMCommunicate request_size=4 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 09 00 00 [02:08:46]Write to MH i2c: E2 08 00 E6 3A 80 09 00 00 00 00 00 00 92 [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 E6 3A 00 90 00 94 [02:08:46]RAPDU: 90 00 [02:08:46]wFMCommunicate OK [02:08:46]SAM_PROTO_ClearQueue done [02:08:46]KKMCreateOFDPacket [02:08:46]OFDProtocolAddRootSTLVToBuf [02:08:46]FM_MakeSignedData [02:08:46]FM_MakeSignedData [02:08:46]SAM_PROTO_SignData [02:08:46]wFMCommunicate request_size=4 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 0D 01 02 [02:08:46]Write to MH i2c: E2 08 00 E7 3A 80 0D 01 02 00 00 00 00 9A [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 E7 3A 00 90 00 95 [02:08:46]RAPDU: 90 00 [02:08:46]wFMCommunicate OK [02:08:46]wFMCommunicate request_size=255 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 38 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E9 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 92 00 00 00 00 07 04 06 00 BC 61 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 5A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 13 01 00 35 04 06 00 23 22 [02:08:46]Write to MH i2c: E2 02 01 E8 3A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 38 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E9 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 92 00 00 00 00 07 04 06 00 BC 61 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 5A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 13 01 00 35 04 06 00 23 22 00 00 F2 [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 E8 3A 00 90 00 96 [02:08:46]RAPDU: 90 00 [02:08:46]wFMCommunicate OK [02:08:46]wFMCommunicate request_size=9 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 0D 02 02 04 B3 93 2E 3B [02:08:46]Write to MH i2c: E2 0C 00 E9 3A 80 0D 02 02 04 00 B3 93 2E 3B 00 00 54 [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 03 00 E9 3A 00 90 00 97 [02:08:46]RAPDU: 90 00 [02:08:46]wFMCommunicate OK [02:08:46]wFMCommunicate request_size=4 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 0D 03 02 [02:08:46]Write to MH i2c: E2 08 00 EA 3A 80 0D 03 02 00 00 00 00 9F [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 0B 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 0B 00 EA 3A 00 AC 9C 53 4C A4 FB 0F 10 90 00 45 [02:08:46]RAPDU: AC 9C 53 4C A4 FB 0F 10 90 00 [02:08:46]wFMCommunicate OK [02:08:46]SAM_PROTO_SignData done [02:08:46]FM_MakeSignedData done [02:08:46]CreateOFDProtocolMessage [02:08:46]wFMCommunicate request_size=4 [02:08:46]MH_SAM_APDU [02:08:46]CAPDU: 80 11 00 00 [02:08:46]Write to MH i2c: E2 08 00 EB 3A 80 11 00 00 00 00 00 00 9F [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:46]Read from MH i2c: E2 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 17 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: E2 17 00 EB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [02:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:08:46]wFMCommunicate OK [02:08:46]CreateOFDProtocolMessage done [02:08:46]OFDSenderStorePacket 70497 [02:08:46]StoreOFDPacket docnum=70497 [02:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 52 AB 06 01 BD 67 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 38 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E9 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 92 00 00 00 00 07 04 06 00 BC 61 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 5A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 13 01 00 35 04 06 00 23 22 B3 93 2E 3B AC 9C 53 4C A4 FB 0F 10 [02:08:46]CheckFolder [02:08:46]dirname=/storage/ofd_packets [02:08:46]CheckFolder done [02:08:46]ProducePacketName [02:08:46]name=ofd_packets/00070497 [02:08:46]NVStorageSaveData ofd_packets/00070497 [02:08:46]File name is /storage/ofd_packets/00070497 [02:08:46]Write 300 bytes [02:08:46]NVStorageSaveData done [02:08:46]OFDSenderStorePacket done [02:08:46]KKMCreateOFDPacket done [02:08:46]NVStorageSaveData kkm_last_timestamp [02:08:46]File name is /storage/kkm_last_timestamp [02:08:46]Write 4 bytes [02:08:46]NVStorageSaveData done [02:08:46]ExternCall_PrintAddStr [02:08:46]wPrintStart [02:08:46]Write to MH i2c: 01 00 00 EC 3A 26 [02:08:46]Write i2c OK [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: 01 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: 01 07 00 [02:08:46]MH_I2C_Read... [02:08:46]Read from MH i2c: 01 07 00 EC 3A 00 00 00 00 00 FF 0F 3B [02:08:46]RasterBufferAndPrint [02:08:46]line Счет N : (1)2886264 [02:08:46]line ИНН: 02508201610067 [02:08:46]line Контрольно-Кассовый Чек [02:08:46]line ПРОДАЖА [02:08:46]line ТРК (МРК, ГНК) : 71 [02:08:46]line Товар: 2711129700 [02:08:46]line ГАЗ-К-3 [02:08:46]line 90.680 * 38.90 [02:08:46]line = 3527.45 [02:08:46]line НДС 12% НСП 1% [02:08:46]line > о реализуемом товаре [02:08:46]line ОКРУГЛЕНИЕ: -0.45 [02:08:46]line ИТОГО: 3527.00 [02:08:46]line Внесено: 4000.00 [02:08:46]line СДАЧА: 473.00 [02:08:46]line НСП 1% : 31.22 [02:08:46]line НДС 12% : 374.60 [02:08:46]line Наличными: 3527.00 [02:08:46]line Безнал.: 0.00 [02:08:46]line Место: АЗС № 85 "Партнер Нефть" [02:08:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:08:46]line СНО: Общий режим [02:08:46]line Чек 13 23.10.2024 02:08 [02:08:46]line Смена: 196 ФФД: 1.0 [02:08:46]line ЗНМ: 0300000167 [02:08:46]line РНМ: 0000000000156251 [02:08:46]line Версия ККМ: v1.0 [02:08:46]line ФМ: 0000000000963346 [02:08:46]line ФД: 70497 [02:08:46]line ФПД: 38631948627515 [02:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T020847&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70497&fm=38631948627515&tin=02508201610067®Number=0000000000156251&sum=352700 [02:08:47]OFD Sender: Processing packet 70497 [packets to send 18, broken 17] [02:08:47]ProducePacketName [02:08:47]name=ofd_packets/00070497 [02:08:47]OFD Sender: To server: pG, [02:08:47]CommunicateWithHost lk.salyk.kg:30040 [02:08:47]ConnectInit lk.salyk.kg [02:08:47]written 0, free lines is 4095 [02:08:47]Connected sock=10 [02:08: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 34 36 0E 01 00 00 52 AB 06 01 BD 67 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 38 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E9 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 92 00 00 00 00 07 04 06 00 BC 61 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 5A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 13 01 00 35 04 06 00 23 22 B3 93 2E 3B AC 9C 53 4C A4 FB 0F 10 [02:08: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 34 36 4F 00 00 00 7B 40 47 00 23 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 34 36 10 04 04 00 61 13 01 00 F4 03 04 00 4E 04 18 67 B6 04 01 00 00 D4 4C D6 75 2A 59 B8 4A [02:08:47]CommunicateWithHost err = 0 [02:08:47]CheckOFDResponse [02:08:47]1017 (14) - 77093643461234 [02:08:47]1041 (16) - 0000000000963346 [02:08:47]1040 (4) - 70497 [02:08:47]1012 (4) - 22.10.2024 20:00 [02:08:47]1206 (1) - 0 [02:08:47]OFD Sender: Remove packet 70497 [02:08:47]ProducePacketName [02:08:47]name=ofd_packets/00070497 [02:08:47]NVStorageDeleteData [02:08:47]Write to MH i2c: 01 00 00 17 3B 52 [02:08:47]Write i2c OK [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: 01 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: 01 07 00 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: 01 07 00 17 3B 00 00 00 00 00 ED 0C 52 [02:08:47]RasterBufferAndPrint [02:08:47]line [02:08:47]line [02:08:47]line [02:08:47]line [02:08:47]line [02:08:47]written 0, free lines is 3315 [02:08:47]MH_Cut [02:08:47]Write to MH i2c: D1 01 00 1E 3B 01 2B [02:08:47]Write i2c OK [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: D1 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: D1 01 00 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: D1 01 00 1E 3B 00 2A [02:08:47]Write to MH i2c: 01 00 00 1F 3B 5A [02:08:47]Write i2c OK [02:08:47]MH_I2C_Read... [02:08:47]OFD Sender: No OFD packet to send [02:08:48]*** Cut start [02:08:48]*** Partial cut [02:08:48]*** CUTSNS_PIN = 1 [02:08:48]*** CUTSNS_PIN = 0 [02:08:48]*** Brake cut motor [02:08:48]Read from MH i2c: 01 [02:08:48]MH_I2C_Read... [02:08:48]*** Stop cut motor [02:08:48]*** Cut end [02:08:48]Read from MH i2c: 01 07 00 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: 01 07 00 1F 3B 00 00 00 00 00 FF 0F 6F [02:08:48]process_action close_receipt done [02:08:48]requested_data is exist [02:08:48]produce_requested_data [02:08:48]requested_item fm.sn is exist - process it [02:08:48]wFMCommunicate request_size=4 [02:08:48]MH_SAM_APDU [02:08:48]CAPDU: 80 11 00 00 [02:08:48]Write to MH i2c: E2 08 00 20 3B 80 11 00 00 00 00 00 00 D5 [02:08:48]Write i2c OK [02:08:48]MH_I2C_Read... [02:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:48]Read from MH i2c: E2 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 17 00 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 17 00 20 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [02:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:08:48]wFMCommunicate OK [02:08:48]requested_item fd.num is exist - process it [02:08:48]SAM_PROTO_GetFieldsCounters [02:08:48]wFMCommunicate request_size=4 [02:08:48]MH_SAM_APDU [02:08:48]CAPDU: 80 13 00 00 [02:08:48]Write to MH i2c: E2 08 00 21 3B 80 13 00 00 00 00 00 00 D8 [02:08:48]Write i2c OK [02:08:48]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 62 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 62 00 21 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [02:08: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:49]wFMCommunicate OK [02:08:49]SAM_PROTO_GetFieldsCounters done [02:08:49]requested_item shift.num is exist - process it [02:08:49]requested_item shift.opened is exist - process it [02:08:49]req_shift_opened [02:08:49]FM_GetShiftState [02:08:49]SAM_PROTO_GetShiftState [02:08:49]wFMCommunicate request_size=4 [02:08:49]MH_SAM_APDU [02:08:49]CAPDU: 80 13 01 00 [02:08:49]Write to MH i2c: E2 08 00 22 3B 80 13 01 00 00 00 00 00 DA [02:08:49]Write i2c OK [02:08:49]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 0E 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 0E 00 22 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 67 [02:08:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:08:49]wFMCommunicate OK [02:08:49]SAM_PROTO_GetShiftState done [02:08:49]FM_GetShiftState done [02:08:49]req_shift_opened done [02:08:49]requested_item shift.open_date is exist - process it [02:08:49]req_shift_open_date [02:08:49]req_shift_open_date done [02:08:49]produce_requested_data done [02:08:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70497,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [02:08:49]process_action_free close_receipt [02:08:49]json_value_free [02:08:49]json_value_free done [02:08:49]process_json_proto returns [02:08:49]Send response to host [02:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70497,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [02:08:49]free response buf [02:08:49]execute_script done [02:08:49]execute_script returns [02:08:49]free content buf [02:08:49]Sock 7.Close socket [02:08:49]Sock 7.Thread stoped [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:44]accept exits with 9 [02:32:44]New connection [02:32:44]New thread 3066555748 created [02:32:44]Thread 3066699108 joined [02:32:44]Waiting for new connection... [02:32:44] Sock 9.Parse request [02:32:44]Sock 9.Check first char [02:32:44]Sock 9.First char is OK [02:32:44]request: POST /json_proto HTTP/1.0 [02:32:44]Method: POST [02:32:44]URL: /json_proto [02:32:44]Method is POST - this is cgi request [02:32:44]url: /json_proto [02:32:44]query_string will be loaded in cgi processing [02:32:44]execute_cgi json_proto POST (null) [02:32:44]execute_cgi path=json_proto method=POST [02:32:44]POST find Content-Length [02:32:44]Host: 172.17.50.3:8080 [02:32:44]Content-Length: 683 [02:32:44]Content-Type: application/json [02:32:44] [02:32:44]POST finish read [02:32:44]Found Content-Length = 683 [02:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [02:32:44]execute_script... [02:32: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)2886265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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" ] } } [02:32:44]POST & json_proto [02:32:44]process_json_proto [02:32:44]json parsed OK: [02:32:44]protocol is kg_v1.0 [02:32:44]action value=close_receipt [02:32:44]process_action close_receipt [02:32:44]cmd_close_receipt [02:32:44]MH_GetDate [02:32:44]Write to MH i2c: F0 00 00 23 3B 4D [02:32:44]Write i2c OK [02:32:44]MH_I2C_Read... [02:32:44]Read from MH i2c: F0 [02:32:44]MH_I2C_Read... [02:32:44]Read from MH i2c: F0 09 00 [02:32:44]MH_I2C_Read... [02:32:44]Read from MH i2c: F0 09 00 23 3B 00 4E 60 18 67 6B 98 1E 66 0A [02:32:44]GetLastDocTimeStamp 1729649327 [02:32:44]current date 1729650766 [02:32:44]FM_GetShiftState [02:32:44]SAM_PROTO_GetShiftState [02:32:44]wFMCommunicate request_size=4 [02:32:44]MH_SAM_APDU [02:32:44]CAPDU: 80 13 01 00 [02:32:44]Write to MH i2c: E2 08 00 24 3B 80 13 01 00 00 00 00 00 DC [02:32:44]Write i2c OK [02:32:44]MH_I2C_Read... [02:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:44]Read from MH i2c: E2 [02:32:44]MH_I2C_Read... [02:32:44]Read from MH i2c: E2 0E 00 [02:32:44]MH_I2C_Read... [02:32:44]Read from MH i2c: E2 0E 00 24 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 69 [02:32:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:32:44]wFMCommunicate OK [02:32:44]SAM_PROTO_GetShiftState done [02:32:44]FM_GetShiftState done [02:32:44]opened in 1729642435 [02:32:44]opened+sec_in_day 1729728835 [02:32:44]quantity*price = 150056 [02:32:44]sum+1 = 150058 [02:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 14 23.10.2024 02:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70498 ФПД: 270956193350860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70498&fm=270956193350860&tin=02508201610067®Number=0000000000156251&sum=150000 [02:32:45]StoreToDocumentArchive [02:32:45]shift 196 fd 70498 [02:32:45]save to /storage/0196/doc_00070498 [02:32:45]save last doc name /storage/0196/doc_00070498 to /storage/kkm_last_doc_name [02:32:45]save OK [02:32:45]Clear old archive folders... [02:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:32:45]tlvbuf is 00AE33E0 [02:32:45]SAM_PROTO_ClearQueue [02:32:45]wFMCommunicate request_size=4 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 09 00 00 [02:32:45]Write to MH i2c: E2 08 00 31 3B 80 09 00 00 00 00 00 00 DE [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 31 3B 00 90 00 E0 [02:32:45]RAPDU: 90 00 [02:32:45]wFMCommunicate OK [02:32:45]SAM_PROTO_ClearQueue done [02:32:45]KKMCreateOFDPacket [02:32:45]OFDProtocolAddRootSTLVToBuf [02:32:45]FM_MakeSignedData [02:32:45]FM_MakeSignedData [02:32:45]SAM_PROTO_SignData [02:32:45]wFMCommunicate request_size=4 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 0D 01 02 [02:32:45]Write to MH i2c: E2 08 00 32 3B 80 0D 01 02 00 00 00 00 E6 [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 32 3B 00 90 00 E1 [02:32:45]RAPDU: 90 00 [02:32:45]wFMCommunicate OK [02:32:45]wFMCommunicate request_size=255 [02:32:45]MH_SAM_APDU [02:32:45]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 0E 00 00 00 F4 03 04 00 4E 60 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 13 01 00 35 04 06 00 F6 [02:32:45]Write to MH i2c: E2 02 01 33 3B 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 0E 00 00 00 F4 03 04 00 4E 60 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 13 01 00 35 04 06 00 F6 00 00 23 [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 33 3B 00 90 00 E2 [02:32:45]RAPDU: 90 00 [02:32:45]wFMCommunicate OK [02:32:45]wFMCommunicate request_size=10 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 0D 02 02 05 6E E7 A7 84 CC [02:32:45]Write to MH i2c: E2 0D 00 34 3B 80 0D 02 02 05 00 6E E7 A7 84 CC 00 00 3F [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 03 00 34 3B 00 90 00 E3 [02:32:45]RAPDU: 90 00 [02:32:45]wFMCommunicate OK [02:32:45]wFMCommunicate request_size=4 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 0D 03 02 [02:32:45]Write to MH i2c: E2 08 00 35 3B 80 0D 03 02 00 00 00 00 EB [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 0B 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 0B 00 35 3B 00 23 94 CB DA 0C 32 5C EA 90 00 CC [02:32:45]RAPDU: 23 94 CB DA 0C 32 5C EA 90 00 [02:32:45]wFMCommunicate OK [02:32:45]SAM_PROTO_SignData done [02:32:45]FM_MakeSignedData done [02:32:45]CreateOFDProtocolMessage [02:32:45]wFMCommunicate request_size=4 [02:32:45]MH_SAM_APDU [02:32:45]CAPDU: 80 11 00 00 [02:32:45]Write to MH i2c: E2 08 00 36 3B 80 11 00 00 00 00 00 00 EB [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:45]Read from MH i2c: E2 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 17 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: E2 17 00 36 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [02:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:32:45]wFMCommunicate OK [02:32:45]CreateOFDProtocolMessage done [02:32:45]OFDSenderStorePacket 70498 [02:32:45]StoreOFDPacket docnum=70498 [02:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 20 65 07 01 D5 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 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 0E 00 00 00 F4 03 04 00 4E 60 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 13 01 00 35 04 06 00 F6 6E E7 A7 84 CC 23 94 CB DA 0C 32 5C EA [02:32:45]CheckFolder [02:32:45]dirname=/storage/ofd_packets [02:32:45]CheckFolder done [02:32:45]ProducePacketName [02:32:45]name=ofd_packets/00070498 [02:32:45]NVStorageSaveData ofd_packets/00070498 [02:32:45]File name is /storage/ofd_packets/00070498 [02:32:45]Write 301 bytes [02:32:45]NVStorageSaveData done [02:32:45]OFDSenderStorePacket done [02:32:45]KKMCreateOFDPacket done [02:32:45]NVStorageSaveData kkm_last_timestamp [02:32:45]File name is /storage/kkm_last_timestamp [02:32:45]Write 4 bytes [02:32:45]NVStorageSaveData done [02:32:45]ExternCall_PrintAddStr [02:32:45]wPrintStart [02:32:45]Write to MH i2c: 01 00 00 37 3B 72 [02:32:45]Write i2c OK [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: 01 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: 01 07 00 [02:32:45]MH_I2C_Read... [02:32:45]Read from MH i2c: 01 07 00 37 3B 00 00 00 00 00 FF 0F 87 [02:32:45]RasterBufferAndPrint [02:32:45]line Счет N : (1)2886265 [02:32:45]line ИНН: 02508201610067 [02:32:45]line Контрольно-Кассовый Чек [02:32:45]line ПРОДАЖА [02:32:45]line ТРК (МРК, ГНК) : 22 [02:32:45]line Товар: 2710124130 [02:32:45]line Аи-92-К-5 [02:32:45]line 22.430 * 66.90 [02:32:45]line = 1500.57 [02:32:45]line НДС 12% НСП 1% [02:32:45]line > о реализуемом товаре [02:32:45]line ОКРУГЛЕНИЕ: -0.57 [02:32:45]line ИТОГО: 1500.00 [02:32:45]line Внесено: 1500.00 [02:32:45]line СДАЧА: 0.00 [02:32:45]line НСП 1% : 13.28 [02:32:45]line НДС 12% : 159.35 [02:32:45]line Наличными: 1500.00 [02:32:45]line Безнал.: 0.00 [02:32:45]line Место: АЗС № 85 "Партнер Нефть" [02:32:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:32:45]line СНО: Общий режим [02:32:45]line Чек 14 23.10.2024 02:32 [02:32:45]line Смена: 196 ФФД: 1.0 [02:32:45]line ЗНМ: 0300000167 [02:32:45]line РНМ: 0000000000156251 [02:32:45]line Версия ККМ: v1.0 [02:32:45]line ФМ: 0000000000963346 [02:32:45]line ФД: 70498 [02:32:45]line ФПД: 270956193350860 [02:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70498&fm=270956193350860&tin=02508201610067®Number=0000000000156251&sum=150000 [02:32:46]OFD Sender: Processing packet 70498 [packets to send 18, broken 17] [02:32:46]ProducePacketName [02:32:46]name=ofd_packets/00070498 [02:32:46]OFD Sender: To server: pG, [02:32:46]CommunicateWithHost lk.salyk.kg:30040 [02:32:46]ConnectInit lk.salyk.kg [02:32:46]written 0, free lines is 4095 [02:32:46]Connected sock=10 [02:32: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 34 36 0F 01 00 00 20 65 07 01 D5 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 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 0E 00 00 00 F4 03 04 00 4E 60 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 13 01 00 35 04 06 00 F6 6E E7 A7 84 CC 23 94 CB DA 0C 32 5C EA [02:32: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 34 36 4F 00 00 00 CC EA 47 00 C7 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 13 01 00 F4 03 04 00 ED 09 18 67 B6 04 01 00 00 AC 35 2F BC C9 68 81 60 [02:32:46]CommunicateWithHost err = 0 [02:32:46]CheckOFDResponse [02:32:46]1017 (14) - 77093643461234 [02:32:46]1041 (16) - 0000000000963346 [02:32:46]1040 (4) - 70498 [02:32:46]1012 (4) - 22.10.2024 20:24 [02:32:46]1206 (1) - 0 [02:32:46]OFD Sender: Remove packet 70498 [02:32:46]ProducePacketName [02:32:46]name=ofd_packets/00070498 [02:32:46]NVStorageDeleteData [02:32:46]Write to MH i2c: 01 00 00 62 3B 9D [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 07 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: 01 07 00 62 3B 00 00 00 00 00 18 0D C9 [02:32:46]RasterBufferAndPrint [02:32:46]line [02:32:46]line [02:32:46]line [02:32:46]line [02:32:46]line [02:32:46]written 0, free lines is 3362 [02:32:46]MH_Cut [02:32:46]Write to MH i2c: D1 01 00 69 3B 01 76 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: D1 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: D1 01 00 [02:32:46]MH_I2C_Read... [02:32:46]Read from MH i2c: D1 01 00 69 3B 00 75 [02:32:46]Write to MH i2c: 01 00 00 6A 3B A5 [02:32:46]Write i2c OK [02:32:46]MH_I2C_Read... [02:32:47]OFD Sender: No OFD packet to send [02:32:47]*** Cut start [02:32:47]*** Partial cut [02:32:47]*** CUTSNS_PIN = 1 [02:32:47]*** CUTSNS_PIN = 0 [02:32:47]*** Brake cut motor [02:32:48]Read from MH i2c: 01 [02:32:48]MH_I2C_Read... [02:32:48]*** Stop cut motor [02:32:48]*** Cut end [02:32:48]Read from MH i2c: 01 07 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: 01 07 00 6A 3B 00 00 00 00 00 FF 0F BA [02:32:48]process_action close_receipt done [02:32:48]requested_data is exist [02:32:48]produce_requested_data [02:32:48]requested_item fm.sn is exist - process it [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 11 00 00 [02:32:48]Write to MH i2c: E2 08 00 6B 3B 80 11 00 00 00 00 00 00 20 [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 17 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 17 00 6B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [02:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:32:48]wFMCommunicate OK [02:32:48]requested_item fd.num is exist - process it [02:32:48]SAM_PROTO_GetFieldsCounters [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 13 00 00 [02:32:48]Write to MH i2c: E2 08 00 6C 3B 80 13 00 00 00 00 00 00 23 [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 62 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 62 00 6C 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [02:32: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:48]wFMCommunicate OK [02:32:48]SAM_PROTO_GetFieldsCounters done [02:32:48]requested_item shift.num is exist - process it [02:32:48]requested_item shift.opened is exist - process it [02:32:48]req_shift_opened [02:32:48]FM_GetShiftState [02:32:48]SAM_PROTO_GetShiftState [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 13 01 00 [02:32:48]Write to MH i2c: E2 08 00 6D 3B 80 13 01 00 00 00 00 00 25 [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 0E 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 0E 00 6D 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B2 [02:32:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:32:48]wFMCommunicate OK [02:32:48]SAM_PROTO_GetShiftState done [02:32:48]FM_GetShiftState done [02:32:48]req_shift_opened done [02:32:48]requested_item shift.open_date is exist - process it [02:32:48]req_shift_open_date [02:32:48]req_shift_open_date done [02:32:48]produce_requested_data done [02:32:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70498,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [02:32:48]process_action_free close_receipt [02:32:48]json_value_free [02:32:48]json_value_free done [02:32:48]process_json_proto returns [02:32:48]Send response to host [02:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70498,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [02:32:48]free response buf [02:32:48]execute_script done [02:32:48]execute_script returns [02:32:48]free content buf [02:32:48]Sock 9.Close socket [02:32:48]Sock 9.Thread stoped [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]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]accept exits with 7 [02:44:02]New connection [02:44:02]New thread 3066699108 created [02:44:02]Thread 3066555748 joined [02:44:02]Waiting for new connection... [02:44:02] Sock 7.Parse request [02:44:02]Sock 7.Check first char [02:44:02]Sock 7.First char is OK [02:44:02]request: POST /json_proto HTTP/1.0 [02:44:02]Method: POST [02:44:02]URL: /json_proto [02:44:02]Method is POST - this is cgi request [02:44:02]url: /json_proto [02:44:02]query_string will be loaded in cgi processing [02:44:02]execute_cgi json_proto POST (null) [02:44:02]execute_cgi path=json_proto method=POST [02:44:02]POST find Content-Length [02:44:02]Host: 172.17.50.3:8080 [02:44:02]Content-Length: 683 [02:44:02]Content-Type: application/json [02:44:02] [02:44:02]POST finish read [02:44:02]Found Content-Length = 683 [02:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [02:44:02]execute_script... [02:44: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)2886266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [02:44:02]POST & json_proto [02:44:02]process_json_proto [02:44:02]json parsed OK: [02:44:02]protocol is kg_v1.0 [02:44:02]action value=close_receipt [02:44:02]process_action close_receipt [02:44:02]cmd_close_receipt [02:44:02]MH_GetDate [02:44:02]Write to MH i2c: F0 00 00 6E 3B 98 [02:44:02]Write i2c OK [02:44:02]MH_I2C_Read... [02:44:02]Read from MH i2c: F0 [02:44:02]MH_I2C_Read... [02:44:02]Read from MH i2c: F0 09 00 [02:44:02]MH_I2C_Read... [02:44:02]Read from MH i2c: F0 09 00 6E 3B 00 F5 62 18 67 6B 98 1E 66 FE [02:44:02]GetLastDocTimeStamp 1729650766 [02:44:02]current date 1729651445 [02:44:02]FM_GetShiftState [02:44:02]SAM_PROTO_GetShiftState [02:44:02]wFMCommunicate request_size=4 [02:44:02]MH_SAM_APDU [02:44:02]CAPDU: 80 13 01 00 [02:44:02]Write to MH i2c: E2 08 00 6F 3B 80 13 01 00 00 00 00 00 27 [02:44:02]Write i2c OK [02:44:02]MH_I2C_Read... [02:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:02]Read from MH i2c: E2 [02:44:02]MH_I2C_Read... [02:44:02]Read from MH i2c: E2 0E 00 [02:44:02]MH_I2C_Read... [02:44:02]Read from MH i2c: E2 0E 00 6F 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B4 [02:44:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:44:02]wFMCommunicate OK [02:44:02]SAM_PROTO_GetShiftState done [02:44:02]FM_GetShiftState done [02:44:02]opened in 1729642435 [02:44:02]opened+sec_in_day 1729728835 [02:44:02]quantity*price = 100015 [02:44:02]sum+1 = 100017 [02:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 15 23.10.2024 02:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70499 ФПД: 69934996857717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T024405&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70499&fm=69934996857717&tin=02508201610067®Number=0000000000156251&sum=100000 [02:44:03]StoreToDocumentArchive [02:44:03]shift 196 fd 70499 [02:44:03]save to /storage/0196/doc_00070499 [02:44:03]save last doc name /storage/0196/doc_00070499 to /storage/kkm_last_doc_name [02:44:03]save OK [02:44:03]Clear old archive folders... [02:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:44:03]tlvbuf is 00D782B0 [02:44:03]SAM_PROTO_ClearQueue [02:44:03]wFMCommunicate request_size=4 [02:44:03]MH_SAM_APDU [02:44:03]CAPDU: 80 09 00 00 [02:44:03]Write to MH i2c: E2 08 00 7C 3B 80 09 00 00 00 00 00 00 29 [02:44:03]Write i2c OK [02:44:03]MH_I2C_Read... [02:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:03]Read from MH i2c: E2 [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 03 00 [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 03 00 7C 3B 00 90 00 2B [02:44:03]RAPDU: 90 00 [02:44:03]wFMCommunicate OK [02:44:03]SAM_PROTO_ClearQueue done [02:44:03]KKMCreateOFDPacket [02:44:03]OFDProtocolAddRootSTLVToBuf [02:44:03]FM_MakeSignedData [02:44:03]FM_MakeSignedData [02:44:03]SAM_PROTO_SignData [02:44:03]wFMCommunicate request_size=4 [02:44:03]MH_SAM_APDU [02:44:03]CAPDU: 80 0D 01 02 [02:44:03]Write to MH i2c: E2 08 00 7D 3B 80 0D 01 02 00 00 00 00 31 [02:44:03]Write i2c OK [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 [02:44:03]MH_I2C_Read... [02:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:03]Read from MH i2c: E2 03 00 [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 03 00 7D 3B 00 90 00 2C [02:44:03]RAPDU: 90 00 [02:44:03]wFMCommunicate OK [02:44:03]wFMCommunicate request_size=255 [02:44:03]MH_SAM_APDU [02:44:03]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 0F 00 00 00 F4 03 04 00 F5 62 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 13 01 00 35 04 06 00 3F [02:44:03]Write to MH i2c: E2 02 01 7E 3B 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 0F 00 00 00 F4 03 04 00 F5 62 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 13 01 00 35 04 06 00 3F 00 00 13 [02:44:03]Write i2c OK [02:44:03]MH_I2C_Read... [02:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:03]Read from MH i2c: E2 [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 03 00 [02:44:03]MH_I2C_Read... [02:44:03]Read from MH i2c: E2 03 00 7E 3B 00 90 00 2D [02:44:03]RAPDU: 90 00 [02:44:03]wFMCommunicate OK [02:44:03]wFMCommunicate request_size=10 [02:44:03]MH_SAM_APDU [02:44:03]CAPDU: 80 0D 02 02 05 9B 02 A5 23 75 [02:44:03]Write to MH i2c: E2 0D 00 7F 3B 80 0D 02 02 05 00 9B 02 A5 23 75 00 00 18 [02:44:03]Write i2c OK [02:44:03]MH_I2C_Read... [02:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:04]Read from MH i2c: E2 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 03 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 03 00 7F 3B 00 90 00 2E [02:44:04]RAPDU: 90 00 [02:44:04]wFMCommunicate OK [02:44:04]wFMCommunicate request_size=4 [02:44:04]MH_SAM_APDU [02:44:04]CAPDU: 80 0D 03 02 [02:44:04]Write to MH i2c: E2 08 00 80 3B 80 0D 03 02 00 00 00 00 36 [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:04]Read from MH i2c: E2 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 0B 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 0B 00 80 3B 00 53 73 83 2D 69 87 31 BF 90 00 8D [02:44:04]RAPDU: 53 73 83 2D 69 87 31 BF 90 00 [02:44:04]wFMCommunicate OK [02:44:04]SAM_PROTO_SignData done [02:44:04]FM_MakeSignedData done [02:44:04]CreateOFDProtocolMessage [02:44:04]wFMCommunicate request_size=4 [02:44:04]MH_SAM_APDU [02:44:04]CAPDU: 80 11 00 00 [02:44:04]Write to MH i2c: E2 08 00 81 3B 80 11 00 00 00 00 00 00 36 [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:04]Read from MH i2c: E2 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 17 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: E2 17 00 81 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [02:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:44:04]wFMCommunicate OK [02:44:04]CreateOFDProtocolMessage done [02:44:04]OFDSenderStorePacket 70499 [02:44:04]StoreOFDPacket docnum=70499 [02:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 19 07 01 E8 7A 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 0F 00 00 00 F4 03 04 00 F5 62 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 13 01 00 35 04 06 00 3F 9B 02 A5 23 75 53 73 83 2D 69 87 31 BF [02:44:04]CheckFolder [02:44:04]dirname=/storage/ofd_packets [02:44:04]CheckFolder done [02:44:04]ProducePacketName [02:44:04]name=ofd_packets/00070499 [02:44:04]NVStorageSaveData ofd_packets/00070499 [02:44:04]File name is /storage/ofd_packets/00070499 [02:44:04]Write 301 bytes [02:44:04]NVStorageSaveData done [02:44:04]OFDSenderStorePacket done [02:44:04]KKMCreateOFDPacket done [02:44:04]NVStorageSaveData kkm_last_timestamp [02:44:04]File name is /storage/kkm_last_timestamp [02:44:04]Write 4 bytes [02:44:04]NVStorageSaveData done [02:44:04]ExternCall_PrintAddStr [02:44:04]wPrintStart [02:44:04]Write to MH i2c: 01 00 00 82 3B BD [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 07 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 07 00 82 3B 00 00 00 00 00 FF 0F D2 [02:44:04]RasterBufferAndPrint [02:44:04]line Счет N : (1)2886266 [02:44:04]line ИНН: 02508201610067 [02:44:04]line Контрольно-Кассовый Чек [02:44:04]line ПРОДАЖА [02:44:04]line ТРК (МРК, ГНК) : 32 [02:44:04]line Товар: 2710124130 [02:44:04]line Аи-92-К-5 [02:44:04]line 14.950 * 66.90 [02:44:04]line = 1000.16 [02:44:04]line НДС 12% НСП 1% [02:44:04]line > о реализуемом товаре [02:44:04]line ОКРУГЛЕНИЕ: -0.16 [02:44:04]line ИТОГО: 1000.00 [02:44:04]line Внесено: 1000.00 [02:44:04]line СДАЧА: 0.00 [02:44:04]line НСП 1% : 8.85 [02:44:04]line НДС 12% : 106.21 [02:44:04]line Наличными: 1000.00 [02:44:04]line Безнал.: 0.00 [02:44:04]line Место: АЗС № 85 "Партнер Нефть" [02:44:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:44:04]line СНО: Общий режим [02:44:04]line Чек 15 23.10.2024 02:44 [02:44:04]line Смена: 196 ФФД: 1.0 [02:44:04]line ЗНМ: 0300000167 [02:44:04]line РНМ: 0000000000156251 [02:44:04]line Версия ККМ: v1.0 [02:44:04]line ФМ: 0000000000963346 [02:44:04]line ФД: 70499 [02:44:04]line ФПД: 69934996857717 [02:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T024405&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70499&fm=69934996857717&tin=02508201610067®Number=0000000000156251&sum=100000 [02:44:04]OFD Sender: Processing packet 70499 [packets to send 18, broken 17] [02:44:04]ProducePacketName [02:44:04]name=ofd_packets/00070499 [02:44:04]OFD Sender: To server: pG, [02:44:04]CommunicateWithHost lk.salyk.kg:30040 [02:44:04]ConnectInit lk.salyk.kg [02:44:04]written 0, free lines is 4095 [02:44:04]Connected sock=10 [02:44: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 34 36 0F 01 00 00 B7 19 07 01 E8 7A 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 0F 00 00 00 F4 03 04 00 F5 62 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 13 01 00 35 04 06 00 3F 9B 02 A5 23 75 53 73 83 2D 69 87 31 BF [02:44: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 34 36 4F 00 00 00 F4 50 47 00 7E 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 34 36 10 04 04 00 63 13 01 00 F4 03 04 00 94 0C 18 67 B6 04 01 00 00 AD 45 90 66 4F 47 A0 7F [02:44:04]CommunicateWithHost err = 0 [02:44:04]CheckOFDResponse [02:44:04]1017 (14) - 77093643461234 [02:44:04]1041 (16) - 0000000000963346 [02:44:04]1040 (4) - 70499 [02:44:04]1012 (4) - 22.10.2024 20:35 [02:44:04]1206 (1) - 0 [02:44:04]OFD Sender: Remove packet 70499 [02:44:04]ProducePacketName [02:44:04]name=ofd_packets/00070499 [02:44:04]NVStorageDeleteData [02:44:04]Write to MH i2c: 01 00 00 AD 3B E8 [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 07 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: 01 07 00 AD 3B 00 00 00 00 00 E4 0C DF [02:44:04]RasterBufferAndPrint [02:44:04]line [02:44:04]line [02:44:04]line [02:44:04]line [02:44:04]line [02:44:04]written 0, free lines is 3306 [02:44:04]MH_Cut [02:44:04]Write to MH i2c: D1 01 00 B4 3B 01 C1 [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: D1 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: D1 01 00 [02:44:04]MH_I2C_Read... [02:44:04]Read from MH i2c: D1 01 00 B4 3B 00 C0 [02:44:04]Write to MH i2c: 01 00 00 B5 3B F0 [02:44:04]Write i2c OK [02:44:04]MH_I2C_Read... [02:44:05]OFD Sender: No OFD packet to send [02:44:05]*** Cut start [02:44:05]*** Partial cut [02:44:05]*** CUTSNS_PIN = 1 [02:44:05]*** CUTSNS_PIN = 0 [02:44:05]*** Brake cut motor [02:44:06]Read from MH i2c: 01 [02:44:06]MH_I2C_Read... [02:44:06]*** Stop cut motor [02:44:06]*** Cut end [02:44:06]Read from MH i2c: 01 07 00 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: 01 07 00 B5 3B 00 00 00 00 00 FF 0F 05 [02:44:06]process_action close_receipt done [02:44:06]requested_data is exist [02:44:06]produce_requested_data [02:44:06]requested_item fm.sn is exist - process it [02:44:06]wFMCommunicate request_size=4 [02:44:06]MH_SAM_APDU [02:44:06]CAPDU: 80 11 00 00 [02:44:06]Write to MH i2c: E2 08 00 B6 3B 80 11 00 00 00 00 00 00 6B [02:44:06]Write i2c OK [02:44:06]MH_I2C_Read... [02:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:06]Read from MH i2c: E2 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 17 00 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 17 00 B6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [02:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:44:06]wFMCommunicate OK [02:44:06]requested_item fd.num is exist - process it [02:44:06]SAM_PROTO_GetFieldsCounters [02:44:06]wFMCommunicate request_size=4 [02:44:06]MH_SAM_APDU [02:44:06]CAPDU: 80 13 00 00 [02:44:06]Write to MH i2c: E2 08 00 B7 3B 80 13 00 00 00 00 00 00 6E [02:44:06]Write i2c OK [02:44:06]MH_I2C_Read... [02:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:06]Read from MH i2c: E2 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 62 00 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 62 00 B7 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [02:44: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:44:06]wFMCommunicate OK [02:44:06]SAM_PROTO_GetFieldsCounters done [02:44:06]requested_item shift.num is exist - process it [02:44:06]requested_item shift.opened is exist - process it [02:44:06]req_shift_opened [02:44:06]FM_GetShiftState [02:44:06]SAM_PROTO_GetShiftState [02:44:06]wFMCommunicate request_size=4 [02:44:06]MH_SAM_APDU [02:44:06]CAPDU: 80 13 01 00 [02:44:06]Write to MH i2c: E2 08 00 B8 3B 80 13 01 00 00 00 00 00 70 [02:44:06]Write i2c OK [02:44:06]MH_I2C_Read... [02:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:06]Read from MH i2c: E2 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 0E 00 [02:44:06]MH_I2C_Read... [02:44:06]Read from MH i2c: E2 0E 00 B8 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FD [02:44:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [02:44:06]wFMCommunicate OK [02:44:06]SAM_PROTO_GetShiftState done [02:44:06]FM_GetShiftState done [02:44:06]req_shift_opened done [02:44:06]requested_item shift.open_date is exist - process it [02:44:06]req_shift_open_date [02:44:06]req_shift_open_date done [02:44:06]produce_requested_data done [02:44:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70499,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [02:44:06]process_action_free close_receipt [02:44:06]json_value_free [02:44:06]json_value_free done [02:44:06]process_json_proto returns [02:44:06]Send response to host [02:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70499,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [02:44:06]free response buf [02:44:06]execute_script done [02:44:06]execute_script returns [02:44:06]free content buf [02:44:06]Sock 7.Close socket [02:44:06]Sock 7.Thread stoped [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:50]accept exits with 9 [03:03:50]New connection [03:03:50]New thread 3066555748 created [03:03:50]Thread 3066699108 joined [03:03:50]Waiting for new connection... [03:03:50] Sock 9.Parse request [03:03:50]Sock 9.Check first char [03:03:50]Sock 9.First char is OK [03:03:50]request: POST /json_proto HTTP/1.0 [03:03:50]Method: POST [03:03:50]URL: /json_proto [03:03:50]Method is POST - this is cgi request [03:03:50]url: /json_proto [03:03:50]query_string will be loaded in cgi processing [03:03:50]execute_cgi json_proto POST (null) [03:03:50]execute_cgi path=json_proto method=POST [03:03:50]POST find Content-Length [03:03:50]Host: 172.17.50.3:8080 [03:03:50]Content-Length: 680 [03:03:50]Content-Type: application/json [03:03:50] [03:03:50]POST finish read [03:03:50]Found Content-Length = 680 [03:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886267", "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" : 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" ] } } [03:03:50]execute_script... [03: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)2886267", "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" : 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" ] } } [03:03:50]POST & json_proto [03:03:50]process_json_proto [03:03:50]json parsed OK: [03:03:50]protocol is kg_v1.0 [03:03:50]action value=close_receipt [03:03:50]process_action close_receipt [03:03:50]cmd_close_receipt [03:03:50]MH_GetDate [03:03:50]Write to MH i2c: F0 00 00 B9 3B E3 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 09 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 09 00 B9 3B 00 98 67 18 67 6B 98 1E 66 F1 [03:03:50]GetLastDocTimeStamp 1729651445 [03:03:50]current date 1729652632 [03:03:50]FM_GetShiftState [03:03:50]SAM_PROTO_GetShiftState [03:03:50]wFMCommunicate request_size=4 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 13 01 00 [03:03:50]Write to MH i2c: E2 08 00 BA 3B 80 13 01 00 00 00 00 00 72 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 0E 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 0E 00 BA 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FF [03:03:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:03:50]wFMCommunicate OK [03:03:50]SAM_PROTO_GetShiftState done [03:03:50]FM_GetShiftState done [03:03:50]opened in 1729642435 [03:03:50]opened+sec_in_day 1729728835 [03:03:50]quantity*price = 200025 [03:03:50]sum+1 = 200026 [03:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 16 23.10.2024 03:03 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70500 ФПД: 31000344421016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70500&fm=31000344421016&tin=02508201610067®Number=0000000000156251&sum=200000 [03:03:51]StoreToDocumentArchive [03:03:51]shift 196 fd 70500 [03:03:51]save to /storage/0196/doc_00070500 [03:03:51]save last doc name /storage/0196/doc_00070500 to /storage/kkm_last_doc_name [03:03:51]save OK [03:03:51]Clear old archive folders... [03:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:03:51]tlvbuf is 00ED46F0 [03:03:51]SAM_PROTO_ClearQueue [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 09 00 00 [03:03:51]Write to MH i2c: E2 08 00 C7 3B 80 09 00 00 00 00 00 00 74 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]SAM_PROTO_ClearQueue done [03:03:51]KKMCreateOFDPacket [03:03:51]OFDProtocolAddRootSTLVToBuf [03:03:51]FM_MakeSignedData [03:03:51]FM_MakeSignedData [03:03:51]SAM_PROTO_SignData [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 01 02 [03:03:51]Write to MH i2c: E2 08 00 C8 3B 80 0D 01 02 00 00 00 00 7C [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 C8 3B 00 90 00 77 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]wFMCommunicate request_size=255 [03:03:51]MH_SAM_APDU [03:03: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 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 10 00 00 00 F4 03 04 00 98 67 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 13 01 00 35 04 06 00 1C 31 D4 84 [03:03:51]Write to MH i2c: E2 02 01 C9 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 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 10 00 00 00 F4 03 04 00 98 67 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 13 01 00 35 04 06 00 1C 31 D4 84 00 00 58 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 C9 3B 00 90 00 78 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]wFMCommunicate request_size=7 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 02 02 02 62 98 [03:03:51]Write to MH i2c: E2 0A 00 CA 3B 80 0D 02 02 02 00 62 98 00 00 7D [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 CA 3B 00 90 00 79 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 03 02 [03:03:51]Write to MH i2c: E2 08 00 CB 3B 80 0D 03 02 00 00 00 00 81 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 CB 3B 00 90 AB 35 23 7A C4 FA FD 90 00 4A [03:03:51]RAPDU: 90 AB 35 23 7A C4 FA FD 90 00 [03:03:51]wFMCommunicate OK [03:03:51]SAM_PROTO_SignData done [03:03:51]FM_MakeSignedData done [03:03:51]CreateOFDProtocolMessage [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 11 00 00 [03:03:51]Write to MH i2c: E2 08 00 CC 3B 80 11 00 00 00 00 00 00 81 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 17 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 17 00 CC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [03:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:03:51]wFMCommunicate OK [03:03:51]CreateOFDProtocolMessage done [03:03:51]OFDSenderStorePacket 70500 [03:03:51]StoreOFDPacket docnum=70500 [03:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 66 D5 04 01 73 37 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 10 00 00 00 F4 03 04 00 98 67 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 13 01 00 35 04 06 00 1C 31 D4 84 62 98 90 AB 35 23 7A C4 FA FD [03:03:51]CheckFolder [03:03:51]dirname=/storage/ofd_packets [03:03:51]CheckFolder done [03:03:51]ProducePacketName [03:03:51]name=ofd_packets/00070500 [03:03:51]NVStorageSaveData ofd_packets/00070500 [03:03:51]File name is /storage/ofd_packets/00070500 [03:03:51]Write 298 bytes [03:03:51]NVStorageSaveData done [03:03:51]OFDSenderStorePacket done [03:03:51]KKMCreateOFDPacket done [03:03:51]NVStorageSaveData kkm_last_timestamp [03:03:51]File name is /storage/kkm_last_timestamp [03:03:51]OFD Sender: Processing packet 70500 [packets to send 18, broken 17] [03:03:51]ProducePacketName [03:03:51]name=ofd_packets/00070500 [03:03:51]OFD Sender: To server: pG, [03:03:51]CommunicateWithHost lk.salyk.kg:30040 [03:03:51]ConnectInit lk.salyk.kg [03:03:51]Write 4 bytes [03:03:51]NVStorageSaveData done [03:03:51]ExternCall_PrintAddStr [03:03:51]wPrintStart [03:03:51]Write to MH i2c: 01 00 00 CD 3B 08 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 07 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 FF 0F 1D [03:03:51]RasterBufferAndPrint [03:03:51]line Счет N : (1)2886267 [03:03:51]line ИНН: 02508201610067 [03:03:51]line Контрольно-Кассовый Чек [03:03:51]line ПРОДАЖА [03:03:51]line ТРК (МРК, ГНК) : 51 [03:03:51]line Товар: 2710194210 [03:03:51]line ДТ-К-5 [03:03:51]line 26.250 * 76.20 [03:03:51]line = 2000.25 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line ОКРУГЛЕНИЕ: -0.25 [03:03:51]line ИТОГО: 2000.00 [03:03:51]line Внесено: 2000.00 [03:03:51]line СДАЧА: 0.00 [03:03:51]line НСП 1% : 17.70 [03:03:51]line НДС 12% : 212.42 [03:03:51]line Наличными: 2000.00 [03:03:51]line Безнал.: 0.00 [03:03:51]line Место: АЗС № 85 "Партнер Нефть" [03:03:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:03:52]line СНО: Общий режим [03:03:52]line Чек 16 23.10.2024 03:03 [03:03:52]line Смена: 196 ФФД: 1.0 [03:03:52]line ЗНМ: 0300000167 [03:03:52]line РНМ: 0000000000156251 [03:03:52]line Версия ККМ: v1.0 [03:03:52]line ФМ: 0000000000963346 [03:03:52]line ФД: 70500 [03:03:52]line ФПД: 31000344421016 [03:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70500&fm=31000344421016&tin=02508201610067®Number=0000000000156251&sum=200000 [03:03:52]Connected sock=11 [03: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 34 36 0C 01 00 00 66 D5 04 01 73 37 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 10 00 00 00 F4 03 04 00 98 67 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 13 01 00 35 04 06 00 1C 31 D4 84 62 98 90 AB 35 23 7A C4 FA FD [03:03:52]written 0, free lines is 4095 [03: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 34 36 4F 00 00 00 85 BB 47 00 0F 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 34 36 10 04 04 00 64 13 01 00 F4 03 04 00 37 11 18 67 B6 04 01 00 00 31 85 F8 1F 79 53 78 7C [03:03:52]CommunicateWithHost err = 0 [03:03:52]CheckOFDResponse [03:03:52]1017 (14) - 77093643461234 [03:03:52]1041 (16) - 0000000000963346 [03:03:52]1040 (4) - 70500 [03:03:52]1012 (4) - 22.10.2024 20:55 [03:03:52]1206 (1) - 0 [03:03:52]OFD Sender: Remove packet 70500 [03:03:52]ProducePacketName [03:03:52]name=ofd_packets/00070500 [03:03:52]NVStorageDeleteData [03:03:52]Write to MH i2c: 01 00 00 F8 3B 33 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 F8 3B 00 00 00 00 00 EC 0C 32 [03:03:52]RasterBufferAndPrint [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]written 0, free lines is 3314 [03:03:52]MH_Cut [03:03:52]Write to MH i2c: D1 01 00 FF 3B 01 0C [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 FF 3B 00 0B [03:03:52]Write to MH i2c: 01 00 00 00 3C 3C [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]OFD Sender: No OFD packet to send [03:03:53]*** Cut start [03:03:53]*** Partial cut [03:03:53]*** CUTSNS_PIN = 1 [03:03:53]*** CUTSNS_PIN = 0 [03:03:53]*** Brake cut motor [03:03:53]Read from MH i2c: 01 [03:03:53]MH_I2C_Read... [03:03:53]*** Stop cut motor [03:03:53]*** Cut end [03:03:53]Read from MH i2c: 01 07 00 [03:03:53]MH_I2C_Read... [03:03:53]Read from MH i2c: 01 07 00 00 3C 00 00 00 00 00 FF 0F 51 [03:03:53]process_action close_receipt done [03:03:53]requested_data is exist [03:03:53]produce_requested_data [03:03:53]requested_item fm.sn is exist - process it [03:03:53]wFMCommunicate request_size=4 [03:03:53]MH_SAM_APDU [03:03:53]CAPDU: 80 11 00 00 [03:03:53]Write to MH i2c: E2 08 00 01 3C 80 11 00 00 00 00 00 00 B7 [03:03:53]Write i2c OK [03:03:53]MH_I2C_Read... [03:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:53]Read from MH i2c: E2 [03:03:53]MH_I2C_Read... [03:03:53]Read from MH i2c: E2 17 00 [03:03:53]MH_I2C_Read... [03:03:53]Read from MH i2c: E2 17 00 01 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [03:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:03:53]wFMCommunicate OK [03:03:53]requested_item fd.num is exist - process it [03:03:53]SAM_PROTO_GetFieldsCounters [03:03:53]wFMCommunicate request_size=4 [03:03:53]MH_SAM_APDU [03:03:53]CAPDU: 80 13 00 00 [03:03:53]Write to MH i2c: E2 08 00 02 3C 80 13 00 00 00 00 00 00 BA [03:03:53]Write i2c OK [03:03:53]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 02 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 13 01 00 0E 04 04 00 C4 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 41 [03: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 13 01 00 0E 04 04 00 C4 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:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetFieldsCounters done [03:03:54]requested_item shift.num is exist - process it [03:03:54]requested_item shift.opened is exist - process it [03:03:54]req_shift_opened [03:03:54]FM_GetShiftState [03:03:54]SAM_PROTO_GetShiftState [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 13 01 00 [03:03:54]Write to MH i2c: E2 08 00 03 3C 80 13 01 00 00 00 00 00 BC [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 03 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 49 [03:03:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetShiftState done [03:03:54]FM_GetShiftState done [03:03:54]req_shift_opened done [03:03:54]requested_item shift.open_date is exist - process it [03:03:54]req_shift_open_date [03:03:54]req_shift_open_date done [03:03:54]produce_requested_data done [03:03:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70500,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [03:03:54]process_action_free close_receipt [03:03:54]json_value_free [03:03:54]json_value_free done [03:03:54]process_json_proto returns [03:03:54]Send response to host [03:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70500,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [03:03:54]free response buf [03:03:54]execute_script done [03:03:54]execute_script returns [03:03:54]free content buf [03:03:54]Sock 9.Close socket [03:03:54]Sock 9.Thread stoped [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:33]accept exits with 7 [03:07:33]New connection [03:07:33]New thread 3066699108 created [03:07:33]Thread 3066555748 joined [03:07:33]Waiting for new connection... [03:07:33] Sock 7.Parse request [03:07:33]Sock 7.Check first char [03:07:33]Sock 7.First char is OK [03:07:33]request: POST /json_proto HTTP/1.0 [03:07:33]Method: POST [03:07:33]URL: /json_proto [03:07:33]Method is POST - this is cgi request [03:07:33]url: /json_proto [03:07:33]query_string will be loaded in cgi processing [03:07:33]execute_cgi json_proto POST (null) [03:07:33]execute_cgi path=json_proto method=POST [03:07:33]POST find Content-Length [03:07:33]Host: 172.17.50.3:8080 [03:07:33]Content-Length: 686 [03:07:33]Content-Type: application/json [03:07:33] [03:07:33]POST finish read [03:07:33]Found Content-Length = 686 [03:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.730, "sum" : 1312.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1312.00, "payments": [ { "type": 0, "sum" : 1312.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:33]execute_script... [03:07: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)2886268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.730, "sum" : 1312.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1312.00, "payments": [ { "type": 0, "sum" : 1312.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:33]POST & json_proto [03:07:33]process_json_proto [03:07:33]json parsed OK: [03:07:33]protocol is kg_v1.0 [03:07:33]action value=close_receipt [03:07:33]process_action close_receipt [03:07:33]cmd_close_receipt [03:07:33]MH_GetDate [03:07:33]Write to MH i2c: F0 00 00 04 3C 2F [03:07:33]Write i2c OK [03:07:33]MH_I2C_Read... [03:07:33]Read from MH i2c: F0 [03:07:33]MH_I2C_Read... [03:07:33]Read from MH i2c: F0 09 00 [03:07:33]MH_I2C_Read... [03:07:33]Read from MH i2c: F0 09 00 04 3C 00 78 68 18 67 6B 98 1E 66 1E [03:07:33]GetLastDocTimeStamp 1729652632 [03:07:33]current date 1729652856 [03:07:33]FM_GetShiftState [03:07:33]SAM_PROTO_GetShiftState [03:07:33]wFMCommunicate request_size=4 [03:07:33]MH_SAM_APDU [03:07:33]CAPDU: 80 13 01 00 [03:07:33]Write to MH i2c: E2 08 00 05 3C 80 13 01 00 00 00 00 00 BE [03:07:33]Write i2c OK [03:07:33]MH_I2C_Read... [03:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:33]Read from MH i2c: E2 [03:07:33]MH_I2C_Read... [03:07:33]Read from MH i2c: E2 0E 00 [03:07:33]MH_I2C_Read... [03:07:33]Read from MH i2c: E2 0E 00 05 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4B [03:07:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:07:33]wFMCommunicate OK [03:07:33]SAM_PROTO_GetShiftState done [03:07:33]FM_GetShiftState done [03:07:33]opened in 1729642435 [03:07:33]opened+sec_in_day 1729728835 [03:07:33]quantity*price = 131209 [03:07:33]sum+1 = 131211 [03:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1312.00 Внесено: 1500.00 СДАЧА: 188.00 НСП 1% : 11.61 НДС 12% : 139.34 Наличными: 1312.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 17 23.10.2024 03:07 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70501 ФПД: 81619707301354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030736&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70501&fm=81619707301354&tin=02508201610067®Number=0000000000156251&sum=131200 [03:07:34]StoreToDocumentArchive [03:07:34]shift 196 fd 70501 [03:07:34]save to /storage/0196/doc_00070501 [03:07:34]save last doc name /storage/0196/doc_00070501 to /storage/kkm_last_doc_name [03:07:34]save OK [03:07:34]Clear old archive folders... [03:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:07:34]tlvbuf is 00CF2130 [03:07:34]SAM_PROTO_ClearQueue [03:07:34]wFMCommunicate request_size=4 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 09 00 00 [03:07:34]Write to MH i2c: E2 08 00 12 3C 80 09 00 00 00 00 00 00 C0 [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:07:34]Read from MH i2c: E2 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 12 3C 00 90 00 C2 [03:07:34]RAPDU: 90 00 [03:07:34]wFMCommunicate OK [03:07:34]SAM_PROTO_ClearQueue done [03:07:34]KKMCreateOFDPacket [03:07:34]OFDProtocolAddRootSTLVToBuf [03:07:34]FM_MakeSignedData [03:07:34]FM_MakeSignedData [03:07:34]SAM_PROTO_SignData [03:07:34]wFMCommunicate request_size=4 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 0D 01 02 [03:07:34]Write to MH i2c: E2 08 00 13 3C 80 0D 01 02 00 00 00 00 C8 [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:07:34]Read from MH i2c: E2 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 13 3C 00 90 00 C3 [03:07:34]RAPDU: 90 00 [03:07:34]wFMCommunicate OK [03:07:34]wFMCommunicate request_size=255 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 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 78 68 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 13 01 00 35 04 06 00 4A 3B [03:07:34]Write to MH i2c: E2 02 01 14 3C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 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 78 68 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 13 01 00 35 04 06 00 4A 3B 00 00 F3 [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:34]Read from MH i2c: E2 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 14 3C 00 90 00 C4 [03:07:34]RAPDU: 90 00 [03:07:34]wFMCommunicate OK [03:07:34]wFMCommunicate request_size=9 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 0D 02 02 04 91 A9 0D EA [03:07:34]Write to MH i2c: E2 0C 00 15 3C 80 0D 02 02 04 00 91 A9 0D EA 00 00 04 [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:34]Read from MH i2c: E2 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 03 00 15 3C 00 90 00 C5 [03:07:34]RAPDU: 90 00 [03:07:34]wFMCommunicate OK [03:07:34]wFMCommunicate request_size=4 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 0D 03 02 [03:07:34]Write to MH i2c: E2 08 00 16 3C 80 0D 03 02 00 00 00 00 CD [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:07:34]Read from MH i2c: E2 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 0B 00 [03:07:34]MH_I2C_Read... [03:07:34]Read from MH i2c: E2 0B 00 16 3C 00 A5 C3 B6 A2 AB 99 12 D5 90 00 B9 [03:07:34]RAPDU: A5 C3 B6 A2 AB 99 12 D5 90 00 [03:07:34]wFMCommunicate OK [03:07:34]SAM_PROTO_SignData done [03:07:34]FM_MakeSignedData done [03:07:34]CreateOFDProtocolMessage [03:07:34]wFMCommunicate request_size=4 [03:07:34]MH_SAM_APDU [03:07:34]CAPDU: 80 11 00 00 [03:07:34]Write to MH i2c: E2 08 00 17 3C 80 11 00 00 00 00 00 00 CD [03:07:34]Write i2c OK [03:07:34]MH_I2C_Read... [03:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:35]Read from MH i2c: E2 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 17 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 17 00 17 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [03:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:07:35]wFMCommunicate OK [03:07:35]CreateOFDProtocolMessage done [03:07:35]OFDSenderStorePacket 70501 [03:07:35]StoreOFDPacket docnum=70501 [03:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4B 22 06 01 37 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 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 78 68 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 13 01 00 35 04 06 00 4A 3B 91 A9 0D EA A5 C3 B6 A2 AB 99 12 D5 [03:07:35]CheckFolder [03:07:35]dirname=/storage/ofd_packets [03:07:35]CheckFolder done [03:07:35]ProducePacketName [03:07:35]name=ofd_packets/00070501 [03:07:35]NVStorageSaveData ofd_packets/00070501 [03:07:35]File name is /storage/ofd_packets/00070501 [03:07:35]Write 300 bytes [03:07:35]NVStorageSaveData done [03:07:35]OFDSenderStorePacket done [03:07:35]KKMCreateOFDPacket done [03:07:35]NVStorageSaveData kkm_last_timestamp [03:07:35]File name is /storage/kkm_last_timestamp [03:07:35]Write 4 bytes [03:07:35]NVStorageSaveData done [03:07:35]ExternCall_PrintAddStr [03:07:35]wPrintStart [03:07:35]Write to MH i2c: 01 00 00 18 3C 54 [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 07 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 07 00 18 3C 00 00 00 00 00 FF 0F 69 [03:07:35]RasterBufferAndPrint [03:07:35]line Счет N : (1)2886268 [03:07:35]line ИНН: 02508201610067 [03:07:35]line Контрольно-Кассовый Чек [03:07:35]line ПРОДАЖА [03:07:35]line ТРК (МРК, ГНК) : 71 [03:07:35]line Товар: 2711129700 [03:07:35]line ГАЗ-К-3 [03:07:35]line 33.730 * 38.90 [03:07:35]line = 1312.10 [03:07:35]line НДС 12% НСП 1% [03:07:35]line > о реализуемом товаре [03:07:35]line ОКРУГЛЕНИЕ: -0.10 [03:07:35]line ИТОГО: 1312.00 [03:07:35]line Внесено: 1500.00 [03:07:35]line СДАЧА: 188.00 [03:07:35]line НСП 1% : 11.61 [03:07:35]line НДС 12% : 139.34 [03:07:35]line Наличными: 1312.00 [03:07:35]line Безнал.: 0.00 [03:07:35]line Место: АЗС № 85 "Партнер Нефть" [03:07:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:07:35]line СНО: Общий режим [03:07:35]line Чек 17 23.10.2024 03:07 [03:07:35]line Смена: 196 ФФД: 1.0 [03:07:35]line ЗНМ: 0300000167 [03:07:35]line РНМ: 0000000000156251 [03:07:35]line Версия ККМ: v1.0 [03:07:35]line ФМ: 0000000000963346 [03:07:35]line ФД: 70501 [03:07:35]line ФПД: 81619707301354 [03:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030736&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70501&fm=81619707301354&tin=02508201610067®Number=0000000000156251&sum=131200 [03:07:35]OFD Sender: Processing packet 70501 [packets to send 18, broken 17] [03:07:35]ProducePacketName [03:07:35]name=ofd_packets/00070501 [03:07:35]OFD Sender: To server: pG, [03:07:35]CommunicateWithHost lk.salyk.kg:30040 [03:07:35]ConnectInit lk.salyk.kg [03:07:35]written 0, free lines is 4095 [03:07:35]Connected sock=10 [03:07: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 34 36 0E 01 00 00 4B 22 06 01 37 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 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 78 68 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 13 01 00 35 04 06 00 4A 3B 91 A9 0D EA A5 C3 B6 A2 AB 99 12 D5 [03:07: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 34 36 4F 00 00 00 3C EC 47 00 29 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 34 36 10 04 04 00 65 13 01 00 F4 03 04 00 17 12 18 67 B6 04 01 00 00 66 4B 5D 5C 93 38 48 B1 [03:07:35]CommunicateWithHost err = 0 [03:07:35]CheckOFDResponse [03:07:35]1017 (14) - 77093643461234 [03:07:35]1041 (16) - 0000000000963346 [03:07:35]1040 (4) - 70501 [03:07:35]1012 (4) - 22.10.2024 20:59 [03:07:35]1206 (1) - 0 [03:07:35]OFD Sender: Remove packet 70501 [03:07:35]ProducePacketName [03:07:35]name=ofd_packets/00070501 [03:07:35]NVStorageDeleteData [03:07:35]Write to MH i2c: 01 00 00 43 3C 7F [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 07 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 07 00 43 3C 00 00 00 00 00 E0 0C 72 [03:07:35]RasterBufferAndPrint [03:07:35]line [03:07:35]line [03:07:35]line [03:07:35]line [03:07:35]line [03:07:35]written 0, free lines is 3305 [03:07:35]MH_Cut [03:07:35]Write to MH i2c: D1 01 00 4A 3C 01 58 [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: D1 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: D1 01 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: D1 01 00 4A 3C 00 57 [03:07:35]Write to MH i2c: 01 00 00 4B 3C 87 [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:36]OFD Sender: No OFD packet to send [03:07:36]*** Cut start [03:07:36]*** Partial cut [03:07:36]*** CUTSNS_PIN = 1 [03:07:36]*** CUTSNS_PIN = 0 [03:07:36]*** Brake cut motor [03:07:37]Read from MH i2c: 01 [03:07:37]MH_I2C_Read... [03:07:37]*** Stop cut motor [03:07:37]*** Cut end [03:07:37]Read from MH i2c: 01 07 00 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: 01 07 00 4B 3C 00 00 00 00 00 FF 0F 9C [03:07:37]process_action close_receipt done [03:07:37]requested_data is exist [03:07:37]produce_requested_data [03:07:37]requested_item fm.sn is exist - process it [03:07:37]wFMCommunicate request_size=4 [03:07:37]MH_SAM_APDU [03:07:37]CAPDU: 80 11 00 00 [03:07:37]Write to MH i2c: E2 08 00 4C 3C 80 11 00 00 00 00 00 00 02 [03:07:37]Write i2c OK [03:07:37]MH_I2C_Read... [03:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:37]Read from MH i2c: E2 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 17 00 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 17 00 4C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [03:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:07:37]wFMCommunicate OK [03:07:37]requested_item fd.num is exist - process it [03:07:37]SAM_PROTO_GetFieldsCounters [03:07:37]wFMCommunicate request_size=4 [03:07:37]MH_SAM_APDU [03:07:37]CAPDU: 80 13 00 00 [03:07:37]Write to MH i2c: E2 08 00 4D 3C 80 13 00 00 00 00 00 00 05 [03:07:37]Write i2c OK [03:07:37]MH_I2C_Read... [03:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:07:37]Read from MH i2c: E2 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 62 00 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 62 00 4D 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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 13 01 00 0E 04 04 00 C4 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 90 [03:07: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 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 13 01 00 0E 04 04 00 C4 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:07:37]wFMCommunicate OK [03:07:37]SAM_PROTO_GetFieldsCounters done [03:07:37]requested_item shift.num is exist - process it [03:07:37]requested_item shift.opened is exist - process it [03:07:37]req_shift_opened [03:07:37]FM_GetShiftState [03:07:37]SAM_PROTO_GetShiftState [03:07:37]wFMCommunicate request_size=4 [03:07:37]MH_SAM_APDU [03:07:37]CAPDU: 80 13 01 00 [03:07:37]Write to MH i2c: E2 08 00 4E 3C 80 13 01 00 00 00 00 00 07 [03:07:37]Write i2c OK [03:07:37]MH_I2C_Read... [03:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:37]Read from MH i2c: E2 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 0E 00 [03:07:37]MH_I2C_Read... [03:07:37]Read from MH i2c: E2 0E 00 4E 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 94 [03:07:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:07:37]wFMCommunicate OK [03:07:37]SAM_PROTO_GetShiftState done [03:07:37]FM_GetShiftState done [03:07:37]req_shift_opened done [03:07:37]requested_item shift.open_date is exist - process it [03:07:37]req_shift_open_date [03:07:37]req_shift_open_date done [03:07:37]produce_requested_data done [03:07:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70501,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [03:07:37]process_action_free close_receipt [03:07:37]json_value_free [03:07:37]json_value_free done [03:07:37]process_json_proto returns [03:07:37]Send response to host [03:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70501,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [03:07:37]free response buf [03:07:37]execute_script done [03:07:37]execute_script returns [03:07:37]free content buf [03:07:37]Sock 7.Close socket [03:07:37]Sock 7.Thread stoped [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send